/* Auto-generated from reference/strategic_designs_dashboard.before-today.dark.html — run: npm run sync:themes */
/* Do not edit by hand. */

:root {
  --bg: #141416;
  --bg-elevated: #222226;
  --surface: #222226;
  --surface-secondary: #1a1a1d;
  --surface-soft: #2c2c30;
  --ink: #F3F3F5;
  --ink-secondary: #B8B8BE;
  --ink-tertiary: #8A8A92;
  --line: rgba(255,255,255,.1);
  --line-strong: rgba(255,255,255,.16);
  --glass: rgba(34,34,38,.78);
  --glass-strong: rgba(34,34,38,.92);
  --glass-border: rgba(255,255,255,.12);
  --glass-shadow: 0 10px 32px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
  --blue: #6b93c4;
  --blue-hover: #82a6d0;
  --blue-soft: rgba(107,147,196,.12);
  --blue-mid: rgba(107,147,196,.2);
  --green: #45c47a;
  --green-ink: #8fe0b0;
  --amber: #e2b04a;
  --amber-ink: #f0d08a;
  --red: #e8706a;
  --red-ink: #f0a09c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.32), 0 1px 3px rgba(0,0,0,.22);
  --shadow-md: 0 6px 18px rgba(0,0,0,.36), 0 1px 4px rgba(0,0,0,.24);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.48), 0 2px 10px rgba(0,0,0,.3);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --sidebar-w: 240px;
  --sidebar-rail-w: 72px;
  --chat-w: 380px;
  --chat-h: min(580px, calc(100dvh - 110px));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.25,.1,.25,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.3,.64,1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px; /* readability on dark */
  line-height: 1.55;
  letter-spacing: 0;
  word-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
/* Night — true neutral charcoal (no plum / blue cast) */
.ambiance {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 50% at 90% 4%, rgba(255,255,255,.05) 0%, rgba(60,60,64,.2) 30%, transparent 58%),
    radial-gradient(ellipse 70% 45% at 12% 90%, rgba(0,0,0,.35) 0%, transparent 52%),
    linear-gradient(180deg, #18181b 0%, #141416 45%, #101012 100%);
}
.ambiance-sun {
  position: absolute;
  right: max(72px, 5vw);
  top: 28px;
  left: auto;
  width: 88px;
  height: 88px;
  transform: scale(.85);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.28) 0%, rgba(180,180,186,.1) 42%, transparent 72%);
  box-shadow:
    0 0 40px 14px rgba(255,255,255,.04),
    0 0 80px 36px rgba(0,0,0,.2);
  opacity: 0;
  contain: strict;
  transition: opacity 1.2s var(--ease-out) .1s, transform 1.4s var(--spring) .1s;
}
body.is-ready .ambiance-sun {
  opacity: .38;
  transform: scale(1);
}
.ambiance-flare {
  position: absolute;
  right: -8%;
  top: -12%;
  left: auto;
  width: 120vw;
  height: 70vh;
  transform: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 78% 52% at 90% 16%, rgba(255,255,255,.04) 0%, rgba(60,60,64,.08) 28%, transparent 58%);
  opacity: 0;
  contain: strict;
  transition: opacity 1.4s var(--ease-out) .15s;
}
body.is-ready .ambiance-flare { opacity: .65; }
.ambiance-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), rgba(60,60,64,.08) 55%, transparent 70%);
  animation: orb-drift 28s ease-in-out infinite alternate;
  contain: strict;
  transition: opacity .9s var(--ease-out);
}
body.is-ready .ambiance-orb.a { opacity: .14; transition-delay: .3s; }
body.is-ready .ambiance-orb.b { opacity: .1; transition-delay: .45s; }
body.is-ready .ambiance-orb.c { opacity: .08; transition-delay: .6s; }
.ambiance-orb.a {
  width: 70px; height: 70px;
  right: 18%; left: auto; top: 14%;
}
.ambiance-orb.b {
  width: 44px; height: 44px;
  right: 32%; left: auto; top: 28%;
  animation-delay: -8s;
}
.ambiance-orb.c {
  width: 28px; height: 28px;
  right: 48%; left: auto; top: 42%;
  animation-delay: -16s;
}
@keyframes orb-drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(10px,18px,0) scale(1.08); }
}

.app { position: relative; z-index: auto; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0,104,209,.4);
  outline-offset: 2px;
}

/* —— Layout —— */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  transition: grid-template-columns .32s var(--ease);
}

