/* ============================================================
   TRIPCLEAR — app.css v3
   AI-native design system · One source of truth
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ══════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════ */
:root {
  /* Surfaces — deep space */
  --bg:  #080812;
  --s1:  #0D0D20;
  --s2:  #111130;
  --s3:  #161642;
  --s4:  #1C1C50;

  /* Borders */
  --b1:  #1E1E48;
  --b2:  #272764;
  --b3:  #333380;

  /* Text */
  --t1:  #ECEEFF;
  --t2:  #6068A0;
  --t3:  #2A3068;
  --t4:  #141830;

  /* Primary — electric indigo-blue */
  --blue:      #5C7EFF;
  --blue-b:    #3355E0;
  --blue-d:    rgba(92,126,255,.12);
  --blue-g:    linear-gradient(135deg, #5C7EFF 0%, #3355E0 100%);
  --blue-glow: 0 0 32px rgba(92,126,255,.30), 0 0 8px rgba(92,126,255,.12);

  /* Secondary — violet AI accent */
  --violet:    #8B5CF6;
  --violet-b:  #6D28D9;
  --violet-d:  rgba(139,92,246,.12);
  --violet-g:  linear-gradient(135deg, #8B5CF6, #6D28D9);

  /* Status */
  --green:     #10D9A0;
  --green-d:   rgba(16,217,160,.10);
  --amber:     #F5A623;
  --amber-d:   rgba(245,166,35,.10);
  --red:       #F05C6A;
  --red-d:     rgba(240,92,106,.10);
  --purple:    #A78BFA;
  --purple-d:  rgba(167,139,250,.12);
  --teal:      #22D3EE;
  --teal-d:    rgba(34,211,238,.10);
  --gold:      #F5A623;
  --gold-d:    rgba(245,166,35,.10);

  /* Glass */
  --glass:  rgba(13,13,32,.82);
  --glass2: rgba(13,13,32,.97);

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(0,0,0,.40);
  --sh-md: 0 6px 24px rgba(0,0,0,.50);
  --sh-lg: 0 16px 48px rgba(0,0,0,.60);
  --sh-xl: 0 28px 80px rgba(0,0,0,.70);

  /* Radii */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px;
  --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --tf: .10s cubic-bezier(.4,0,.2,1);
  --tn: .18s cubic-bezier(.4,0,.2,1);
  --ts: .32s cubic-bezier(.4,0,.2,1);
  --spring: .28s cubic-bezier(.34,1.56,.64,1);

  /* Layout */
  --topbar-h:     52px;
  --sidebar-w:    220px;
  --bottom-nav-h: 60px;
}

/* ── LIGHT ─────────────────────────────── */
[data-theme="light"] {
  --bg: #F0F2FA; --s1: #FFFFFF; --s2: #F4F6FE; --s3: #E8EBF8; --s4: #DCE0F4;
  --b1: #C8CEEC; --b2: #B0BADF; --b3: #96A4D0;
  --t1: #0A0C22; --t2: #3C4474; --t3: #8890B8; --t4: #BEC6E0;
  --blue: #3355E0; --blue-b: #1A3CBB;
  --blue-d: rgba(51,85,224,.10);
  --blue-g: linear-gradient(135deg, #3355E0, #1A3CBB);
  --blue-glow: 0 0 24px rgba(51,85,224,.20);
  --violet: #7C3AED; --violet-d: rgba(124,58,237,.10);
  --green: #059669; --green-d: rgba(5,150,105,.10);
  --amber: #D97706; --amber-d: rgba(217,119,6,.10);
  --red: #DC2626; --red-d: rgba(220,38,38,.10);
  --glass: rgba(255,255,255,.88); --glass2: rgba(255,255,255,.99);
  --sh-sm: 0 2px 8px rgba(14,22,90,.06);
  --sh-md: 0 6px 20px rgba(14,22,90,.09);
  --sh-lg: 0 14px 40px rgba(14,22,90,.11);
  --sh-xl: 0 24px 64px rgba(14,22,90,.13);
}

/* ── OCEAN ─────────────────────────────── */
[data-theme="ocean"] {
  --bg: #020E1C; --s1: #041620; --s2: #061E2E; --s3: #082840; --s4: #0A3254;
  --b1: #0E3C5E; --b2: #144E78; --b3: #1A6090;
  --t1: #C8E8FF; --t2: #3E9EC0; --t3: #186080; --t4: #0A2E48;
  --blue: #00C8FF; --blue-d: rgba(0,200,255,.12);
  --blue-g: linear-gradient(135deg, #00C8FF, #0088CC);
  --green: #00DDA8; --amber: #FFD040;
  --glass: rgba(4,22,40,.88);
}

/* ── MIDNIGHT ──────────────────────────── */
[data-theme="midnight"] {
  --bg: #000000; --s1: #060608; --s2: #0C0C10; --s3: #111118; --s4: #181820;
  --b1: #1C1C2A; --b2: #242438; --b3: #2E2E48;
  --t1: #F0F0FF; --t2: #6868A0; --t3: #303058; --t4: #181828;
  --glass: rgba(6,6,8,.92);
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  background: var(--bg); color: var(--t1);
  font-family: var(--font); font-size: 13px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  transition: background .25s, color .25s;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }

/* ══════════════════════════════════════════
   AMBIENT BACKGROUND
══════════════════════════════════════════ */
.tc-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.tc-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(92,126,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,126,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.tc-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.tc-orb {
  position: absolute; border-radius: 50%;
  filter: blur(130px);
  animation: tcOrb 20s ease-in-out infinite;
  will-change: transform;
}
.tc-orb.o1 { width: 700px; height: 700px; top: -22%; left: -12%; background: radial-gradient(circle, rgba(92,126,255,.08) 0%, transparent 70%); }
.tc-orb.o2 { width: 560px; height: 560px; bottom: -18%; right: -8%;  background: radial-gradient(circle, rgba(139,92,246,.07) 0%, transparent 70%); animation-delay: -7s; }
.tc-orb.o3 { width: 420px; height: 420px; top: 36%; left: 52%;       background: radial-gradient(circle, rgba(34,211,238,.05) 0%, transparent 70%); animation-delay: -13s; }
.tc-orb.o4 { width: 300px; height: 300px; top: 12%; right: 22%;      background: radial-gradient(circle, rgba(245,166,35,.04) 0%, transparent 70%); animation-delay: -5s; }
@keyframes tcOrb {
  0%,100% { transform: translateY(0) translateX(0) scale(1); }
  33%     { transform: translateY(-40px) translateX(16px) scale(1.04); }
  66%     { transform: translateY(22px) translateX(-10px) scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .tc-orb { animation: none; }
}

/* ══════════════════════════════════════════
   APP LAYOUT
══════════════════════════════════════════ */
.tc-layout {
  position: relative; z-index: 1;
  display: flex; min-height: 100dvh;
}

/* ── SIDEBAR ──────────────────────────── */
.tc-sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--s1);
  border-right: 1px solid var(--b1);
  position: fixed; top: var(--topbar-h); bottom: 0; left: 0;
  display: flex; flex-direction: column;
  z-index: 150;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.tc-sidebar.no-topbar { top: 0; }
.tc-sidebar.no-topbar ~ .tc-main { padding-top: 0; }

/* ── Header ── */
.tc-sb-header {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 16px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--b1);
}
.tc-sb-mark {
  width: 36px; height: 36px;
  background: var(--blue-g);
  border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: white;
  letter-spacing: -.5px;
}
.tc-sb-brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-sb-name {
  font-size: 15px; font-weight: 800; letter-spacing: -.3px;
  color: var(--t1); line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* What the product is. Small, quiet, and the reason the brand block now reads
   as a header rather than a word in a corner. */
.tc-sb-sub {
  font-size: 10.5px; font-weight: 500; color: var(--t3);
  letter-spacing: .01em; margin-top: 3px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-sb-name em { color: var(--blue); font-style: normal; }
.tc-sb-tier {
  font-size: 9px; font-family: var(--mono);
  color: var(--t3); letter-spacing: .5px; text-transform: uppercase;
}

/* ── Nav scroll area ── */
.tc-sb-nav {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 8px 10px 16px;
  /* A hidden scrollbar in a list that scrolls is why this felt clunky: there
     was no way to tell there was more below. Thin and tinted, not absent. */
  scrollbar-width: thin;
  scrollbar-color: var(--b2) transparent;
  overscroll-behavior: contain;
}
.tc-sb-nav::-webkit-scrollbar { width: 8px; }
.tc-sb-nav::-webkit-scrollbar-track { background: transparent; }
.tc-sb-nav::-webkit-scrollbar-thumb {
  background: var(--b2); border-radius: 999px;
  border: 2px solid transparent; background-clip: content-box;
}
.tc-sb-nav::-webkit-scrollbar-thumb:hover { background: var(--t3); background-clip: content-box; }

/* ── Section dividers ── */
.tc-sb-divider {
  height: 1px; background: var(--b1);
  margin: 5px 0;
  opacity: .6;
}
.tc-sb-divider-first { display: none; }

/* ── Section labels ── */
.tc-sb-section {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--t3); padding: 18px 12px 6px;
  font-family: var(--font); user-select: none;
  /* Sticky: scrolling through Operations should never leave you unsure which
     group you are in. The background is the sidebar's own, so nothing shows
     through underneath it. */
  position: sticky; top: 0; z-index: 2;
  background: var(--s1);
}

/* ── Nav items ── */
.tc-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--t2);
  cursor: pointer; text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
  margin-bottom: 2px; position: relative;
  border: none; background: transparent;
  width: 100%; font-family: var(--font);
  white-space: nowrap; overflow: hidden;
  min-height: 40px;
}
.tc-nav-item:hover {
  background: var(--s2);
  color: var(--t1);
}
/* Keyboard users could tab through the whole menu with nothing to look at. */
.tc-nav-item:focus-visible,
.tc-sb-collapse:focus-visible,
.tc-sb-profile:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.tc-nav-item.active {
  background: var(--blue-d);
  color: var(--blue);
  font-weight: 700;
}
/* The leading bar was written and then switched off, which left the active
   item as a tint a tired eye slides past. It is back: 3px, inset, and the
   per-module colours below finally mean something. */
.tc-nav-item.active::before {
  display: block;
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}

/* per-module accent bar color only */
.tc-nav-item[data-mod="boe"].active::before   { background: var(--amber); }
.tc-nav-item[data-mod="bill"].active::before  { background: var(--green); }
.tc-nav-item[data-mod="intel"].active::before { background: var(--violet); }
.tc-nav-item[data-mod="desk"].active::before  { background: var(--teal); }
.tc-nav-item[data-mod="messenger"].active::before { background: var(--teal); }
.tc-nav-item[data-mod="copilot"].active::before   { background: var(--violet); }

/* icon */
.tc-nav-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--t3);
  transition: color 120ms ease;
}
.tc-nav-icon svg { width: 18px; height: 18px; }
.tc-nav-item:hover .tc-nav-icon { color: var(--t2); }
.tc-nav-item.active .tc-nav-icon { color: var(--blue); }

.tc-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* badge */
.tc-nav-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 10px;
  background: var(--blue); color: white; font-family: var(--mono);
}

