/* Indusion workspace. Tokens follow the earlier demo so the pilot reads as the same product. */
:root {
  --bg: #f6f2eb; --surface: #fbf9f5; --raised: #ffffff; --sunk: #efe9df; --hover: #f2ede4;
  --ink: #1b1814; --ink-2: #4a443b; --mute: #766e62; --faint: #a1988a;
  --line: #e6dfd3; --line-2: #d7cebf;
  --accent: #7a2a23; --accent-2: #601f19; --accent-soft: rgb(122 42 35 / .07); --accent-line: rgb(122 42 35 / .28); --on-accent: #fbf6f0;
  --green: #2f6048; --green-soft: rgb(47 96 72 / .1); --amber: #8e5512; --amber-soft: rgb(142 85 18 / .1); --grey-soft: rgb(118 110 98 / .12);
  --mark: #f3e0ae; --mark-ink: #2e2006;
  --shadow-sm: 0 1px 2px rgb(40 30 20 / .05);
  --shadow-md: 0 1px 2px rgb(40 30 20 / .04), 0 10px 28px -14px rgb(40 30 20 / .2);
  --shadow-lg: 0 28px 72px -28px rgb(30 20 10 / .38), 0 2px 6px rgb(30 20 10 / .06);
  --scrim: rgb(27 24 20 / .28);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --top: 52px; --nav: 224px; --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-idx-theme="light"]) {
    --bg: #12100d; --surface: #181512; --raised: #1e1a16; --sunk: #0e0c0a; --hover: #221e19;
    --ink: #ece5d9; --ink-2: #c4baab; --mute: #978d7e; --faint: #6d655a; --line: #2a2520; --line-2: #3a332b;
    --accent: #d48a76; --accent-2: #e4a28f; --accent-soft: rgb(212 138 118 / .1); --accent-line: rgb(212 138 118 / .38); --on-accent: #1a110d;
    --green: #8fc2a2; --green-soft: rgb(143 194 162 / .12); --amber: #dfab66; --amber-soft: rgb(223 171 102 / .12); --grey-soft: rgb(151 141 126 / .14);
    --mark: rgb(223 171 102 / .3); --mark-ink: #f8ead0;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow-md: 0 1px 2px rgb(0 0 0 / .4), 0 12px 30px -14px rgb(0 0 0 / .7);
    --shadow-lg: 0 30px 80px -24px rgb(0 0 0 / .8); --scrim: rgb(0 0 0 / .5); color-scheme: dark;
  }
}
:root[data-idx-theme="dark"] {
  --bg: #12100d; --surface: #181512; --raised: #1e1a16; --sunk: #0e0c0a; --hover: #221e19;
  --ink: #ece5d9; --ink-2: #c4baab; --mute: #978d7e; --faint: #6d655a; --line: #2a2520; --line-2: #3a332b;
  --accent: #d48a76; --accent-2: #e4a28f; --accent-soft: rgb(212 138 118 / .1); --accent-line: rgb(212 138 118 / .38); --on-accent: #1a110d;
  --green: #8fc2a2; --green-soft: rgb(143 194 162 / .12); --amber: #dfab66; --amber-soft: rgb(223 171 102 / .12); --grey-soft: rgb(151 141 126 / .14);
  --mark: rgb(223 171 102 / .3); --mark-ink: #f8ead0;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow-md: 0 1px 2px rgb(0 0 0 / .4), 0 12px 30px -14px rgb(0 0 0 / .7);
  --shadow-lg: 0 30px 80px -24px rgb(0 0 0 / .8); --scrim: rgb(0 0 0 / .5); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 14px/1.5 var(--sans); min-height: 100dvh; overflow-x: clip; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mute); } .small { font-size: 12.5px; } .mono { font-family: var(--mono); font-size: 11.5px; }
.h1 { font: 400 clamp(28px, 1.4vw + 18px, 36px)/1.1 var(--serif); letter-spacing: -.02em; }
.h2 { font: 400 20px/1.2 var(--serif); letter-spacing: -.01em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.body { color: var(--ink-2); line-height: 1.6; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--raised); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover:not(:disabled) { border-color: var(--ink-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--hover); border-color: var(--line); color: var(--ink); }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-size: 12.5px; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }

