/* Job Pilot: warm and calm. Ivory paper, warm charcoal ink, one burnt-terracotta accent,
   serif headings. Token names kept from earlier themes: --night = ink and dark surfaces,
   --primary / --runway = the accent, --beacon = success. Contrast checked (all text 4.5:1+). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/static/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/static/fonts/source-serif-4-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --sky: #faf7f2;            /* ivory page */
  --paper-2: #f3eee6;        /* sidebar, quiet panels */
  --cloud: #ffffff;          /* cards */
  --night: #2b2622;          /* warm charcoal ink and dark surfaces */
  --night-2: #3d3631;
  --primary: #b4532f;        /* burnt terracotta accent (white text 5:1) */
  --primary-soft: #f6e7df;
  --slate: #6b625a;          /* muted text */
  --line: #e7dfd5;           /* borders */
  --runway: #b4532f;         /* main call to action */
  --runway-hover: #9a4526;
  --runway-soft: #f6e7df;
  --beacon: #34684a;         /* success, muted sage */
  --beacon-soft: #e3f0e7;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --signal: #b42318;
  --signal-soft: #fdecea;
  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --radius-s: 10px;
  --radius-m: 16px;
  --rail: 240px;
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--night); font: 16px/1.55 var(--body); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.015em; }
h1:focus { outline: none; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--beacon); }
.muted { color: var(--slate); }
.small { font-size: 0.875rem; }
.lead { color: var(--slate); margin-top: 0.4rem; max-width: 62ch; }
.help { color: var(--slate); font-size: 0.875rem; margin-top: 0.1rem; }
.optional { font-family: var(--body); font-size: 0.8rem; font-weight: 500; color: var(--slate); margin-left: 0.35rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--night); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-s); z-index: 50; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Buttons: navy primary, one amber "runway" action, outlined secondary, quiet text. */
button, .button-primary, .button-secondary, .button-quiet, .button-runway, .button-link {
  font: 600 0.95rem/1 var(--body); border-radius: 999px; min-height: 44px; padding: 0 1.2rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; border: 1px solid transparent;
  background: var(--cloud); color: var(--night); touch-action: manipulation; -webkit-tap-highlight-color: rgba(3, 105, 161, 0.18);
}
[aria-busy=true] { cursor: progress; }
[aria-busy=true]::after { content: ''; width: 0.9em; height: 0.9em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
button:disabled { cursor: not-allowed; opacity: 0.5; }
button, a, .pills span, .file-drop, .options li { transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
button svg, a svg, .nav-icon svg, [data-icon] svg { width: 1.15em; height: 1.15em; flex: none; }
.title-icon { display: inline-flex; vertical-align: -0.1em; margin-right: 0.5rem; color: var(--primary); }
.title-icon svg { width: 1.1em; height: 1.1em; }
.button-primary { background: var(--night); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--night-2); }
.button-runway { background: var(--runway); color: #fff; font-weight: 700; padding: 0 1.6rem; }
.button-runway:hover:not(:disabled) { background: var(--runway-hover); }
.button-secondary { background: var(--cloud); color: var(--night); border-color: var(--line); }
.button-secondary:hover:not(:disabled) { border-color: var(--night); background: var(--sky); }
.button-quiet, .button-link { background: transparent; color: var(--night); padding: 0 0.6rem; }
.button-quiet:hover, .button-link:hover { text-decoration: underline; }
.button-link { color: var(--primary); }
.button-small { min-height: 36px; padding: 0 0.9rem; font-size: 0.875rem; }
.button-wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.span-2 { grid-column: 1 / -1; }

/* Forms */
.stack { display: grid; gap: 1.25rem; }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
fieldset.field { border: 0; margin: 0; padding: 0; }
label, legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
legend { margin-bottom: 0.4rem; }
input:not([type]), input[type=text], input[type=email], input[type=url], input[type=number], input[type=time], select, textarea {
  width: 100%; min-height: 44px; padding: 0.6rem 0.8rem; font: 1rem var(--body); color: var(--night);
  background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-s);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--night); outline: none; box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.25); }
