/* ToolME industrial chrome theme — visual layer only; inventory and routing unchanged. */
:root {
  color-scheme: dark;
  --bg: #070a0e;
  --surface: rgba(16, 23, 31, .96);
  --surface-2: rgba(22, 31, 43, .98);
  --border: rgba(146, 172, 197, .27);
  --border-strong: rgba(111, 180, 241, .58);
  --text: #f3f6fb;
  --muted: #b4c2d2;
  --dim: #92a5b9;
  --accent: #f2b52a;
  --accent-hover: #ffd064;
  --accent-ink: #15120b;
  --accent-soft: rgba(242, 181, 42, .18);
  --accent-glow: rgba(242, 181, 42, .3);
  --success: #89d27b;
  --warn: #f2b52a;
  --danger: #ff7883;
  --plumbing: #48a8ec;
  --plumbing-bg: rgba(72,168,236,.15);
  --electrical: #e9bb48;
  --electrical-bg: rgba(233,187,72,.15);
  --tools: #6497e8;
  --tools-bg: rgba(100,151,232,.17);
  --paint: #e98b9d;
  --paint-bg: rgba(233,139,157,.14);
  --chrome: linear-gradient(145deg,#f8fbff 0%,#d7e0eb 18%,#5e7082 52%,#e0e8f1 82%,#889ba9 100%);
  --shadow: 0 18px 42px rgba(0,0,0,.48), inset 0 1px 0 rgba(231,242,255,.06);
  --ring: 0 0 0 3px rgba(67,161,243,.28);
}
html { background: var(--bg); }
body {
  color: var(--text);
  background:
    radial-gradient(ellipse 680px 480px at 83% 0%, rgba(25,82,139,.25), transparent 70%),
    radial-gradient(ellipse 500px 330px at 6% 7%, rgba(71,103,137,.15), transparent 65%),
    linear-gradient(180deg, #070a0e 0%, #0b1119 50%, #05080e 100%) !important;
  background-attachment: fixed !important;
}
body::before {
  opacity: .20 !important;
  background-image:
    linear-gradient(rgba(79,126,165,.13) 1px, transparent 1px),
    linear-gradient(90deg,rgba(79,126,165,.13) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}
#app { position: relative; isolation: isolate; }
::selection { background: #255e9a; color: #fff; }
a { color: #8cc9ff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid #80c7ff !important; outline-offset: 3px; }
.container, .topbar-inner { max-width: 760px; }
.topbar {
  background: linear-gradient(180deg, rgba(24,34,46,.98),rgba(7,11,17,.97)) !important;
  border-bottom: 1px solid rgba(96,166,222,.48) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.28), inset 0 -1px 0 rgba(137,187,233,.14);
}
.topbar-title, .brand-name {
  color: #eff6ff;
  text-shadow: 0 1px 8px rgba(74,147,218,.14);
}
.topbar-meta { color: #bdcbdc; }
.brand-mark, .icon-btn {
  background: linear-gradient(148deg,#263545,#0c121b 70%) !important;
  border: 1px solid rgba(157,180,203,.45) !important;
  box-shadow: inset 0 1px 0 rgba(244,249,255,.15),0 3px 12px rgba(0,0,0,.32) !important;
  color: #eff7ff;
}
.brand-mark { border-radius: 12px; }
.icon-btn:hover { border-color: #78bbf5 !important; background: #1b334b !important; }

/* The workshop console: a restrained version of the cinematic logo mockup. */
.hero,
body.home-compact .hero {
  position: relative;
  isolation: isolate;
  padding: 18px 18px 19px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(156,185,207,.54) !important;
  background:
    radial-gradient(ellipse at 15% 0%,rgba(201,221,239,.14),transparent 42%),
    radial-gradient(ellipse at 90% 45%,rgba(23,92,169,.19),transparent 60%),
    repeating-linear-gradient(145deg,transparent 0 27px,rgba(137,169,199,.026) 28px 29px),
    linear-gradient(170deg,#151d29 0%,#070a11 48%,#101722 100%) !important;
  box-shadow: inset 0 1px rgba(241,248,255,.26), inset 0 -3px 0 rgba(47,138,228,.28), 0 17px 32px rgba(0,0,0,.48) !important;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg,transparent,#bcdaf3,transparent);
  box-shadow: 0 1px 14px rgba(103,187,250,.6);
  pointer-events:none;
}
.hero::after {
  inset: auto 0 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent 2%, #2d86d5 32%, #d2e6ff 50%, #2d86d5 68%, transparent 98%) !important;
  opacity: .9 !important;
  animation: none !important;
}
.toolme-hero-logo {
  display: block;
  width: min(100%, 445px);
  height: auto;
  max-height: 204px;
  object-fit: contain;
  margin: -14px auto -4px;
  filter: drop-shadow(0 8px 20px rgba(20,46,78,.4));
}
.hero .hero-art { display: none !important; }
.hero-copy, body.home-compact .hero-copy {
  max-width: 100% !important;
  text-align: center;
}
.hero-kicker {
  display: inline-block;
  margin: 3px 0 3px !important;
  color: #e9bd58 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .19em !important;
}
.hero h1 { font-size: 1.25rem !important; letter-spacing: .02em !important; color: #dfe9f5; }
.hero-sub, body.home-compact .hero-sub {
  color: #d3dfed !important;
  font-size: 13px !important;
  margin-top: 4px !important;
}
.hero .sr-only {
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Functional controls / cards retain existing handlers and routes. */
.panel, .card, .unit-card, .job-card, .bin-tile, .action, .banner,
.home-cloud-bar, .cloud-card, .nfc-panel, .nfc-program-card,
.gemini-assistant-card, .ai-sheet-card, .chat-bubble.gemini {
  color: var(--text);
  background: linear-gradient(153deg,rgba(31,43,57,.98),rgba(12,19,29,.98)) !important;
  border: 1px solid rgba(130,161,190,.34) !important;
  box-shadow: inset 0 1px 0 rgba(225,239,253,.09), 0 8px 22px rgba(0,0,0,.27) !important;
}
.card.tappable:hover, .unit-card:hover, .job-card:hover,
.bin-tile:hover, .action:hover, .icon-btn:hover {
  border-color: #68b8f9 !important;
  background: linear-gradient(145deg,#253a50,#111f30) !important;
}
.action, .job-card, .bin-tile, .unit-card { text-decoration: none; }
.action {
  min-height: 94px;
  border-radius: 16px;
  font-weight: 800;
}
.action .glyph:not(:has(.glyph-3d)), .unit-card .glyph:not(:has(.glyph-3d)) {
  background: linear-gradient(145deg,#304962,#111a27) !important;
  color: #eaf4ff !important;
  box-shadow: inset 0 1px rgba(255,255,255,.15),0 4px 12px rgba(0,0,0,.3) !important;
}
.action .glyph-3d, .unit-card .glyph-3d {
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.46)) !important;
}
body.home-compact .actions { gap: 9px !important; }
body.home-compact .action, body.home-compact .action.add,
body.home-compact .action.back, body.home-compact .action.cats,
body.home-compact .action.data {
  min-height: 120px;
  padding: 10px 8px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(130,161,190,.34) !important;
  background: linear-gradient(153deg,rgba(31,43,57,.98),rgba(12,19,29,.98)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.09),0 8px 22px rgba(0,0,0,.27) !important;
}
body.home-compact .action .glyph, body.home-compact .action .glyph-slot,
body.home-compact .action .glyph-3d { width: 78px !important; height: 78px !important; }
.ask-gemini-btn {
  background: linear-gradient(170deg,#f7cc62 0%,#f2ad19 52%,#b9790f 100%) !important;
  color: #15120c !important;
  border: 1px solid #ffe29b !important;
  box-shadow: inset 0 1px rgba(255,255,255,.55),0 7px 22px rgba(185,119,15,.27) !important;
}
.ask-gemini-btn:hover, .btn-primary:hover { filter: brightness(1.06); }
.btn {
  color: var(--text);
  background: linear-gradient(160deg,#26374a,#141d2a) !important;
  border: 1px solid rgba(145,177,209,.38) !important;
  box-shadow: inset 0 1px rgba(250,250,255,.09);
}
.btn-primary {
  color: #17130a !important;
  background: linear-gradient(165deg,#ffdc78,#f3b82e 50%,#bb7d11) !important;
  border-color: #ffdf81 !important;
  font-weight: 800;
}
.btn-success { color: #b8f2bb !important; border-color: rgba(99,203,133,.45) !important; }
.btn-danger { color: #ff9ca5 !important; }
.btn-secondary, .btn-ghost { color: #e1ecf6 !important; }
.btn:disabled, button:disabled { opacity:.53; cursor:not-allowed; }
.search-wrap, .gemini-inline-input-wrap, .chat-input-row {
  background: linear-gradient(165deg,#172231,#0c121b) !important;
  border: 1px solid rgba(133,170,207,.42) !important;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.32) !important;
  border-radius: 16px !important;
}
.search-wrap .search-input, .gemini-inline-input, .chat-input-row textarea,
input[type="text"], input[type="number"], input[type="password"],
input[type="file"], select, textarea {
  color: #f5f8fc !important;
  background: #111b28 !important;
  border: 1px solid rgba(139,174,206,.39) !important;
  border-radius: 12px !important;
}
.search-wrap .search-input { border:0 !important; background:transparent !important; }
input::placeholder, textarea::placeholder, .search-wrap .search-input::placeholder,
.gemini-inline-input::placeholder { color: #a6b7c9 !important; opacity:1; }
input:focus, select:focus, textarea:focus, .search-wrap .search-input:focus {
  border-color: #6abdfb !important; box-shadow: var(--ring) !important;
}
select option { background:#152232;color:#f7faff; }
label, .card-title, .unit-card strong, .bin-num, .job-card strong { color: #f0f5fc; }
.muted, .meta, .bin-type, .unit-card em, .helper, .notes { color: #b7c6d7 !important; }
.section-head h2 { color: #d1deec !important; }
.status.good, .cloud-status-badge.synced { color: #c0f2bf !important; background: rgba(72,165,87,.18) !important; }
.status.low, .status.fair { color: #ffe39b !important; background: rgba(229,158,24,.17) !important; }
.status.out, .status.dead { color: #ffc2ca !important; background: rgba(235,82,105,.17) !important; }
.banner { border-left: 3px solid #efb83f !important; }
.home-cloud-bar { border-left: 3px solid #60b6f9 !important; }
.gemini-assistant-card::before { background: radial-gradient(circle,rgba(43,137,215,.21),transparent 70%) !important; }
.gemini-avatar { background: linear-gradient(160deg,#477cb3,#132c49) !important; color:#fff !important; }
.gemini-avatar-glow { background: linear-gradient(145deg,#42a4f5,#1b4d84) !important; }
.gemini-chip, .home-swipe a, .home-swipe button, .chat-action-btn,
.stepper-btn, .move-select {
  background: #172435 !important;
  color: #dfebf7 !important;
  border: 1px solid rgba(139,174,206,.39) !important;
}
.gemini-live-badge { color:#b7ebc3 !important; }
.gemini-dot { background:#89d27b !important; }
.gemini-inline-mic-btn, .gemini-inline-send-btn { color:#ffcb59 !important; }
.chat-bubble.user { color:#fafcff !important; background:#153d67 !important; border:1px solid #387ab2 !important; }
.chat-content, .chat-content p, .chat-bubble.gemini .chat-content { color:#e6edf6 !important; }
.dock {
  background: linear-gradient(180deg,rgba(21,33,47,.98),rgba(5,9,15,.99)) !important;
  border-top: 1px solid rgba(104,178,237,.43) !important;
  box-shadow: 0 -10px 24px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.08);
}
.dock a { color: #b1c3d6; }
.dock a.active { color: #ffcb61 !important; }
.dock a.active::after {
  content: "";
  width: 25px;
  height: 2px;
  border-radius: 99px;
  background: #ffc657;
  box-shadow: 0 0 10px rgba(255,194,58,.65);
}
.dock a.active svg, .dock a.active .glyph-3d { filter: drop-shadow(0 0 8px rgba(242,181,42,.24)) !important; }
.dock .count { background:#f5ba34;color:#161108; }
.mic-fab, .live-ctrl-btn.active { background:linear-gradient(160deg,#fbd56e,#e3a121) !important;color:#18120b !important; }
.toast, .ai-sheet { background:#1d2d3c !important; color:#f3f7ff !important; }
@media (min-width: 900px) {
  .container { padding-top: 24px; }
  .hero { padding: 24px 30px 28px !important; }
  .toolme-hero-logo { max-height: 240px; width: min(100%,500px); }
}
@media (max-width: 380px) {
  .hero, body.home-compact .hero { padding: 12px !important; }
  .toolme-hero-logo { margin: -8px auto -3px; }
  body.home-compact .action .glyph, body.home-compact .action .glyph-slot,
  body.home-compact .action .glyph-3d { width: 66px !important;height:66px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .hero::after, .action, .btn { animation:none !important;transition:none !important; }
}

/* Borderless approved ToolME hero at its native 8:3 aspect ratio. */
.hero, body.home-compact .hero {
  padding: 0 !important;
  margin: 0 0 14px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  animation: none !important;
}
.hero::before, .hero::after { display: none !important; }
.toolme-hero-logo {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  aspect-ratio: 8 / 3;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  filter: none !important;
}
.hero-copy, body.home-compact .hero-copy {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
@media (max-width: 600px) {
  .toolme-hero-logo { clip-path: inset(0 0 24% 0); margin-bottom: -9% !important; }
  .hero-copy, body.home-compact .hero-copy {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip-path: none !important;
    white-space: normal !important;
    padding: 0 8px 10px !important;
    text-align: center !important;
  }
  .hero-kicker { font-size: 11px !important; }
  .hero-sub { font-size: 14px !important; }
}
