/* Hire design system. System font, translucent chrome, inset grouped lists, generous quiet space. */
:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --accent: #4A68F5; --accent-ink: #3A55D9; --on-accent: #fff;
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #fbfbfd; --chrome: rgba(246,246,248,.78); --sidebar: rgba(238,238,241,.82);
  --fill: rgba(120,120,128,.12); --fill-2: rgba(120,120,128,.08); --fill-3: rgba(120,120,128,.20);
  --label: #1d1d1f; --label-2: #5f5f64; --label-3: #6e6e73; --sep: rgba(60,60,67,.14); --sep-strong: rgba(60,60,67,.24);
  --green: #14752f; --green-bg: rgba(52,199,89,.15); --orange: #9a4e00; --orange-bg: rgba(255,149,0,.16);
  --red: #d70015; --red-bg: rgba(255,59,48,.12); --teal: #007d8a; --teal-bg: rgba(48,176,199,.15); --purple: #8944ab; --purple-bg: rgba(175,82,222,.14);
  --chart-2: #0F9C8C;
  --shadow-1: 0 1px 2px rgba(0,0,0,.05), 0 0 0 .5px rgba(0,0,0,.04);
  --shadow-2: 0 2px 8px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.05);
  --shadow-3: 0 18px 50px rgba(0,0,0,.20), 0 0 0 .5px rgba(0,0,0,.08);
  --ease: cubic-bezier(.32,.72,0,1);
}
[data-ws="dna"] { --accent: #0851B8; --accent-ink: #0851B8; }
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6F89FF; --accent-ink: #9DAEFF; --on-accent: #0b0f26;
    --bg: #000; --surface: #1c1c1e; --surface-2: #232325; --chrome: rgba(22,22,24,.74); --sidebar: rgba(30,30,32,.8);
    --fill: rgba(120,120,128,.26); --fill-2: rgba(120,120,128,.16); --fill-3: rgba(120,120,128,.36);
    --label: #f5f5f7; --label-2: #a1a1a6; --label-3: #98989d; --sep: rgba(84,84,88,.5); --sep-strong: rgba(84,84,88,.8);
    --green: #30d158; --green-bg: rgba(48,209,88,.18); --orange: #ff9f0a; --orange-bg: rgba(255,159,10,.18);
    --red: #ff6961; --red-bg: rgba(255,69,58,.2); --teal: #64d2ff; --teal-bg: rgba(100,210,255,.16); --purple: #da8fff; --purple-bg: rgba(191,90,242,.2);
    --chart-2: #1CA593;
    --shadow-1: 0 0 0 .5px rgba(255,255,255,.08); --shadow-2: 0 2px 10px rgba(0,0,0,.5), 0 0 0 .5px rgba(255,255,255,.1); --shadow-3: 0 18px 60px rgba(0,0,0,.7), 0 0 0 .5px rgba(255,255,255,.12);
  }
  [data-ws="dna"] { --accent: #4C8DF0; --accent-ink: #8FBBFF; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13px/1.45 var(--font); color: var(--label); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--label-2); } .faint { color: var(--label-3); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.bold { font-weight: 600; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; } .col { display: flex; flex-direction: column; } .grow { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.icon { flex: none; display: block; }
:focus { outline: none; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
label.btn:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.feed-i, .kv dd, .step-p { overflow-wrap: anywhere; }
.sheet-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }

/* App frame */
.frame { display: grid; grid-template-columns: 232px minmax(0,1fr); height: 100dvh; }
.side { background: var(--sidebar); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-right: .5px solid var(--sep); display: flex; flex-direction: column; padding: 10px 10px 8px; min-height: 0; }
.switcher { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; background: transparent; border: 0; width: 100%; cursor: default; text-align: left; }
.switcher:hover { background: var(--fill-2); }
.ws-logo { width: 28px; height: 28px; border-radius: 7px; background: #fff; box-shadow: var(--shadow-1); display: grid; place-items: center; overflow: hidden; flex: none; padding: 3px; }
.ws-logo img { max-width: 100%; max-height: 100%; display: block; }
.nav { margin-top: 8px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.nav-h { font-size: 11px; font-weight: 600; color: var(--label-3); padding: 12px 8px 4px; }
.nav a { display: flex; gap: 9px; align-items: center; padding: 6px 8px; border-radius: 7px; color: var(--label); font-weight: 450; height: 30px; }
.nav a .icon { color: var(--accent-ink); }
.nav a:hover { background: var(--fill-2); }
.nav a.on { background: var(--fill-3); font-weight: 550; }
.nav .badge-n { margin-left: auto; font-size: 11px; color: var(--label-2); }
.me { display: flex; align-items: center; gap: 8px; padding: 8px; border-top: .5px solid var(--sep); margin-top: 6px; }
.main { min-width: 0; display: flex; flex-direction: column; height: 100dvh; overflow: hidden; position: relative; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 24px; background: var(--chrome); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-bottom: .5px solid var(--sep); }
.bar-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.scroll { flex: 1; overflow: auto; min-height: 0; }
.page { padding: 26px 32px 64px; max-width: 1240px; margin: 0 auto; }
.page-wide { padding: 0; max-width: none; }
.title { font-size: 30px; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; }
.subtitle { color: var(--label-2); font-size: 14px; margin-top: 3px; }
.sec-title { font-size: 19px; font-weight: 650; letter-spacing: -.012em; }
.tabbar { display: none; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 8px; border: 0; background: var(--fill); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s var(--ease), opacity .15s; color: var(--label); }
.btn:hover { background: var(--fill-3); } .btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--on-accent); } .btn.primary:hover { filter: brightness(1.07); }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.plain { background: transparent; color: var(--accent-ink); } .btn.plain:hover { background: var(--fill-2); }
.btn.lg { height: 38px; padding: 0 20px; font-size: 14px; border-radius: 10px; }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.icon-only { width: 30px; padding: 0; } .btn.sm.icon-only { width: 26px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.seg { position: relative; display: inline-flex; background: var(--fill); border-radius: 8px; padding: 2px; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; height: 26px; padding: 0 13px; border-radius: 6px; font-weight: 500; cursor: pointer; color: var(--label); display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.seg button.on { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.16), 0 0 0 .5px rgba(0,0,0,.05); }
@media (prefers-color-scheme: dark) { .seg button.on { background: #636366; } }
.input, select.input, textarea.input { width: 100%; height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--fill-2); box-shadow: inset 0 0 0 .5px var(--sep); transition: box-shadow .15s, background .15s; }
textarea.input { height: auto; padding: 8px 10px; line-height: 1.5; resize: vertical; min-height: 72px; }
.input:focus { outline: none; background-color: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 0 0 .5px var(--accent); }
.input::placeholder { color: var(--label-3); }
select.input { -webkit-appearance: none; appearance: none; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.2 5 5.4l4-4.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; text-overflow: ellipsis; }
.search { position: relative; } .search .icon { position: absolute; left: 9px; top: 8px; color: var(--label-3); } .search .input { padding-left: 29px; }
.field { display: block; margin-bottom: 12px; } .field > span, .label { display: block; font-size: 12px; font-weight: 500; color: var(--label-2); margin-bottom: 4px; }
.hint { font-size: 11.5px; color: var(--label-3); margin-top: 4px; } .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; } .check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.switch { position: relative; width: 38px; height: 23px; background: var(--fill-3); border-radius: 12px; border: 0; cursor: pointer; transition: background .2s; flex: none; padding: 0; }
.switch.on { background: #34c759; } .switch i { position: absolute; left: 2px; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s var(--ease); } .switch.on i { transform: translateX(15px); }

/* Cards, lists */
.card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-1); }
.card.pad { padding: 18px 20px; }
.group { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-1); overflow: hidden; }
.group-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 42px; position: relative; }
.group-row + .group-row::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: .5px; background: var(--sep); }
.group-row > .k { flex: 0 0 170px; color: var(--label); } .group-row > .v { flex: 1; min-width: 0; }
a.group-row, button.group-row { color: inherit; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; } a.group-row:hover, button.group-row:hover { background: var(--fill-2); }
.group-h { font-size: 12px; color: var(--label-2); padding: 0 14px 6px; font-weight: 500; }
.g-note { font-size: 12px; color: var(--label-3); padding: 6px 14px 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; } .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; } .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.kpi { padding: 15px 18px; } .kpi .l { font-size: 12px; color: var(--label-2); font-weight: 500; } .kpi .v { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 3px; font-variant-numeric: tabular-nums; line-height: 1.15; } .kpi .s { font-size: 12px; color: var(--label-3); margin-top: 2px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: #fff; flex: none; letter-spacing: .01em; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; } .avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--fill); font-size: 11.5px; font-weight: 500; white-space: nowrap; color: var(--label-2); }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.orange { background: var(--orange-bg); color: var(--orange); } .pill.red { background: var(--red-bg); color: var(--red); } .pill.teal { background: var(--teal-bg); color: var(--teal); } .pill.purple { background: var(--purple-bg); color: var(--purple); } .pill.accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-ink); }
.empty { text-align: center; padding: 64px 24px; color: var(--label-2); } .empty .icon { margin: 0 auto 12px; color: var(--label-3); } .empty h3 { color: var(--label); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.table-wrap { overflow: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: left; font-size: 11.5px; font-weight: 550; color: var(--label-2); padding: 9px 12px; border-bottom: .5px solid var(--sep-strong); white-space: nowrap; user-select: none; }
table.t th.sort { cursor: pointer; } table.t th.sort:hover { color: var(--label); }
table.t td { padding: 9px 12px; border-bottom: .5px solid var(--sep); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; } table.t tbody tr.click { cursor: pointer; } table.t tbody tr.click:hover { background: var(--fill-2); } table.t tr.sel { background: color-mix(in srgb, var(--accent) 9%, transparent); }
table.t .r { text-align: right; font-variant-numeric: tabular-nums; } table.t tfoot td { font-weight: 600; border-top: .5px solid var(--sep-strong); border-bottom: 0; }

/* Board */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 24px; border-bottom: .5px solid var(--sep); background: var(--bg); }
.toolbar select.input { width: auto; max-width: 190px; height: 28px; background-color: var(--fill); box-shadow: none; font-weight: 500; }
.board { display: flex; gap: 10px; padding: 14px 24px 80px; height: 100%; overflow: auto; align-items: stretch; }
.lane { width: 268px; flex: none; display: flex; flex-direction: column; background: var(--fill-2); border-radius: 14px; min-height: 0; transition: background .18s, box-shadow .18s; }
.lane.over { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.lane-h { padding: 11px 13px 7px; display: flex; align-items: baseline; gap: 6px; } .lane-h b { font-weight: 600; font-size: 13px; letter-spacing: -.003em; } .lane-h .n { color: var(--label-2); font-variant-numeric: tabular-nums; }
.lane-sub { margin-left: auto; font-size: 11px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.lane-b { padding: 2px 7px 9px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; flex: 1; min-height: 40px; }
.kc { background: var(--surface); border-radius: 11px; padding: 10px 11px; box-shadow: var(--shadow-1); cursor: grab; user-select: none; transition: box-shadow .18s, transform .18s var(--ease); position: relative; }
.kc:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.kc:active { cursor: grabbing; } .kc.lift { opacity: .3; transform: none; box-shadow: none; }
.kc .nm { font-weight: 600; font-size: 13px; letter-spacing: -.003em; } .kc .sub { font-size: 12px; color: var(--label-2); } .kc .foot { display: flex; align-items: center; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.ghost { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; will-change: transform; } .ghost .kc { box-shadow: var(--shadow-3); transform: rotate(1.6deg) scale(1.03); cursor: grabbing; transition: opacity .15s, transform .18s var(--ease); } .ghost.fade .kc { opacity: .35; transform: scale(.82); }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none !important; }
.drops { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 30; display: flex; gap: 8px; animation: rise .28s var(--ease); }
.drop { padding: 11px 22px; border-radius: 22px; background: var(--chrome); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: var(--shadow-3); font-weight: 550; color: var(--red); display: flex; gap: 7px; align-items: center; transition: transform .18s var(--ease), background .18s; }
.drop.over { background: #ff3b30; color: #fff; transform: scale(1.06); }
.dots { display: inline-flex; gap: 3px; align-items: center; } .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fill-3); } .dot.pass { background: #34c759; } .dot.fail { background: #ff3b30; } .dot.wait { background: #ff9f0a; } .dot.review { background: #5ac8fa; }
.bulk { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 16px); overflow-x: auto; display: flex; gap: 8px; align-items: center; padding: 8px 10px 8px 16px; border-radius: 16px; background: var(--chrome); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: var(--shadow-3); animation: rise .28s var(--ease); white-space: nowrap; }
.bulk select.input { width: auto; height: 28px; }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.28); display: grid; place-items: center; padding: 24px; animation: fade .2s ease; }
.sheet { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-3); width: 100%; max-width: 480px; max-height: calc(100dvh - 48px); display: flex; flex-direction: column; animation: pop .34s var(--ease); }
.sheet.w-lg { max-width: 680px; }
.sheet-h { padding: 18px 22px 4px; } .sheet-h h2 { font-size: 18px; font-weight: 650; letter-spacing: -.012em; } .sheet-b { padding: 12px 22px; overflow: auto; flex: 1; } .sheet-f { padding: 12px 22px 18px; display: flex; gap: 8px; justify-content: flex-end; }
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.12); animation: fade .2s ease; }
.drawer { position: fixed; right: 8px; top: 8px; bottom: 8px; width: 560px; max-width: calc(100vw - 16px); z-index: 91; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: slide .38s var(--ease); overflow: hidden; }
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { padding: 9px 16px; border-radius: 20px; background: var(--chrome); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: var(--shadow-3); font-weight: 500; animation: drop .32s var(--ease); max-width: 90vw; display: flex; gap: 7px; align-items: center; }
.toast.err .icon { color: var(--red); } .toast .icon { color: var(--green); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: scale(.95) translateY(8px); } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translate(-50%, 14px); } } @keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Candidate inspector */
.steps { position: relative; } .step { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.step::before { content: ""; position: absolute; left: 11.25px; top: 26px; bottom: 2px; width: 1.5px; background: var(--sep-strong); } .step:last-child::before { display: none; } .step.done::before { background: #34c759; }
.step-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--fill); color: var(--label-3); display: grid; place-items: center; font-size: 11px; font-weight: 600; z-index: 1; }
.step.done .step-dot { background: #34c759; color: #fff; } .step.now .step-dot { background: var(--accent); color: var(--on-accent); }
.step-t { font-weight: 600; height: 24px; display: flex; align-items: center; gap: 6px; } .step.todo .step-t { color: var(--label-3); font-weight: 500; }
.step-p { margin-top: 6px; padding: 12px; background: var(--fill-2); border-radius: 10px; }
.tabs { display: flex; gap: 2px; padding: 0 18px; border-bottom: .5px solid var(--sep); } .tabs button { border: 0; background: none; padding: 9px 10px; cursor: pointer; font-weight: 500; color: var(--label-2); border-bottom: 2px solid transparent; margin-bottom: -.5px; } .tabs button.on { color: var(--label); border-bottom-color: var(--accent); }
.kv { display: grid; grid-template-columns: 128px 1fr; gap: 7px 12px; font-size: 13px; } .kv dt { color: var(--label-2); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.feed { display: flex; flex-direction: column; } .feed-i { padding: 8px 0; border-bottom: .5px solid var(--sep); } .feed-i:last-child { border-bottom: 0; }
.letter { white-space: pre-wrap; font-size: 13.5px; line-height: 1.65; }

/* Auth, public */
.center { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth { width: 100%; max-width: 360px; text-align: center; } .auth .logo { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 14px; }
.auth h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; } .auth form { margin-top: 22px; text-align: left; }
.public { max-width: 680px; margin: 0 auto; padding: 44px 20px 80px; } .public-top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; } .public-top img { height: 30px; background: #fff; border-radius: 6px; padding: 2px 4px; }
.chart { width: 100%; display: block; overflow: visible; } .chart text { font-size: 11px; fill: var(--label-2); font-variant-numeric: tabular-nums; } .chart .grid-l { stroke: var(--sep); stroke-width: .5; } .chart .hit { fill: transparent; }
.chart-tip { position: fixed; z-index: 300; pointer-events: none; background: var(--chrome); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 7px 10px; border-radius: 9px; box-shadow: var(--shadow-3); font-size: 12px; white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--label-2); } .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.funnel-row { display: grid; grid-template-columns: 158px 1fr 92px; gap: 12px; align-items: center; height: 30px; } .funnel-track { position: relative; height: 18px; } .funnel-bar { height: 18px; background: var(--accent); border-radius: 4px; transition: width .5s var(--ease); }
.palette { position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.25); display: flex; justify-content: center; padding-top: 12vh; animation: fade .15s; }
.palette-b { width: 560px; max-width: calc(100vw - 32px); max-height: 60vh; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-3); display: flex; flex-direction: column; overflow: hidden; align-self: flex-start; animation: pop .25s var(--ease); }
.palette-b input { border: 0; background: none; height: 48px; padding: 0 16px; font-size: 16px; width: 100%; outline: none; border-bottom: .5px solid var(--sep); } .palette-r { overflow: auto; padding: 6px; } .palette-i { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; width: 100%; background: none; border: 0; text-align: left; } .palette-i:hover, .palette-i.on { background: var(--accent); color: var(--on-accent); } .palette-i:hover .muted, .palette-i.on .muted { color: inherit; opacity: .8; }

