/* Nationwide Crew: worker application, profiles and recruiting. Same brand as the site mockup. */
:root {
  --ink: #0d1115; --steel: #151b21; --steel-2: #1f2730; --steel-3: #2b3540;
  --paper: #f4f2ee; --paper-2: #e9e6e0; --card: #ffffff; --line: #e3dfd8; --line-2: #d4cfc6;
  --text: #171c21; --muted: #5a646e; --muted-2: #8a939b;
  --orange: #e8742f; --orange-hi: #f4873f; --orange-ink: #b4521a; --orange-soft: #fdf0e7;
  --ok: #2f9e5b; --ok-soft: #e7f5ec; --warn: #b7791f; --warn-soft: #fdf5e3; --bad: #c0392b; --bad-soft: #fbeceb;
  --blue: #2c6cb0; --blue-soft: #e8f0fa;
  --r: 10px; --r-sm: 6px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(13,17,21,.06), 0 4px 16px rgba(13,17,21,.05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 .8em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- chrome ---------- */
.demo-ribbon { background: #fff4d6; color: #5c4300; font-size: 13px; text-align: center; padding: 6px 16px; }
.demo-ribbon b { font-weight: 700; }
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-row { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 14px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar .brand img { height: 34px; width: auto; }
.topbar .brand-tag { font: 700 13px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); border-left: 1px solid rgba(255,255,255,.2); padding-left: 10px; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 14px; color: #c9d1d8; display: none; }
.topbar .link-btn { background: none; border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 99px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.topbar .link-btn:hover { border-color: var(--orange); color: var(--orange-hi); }
@media (min-width: 720px) { .topbar .who { display: block; } }

.page { max-width: 1180px; margin: 0 auto; padding: 20px 16px 64px; }
.page-narrow { max-width: 640px; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: var(--r-sm); font: 700 15px/1 var(--body); letter-spacing: .02em; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-orange { background: var(--orange); color: #1a0d04; }
.btn-orange:hover:not(:disabled) { background: var(--orange-hi); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--steel-3); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid transparent; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--line); }
.icon-btn svg, .btn svg { width: 18px; height: 18px; }
.text-btn { background: none; border: 0; padding: 0; color: var(--orange-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: block; margin-bottom: 14px; }
.field > span, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field small, .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; padding: 10px 12px; font-size: 16px; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,116,47,.18); }
.row2 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.row3 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .row3 { grid-template-columns: 2fr 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); margin: 1px 0 0; flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-toggle { position: relative; }
.pill-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pill-toggle span { display: inline-block; border: 1.5px solid var(--line-2); border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; user-select: none; }
.pill-toggle input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(232,116,47,.3); }
.choice-cards { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice .choice-body { display: block; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; background: #fff; }
.choice .choice-body b { display: block; font-size: 15px; }
.choice .choice-body small { color: var(--muted); font-size: 13px; }
.choice input:checked + .choice-body { border-color: var(--orange); background: var(--orange-soft); box-shadow: inset 0 0 0 1px var(--orange); }
.choice input:focus-visible + .choice-body { box-shadow: 0 0 0 3px rgba(232,116,47,.3); }
.err { color: var(--bad); font-size: 14px; font-weight: 600; margin: 6px 0 10px; }
.chip-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 6px; background: #fff; min-height: 46px; }
.chip-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,116,47,.18); }
.chip-input input { border: 0; outline: none; flex: 1; min-width: 140px; padding: 6px; font-size: 16px; background: transparent; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
@media (min-width: 720px) { .card-pad { padding: 22px 24px; } }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-head h2 { font-size: 22px; text-transform: uppercase; flex: 1; }
.card-head .count { color: var(--muted); font: 600 14px var(--body); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.empty { color: var(--muted); font-size: 15px; padding: 6px 0; }
.empty .text-btn { margin-left: 2px; }

/* ---------- sign in ---------- */
.auth { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
@media (min-width: 900px) { .auth { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 28px; } }
.auth-hero { background: var(--ink) url("/assets/crew.jpg") center/cover; color: #fff; border-radius: var(--r); overflow: hidden; position: relative; min-height: 220px; }
.auth-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,17,21,.55), rgba(13,17,21,.92)); }
.auth-hero.staff { background-image: url("/assets/site-leads.jpg"); }
.auth-hero-in { position: relative; padding: 26px 22px; }
@media (min-width: 900px) { .auth-hero { min-height: 520px; } .auth-hero-in { padding: 40px 36px; } }
.eyebrow { font: 700 13px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.auth-hero h1 { font-size: clamp(36px, 8vw, 56px); text-transform: uppercase; margin-bottom: 12px; }
.auth-hero p { color: #d5dce2; font-size: 17px; max-width: 34em; }
.auth-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: #e8edf1; }
.auth-points svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 2px; }
.auth-card h2 { font-size: 28px; text-transform: uppercase; margin-bottom: 6px; }
.code-input { letter-spacing: .5em; font: 700 26px/1 var(--body); text-align: center; padding-left: .5em; }
.demo-code { display: flex; align-items: center; gap: 12px; background: var(--warn-soft); border: 1px dashed #d9a521; border-radius: var(--r-sm); padding: 10px 12px; margin: 4px 0 14px; font-size: 14px; color: #5c4300; }
.demo-code b { font: 700 22px/1 var(--body); letter-spacing: .18em; color: var(--ink); }
.demo-panel { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.demo-panel summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--orange-ink); }
.demo-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.demo-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.demo-list li span { flex: 1; min-width: 0; }
.demo-list li em { font-style: normal; color: var(--muted); font-size: 12px; display: block; }
.switch-line { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- wizard ---------- */
.wiz-top { margin-bottom: 16px; }
.wiz-top h1 { font-size: clamp(30px, 6vw, 40px); text-transform: uppercase; }
.steps { display: flex; gap: 4px; margin: 14px 0 6px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--paper-2); }
.steps i.on { background: var(--orange); }
.steps i.done { background: var(--ink); }
.step-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.wiz-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wiz-actions .right { display: flex; gap: 10px; margin-left: auto; }
.welcome { background: var(--blue-soft); border: 1px solid #c9dbef; color: #1d3f66; border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-size: 15px; }
.photo-pick { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.cert-pick { border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; background: #fff; }
.cert-pick + .cert-pick { margin-top: 8px; }
.cert-pick.on { border-color: var(--orange); background: var(--orange-soft); }
.cert-pick .check { padding: 4px 0; font-weight: 600; }
.cert-pick .cert-dates { margin: 8px 0 2px 30px; }
.exp-edit { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; background: #fcfbf9; }
.exp-edit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.exp-edit-head b { flex: 1; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.review-list li:last-child { border-bottom: 0; }
.review-list .ok-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ok-soft); color: var(--ok); }
.review-list .no-dot { background: var(--warn-soft); color: var(--warn); }
.review-list .ok-dot svg { width: 14px; height: 14px; }
.review-list div { flex: 1; }
.review-list small { display: block; color: var(--muted); }

/* ---------- profile ---------- */
.banner { display: flex; gap: 12px; align-items: center; border-radius: var(--r); padding: 12px 16px; margin-bottom: 14px; font-size: 15px; flex-wrap: wrap; }
.banner > div { flex: 1; min-width: 220px; }
.banner b { display: block; }
.banner-info { background: var(--blue-soft); color: #1d3f66; border: 1px solid #c9dbef; }
.banner-warn { background: var(--warn-soft); color: #6b4a0f; border: 1px solid #ecd59d; }
.banner-ok { background: var(--ok-soft); color: #1d5e37; border: 1px solid #bfe3cc; }
.banner-bad { background: var(--bad-soft); color: #7a241b; border: 1px solid #efc4bf; }
.profile-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.profile-grid > *, .staff-grid > * { min-width: 0; }
@media (min-width: 960px) { .profile-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .profile-side { position: sticky; top: 76px; } }
.profile-main > .card + .card, .profile-side > .card + .card { margin-top: 14px; }
.intro { overflow: hidden; }
.cover { height: 96px; background:
  linear-gradient(120deg, rgba(232,116,47,.0) 55%, rgba(232,116,47,.9) 55.2%, rgba(232,116,47,.9) 58%, rgba(232,116,47,0) 58.2%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, rgba(255,255,255,0) 12px 24px),
  linear-gradient(120deg, var(--ink), var(--steel-3)); }
@media (min-width: 720px) { .cover { height: 150px; } }
.intro-body { padding: 0 18px 18px; position: relative; }
@media (min-width: 720px) { .intro-body { padding: 0 26px 22px; } }
.intro-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -54px; }
@media (min-width: 720px) { .intro-top { margin-top: -74px; } }
.intro-actions { display: flex; gap: 8px; padding-bottom: 6px; flex-wrap: wrap; justify-content: flex-end; }
.intro h1 { font-size: clamp(30px, 6vw, 40px); margin-top: 12px; }
.intro .headline { font-size: 18px; margin: 4px 0 6px; }
.intro .meta { color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.intro .meta span { display: inline-flex; align-items: center; gap: 5px; }
.intro .meta svg { width: 15px; height: 15px; }
.intro .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.avatar { position: relative; flex: none; border-radius: 50%; background: var(--steel-3); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 18px/1 var(--head); letter-spacing: .02em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xl { width: 112px; height: 112px; font-size: 40px; border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
@media (min-width: 720px) { .avatar-xl { width: 148px; height: 148px; font-size: 52px; } }
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }
.avatar-md { width: 52px; height: 52px; font-size: 19px; }
.avatar-sm { width: 40px; height: 40px; font-size: 15px; }
.ring { position: relative; display: inline-block; border-radius: 50%; padding: 4px; flex: none; }
.ring.avail-now { background: conic-gradient(var(--ok) 0 100%); }
.ring.avail-from { background: conic-gradient(var(--orange) 0 100%); }
.ring .avatar-xl { border-width: 3px; }
.ring-label { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); background: var(--ok); color: #fff; font: 700 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; white-space: nowrap; border: 2px solid #fff; }
.ring.avail-from .ring-label { background: var(--orange); color: #1a0d04; }

.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.tag-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag-orange { background: var(--orange-soft); color: var(--orange-ink); border-color: #f4cfb5; }
.tag-ok { background: var(--ok-soft); color: #1d6b3d; border-color: #bfe3cc; }
.tag-warn { background: var(--warn-soft); color: #7a5512; border-color: #ecd59d; }
.tag-bad { background: var(--bad-soft); color: #8d2a20; border-color: #efc4bf; }
.tag-blue { background: var(--blue-soft); color: #1d4f86; border-color: #c9dbef; }
.tag svg { width: 13px; height: 13px; }

.about-text { white-space: pre-line; font-size: 16px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 2px; }
.co-mark { width: 48px; height: 48px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; font: 700 16px/1 var(--head); background: var(--paper-2); color: var(--steel-3); letter-spacing: .04em; }
.co-mark.nas { background: var(--ink); color: var(--orange); font-size: 14px; }
.timeline h3 { font: 700 16px/1.3 var(--body); }
.timeline .co { font-size: 15px; }
.timeline .when { color: var(--muted); font-size: 14px; }
.timeline .desc { margin-top: 6px; font-size: 15px; white-space: pre-line; }

.cert-list { list-style: none; padding: 0; margin: 0; }
.cert-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.cert-list li:first-child { border-top: 0; padding-top: 2px; }
.cert-ic { width: 44px; height: 44px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.cert-ic svg { width: 22px; height: 22px; }
.cert-list .c-body { flex: 1; min-width: 0; }
.cert-list h3 { font: 700 16px/1.3 var(--body); }
.cert-list .c-sub { color: var(--muted); font-size: 14px; }
.cert-list .c-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.trade-list { list-style: none; padding: 0; margin: 0 0 14px; }
.trade-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.trade-list li:first-child { border-top: 0; padding-top: 0; }
.trade-list b { flex: 1; font-size: 16px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.strength-meter { height: 10px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin: 8px 0 10px; }
.strength-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-hi)); border-radius: 99px; transition: width .4s; }
.strength-meter.full i { background: var(--ok); }
.strength-top { display: flex; align-items: baseline; justify-content: space-between; }
.strength-top b { font: 700 30px/1 var(--head); }
.strength-level { font-weight: 700; font-size: 14px; color: var(--orange-ink); text-transform: uppercase; letter-spacing: .08em; }
.next-list { list-style: none; padding: 0; margin: 0; }
.next-list li { border-top: 1px solid var(--line); }
.next-list button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 0; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; }
.next-list button:hover span { color: var(--orange-ink); text-decoration: underline; }
.next-list button span { flex: 1; }
.next-list em { font-style: normal; color: var(--muted); font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.private-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.private-note svg { width: 14px; height: 14px; }
.avail-big { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted-2); flex: none; }
.dot.now { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.dot.from { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.dot.busy { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.avail-big b { font-size: 17px; }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(13,17,21,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 720px) { .modal-back { align-items: center; padding: 24px; } }
.modal { background: #fff; width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; }
@media (min-width: 720px) { .modal { border-radius: 14px; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { flex: 1; font-size: 24px; text-transform: uppercase; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: 15px; z-index: 60; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center; }

/* ---------- staff ---------- */
.staff-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.staff-head h1 { font-size: clamp(30px, 6vw, 42px); text-transform: uppercase; flex: 1; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.stat:hover { border-color: var(--line-2); }
.stat b { display: block; font: 700 32px/1 var(--head); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat.hot b { color: var(--orange-ink); }
.stat.bad b { color: var(--bad); }
.tabs { display: flex; gap: 4px; box-shadow: inset 0 -2px 0 var(--line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 700 15px var(--body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.tabs .n { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 99px; background: var(--orange); color: #1a0d04; font-size: 12px; margin-left: 4px; text-align: center; }
.staff-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .staff-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.filters { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.filters .wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .filters { grid-template-columns: 2fr 1.2fr 1.2fr 1fr 1fr; } .filters .wide { grid-column: auto; } }
.filters .field { margin: 0; }
.wcards { display: grid; gap: 10px; }
@media (min-width: 700px) { .wcards.grid { grid-template-columns: 1fr 1fr; } }
.wcard { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-align: left; cursor: pointer; width: 100%; box-shadow: var(--shadow); }
.wcard:hover { border-color: var(--orange); }
.wcard .w-body { flex: 1; min-width: 0; }
.wcard h3 { font: 700 17px/1.25 var(--body); }
.wcard .w-head { color: var(--text); font-size: 14px; margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcard .w-meta { color: var(--muted); font-size: 13px; }
.wcard .w-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mini-meter { height: 5px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-top: 8px; max-width: 160px; }
.mini-meter i { display: block; height: 100%; background: var(--orange); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #faf8f5; }
.table-wrap { overflow-x: auto; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed li:first-child { border-top: 0; padding-top: 0; }
.feed b { font-weight: 700; }
.feed small { display: block; color: var(--muted); font-size: 12px; }
.feed .note { display: block; font-style: italic; color: var(--steel-3); }
.back-row { margin-bottom: 12px; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.action-bar .input { min-height: 40px; flex: 1 1 220px; }
.text-preview { background: #eef6ff; border: 1px solid #c9dbef; border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 15px; max-width: 420px; margin: 8px 0; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--paper-2); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: .01ms !important; } }

/* Demo only: fill a form with sample answers. Styled like the demo ribbon so it never reads as part of the product. */
.demo-fill { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 18px; padding: 10px 12px; background: #fff7d6; border: 1px dashed #d9b84a; border-radius: var(--r); }
.demo-fill small { color: #6b5512; font-size: 13px; }
.demo-fill-btn { background: #fff; border: 1px solid #d9b84a; color: #4a3a08; }
.demo-fill-btn:hover:not(:disabled) { border-color: #a8861f; background: #fffbea; }

/* ---------- dispatch board ---------- */
.avatar-xs { width: 28px; height: 28px; font-size: 12px; }
.dispatch { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .dispatch { grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); align-items: start; } }
.crew-col { padding: 14px; display: flex; flex-direction: column; }
@media (min-width: 900px) { .crew-col { position: sticky; top: 76px; max-height: calc(100vh - 92px); } }
.crew-head, .jobs-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.crew-head h2, .jobs-head h2 { font-size: 22px; text-transform: uppercase; }
.crew-head .count { color: var(--muted); font-weight: 600; }
.crew-filters { display: grid; gap: 8px; margin-bottom: 10px; }
.crew-filters .row2 { gap: 8px; }
.crew-filters .input { min-height: 40px; padding: 8px 10px; font-size: 15px; }
.crew-list { overflow-y: auto; display: grid; gap: 6px; padding-right: 2px; max-height: 60vh; }
@media (min-width: 900px) { .crew-list { max-height: none; flex: 1; min-height: 0; } }
.crew-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 8px 9px 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: grab; user-select: none; }
.crew-row:hover { border-color: var(--line-2); background: #fcfbf9; }
.crew-row:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.crew-row.picked { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft) inset; background: var(--orange-soft); }
.crew-row.dragging { opacity: .45; }
.crew-row.is-out .avatar { opacity: .75; }
.crew-row .grip { color: var(--muted-2); font-size: 12px; letter-spacing: -2px; line-height: 40px; width: 10px; flex: none; }
.cr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-body b { font-size: 15px; line-height: 1.2; }
.cr-sub { font-size: 13px; color: var(--text); }
.cr-meta { font-size: 12px; color: var(--muted); }
.cr-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.cr-tags .tag { font-size: 12px; padding: 2px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cr-open { width: 30px; height: 30px; transform: rotate(180deg); }
.cr-open svg { width: 16px; height: 16px; }
.pick-bar { display: flex; align-items: center; gap: 8px; justify-content: space-between; background: var(--orange-soft); border: 1px solid #f4cfb5; color: var(--orange-ink); border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 8px; font-size: 14px; }
.jobs { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.job-card { background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s, transform .12s; }
.is-dragging .job-card { border-style: dashed; }
.is-dragging .job-card.match, .job-card.match { border-color: #9fd3b2; }
.job-card.over { border-color: var(--orange); border-style: solid; box-shadow: 0 0 0 4px var(--orange-soft); transform: translateY(-1px); }
.job-card.flash { border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.job-head { display: flex; gap: 10px; align-items: flex-start; }
.job-head > div { flex: 1; min-width: 0; }
.job-head h3 { font: 700 17px/1.2 var(--body); }
.job-head p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.job-ref { font: 600 12px var(--body); color: var(--muted); background: var(--paper); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.job-title { font-size: 14px; margin: 8px 0 6px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.job-tags .tag { font-size: 12px; padding: 2px 8px; }
.job-fill { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.job-meter { flex: 1; height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.job-meter i, .need-bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.job-meter.full i { background: var(--ok); }
.needs { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.needs li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 42px; gap: 8px; align-items: center; font-size: 13px; padding: 2px 6px; border-radius: 4px; }
.needs li b { text-align: right; font-weight: 700; }
.needs li.full b { color: #1d6b3d; }
.needs li.full .need-bar i { background: var(--ok); }
.needs li.match { background: var(--ok-soft); }
.need-bar { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.job-crew { list-style: none; padding: 8px 0 0; margin: 0 0 8px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.job-crew li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.job-crew li span:not(.avatar) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.job-crew li em { font-style: normal; font-size: 12px; color: var(--muted); }
.job-crew li.off em { color: #7a5512; }
.job-crew .icon-btn { width: 28px; height: 28px; }
.job-crew .icon-btn svg { width: 14px; height: 14px; }
.drop-hint { margin: 0; text-align: center; font-size: 13px; color: var(--muted-2); border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 8px; }
.job-card.over .drop-hint { color: var(--orange-ink); border-color: var(--orange); background: var(--orange-soft); }
.btn-block { width: 100%; }

/* ---------- assignment history and grades ---------- */
.asg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.asg-list > li { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; border-top: 1px solid var(--line); }
.asg-list > li:first-child { border-top: 0; padding-top: 0; }
.asg-body { flex: 1; min-width: 0; }
.asg-body h3 { font: 700 16px/1.25 var(--body); }
.asg-body h3 .tag { font-size: 11px; padding: 1px 7px; vertical-align: 2px; }
.asg-body .co { font-size: 14px; }
.asg-body .when { font-size: 13px; color: var(--muted); }
.grades { display: flex; gap: 14px; align-items: center; margin-top: 10px; background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; }
.grades dl { flex: 1; margin: 0; display: grid; gap: 5px; min-width: 0; }
.grades dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: 13px; }
.grades dt { color: var(--muted); font-weight: 600; }
.grades dd { display: contents; }
.grades dd b { text-align: right; }
.g-bar { height: 7px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.g-bar i { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.g-bar.hi i { background: var(--ok); } .g-bar.lo i { background: var(--warn); }
.grade-big { flex: none; width: 62px; height: 62px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; border: 3px solid var(--blue); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.grade-big b { font: 700 24px/1 var(--head); color: var(--text); }
.grade-big.hi { border-color: var(--ok); } .grade-big.lo { border-color: var(--warn); }
.grade-avg { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.grade-avg b { font: 700 22px/1 var(--head); color: var(--blue); }
.grade-avg.hi b { color: var(--ok); } .grade-avg.lo b { color: var(--warn); }
.grade-tag { background: var(--blue-soft); color: #1d4f86; border-color: #c9dbef; }
.grade-tag.hi { background: var(--ok-soft); color: #1d6b3d; border-color: #bfe3cc; }
.grade-tag.lo { background: var(--warn-soft); color: #7a5512; border-color: #ecd59d; }
.g-note { font-size: 14px; color: var(--text); margin: 8px 0 0; font-style: italic; }
.g-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.g-foot small { color: var(--muted); font-size: 12px; }
.grade-input { display: flex !important; align-items: center; gap: 12px; width: 100%; margin: 4px 0 0; }
.grade-input input[type=range] { flex: 1; min-width: 0; width: 100%; accent-color: var(--orange); height: 32px; margin: 0; }
.grade-input output { width: 40px; text-align: right; font: 700 22px var(--head); }
@media (max-width: 480px) { .asg-list .co-mark { display: none; } .grades { gap: 10px; padding: 10px; } .grade-big { width: 54px; height: 54px; font-size: 8px; letter-spacing: 0; } .grade-big b { font-size: 20px; } .grades dl > div { grid-template-columns: 76px minmax(0, 1fr) 24px; gap: 6px; font-size: 12px; } }

/* ---------- phone: dispatch board, stats strip ---------- */
.pane-switch { display: none; }
.pick-bar-jobs { display: none; }
.crew-more { display: block; margin: -2px 0 8px; }
@media (max-width: 899px) {
  .pane-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paper-2); border-radius: 99px; padding: 4px; margin-bottom: 12px; }
  .pane-switch button { border: 0; background: transparent; border-radius: 99px; padding: 9px 10px; font: 700 15px var(--body); color: var(--muted); cursor: pointer; }
  .pane-switch button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
  .pane-switch span { font-weight: 600; color: var(--muted); margin-left: 4px; }
  .dispatch.pane-crew .jobs-col, .dispatch.pane-jobs .crew-col { display: none; }
  .crew-list { max-height: none; overflow: visible; }
  .pick-bar-jobs { display: flex; position: sticky; top: 64px; z-index: 5; box-shadow: var(--shadow); }
}
@media (hover: none) { .crew-row { cursor: pointer; } .crew-row .grip { display: none; } }
@media (max-width: 719px) {
  .stats { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: 0 0 auto; min-width: 112px; padding: 9px 12px; scroll-snap-align: start; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 11px; white-space: nowrap; }
  .staff-head h1 { font-size: 34px; }
}

/* ---------- dispatch queue: wide crew rows, on-site vs queued, worker preview ---------- */
.crew-tip { margin-left: auto; }
.crew-filters { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .crew-filters { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); } }
.crew-row { align-items: center; padding: 10px 10px 10px 4px; gap: 12px; }
.cr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cr-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.cr-top b { font-size: 16px; white-space: nowrap; }
.cr-head { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 160px; }
.cr-facts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--text); }
.cr-facts span { display: inline-flex; align-items: center; gap: 3px; }
.cr-facts svg { width: 13px; height: 13px; color: var(--muted); }
.cr-tags { margin-top: 3px; align-items: center; }
.card-chip svg { width: 11px; height: 11px; color: var(--ok); }
.card-chip.unver { border-style: dashed; color: var(--muted); }
.cr-last { font-size: 12px; color: var(--muted); margin-left: 2px; white-space: nowrap; }
.cr-grade { flex: none; }
.grade-mini { width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 8px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fff; }
.grade-mini b { font: 700 18px/1 var(--head); color: var(--text); }
.grade-mini.hi { border-color: var(--ok); } .grade-mini.lo { border-color: var(--warn); }
.grade-mini.none { border-color: var(--line-2); border-style: dashed; }
.grade-mini.none b { font-size: 13px; color: var(--muted); }
.grade-mini.sm { width: 36px; height: 36px; border-width: 2px; } .grade-mini.sm b { font-size: 15px; }
.job-meter, .need-bar { display: flex; }
.job-meter i, .need-bar i { flex: none; border-radius: 0; }
.job-meter i.d, .need-bar i.d { background: var(--blue); }
.job-meter i.q, .need-bar i.q { background: repeating-linear-gradient(135deg, var(--orange) 0 4px, var(--orange-hi) 4px 8px); }
.needs li.full .need-bar i.d { background: var(--blue); }
.job-fill { flex-wrap: wrap; }
.job-fill > span:first-child { font-size: 13px; color: var(--muted); }
.job-fill b { color: var(--text); }
.job-fill .job-meter { flex: 1 1 120px; }
.jc-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 4px; }
.jc-label span { background: var(--orange); color: #1a0d04; border-radius: 99px; padding: 1px 7px; margin-left: 4px; letter-spacing: 0; }
.job-crew { border-top: 0; padding-top: 0; }
.job-crew.queue li { background: var(--orange-soft); border-radius: var(--r-sm); padding: 3px 4px 3px 6px; }
.jc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; background: none; border: 0; padding: 0; text-align: left; font: 600 14px var(--body); color: var(--text); cursor: pointer; }
.jc-name:hover { color: var(--orange-ink); }
.jc-name em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.job-crew li.off .jc-name em { color: #7a5512; }
/* preview */
.modal.preview { max-width: 780px; }
.pv-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.pv-top h3 { font: 700 24px/1.15 var(--body); }
.pv-head { margin: 2px 0 4px; font-size: 15px; }
.pv-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.pv-meta svg { width: 14px; height: 14px; }
.pv-tags, .pv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pv-chips { margin-top: 8px; }
.pv-note { font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.pv-grid { display: grid; gap: 16px 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pv-grid { grid-template-columns: 1fr 1fr; } }
.pv-grid h4 { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.pv-list, .pv-jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.pv-list .tag { font-size: 11px; padding: 1px 7px; }
.pv-jobs li { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.pv-jobs li div { min-width: 0; display: flex; flex-direction: column; }
.pv-jobs small { color: var(--muted); font-size: 12px; }
.pv-grid .kv { font-size: 14px; }
.pv-contact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin: 16px 0 0; }
.pv-contact svg { width: 14px; height: 14px; }
.pv-foot { flex-wrap: wrap; }
.pv-foot .btn-ghost:first-child { margin-right: auto; }
.pv-onsite { font-size: 14px; color: #1d4f86; align-self: center; }
@media (max-width: 560px) { .pv-top .avatar-lg { width: 56px; height: 56px; font-size: 20px; } .pv-top h3 { font-size: 20px; } .pv-foot .btn { flex: 1 1 auto; } .crew-row .avatar-md { width: 44px; height: 44px; } .cr-last { display: none; } }
.crew-list { grid-template-columns: minmax(0, 1fr); }
.crew-row, .cr-facts span { min-width: 0; }
.cr-facts span { display: inline; } .cr-facts svg { vertical-align: -2px; margin-right: 3px; }
.pv-meta { display: block; } .pv-meta svg { vertical-align: -2px; margin-right: 3px; }
.grade-help { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 1px; }