/* shell */
.app { min-height: 100dvh; }
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 30; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.brand-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 9px var(--accent); }
.slash { color: var(--faint); } .brand-client { font: 400 19px/1 var(--serif); }
.env-pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.jump { position: absolute; left: 50%; transform: translateX(-50%); width: min(440px, 34vw); height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--raised); color: var(--mute); box-shadow: var(--shadow-sm); text-align: left; }
.jump:hover { border-color: var(--ink-2); }
.jump span { flex: 1; } kbd { font: 11px var(--mono); padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); color: var(--mute); }
.top-right { margin-left: auto; display: flex; gap: 4px; }
.menu-btn { display: none; }
.side { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--nav); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); background: var(--bg); overflow-y: auto; z-index: 20; }
.side-group { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.side a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.side a:hover { background: var(--hover); color: var(--ink); }
.side a[aria-current="page"] { background: var(--raised); border-color: var(--line); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.side a[aria-current="page"] svg { color: var(--accent); }
.count { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.count-alert { color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 0 7px; font-weight: 600; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 12px 10px 4px; font-size: 12px; color: var(--mute); }
.main { margin: var(--top) 0 0 var(--nav); padding: 40px clamp(20px, 4vw, 56px) 80px; max-width: calc(1080px + var(--nav)); outline: none; }
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 25; }
.view { animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* cards & lists */
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 13px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.list-row { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--hover); }
.list-row small { color: var(--mute); font-size: 12px; }
.empty { padding: 28px 16px; text-align: center; color: var(--mute); }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.q-tile { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; line-height: 1.35; transition: border-color .15s, transform .2s var(--ease); }
.q-tile:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.q-tile .mono { color: var(--faint); padding-top: 1px; }

/* ask */
.hero { max-width: 760px; }
.hero .body { margin: 12px 0 22px; max-width: 56ch; }
.ask { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--raised); box-shadow: var(--shadow-md); transition: border-color .15s; }
.ask:focus-within { border-color: var(--accent); }
.ask svg { color: var(--mute); width: 18px; height: 18px; }
.ask input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.ask input::placeholder { color: var(--faint); }
.try { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 14px 0 0; font-size: 13px; color: var(--mute); }
.try button { border: 0; background: none; padding: 0; color: var(--ink-2); border-bottom: 1px dotted var(--faint); text-align: left; }
.try button:hover { color: var(--accent); border-color: var(--accent); }
.answer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.answer-head .h1 { font-size: clamp(24px, 1vw + 16px, 30px); max-width: 28ch; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); font-size: 12.5px; color: var(--accent); }
.chip b { font-weight: 600; } .chip span { color: var(--ink); }
.result-count { margin: 18px 0 10px; display: flex; justify-content: space-between; align-items: center; }
.cand { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); box-shadow: var(--shadow-sm); width: 100%; text-align: left; margin-bottom: 10px; transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.cand:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-size: 13px; font-weight: 600; }
.avatar-lg { width: 52px; height: 52px; font-size: 17px; }
.cand-main { flex: 1; min-width: 0; }
.cand-name { font-weight: 600; font-size: 15px; } .cand-role { color: var(--ink-2); margin-top: 1px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.snippet { margin-top: 10px; padding: 8px 12px; border-left: 2px solid var(--accent-line); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--ink-2); }
mark { background: var(--mark); color: var(--mark-ink); border-radius: 3px; padding: 0 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { padding: 2px 8px; border-radius: 6px; background: var(--sunk); font-size: 12px; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--grey-soft); color: var(--ink-2); }
.pill[data-tone="good"] { background: var(--green-soft); color: var(--green); }
.pill[data-tone="warn"] { background: var(--amber-soft); color: var(--amber); }
.pill[data-tone="accent"] { background: var(--accent-soft); color: var(--accent); }
.state { padding: 56px 16px; text-align: center; color: var(--mute); }
.state h3 { font: 400 20px var(--serif); color: var(--ink); margin-bottom: 6px; }
.skeleton { height: 92px; border-radius: 12px; margin-bottom: 10px; background: linear-gradient(100deg, var(--sunk) 30%, var(--hover) 50%, var(--sunk) 70%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* tables */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0 14px; }
.field { flex: 1; min-width: 200px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--raised); }
select.field { flex: none; min-width: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tr[data-open] { cursor: pointer; } tr[data-open]:hover td { background: var(--hover); }
.cell-name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; }

/* analytics */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.kpi { padding: 18px; } .kpi b { display: block; font: 400 38px/1.05 var(--serif); letter-spacing: -.02em; }
.kpi span { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.panel { padding: 18px; margin-bottom: 18px; } .panel .h2 { margin-bottom: 14px; }
.bar { display: grid; grid-template-columns: minmax(7rem, 13rem) 1fr 3.6rem; gap: 12px; align-items: center; padding: 5px 0; font-size: 13px; }
.bar .track { height: 9px; border-radius: 5px; background: var(--sunk); overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 5px; background: var(--accent); width: var(--w); transform-origin: left; animation: grow .6s var(--ease) both; }
.bar .fill.soft { background: var(--accent-line); } .bar .fill.warn { background: var(--amber); }
.bar em { font-style: normal; text-align: right; color: var(--mute); font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } }
.job { padding: 14px 0; border-top: 1px solid var(--line); } .job:first-of-type { border-top: 0; padding-top: 0; }
.job h3 { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin-bottom: 8px; }
.stack i { display: block; flex: var(--n) 1 0; min-width: 6px; }
.stack i[data-tone="good"] { background: var(--green); } .stack i[data-tone="warn"] { background: var(--amber); }
.stack i[data-tone="accent"] { background: var(--accent); } .stack i[data-tone="neutral"] { background: var(--line-2); }
.bar .fill[data-tone="good"] { background: var(--green); } .bar .fill[data-tone="warn"] { background: var(--amber); }
.bar .fill[data-tone="neutral"] { background: var(--line-2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--accent); }
.legend i[data-tone="good"] { background: var(--green); } .legend i[data-tone="warn"] { background: var(--amber); } .legend i[data-tone="neutral"] { background: var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--mute); }
.note { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 13px; }