/* locked items */
.tc-nav-locked {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--t4);
  margin-bottom: 2px; cursor: not-allowed; min-height: 40px;
}
.tc-nav-locked .tc-nav-icon { opacity: .3; }
.tc-nav-locked .tc-nav-label { opacity: .35; }
.tc-nav-lock-badge { margin-left: auto; flex-shrink: 0; color: var(--t4); display: flex; }

/* ── Footer / user ── */
.tc-sb-footer {
  border-top: 1px solid var(--b1);
  padding: 10px 10px 12px;
  flex-shrink: 0;
}
/* Moved out of the brand block, where it competed with the product name. */
.tc-sb-footer .tc-sb-tier {
  padding: 8px 10px 0; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-sb-profile {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms ease;
}
.tc-sb-profile:hover { background: var(--s2); }

.tc-sb-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-g);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
  flex-shrink: 0; overflow: hidden;
}
.tc-sb-profile-info { flex: 1; min-width: 0; }
.tc-sb-uname {
  font-size: 12.5px; font-weight: 500; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-sb-urole {
  font-size: 10px; color: var(--t3);
  text-transform: capitalize; margin-top: 1px;
}
.tc-sb-profile-chevron {
  color: var(--t3); display: flex; align-items: center; flex-shrink: 0;
  opacity: 0; transition: opacity 120ms;
}
.tc-sb-profile:hover .tc-sb-profile-chevron { opacity: 1; }

/* Sidebar overlay (mobile) */
.tc-sb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 199;
}

