:root {
  --bg: #0a0d12;            /* SLATE's own ground and accent: one look across SLATE, alphaBridge and this portal */
  --fg: #e8eaed;
  --muted: #9aa0a6;
  --line: #2a2d33;
  --accent: #6cb6e8;
  --err: #ff6b6b;
  --warn: #d9a441;
  --t2: #1a1d23;
  --t3: #23262d;
}

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.top {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.logo { font-weight: 700; letter-spacing: 0.02em; }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.progress {
  display: flex;
  flex-wrap: nowrap;          /* one row: only the current step carries its name */
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.pstep {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--t2);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

/* ONE row, always: the step you're on shows its name, the others their number
   (same-size discs; the name is in the tooltip). No orphaned chip on a 2nd row. */
.pstep { min-width: 28px; justify-content: center; white-space: nowrap; }
.pstep span { display: inline; }
.pstep:not(.now) span { display: none; }
.pstep.done { background: var(--t3); color: var(--fg); }
.pstep.now { outline: 1px solid var(--accent); color: var(--fg); }

h1 { font-size: 22px; margin: 8px 0 4px; }
.blurb { color: var(--muted); margin: 0 0 16px; }

.card {
  border: 1px solid var(--line);
  background: var(--t2);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
}
.cards { list-style: none; margin: 0; padding: 0; }
.clause h2 { font-size: 15px; margin: 8px 0 4px; }

.note { border-color: var(--accent); }
.ok { color: #5fbf77; }

.draft-banner {
  background: rgba(217, 164, 65, 0.15);
  color: var(--warn);
  border: 1px solid var(--warn);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field em { color: var(--err); font-style: normal; }

.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=url], .field input[type=number], .field input[type=date],
.field input[type=password],
.field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--t2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font-size: 15px;
}

/* A box the browser filled in keeps the page's own look (Chrome paints it
   pale blue otherwise — a light box in a dark form). */
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus,
.field select:-webkit-autofill, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--t2) inset;
  box-shadow: 0 0 0 1000px var(--t2) inset;
  caret-color: var(--fg);
}
.field input:autofill, .field select:autofill, .field textarea:autofill { background-color: var(--t2); color: var(--fg); }

/* ticks and radio dots in the page's accent, not the browser's own blue */
.field input[type=checkbox], .field input[type=radio] { accent-color: var(--accent); }

.field small { display: block; color: var(--muted); margin-top: 4px; }

.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--err); }

.lock {
  display: inline-block;
  background: var(--t3);
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  margin-left: 6px;
  vertical-align: middle;
}

.err { color: var(--err); font-size: 13px; margin-top: 4px; }

.checks { display: flex; flex-direction: column; gap: 8px; }
.ck { display: flex; align-items: center; gap: 8px; font-weight: 400; }
/* .field label / .field input[type=number] out-rank the two rules above: each tick row is
   one line, its years box small and at the right edge. */