/* analytics: findings, report builder */
.seg { display: inline-flex; gap: 2px; padding: 3px; margin: 18px 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); }
.seg a, .seg button { padding: 6px 14px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.seg [aria-selected="true"], .seg [aria-checked="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg-sm { margin: 0; align-self: end; } .seg-sm button { padding: 5px 12px; }
.findings li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.findings li:first-child { border-top: 0; padding-top: 0; }
.findings li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.findings li:first-child::before { top: 7px; }
.findings li[data-tone="warn"]::before { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.builder { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.sel { display: grid; gap: 4px; } .sel .field { min-width: 11rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.filter { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.filter .field { min-width: 8rem; height: 30px; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.builder-actions .spacer { flex: 1; } .save { display: flex; gap: 6px; } .save .field { min-width: 12rem; height: 28px; }
.saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.saved-chip { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; background: var(--raised); overflow: hidden; }
.saved-chip button { border: 0; background: none; padding: 3px 10px; font-size: 12.5px; } .saved-chip button:hover { background: var(--hover); color: var(--accent); }
table.report th.num, table.report td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.report td.heat { background: color-mix(in srgb, var(--accent) calc(var(--h) * 38%), transparent); }
table.report td.total, table.report tfoot td { font-weight: 600; }
table.report tfoot td { border-top: 1px solid var(--ink); border-bottom: 0; }
.actions-row { display: flex; justify-content: flex-end; margin: -6px 0 12px; }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 40; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: slide .3s var(--ease) both; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.scrim-drawer { z-index: 35; }
.drawer-head { display: flex; gap: 14px; align-items: center; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-head .grow { flex: 1; min-width: 0; } .drawer-head h2 { font: 400 24px/1.15 var(--serif); letter-spacing: -.01em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px 24px; }
.drawer-foot { padding: 12px 22px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; }
.section { padding: 16px 0; border-bottom: 1px solid var(--line); } .section:last-child { border-bottom: 0; }
.section h3 { margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 7.5rem 1fr; gap: 6px 12px; font-size: 13.5px; } .kv dt { color: var(--mute); } .kv dd { margin: 0; word-break: break-word; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.timeline li { position: relative; padding: 0 0 14px 18px; border-left: 1px solid var(--line-2); margin-left: 4px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline b { font-weight: 600; } .timeline .when { color: var(--mute); font-size: 12.5px; }

/* palette & toasts */
.palette { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: center; align-content: start; padding-top: 14vh; background: var(--scrim); }
.palette-box { width: min(620px, 92vw); border: 1px solid var(--line-2); border-radius: 14px; background: var(--raised); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette-box input { width: 100%; height: 52px; padding: 0 18px; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: none; font-size: 16px; }
.palette-box ul { max-height: 340px; overflow-y: auto; padding: 6px; }
.palette-box li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.palette-box li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.palette-box li small { margin-left: auto; color: var(--mute); }
.palette-hint { padding: 14px 18px; color: var(--mute); }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; }
.toast { padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 13px; animation: rise .3s var(--ease) both; }
.toast.error { background: var(--accent); color: var(--on-accent); }

/* login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(380px, 100%); display: grid; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); box-shadow: var(--shadow-md); }
.login-card input { height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.login-card .btn { height: 42px; justify-content: center; }
.login-error { min-height: 18px; color: var(--accent); font-size: 13px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; } .jump { position: static; transform: none; width: auto; flex: 1; min-width: 0; } .jump kbd, .env-pill { display: none; }
  .jump span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand > span:not(.brand-mark):not(.brand-client), .brand .slash { display: none; } .top { gap: 8px; padding: 0 10px; }
  .side { transform: translateX(-100%); transition: transform .25s var(--ease); background: var(--surface); }
  .side[data-open="true"] { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; padding: 28px 16px 64px; }
  .grid-2, .q-grid, .kpis { grid-template-columns: 1fr; }
  .hide-sm { display: none; } .bar { grid-template-columns: 6rem 1fr 3rem; }
}