@media print {
  html, body, .frame, .main, .scroll, .table-wrap { height: auto !important; overflow: visible !important; display: block !important; }
  .side, .bar, .toolbar, .tabbar, .bulk, .drops, .toasts { display: none !important; }
}
@media (max-width: 860px) {
  .frame { grid-template-columns: minmax(0,1fr); }
  .side { display: none; }
  .main { height: calc(100dvh - 54px - env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(54px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--chrome); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-top: .5px solid var(--sep); z-index: 40; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--label-2); } .tabbar a.on { color: var(--accent-ink); }
  .page { padding: 18px 16px 48px; } .bar { padding: 8px 16px; flex-wrap: wrap; } .toolbar { padding: 8px 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .toolbar > * { flex: none; } .toolbar > .grow { flex: 1 0 8px; } .hide-m { display: none; } .board { padding: 12px 16px 24px; scroll-snap-type: x proximity; } .lane { width: 82vw; scroll-snap-align: center; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-2 { grid-template-columns: minmax(0,1fr); } .field-grid { grid-template-columns: 1fr; }
  .title { font-size: 26px; } .drawer { right: 0; top: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 0; } .scrim { padding: 0; place-items: end center; } .sheet { border-radius: 16px 16px 0 0; max-width: 100%; max-height: 92dvh; }
  .group-row > .k { flex-basis: 40%; } .funnel-row { grid-template-columns: 110px 1fr 70px; } .kv { grid-template-columns: 110px 1fr; }
}
.ai-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ai-u, .ai-a { padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 88%; line-height: 1.45; }
.ai-u { align-self: flex-end; background: var(--accent); color: var(--on-accent); }
.ai-a { align-self: flex-start; background: var(--fill-2); }
.ai-a.failed { color: var(--red); }
.msg-in { background: var(--fill-2); border-radius: 10px; padding: 8px 10px; border-bottom: 0; margin: 4px 0; }

@media (max-width: 860px) {
  .input, select.input, textarea.input { font-size: 16px; min-height: 44px; }
  .btn, .btn.sm { min-height: 44px; }
  input[type=checkbox] { width: 22px; height: 22px; }
  .group-row { flex-wrap: wrap; }
  .seg { max-width: 100%; overflow-x: auto; }
}