/* —— Sidebar —— */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  min-width: 0;
  padding: 20px 12px 20px;
  border-right: 1px solid var(--line);
  background: #1a1a1d;
  border-right-color: var(--line);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow: hidden;
  transition: width .32s var(--ease), padding .32s var(--ease);
}
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 118px;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.nav { display: grid; gap: 2px; }
.nav a,
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover,
.nav button:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.nav a:hover .ico,
.nav button:hover .ico {
  background: rgba(255,255,255,.08);
  color: var(--ink);
}
.nav a.active,
.nav button.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}
.nav a.active .ico,
.nav button.active .ico {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(107,147,196,.2);
}
.nav .ico,
.sidebar-toggle .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(34,34,38,.5);
  color: #3d4a5a;
  border: 1px solid var(--line);
  transition: background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  background: transparent;
  border: 0;
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: left;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sidebar-toggle:hover {
  background: rgba(255,255,255,.06);
  color: var(--ink);
}
.sidebar-toggle:hover .ico {
  background: rgba(255,255,255,.1);
  color: var(--ink);
}
.sidebar-toggle .ico .icon-svg {
  transition: transform .28s var(--ease);
}
.sidebar-toggle-label { line-height: 1.3; }
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.menu-toggle:hover {
  background: rgba(255,255,255,.1);
  color: var(--ink);
}
/* Desktop: icon rail (not fully hidden) */
@media (min-width: 901px) {
  body.nav-collapsed {
    --sidebar-w: var(--sidebar-rail-w);
  }
  body.nav-collapsed .sidebar {
    width: var(--sidebar-rail-w);
    padding: 16px 8px;
  }
  body.nav-collapsed .sidebar-toggle {
    width: auto;
    justify-content: center;
    align-self: center;
    margin-top: 8px;
    padding: 10px 6px;
    gap: 0;
    font-size: 0;
  }
  body.nav-collapsed .sidebar-toggle .ico .icon-svg {
    transform: rotate(180deg);
  }
  body.nav-collapsed .sidebar-toggle-label {
    display: none;
  }
  body.nav-collapsed .brand {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.nav-collapsed .nav a,
.nav button {
    justify-content: center;
    gap: 0;
    padding: 10px 6px;
    font-size: 0;
    letter-spacing: 0;
  }
  body.nav-collapsed .nav a .ico,
  body.nav-collapsed .nav button .ico {
    margin: 0;
  }
}

/* —— Main —— */
main {
  min-width: 0;
  padding: 24px 32px 48px;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  overflow: visible;
  /* keep chrome out of .reveal filter/transform — that clipped the notify panel */
  opacity: 1;
  transform: none;
  filter: none;
}
.search {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.search input {
  width: 100%;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  border-radius: 16px;
  padding: 12px 52px 12px 42px;
  outline: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s;
}
.search input::placeholder {
  color: #6f7d8c;
  font-weight: 450;
}
.search input:hover {
  background: var(--glass-strong);
  border-color: var(--glass-border);
}
.search input:focus {
  background: rgba(34,34,38,.95);
  border-color: rgba(0,104,209,.35);
  box-shadow: 0 0 0 4px var(--blue-soft), var(--glass-shadow);
}
.search .mag {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #3d4a5a;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #4d5b6c;
  background: rgba(34,34,38,.7);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-secondary);
}
.avatar {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #536684, #98A9C4);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(40,80,120,.2);
}
.profile {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
  padding: 4px 10px 4px 4px;
  border-radius: 980px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.profile .chev { color: var(--ink-tertiary); font-size: 11px; }

.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.heading h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0;
}
.heading h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.85em);
  transition: opacity .65s var(--ease-out), transform .8s var(--spring);
  transition-delay: calc(var(--wi, 0) * 70ms + 140ms);
}
body.is-ready .heading h1 .word {
  opacity: 1;
  transform: none;
}
.heading p {
  margin: 10px 0 0;
  color: var(--ink-secondary);
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.5;
  max-width: 48ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s var(--ease-out) .42s, transform .55s var(--ease-out) .42s;
}
body.is-ready .heading p {
  opacity: 1;
  transform: none;
}
.live-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 12px 7px 10px;
  border-radius: 980px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s var(--ease-out) .58s, transform .55s var(--ease-out) .58s;
}
body.is-ready .live-strip { opacity: 1; transform: none; }
.live-strip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(47,158,79,.45);
  animation: live-dot 2s ease-out infinite;
}
@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgba(47,158,79,.4); }
  70% { box-shadow: 0 0 0 6px rgba(47,158,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,158,79,0); }
}
.date-pill {
  border: 1px solid var(--glass-border);
  border-radius: 980px;
  background: var(--glass);
  padding: 10px 16px;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease-out) .35s, transform .55s var(--ease-out) .35s;
}
body.is-ready .date-pill { opacity: 1; transform: none; }

/* Dashboard-native AI “new chat” */
.dash-ask {
  margin: -8px 0 22px;
  padding: 14px 14px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-sm);
}
.dash-ask-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dash-ask-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-secondary);
  letter-spacing: 0;
}
.dash-ask-label .mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #82a6d0 0%, #6b93c4 55%, #9eb4cc 130%);
  box-shadow: 0 0 0 3px rgba(107,147,196,.11), 0 4px 10px rgba(107,147,196,.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  animation: ai-orb-live 3.2s ease-in-out infinite;
}
.dash-ask-label .mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.45), transparent 45%);
  pointer-events: none;
}
.dash-ask-label .mark svg {
  width: 13px;
  height: 13px;
  fill: #fff;
  stroke: none;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0,40,100,.25));
}
.dash-ask-new {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-secondary);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 550;
  transition: background .15s, color .15s, border-color .15s;
}
.dash-ask-new:hover {
  background: var(--blue-soft);
  border-color: rgba(107,147,196,.16);
  color: var(--blue);
}
.dash-ask-box {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(34,34,38,.65);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.dash-ask-box:focus-within {
  background: var(--glass-strong);
  border-color: rgba(0,104,209,.35);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.dash-ask-box textarea {
  flex: 1;
  border: 0;
  outline: 0;
  resize: none;
  min-height: 34px;
  max-height: 96px;
  height: 34px;
  background: transparent;
  font-size: 14px;
  line-height: 34px;
  letter-spacing: .01em;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}
.dash-ask-box textarea::placeholder {
  color: var(--ink-tertiary);
  line-height: 34px;
}
.dash-ask-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  align-self: center;
}
.dash-ask-mic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--ink-secondary);
  background: transparent;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
}
.dash-ask-mic:hover {
  background: rgba(255,255,255,.08);
  color: var(--ink);
}
.dash-ask-mic.listening {
  color: var(--red);
  background: var(--red-soft, rgba(240,53,43,.1));
}
.dash-ask-send {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .15s, transform .12s;
}
.dash-ask-send:hover { background: var(--blue-hover); }
.dash-ask-send:active { transform: scale(.95); }
.dash-ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.dash-ask-chips .ai-chip {
  font-size: 12px;
  padding: 6px 10px;
}
@media (max-width: 640px) {
  .dash-ask { margin-bottom: 16px; padding: 12px; }
  .date-pill { display: none; }
}

