/* Talentir — Applicant Tracking System */

:root {
  --bg:        oklch(0.985 0.004 250);
  --bg-soft:   oklch(0.965 0.006 250);
  --surface:   #ffffff;
  --surface-2: oklch(0.975 0.005 250);
  --border:    oklch(0.915 0.006 250);
  --border-strong: oklch(0.86 0.008 250);
  --ink:       oklch(0.20 0.015 260);
  --ink-2:     oklch(0.40 0.012 260);
  --muted:     oklch(0.58 0.01 260);
  --faint:     oklch(0.74 0.008 260);

  --accent:    oklch(0.52 0.16 256);
  --accent-2:  oklch(0.94 0.04 256);
  --accent-ink:oklch(0.32 0.18 256);

  --good:      oklch(0.58 0.13 155);
  --good-2:    oklch(0.95 0.05 155);
  --warn:      oklch(0.72 0.14 75);
  --warn-2:    oklch(0.96 0.06 80);
  --danger:    oklch(0.60 0.18 25);
  --danger-2:  oklch(0.96 0.04 25);
  --wa:        oklch(0.62 0.14 152);
  --wa-2:      oklch(0.96 0.05 152);

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.04), 0 1px 1px oklch(0 0 0 / 0.03);
  --shadow:    0 4px 14px oklch(0 0 0 / 0.06), 0 1px 2px oklch(0 0 0 / 0.04);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.14), 0 6px 16px oklch(0 0 0 / 0.06);

  --font-sans: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; }

/* ===== Layout shell ===== */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 14px;
}
.brand .wm {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.brand .wm em { font-style: normal; color: var(--accent); }

.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-section .label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 8px 10px 4px;
  font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active {
  background: var(--ink);
  color: var(--bg);
}
.nav-item .ico { width: 16px; height: 16px; opacity: 0.85; flex-shrink: 0; }
.nav-item.active .ico { opacity: 1; }
.nav-item .pill {
  margin-left: auto;
  font-size: 11px;
  background: var(--surface-2);
  padding: 1px 7px;
  border-radius: 99px;
  color: var(--muted);
  font-weight: 600;
}
.nav-item.active .pill { background: oklch(1 0 0 / 0.15); color: var(--bg); }

.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Main ===== */
.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: oklch(from var(--bg) l c h / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 14px;
  min-height: 60px;
}
.topbar .crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.topbar .crumbs .sep { opacity: 0.5; }
.topbar .crumbs .now { color: var(--ink); font-weight: 600; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.topbar .quick-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  width: 280px;
  color: var(--muted);
  font-size: 13px;
}
.topbar .quick-search:hover { border-color: var(--border-strong); color: var(--ink-2); }
.topbar .quick-search kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: auto;
  background: var(--surface);
}

