@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Figtree:ital,wght@0,400..700;1,400..700&display=swap");

:root {
  --canvas: #f7f6fc;
  --surface: #ffffff;
  --ink: #1d1838;
  --ink-2: #413b60;
  --muted: #6e6890;
  --line: #e6e3f2;
  --line-2: #f0eef8;
  --night: #221a52;
  --night-2: #17113a;
  --violet: #6c47ff;
  --violet-ink: #4b2bd6;
  --violet-soft: #efebff;
  --sky: #2a9df4;
  --sky-soft: #e5f3fe;
  --mint: #0fa97e;
  --mint-ink: #0a7a5b;
  --mint-soft: #e2f7ef;
  --amber: #e8930c;
  --amber-ink: #9a5d00;
  --amber-soft: #fff3dc;
  --rose: #e5484d;
  --rose-ink: #b4262b;
  --rose-soft: #fde8e9;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-pop: 0 24px 60px -18px rgba(34, 26, 82, 0.35);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--violet-ink); }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side {
  background: radial-gradient(120% 60% at 0% 0%, #3a2a8a 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #d9d4f5; padding: 22px 14px; display: flex; flex-direction: column; gap: 3px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 24px; color: #fff; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #8a6bff, var(--sky)); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(108, 71, 255, .8); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--body); font-weight: 400; font-size: 12px; color: #a79fd6; letter-spacing: 0; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #cfc8f2; text-decoration: none; font-weight: 550; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 #9f86ff; }
.nav svg { width: 19px; height: 19px; flex: none; }
.side h4 { font-family: var(--body); font-size: 12.5px; font-weight: 600; color: #8e86bf; margin: 24px 12px 6px; letter-spacing: 0; }
.pos-link { display: flex; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 8px; color: #cfc8f2; text-decoration: none; font-size: 14px; }
.pos-link:hover, .pos-link.active { background: rgba(255,255,255,.08); color: #fff; }
.pos-link i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.pos-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.pos-link .n { color: #8e86bf; font-variant-numeric: tabular-nums; flex: none; }
.side-foot { margin-top: auto; padding: 16px 12px 0; font-size: 13.5px; color: #a79fd6; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side-foot b { color: #fff; font-weight: 600; display: block; }
.side-foot button { background: rgba(255,255,255,.08); border: 0; color: #e4dffa; cursor: pointer; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.side-foot button:hover { background: rgba(255,255,255,.15); }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px; background: rgba(247, 246, 252, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 23px; font-weight: 700; margin: 0; }
.sync { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: inline-block; margin-right: 7px; box-shadow: 0 0 0 3px var(--mint-soft); }
.dot.busy { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); animation: pulse 1.2s ease-in-out infinite; }
.dot.err { background: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
@keyframes pulse { 50% { opacity: .35; } }
.page { padding: 30px 40px 80px; max-width: 1260px; }
.lede { color: var(--muted); margin: -6px 0 22px; max-width: 70ch; }

/* ------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #cfc9e8; background: #fbfaff; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(135deg, var(--violet) 0%, #5a3cf0 100%); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(108, 71, 255, .9); }
.btn.primary:hover { background: var(--violet-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--rose-ink); }
.btn.danger:hover { background: var(--rose-soft); border-color: #f6c9cb; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .badge { background: var(--amber); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.input { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 13px; width: 100%; min-width: 0; }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
textarea.input { resize: vertical; line-height: 1.55; }

/* ------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.stat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat .ic svg { width: 21px; height: 21px; }
.stat b { display: block; font-family: var(--display); font-size: 27px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13.5px; }
.c-violet { background: var(--violet-soft); color: var(--violet-ink); }
.c-sky { background: var(--sky-soft); color: #1574bf; }
.c-amber { background: var(--amber-soft); color: var(--amber-ink); }
.c-mint { background: var(--mint-soft); color: var(--mint-ink); }

/* ------------------------------------------------ ask box */
.ask { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px 28px 20px; overflow: hidden; }
.ask::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--violet), var(--sky), var(--mint)); }
.ask-label { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.ask textarea { width: 100%; border: 0; resize: none; background: transparent; font-family: var(--display); font-size: 27px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; min-height: 76px; padding: 0; color: var(--ink); }
.ask textarea::placeholder { color: #bdb7da; font-weight: 500; }
.ask textarea:focus { outline: none; }
.ask-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.ask-row select { width: auto; max-width: 280px; }
.ask-row .spacer { flex: 1; }

.section-head { display: flex; align-items: center; gap: 12px; margin: 34px 0 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 19px; font-weight: 700; margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.section-head .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }

.history { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.history li + li { border-top: 1px solid var(--line-2); }
.history a { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; padding: 14px 18px; text-decoration: none; color: var(--ink); align-items: baseline; }
.history a:hover { background: #fbfaff; }
.history a:hover .q { color: var(--violet-ink); }
.history .q { font-weight: 600; }
.history .meta { color: var(--muted); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ result lists */
.result-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 28px 0 14px; }
.result-summary .big { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.result-summary .q { color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.toolbar .input { width: auto; }
.toolbar .search-box { min-width: 240px; flex: 0 1 340px; }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.list.best { border-color: #bfe9d8; }
.list.close { border-color: #f6dca9; }
.row { display: grid; grid-template-columns: 28px 56px minmax(0, 1.25fr) minmax(0, 1.4fr) auto; gap: 18px; padding: 16px 20px; align-items: center; cursor: pointer; }
.row + .row { border-top: 1px solid var(--line-2); }
.row:hover { background: #fbfaff; }
.row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--violet); cursor: pointer; }
.score { --p: 0; --c: var(--mint); width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.score::before { content: ""; grid-area: 1/1; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); }
.score span { grid-area: 1/1; z-index: 1; }
.score.t-mid { --c: var(--amber); }
.score.t-low { --c: #c7c2de; color: var(--muted); }
.avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 16px; flex: none; }
.who b { display: block; font-weight: 700; font-size: 16px; }
.who .sub { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.why { font-size: 14px; color: var(--ink-2); min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tag { font-size: 12.5px; font-weight: 550; padding: 3px 9px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.tag.ok { background: var(--mint-soft); color: var(--mint-ink); }
.tag.part { background: var(--amber-soft); color: var(--amber-ink); }
.tag.no { background: var(--rose-soft); color: var(--rose-ink); }
.tag svg { width: 12px; height: 12px; flex: none; }
.tag em { font-style: normal; font-weight: 400; opacity: .85; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.stage { font-size: 12.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.stage.shortlisted { background: var(--amber-soft); color: var(--amber-ink); }
.stage.interview { background: var(--sky-soft); color: #1574bf; }
.stage.rejected { background: var(--rose-soft); color: var(--rose-ink); }
.stage.hired { background: var(--mint); color: #fff; }

.cv-row { grid-template-columns: 28px 46px minmax(0, 1.3fr) minmax(0, 1fr) 96px 116px auto; }
.cv-row .yrs { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; }
.cv-row .yrs small { display: block; color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 12.5px; }

.bulkbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 10px 12px 10px 20px; border-radius: 999px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-pop); z-index: 20; font-size: 14px; }
.bulkbar .btn { border-radius: 999px; }
.bulkbar .btn.ghost { color: #d9d4f5; }
.bulkbar .btn.ghost:hover { background: rgba(255,255,255,.1); }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius-m); }
.empty h3 { color: var(--ink); font-size: 19px; margin: 0 0 6px; font-weight: 700; }
.empty p { margin: 0 auto 16px; max-width: 480px; }

.thinking { display: flex; align-items: center; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); margin-top: 24px; color: var(--ink-2); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--violet-soft); border-top-color: var(--violet); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------ criteria */
.crit-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px 26px; }
.card h2 { font-size: 20px; margin: 0 0 4px; font-weight: 700; }
.card > p { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.jd-box { min-height: 260px; font-size: 14.5px; }
.saved { display: flex; flex-direction: column; gap: 10px; }
.saved a { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px 16px 22px; position: relative; overflow: hidden; }
.saved a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--violet)); }
.saved a:hover { border-color: #cfc9e8; box-shadow: 0 10px 24px -18px rgba(34, 26, 82, .5); }
.saved b { font-family: var(--display); font-size: 17px; font-weight: 700; display: block; }
.saved .sub { color: var(--muted); font-size: 13.5px; }
.saved .counts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.crit-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.crit-head h2 { font-size: 30px; font-weight: 800; margin: 0; }
.crit-head .sub { color: var(--muted); }
.crit-head .spacer { flex: 1; }
.crit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.cchip.must { background: var(--violet); color: #fff; }
.cchip.nice { background: var(--surface); color: var(--violet-ink); border: 1.5px dashed #c4b6ff; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-top: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.edit-row { display: grid; grid-template-columns: 1fr 160px auto; gap: 10px; margin-bottom: 8px; }
.crit-row { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: start; }
.crit-row .headline { color: var(--ink-2); margin-top: 4px; font-size: 14.5px; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 700; font-family: var(--display); font-size: 17px; }
.group-head small { font-family: var(--body); font-weight: 500; font-size: 13.5px; opacity: .85; }
.group-head.best { background: var(--mint-soft); color: var(--mint-ink); }
.group-head.close { background: var(--amber-soft); color: var(--amber-ink); }
.group-head.weak { background: var(--line-2); color: var(--ink-2); }
.group-head + .row { border-top: 0; }

/* ------------------------------------------------ drawer */
.scrim { position: fixed; inset: 0; background: rgba(23, 17, 58, .45); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(1180px, 96vw); background: var(--canvas); z-index: 31; display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow-pop); animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.drawer-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.drawer-head .sub { color: var(--muted); font-size: 14px; }
.drawer-head .spacer { flex: 1; }
.drawer-body { display: grid; grid-template-columns: 410px 1fr; min-height: 0; }
.profile { overflow-y: auto; padding: 20px 22px 40px; border-right: 1px solid var(--line); }
.pdf-pane { min-height: 0; background: #4a4560; }
.pdf-pane iframe { width: 100%; height: 100%; border: 0; display: block; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0 0 20px; }
.facts div { min-width: 0; }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.profile h3 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
.profile p { margin: 0; color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--violet-soft); }
.timeline li { padding: 0 0 12px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--violet); }
.timeline b { display: block; font-weight: 650; font-size: 14.5px; }
.timeline span { color: var(--muted); font-size: 13.5px; }
.match-box { border-radius: var(--radius-m); padding: 14px 16px; margin-bottom: 18px; background: var(--mint-soft); color: var(--mint-ink); }
.match-box.close { background: var(--amber-soft); color: var(--amber-ink); }
.match-box.weak { background: var(--rose-soft); color: var(--rose-ink); }
.match-box b { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 16px; }
.match-box p { color: inherit; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14px; color: var(--ink); background: rgba(255,255,255,.7); border-radius: 8px; padding: 7px 10px; }
.checklist li small { color: var(--muted); display: block; }
.checklist svg { width: 18px; height: 18px; margin-top: 1px; }
.email-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; font-size: 13.5px; white-space: pre-wrap; max-height: 220px; overflow-y: auto; color: var(--ink-2); }
.stage-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-picker button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.stage-picker button.on { background: var(--violet); color: #fff; border-color: var(--violet); }

/* ------------------------------------------------ settings */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; margin-bottom: 20px; }
.panel h2 { font-size: 19px; margin: 0 0 4px; font-weight: 700; }
.panel > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.steps { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.notice { border-radius: 10px; padding: 11px 14px; font-size: 14px; margin: 10px 0; }
.notice.ok { background: var(--mint-soft); color: var(--mint-ink); }
.notice.err { background: var(--rose-soft); color: var(--rose-ink); }
.notice.warn { background: var(--amber-soft); color: var(--amber-ink); }
.users { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.users td { padding: 10px 4px; border-bottom: 1px solid var(--line-2); }

/* ------------------------------------------------ auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: radial-gradient(90% 70% at 10% 10%, #4b35b5 0%, transparent 60%), radial-gradient(70% 60% at 90% 90%, #1d6fb8 0%, transparent 60%), var(--night); color: #e6e1ff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art blockquote { margin: 0; font-family: var(--display); font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; max-width: 560px; color: #fff; }
.auth-art .eg { color: #b9b0ea; font-size: 16px; max-width: 460px; }
.auth-form { display: grid; place-items: center; padding: 40px; }
.auth-form form { width: 100%; max-width: 360px; }
.auth-form h1 { font-size: 30px; margin: 0 0 6px; font-weight: 800; }
.auth-form > form > p { color: var(--muted); margin: 0 0 24px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; font-size: 14px; box-shadow: var(--shadow-pop); max-width: 420px; }
.toast.err { background: var(--rose-ink); }

@media (prefers-reduced-motion: reduce) { .dot.busy, .drawer { animation: none; } }

/* ------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .drawer-body { grid-template-columns: 1fr; grid-template-rows: auto 70vh; overflow-y: auto; }
  .profile { border-right: 0; overflow: visible; }
  .cv-row { grid-template-columns: 28px 46px minmax(0,1fr) 86px auto; }
  .cv-row .col-pos, .cv-row .col-stage { display: none; }
  .crit-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .side h4, .pos-link, .side-foot { display: none; }
  .brand { padding: 4px 10px; }
  .nav { display: flex; gap: 4px; flex-wrap: wrap; }
  .topbar, .page { padding-left: 18px; padding-right: 18px; }
  .row, .cv-row { grid-template-columns: 28px 46px 1fr; }
  .row > .why, .row > .row-actions, .cv-row > .yrs { grid-column: 3; }
  .crit-row { grid-template-columns: 46px 1fr; }
  .crit-row > .row-actions { grid-column: 2; justify-content: flex-start; }
  .ask textarea { font-size: 21px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .edit-row { grid-template-columns: 1fr; }
}
.match-box .checklist b { display: inline; margin: 0; font-family: var(--body); font-size: 14px; }