/* —— Cards —— */
.card {
  background: #222226;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* —— Work updates (ops feed by lane) —— */
.status-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.lane-card {
  --lane: #6b93c4;
  text-align: left;
  padding: 14px 14px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  min-width: 0;
  display: flex;
  flex-direction: column;
  contain: layout paint;
  opacity: 0;
  transform: translateY(22px) scale(.97);
  transition: border-color .15s, box-shadow .15s;
}
body.is-ready .lane-card {
  animation: rise-in .75s var(--spring) both;
}
body.is-ready .lane-card:nth-child(1) { animation-delay: 220ms; }
body.is-ready .lane-card:nth-child(2) { animation-delay: 300ms; }
body.is-ready .lane-card:nth-child(3) { animation-delay: 380ms; }
@keyframes rise-in {
  to { opacity: 1; transform: none; }
}
.lane-card[data-lane="sales"] { --lane: #6b93c4; }
.lane-card[data-lane="jobs"] { --lane: #c47b0a; }
.lane-card[data-lane="money"] { --lane: #248a3d; }
.lane-card.active {
  border-color: rgba(107,147,196,.2);
  box-shadow: 0 0 0 2px var(--blue-soft);
}
.lane-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 0 10px;
  margin: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
}
.lane-top::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lane);
  flex-shrink: 0;
  align-self: center;
}
.lane-ico { display: none; }
.lane-top-text { min-width: 0; flex: 1; }
.lane-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.2;
}
.lane-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-tertiary);
}
.lane-count {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
}
.lane-updates {
  display: grid;
  gap: 0;
}
.wu-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .12s;
}
.wu-item:last-child { border-bottom: 0; }
.wu-item:hover { background: rgba(107,147,196,.06); }
.wu-item.tone-hot .wu-title { color: var(--red-ink); }
.wu-item.tone-hot .wu-time { color: var(--red-ink); }
.wu-item.tone-warn .wu-time { color: var(--amber-ink); }
.wu-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-tertiary);
  white-space: nowrap;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}
.wu-main { min-width: 0; }
.wu-title {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--ink);
}
.wu-title .jid {
  color: #D8D8DC;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wu-desc {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-tertiary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wu-cta {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 650;
  padding: 2px 10px 0 4px;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s;
}
.wu-item:hover .wu-cta,
.wu-item:focus-within .wu-cta { opacity: 1; }
.wu-cta:hover { text-decoration: underline; }
.wu-cta.ghost { color: var(--ink-secondary); }
.wu-pill,
.wu-head,
.wu-foot { display: none; }

.workspace { display: grid; gap: 14px; }
.section { padding: 20px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--ink-tertiary);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.45;
}

/* —— Ops split: Job status + Needs you —— */
.ops-split {
  display: grid;
  grid-template-columns: 1.45fr minmax(280px, 1fr);
  gap: 14px;
  align-items: stretch;
}
.ops-split > .card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ops-split .section-head { margin-bottom: 12px; }