.view { padding: 26px 28px 48px; }
.view-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.view-head .title { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.view-head .subtitle { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 56ch; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: oklch(from var(--ink) calc(l + 0.08) c h); }
.btn.accent { background: var(--accent); color: white; border-color: var(--accent); }
.btn.accent:hover { background: oklch(from var(--accent) calc(l - 0.05) c h); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 5px 9px; font-size: 12px; gap: 5px; }
.btn.icon { padding: 7px; }
.btn.wa { background: var(--wa); color: white; border-color: var(--wa); }

/* ===== Cards & primitives ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-pad { padding: 18px; }
.card h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: -0.005em; }
.section-title {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.good { background: var(--good-2); color: oklch(0.36 0.13 155); border-color: oklch(0.85 0.08 155); }
.badge.warn { background: var(--warn-2); color: oklch(0.42 0.13 70); border-color: oklch(0.87 0.08 75); }
.badge.danger { background: var(--danger-2); color: oklch(0.42 0.16 25); border-color: oklch(0.87 0.08 25); }
.badge.accent { background: var(--accent-2); color: var(--accent-ink); border-color: oklch(0.85 0.08 256); }
.badge.wa { background: var(--wa-2); color: oklch(0.36 0.13 152); border-color: oklch(0.85 0.08 152); }
.badge.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

.avatar {
  width: 32px; height: 32px; border-radius: 99px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }

/* ===== Score gauge ===== */
.score {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.score .num { font-size: inherit; }
.score .den { color: var(--faint); font-size: 0.7em; margin-left: 1px; }

.score-bar {
  --pct: 0%;
  display: block;
  position: relative;
  height: 4px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.score-bar::after {
  content: '';
  position: absolute; inset: 0;
  width: var(--pct);
  background: var(--accent);
  border-radius: 99px;
}
.score-bar.good::after { background: var(--good); }
.score-bar.warn::after { background: var(--warn); }
.score-bar.danger::after { background: var(--danger); }

/* ===== Stats grid ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-card .lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.stat-card .val {
  font-size: 30px; letter-spacing: -0.03em; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-card .delta {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}
.stat-card .delta.up { color: oklch(0.45 0.13 155); }
.stat-card .delta.down { color: oklch(0.5 0.17 25); }

/* ===== Tables ===== */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg-soft); }

/* ===== Kanban ===== */
.kanban {
  /* Always lay the stages out in a single row. If the viewport is narrower
     than the combined column widths, the row scrolls horizontally instead
     of wrapping — keeps the pipeline reading order intact. */
  display: flex;
  gap: 14px;
  align-items: stretch;
  overflow-x: auto;
  /* A little bottom padding so the horizontal scrollbar doesn't crowd cards. */
  padding-bottom: 4px;
}
.kcol {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  /* Grow to share extra width when the viewport is wide, but never shrink
     below 240px — that's what triggers the horizontal scroll on narrow
     screens instead of cramming columns. */
  flex: 1 1 240px;
  min-width: 240px;
  /* Cap each column so a long list scrolls inside the column instead of
     stretching the whole page. The 220px accounts for top bar + filters +
     kanban header so the columns end roughly at the viewport bottom. */
  max-height: calc(100vh - 220px);
}
.kcol-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.kcol-head .name { font-weight: 700; font-size: 13px; }
.kcol-head .ct {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 99px;
}
.kcol-head .swatch { width: 7px; height: 7px; border-radius: 99px; }
.kcol-body {
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  /* Scrolls inside the column. min-height:0 is required so flex children can
     actually shrink below their content height — without it overflow-y is a
     no-op. */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.kcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .12s, border-color .12s;
}
.kcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.kcard.dragging { opacity: 0.4; }
.kcard .row { display: flex; align-items: center; gap: 8px; }
.kcard .name { font-weight: 700; font-size: 13px; line-height: 1.25; }
.kcard .sub { color: var(--muted); font-size: 11.5px; }
.kcard .scorebox {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: end; gap: 2px;
}
.kcard .scorebox .v { font-size: 14px; font-weight: 700; font-family: var(--font-mono); }
.kcard .scorebox .v.good { color: oklch(0.45 0.13 155); }
.kcard .scorebox .v.warn { color: oklch(0.45 0.13 70); }
.kcard .scorebox .v.danger { color: oklch(0.5 0.17 25); }
.kcard .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.kcard .src {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.kcol.drag-over { background: var(--accent-2); border-color: var(--accent); }

/* ===== Drawer ===== */
.scrim {
  position: fixed; inset: 0;
  background: oklch(0.2 0.01 250 / 0.4);
  z-index: 60;
  backdrop-filter: blur(2px);
  animation: fade .15s ease-out;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(720px, 92vw);
  background: var(--bg);
  z-index: 61;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slidein .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }

.drawer-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.drawer-tabs {
  display: flex; gap: 4px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.drawer-tabs .tab {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  position: relative;
}
.drawer-tabs .tab.active { color: var(--ink); border-color: var(--ink); }
.drawer-tabs .tab .ct {
  font-size: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0 5px;
  border-radius: 99px;
  margin-left: 5px;
  vertical-align: 2px;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

/* ===== Tabs ===== */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs .tab {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs .tab.active { color: var(--ink); border-color: var(--ink); }
.tabs .tab:hover { color: var(--ink); }

/* ===== Form controls ===== */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 11.5px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-2);
}
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }

/* ===== Chat (WA) ===== */
.wa-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.wa-list { border-right: 1px solid var(--border); overflow-y: auto; }
.wa-list .item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
  cursor: pointer;
}
.wa-list .item:hover { background: var(--surface-2); }
.wa-list .item.active { background: var(--accent-2); }
.wa-list .item .meta { flex: 1; min-width: 0; }
.wa-list .item .meta .nm { font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: baseline; }
.wa-list .item .meta .nm .t { margin-left: auto; font-size: 10px; color: var(--muted); font-weight: 500; font-family: var(--font-mono); }
.wa-list .item .meta .last {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wa-thread {
  display: flex; flex-direction: column;
  background: oklch(0.96 0.005 145);
  background-image:
    radial-gradient(circle at 1px 1px, oklch(0 0 0 / 0.04) 1px, transparent 0);
  background-size: 18px 18px;
}
.wa-head {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.wa-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.bubble {
  max-width: 78%;
  padding: 7px 11px 6px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  background: var(--surface);
  box-shadow: 0 1px 1px oklch(0 0 0 / 0.05);
}
.bubble.out {
  align-self: flex-end;
  background: oklch(0.92 0.04 145);
}
.bubble.in {
  align-self: flex-start;
  background: var(--surface);
}
.bubble .ts {
  font-size: 9.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  display: inline-block;
  margin-left: 8px;
  vertical-align: baseline;
}
.bubble .vn {
  display: flex; align-items: center; gap: 8px;
  min-width: 180px;
}
.bubble .vn .wave {
  flex: 1; height: 22px;
  background: repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 5px);
  opacity: 0.4;
}
.wa-compose {
  padding: 10px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.wa-compose .pl {
  flex: 1;
  background: var(--surface-2);
  padding: 7px 12px; border-radius: 99px;
  border: 1px solid var(--border);
}
.day-sep {
  align-self: center;
  font-size: 10px;
  background: oklch(1 0 0 / 0.7);
  padding: 2px 9px;
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin: 6px 0;
}

/* ===== AI search ===== */
.ai-search {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.ai-search .prompt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ai-search .prompt input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}
.ai-search .prompt input::placeholder { color: var(--muted); }
.suggest {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px;
}
.suggest .chip {
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px 9px;
  border-radius: 99px;
  color: var(--ink-2);
  cursor: pointer;
}
.suggest .chip:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* ===== Public landing preview ===== */
.preview-frame {
  background: var(--ink);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.preview-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px 8px;
}
.preview-bar .dot { width: 9px; height: 9px; border-radius: 99px; background: oklch(1 0 0 / 0.2); }
.preview-bar .url {
  margin-left: 10px;
  flex: 1;
  background: oklch(1 0 0 / 0.08);
  color: oklch(1 0 0 / 0.7);
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.preview-canvas {
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  min-height: 600px;
}

.landing {
  padding: 28px 32px 40px;
}
.landing .nav {
  display: flex; align-items: center; gap: 12px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.landing .nav .logo { font-weight: 800; letter-spacing: -0.02em; }
.landing .hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
  align-items: start;
}
.landing h1 {
  margin: 0;
  font-size: 38px; letter-spacing: -0.03em; font-weight: 800;
  line-height: 1.05;
}
.landing .meta-row {
  display: flex; gap: 8px; margin: 14px 0 18px;
}
.landing p.lead {
  font-size: 15px; color: var(--ink-2); margin: 16px 0;
  max-width: 56ch;
}
.landing .side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.landing .req {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px;
  margin: 18px 0;
  padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.landing .req li { list-style: none; padding-left: 18px; position: relative; font-size: 13.5px; color: var(--ink-2); }
.landing .req li::before { content: '✓'; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.landing .apply-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px;
}
.option {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.option:hover { border-color: var(--ink); }
.option .title { font-weight: 700; font-size: 13.5px; }
.option .desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.option .arrow {
  position: absolute; top: 14px; right: 14px; color: var(--muted);
}

/* ===== Assessment form ===== */
.assess { padding: 30px 32px 50px; max-width: 720px; margin: 0 auto; }
.assess .progress {
  height: 4px; background: var(--surface-2); border-radius: 99px;
  margin: 14px 0 22px; overflow: hidden;
}
.assess .progress > div { height: 100%; background: var(--accent); border-radius: 99px; }
.q-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.q-card .qn { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.q-card .qt { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.mc { display: flex; flex-direction: column; gap: 8px; }
.mc label {
  display: flex; gap: 12px; align-items: center;
  padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  font-size: 13.5px;
}
.mc label:hover { border-color: var(--ink); background: var(--bg-soft); }
.mc label.selected { border-color: var(--accent); background: var(--accent-2); }
.mc .rd {
  width: 16px; height: 16px; border-radius: 99px; border: 1.5px solid var(--border-strong);
  flex-shrink: 0; position: relative;
}
.mc label.selected .rd { border-color: var(--accent); }
.mc label.selected .rd::after {
  content: ''; position: absolute; inset: 3px; border-radius: 99px; background: var(--accent);
}

/* ===== Toggle ===== */
.tgl {
  width: 32px; height: 18px; border-radius: 99px;
  background: var(--border-strong);
  position: relative; cursor: pointer; transition: background .15s;
  flex-shrink: 0;
}
.tgl::after {
  content: '';
  width: 14px; height: 14px; border-radius: 99px; background: white;
  position: absolute; top: 2px; left: 2px;
  transition: transform .15s;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.2);
}
.tgl.on { background: var(--accent); }
.tgl.on::after { transform: translateX(14px); }

/* ===== Empty / misc ===== */
.empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ===== Source icon legend ===== */
.src-ico {
  width: 14px; height: 14px;
  border-radius: 3px;
  display: inline-grid; place-items: center;
  font-size: 9px;
  color: white;
  font-weight: 700;
}
.src-ico.wa { background: var(--wa); }
.src-ico.fm { background: var(--accent); }
.src-ico.ml { background: oklch(0.5 0.05 260); }
.src-ico.jp { background: oklch(0.55 0.15 30); }

/* AI summary block */
.ai-block {
  background: linear-gradient(180deg, var(--accent-2), oklch(0.99 0.01 256));
  border: 1px solid oklch(0.85 0.08 256);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative;
}
.ai-block .lbl {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.ai-block .body { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.ai-block ul { margin: 6px 0 0 0; padding-left: 18px; }
.ai-block li { margin: 3px 0; }

/* Modal */
.modal-scrim {
  position: fixed; inset: 0;
  background: oklch(0.2 0.01 250 / 0.45);
  z-index: 60;
  display: grid; place-items: center;
  animation: fade .15s ease-out;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(640px, 92vw);
  box-shadow: var(--shadow-lg);
  animation: slidein .2s ease-out;
}
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 70vh; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: end; gap: 8px; }

/* ===== Activity feed ===== */
.feed { display: flex; flex-direction: column; }
.feed .row {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.feed .row:last-child { border-bottom: 0; }
.feed .row .dot {
  width: 7px; height: 7px; border-radius: 99px; background: var(--accent);
  margin-top: 7px; flex-shrink: 0;
}
.feed .row .txt { flex: 1; font-size: 13px; }
.feed .row .txt .t { color: var(--muted); font-size: 11.5px; margin-top: 1px; }

/* Job cards */
.job-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.job-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .12s; }
.job-card:hover { border-color: var(--ink); }
.job-card .title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.job-card .stats { display: flex; gap: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.job-card .stats div .v { font-family: var(--font-mono); font-weight: 700; font-size: 16px; }
.job-card .stats div .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Form builder */
.builder-q {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.builder-q .head { display: flex; align-items: center; gap: 8px; }
.builder-q .grip { color: var(--faint); cursor: grab; }
.builder-q .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  background: var(--surface-2); padding: 1px 7px; border-radius: 99px;
}
.builder-q .opt-row { display: flex; gap: 8px; align-items: center; }
.builder-q .opt-row .dot { width: 12px; height: 12px; border-radius: 99px; border: 1.5px solid var(--border-strong); flex-shrink: 0; }

/* Subtle separators */
.kv {
  display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px;
  font-size: 13px;
}
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }

/* ===== Assignee chip / picker ===== */
.asg-pip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 7px 1px 2px;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
}
.asg-pip .av {
  width: 16px; height: 16px; border-radius: 99px;
  font-size: 9px; font-weight: 800;
  display: grid; place-items: center;
}
.asg-pip.unassigned {
  background: oklch(0.97 0.02 30);
  border-color: oklch(0.85 0.06 30);
  color: oklch(0.5 0.13 30);
}
.asg-pip.unassigned .av {
  background: oklch(0.9 0.06 30);
  color: oklch(0.4 0.16 30);
  font-size: 11px;
}

.hr-card {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .12s;
}
.hr-card:hover { border-color: var(--border-strong); }
.hr-card.active { border-color: var(--ink); background: var(--bg-soft); }
.hr-card .meta { flex: 1; min-width: 0; }
.hr-card .meta .nm { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.hr-card .meta .role { font-size: 11.5px; color: var(--muted); }
.hr-card .workload { text-align: right; flex-shrink: 0; }
.hr-card .workload .v { font-family: var(--font-mono); font-size: 18px; font-weight: 700; line-height: 1; }
.hr-card .workload .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.online-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--good); box-shadow: 0 0 0 2px var(--surface); }
.online-dot.off { background: var(--faint); }

/* ===== Distribute Modal specific ===== */
.dist-strategy {
  display: flex; flex-direction: column; gap: 8px;
}
.dist-strategy .opt {
  display: flex; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  align-items: flex-start;
  background: var(--surface);
}
.dist-strategy .opt:hover { border-color: var(--border-strong); }
.dist-strategy .opt.selected { border-color: var(--accent); background: var(--accent-2); }
.dist-strategy .opt .rd {
  width: 16px; height: 16px; border-radius: 99px;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0; position: relative; margin-top: 2px;
}
.dist-strategy .opt.selected .rd { border-color: var(--accent); }
.dist-strategy .opt.selected .rd::after {
  content: ''; position: absolute; inset: 3px; border-radius: 99px; background: var(--accent);
}
.dist-strategy .opt .body { flex: 1; }
.dist-strategy .opt .ttl { font-weight: 700; font-size: 13.5px; }
.dist-strategy .opt .desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.preview-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.preview-row:last-child { border-bottom: 0; }
.preview-row .arrow { color: var(--muted); margin: 0 4px; }
.preview-row .ct {
  margin-left: auto;
  background: var(--accent-2);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 99px;
}

/* ===== WhatsApp number cards ===== */
.wa-num-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.wa-num {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
  position: relative;
}
.wa-num:hover { border-color: var(--border-strong); }
.wa-num.active { border-color: var(--ink); box-shadow: 0 0 0 2px oklch(0.2 0.015 260 / 0.08); }
.wa-num.add {
  border: 1.5px dashed var(--border-strong);
  background: transparent;
  display: grid; place-items: center;
  text-align: center;
  color: var(--muted);
  min-height: 158px;
}
.wa-num.add:hover { border-color: var(--ink); color: var(--ink-2); }

.wa-num .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.wa-num .head .ic {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--wa-2); color: var(--wa);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.wa-num .head .lbl-block { flex: 1; min-width: 0; }
.wa-num .head .lbl-block .l1 { font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 5px; }
.wa-num .head .lbl-block .l2 { font-size: 11px; color: var(--muted); }

.wa-num .num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.wa-num .stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.wa-num .stat-row .v {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}
.wa-num .stat-row .l {
  font-size: 10px; color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.wa-num .rate-bar {
  height: 3px; background: var(--surface-2); border-radius: 99px;
  margin-top: 8px; overflow: hidden;
}
.wa-num .rate-bar > div {
  height: 100%; background: var(--wa); border-radius: 99px;
}
.wa-num .rate-bar.warn > div { background: var(--warn); }
.wa-num .rate-bar.danger > div { background: var(--danger); }

.wa-num .default-mark {
  position: absolute; top: 10px; right: 10px;
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700;
  background: var(--ink); color: var(--bg);
  padding: 2px 7px; border-radius: 99px;
}

.wa-status-dot {
  width: 7px; height: 7px; border-radius: 99px;
}
.wa-status-dot.online    { background: var(--good); box-shadow: 0 0 0 3px var(--good-2); }
.wa-status-dot.connecting { background: var(--warn); animation: pulse-dot 1.2s ease-in-out infinite; }
.wa-status-dot.offline   { background: var(--faint); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* QR placeholder */
.qr-box {
  width: 220px; height: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin: 0 auto;
  display: grid; place-items: center;
  position: relative;
}
.qr-box .qr-grid {
  width: 100%; height: 100%;
  background-image:
    radial-gradient(circle at 1px 1px, var(--ink) 1.4px, transparent 0);
  background-size: 10px 10px;
  opacity: 0.85;
  position: relative;
}
.qr-box .qr-grid::before, .qr-box .qr-grid::after {
  content: ''; position: absolute;
  width: 36px; height: 36px;
  border: 7px solid var(--ink);
}
.qr-box .qr-grid::before { top: 0; left: 0; }
.qr-box .qr-grid::after { top: 0; right: 0; }
.qr-box .qr-grid > span {
  content: ''; position: absolute;
  width: 36px; height: 36px;
  border: 7px solid var(--ink);
  bottom: 0; left: 0;
}
.qr-box .qr-logo {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--wa);
  display: grid; place-items: center;
  color: white;
}

/* ===== Calendar ===== */
.cal-toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cal-toolbar .nav {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.cal-toolbar .nav button {
  padding: 5px 8px;
  border-radius: 5px;
}
.cal-toolbar .nav button:hover { background: var(--surface-2); }
.cal-toolbar .range {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 0 6px;
  min-width: 200px;
}
.cal-toolbar .modes {
  display: flex; gap: 2px; padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cal-toolbar .modes button {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.cal-toolbar .modes button.active {
  background: var(--ink); color: var(--bg);
}

/* === Week view === */
.cal-week {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
}
.cw-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cw-cell:nth-child(8n) { border-right: 0; }
.cw-headrow {
  display: contents;
}
.cw-headrow .cw-cell {
  background: var(--bg-soft);
  padding: 10px 8px;
  text-align: center;
  position: sticky; top: 60px;
  z-index: 2;
  border-bottom: 1px solid var(--border-strong);
}
.cw-headrow .cw-cell .dow {
  font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.cw-headrow .cw-cell .dnum {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.cw-headrow .cw-cell.today .dnum {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: var(--accent); color: white;
  border-radius: 99px;
}
.cw-headrow .cw-cell.weekend .dow,
.cw-headrow .cw-cell.weekend .dnum { color: var(--faint); }

.cw-timecell {
  background: var(--bg-soft);
  text-align: right;
  padding: 2px 8px 0;
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
  position: sticky; left: 0;
  height: 56px;
}
.cw-daycell {
  height: 56px;
  position: relative;
  padding: 2px;
  transition: background .12s;
  cursor: pointer;
}
.cw-daycell:hover { background: var(--bg-soft); }
.cw-daycell.weekend { background: oklch(0.985 0.005 30 / 0.7); }
.cw-daycell.today-col { background: oklch(0.985 0.01 256 / 0.4); }
.cw-daycell.today-col:hover { background: oklch(0.97 0.02 256 / 0.6); }

.cw-event {
  position: absolute;
  left: 4px; right: 4px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11.5px;
  line-height: 1.25;
  overflow: hidden;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.05);
  cursor: pointer;
  display: flex; flex-direction: column; gap: 1px;
  z-index: 1;
}
.cw-event:hover {
  box-shadow: var(--shadow);
  z-index: 3;
}
.cw-event .ev-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-event .ev-meta { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-event.pending { border-left-style: dashed; opacity: 0.85; }
.cw-event.rescheduled { background: oklch(0.97 0.04 70); border-left-color: var(--warn); }

/* "Now" line */
.cw-now-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px; background: var(--accent);
  z-index: 4;
  pointer-events: none;
}
.cw-now-line::before {
  content: ''; position: absolute;
  left: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--accent);
}

/* === Month view === */
.cal-month {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cm-headrow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.cm-headrow .h {
  padding: 10px 12px;
  font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
  text-align: left;
  border-right: 1px solid var(--border);
}
.cm-headrow .h:last-child { border-right: 0; }
.cm-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cm-day {
  height: 110px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 8px;
  position: relative;
  overflow: hidden;
}
.cm-day:nth-child(7n) { border-right: 0; }
.cm-day.other { background: var(--bg-soft); color: var(--faint); }
.cm-day .dn {
  font-size: 12.5px; font-weight: 700;
  text-align: right;
}
.cm-day.today .dn {
  color: var(--accent);
}
.cm-day .ev-pip {
  font-size: 10.5px;
  background: var(--accent-2);
  color: var(--accent-ink);
  border-left: 2px solid var(--accent);
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-day .more {
  font-size: 10.5px; color: var(--muted);
  margin-top: 2px; font-weight: 600;
}

/* Calendar sidebar */
.cal-side {
  display: flex; flex-direction: column; gap: 14px;
}
.cal-side .card { padding: 14px 16px; }
.cal-side .upcoming-row {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cal-side .upcoming-row:last-child { border-bottom: 0; }
.cal-side .upcoming-row .time-block {
  flex-shrink: 0; text-align: right;
  min-width: 56px;
}
.cal-side .upcoming-row .time-block .t {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
}
.cal-side .upcoming-row .time-block .dur {
  font-size: 10px; color: var(--muted); font-family: var(--font-mono);
}
.cal-side .upcoming-row .pill {
  width: 3px; background: var(--accent); border-radius: 99px; flex-shrink: 0;
}
.cal-side .upcoming-row .body { flex: 1; min-width: 0; }
.cal-side .upcoming-row .nm { font-weight: 700; font-size: 13px; }
.cal-side .upcoming-row .meta { font-size: 11px; color: var(--muted); }

/* Tippy-style icons (use simple unicode/lucide-via-svg inline) */
.row-flex { display: flex; align-items: center; gap: 10px; }
.col-flex { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .landing .hero { grid-template-columns: 1fr; }
  /* No-op: .kanban is now a horizontally-scrolling flex row at every width. */
}

/* ===== Mobile (≤640px) =====
   Public candidate-facing pages (landing + assessment) need real mobile rules
   — most applicants apply from their phone. Without these, the hero/h1, req
   grid, apply-options grid and assess form all spill over the viewport. */
@media (max-width: 640px) {
  /* Outer scaffolding from lowongan.html */
  .public-wrap { padding: 14px 14px 56px; }
  .public-card { border-radius: 12px; }

  /* Header strip: brand + org name shouldn't get clipped */
  .landing .nav { flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 18px; gap: 8px; }

  /* Hero: full-width, much smaller headline */
  .landing .hero { gap: 18px; }
  .landing h1 { font-size: 26px; line-height: 1.15; }
  .landing p.lead { font-size: 14px; margin: 12px 0; }
  .landing .meta-row { flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }

  /* Requirements: stack to 1 column, the 2-col layout cramps text */
  .landing .req { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; margin: 14px 0; }
  .landing .req li { font-size: 13.5px; }

  /* Apply options: full-width cards, larger tap targets */
  .landing .apply-options { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
  .option { padding: 16px; min-height: 64px; }

  /* Side card now sits below the main content (hero already collapsed at 1100) */
  .landing .side-card { padding: 14px; }

  /* Assessment form: tighter side padding, more breathing room between cards */
  .assess { padding: 18px 14px 40px; }
  .assess .progress { margin: 10px 0 16px; }
  .q-card { padding: 16px; gap: 12px; border-radius: 12px; }
  .q-card .qt { font-size: 15.5px; }
  .q-card .qn { font-size: 10.5px; }
  .mc label { padding: 12px; font-size: 13.5px; }

  /* Bigger tap targets for buttons on small screens */
  .btn { min-height: 38px; }

  /* The success screen uses .assess with paddingTop:80 inline — override so
     the checkmark doesn't get pushed off-screen. */
  .assess[style*="paddingTop: 80"] { padding-top: 40px !important; }

  /* Prevent long words (URLs, emails) from forcing horizontal scroll */
  .landing, .assess, .q-card { overflow-wrap: anywhere; }

  /* Apply CTA inside lowongan.html — already large; just keep tap-friendly */
  .apply-cta { padding: 16px 18px; }
}

/* ===== WhatsApp Bot — full-height messaging layout ===== */
.wa-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 58px);   /* fill below the topbar */
  min-height: 600px;
  padding: 20px 28px 22px;
  gap: 14px;
}
.wa-view .view-head { margin-bottom: 0; }

/* compact one-line KPI strip replacing the big stat cards */
.wa-kpi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.wa-kpi .pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12.5px; color: var(--ink-2);
}
.wa-kpi .pill b { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.wa-kpi .pill .dot-on { width: 7px; height: 7px; border-radius: 99px; background: var(--wa, oklch(0.6 0.14 152)); }

/* number selector: single horizontal scroll row of compact cards */
.wa-view .wa-num-strip {
  display: flex; grid-template-columns: none;
  gap: 10px; overflow-x: auto; margin-bottom: 0;
  padding-bottom: 4px; flex: 0 0 auto;
}
.wa-view .wa-num {
  flex: 0 0 232px; padding: 11px 13px;
}
.wa-view .wa-num.add {
  flex: 0 0 150px; display: grid; place-items: center; min-height: 0;
}
.wa-num .compact-sub {
  font-size: 11px; color: var(--muted);
  font-family: var(--font-mono);
  margin: 2px 0 9px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wa-num .compact-foot {
  display: flex; align-items: center; gap: 7px; margin-top: 8px;
}
.wa-num .compact-foot .rt {
  flex: 1; font-size: 10px; color: var(--muted); font-family: var(--font-mono);
}

/* chat shell fills the remaining height instead of a fixed 720px */
.wa-view .wa-shell {
  height: auto; flex: 1 1 auto; min-height: 0;
  /* constrain the grid row to the shell height so children scroll internally
     (instead of the message list overflowing past the viewport) */
  grid-template-rows: minmax(0, 1fr);
}
.wa-view .wa-list,
.wa-view .wa-thread { min-height: 0; }

/* sticky header for the active conversation list */
.wa-list .list-head {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface);
}
