/* My Jobs, design 2 (17 Nov, Sachin's feedback): phone first, calm, little text.
   Bottom bar: LinkedIn | Naukri | Activity. Inside a site: list chooser, date chips, three-line cards.
   Teal = action, green = strong match, amber = something to notice, red = error. */
:root {
  --bg: #F3F6F5;
  --surface: #FFFFFF;
  --tint: #E9EFED;
  --ink: #14201C;
  --muted: #5F6F69;
  --line: #DCE4E1;
  --line-strong: #B3C2BC;
  --accent: #0E7C6B;
  --accent-soft: #D7EFE9;
  --accent-ink: #FFFFFF;
  --good: #16794C;
  --good-bg: #E1F3E8;
  --warn: #A35A00;
  --warn-bg: #FFF1D9;
  --bad: #B42318;
  --bad-bg: #FDE6E3;
  --overlay: rgba(10, 20, 17, .45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 62px;
  color-scheme: only light;
}
/* Light only (Sachin, 17 Nov: no dark view), even when the phone or laptop is set to dark. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body.locked { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.wrap { max-width: 720px; margin: 0 auto; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 10px; padding-block: 12px 10px; }
.top-row h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; flex: 1; min-width: 0; }
.top-row h1 small { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 1px; }   /* own line: never wraps in the middle */
.btn-filter { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.btn-filter svg { width: 18px; height: 18px; }
.btn-filter .n { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .75rem; min-width: 20px; padding: 1px 6px; text-align: center; }
.seg { display: flex; gap: 4px; background: var(--tint); border-radius: 12px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; border: 0; background: none; border-radius: 9px; padding: 8px 7px; font-size: .87rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button b { font-weight: 600; opacity: .75; margin-left: 4px; font-variant-numeric: tabular-nums; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.dates { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: .9rem; white-space: nowrap; }
.dates .chip { padding: 7px 12px; display: inline-flex; align-items: center; gap: 6px; }
.chip b { font-weight: 600; font-size: .8rem; opacity: .7; font-variant-numeric: tabular-nums; }
.chip.on b { opacity: .9; }
.dates .chip svg { width: 14px; height: 14px; flex: none; }
.chip.pick { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.dates .chip.pick svg:first-child { width: 16px; height: 16px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* calendar (Sachin, 18 Nov: Today, Yesterday, Pick a date) */
.sheet.cal { max-width: 440px; gap: 10px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.cal-month { display: flex; align-items: center; justify-content: space-between; }
.cal-month b { font-size: 1.05rem; }
.cal-arrow { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: var(--accent); }
.cal-arrow svg { width: 20px; height: 20px; }
.cal-arrow:disabled { color: var(--line-strong); border-color: var(--line); cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; }
.cal-wd { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); padding-block: 4px; }
.cal-day { border: 1px solid transparent; background: none; border-radius: 12px; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px 0; color: var(--muted); }
.cal-day span { font-size: 1rem; font-variant-numeric: tabular-nums; }
.cal-day small { font-size: .7rem; font-weight: 700; color: var(--accent); min-height: 1em; line-height: 1; font-variant-numeric: tabular-nums; }
.cal-day.has { color: var(--ink); background: var(--tint); }
.cal-day.has span { font-weight: 650; }
.cal-day.today { border-color: var(--accent); }
.cal-day.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cal-day.on small { color: var(--accent-ink); }
.cal-day:disabled { color: var(--line-strong); cursor: default; background: none; }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block: 6px 4px; }
.cal-foot .small-note { flex: 1 1 180px; margin: 0; }
.cal-foot .btn { padding-inline: 16px; }

/* job list */
main { padding-block: 10px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom, 0px)); }
.list { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; cursor: pointer; }
.card:active { background: var(--tint); }
.card-title { font-weight: 650; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-line { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-line .flag { color: var(--warn); font-weight: 600; }
.card-line .state { color: var(--accent); font-weight: 600; }
.mp { align-self: start; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 10px; padding: 3px 9px; background: var(--tint); color: var(--muted); }
.mp.hi { background: var(--good-bg); color: var(--good); }
.mp.mid { background: var(--accent-soft); color: var(--accent); }
.mp.none { font-size: .78rem; font-weight: 500; padding: 5px 8px; }
.mp.soon { font-size: .78rem; font-weight: 600; padding: 4px 8px; background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }   /* the AI said "your field"; % on its way */
.empty { text-align: center; color: var(--muted); padding: 56px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty b { color: var(--ink); font-size: 1.05rem; }
.btn-more { margin: 12px auto 0; display: block; }
.banner { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin-bottom: 10px; }

/* bottom bar */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.nav-in { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--nav-h); }
.nav button { border: 0; background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .8rem; font-weight: 600; position: relative; }
.nav .ic { position: relative; display: grid; place-items: center; width: 58px; height: 32px; border-radius: 16px; }
.nav svg { width: 24px; height: 24px; }
.nav .logo { width: 26px; height: 26px; display: block; }
.nav .logo.naukri { width: 31px; height: 31px; }   /* a thin swoosh: a little bigger so it looks the same size as LinkedIn's */
.nav button.on { color: var(--accent); }
.nav button.on .ic { background: var(--accent-soft); }   /* the open tab: a soft pill behind its logo */
.nav .count { position: absolute; top: -7px; left: calc(50% + 15px); background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .68rem; padding: 1px 6px; font-variant-numeric: tabular-nums; border: 2px solid var(--surface); }
.nav .dot { position: absolute; top: -1px; left: calc(50% + 9px); width: 10px; height: 10px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface); }

/* filter sheet */
.overlay { position: fixed; inset: 0; z-index: 20; background: var(--overlay); display: flex; justify-content: center; align-items: flex-end; }
.sheet { background: var(--surface); width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 0 max(18px, env(safe-area-inset-left, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 18px; }
.sheet-head { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding-block: 16px 6px; z-index: 1; }
.sheet-head h2 { margin: 0; font-size: 1.25rem; }
.x { border: 0; background: var(--tint); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group-label { font-size: .95rem; font-weight: 650; }
.group .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-foot { position: sticky; bottom: 0; background: var(--surface); display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding-top: 8px; }

/* job page */
.page { position: fixed; inset: 0; z-index: 15; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page-top { position: sticky; top: 0; z-index: 2; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); }
.page-top .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 8px; }
.back { border: 0; background: none; color: var(--accent); font-weight: 650; font-size: 1rem; padding: 8px 2px; display: inline-flex; align-items: center; gap: 2px; }
.back svg { width: 22px; height: 22px; }
.x svg { width: 20px; height: 20px; }
.page-body { display: flex; flex-direction: column; gap: 12px; padding-block: 16px calc(170px + env(safe-area-inset-bottom, 0px)); }
.page-body h1 { margin: 0; font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.where { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.hero { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.ring { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; background: var(--tint); color: var(--muted); }
.ring.hi { background: var(--good-bg); color: var(--good); }
.ring.mid { background: var(--accent-soft); color: var(--accent); }
.hero ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 3px; font-size: .93rem; }
.hero p { margin: 0; font-size: .93rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.fact span { display: block; font-size: .76rem; color: var(--muted); }
.fact b { display: block; font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.fact.flag b { color: var(--warn); }
details.more { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
details.more summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); font-weight: 400; }
details.more[open] summary::after { content: "\2212"; }
details.more .in { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: .93rem; }
details.more .in p { margin: 0; }
.pts { display: grid; grid-template-columns: 76px 1fr 50px; gap: 8px; align-items: center; font-size: .88rem; }
.pts .v { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.pts.minus .v { color: var(--bad); font-weight: 600; }
.desc { white-space: pre-line; overflow-wrap: anywhere; }
textarea { width: 100%; min-height: 90px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px; background: var(--bg); resize: vertical; }
.saved { font-size: .8rem; color: var(--muted); min-height: 1em; }
.note-why { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: .93rem; }

.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 16; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
.actions .wrap { display: flex; flex-direction: column; gap: 8px; }
.btn-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; min-height: 46px; padding: 10px 8px; font-weight: 650; font-size: .95rem; text-align: center; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.current { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .5; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 30; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 16px; display: flex; gap: 16px; align-items: center; font-size: .95rem; box-shadow: 0 4px 16px rgba(0,0,0,.25); max-width: calc(100% - 24px); }
.toast button { border: 0; background: none; color: var(--accent-soft); font-weight: 700; padding: 0; font-size: .95rem; }
.page-open .toast { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }

/* activity */
.section-title { font-size: 1rem; font-weight: 700; margin: 18px 2px 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.tile b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile span { display: block; font-size: .78rem; color: var(--muted); }
.tile.bad b { color: var(--bad); }
.tile.warn b { color: var(--warn); }
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.row:last-child { border-bottom: 0; }
.row .t { font-weight: 600; font-size: .95rem; }
.row .s { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.badge { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.badge.ok { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.run { background: var(--accent-soft); color: var(--accent); }
.badge.off { background: var(--tint); color: var(--muted); }
details.run { border-bottom: 1px solid var(--line); }
details.run:last-child { border-bottom: 0; }
details.run summary { list-style: none; cursor: pointer; }
details.run summary::-webkit-details-marker { display: none; }
details.run summary .row { border-bottom: 0; }
.checks { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: .86rem; }
.check i { font-style: normal; font-weight: 800; text-align: center; border-radius: 6px; font-size: .72rem; padding: 2px 0; }
.check i.PASS { background: var(--good-bg); color: var(--good); }
.check i.WARN { background: var(--warn-bg); color: var(--warn); }
.check i.FAIL { background: var(--bad-bg); color: var(--bad); }
.check span { color: var(--muted); }
.check b { color: var(--ink); font-weight: 600; }
.small-note { font-size: .82rem; color: var(--muted); margin: 6px 2px 0; }
.btn-line { width: 100%; margin-top: 8px; }
ol.steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 3px; }

/* dashboard (30 Nov, Sachin: applications, replies, interviews, waiting; replies from his Gmail).
   Site colors: the validated reference categorical slots 1-3 (dataviz validator, light, on white: CVD and
   normal-vision checks pass; orange and aqua are below 3:1 contrast, so the chart has a legend and a table view). */
.dash { --s-linkedin: #257de0; --s-naukri: #f47230; --s-other: #00b894; padding-bottom: 8px; }
.s-linkedin { background: var(--s-linkedin); }
.s-naukri { background: var(--s-naukri); }
.s-other { background: var(--s-other); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.wk-plot { position: relative; display: flex; align-items: stretch; gap: 6px; height: 180px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.wk-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border-radius: 6px; cursor: default; }
.wk-col:hover, .wk-col:focus-visible { background: var(--tint); }
.wk-n { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 4px; min-height: .75rem; }
.wk-stack { width: 100%; max-width: 24px; display: flex; flex-direction: column-reverse; gap: 2px; }
.wk-seg { min-height: 2px; }
.wk-stack .wk-seg:last-child { border-radius: 4px 4px 0 0; }   /* rounded data end, square at the baseline */
.wk-x { display: flex; gap: 6px; margin-top: 6px; }
.wk-x span { flex: 1 1 0; min-width: 0; text-align: center; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: absolute; z-index: 3; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: .8rem; line-height: 1.5; pointer-events: none; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.tip b { font-variant-numeric: tabular-nums; font-weight: 700; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip .key { display: inline-block; width: 12px; height: 3px; border-radius: 2px; }
details.as-table { margin-top: 10px; }
details.as-table summary { cursor: pointer; font-size: .85rem; color: var(--accent); font-weight: 600; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 6px; }
table.data th, table.data td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; white-space: normal; }
table.data th { color: var(--muted); font-weight: 600; font-size: .78rem; white-space: normal; vertical-align: bottom; line-height: 1.25; }
table.data tr:last-child td { border-bottom: 0; }
.meters { display: flex; flex-direction: column; gap: 12px; }
.meter { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: .9rem; }
.meter .track { height: 8px; border-radius: 999px; background: var(--accent-soft); }
.meter .fill { height: 100%; border-radius: 999px; background: var(--accent); min-width: 0; }
.meter .v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter .v small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.rows.follow { margin-top: 8px; }
/* 30 Nov (Sachin): every box is a button that opens the list behind its number */
.tile.pick { position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer; padding-right: 26px; }
.tile.pick svg { position: absolute; right: 8px; top: 12px; width: 16px; height: 16px; color: var(--muted); }
.tile.pick:hover { border-color: var(--line-strong); }
.tile.pick.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.tile.pick.on svg { color: var(--accent); }
.drill { margin-top: 10px; }
.drill-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.drill-head b { font-size: 1rem; }
.drill-head .btn-filter { height: 36px; }
.row.link { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; }
.row.link:last-child { border-bottom: 0; }
.row.link:hover { background: var(--tint); }
.row .s.reply { color: var(--ink); }
/* 30 Nov (Sachin): pick a day + search under the time range; "Needs your action" */
.dash-tools { display: flex; gap: 8px; align-items: center; padding-block: 10px; }
.day-wrap { position: relative; flex: none; }
.day-pick { display: inline-flex; align-items: center; gap: 6px; height: 42px; font-weight: 600; }
.day-pick svg { width: 16px; height: 16px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 0 6px 0 12px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.search > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: .95rem; padding: 0; height: 100%; }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { border: 0; background: none; width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; }
.search .clear svg { width: 16px; height: 16px; }
.act-box .row { grid-template-columns: 1fr auto; }
.act-box .act-text { color: var(--ink); font-weight: 600; font-size: .92rem; }
.act-box .done-btn { grid-column: 1 / -1; justify-self: end; height: 34px; margin-top: 4px; }
.wk-plot.dense { gap: 2px; }
.wk-plot.dense .wk-n { font-size: .62rem; }
.wk-x.dense { gap: 2px; }
/* 30 Nov: the resume box on a job's page */
.resume-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.resume-box .rb-title { font-weight: 700; font-size: .95rem; }
.resume-box p { margin: 0; font-size: .9rem; }
.resume-box .btn { align-self: flex-start; }
@media (max-width: 420px) {
  .meter { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .meter .track { grid-column: 1 / -1; grid-row: 2; }
}

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); }
.login form { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.login img { width: 64px; height: 64px; border-radius: 16px; }
.login h1 { margin: 0; font-size: 1.6rem; }
.login label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; font-weight: 600; }
.login input { border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px; background: var(--bg); font-size: 1rem; }
.err { color: var(--bad); font-size: .9rem; min-height: 1.2em; }

/* Wide screens (laptop): use the width. List on the left, the open job on the right; Activity in two columns. */
.split, .act-grid { display: block; }
@media (min-width: 1000px) {
  .wrap { max-width: 1320px; padding-left: 24px; padding-right: 24px; }
  .nav-in { max-width: 1320px; }
  .split { display: grid; grid-template-columns: minmax(360px, 430px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
  .pane { position: sticky; top: calc(var(--head-h, 170px) + 10px); height: calc(100vh - var(--head-h, 170px) - var(--nav-h) - 30px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
  .pane-in { display: flex; flex-direction: column; height: 100%; }
  .pane-body { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
  .pane-body h1 { margin: 0; font-size: 1.5rem; line-height: 1.25; }
  .pane-body .facts { grid-template-columns: repeat(3, 1fr); }
  .pane-actions { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
  .pane-empty { padding: 60px 24px; text-align: center; color: var(--muted); }
  .act-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .sheet { max-width: 760px; border-radius: 20px; margin-bottom: 4vh; }
  .overlay { align-items: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