/* Job status */
.job-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}
.job-stage {
  --stage: #6b93c4;
  --stage-soft: rgba(107,147,196,.11);
  text-align: left;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
body.is-ready .job-stage {
  animation: rise-in .7s var(--spring) both;
}
body.is-ready .job-stage:nth-child(1) { animation-delay: 360ms; }
body.is-ready .job-stage:nth-child(2) { animation-delay: 420ms; }
body.is-ready .job-stage:nth-child(3) { animation-delay: 480ms; }
body.is-ready .job-stage:nth-child(4) { animation-delay: 540ms; }
body.is-ready .job-stage:nth-child(5) { animation-delay: 600ms; }
body.is-ready .job-stage:nth-child(6) { animation-delay: 660ms; }
.job-stage:hover {
  border-color: rgba(255,255,255,.18);
  box-shadow: var(--shadow-sm);
}
.job-stage.active {
  --stage: #6b93c4;
  --stage-soft: rgba(107,147,196,.11);
  border-color: rgba(107,147,196,.2);
  background: linear-gradient(180deg, rgba(107,147,196,.09), #222226 70%);
  box-shadow: inset 0 0 0 1px rgba(107,147,196,.09);
}
.job-stage.done {
  --stage: #3ecf6a;
  --stage-soft: rgba(62,207,106,.16);
  border-color: rgba(62,207,106,.28);
  background: linear-gradient(180deg, rgba(62,207,106,.12), #222226 70%);
}
.job-stage .js-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.job-stage .js-ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--stage-soft);
  color: var(--stage);
  flex-shrink: 0;
}
.job-stage.active .js-ico,
.job-stage.done .js-ico {
  background: var(--stage);
  color: #fff;
}
.job-stage .js-ico .icon-svg { width: 16px; height: 16px; }
.job-stage .js-step {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  background: rgba(255,255,255,.08);
  border-radius: 980px;
  padding: 3px 7px;
}
.job-stage.active .js-step {
  color: var(--blue);
  background: rgba(107,147,196,.11);
}
.job-stage.done .js-step {
  color: var(--green-ink);
  background: rgba(62,207,106,.16);
}
.job-stage .js-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-stage .js-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.job-stage .js-count {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.job-stage.active .js-count { color: var(--blue); }
.job-stage.done .js-count { color: var(--green-ink); }
.job-stage .js-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-tertiary);
  text-align: right;
  line-height: 1.3;
}
.job-stage .js-bar {
  height: 5px;
  border-radius: 980px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.job-stage .js-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 980px;
  background: linear-gradient(90deg, var(--stage), color-mix(in srgb, var(--stage) 70%, #141416));
  transition: width .55s var(--ease-out);
}
body.is-ready .job-stage .js-bar > i { width: var(--w, 0%); }
body.is-ready .job-stage:nth-child(1) .js-bar > i { transition-delay: .05s; }
body.is-ready .job-stage:nth-child(2) .js-bar > i { transition-delay: .1s; }
body.is-ready .job-stage:nth-child(3) .js-bar > i { transition-delay: .15s; }
body.is-ready .job-stage:nth-child(4) .js-bar > i { transition-delay: .2s; }
body.is-ready .job-stage:nth-child(5) .js-bar > i { transition-delay: .25s; }
body.is-ready .job-stage:nth-child(6) .js-bar > i { transition-delay: .3s; }

/* Needs you — slim side panel */
.needs-panel { padding: 14px 14px 12px; }
.needs-panel .section-head { margin-bottom: 8px; }
.needs-panel .section-head h2 { font-size: 15px; }
.needs-panel .section-head p { font-size: 12px; }
.needs-queue {
  display: grid;
  gap: 0;
  flex: 1;
  overflow: auto;
}
.need-card {
  display: grid;
  gap: 6px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
  background: transparent;
  opacity: 0;
  transform: translateX(10px);
  transition: background .15s;
}
body.is-ready .need-card {
  animation: slide-in .5s var(--ease-out) both;
}
body.is-ready .need-card:nth-child(1) { animation-delay: 480ms; }
body.is-ready .need-card:nth-child(2) { animation-delay: 540ms; }
body.is-ready .need-card:nth-child(3) { animation-delay: 600ms; }
body.is-ready .need-card:nth-child(4) { animation-delay: 660ms; }
@keyframes slide-in {
  to { opacity: 1; transform: none; }
}
.need-card:last-child { border-bottom: 0; }
.need-card:hover { background: rgba(107,147,196,.06); }
.need-card[hidden] { display: none !important; }
.need-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.need-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--blue);
  margin-top: 1px;
}
.need-ico.red { background: var(--red); }
.need-ico.amber { background: var(--amber); }
.need-ico .icon-svg { width: 12px; height: 12px; }
.need-body { min-width: 0; flex: 1; }
.need-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.need-body .why {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-tertiary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.need-suggest { display: none; }
.need-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  padding-left: 32px;
}
.need-actions .small-btn {
  padding: 4px 9px;
  font-size: 11px;
}
.need-actions .small-btn:not(.primary) { display: none; }
.need-actions .small-btn[data-act="open"] { display: inline-flex; }

/* —— Company at a glance —— */
.glance-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.glance-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(34,34,38,.65);
}
.glance-metric {
  padding: 14px 16px;
  border-right: 1px solid rgba(255,255,255,.12);
  background: transparent;
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}
.glance-metric:last-child { border-right: 0; }
.glance-metric .gm-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-tertiary);
  letter-spacing: .02em;
}
.glance-metric .gm-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.glance-metric .gm-foot {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-secondary);
  font-weight: 550;
}
.glance-metric .gm-foot.up { color: var(--green-ink); }
.glance-metric .gm-foot.warn { color: var(--amber-ink); }

.chart-block { min-width: 0; }
.chart-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.chart-block-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.chart-block-head span {
  font-size: 11px;
  color: var(--ink-tertiary);
  font-weight: 550;
}