[aria-invalid=true] { border-color: var(--signal) !important; }
.field-error { color: var(--signal); font-size: 0.875rem; font-weight: 600; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills label { position: relative; font-weight: 500; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cloud); cursor: pointer; }
.pills input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pills span:hover { border-color: var(--primary); }
.pills input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.pills.invalid span { border-color: var(--signal); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; min-height: 44px; padding: 0.35rem; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-s); }
.chips:focus-within { border-color: var(--night); box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.25); }
.chips.invalid { border-color: var(--signal); }
.chips input { flex: 1 1 12rem; width: auto; border: 0; box-shadow: none; min-height: 34px; padding: 0.2rem 0.4rem; }
.chip-list { display: contents; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.1rem; background: var(--sky); border-radius: 999px; padding: 0.1rem 0.15rem 0.1rem 0.75rem; font-size: 0.9rem; }
.chip button { min-height: 30px; width: 30px; padding: 0; border-radius: 50%; background: transparent; color: var(--slate); font-size: 1.1rem; }
.chip button:hover { background: var(--line); color: var(--night); }
.combo { position: relative; }
.options { position: absolute; z-index: 20; left: 0; right: 0; top: 4.9rem; list-style: none; margin: 0; padding: 0.3rem; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 12px 28px rgba(21, 34, 56, 0.16); max-height: 18rem; overflow-y: auto; }
.options li { padding: 0.65rem 0.75rem; border-radius: 6px; cursor: pointer; }
.options li[aria-selected=true], .options li:hover { background: var(--sky); }

.file-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop { display: grid; gap: 0.2rem; padding: 1.1rem 1.2rem; border: 2px dashed var(--line); border-radius: var(--radius-m); background: var(--cloud); cursor: pointer; font-weight: 500; }
.file-drop:hover { border-color: var(--night); }
.field:focus-within .file-drop { border-color: var(--night); outline: 3px solid var(--primary); outline-offset: 2px; }
.file-drop.invalid { border-color: var(--signal); }
.file-title { font-weight: 650; }
.resume-status { font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 500; min-height: 44px; }
.switch input { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); }

