/* ============================================================
   SpotNet recruiting - the app.
   The site's palette at working volume: warm black, quiet panels,
   one orange, light Rubik headings. Hebrew first, right to left.
   ============================================================ */

:root {
  --bg: #0b0a09; --bg-2: #0f0d0b;
  --panel: #14110f; --panel-2: #1b1714; --panel-3: #231e1a;
  --line: rgba(255,255,255,.085); --line-2: rgba(255,255,255,.15); --line-3: rgba(255,255,255,.24);
  --t1: #fff; --t2: rgba(255,255,255,.8); --t3: rgba(255,255,255,.58); --t4: rgba(255,255,255,.4);
  --or: #F37021; --or-2: #FF8A3D; --or-3: #FFB26B; --or-soft: rgba(243,112,33,.14); --or-line: rgba(243,112,33,.45);
  --ink: #171208;
  --ok: #4cc38a; --ok-soft: rgba(76,195,138,.14);
  --warn: #f2b84b; --warn-soft: rgba(242,184,75,.14);
  --bad: #ff7d6e; --bad-soft: rgba(255,125,110,.13);
  --blue: #86aaff; --blue-soft: rgba(134,170,255,.14);
  --violet: #b99bff; --violet-soft: rgba(185,155,255,.14);
  --grad-word: linear-gradient(to left, #FF7A1E 0%, #FFB26B 55%, #FFE3C4 100%);
  --f: 'Assistant', 'Rubik', system-ui, sans-serif;
  --d: 'Rubik', system-ui, sans-serif;
  --ease: cubic-bezier(.165,.84,.44,1);
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px;
  --shadow: 0 18px 50px -18px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--bg); color: var(--t2); font: 400 15.5px/1.55 var(--f); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* every svg here is an icon; ones that need another size say so below */
svg { width: 18px; height: 18px; flex: none; }
.card-h > span > svg, .card-h svg { color: var(--or-2); }
:focus-visible { outline: 2px solid var(--or-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(243,112,33,.35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--t3); }
.faint { color: var(--t4); }
.sp { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { color: var(--t1); font-family: var(--d); font-weight: 400; }
strong.g { background: var(--grad-word); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 400; }

/* ---------------------------------------------------------- form controls */
input, textarea, select {
  font: inherit; color: var(--t1); background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px 13px; width: 100%; transition: border-color .2s, background .2s; min-height: 44px;
}
textarea { resize: vertical; line-height: 1.6; min-height: 96px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--or); background: rgba(243,112,33,.06); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-opacity='.6' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 14px; padding-left: 34px; }
select option { background: var(--panel-2); }
input[type=date], input[type=time] { color-scheme: dark; direction: ltr; text-align: right; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--or); }
input[type=range] { accent-color: var(--or); padding: 0; min-height: 0; border: 0; background: none; }
::placeholder { color: rgba(255,255,255,.32); }
label.f { display: grid; gap: 6px; font-size: 14px; color: var(--t3); }
label.f > span { font-weight: 500; color: var(--t2); }
.hint { font-size: 13px; color: var(--t4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px;
  border-radius: 999px; font: 500 15px/1.15 var(--d); border: 1px solid var(--line-2); color: var(--t1);
  transition: all .25s var(--ease); white-space: nowrap; background: rgba(255,255,255,.02);
}
.btn:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
.btn.pri { background: linear-gradient(135deg, var(--or-2), var(--or)); border-color: transparent; color: var(--ink); box-shadow: 0 10px 28px -12px rgba(243,112,33,.6); }
.btn.pri:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(243,112,33,.75); }
.btn.white { background: #fff; color: #000; border-color: #fff; }
.btn.ghost { border-color: transparent; color: var(--t3); background: none; }
.btn.ghost:hover { color: #fff; background: rgba(255,255,255,.06); }
.btn.ok { border-color: rgba(76,195,138,.5); color: var(--ok); }
.btn.ok:hover { background: var(--ok-soft); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.btn.sm { min-height: 34px; padding: 5px 13px; font-size: 14px; }
.btn.xs { min-height: 28px; padding: 3px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.ib { width: 36px; height: 36px; flex: none; border-radius: 10px; display: inline-grid; place-items: center; color: var(--t3); transition: all .2s; }
.ib:hover { background: rgba(255,255,255,.08); color: #fff; }
.ib svg { width: 18px; height: 18px; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { padding: 6px 14px; border-radius: 999px; font: 400 14px/1.3 var(--d); color: var(--t3); min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: #000; }
.seg button svg { width: 15px; height: 15px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--t2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 40px; height: 23px; border-radius: 99px; background: rgba(255,255,255,.14); position: relative; transition: background .25s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--or); }
.switch input:checked + i::after { transform: translateX(-17px); }
.switch input:focus-visible + i { outline: 2px solid var(--or-2); outline-offset: 2px; }

/* ---------------------------------------------------------- the shell */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 14px 16px;
  border-inline-end: 1px solid var(--line); background: linear-gradient(180deg, #110f0d, #0b0a09 70%);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px; }
.brand img { height: 24px; width: auto; }
.brand span { font: 500 12px/1 var(--d); letter-spacing: .08em; color: var(--ink); background: var(--or); padding: 4px 8px 3px; border-radius: 6px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--t3); font: 400 15.5px/1.2 var(--d); transition: all .2s; position: relative; }
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.on { color: #fff; background: rgba(255,255,255,.08); }
.nav a.on::before { content: ""; position: absolute; inset-inline-start: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--or); }
.nav .count { margin-inline-start: auto; font: 500 12px/1 var(--f); padding: 4px 7px; border-radius: 99px; background: var(--or); color: var(--ink); }
.nav-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.side .me b { display: block; color: var(--t1); font: 400 14.5px/1.2 var(--d); }
.side .me small { color: var(--t4); font-size: 12.5px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 30px;
  background: rgba(11,10,9,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.top .search { position: relative; width: min(360px, 40vw); }
.top .search input { padding-inline-start: 38px; border-radius: 999px; min-height: 40px; background: rgba(255,255,255,.05); border-color: var(--line); }
.top .search svg { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--t4); }
.top .burger { display: none; }
.page { padding: 30px 30px 80px; max-width: 1480px; width: 100%; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.page-h h1 { font: 300 clamp(28px, 3vw, 38px)/1.1 var(--d); letter-spacing: -.01em; }
.page-h p { color: var(--t3); margin-top: 6px; max-width: 70ch; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--t4); font-size: 13.5px; margin-bottom: 8px; }
.crumbs a:hover { color: var(--t2); }

/* ---------------------------------------------------------- cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card.pad { padding: 20px 22px; }
.card-h { display: flex; align-items: center; gap: 8px 10px; padding: 16px 20px 12px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { font: 400 17px/1.3 var(--d); }
.card-h .sub { color: var(--t4); font-size: 13.5px; }
.card-b { padding: 4px 20px 18px; }
.card-b.flush { padding: 0 0 6px; }
/* a plain grid is one column that may shrink - without minmax(0) its track
   grows to the widest thing inside and pushes the page sideways on a phone */
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); align-items: start; }
.empty { padding: 34px 20px; text-align: center; color: var(--t4); }
.empty b { display: block; color: var(--t2); font: 400 17px/1.4 var(--d); margin-bottom: 4px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r); background: var(--or-soft); border: 1px solid var(--or-line); color: var(--t2); font-size: 14.5px; }
.notice svg { width: 19px; height: 19px; flex: none; color: var(--or-2); margin-top: 2px; }
.notice.bad { background: var(--bad-soft); border-color: rgba(255,125,110,.4); }
.notice.bad svg { color: var(--bad); }
.notice.ok { background: var(--ok-soft); border-color: rgba(76,195,138,.4); }
.notice.ok svg { color: var(--ok); }

/* ---------------------------------------------------------- dashboard */
.hello { margin-bottom: 26px; }
.hello h1 { font: 300 clamp(30px, 3.4vw, 44px)/1.1 var(--d); letter-spacing: -.015em; }
.hello p { color: var(--t3); margin-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { padding: 18px 20px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .25s; }
a.kpi:hover { border-color: var(--line-3); }
.kpi small { display: block; color: var(--t3); font-size: 13.5px; }
.kpi b { display: block; font: 300 36px/1.1 var(--d); color: var(--t1); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12.5px; color: var(--t4); margin-top: 4px; }
.kpi .delta.up { color: var(--ok); }
.kpi.hot { border-color: var(--or-line); background: radial-gradient(120% 120% at 100% 0%, rgba(243,112,33,.16), transparent 60%), var(--panel); }
.funnel { display: grid; gap: 10px; }
.funnel .fr { display: grid; grid-template-columns: 120px minmax(0,1fr) 40px; gap: 12px; align-items: center; font-size: 14px; }
.funnel .bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.06); overflow: hidden; }
.funnel .bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--or), var(--or-3)); min-width: 3px; transition: width .8s var(--ease); }
.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); transition: background .2s; min-width: 0; }
.li:first-child { border-top: 0; }
a.li:hover, .li.click:hover { background: rgba(255,255,255,.03); cursor: pointer; }
.li .tx { min-width: 0; flex: 1; }
.li .tx b { display: block; color: var(--t1); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .tx small { display: block; color: var(--t3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { text-align: center; min-width: 54px; padding: 6px 4px; border-radius: 12px; background: rgba(255,255,255,.05); line-height: 1.15; }
.when b { display: block; font: 400 18px/1.1 var(--d); color: var(--t1); }
.when small { font-size: 11.5px; color: var(--t3); }
.feed .li { padding: 9px 20px; font-size: 14px; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t4); flex: none; }

/* ---------------------------------------------------------- bits */
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 500 14px/1 var(--d); color: #fff; background: linear-gradient(145deg, #3a2f27, #221c17); border: 1px solid var(--line-2); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; line-height: 1.5; color: var(--t2); background: rgba(255,255,255,.07); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.plain::before { display: none; }
.pill.or { color: var(--or-2); background: var(--or-soft); }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.pill.blue { color: var(--blue); background: var(--blue-soft); }
.pill.violet { color: var(--violet); background: var(--violet-soft); }
.pill.gray { color: var(--t3); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 13px; color: var(--t2); border: 1px solid var(--line-2); background: rgba(255,255,255,.02); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
a.chip:hover, button.chip:hover { border-color: rgba(255,255,255,.45); color: #fff; }
button.chip.on { background: #fff; color: #000; border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-new { width: 8px; height: 8px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(243,112,33,.18); flex: none; }

.score { --c: var(--t4); position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255,255,255,.08) 0); }
.score::before { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--panel-2); }
.score b { position: relative; font: 500 15px/1 var(--d); color: var(--t1); font-variant-numeric: tabular-nums; }
.score.lg { width: 88px; height: 88px; }
.score.lg::before { inset: 6px; }
.score.lg b { font-size: 30px; font-weight: 300; }
.score.sm { width: 36px; height: 36px; }
.score.sm b { font-size: 13px; }
.score.s1 { --c: var(--ok); } .score.s2 { --c: var(--or-2); } .score.s3 { --c: var(--warn); } .score.s4 { --c: var(--bad); }
.score.wait b, .score.none b { font-size: 12px; color: var(--t4); }
.score.wait { background: conic-gradient(var(--or) 25%, rgba(255,255,255,.08) 0); animation: spin 1.1s linear infinite; }
.score.wait b { animation: spin 1.1s linear infinite reverse; }
.pot { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--or-3); white-space: nowrap; }
.pot svg { width: 14px; height: 14px; }
.stars { display: inline-flex; gap: 1px; color: var(--or-2); }
.stars svg { width: 14px; height: 14px; }
.stars .off { color: rgba(255,255,255,.18); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--or-2); animation: spin .8s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skel 1.4s ease infinite; border-radius: 12px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fade-in { animation: fadein .45s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- jobs */
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.job { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); transition: all .35s var(--ease); position: relative; }
.job:hover { border-color: var(--or-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.job h3 { font: 400 19px/1.3 var(--d); }
.job .en { color: var(--t4); font-size: 13.5px; direction: ltr; text-align: right; }
.job .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.job .mini { display: flex; gap: 3px; height: 6px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.05); }
.job .mini i { display: block; height: 100%; }
.job .nums { display: flex; gap: 16px; color: var(--t3); font-size: 13.5px; }
.job .nums b { color: var(--t1); font: 400 18px/1 var(--d); margin-inline-end: 4px; }
.job .foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.job.closed { opacity: .62; }
.st-open { color: var(--ok); } .st-draft { color: var(--t3); } .st-paused { color: var(--warn); } .st-closed { color: var(--t4); }

/* the editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.editor .side-col { position: sticky; top: 86px; display: grid; gap: 16px; }
.sec { padding: 22px 24px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 16px; }
.sec > h3 { font: 400 18px/1.3 var(--d); display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.sec > h3 small { font: 400 13.5px/1.3 var(--f); color: var(--t4); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pairs { display: grid; gap: 8px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; align-items: start; }
.pair input, .pair textarea { min-height: 40px; }
.pair textarea { min-height: 40px; height: 40px; resize: none; overflow: hidden; }
.qbox { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; background: rgba(255,255,255,.015); }
.qbox .opts { display: grid; gap: 6px; }
.qbox .opt { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 6px; align-items: center; }
.qbox .opt input[type=checkbox] { justify-self: center; }

/* ---------------------------------------------------------- pipeline */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .search-in { position: relative; width: 260px; }
.toolbar .search-in input { padding-inline-start: 36px; min-height: 38px; border-radius: 999px; }
.toolbar .search-in svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--t4); }
.toolbar select { width: auto; min-height: 38px; border-radius: 999px; padding-block: 6px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(208px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: start; }
.col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); min-height: 240px; display: flex; flex-direction: column; transition: border-color .2s, background .2s; }
.col.drop { border-color: var(--or); background: rgba(243,112,33,.05); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; position: sticky; top: 0; }
.col-h b { font: 400 15.5px/1.2 var(--d); color: var(--t1); }
.col-h .n { font-size: 12.5px; color: var(--t3); background: rgba(255,255,255,.07); padding: 2px 8px; border-radius: 99px; }
.col-b { display: grid; gap: 9px; padding: 4px 10px 12px; align-content: start; flex: 1; }
.cc { display: grid; gap: 8px; padding: 13px 14px; border-radius: 15px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; user-select: none; }
.cc:hover { border-color: var(--line-3); transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(0,0,0,.8); }
.cc.dragging { opacity: .45; }
.cc .top-r { display: flex; align-items: flex-start; gap: 10px; }
.cc .nm { flex: 1; min-width: 0; }
.cc .nm b { display: flex; align-items: center; gap: 7px; color: var(--t1); font-weight: 500; font-size: 15px; }
.cc .nm b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .nm small { display: block; color: var(--t3); font-size: 12.5px; line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc .ft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--t4); }
.cc .ko { color: var(--bad); display: inline-flex; }
.cc .ko svg { width: 15px; height: 15px; }
.closed-drawer { margin-top: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: start; font: 500 12.5px/1.2 var(--f); color: var(--t4); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.click { cursor: pointer; transition: background .15s; }
.table tr.click:hover td { background: rgba(255,255,255,.025); }
.table .who { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.table .who b { display: block; color: var(--t1); font-weight: 500; }
.table .who small { display: block; color: var(--t3); font-size: 12.5px; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-wrap { overflow-x: auto; }

/* ---------------------------------------------------------- the candidate */
.cand-head { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: var(--r-xl); background: radial-gradient(90% 140% at 100% 0%, rgba(243,112,33,.12), transparent 55%), var(--panel); border: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.cand-head .who { flex: 1; min-width: 260px; display: grid; gap: 6px; }
.cand-head h1 { font: 300 32px/1.15 var(--d); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cand-head .headline { color: var(--t2); font-size: 16px; }
.cand-head .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stagebar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
.stagebar button { flex: 1; min-width: 110px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--t3); font: 400 14px/1.2 var(--d); display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .2s; }
.stagebar button:hover { color: #fff; border-color: var(--line-3); }
.stagebar button.done { color: var(--t2); background: rgba(243,112,33,.07); border-color: rgba(243,112,33,.25); }
.stagebar button.on { color: var(--ink); background: linear-gradient(135deg, var(--or-2), var(--or)); border-color: transparent; font-weight: 500; }
.outcome { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--r); margin-bottom: 18px; background: var(--bad-soft); border: 1px solid rgba(255,125,110,.35); }
.outcome.hired { background: var(--ok-soft); border-color: rgba(76,195,138,.4); }
.ai-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ai-top .verdict { display: grid; gap: 6px; flex: 1; min-width: 220px; }
.ai-top .verdict b { font: 400 20px/1.3 var(--d); color: var(--t1); }
.ai-sum { color: var(--t2); font-size: 15.5px; line-height: 1.7; margin-top: 14px; }
.reqs { display: grid; gap: 2px; margin-top: 6px; }
.req { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.req:first-child { border-top: 0; }
.req .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.req .ic svg { width: 13px; height: 13px; }
.req.met .ic { background: var(--ok-soft); color: var(--ok); }
.req.partial .ic { background: var(--warn-soft); color: var(--warn); }
.req.missing .ic { background: var(--bad-soft); color: var(--bad); }
.req.unknown .ic { background: rgba(255,255,255,.07); color: var(--t3); }
.req b { color: var(--t1); font-weight: 500; }
.req small { display: block; color: var(--t3); font-size: 13.5px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.pts h4 { font: 500 13.5px/1.3 var(--f); color: var(--t3); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.pts h4 svg { width: 15px; height: 15px; }
.pts ul { list-style: none; display: grid; gap: 7px; }
.pts li { font-size: 14px; color: var(--t2); padding-inline-start: 14px; position: relative; line-height: 1.5; }
.pts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--t4); }
.pts.good li::before { background: var(--ok); } .pts.bad li::before { background: var(--bad); } .pts.sig li::before { background: var(--or-2); }
.qs { list-style: none; counter-reset: q; display: grid; gap: 9px; }
.qs li { counter-increment: q; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 14.5px; color: var(--t2); }
.qs li::before { content: counter(q); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); font: 500 12px/1 var(--d); color: var(--t3); }
.answers { display: grid; }
.ans { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 14.5px; }
.ans:first-child { border-top: 0; }
.ans .q { color: var(--t3); }
.ans .a { color: var(--t1); display: flex; gap: 8px; align-items: center; }
.ans.ko .a { color: var(--bad); }
.cv-frame { width: 100%; height: 760px; border: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); background: #2a2622; display: block; }
.cv-text { white-space: pre-wrap; font-size: 14px; line-height: 1.7; color: var(--t2); padding: 6px 20px 20px; max-height: 640px; overflow: auto; }
.note { padding: 12px 20px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.note .meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t4); }
.note .meta b { color: var(--t2); font-weight: 500; font-size: 13.5px; }
.note p { white-space: pre-wrap; font-size: 14.5px; color: var(--t2); }
.verdicts { display: flex; gap: 5px; flex-wrap: wrap; }
.verdicts button { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13px; color: var(--t3); }
.verdicts button.on { background: #fff; color: #000; border-color: #fff; }
.star-in { display: inline-flex; gap: 2px; }
.star-in button { color: rgba(255,255,255,.2); padding: 2px; }
.star-in button.on { color: var(--or-2); }
.star-in svg { width: 20px; height: 20px; }
.tl { display: grid; padding: 4px 0 8px; }
.tl .ev { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 7px 20px; font-size: 14px; position: relative; }
.tl .ev .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--t3); }
.tl .ev .ic svg { width: 14px; height: 14px; }
.tl .ev small { display: block; color: var(--t4); font-size: 12.5px; }
.iv { padding: 14px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.iv:first-child { border-top: 0; }
.iv .when-l { color: var(--t1); font: 400 16px/1.3 var(--d); }

/* ---------------------------------------------------------- calendar */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.cal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cal-h { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-h div { padding: 10px 6px; text-align: center; font-size: 13px; color: var(--t3); border-inline-start: 1px solid var(--line); }
.cal-h div b { display: block; font: 300 22px/1.1 var(--d); color: var(--t1); }
.cal-h div.today b { color: var(--or-2); }
.cal-g { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); position: relative; max-height: 72vh; overflow-y: auto; }
.cal-g .hrs div { height: 52px; font-size: 11.5px; color: var(--t4); text-align: center; padding-top: 2px; border-top: 1px solid var(--line); }
.cal-g .day { position: relative; border-inline-start: 1px solid var(--line); }
.cal-g .day .slot { height: 52px; border-top: 1px solid var(--line); }
.cal-g .day .slot:nth-child(odd) { background: rgba(255,255,255,.008); }
.cal-g .day.today { background: rgba(243,112,33,.035); }
.cal-g .day .free { position: absolute; inset-inline: 0; background: rgba(76,195,138,.05); pointer-events: none; }
.ev-b { position: absolute; inset-inline: 4px; border-radius: 10px; padding: 6px 8px; font-size: 12.5px; line-height: 1.3; overflow: hidden; cursor: pointer; background: linear-gradient(135deg, rgba(255,138,61,.95), rgba(243,112,33,.92)); color: var(--ink); border: 1px solid rgba(255,255,255,.12); transition: transform .15s; z-index: 1; }
.ev-b:hover { transform: scale(1.02); z-index: 2; }
.ev-b b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-b.pending { background: repeating-linear-gradient(-45deg, rgba(243,112,33,.18), rgba(243,112,33,.18) 6px, rgba(243,112,33,.1) 6px, rgba(243,112,33,.1) 12px); color: var(--or-3); border: 1px dashed var(--or); }
.ev-b.done { background: rgba(255,255,255,.08); color: var(--t3); border-color: var(--line); }
.now-line { position: absolute; inset-inline: 0; height: 2px; background: var(--or); z-index: 3; pointer-events: none; }
.now-line::before { content: ""; position: absolute; inset-inline-start: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
.agenda { display: none; }

/* availability */
.avail { display: grid; gap: 8px; }
.avail .dayrow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.avail .dayrow:first-child { border-top: 0; }
.avail .dayrow > b { font: 400 15px/2.4 var(--d); color: var(--t1); }
.avail .ranges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.avail .range { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.avail .range input { width: 104px; min-height: 34px; padding: 4px 8px; border-radius: 9px; }

/* ---------------------------------------------------------- templates */
.tpl-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.tpl-list { display: grid; gap: 2px; padding: 8px; position: sticky; top: 86px; }
.tpl-list h4 { font: 500 12.5px/1 var(--f); color: var(--t4); padding: 12px 10px 6px; }
.tpl-list button { display: flex; align-items: center; gap: 8px; text-align: start; padding: 9px 10px; border-radius: 10px; color: var(--t3); font-size: 14.5px; }
.tpl-list button:hover { color: #fff; background: rgba(255,255,255,.04); }
.tpl-list button.on { color: #fff; background: rgba(255,255,255,.08); }
.tpl-list button .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--or); margin-inline-start: auto; }
.tpl-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.tpl-ed textarea { min-height: 420px; font-size: 14.5px; }
.preview-frame { width: 100%; min-height: 560px; border: 0; border-radius: var(--r); background: #f3efe9; display: block; }

/* ---------------------------------------------------------- settings */
.set-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.set-nav { display: grid; gap: 2px; position: sticky; top: 86px; }
.set-nav button { text-align: start; padding: 10px 14px; border-radius: 12px; color: var(--t3); font: 400 15px/1.2 var(--d); display: flex; align-items: center; gap: 10px; }
.set-nav button svg { width: 17px; height: 17px; }
.set-nav button:hover { color: #fff; background: rgba(255,255,255,.04); }
.set-nav button.on { color: #fff; background: rgba(255,255,255,.08); }
.integ { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.integ .it { padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.02); display: grid; gap: 6px; }
.integ .it b { color: var(--t1); font: 400 16px/1.3 var(--d); display: flex; align-items: center; gap: 8px; }
.integ .it p { font-size: 13.5px; color: var(--t3); }
.copy-line { display: flex; gap: 8px; align-items: center; }
.copy-line input { direction: ltr; font-size: 13px; color: var(--t3); }
.progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--or), var(--or-3)); transition: width .4s var(--ease); }

/* ---------------------------------------------------------- modal, menu, toast */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(5,4,3,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadein .25s ease both; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); display: flex; flex-direction: column; }
.modal.wide { width: min(1040px, 100%); }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 20px 24px 8px; position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal-h h2 { font: 400 21px/1.25 var(--d); flex: 1; }
.modal-b { padding: 10px 24px 18px; display: grid; gap: 16px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 24px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel); flex-wrap: wrap; }
.menu { position: fixed; z-index: 70; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; animation: fadein .16s ease both; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; text-align: start; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--t2); }
.menu button:hover, .menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu button svg, .menu a svg { width: 16px; height: 16px; color: var(--t3); }
.menu .sep { height: 1px; background: var(--line); margin: 5px 6px; }
.menu .danger { color: var(--bad); }
#toasts { position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translateX(50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: #fff; color: #111; font-size: 14.5px; box-shadow: var(--shadow); animation: fadein .3s var(--ease) both; max-width: min(560px, 92vw); }
.toast.bad { background: #ffe1dc; color: #5a1309; }
.toast a { color: #c2510f; font-weight: 600; }

/* ---------------------------------------------------------- sign in */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(70% 55% at 50% -5%, rgba(243,112,33,.26), transparent 65%), var(--bg); }
.gate::after { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; bottom: -560px; inset-inline-start: -200px; background: radial-gradient(circle, rgba(243,112,33,.12), transparent 65%); filter: blur(30px); pointer-events: none; }
.gate form { position: relative; z-index: 1; width: min(440px, 100%); display: grid; gap: 16px; padding: 42px 38px; border-radius: 30px; border: 1px solid var(--line); background: rgba(18,15,13,.86); backdrop-filter: blur(10px); box-shadow: 0 40px 120px -40px rgba(0,0,0,.9); }
.gate img { height: 30px; width: auto; justify-self: start; }
.gate h1 { font: 300 36px/1.12 var(--d); letter-spacing: -.01em; margin-top: 10px; }
.gate p { color: var(--t3); }
.gate .btn { min-height: 50px; font-size: 16px; }
.gate input { padding: 14px 16px; font-size: 16px; }
.gate input.code { letter-spacing: .5em; text-align: center; direction: ltr; font: 400 26px/1 var(--d); }
.gate .msg { min-height: 24px; font-size: 14.5px; color: var(--t2); }
.gate .msg.bad { color: var(--bad); }

/* Every single-column grid shrinks with its container. A grid's implicit
   column is as wide as its widest child would like to be, so without this a
   row that cannot wrap - a heading with an icon and a note, two time fields -
   widens the card, then the page, and the phone scrolls sideways. */
.sec, .qbox, .qbox .opts, .avail, .modal-b, .list, .funnel, .pairs, .tl, .iv, .note, .reqs, .integ .it, .tpl-list, .cand-head .who, .ai-top .verdict { grid-template-columns: minmax(0, 1fr); }
.qbox > .row { flex-wrap: wrap; }

/* ---------------------------------------------------------- narrow screens */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .cal-wrap { grid-template-columns: minmax(0, 1fr); }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor .side-col { position: static; }
  .tpl-ed { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50; width: 280px; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.5); }
  .top { padding: 8px 16px; gap: 8px; }
  .top .burger { display: inline-grid; }
  .top .search { flex: 1; width: auto; }
  .top .title-sm { display: none; }
  .page { padding: 20px 16px 70px; }
  .g2, .g3, .cols3, .two, .three { grid-template-columns: minmax(0, 1fr); }
  .tpl-wrap, .set-wrap { grid-template-columns: minmax(0, 1fr); }
  .tpl-list, .set-nav { position: static; }
  .set-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .cal { display: none; }
  .agenda { display: grid; }
  .pair { grid-template-columns: minmax(0, 1fr) 36px; }
  .pair > :nth-child(2) { grid-column: 1; }
  .ans { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cv-frame { height: 70vh; }
  .board { grid-auto-columns: minmax(82vw, 1fr); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .modal { border-radius: 22px; }
  .stagebar button { min-width: calc(50% - 4px); }
}
@media (max-width: 560px) {
  .avail .dayrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .avail .dayrow > b { line-height: 1.6; }
  .avail .range input { width: 96px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi b { font-size: 30px; }
  .cand-head { padding: 18px; }
  .cand-head h1 { font-size: 26px; }
  .toolbar .search-in { width: 100%; }
  .gate form { padding: 32px 24px; }
}
@media (pointer: coarse) {
  .btn.sm, .btn.xs { min-height: 40px; }
  .ib { width: 44px; height: 44px; }
  .seg button { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