.line-chart-wrap {
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(60,60,64,.35), rgba(34,34,38,.2)),
    repeating-linear-gradient(
      to top,
      transparent 0,
      transparent 31px,
      rgba(255,255,255,.08) 31px,
      rgba(255,255,255,.08) 32px
    );
  padding: 14px 12px 8px 40px;
}
.line-chart-wrap .y-axis {
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-tertiary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.line-chart {
  width: 100%;
  height: 148px;
  display: block;
  overflow: visible;
}
.line-chart .grid {
  stroke: rgba(255,255,255,.09);
  stroke-width: 1;
}
.line-chart .area {
  fill: url(#revFill);
  opacity: 0;
  transition: opacity .6s ease .25s;
}
.line-chart .line {
  fill: none;
  stroke: #7f9cb8;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
.line-chart .dot {
  fill: #fff;
  stroke: #7f9cb8;
  stroke-width: 2;
  opacity: 0;
  transition: opacity .3s ease .7s;
}
body.is-ready .line-chart .area { opacity: 1; }
body.is-ready .line-chart .line { stroke-dashoffset: 0; }
body.is-ready .line-chart .dot { opacity: 1; }
.chart-x {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 4px;
  padding: 0 2px;
}
.chart-x span {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-tertiary);
}

.panel-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(34,34,38,.65);
  padding: 14px;
}
.panel-card + .panel-card { margin-top: 12px; }

.funnel { display: grid; gap: 10px; }
.funnel-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.funnel-row span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.funnel-row em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 3.2ch;
}
.funnel-row strong {
  display: none;
}
.funnel-track {
  height: 8px;
  border-radius: 980px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
  position: relative;
}
.funnel-track > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 980px;
  background: linear-gradient(90deg, #0057b8, #82a6d0);
  transition: width .9s var(--ease-out);
}
body.is-ready .funnel-track > i { width: var(--w, 0%); }
body.is-ready .funnel-row:nth-child(1) .funnel-track > i { transition-delay: .15s; }
body.is-ready .funnel-row:nth-child(2) .funnel-track > i { transition-delay: .25s; background: linear-gradient(90deg, #5f87b8, #90b0c8); }
body.is-ready .funnel-row:nth-child(3) .funnel-track > i { transition-delay: .35s; background: linear-gradient(90deg, #6b93c4, #b3c7d6); }
body.is-ready .funnel-row:nth-child(4) .funnel-track > i { transition-delay: .45s; background: linear-gradient(90deg, #82a6d0, #b3c7d6); }

.aging-stack { margin-top: 4px; }
.aging-bar {
  display: flex;
  height: 12px;
  border-radius: 980px;
  overflow: hidden;
  background: rgba(255,255,255,.09);
}
.aging-bar > i {
  display: block;
  height: 100%;
  width: 0;
  transition: width .9s var(--ease-out) .2s;
}
.aging-bar > i.cur { background: var(--green); }
.aging-bar > i.mid { background: #e8910c; }
.aging-bar > i.hot { background: #e03830; }
body.is-ready .aging-bar > i { width: var(--w, 0%); }
.aging-legend {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.aging-legend .aging-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.aging-legend .swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.aging-legend .swatch.cur { background: var(--green); }
.aging-legend .swatch.mid { background: #e8910c; }
.aging-legend .swatch.hot { background: #e03830; }
.aging-row .ar-label { color: var(--ink-secondary); font-weight: 550; }
.aging-row .ar-val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.aging-row .ar-val.hot { color: var(--red-ink); }
.aging-row .ar-val.warm { color: var(--amber-ink); }

/* —— Job highlight + agent ran —— */
.bottom-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.bottom-split > .card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.job-highlight {
  display: grid;
  gap: 14px;
}
.jh-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.jh-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(107,147,196,.11);
  color: var(--blue);
  margin-bottom: 8px;
}
.jh-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.jh-hero h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.jh-hero .jh-scope {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.4;
}
.jh-id {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(107,147,196,.09);
  border: 1px solid rgba(107,147,196,.14);
  padding: 6px 10px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.jh-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(34,34,38,.55);
}
.jh-stat {
  padding: 12px 14px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.jh-stat:last-child { border-right: 0; }
.jh-stat span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.jh-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.jh-progress {
  display: grid;
  gap: 8px;
}
.jh-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
}
.jh-progress-top span { color: var(--ink-secondary); }
.jh-progress-top strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.jh-track {
  height: 8px;
  border-radius: 980px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.jh-track > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 980px;
  background: linear-gradient(90deg, #0057b8, #82a6d0);
  transition: width 1s var(--ease-out) .25s;
}
body.is-ready .jh-track > i { width: var(--w, 0%); }
.jh-next {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(232,145,12,.08);
  border: 1px solid rgba(232,145,12,.16);
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.4;
}
.jh-next .tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--amber-ink);
  padding-top: 1px;
}
.jh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* —— Agent ran —— */
.agent-ran { display: grid; gap: 0; }
.ran-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.ran-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ran-item:first-child { padding-top: 0; }
.ran-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(62,207,106,.16);
  color: var(--green-ink);
}
.ran-ico .icon-svg { width: 14px; height: 14px; }
.ran-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.ran-item span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-tertiary);
  line-height: 1.4;
}
.ran-item time {
  font-size: 11px;
  color: var(--ink-tertiary);
  white-space: nowrap;
  margin-top: 2px;
}

.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--ink);
  border-radius: 980px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
  transition: background .15s;
}
.small-btn:hover { background: var(--glass-strong); }
.small-btn:active { opacity: .9; }
.small-btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.small-btn.primary:hover { background: var(--blue-hover); }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
  background: rgba(34,34,38,.95);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.icon-btn:hover {
  background: var(--surface);
  border-color: var(--glass-border);
  color: var(--ink);
}
.icon-btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 980px;
  background: var(--red);
  color: #fff;
  border: 2px solid rgba(255,255,255,.2);
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(240,53,43,.35);
}
.icon-btn .badge-dot:empty {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  top: 8px;
  right: 8px;
}
.icon-btn[aria-expanded="true"] {
  background: var(--blue-soft);
  border-color: rgba(107,147,196,.2);
  color: var(--blue);
}

.notify-wrap {
  position: relative;
  z-index: 56;
}
.notify-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(440px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  background: #222226;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 70;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .2s var(--ease), visibility .18s;
}
.notify-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface);
}
.notify-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
}
.notify-head .count {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 7px;
  border-radius: 980px;
  vertical-align: middle;
}
.notify-mark {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 550;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.notify-mark:hover { background: var(--blue-soft); }
.notify-list {
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.notify-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .15s;
}
.notify-item:hover { background: rgba(255,255,255,.06); }
.notify-item.read { opacity: .65; }
.notify-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  box-shadow: none !important;
  animation: none !important;
}
.notify-dot.red { background: var(--red); }
.notify-dot.amber { background: var(--amber); }
.notify-dot.muted { background: #c7c7cc; }
.notify-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  color: var(--ink);
}
.notify-item span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-tertiary);
  line-height: 1.4;
  letter-spacing: .01em;
  white-space: normal;
}
.notify-item time {
  font-size: 11px;
  color: var(--ink-tertiary);
  white-space: nowrap;
  margin-top: 2px;
}
.notify-foot {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface);
}
.notify-foot .small-btn { width: 100%; justify-content: center; }