/* ── MAIN ─────────────────────────────── */
.tc-main {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column;
  min-height: 100dvh; padding-top: var(--topbar-h); overflow-x: hidden;
}

/* ── TOPBAR ───────────────────────────── */
/* shell-injected topbar: fixed across full viewport width */
body > .tc-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
}
/* page-level sub-header inside content area */
.tc-topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid var(--b1);
  display: flex; align-items: center;
  padding: 0; gap: 0; flex-shrink: 0;
}
.tc-main > .tc-topbar {
  z-index: 50;
}
.tc-tb-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; flex: 1;
}
.tc-tb-bc-sep { color: var(--t3); font-size: 11px; }
.tc-tb-bc-mod {
  font-size: 10px; font-weight: 700; font-family: var(--mono);
  padding: 2px 8px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: .5px;
}
.bc-home         { background: rgba(92,126,255,.14);  color: #7B9EFF; }
.bc-hub          { background: rgba(92,126,255,.18);  color: #5C7EFF; }
.bc-trips        { background: rgba(92,126,255,.14);  color: #7B9EFF; }
.bc-move         { background: rgba(92,126,255,.14);  color: #7B9EFF; }
.bc-boe          { background: rgba(245,166,35,.14);  color: #FBBF24; }
.bc-messenger    { background: rgba(34,211,238,.12);  color: #22D3EE; }
.bc-copilot      { background: rgba(139,92,246,.14);  color: #A78BFA; }
.bc-bill         { background: rgba(16,217,160,.12);  color: #34D399; }
.bc-intel        { background: rgba(139,92,246,.12);  color: #A78BFA; }
.bc-desk         { background: rgba(34,211,238,.10);  color: #22D3EE; }
.bc-transporters { background: rgba(92,126,255,.10);  color: #7B9EFF; }
.bc-settings     { background: rgba(100,100,120,.14); color: #9098B8; }
.bc-admin        { background: rgba(240,92,106,.12);  color: #F05C6A; }
.tc-tb-actions { display: flex; align-items: center; gap: 4px; padding-right: 12px; }

/* Brand section (aligns with sidebar width on desktop) */
.tc-tb-brand {
  display: none; align-items: center; gap: 8px;
  width: var(--sidebar-w); flex-shrink: 0; height: 100%;
  padding: 0 16px; border-right: 1px solid var(--b1);
}
.tc-tb-logo-mark {
  width: 26px; height: 26px; background: var(--blue-g);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: white; flex-shrink: 0;
  box-shadow: var(--blue-glow);
}
.tc-tb-logo-name {
  font-size: 14px; font-weight: 800; color: var(--t1); letter-spacing: -.4px;
}
.tc-tb-logo-name em { color: var(--blue); font-style: normal; }
.tc-tb-sep { width: 1px; height: 18px; background: var(--b1); margin: 0 10px; flex-shrink: 0; }
.tc-tb-bc-page { font-size: 12px; color: var(--t2); }

/* Breadcrumb — home button, slanted separators, current page in the accent. */
.tc-tb-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.tc-tb-bc-home {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0;
  color: var(--t2); border-radius: var(--r-sm);
  transition: background var(--tf), color var(--tf);
}
.tc-tb-bc-home:hover { background: var(--s2); color: var(--blue); }
/* The separator is a hairline raked over to the right — the slash in the
   reference mark-up, drawn without shipping an SVG per crumb. */
.tc-tb-bc-sep {
  width: 1.5px; height: 13px; flex-shrink: 0;
  background: var(--b2); border-radius: 1px;
  transform: rotate(20deg);
}
.tc-tb-breadcrumb .tc-tb-bc-page { color: var(--blue); font-weight: 600; }

/* Action buttons */
.tc-tb-action-btn {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); transition: all var(--tf); position: relative;
}
.tc-tb-action-btn:hover { background: var(--s2); color: var(--t1); }
.tc-tb-notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
  border: 1.5px solid var(--bg); display: none;
}
.tc-tb-notif-dot.show { display: block; }
.tc-tb-vsep { width: 1px; height: 18px; background: var(--b1); margin: 0 2px; }
.tc-tb-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; border-radius: 20px;
  cursor: pointer; border: 1px solid transparent; background: transparent;
  transition: all var(--tf); color: var(--t1); font-family: var(--font);
}
.tc-tb-user-btn:hover { background: var(--s2); border-color: var(--b1); }
.tc-tb-user-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-g);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: white; flex-shrink: 0; overflow: hidden;
}
.tc-tb-user-info { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.tc-tb-user-name { font-size: 12px; font-weight: 600; line-height: 1; max-width: 90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tc-tb-user-role { font-size: 9px; color: var(--t3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .5px; line-height: 1; }

/* Dropdown items */
.tc-dd-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 12px; color: var(--t1);
  text-decoration: none; cursor: pointer; transition: background var(--tf);
  font-family: var(--font);
}
.tc-dd-item:hover { background: var(--s2); }
.tc-dd-danger { color: var(--red); }
.tc-dd-danger:hover { background: var(--red-d); }

.tc-tb-hamburger {
  display: none; width: 36px; height: 36px;
  border: none; background: transparent;
  cursor: pointer; color: var(--t1); font-size: 18px;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tc-tb-hamburger:hover { background: var(--s2); }

/* Desktop: brand visible, hamburger hidden */
@media (min-width: 901px) {
  .tc-tb-brand { display: flex; }
  .tc-tb-hamburger { display: none !important; }
}
/* Mobile: brand hidden, hamburger visible */
@media (max-width: 900px) {
  .tc-tb-brand { display: none; }
  .tc-tb-hamburger { display: flex; }
  .tc-tb-sep { display: none; }
}

/* ── CONTENT ──────────────────────────── */
.tc-content { flex: 1; padding: 20px 22px 48px; }

/* ══════════════════════════════════════════
   BOTTOM DOCK (mobile)
══════════════════════════════════════════ */
.tc-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid var(--b1);
  z-index: 210; align-items: stretch;  /* ← 200 → 210 */
}
.tc-bn-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; cursor: pointer;
  color: var(--t3); border: none; background: transparent;
  font-family: var(--font); padding: 6px 4px;
  transition: color var(--tf); position: relative;
}
.tc-bn-item:hover,
.tc-bn-item.active { color: var(--blue); }
.tc-bn-item.active .tc-bn-icon { background: var(--blue-d); }
.tc-bn-icon {
  width: 32px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; transition: background var(--tn);
  border-radius: 10px;
}
.tc-bn-label { font-size: 9px; font-weight: 700; font-family: var(--mono); text-transform: uppercase; letter-spacing: .5px; }
.tc-bn-badge {
  position: absolute; top: 4px; right: calc(50% - 18px);
  background: var(--red); color: white;
  font-size: 8px; font-weight: 800;
  min-width: 14px; height: 14px; border-radius: 7px;
  display: none; align-items: center; justify-content: center;
  padding: 0 3px; border: 1.5px solid var(--bg); font-family: var(--mono);
}
.tc-bn-badge.on { display: flex; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-md);
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: none; font-family: var(--font);
  transition: all var(--tn); white-space: nowrap; text-decoration: none;
  letter-spacing: .1px;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--blue-g); color: white;
  box-shadow: var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.10);
}
.btn-primary:hover {
  box-shadow: 0 0 48px rgba(92,126,255,.45), inset 0 1px 0 rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.btn-ghost { background: var(--s2); color: var(--t2); border: 1px solid var(--b1); }
.btn-ghost:hover { color: var(--t1); border-color: var(--b2); background: var(--s3); }

.btn-success { background: linear-gradient(135deg, var(--green), #059669); color: white; }
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(16,217,160,.28); }

.btn-danger { background: var(--red-d); color: var(--red); border: 1px solid rgba(240,92,106,.25); }
.btn-danger:hover { background: var(--red); color: white; }

.btn-amber,
.btn-gold {
  background: linear-gradient(135deg, #F5A623, #D97706); color: #1A0800;
}
.btn-amber:hover,
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(245,166,35,.30); }

.btn-violet {
  background: var(--violet-g); color: white;
  box-shadow: 0 0 24px rgba(139,92,246,.22);
}
.btn-violet:hover { box-shadow: 0 0 40px rgba(139,92,246,.40); transform: translateY(-1px); }

.btn-sm   { padding: 5px 10px; font-size: 11px; border-radius: var(--r-sm); }
.btn-lg   { padding: 11px 22px; font-size: 13px; border-radius: var(--r-lg); }
.btn-icon { padding: 7px; border-radius: var(--r-sm); }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════
   FORM INPUTS
══════════════════════════════════════════ */
.field { margin-bottom: 14px; }
.label {
  display: block; font-size: 10px; font-weight: 700; color: var(--t2);
  margin-bottom: 5px; letter-spacing: 1px; text-transform: uppercase;
  font-family: var(--mono);
}
.input {
  width: 100%; background: var(--s2); border: 1px solid var(--b1);
  border-radius: var(--r-md); padding: 9px 12px;
  font-size: 12px; color: var(--t1); font-family: var(--font);
  outline: none; transition: border-color var(--tn), box-shadow var(--tn), background var(--tn);
  -webkit-appearance: none;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-d); background: var(--s3); }
.input::placeholder { color: var(--t3); }
.input.error { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-d); }

.select {
  width: 100%; background: var(--s2); border: 1px solid var(--b1);
  border-radius: var(--r-md); padding: 9px 12px;
  font-size: 12px; color: var(--t1); font-family: var(--font);
  outline: none; cursor: pointer; -webkit-appearance: none;
  transition: border-color var(--tn);
}
.select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-d); }
.select option { background: var(--s2); }

.textarea {
  width: 100%; background: var(--s2); border: 1px solid var(--b1);
  border-radius: var(--r-md); padding: 9px 12px;
  font-size: 12px; color: var(--t1); font-family: var(--font);
  outline: none; resize: vertical; transition: border-color var(--tn);
}
.textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-d); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

/* ── TOGGLE ───────────────────────────── */
.toggle {
  position: relative; width: 40px; height: 22px;
  cursor: pointer; display: inline-flex; align-items: center; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--s4); border: 1px solid var(--b2);
  border-radius: 11px; transition: all var(--tn);
}
.toggle input:checked ~ .toggle-track { background: var(--blue); border-color: var(--blue); }
.toggle-thumb {
  position: absolute; left: 3px; top: 3px;
  width: 14px; height: 14px; background: white; border-radius: 50%;
  transition: transform var(--tn); box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(18px); }

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--r-lg); position: relative; overflow: hidden;
  transition: border-color var(--tf), box-shadow var(--tn);
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(92,126,255,.03) 0%, transparent 60%);
  pointer-events: none;
}
.card:hover { border-color: var(--b2); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.card-header {
  padding: 13px 16px; border-bottom: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 13px; font-weight: 700; letter-spacing: -.1px; }
.card-sub   { font-size: 11px; color: var(--t2); margin-top: 2px; }
.card-body  { padding: 14px 16px; }

/* ── STAT CARDS ───────────────────────── */
.stat {
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--r-lg); padding: 16px;
  position: relative; overflow: hidden; transition: all var(--tn);
}
.stat:hover { border-color: var(--b2); transform: translateY(-2px); box-shadow: var(--sh-md); }
.stat::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.stat.blue::after   { background: var(--blue-g); }
.stat.green::after  { background: linear-gradient(90deg, var(--green), #059669); }
.stat.amber::after  { background: linear-gradient(90deg, var(--amber), #D97706); }
.stat.purple::after { background: linear-gradient(90deg, var(--purple), #6D28D9); }
.stat.red::after    { background: linear-gradient(90deg, var(--red), #DC2626); }
.stat.teal::after   { background: linear-gradient(90deg, var(--teal), #0E7490); }
.stat.violet::after { background: var(--violet-g); }
.stat-icon  { font-size: 18px; margin-bottom: 10px; }
.stat-num   {
  font-size: 28px; font-weight: 800; font-family: var(--mono);
  letter-spacing: -1px; line-height: 1; margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 9px; color: var(--t2); text-transform: uppercase; letter-spacing: 1.2px; font-family: var(--mono); }
.stat-delta { font-size: 10px; font-family: var(--mono); margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat-grid  { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  font-family: var(--mono); letter-spacing: .4px; white-space: nowrap;
}
.badge-blue   { background: var(--blue-d);   color: var(--blue);   border: 1px solid rgba(92,126,255,.20); }
.badge-green  { background: var(--green-d);  color: var(--green);  border: 1px solid rgba(16,217,160,.20); }
.badge-amber  { background: var(--amber-d);  color: var(--amber);  border: 1px solid rgba(245,166,35,.20); }
.badge-red    { background: var(--red-d);    color: var(--red);    border: 1px solid rgba(240,92,106,.20); }
.badge-purple { background: var(--purple-d); color: var(--purple); border: 1px solid rgba(167,139,250,.20); }
.badge-violet { background: var(--violet-d); color: var(--violet); border: 1px solid rgba(139,92,246,.20); }
.badge-teal   { background: var(--teal-d);   color: var(--teal);   border: 1px solid rgba(34,211,238,.20); }
.badge-muted  { background: var(--s3);       color: var(--t2);     border: 1px solid var(--b2); }
/* Legacy aliases */
.b-green  { background: var(--green-d);  color: var(--green);  border: 1px solid rgba(16,217,160,.20); }
.b-amber  { background: var(--amber-d);  color: var(--amber);  border: 1px solid rgba(245,166,35,.20); }
.b-red    { background: var(--red-d);    color: var(--red);    border: 1px solid rgba(240,92,106,.20); }
.b-blue   { background: var(--blue-d);   color: var(--blue);   border: 1px solid rgba(92,126,255,.20); }
.b-muted  { background: var(--s3);       color: var(--t2);     border: 1px solid var(--b2); }
.b-gold   { background: var(--gold-d);   color: var(--gold);   border: 1px solid rgba(245,166,35,.20); }

/* ══════════════════════════════════════════
   TABLES
══════════════════════════════════════════ */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  padding: 8px 14px; text-align: left;
  font-size: 9px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: 1.2px;
  font-family: var(--mono);
  border-bottom: 1px solid var(--b1);
  background: var(--s2); white-space: nowrap;
}
.tbl td {
  padding: 10px 14px; font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.025);
  vertical-align: middle; transition: background var(--tf);
}
[data-theme="light"] .tbl td { border-bottom-color: rgba(0,0,0,.04); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(92,126,255,.04); }

/* ══════════════════════════════════════════
   MODALS & OVERLAYS
══════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  z-index: 600;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.overlay.open { display: flex; }
.modal {
  background: var(--s1); border: 1px solid var(--b2);
  border-radius: var(--r-xl); width: 100%;
  overflow: hidden; display: flex; flex-direction: column;
  animation: tcModal .22s cubic-bezier(.34,1.4,.64,1);
  box-shadow: var(--sh-xl); max-height: 90dvh;
}
@keyframes tcModal {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  background: var(--s2); border-bottom: 1px solid var(--b1);
  padding: 14px 18px; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}
.modal-title { font-size: 14px; font-weight: 700; letter-spacing: -.1px; }
.modal-close {
  width: 26px; height: 26px; background: var(--s3);
  border: 1px solid var(--b1); color: var(--t2);
  border-radius: var(--r-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all var(--tf);
}
.modal-close:hover { color: var(--t1); border-color: var(--b2); background: var(--s4); }
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 13px 18px; border-top: 1px solid var(--b1);
  display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   ALERTS
══════════════════════════════════════════ */
.alert {
  border-radius: var(--r-md); padding: 10px 13px;
  font-size: 12px; margin-bottom: 12px;
  display: none; align-items: center; gap: 8px; line-height: 1.5;
}
.alert.show    { display: flex; }
.alert-error   { background: var(--red-d);   border: 1px solid rgba(240,92,106,.25); color: var(--red); }
.alert-success { background: var(--green-d); border: 1px solid rgba(16,217,160,.25);  color: var(--green); }
.alert-warning { background: var(--amber-d); border: 1px solid rgba(245,166,35,.25);  color: var(--amber); }
.alert-info    { background: var(--blue-d);  border: 1px solid rgba(92,126,255,.25);  color: var(--blue); }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
#tc-toast {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  right: 20px;
  background: var(--s2); border: 1px solid var(--b2);
  border-radius: var(--r-lg); padding: 11px 16px; font-size: 12px;
  display: none; align-items: center; gap: 8px;
  box-shadow: var(--sh-xl); max-width: 360px;
  z-index: 9999;
  backdrop-filter: blur(16px) saturate(140%);
  animation: tcToast .18s ease;
}
#tc-toast.show { display: flex; }
@keyframes tcToast {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   LOADING / CONNECTING
══════════════════════════════════════════ */
#tc-connecting {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; z-index: 9999; transition: opacity .3s;
}
#tc-connecting.hidden { opacity: 0; pointer-events: none; }
.tc-conn-mark {
  width: 48px; height: 48px; background: var(--blue-g);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: white;
  box-shadow: var(--blue-glow);
  animation: tcPulse 2.4s ease-in-out infinite;
}
@keyframes tcPulse {
  0%,100% { box-shadow: var(--blue-glow); }
  50%     { box-shadow: 0 0 56px rgba(92,126,255,.55), 0 0 16px rgba(92,126,255,.25); }
}
.tc-spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--b2); border-top-color: var(--blue);
  border-radius: 50%; animation: tcSpin .75s linear infinite;
}
.tc-spinner-sm {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.2); border-top-color: white;
  border-radius: 50%; animation: tcSpin .75s linear infinite; display: inline-block;
}
@keyframes tcSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .tc-spinner, .tc-spinner-sm, .tc-conn-mark { animation: none; }
}

/* ══════════════════════════════════════════
   EMPTY STATES
══════════════════════════════════════════ */
.empty {
  padding: 56px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-icon  { font-size: 38px; opacity: .6; }
.empty-title { font-size: 14px; font-weight: 600; color: var(--t2); }
.empty-sub   { font-size: 12px; color: var(--t3); }

/* ══════════════════════════════════════════
   SECTION BLOCKS
══════════════════════════════════════════ */
.section {
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px;
}
.section-header {
  padding: 11px 16px; border-bottom: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: space-between;
}
.section-title { font-size: 12px; font-weight: 700; letter-spacing: -.1px; }

/* ══════════════════════════════════════════
   FLOATING FAB
══════════════════════════════════════════ */
#cb-fab {
  position: fixed; bottom: 80px; right: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-g); border: none; color: white;
  font-size: 20px; cursor: pointer; z-index: 400;
  box-shadow: 0 0 28px rgba(92,126,255,.38);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
#cb-fab:hover { transform: scale(1.08); box-shadow: 0 0 40px rgba(92,126,255,.52); }

/* ══════════════════════════════════════════
   PROGRESS BARS
══════════════════════════════════════════ */
.prog-wrap { height: 5px; background: var(--s3); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }
.prog-blue   { background: var(--blue-g); }
.prog-green  { background: linear-gradient(90deg, var(--green), #059669); }
.prog-amber  { background: linear-gradient(90deg, var(--amber), #D97706); }
.prog-violet { background: var(--violet-g); }

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.mono          { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.text-blue     { color: var(--blue); }
.text-green    { color: var(--green); }
.text-amber    { color: var(--amber); }
.text-red      { color: var(--red); }
.text-purple   { color: var(--purple); }
.text-violet   { color: var(--violet); }
.text-teal     { color: var(--teal); }
.text-muted    { color: var(--t2); }
.text-dim      { color: var(--t3); }
.w-full        { width: 100%; }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex          { display: flex; align-items: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.divider { height: 1px; background: var(--b1); margin: 14px 0; }
.mb-0 { margin-bottom: 0 !important; }
.p-0  { padding: 0 !important; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .tc-sidebar { transform: translateX(-100%); box-shadow: none; }
  .tc-sidebar.open { transform: translateX(0); box-shadow: var(--sh-xl); }
  .tc-sb-overlay.open { display: block; }
  .tc-main { margin-left: 0; }
  .tc-bottom-nav { display: flex; }
  .tc-content { padding-bottom: calc(var(--bottom-nav-h) + 20px + env(safe-area-inset-bottom)); }
  .tc-tb-hamburger { display: flex; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .modal {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    align-self: flex-end; max-height: 95dvh;
  }
  #tc-toast { right: 12px; left: 12px; max-width: none; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .tc-content { padding: 14px 14px 100px; }
}

/* Job 360 look: the sidebar owns the brand, so the desktop topbar shows only
   the page context (breadcrumb) + actions — matches /job360's clean top bar.
   The redundant topbar brand mark/name/separator is hidden (kept in markup so
   the mobile hamburger row is untouched). */
@media (min-width: 901px) {
  body > .tc-topbar .tc-tb-brand,
  body > .tc-topbar .tc-tb-sep { display: none !important; }
  body > .tc-topbar .tc-tb-breadcrumb { padding-left: 20px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   NIMRYX OFFICE NAVIGATION — iOS-inspired rail
   Office shell only. Transporter Portal uses its own isolated UI bundle.
   ═══════════════════════════════════════════════════════════════════════════ */
.tc-sidebar {
  width: var(--sidebar-w, 264px);
  background: rgba(250,250,252,.94);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-right: 1px solid rgba(15,23,42,.08);
  box-shadow: 8px 0 30px rgba(15,23,42,.025);
  transition: width 220ms cubic-bezier(.2,.8,.2,1), transform 220ms cubic-bezier(.2,.8,.2,1);
}
.tc-sb-header {
  min-height: 64px;
  padding: 12px 12px 12px 14px;
  gap: 10px;
  background: linear-gradient(180deg, rgba(10,132,255,.055), rgba(10,132,255,0));
  border-bottom: 1px solid rgba(15,23,42,.07);
}
.tc-sb-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: #0A84FF;
  box-shadow: 0 5px 14px rgba(10,132,255,.18);
  font-size: 14px;
}
.tc-sb-name { font-size: 15px; font-weight: 750; letter-spacing: -.28px; }
.tc-sb-sub { font-size: 10.5px; margin-top: 2px; color: var(--t3); }
.tc-sb-collapse {
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(127,127,127,.07);
}
.tc-sb-collapse:hover { background: rgba(10,132,255,.10); color: #0A84FF; }
.tc-sb-nav {
  padding: 10px 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100,116,139,.34) transparent;
}
.tc-sb-nav::-webkit-scrollbar { width: 6px; }
.tc-sb-nav::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,.32);
  border: 1px solid transparent;
  background-clip: content-box;
}
.tc-sb-section {
  position: static;
  padding: 16px 12px 6px;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  color: #9AA3B2;
}
.tc-nav-item,
.tc-nav-locked {
  min-height: 44px;
  margin-bottom: 3px;
  padding: 9px 12px;
  gap: 12px;
  border-radius: 13px;
  font-size: 13.5px;
  transition: background 130ms ease, color 130ms ease, transform 130ms ease, box-shadow 130ms ease;
}
.tc-nav-item:hover {
  background: rgba(127,127,127,.07);
  transform: translateX(1px);
}
.tc-nav-item:active { transform: scale(.985); }
.tc-nav-item.active {
  background: rgba(10,132,255,.11);
  color: #0A84FF;
  box-shadow: inset 0 0 0 1px rgba(10,132,255,.08), 0 3px 10px rgba(10,132,255,.05);
}
.tc-nav-item.active::before { display:none; }
.tc-nav-icon { width: 20px; height: 20px; color: #667085; }
.tc-nav-icon svg { width: 20px; height: 20px; }
.tc-nav-item.active .tc-nav-icon { color: #0A84FF; }
.tc-sb-footer {
  padding: 9px 10px 11px;
  border-top: 1px solid rgba(15,23,42,.07);
  background: rgba(127,127,127,.025);
}
.tc-sb-profile { min-height: 44px; padding: 7px 8px; border-radius: 13px; }
.tc-sb-profile:hover { background: rgba(127,127,127,.07); }
.tc-sb-avatar { width: 34px; height: 34px; background: #E4E7EC; color:#344054; }
.tc-sidebar.collapsed { width: var(--sidebar-w, 72px); }
.tc-sidebar.collapsed .tc-sb-header { justify-content:center; padding-left:8px; padding-right:8px; }
.tc-sidebar.collapsed .tc-sb-mark { width: 38px; height: 38px; }
.tc-sidebar.collapsed .tc-sb-collapse {
  position:absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 30px;
  border: 1px solid rgba(15,23,42,.07);
  background: rgba(250,250,252,.96);
  box-shadow: 0 5px 18px rgba(15,23,42,.09);
  z-index: 4;
}
.tc-sidebar.collapsed .tc-sb-collapse svg { transform: rotate(180deg); }
.tc-sidebar.collapsed .tc-sb-nav { padding-top: 42px; padding-left:8px; padding-right:8px; }
.tc-sidebar.collapsed .tc-sb-section,
.tc-sidebar.collapsed .tc-sb-divider { display:none; }
.tc-sidebar.collapsed .tc-nav-item,
.tc-sidebar.collapsed .tc-nav-locked {
  width: 46px;
  min-height: 46px;
  margin: 2px auto 4px;
  padding:0;
  justify-content:center;
  border-radius: 14px;
}
.tc-sidebar.collapsed .tc-nav-item.active {
  box-shadow: inset 0 0 0 1px rgba(10,132,255,.12), 0 4px 12px rgba(10,132,255,.07);
}
[data-theme="dark"] .tc-sidebar,
[data-theme="midnight"] .tc-sidebar,
[data-theme="ocean"] .tc-sidebar {
  background: rgba(12,14,20,.94);
  border-right-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .tc-sb-collapse,
[data-theme="midnight"] .tc-sb-collapse,
[data-theme="ocean"] .tc-sb-collapse {
  background: rgba(255,255,255,.06);
}
@media (max-width:900px) {
  .tc-sidebar {
    width: min(320px, 88vw) !important;
    border-radius: 0 24px 24px 0;
    box-shadow: 18px 0 60px rgba(15,23,42,.22);
  }
  .tc-sidebar.collapsed { width: min(320px, 88vw) !important; }
  .tc-sidebar.collapsed .tc-sb-brand,
  .tc-sidebar.collapsed .tc-nav-label,
  .tc-sidebar.collapsed .tc-sb-profile-info,
  .tc-sidebar.collapsed .tc-sb-profile-chevron { display:flex; }
  .tc-sidebar.collapsed .tc-sb-section { display:block; }
  .tc-sidebar.collapsed .tc-sb-collapse { display:none; }
  .tc-sidebar.collapsed .tc-sb-nav { padding:10px 10px 14px; }
  .tc-sidebar.collapsed .tc-nav-item,
  .tc-sidebar.collapsed .tc-nav-locked {
    width:100%; min-height:44px; padding:9px 12px; margin-bottom:3px; justify-content:flex-start;
  }
}