.field label.ck { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.field .ck input.yrs { width: 80px; margin-left: auto; padding: 6px 8px; }

.levels { width: 100%; border-collapse: collapse; font-size: 13px; }
.levels th { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.levels td { padding: 4px; border-bottom: 1px solid var(--line); }
.levels label { display: flex; align-items: center; gap: 4px; font-weight: 400; }

.ranges .range { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ranges input[type=date] { flex: 1; }

.link {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  font-size: 14px;
  cursor: pointer;
}

.actions { margin-top: 24px; }

.btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #04121d;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

blockquote {
  border-left: 3px solid var(--line);
  margin: 12px 0;
  padding: 4px 12px;
  color: var(--muted);
}

@media (min-width: 480px) {
  .btn { width: auto; min-width: 220px; }
}

.guide h2 { font-size: 17px; margin: 24px 0 6px; }
.guide code { background: var(--t3); border-radius: 4px; padding: 1px 5px; font-size: 13px; }
.guide-fig { margin: 12px 0 16px; }
.guide-fig img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; display: block; }

/* "What you're best at": 1st / 2nd / 3rd sit together as one group. */
.field.rank { margin-bottom: 8px; }
.field.rank + .field:not(.rank) { margin-top: 20px; }
/* text links only — never a .btn (accent text on an accent button is a blank block) */
.guide a:not(.btn), .blurb a:not(.btn), .card a:not(.btn), .wrap p a:not(.btn) { color: var(--accent); }
a.btn { text-decoration: none; }
.guide a:hover, .blurb a:hover { text-decoration: none; }

/* Phones: only the step you're on shows its name — the others are their number
   (the name is the pill's title). The whole strip stays on one or two rows. */
@media (max-width: 480px) {
  .pstep:not(.now) span { display: none; }
}

/* The agreement: the full document, then the signature — spaced like a form. */
.fulldoc { margin: 16px 0 24px; }
.sign { margin-top: 8px; }
.sign .docver { display: block; color: var(--muted); margin-top: 8px; }

/* Two boxes under one label ("between … and …"). */
.pair { display: flex; align-items: center; gap: 10px; }
.field .pair input { flex: 1 1 0; min-width: 0; }
.pair-word { color: var(--muted); }

/* An answer carried from its own screen (Getting paid: the country). */
.fixed { margin: 0 0 16px; color: var(--muted); }
.fixed strong { color: var(--fg); }

/* ---- /work: the phone view of a freelancer's own work (2026-10-03) ----
   SLATE's ground, accent and status colours (models.status_menu_list);
   read-only, one column at phone width. */
.top { gap: 12px; flex-wrap: wrap; }
.worknav { display: flex; gap: 4px; margin-left: auto; }
.worknav a { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.worknav a.on { color: var(--fg); background: var(--t3); }
.signout { margin: 0; }
.signout .link { font-size: 13px; color: var(--muted); }
.wh { font-size: 15px; margin: 22px 0 8px; color: var(--fg); }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: 12px; }
.crumb { margin: 12px 0 0; font-size: 13px; }
.crumb a:not(.btn) { color: var(--accent); }
.workerr { border-color: var(--err); color: var(--fg); }
.wcard { display: block; text-decoration: none; color: var(--fg); border: 1px solid var(--line);
         background: var(--t2); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.wcard-top { display: block; }
.wcard-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wcard-why { display: block; margin-top: 6px; color: var(--warn); font-size: 13px; }
.chip { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 12px; background: var(--t3);
        color: var(--fg); border: 1px solid var(--line); white-space: nowrap; }
.chip.due.overdue { border-color: var(--err); color: var(--err); }
.chip.money { color: var(--accent); }
.chip.brief, .chip.unread { border-color: var(--accent); }
.chip.flag { border-color: var(--warn); color: var(--warn); }
.chip.pay-paid { border-color: #6ce062; color: #6ce062; }
.chip.pay-issued { border-color: var(--accent); color: var(--accent); }
.chip.pay-open { color: var(--muted); }
/* SLATE's status colours, as the left edge of the chip */
.chip[class*=" st-"] { border-left-width: 4px; }
.st-pending { border-left-color: #2f86d4; } .st-in_progress { border-left-color: #29b3f2; }
.st-noted { border-left-color: #e08e3c; } .st-approved { border-left-color: #6ce062; }
.st-assets_available { border-left-color: #a857c6; } .st-awaiting_assets { border-left-color: #1bb8cf; }
.st-awaiting_plates { border-left-color: #5f9b92; } .st-could_be_better { border-left-color: #a64d74; }
.st-delivered { border-left-color: #1fa64a; } .st-ext_vendor { border-left-color: #d68f48; }
.st-handed_over { border-left-color: #7d8fa8; } .st-int_approved { border-left-color: #3a8c3c; }
.st-omitted { border-left-color: #8a8a8a; } .st-on_hold { border-left-color: #6b5d52; }
.st-pending_review { border-left-color: #e4d119; } .st-sent_ext_approval { border-left-color: #4aa64e; }
.st-superseded { border-left-color: var(--line); color: var(--muted); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.wnote.unread { border-color: var(--accent); }
img.drawn { display: block; max-width: 100%; height: auto; margin-top: 8px; border-radius: 6px; border: 1px solid var(--line); }
.vlist { display: flex; flex-direction: column; gap: 6px; }
.vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line);
        border-radius: 8px; color: var(--fg); text-decoration: none; background: var(--t2); }
.vrow.on { border-color: var(--accent); }
.player { margin: 12px 0; }
video.work-movie { display: block; width: 100%; max-height: 60vh; background: #000; border-radius: 8px; cursor: pointer; }
.player-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.player-bar .scrub { flex: 1; accent-color: var(--accent); }
.ptime { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; min-width: 40px; text-align: right; }
.paymonth { margin-bottom: 8px; }
.payrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0;
          border-bottom: 1px solid var(--line); }
.payrow .payhist { display: block; }
.payamt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.paytotal { font-weight: 600; border-bottom: none; }
.paymonth a:not(.btn), .wrap .card a:not(.btn) { color: var(--accent); }

/* ---- /work task page: Library elements (plan 2026-10-05 Task 4) ----
   A grid of tiles that fits a 375 px phone (two columns) and never pushes the
   page sideways; blue = the action (Download / Request), amber = waiting
   (Requested); the preview opens over the page with its own Close. */
.els { margin-top: 8px; }
.ellic { margin: 0 0 4px; }
.elbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.elbar .elfind { flex: 1 1 180px; min-width: 0; padding: 8px 10px; background: var(--t2); color: var(--fg);
                 border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.elbar .elonly { flex: 0 1 auto; min-width: 0; max-width: 100%; padding: 8px 10px; background: var(--t2);
                 color: var(--fg); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.elsec-h { font-size: 14px; margin: 18px 0 8px; overflow-wrap: anywhere; }
.elcount { font-weight: 400; font-size: 12px; }
.elgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.eltile { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line);
          border-radius: 8px; background: var(--t2); }
.elthumb { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9;
           background: #000; border-radius: 6px; overflow: hidden; }
.elthumb.canplay { cursor: pointer; }
.elthumb.canplay:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.elthumb.nopic { background: var(--t3); }
.elcell { display: flex; align-items: center; justify-content: center; background-repeat: no-repeat; }
.elname { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elmeta { overflow-wrap: anywhere; min-height: 1.5em; }
.elact { margin-top: auto; }
.elbtn { display: block; width: 100%; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
         cursor: pointer; border: 1px solid var(--accent); background: transparent; color: var(--accent); }
.elbtn.primary { background: var(--accent); color: #04121d; }
.elbtn.outline { background: transparent; color: var(--accent); }
.elbtn.wait { border-color: var(--warn); color: var(--warn); background: rgba(217, 164, 65, 0.12); cursor: default; }
.elbtn.done { border-color: var(--line); color: var(--muted); cursor: default; }
.elbtn:disabled:not(.wait):not(.done) { opacity: 0.6; cursor: default; }
.elstate { margin: 0; overflow-wrap: anywhere; }
.elstate.no { color: var(--warn); }
.elstate.gone { color: var(--muted); }
.elmsg { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.elmsg:empty { display: none; }
.elmsg.bad { color: var(--err); }
.elmore { margin: 8px 0 0; font-size: 13px; }
.elerr { margin: 8px 0; }
.els-body > .elbtn { width: auto; min-width: 160px; }
.elmodal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
           padding: 16px; background: rgba(0, 0, 0, 0.78); }
.elmodal[hidden] { display: none; }
.elmodal-box { width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow: auto; background: var(--t2);
               border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.elmodal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.elmodal-name { min-width: 0; overflow-wrap: anywhere; }
.elmodal-video { display: block; width: 100%; max-height: 60vh; background: #000; border-radius: 6px; cursor: pointer; }
.elmodal-meta { margin: 8px 0; }
.elmodal-act .elbtn { width: auto; min-width: 160px; }
body.elmodal-open { overflow: hidden; }

/* Show / hide password: the eye sits inside the box's right edge (pw.js). */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--fg); }
.pw-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pw-eye svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Get alphaBridge (_get_app.html): with both downloads on show (a phone, an
   unknown computer) the "On a Mac instead?" switch has nothing to switch. */
.getapp[data-os="mobile"] .getapp-switch, .getapp[data-os="other"] .getapp-switch { display: none; }
.getapp h3 { font-size: 15px; margin: 18px 0 8px; }