/* —— AI chat screen (ChatGPT-style full view) —— */
.ai-rail,
.ai-chat {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #141416;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .28s var(--ease), transform .32s var(--ease-out), visibility .28s;
}
body.ai-open {
  overflow: hidden;
}
body.ai-open .ambiance,
body.ai-open .app {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.ai-open .ai-rail,
body.ai-open .ai-chat,
.ai-rail.is-open,
.ai-chat.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
body.ai-open .ai-backdrop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .ai-rail, .ai-chat { transition: opacity .15s, visibility .15s; transform: none; }
  body.ai-open .ai-rail, body.ai-open .ai-chat,
  .ai-rail.is-open, .ai-chat.is-open { transform: none; }
}
/* Desktop: force full-viewport chat screen (never floating panel) */
@media (min-width: 901px) {
  .ai-rail,
  .ai-chat {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform-origin: center center;
  }
}

.ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #222226;
  flex-shrink: 0;
  z-index: 2;
}
.ai-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #5ac8fa 0%, #0068d1 48%, #2997ff 100%);
  box-shadow: 0 0 0 3px rgba(0,104,209,.12), 0 6px 14px rgba(0,104,209,.28);
  position: relative;
  overflow: hidden;
  animation: ai-orb-live 3.2s ease-in-out infinite;
}
.ai-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), transparent 42%);
  pointer-events: none;
}
.ai-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2.2l1.55 5.05L18.6 8.8l-5.05 1.55L12 15.4l-1.55-5.05L5.4 8.8l5.05-1.55L12 2.2zm6.2 10.3l.85 2.75 2.75.85-2.75.85-.85 2.75-.85-2.75-2.75-.85 2.75-.85.85-2.75zM5.1 14.2l.7 2.2 2.2.7-2.2.7-.7 2.2-.7-2.2-2.2-.7 2.2-.7.7-2.2z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@keyframes ai-orb-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,104,209,.12), 0 6px 14px rgba(0,104,209,.28); }
  50% { box-shadow: 0 0 0 5px rgba(0,104,209,.1), 0 8px 18px rgba(0,104,209,.34); }
}
.ai-head-text { min-width: 0; flex: 1; }
.ai-head h2 {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
  letter-spacing: .01em;
  line-height: 1.3;
}
.ai-head p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--ink-tertiary);
  letter-spacing: .01em;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.ai-toggle {
  margin-left: 0;
  height: 28px;
  padding: 0 8px 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #7ec4ff;
  background: rgba(90,200,250,.12);
  border: 1px solid rgba(90,200,250,.28);
  flex-shrink: 0;
  transition: background .15s, color .15s;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .01em;
}
.ai-toggle span { line-height: 1; }
.ai-toggle:hover { background: rgba(90,200,250,.2); color: #c5e6ff; }
.ai-new-chat {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.ai-new-chat:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.ai-head-text { text-align: left; }
.ai-head .ai-orb { margin-left: auto; }

.ai-thread {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #141416;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.ai-thread-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: min(100%, 520px);
}
.ai-welcome {
  margin: auto 0;
  padding: 28px 8px 36px;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.ai-welcome .ai-welcome-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #8aa9c8 0%, #5d7fa3 48%, #7b98b6 100%);
  box-shadow: 0 0 0 4px rgba(107,147,196,.12), 0 10px 24px rgba(0,0,0,.35);
  position: relative;
  margin-bottom: 6px;
}
.ai-welcome .ai-welcome-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2.2l1.55 5.05L18.6 8.8l-5.05 1.55L12 15.4l-1.55-5.05L5.4 8.8l5.05-1.55L12 2.2zm6.2 10.3l.85 2.75 2.75.85-2.75.85-.85 2.75-.85-2.75-2.75-.85 2.75-.85.85-2.75zM5.1 14.2l.7 2.2 2.2.7-2.2.7-.7 2.2-.7-2.2-2.2-.7 2.2-.7.7-2.2z'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.ai-welcome h3 {
  margin: 0;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.ai-welcome p {
  margin: 0;
  max-width: 36ch;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.5;
}
.ai-chat.has-messages .ai-welcome { display: none; }
.ai-chat.has-messages .ai-thread-inner {
  min-height: 0;
  margin-top: 0;
}
.msg {
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}
.msg.bot {
  align-self: stretch;
  background: #222226;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.msg.user {
  align-self: flex-end;
  max-width: 85%;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg .msg-meta {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-tertiary);
  letter-spacing: .02em;
}
.msg.user .msg-meta { color: rgba(255,255,255,.72); }
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 0;
  justify-content: center;
}
.ai-welcome + .ai-chips,
.ai-welcome .ai-chips { justify-content: center; }
.ai-chip {
  border: 1px solid rgba(255,255,255,.12);
  background: #222226;
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.ai-chip:hover {
  border-color: rgba(107,147,196,.35);
  background: var(--blue-soft);
  color: var(--blue);
}
.msg-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  margin-top: -6px;
}
.msg-suggest-btn {
  border: 1px solid rgba(255,255,255,.14);
  background: #1c1c20;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
}
.msg-suggest-btn:hover {
  border-color: rgba(107,147,196,.4);
  background: var(--blue-soft);
  color: var(--blue);
}
.msg-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}
.msg-choice-options,
.msg-choice-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.msg-choice-custom {
  flex-wrap: nowrap;
}
.msg-choice-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  background: #1c1c20;
  color: var(--ink);
}