/* Sign-in */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-art { background: var(--night); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.login-art .wordmark { color: #fff; }
.login-gauge { --score: 92; width: min(260px, 60vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#e08a64 calc(var(--score) * 1%), rgba(255, 255, 255, 0.12) 0); }
.login-gauge span { width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--night); display: grid; place-items: center; font: 800 4.5rem/1 var(--display); }
.login-pitch { font: 600 clamp(1.4rem, 1rem + 1.2vw, 2rem)/1.25 var(--display); max-width: 22ch; }
.login-form-wrap { display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; padding: 3rem clamp(1.5rem, 6vw, 5rem); max-width: 34rem; }
.form-message { color: var(--beacon); font-weight: 600; }
.form-message:empty { display: none; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--slate); }

/* App frame */
.wordmark { font: 700 1.45rem/1 var(--display); color: var(--night); text-decoration: none; letter-spacing: -0.02em; }
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--paper-2); color: var(--night); border-right: 1px solid var(--line); padding: 1.6rem 1rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2rem; }
.rail .wordmark { color: var(--night); padding: 0 0.6rem; }
.nav { display: grid; gap: 0.3rem; }
.nav button { justify-content: flex-start; width: 100%; border-radius: var(--radius-s); background: transparent; color: #5a514a; font-weight: 600; padding: 0 0.8rem; }
.nav button:hover { background: rgba(43, 38, 34, 0.06); color: var(--night); }
.nav button[aria-current=page] { background: var(--cloud); color: var(--night); box-shadow: inset 3px 0 0 var(--primary), 0 1px 2px rgba(43, 38, 34, 0.08); }
.nav button[aria-current=page] .nav-icon { color: var(--primary); }
.nav-icon { display: inline-flex; width: 1.3rem; justify-content: center; }
.nav-icon svg { width: 1.3rem; height: 1.3rem; }
.shell { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: 0.9rem clamp(1rem, 4vw, 3rem); }
.topbar-brand { display: none; font: 800 1.2rem/1 var(--display); }
.account { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font: 700 1rem/1 var(--display); flex: none; }
.account-email { color: var(--slate); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { padding: 0.5rem clamp(1rem, 4vw, 3rem) 4rem; max-width: 72rem; width: 100%; outline: none; }
.view { display: grid; gap: 1.75rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.panel { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; display: grid; gap: 1rem; }

/* Status board: the flight-information strip for the person's own search. */
.board { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; background: var(--night); color: #fff; border-radius: var(--radius-m); padding: 1.25rem 1.5rem; }
.board-cell { display: grid; gap: 0.2rem; }
.board-cell + .board-cell { border-left: 1px solid rgba(255, 255, 255, 0.15); padding-left: 1.5rem; }
.board-label { color: #e9b89f; font-size: 0.85rem; font-weight: 600; }
.board-value { font: 700 1.2rem/1.2 var(--display); }
.board-status p { color: #faf7f2; }
.board .button-runway { box-shadow: none; }

/* Setup checklist: a real sequence, so numbered. */
.setup { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.4rem 1.5rem; }
.setup-steps { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: step; display: grid; }
.setup-steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid var(--sky); }
.setup-steps li:first-child { border-top: 0; }
.step-mark { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font: 700 0.95rem/1 var(--display); color: var(--slate); }
.step-mark::before { content: counter(step); }
.setup-steps li.done .step-mark { background: var(--beacon); border-color: var(--beacon); color: #fff; }
.setup-steps li.done .step-mark::before { content: '✓'; }
.setup-steps li.done strong { color: var(--slate); }
.setup-steps li.done .button-link { display: none; }
.setup-steps p { color: var(--slate); font-size: 0.9rem; }

/* Job tickets */
.tickets { display: grid; gap: 0.9rem; }
.tickets:empty { display: none; }
.ticket:hover { border-color: #d8c6b4; }
.ticket { transition: border-color var(--ease); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.25rem 1.4rem; }
.ticket.plain { grid-template-columns: minmax(0, 1fr) auto; }
.ticket-body { min-width: 0; overflow-wrap: anywhere; }
.gauge { --score: 0; width: 72px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--runway) calc(var(--score) * 1%), #efe6db 0); }
.gauge span { font-variant-numeric: tabular-nums; width: 56px; aspect-ratio: 1; border-radius: 50%; background: var(--cloud); display: grid; place-items: center; align-content: center; font: 800 1.35rem/1 var(--display); }
.gauge small { display: block; font: 600 0.62rem/1 var(--body); color: var(--slate); margin-top: 2px; }
.ticket-company { color: var(--slate); font-weight: 600; font-size: 0.9rem; }
.ticket h3 { margin: 0.15rem 0 0.35rem; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--slate); font-size: 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 0.65rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--paper-2); color: var(--night-2); }
.tag.web { background: var(--primary-soft); color: #8a3c20; }
.tag.board { background: var(--beacon-soft); color: var(--beacon); }
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 0.9rem; }
.fit h4 { font: 600 0.85rem/1.3 var(--body); color: var(--slate); margin-bottom: 0.25rem; }
.fit ul { margin: 0; padding-left: 1.1rem; font-size: 0.93rem; }
.note { margin-top: 0.8rem; color: var(--slate); font-size: 0.875rem; }
.ticket-actions { display: grid; gap: 0.45rem; justify-items: stretch; align-content: start; min-width: 11rem; }
.ticket-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1rem; margin-top: 0.2rem; }
.ticket-status .button-quiet { min-height: 36px; padding: 0 0.55rem; font-size: 0.875rem; color: var(--slate); }
.ticket-status .button-quiet:hover { color: var(--night); }
.segmented { display: inline-flex; background: var(--cloud); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.segmented button { min-height: 38px; background: transparent; color: var(--slate); font-weight: 600; }
.segmented button[aria-pressed=true] { background: var(--primary); color: #fff; }
.shortlist-tools { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.empty { background: var(--cloud); border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 2rem; display: grid; gap: 0.6rem; justify-items: start; }
.empty p { color: var(--slate); max-width: 55ch; }

/* Profile form */
.profile { display: grid; gap: 1.25rem; }
.form-block { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 2rem; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.6rem; }
.block-intro p { color: var(--slate); font-size: 0.93rem; margin-top: 0.4rem; }
.save-bar { position: sticky; bottom: 1rem; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--night); color: #fff; border-radius: var(--radius-m); padding: 0.8rem 0.8rem 0.8rem 1.4rem; box-shadow: 0 14px 30px rgba(21, 34, 56, 0.25); }
.save-bar .button-primary { background: var(--runway); color: #fff; }
.save-bar .button-primary:hover:not(:disabled) { background: var(--runway-hover); }

/* Connections */
.connection { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; display: grid; gap: 0.9rem; }
.connection-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.status-tag { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 30px; padding: 0 0.8rem; border-radius: 999px; background: var(--sky); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.status-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--slate); }
.status-tag[data-tone=good] { background: var(--beacon-soft); color: var(--beacon); }
.status-tag[data-tone=good]::before { background: var(--beacon); }
.status-tag[data-tone=warn] { background: var(--warn-soft); color: var(--warn); }
.status-tag[data-tone=warn]::before { background: var(--warn); }
.status-tag[data-tone=bad] { background: var(--signal-soft); color: var(--signal); }
.status-tag[data-tone=bad]::before { background: var(--signal); }
.device { background: var(--sky); border-radius: var(--radius-s); padding: 1rem 1.2rem; overflow-wrap: anywhere; }
.device-code { font: 800 2rem/1.2 var(--display); letter-spacing: 0.12em; margin-top: 0.3rem; user-select: all; overflow-wrap: anywhere; }
.command { font: 700 1rem/1.4 var(--body); margin-top: 0.5rem; padding: 0.6rem 0.8rem; background: var(--cloud); border-radius: var(--radius-s); user-select: all; overflow-wrap: anywhere; }
.how-to { background: var(--sky); border-radius: var(--radius-s); padding: 0.9rem 1.1rem; }
.how-to summary { font-weight: 650; cursor: pointer; min-height: 32px; }
.how-to ol { margin: 0.6rem 0 0.6rem; padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.pager-status { color: var(--slate); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tag.soon { background: var(--warn-soft); color: var(--warn); }
.tag.closed { background: var(--signal-soft); color: var(--signal); }
.employer-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: end; }
.employer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.empty-inline { color: var(--slate); background: var(--sky); border-radius: var(--radius-s); padding: 1rem 1.1rem; }
.employer-list li:hover { border-color: #d8c6b4; }
.employer-list li { transition: border-color var(--ease); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-s); }
.employer-list strong { display: block; overflow-wrap: anywhere; }
.employer-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; color: var(--slate); font-size: 0.875rem; }
.welcome { background: var(--primary-soft); border: 1px solid #ecc9b6; border-radius: var(--radius-m); padding: 1.3rem 1.5rem; display: grid; gap: 0.5rem; }
.welcome ol { margin: 0.2rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.3rem; }
.nav button.locked { opacity: 0.5; }
.nav button.locked::after { content: ''; width: 0.5rem; height: 0.5rem; margin-left: auto; border-radius: 50%; background: var(--slate); opacity: 0.6; }
.footnote { color: var(--slate); font-size: 0.875rem; }

/* Notifications */
.toast { position: fixed; bottom: 6rem; right: 1.5rem; z-index: 40; display: flex; align-items: flex-start; gap: 0.75rem; max-width: min(28rem, calc(100vw - 2rem));
  background: var(--night); color: #fff; border-radius: var(--radius-m); padding: 0.4rem 0.4rem 0.4rem 1.1rem; box-shadow: 0 16px 36px rgba(21, 34, 56, 0.3); border-left: 5px solid var(--beacon); }
.toast.error { border-left-color: var(--signal); }
.toast p { padding: 0.6rem 0; overflow-wrap: anywhere; }
.toast-close { min-height: 44px; width: 44px; padding: 0; background: transparent; color: #fff; font-size: 1.4rem; flex: none; }
.toast-close:hover { background: rgba(255, 255, 255, 0.1); }
.toast.showing { animation: toast-in 180ms ease-out; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tablet and phone */
@media (max-width: 960px) {
  .form-block { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .ticket { grid-template-columns: auto minmax(0, 1fr); }
  .ticket-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); min-width: 0; }
  .ticket-status { grid-column: 1 / -1; justify-content: flex-start; }
  .ticket.plain .ticket-actions { grid-column: 1 / -1; }
  .ticket.plain { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .login { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .login-art { padding: 1.5rem; flex-direction: row; align-items: center; }
  .login-gauge { width: 72px; flex: none; }
  .login-gauge span { font-size: 1.4rem; }
  .login-pitch { font-size: 1.05rem; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; z-index: 30; padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom)); flex-direction: row; }
  .rail .wordmark { display: none; }
  .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .nav button { flex-direction: column; justify-content: center; gap: 0.1rem; font-size: 0.8rem; min-height: 56px; }
  .rail { border-right: 0; border-top: 1px solid var(--line); }
  .nav button[aria-current=page] { box-shadow: inset 0 3px 0 var(--primary); }
  .topbar { justify-content: space-between; padding: 0.8rem 1rem; }
  .topbar-brand { display: block; }
  .account-email { display: none; }
  main { padding-bottom: 7rem; }
  .board { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .board-cell + .board-cell { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1rem; }
  .grid-2, .grid-3, .fit, .employer-add { grid-template-columns: minmax(0, 1fr); }
  .setup-steps li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .setup-steps li .button-link { grid-column: 2; justify-self: start; padding: 0; min-height: 36px; }
  .save-bar { bottom: 5.2rem; }
  .toast { top: 4.25rem; bottom: auto; left: 1rem; right: 1rem; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
