/* Shared tokens, top bar, sign in screens and admin. Dark theme only: dark blue #181d30 with light blue #41c2ff from the Altitude Select logo. */
:root {
  --indigo: #181d30;
  --indigo-deep: #181d30;
  --sky: #41c2ff;
  --sky-hover: #1fb2f7;
  --navy: #00008f;
  --on-sky: #00006b;
  --sky-ink: #0a6db3;
  --bg: #f2f5fa;
  --surface: #ffffff;
  --fg: #0b1433;
  --muted: #536079;
  --line: #d9e0ed;
  --chip: #e7edf7;
  --on-band: #ffffff;
  --band-muted: #c2d0ef;
  --hero-bg: #ffffff;
  --hero-fg: #181d30;
  --wave-navy: #181d30;
  --ok-bg: #e4f4ea; --ok-fg: #17603a;
  --warn-bg: #fff1dc; --warn-fg: #8a4b00;
  --err-bg: #fde8e4; --err-fg: #a12a12;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media all { /* dark theme for everyone */
  :root {
    --bg: #070c22; --surface: #101936; --fg: #e8eefa; --muted: #a0aecb;
    --line: #22305a; --chip: #18244a; --indigo-deep: #181d30; --sky-ink: #6fd0ff;
    --hero-bg: #181d30; --hero-fg: #ffffff; --wave-navy: #3d5bff;
    --ok-bg: #133524; --ok-fg: #8fdcb0;
    --warn-bg: #3a2a10; --warn-fg: #f5c27a;
    --err-bg: #3d1a14; --err-fg: #f5a08c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font-body); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: .01em; }
.label { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: inline-flex; align-items: center; flex: none; background: #fff; border-radius: 8px; padding: 7px 12px; text-decoration: none; line-height: 0; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.brand img { display: block; height: 26px; width: auto; max-width: none; }
.auth-side .brand { align-self: flex-start; }
.auth-side .brand img { height: 26px; }
@media (max-width: 480px) { .brand { padding: 6px 9px; } .brand img { height: 20px; } }
.wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; }
.wave path { fill: none; stroke-width: 2; }
.wave .w1 { stroke: rgba(255,255,255,.16); }
.wave .w2 { stroke: rgba(65,194,255,.65); }

/* ---------- Buttons and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: 600 16px/1 var(--font-body); border-radius: 10px; padding: 14px 20px; border: 0; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn-sky { background: var(--sky); color: var(--on-sky); }
.btn-sky:hover { background: var(--sky-hover); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky-ink); }

.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input { width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(65,194,255,.3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--chip); border: 0; border-radius: 7px; padding: 6px 10px; font: 600 13px/1 var(--font-body); color: var(--muted); cursor: pointer; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-ok { background: var(--ok-bg); color: var(--ok-fg); }
.alert-warn { background: var(--warn-bg); color: var(--warn-fg); }
.alert-error { background: var(--err-bg); color: var(--err-fg); }

/* ---------- Sign in screens ---------- */
body.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-side { position: relative; overflow: hidden; background: var(--indigo); color: var(--on-band); }
.auth-side-inner { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; gap: 40px; padding: 40px max(32px, env(safe-area-inset-left, 0px)) 160px 48px; }
.auth-pitch { display: grid; gap: 16px; margin-top: auto; }
.auth-pitch .label { color: #8fd9ff; }
.auth-pitch h1 { font-size: clamp(48px, 6vw, 80px); text-transform: uppercase; }
.auth-pitch p { margin: 0; color: var(--band-muted); font-size: 18px; max-width: 40ch; }
.auth-list { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 10px; color: var(--band-muted); }
.auth-list li { display: flex; gap: 12px; align-items: baseline; }
.auth-list li::before { content: ""; width: 14px; height: 2px; background: var(--sky); flex: none; transform: translateY(-4px); }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding-block: 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.auth-card { width: 100%; max-width: 440px; display: grid; gap: 18px; }
.auth-card h2 { font-size: 40px; text-transform: uppercase; }
.auth-intro { margin: 0; color: var(--muted); }
.auth-card form { display: grid; gap: 16px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.auth-links a, .auth-alt a { color: var(--sky-ink); font-weight: 600; text-decoration: none; }
.auth-links a:hover, .auth-alt a:hover { text-decoration: underline; }
.auth-alt { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.auth-foot { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a { color: inherit; }

@media (max-width: 860px) {
  body.auth { grid-template-columns: 1fr; }
  .auth-side-inner { padding: 24px 20px 72px; gap: 20px; }
  .auth-pitch { margin-top: 8px; gap: 8px; }
  .auth-pitch h1 { font-size: 44px; }
  .auth-pitch p { font-size: 16px; }
  .auth-list { display: none; }
  .auth-side .wave { height: 64px; }
  .auth-main { justify-content: flex-start; padding-block: 28px 40px; }
}

/* ---------- Signed in top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--indigo-deep); color: var(--on-band); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 6px; color: var(--band-muted); white-space: nowrap; }
.nav a:hover { color: var(--on-band); background: rgba(255,255,255,.08); }
.userbox { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .userbox { margin-left: 8px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.15); }
.who { color: var(--band-muted); font-size: 14px; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-link { text-decoration: none; font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; background: var(--sky); color: var(--on-sky); }
.logout { background: transparent; border: 1px solid rgba(255,255,255,.25); color: var(--on-band); font: 600 14px/1 var(--font-body); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.logout:hover { border-color: var(--sky); }
@media (max-width: 860px) {
  .topbar .wrap { flex-wrap: wrap; row-gap: 0; }
  .nav { order: 3; width: 100%; margin: 0 -12px; padding: 0 0 8px; }
  .nav + .userbox { margin-left: auto; padding-left: 0; border: 0; }
}
@media (max-width: 480px) { .who { display: none; } }
/* The admin menu is long, so it gets its own row on laptops too */
@media (min-width: 861px) and (max-width: 1300px) {
  .topbar-long .wrap { flex-wrap: wrap; row-gap: 0; }
  .topbar-long .nav { order: 3; width: 100%; margin: 0 -12px; padding: 0 0 8px; }
  .topbar-long .nav + .userbox { margin-left: auto; padding-left: 0; border: 0; }
}
/* Click and drag the menu to slide it left and right */
.nav.can-drag { cursor: grab; user-select: none; }
.nav.is-dragging { cursor: grabbing; }
.nav.is-dragging a { pointer-events: none; }

/* ---------- Admin ---------- */
.admin { padding-block: 40px 80px; display: grid; gap: 28px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.admin-head h1 { font-size: clamp(36px, 5vw, 52px); text-transform: uppercase; }
.admin-head .label { color: var(--sky-ink); display: block; margin-bottom: 10px; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; }
.count { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.count b { font-family: var(--font-mono); font-weight: 500; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--chip); }
.count.is-on { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.count.is-on b { background: rgba(255,255,255,.18); }
.count.has-pending b { background: var(--sky); color: var(--on-sky); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar form { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.toolbar input[type=search] { flex: 1; min-width: 0; font: 400 15px/1.4 var(--font-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.toolbar .btn { padding: 11px 16px; font-size: 15px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table.users { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 860px; }
.users th { text-align: left; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.users td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.users tr:last-child td { border-bottom: 0; }
.users .name { font-weight: 600; }
.users .sub { color: var(--muted); font-size: 13px; }
.users .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-block; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.tag-active { background: var(--ok-bg); color: var(--ok-fg); }
.tag-pending { background: var(--warn-bg); color: var(--warn-fg); }
.tag-disabled { background: var(--chip); color: var(--muted); }
.tag-admin { background: var(--indigo); color: #fff; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions form { margin: 0; }
.act { font: 600 13px/1 var(--font-body); padding: 7px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; white-space: nowrap; }
.act:hover { border-color: var(--sky); color: var(--sky-ink); }
.act-go { background: var(--sky); border-color: var(--sky); color: var(--on-sky); }
.act-go:hover { background: var(--sky-hover); color: var(--on-sky); }
.act-danger:hover { border-color: var(--err-fg); color: var(--err-fg); }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.admin-note { margin: 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.settings { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
.settings dt { color: var(--muted); font: 500 11px/1.9 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.settings dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Content editor ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-sub { font-size: 26px; text-transform: uppercase; }
.crumbs { margin: -12px 0 0; font-size: 15px; }
.crumbs a { color: var(--sky-ink); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
a.name { color: inherit; text-decoration: none; }
a.name:hover { color: var(--sky-ink); text-decoration: underline; }
a.act { text-decoration: none; display: inline-block; }

.settings-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.settings-link > span:first-child { display: grid; gap: 4px; min-width: 0; }
.settings-link .sub { color: var(--muted); font-size: 14px; }
.settings-link:hover { border-color: var(--sky); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 18px; min-width: 0; }
.settings-form { display: grid; gap: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid .field-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
.field { min-width: 0; align-content: start; }
.field textarea, .field select { width: 100%; font: 400 16px/1.5 var(--font-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; min-height: 90px; }
.field textarea:focus, .field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(65,194,255,.3); }
.field input[type=file] { padding: 10px; background: var(--bg); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; align-self: end; padding-block: 12px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.check.small { font-weight: 500; font-size: 14px; padding-block: 4px 0; }
.check.small input { width: 16px; height: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .btn { padding: 12px 20px; }
.sticky-save { position: sticky; bottom: 0; padding-block: 14px; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 2; }
.layout-help { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.items-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; scroll-margin-top: 80px; }
.items-head .btn { padding: 11px 16px; font-size: 15px; }

.thumb-cell { width: 64px; }
.thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--chip); color: var(--muted); font: 700 16px/1 var(--font-display); }

.image-field { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; }
.image-preview { width: 160px; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--chip); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 14px; border: 1px solid var(--line); }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-field.is-person .image-preview { width: 120px; aspect-ratio: 1; border-radius: 50%; font: 700 36px/1 var(--font-display); }
@media (max-width: 520px) { .image-field { grid-template-columns: 1fr; } }

.logo-field { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 20px; align-items: center; }
.logo-preview { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.logo-preview img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .logo-field { grid-template-columns: 1fr; } }

.danger-zone { display: flex; justify-content: flex-end; }
.pw-options { display: grid; gap: 2px; margin-top: -6px; }
.pw-options .check { align-self: start; }

/* ---------- Files ---------- */
.file-name { display: flex; gap: 12px; align-items: flex-start; }
.file-name > span:last-child { display: grid; gap: 2px; min-width: 0; }
.file-type { flex: none; font: 500 10px/1 var(--font-mono); letter-spacing: .08em; padding: 6px 6px; border-radius: 6px; background: var(--indigo); color: #fff; margin-top: 2px; }
code.file-link, .admin-note code { font: 500 12px/1.4 var(--font-mono); background: var(--chip); padding: 3px 6px; border-radius: 5px; white-space: nowrap; user-select: all; }
.replace-form, .rename-form { margin: 0; }
.replace-form label.act { cursor: pointer; }
.rename-form details { position: relative; }
.rename-form summary { list-style: none; cursor: pointer; }
.rename-form summary::-webkit-details-marker { display: none; }
.rename-box { position: absolute; z-index: 3; right: 0; top: calc(100% + 6px); display: flex; gap: 6px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.3); }
.rename-box input { width: 220px; font: 400 14px/1.4 var(--font-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }

.link-choice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.link-choice input[hidden] { display: none; }
.link-choice:has(input[hidden]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .link-choice { grid-template-columns: 1fr; } }
.link-upload { display: grid; gap: 6px; margin-top: 6px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; }
.link-upload label { font-weight: 600; font-size: 14px; }
.link-upload .hint a { color: var(--sky-ink); }
.links-helper .link-choice { grid-template-columns: minmax(0, 1fr) auto; }
.links-helper .act { padding: 12px 14px; }

/* Onshore / offshore choice */
fieldset.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.choice-group legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span { flex: 1; display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.choice b { font-size: 15px; }
.choice small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.choice input:checked + span { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(65,194,255,.3); }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.tag-work { background: var(--chip); color: var(--fg); }
.tag-onshore { background: #e6f4ea; color: #1f6b3a; }
.tag-offshore { background: #e3f2fd; color: #0b5a8a; }
.tag-both { background: var(--chip); color: var(--fg); }
@media all { /* dark theme for everyone */
  .tag-onshore { background: #143522; color: #93dcae; }
  .tag-offshore { background: #0f2d45; color: #8fd0ff; }
  .tag-both { background: var(--chip); color: var(--fg); }
}
.tag-row { margin-top: 6px; }
.aud-form { margin: 0; }
.aud-form select { font: 500 13px/1.3 var(--font-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
.trip-tag-now { background: #41c2ff; color: #00006b; }
.trip-tag-soon { background: var(--warn-bg); color: var(--warn-fg); }
.trip-tag-later { background: var(--chip); color: var(--fg); }
.trip-tag-past { background: var(--chip); color: var(--muted); }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.choices-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .choices-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xmas-christmas, .xmas-newyear { background: #e3f2fd; color: #0b5a8a; }
.xmas-both { background: #41c2ff; color: #00006b; }
.xmas-none { background: var(--chip); color: var(--muted); }

/* Form answers */
.response { gap: 14px; }
.response-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.response-head .sub { color: var(--muted); font-size: 14px; }
.answers { margin: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border-top: 1px solid var(--line); }
.answers dt, .answers dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.answers dt { color: var(--muted); padding-right: 16px; font-size: 14px; }
.answers dd { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) { .answers { grid-template-columns: 1fr; } .answers dt { border-bottom: 0; padding-bottom: 2px; } .answers dd { padding-top: 0; } }
.question-fields [hidden] { display: none !important; }

/* Google Sheet setup (admin) */
.sheet-status { display: grid; gap: 6px; padding: 18px 20px; border-radius: 12px; background: var(--indigo-deep); border: 1px solid var(--line); margin-bottom: 20px; }
.sheet-status .label { color: #8fd9ff; }
.sheet-status p { margin: 0; }
.sheet-status b { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.sheet-status .sub { font-size: 13px; }
.setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; }
.code-box { width: 100%; font: 400 13px/1.5 var(--font-mono); white-space: pre; overflow: auto; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }

/* Personnel Hub logo in place of the big heading */
.logo-title { margin: 0; line-height: 0; }
.logo-title img { display: block; width: 100%; height: auto; }
.auth-pitch .logo-title img { max-width: 460px; }
.hero .logo-title img { max-width: 600px; }

/* Timesheet tags and tables (admin and hub) */
.ts-readonly tfoot td { border-top: 1px solid var(--line); }
.ts-readonly .ts-pay td { font-size: 16px; }
.ts-readonly tr.ts-off td { color: var(--muted); }
.ts-notes { margin: 0; }
.tag.ts-draft { background: var(--chip); color: var(--muted); }
.tag.ts-submitted { background: var(--warn-bg); color: var(--warn-fg); }
.tag.ts-declined { background: #3a1620; color: #ffb4b4; }
.tag.ts-approved { background: #12351f; color: #8ee6a6; }
.ts-people summary { cursor: pointer; font-weight: 600; }
.ts-people ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* Job roles (admin) */
.roles-table td { vertical-align: top; }
.roles-table .role-name { width: 100%; min-width: 160px; font: 600 15px/1.4 var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.roles-table .covers { min-width: 240px; }
.role-deletes { align-items: center; }
.opt-list.role-list { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.multi-pick { position: relative; min-width: 220px; }
.multi-pick summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 14px; }
.multi-pick summary::-webkit-details-marker { display: none; }
.multi-pick summary::after { content: "▾"; color: var(--muted); flex: none; }
.multi-pick[open] summary { border-color: var(--sky); }
.multi-pick .multi-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-pop { margin-top: 4px; max-height: 260px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.45); display: grid; gap: 2px; }
.multi-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.multi-opt:hover { background: var(--chip); }
.multi-opt input { width: 17px; height: 17px; accent-color: var(--sky); margin: 0; flex: none; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .choices-2 { grid-template-columns: 1fr; } }
.auth .multi-pick { min-width: 0; }
.auth .multi-pick summary { padding: 12px 14px; font-size: 16px; background: var(--surface); border-radius: 10px; }