.chat-area {
  margin-top: auto;
  padding: 10px 16px max(16px, calc(12px + var(--safe-bottom)));
  border-top: 0;
  background: linear-gradient(180deg, transparent, #141416 28%);
  flex-shrink: 0;
}
.chat-area-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}
.chatbox {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #222226;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 12px 12px 10px 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.chatbox:focus-within {
  background: #222226;
  border-color: rgba(107,147,196,.4);
  box-shadow: 0 0 0 3px var(--blue-soft), 0 6px 20px rgba(0,0,0,.35);
}
.chatbox textarea {
  border: 0;
  outline: 0;
  resize: none;
  width: 100%;
  min-height: 24px;
  max-height: 120px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  background: transparent;
  padding: 2px 2px 4px;
}
.chatbox textarea::placeholder { color: var(--ink-tertiary); }
.chatbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}
.chatbox-modes {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.chat-mode-menu {
  position: relative;
}
.chat-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 160px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.chat-mode-pill:hover {
  background: rgba(255,255,255,.1);
}
.chat-mode-pill.is-active {
  color: #9ec1ef;
  background: var(--blue-soft, rgba(107,147,196,.18));
  border-color: rgba(107,147,196,.35);
}
.chat-mode-pill[aria-expanded="true"] {
  border-color: rgba(107,147,196,.5);
}
.chat-mode-icon,
.chat-mode-caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.chat-mode-dropdown {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 40;
  min-width: 148px;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: #2a2a2e;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.chat-mode-dropdown[hidden] { display: none; }
.chat-mode-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.chat-mode-dropdown button:hover,
.chat-mode-dropdown button[aria-selected="true"] {
  background: var(--blue-soft, rgba(107,147,196,.18));
  color: #9ec1ef;
}
.chatbox-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.chat-mic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-secondary);
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.chat-mic:hover {
  background: rgba(255,255,255,.08);
  color: var(--ink);
}
.chat-mic.listening {
  color: var(--red);
  background: var(--red-soft, rgba(240,53,43,.18));
}
.chat-mic .icon-svg { width: 18px; height: 18px; }
.send {
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .15s, transform .12s, opacity .15s;
}
.send:hover { background: var(--blue-hover); }
.send:active { transform: scale(.94); }
.send:disabled { opacity: .45; cursor: default; }
.chat-footnote {
  margin: 8px 4px 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-tertiary);
}

/* Floating AI launcher — alive, not flat */
.ai-launcher {
  position: fixed;
  right: 22px;
  bottom: calc(22px + var(--safe-bottom));
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  background: linear-gradient(145deg, #a8c0d6 0%, #6b93c4 46%, #82a6d0 100%);
  box-shadow:
    0 0 0 4px rgba(20,20,22,.92),
    0 0 0 5px rgba(107,147,196,.14),
    0 10px 28px rgba(0,104,209,.38);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: visible;
  transition: transform .25s var(--ease), opacity .2s, box-shadow .25s, visibility .2s;
  animation: launcher-in .55s var(--ease) both, launcher-live 3s ease-in-out .55s infinite;
}
.ai-launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.55), transparent 42%);
  pointer-events: none;
}
.ai-launcher::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(107,147,196,.16);
  pointer-events: none;
  animation: launcher-ring 3s ease-in-out infinite;
}
.ai-launcher .spark {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  fill: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,40,100,.35));
}
.ai-launcher:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 0 4px rgba(20,20,22,.95),
    0 0 0 6px rgba(107,147,196,.06),
    0 14px 34px rgba(0,104,209,.42);
}
.ai-launcher:active { transform: scale(.96); }
body.ai-open .ai-launcher {
  opacity: 0;
  pointer-events: none;
  transform: scale(.72);
  visibility: hidden;
  animation: none;
}
@keyframes launcher-in {
  from { opacity: 0; transform: scale(.7) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes launcher-live {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(20,20,22,.92),
      0 0 0 5px rgba(107,147,196,.14),
      0 10px 28px rgba(0,104,209,.38);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(20,20,22,.95),
      0 0 0 8px rgba(107,147,196,.11),
      0 12px 32px rgba(0,104,209,.44);
  }
}
@keyframes launcher-ring {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .15; transform: scale(1.08); }
}
.ai-launcher .tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,20,22,.94);
  color: #fff;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.ai-launcher:hover .tip { opacity: 1; }

/* Soft scrim behind chatbot */
.ai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 41;
  background: rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
}
.ai-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.icon-svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}
.icon-svg.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav .ico .icon-svg { width: 16px; height: 16px; }
.search .mag .icon-svg { width: 16px; height: 16px; }
.icon-btn .icon-svg { width: 18px; height: 18px; }
.send .icon-svg,
.dash-ask-send .icon-svg { width: 15px; height: 15px; }
.dash-ask-mic .icon-svg { width: 16px; height: 16px; }
.ai-toggle .icon-svg { width: 12px; height: 12px; }
.ai-new-chat .icon-svg { width: 15px; height: 15px; }
.menu-toggle .icon-svg { width: 18px; height: 18px; }

