/* Ethwood Console. Layout: fixed left rail on desktop, top bar + slide-out rail on phones; one content column per section. */
/* Colours follow www.ethwood.com: white surfaces, near-black text, Ethwood greens.
   Light is the default. Dark is opt-in (theme switch in the rail), or follows the system when set to "auto". */
:root {
  --bg: #f8f9fa; --surface: #ffffff; --raised: #f3f5f6; --fg: #212529; --muted: #5c636a; --line: #dee2e6;
  --rail: #ffffff; --rail-fg: #212529; --rail-muted: #5c636a; --rail-active: #eef6e9; --rail-line: #dee2e6;
  --accent: #358202; --accent-hover: #2a7d0a; --accent-ink: #ffffff; --accent-soft: #eaf5e3; --accent-text: #1e5e05; --brand: #6ebe44;
  --good: #146c43; --good-soft: #d1e7dd; --warn: #8a5a00; --warn-soft: #fff3cd; --bad: #b02a37; --bad-soft: #f8d7da;
  --info-soft: #e7f1ff; --info: #0a58ca; --field: #ffffff; --field-line: #ced4da;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1a1d20; --surface: #212529; --raised: #2b3035; --fg: #dee2e6; --muted: #adb5bd; --line: #3a4047;
  --rail: #16191c; --rail-fg: #dee2e6; --rail-muted: #9aa3ab; --rail-active: #233019; --rail-line: #2b3035;
  --accent: #6ebe44; --accent-hover: #82cc5c; --accent-ink: #10200a; --accent-soft: #233019; --accent-text: #9bd67a; --brand: #6ebe44;
  --good: #75b798; --good-soft: #1b3326; --warn: #ffda6a; --warn-soft: #3a2f10; --bad: #ea868f; --bad-soft: #3d1c20;
  --info-soft: #172a46; --info: #8bb9fe; --field: #1a1d20; --field-line: #495057; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #1a1d20; --surface: #212529; --raised: #2b3035; --fg: #dee2e6; --muted: #adb5bd; --line: #3a4047;
    --rail: #16191c; --rail-fg: #dee2e6; --rail-muted: #9aa3ab; --rail-active: #233019; --rail-line: #2b3035;
    --accent: #6ebe44; --accent-hover: #82cc5c; --accent-ink: #10200a; --accent-soft: #233019; --accent-text: #9bd67a; --brand: #6ebe44;
    --good: #75b798; --good-soft: #1b3326; --warn: #ffda6a; --warn-soft: #3a2f10; --bad: #ea868f; --bad-soft: #3d1c20;
    --info-soft: #172a46; --info: #8bb9fe; --field: #1a1d20; --field-line: #495057; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.boot { padding: 40px; color: var(--muted); }

/* shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-fg); padding: 18px 12px; padding-top: max(18px, env(safe-area-inset-top, 0px)); padding-left: max(12px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--rail-line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand .mark { border-radius: 7px; display: grid; place-items: center; flex: none; }
.brand .name { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--rail-fg); }
.navgroup { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rail-muted); padding: 14px 10px 4px; }
.navlink { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--rail-fg); text-decoration: none; padding: 7px 10px; border-radius: 6px; font-weight: 400; }
.navlink:hover { background: var(--raised); color: var(--rail-fg); }
.navlink.active { background: var(--rail-active); color: var(--accent-text); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.badge { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }
.badge.quiet { background: transparent; color: var(--rail-muted); border: 1px solid var(--rail-line); }
.rail .spacer { flex: 1; }
.rail .foot { font-size: 12.5px; color: var(--rail-muted); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.rail .foot button { background: none; border: 0; color: var(--accent); padding: 0; cursor: pointer; text-align: left; }
.rail .foot button:hover { text-decoration: underline; }
.topbar { display: none; }
main.view { padding-block: 28px 80px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); min-width: 0; max-width: 1180px; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.head h1 { font-size: 30px; font-weight: 400; }
.head p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-105%); transition: transform .2s ease; }
  .shell.open .rail { transform: none; }
  .topbar { display: flex; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; align-items: center; gap: 12px; background: var(--rail); color: var(--rail-fg); border-bottom: 1px solid var(--rail-line); padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--rail); }
  .topbar button { background: none; border: 1px solid var(--line); color: var(--rail-fg); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
  .topbar .name { font-family: var(--display); font-weight: 600; }
  main.view { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-top: 18px; }
  .head h1 { font-size: 26px; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 29; }
}

/* building blocks */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.panel > h2 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; min-width: 0; }
a.stat:hover { background: var(--raised); }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 13px; color: var(--muted); }
.stat .v.hot { color: var(--accent-text); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--fg); }
.tab.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tab .n { font-variant-numeric: tabular-nums; font-weight: 400; margin-left: 6px; opacity: .75; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--field-line); background: var(--surface); border-radius: 6px; padding: 7px 14px; font-weight: 500; font-size: 14.5px; cursor: pointer; text-decoration: none; color: var(--fg); white-space: nowrap; }
.btn:hover { background: var(--raised); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.go { background: var(--good); border-color: var(--good); color: var(--surface); }
.btn.danger { color: var(--bad); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-variant-numeric: tabular-nums; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.pill.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.fit { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.fit.hi { background: var(--good-soft); color: var(--good); }
.fit.lo { background: var(--warn-soft); color: var(--warn); }
.notice { border-radius: var(--radius); padding: 12px 14px; border: 1px solid transparent; }
.notice.warn { background: var(--warn-soft); }
.notice.bad { background: var(--bad-soft); }
.notice.info { background: var(--info-soft); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.empty { border: 1px dashed var(--field-line); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--muted); background: var(--surface); }
.empty h3 { color: var(--fg); font-size: 17px; margin-bottom: 4px; }

/* lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.item h3 { font-size: 17px; line-height: 1.3; }
.item h3 a { color: inherit; text-decoration: none; }
.item h3 a:hover { text-decoration: underline; }
.facts { display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: 13.5px; color: var(--muted); }
.facts b { color: var(--fg); font-variant-numeric: tabular-nums; font-weight: 600; }
.flags { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.flags li { font-size: 13.5px; padding-left: 14px; position: relative; }
.flags li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--raised); }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 0; }
label.f .hint { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
label.chk { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input[type=time], input[type=search], input:not([type]), select, textarea {
  background: var(--field); border: 1px solid var(--field-line); border-radius: 6px; padding: 8px 11px; width: 100%; font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--fg); min-width: 0; }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
textarea.tall { min-height: 260px; }
.section-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 700; }

/* kanban */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; font-family: var(--body); display: flex; justify-content: space-between; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.card:hover { border-color: var(--brand); }
.card .t { font-weight: 600; line-height: 1.3; }

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: 0; }
.tl .when { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl .what { min-width: 0; }
.tl .body { white-space: pre-wrap; font-size: 14px; color: var(--muted); max-height: 9em; overflow: hidden; }

/* modal */
dialog.modal { border: 1px solid var(--line); border-radius: 10px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--surface); color: var(--fg); }
dialog.modal::backdrop { background: rgba(33, 37, 41, .45); }
.modal .mh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal .mh h2 { font-size: 18px; }
.modal .mb { padding: 16px 18px; overflow-y: auto; max-height: calc(100vh - 200px); display: flex; flex-direction: column; gap: 12px; }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
#toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: calc(100vw - 32px); }
.toast { background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 9px; font-size: 14.5px; box-shadow: 0 6px 20px rgba(0,0,0,.18); max-width: 420px; }
.toast.bad { background: var(--bad); color: #fff; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .box { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 32px; box-shadow: 0 8px 24px rgba(33, 37, 41, .06); display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-size: 26px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
pre.raw { font-family: var(--mono); font-size: 12px; background: var(--field); border-radius: 8px; padding: 10px; overflow-x: auto; max-height: 260px; margin: 0; }
details > summary { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Workspace switcher in the side rail */
.rail .ws { display: flex; flex-direction: column; gap: 4px; padding: 0 10px 14px; font-size: 12.5px; color: var(--rail-muted); }
.rail .ws .k { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.rail .ws .v { color: var(--rail-fg); font-weight: 600; font-size: 14px; }
.rail .ws select { background: var(--field); color: var(--rail-fg); border: 1px solid var(--field-line); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 14px; }

.rail .foot span { overflow-wrap: anywhere; }
.login .box a.btn { text-align: center; justify-content: center; text-decoration: none; }
.rail .brand .name { white-space: nowrap; }

/* Brand mark. The logo has transparent gaps, so in dark mode it sits on a white tile. */
.brand .mark { width: 34px; height: 34px; padding: 0; overflow: hidden; }
:root[data-theme="dark"] .brand .mark, :root[data-theme="dark"] .topbar .mark { background: #fff; padding: 2px; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .brand .mark, :root[data-theme="auto"] .topbar .mark { background: #fff; padding: 2px; } }
.brand .mark img, .topbar .mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.topbar .mark { width: 28px; height: 28px; border-radius: 6px; flex: none; }

/* Login lockup: logo banner plus the product name. */
.login .lockup { display: flex; align-items: center; gap: 12px; margin: 0; flex-wrap: nowrap; }
.login .lockup img { height: 40px; width: auto; display: block; }
.login .lockup .product { font-family: var(--display); font-weight: 300; font-size: 26px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.2; }
.login .lockup .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .login .lockup .logo-light { display: none; }
  :root[data-theme="auto"] .login .lockup .logo-dark { display: block; }
}
:root[data-theme="dark"] .login .lockup .logo-light { display: none; }
:root[data-theme="dark"] .login .lockup .logo-dark { display: block; }
@media (max-width: 480px) {
  .login .lockup { gap: 10px; }
  .login .lockup img { height: 30px; }
  .login .lockup .product { font-size: 20px; padding-left: 10px; }
}

/* Theme switch in the rail footer */
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; width: max-content; }
.rail .foot .theme-switch button { color: var(--rail-muted); padding: 3px 9px; font-size: 12px; border-radius: 0; }
.rail .foot .theme-switch button:hover { text-decoration: none; background: var(--raised); }
.rail .foot .theme-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

/* Chart colours, checked for colour-blind separation and contrast in both modes */
:root { --c-applied: #358202; --c-waiting: #2a78d6; --c-skipped: #d55181; }
:root[data-theme="dark"] { --c-applied: #5aa832; --c-waiting: #3987e5; --c-skipped: #d55181; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --c-applied: #5aa832; --c-waiting: #3987e5; --c-skipped: #d55181; } }

/* Ring chart */
.ring { position: relative; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ring-plot { position: relative; flex: none; }
.ring-plot svg { display: block; }
.ring-seg { cursor: default; outline: none; }
.ring-seg:focus-visible circle:first-child { stroke-width: 16; }
.ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.ring-mid .n { font-size: 30px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-mid .l { font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 90px; }
.ring-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 150px; flex: 1; }
.ring-legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; font-size: 14.5px; }
.ring-legend .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ring-tip { position: absolute; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; font-size: 13px; box-shadow: 0 4px 14px rgba(33, 37, 41, .12); white-space: nowrap; pointer-events: none; display: flex; align-items: center; gap: 6px; }
.ring-tip[hidden] { display: none; }
.seg-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg-toggle button { background: var(--surface); border: 0; padding: 3px 10px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.seg-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

/* Full-time jobs */
.dropzone { border: 2px dashed var(--field-line); border-radius: var(--radius); padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer; background: var(--raised); }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--accent-soft); }
.searches { display: flex; flex-direction: column; gap: 8px; }
.search-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 10px; align-items: center; }
@media (max-width: 640px) { .search-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
details.panel > summary { cursor: pointer; list-style: revert; }
.answers { display: flex; flex-direction: column; margin-top: 8px; }
.answer { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.answer:last-child { border-bottom: 0; }
.answer .q { color: var(--muted); }
.answer .a { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 640px) { .answer { grid-template-columns: minmax(0, 1fr) auto; } .answer .q { grid-column: 1 / -1; } }
details.group > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 0 10px; list-style: none; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
details.group[open] > summary::before { transform: rotate(90deg); }
details.group .gname { font-size: 18px; font-weight: 600; }
details.group .n { font-size: 12.5px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.note { display: flex; flex-direction: column; gap: 6px; }

/* Full-time: resumes, ATS, tailoring, editor */
.resume-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.resume { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); min-width: 0; }
.meter { width: 90px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.resume-strip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 10px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); }
.resume-strip select { width: auto; max-width: 100%; padding: 4px 8px; font-size: 14px; }
.ats { font-size: 13px; padding: 2px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ats.good { background: var(--good-soft); color: var(--good); }
.ats.warn { background: var(--warn-soft); color: var(--warn); }
.ats.bad { background: var(--bad-soft); color: var(--bad); }
.chk.kw { font-size: 14px; }
.editor { display: flex; flex-direction: column; gap: 12px; }
.paras { display: flex; flex-direction: column; gap: 6px; }
.para { display: flex; flex-direction: column; gap: 4px; }
.para.heading { padding-top: 8px; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; color: var(--muted); }
.para.locked { padding: 6px 10px; border: 1px dashed var(--field-line); border-radius: 6px; }
.para-text { min-height: 34px; resize: vertical; line-height: 1.45; font-size: 14.5px; }
.para .btn.quiet { align-self: flex-start; padding: 0 4px; font-size: 12.5px; }
.added { display: flex; flex-direction: column; gap: 4px; }
dialog.modal:has(.editor) { width: min(900px, calc(100vw - 24px)); }