.toast {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #2c2c30;
  color: #F3F3F5;
  border: 1px solid rgba(255,255,255,.14);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
  z-index: 60;
  font-size: 13px;
  font-weight: 500;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.32);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(480px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: #222226;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  animation: modal-in .3s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.modal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  margin: 0;
}
.modal p { color: var(--ink-secondary); line-height: 1.55; font-size: 14px; }
.modal-close {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  width: 32px;
  height: 32px;
  color: var(--ink-secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.modal-stat {
  background: var(--surface-secondary);
  border-radius: 12px;
  padding: 14px;
}
.modal-stat span {
  display: block;
  color: var(--ink-tertiary);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
}
.modal-stat strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* —— Responsive —— */
@media (max-width: 1280px) {
  :root { --sidebar-w: 220px; --chat-w: 360px; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .35s var(--ease);
    background: #1a1a1d !important;
    box-shadow: 8px 0 32px rgba(0,0,0,.55);
    z-index: 120;
    isolation: isolate;
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: grid; }
  body.nav-collapsed .sidebar {
    width: min(280px, 86vw);
    padding: 28px 16px 20px;
    opacity: 1;
    pointer-events: auto;
    border-right-color: var(--line);
  }
  body.nav-collapsed .brand {
    display: flex !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 18px !important;
  }
  body.nav-collapsed .nav a,
.nav button {
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 12px;
    font-size: 13.5px;
  }
  body.nav-collapsed .sidebar-toggle {
    width: 100%;
    justify-content: flex-start;
    align-self: stretch;
    padding: 10px 12px;
    gap: 12px;
    font-size: 13.5px;
  }
  body.nav-collapsed .sidebar-toggle .icon-svg { transform: none; }
  body.nav-collapsed .sidebar-toggle-label { display: inline; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0,0,0,.6);
    backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
  main { padding: 16px 16px 100px; }
  .brand { padding-bottom: 24px; }
  .date-pill { display: none; }
  .profile-name { display: none; }
  .kbd { display: none; }
  .heading { margin-bottom: 20px; }
  .ops-split { grid-template-columns: 1fr; }
  .bottom-split { grid-template-columns: 1fr; }
  .glance-grid { grid-template-columns: 1fr; }
  .jh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jh-stat:nth-child(2) { border-right: 0; }
  .jh-stat:nth-child(1),
  .jh-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .job-status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .status-lanes { grid-template-columns: 1fr; gap: 8px; }
  .wu-cta { opacity: 1; }
  .glance-metrics { grid-template-columns: 1fr; }
  .glance-metric { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .glance-metric:last-child { border-bottom: 0; }
  .job-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-actions .small-btn:not(.primary) { display: inline-flex; }
  .section { padding: 16px; }
  .section-head { align-items: flex-start; flex-wrap: wrap; }
  .topbar { margin-bottom: 18px; gap: 8px; }
  .search input { padding: 10px 12px 10px 36px; font-size: 14px; }
  .need-actions { width: 100%; }
  .need-actions .small-btn { flex: 1; justify-content: center; text-align: center; }
  .ai-launcher {
    right: 16px;
    bottom: calc(16px + var(--safe-bottom));
    width: 54px;
    height: 54px;
  }
  .ai-launcher .spark { width: 22px; height: 22px; }
  .ai-launcher .tip { display: none; }
  .ai-head { padding-left: 12px; padding-right: 12px; }
  .ai-thread-inner,
  .chat-area-inner { padding-left: 12px; padding-right: 12px; }
  .modal { padding: 22px; border-radius: 20px; }
  .modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .job-status { grid-template-columns: 1fr 1fr; }
}

/* —— Boot / entrance motion —— */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.96);
  transition:
    opacity .75s var(--ease-out),
    transform .9s var(--spring);
  transition-delay: var(--d, 0ms);
}
body.is-ready .reveal {
  opacity: 1;
  transform: none;
}
.sidebar .brand,
.sidebar .nav a,
.sidebar .nav button,
.sidebar .sidebar-toggle {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
body.is-ready .sidebar .brand { opacity: 1; transform: none; transition-delay: 40ms; }
body.is-ready .sidebar .nav a,
.nav button { opacity: 1; transform: none; }
body.is-ready .sidebar .nav a:nth-child(1),
body.is-ready .sidebar .nav button:nth-child(1) { transition-delay: 80ms; }
body.is-ready .sidebar .nav a:nth-child(2),
body.is-ready .sidebar .nav button:nth-child(2) { transition-delay: 110ms; }
body.is-ready .sidebar .nav a:nth-child(3),
body.is-ready .sidebar .nav button:nth-child(3) { transition-delay: 140ms; }
body.is-ready .sidebar .nav a:nth-child(4),
body.is-ready .sidebar .nav button:nth-child(4) { transition-delay: 170ms; }
body.is-ready .sidebar .nav a:nth-child(5),
body.is-ready .sidebar .nav button:nth-child(5) { transition-delay: 200ms; }
body.is-ready .sidebar .nav a:nth-child(6),
body.is-ready .sidebar .nav button:nth-child(6) { transition-delay: 230ms; }
body.is-ready .sidebar .nav a:nth-child(7),
body.is-ready .sidebar .nav button:nth-child(7) { transition-delay: 260ms; }
body.is-ready .sidebar .nav a:nth-child(8),
body.is-ready .sidebar .nav button:nth-child(8) { transition-delay: 290ms; }
body.is-ready .sidebar .nav a:nth-child(9),
body.is-ready .sidebar .nav button:nth-child(9) { transition-delay: 320ms; }
body.is-ready .sidebar .sidebar-toggle { opacity: 1; transform: none; transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .sidebar .brand,
  .sidebar .nav a,
.sidebar .nav button,
  .sidebar .sidebar-toggle,
  .need-card,
  .lane-card,
  .job-stage,
  .heading h1 .word,
  .heading p,
  .live-strip,
  .date-pill,
  .ambiance-orb,
  .ambiance-sun,
  .ambiance-flare {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  body.is-ready .need-card,
  body.is-ready .lane-card,
  body.is-ready .job-stage,
  body.is-ready .sidebar .nav a,
.nav button { transition-delay: 0ms !important; animation: none !important; }
  .ai-orb,
  .ai-launcher,
  .ai-launcher::after,
  .dash-ask-label .mark,
  .live-strip i { animation: none !important; }
}
