/* SYS-06 Employer Agent Portal · one look (SYS-06 § 10).
   Colours, type and parts come from the locked mockup's own stylesheet
   (05_Temporary/Day_2026-11-01/portal_mockup_v2/src/portal_mockup.src.html), so the screens match it.
   Brand: navy #1B2E4A, gold #D4A024, cream (BRAND.md § Colors); Playfair Display + Inter on screens, Carlito in her tables. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600 700; font-style: normal; font-display: swap; src: url(../fonts/Inter-Bold.woff2) format("woff2"); }
@font-face { font-family: "Carlito"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/Carlito-Regular.woff2) format("woff2"); }
@font-face { font-family: "Carlito"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/Carlito-Bold.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/PlayfairDisplay-Bold.woff2) format("woff2"); }

:root {
  --navy: #1B2E4A; --navy-deep: #0F1B30; --navy-hover: #2C4374;
  --gold: #D4A024; --gold-ink: #8A6508; --cream: #FAF7EE; --panel: #F5F7FA; --white: #FFFFFF;
  --body: #3D4A5C; --muted: #54606E; --rule: rgba(27,46,74,.12); --rule-on-navy: rgba(255,255,255,.16);
  --ok: #2F6B45; --ok-bg: #E6F1EA; --warn: #7A5300; --warn-bg: #FBF1D9; --todo: #1B2E4A; --todo-bg: #E9EEF5; --wait: #54606E; --wait-bg: #EEF0F3;
  --typed: #B3261E;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --table: "Carlito", Calibri, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--panel); color: var(--body); font-family: var(--text); font-size: 16px; line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); font-weight: 700; margin: 0; text-wrap: balance; line-height: 1.15; }
p { margin: 0; }
a { color: var(--navy); }
button, .btn, input, textarea, select { font-family: var(--text); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
table { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main { padding-bottom: 72px; }

/* test copy ribbon (the mockup's sample ribbon) */
.sample { background: var(--gold); color: var(--navy); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 5px 12px; }

/* app bar */
.bar { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 24px; padding: 0 32px; height: 72px; }
.bar img { height: 44px; width: auto; display: block; }
.bar .grow { flex: 1; }
.bar nav { display: flex; gap: 6px; }
.bar nav a { color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.bar nav a.cur { background: rgba(255,255,255,.1); color: #fff; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cream); }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold); background: var(--navy-hover); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.linklike { background: none; border: 0; color: var(--cream); font-size: 13px; margin-left: 8px; text-decoration: underline; cursor: pointer; padding: 4px 2px; min-height: 24px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 32px 0; }
.wrap.wide { max-width: 1340px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.head { display: flex; align-items: flex-end; gap: 12px 16px; margin-bottom: 24px; flex-wrap: wrap; }
.head h1 { font-size: 34px; }
.head .grow { flex: 1; min-width: 260px; }
.head p { color: var(--muted); margin-top: 6px; max-width: 44em; }
.loading { color: var(--muted); }
.errline { color: var(--typed); font-weight: 700; font-size: 14px; }
.note-line { min-height: 1.4em; font-size: 14px; color: var(--body); margin: -12px 0 12px; }
.note-line.ok { color: var(--ok); font-weight: 600; }
.note-line.bad { color: var(--typed); font-weight: 700; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 12px 20px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1; min-height: 40px; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--rule); }
.btn.sm { padding: 8px 12px; font-size: 14px; min-height: 32px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.btnrow { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.btnrow.end { justify-content: flex-end; }

/* status pills: the four status words */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-needed { color: var(--todo); background: var(--todo-bg); }
.st-check { color: var(--warn); background: var(--warn-bg); }
.st-done { color: var(--ok); background: var(--ok-bg); }
.st-wait { color: var(--wait); background: var(--wait-bg); }

/* home: find, chips, the client list */
.findrow { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.find { max-width: 420px; }
.sel { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid rgba(27,46,74,.22); border-radius: 999px; padding: 6px 12px; font-size: 14px; background: #fff; color: var(--navy); cursor: pointer; min-height: 32px; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip:disabled { opacity: .5; cursor: default; }
input.real, textarea.real { font: inherit; color: var(--navy); border: 1px solid rgba(27,46,74,.32); border-radius: 8px; padding: 10px 12px; width: 100%; background: #fff; }
textarea.real { resize: vertical; line-height: 1.45; }
.clients { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.clients th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--rule); }
.clients td { padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.clients tr:last-child td { border-bottom: 0; }
.clients a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.clients a:hover { text-decoration: underline; }
.clients td.empty { color: var(--muted); text-align: center; padding: 28px 16px; }
.logo-chip { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; margin-right: 10px; vertical-align: middle; font-family: var(--display); flex: none; }
.logo-chip.pic { object-fit: contain; background: #fff; border: 1px solid var(--rule); }
.logo-chip.big { width: 56px; height: 56px; font-size: 20px; border-radius: 12px; margin: 0; }
.client-head { display: flex; gap: 16px; align-items: center; }

/* dialogs */
dialog { border: 0; border-radius: 16px; padding: 28px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 48px rgba(15,27,48,.35); color: var(--body); }
dialog::backdrop { background: rgba(15,27,48,.45); }
dialog h2 { font-size: 26px; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 24px; }
.fields .full { grid-column: 1 / -1; }
.f label, .f legend, .lbl2 { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
fieldset.f { border: 0; padding: 0; margin: 0; }
.radio { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; font-size: 15px !important; color: var(--body) !important; margin: 6px 0 !important; }
.formerr { min-height: 1.4em; color: var(--typed); font-weight: 700; font-size: 14px; margin-top: 10px; }

/* a client's page: the task list */
.year { display: flex; align-items: baseline; gap: 12px; margin: 32px 0 12px; }
.year h2 { font-size: 24px; }
.year span { color: var(--muted); font-size: 14px; }
.joblist { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.joblist li { border-bottom: 1px solid var(--rule); }
.joblist li:last-child { border-bottom: 0; }
.joblist a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; color: var(--body); }
.joblist a:hover { background: var(--panel); }
.joblist a > div, .norow > div { flex: 1; min-width: 0; }
.joblist b { display: block; font-family: var(--display); font-size: 19px; color: var(--navy); }
.joblist span { font-size: 13.5px; color: var(--muted); }
.joblist li.next { box-shadow: inset 4px 0 0 var(--gold); background: #FFFCF3; }
.nextup { background: var(--gold); color: var(--navy) !important; font-weight: 700; font-size: 12px !important; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; }
.norow { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--body); }

/* sign in */
.signin { min-height: calc(100vh - 30px); display: grid; place-items: center; padding: 48px 16px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-hover) 100%); }
.signin .box { background: #fff; border-radius: 16px; box-shadow: 0 24px 48px rgba(15,27,48,.35); padding: 40px; width: min(440px, 100%); }
.signin-logo { height: 96px; max-width: 100%; object-fit: contain; display: block; margin: 0 auto 20px; }
.signin h1 { font-size: 28px; text-align: center; }
.signin p.s { text-align: center; color: var(--muted); font-size: 14.5px; margin: 6px 0 24px; }
.signin form { display: grid; gap: 14px; }
.signin label { font-size: 13px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; }
.signin .btn { justify-content: center; width: 100%; margin-top: 6px; }
.signin .fine { font-size: 13px; color: var(--muted); text-align: center; margin-top: 16px; }

/* the job screen: pages list left, the document middle, settings right */
.jhead { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.jhead h1 { font-size: 32px; }
.jhead .grow { flex: 1; }
.vers { display: flex; gap: 4px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 4px; margin-left: 12px; flex-wrap: wrap; }
.vers a { font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 7px; }
.vers a.cur { background: var(--navy); color: #fff; }
.savest { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); font-weight: 600; max-width: 30em; }
.savest::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.savest:empty::before { display: none; }
.savest.busy { color: var(--muted); }
.savest.bad { color: var(--typed); font-weight: 700; }
.ur { display: inline-flex; gap: 4px; }
.ur button { font: inherit; font-size: 13px; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; cursor: pointer; min-height: 32px; }
.ur button:disabled { opacity: .45; cursor: default; }
#job-buttons { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn .cnt { background: var(--navy); color: #fff; font-size: 11.5px; border-radius: 999px; padding: 3px 8px; margin-left: 4px; }
.markdone.done { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.pdfwrap { position: relative; display: inline-block; }
.pdfmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 28px rgba(27,46,74,.18); padding: 12px; width: 250px; display: flex; flex-direction: column; gap: 8px; }
.pdfmenu[hidden] { display: none; }
.pdfmenu b { color: var(--navy); font-size: 14px; }
.pdfmenu small { font-size: 12px; color: var(--muted); }
.robanner { background: var(--todo-bg); color: var(--navy); border-left: 4px solid var(--navy); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: -6px 0 16px; font-size: 14px; }
.errsum { border: 3px solid var(--typed); border-radius: 10px; background: #fff; padding: 12px 16px; margin: -4px 0 16px; color: var(--body); }
.errsum b { color: var(--typed); font-size: 16px; }
.errsum ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }

.job3 { display: grid; grid-template-columns: 250px minmax(0,1fr) 290px; gap: 20px; align-items: start; }
.lp, .rp { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 16px; position: sticky; top: 12px; }
.lp h4, .rp h4 { font-family: var(--text); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 16px 0 8px; }
.lp h4:first-child { margin-top: 0; }
.drop { border: 2px dashed rgba(27,46,74,.28); border-radius: 10px; background: #fff; padding: 14px; text-align: left; }
.drop b { display: block; color: var(--navy); font-size: 14px; }
.drop span { display: block; font-size: 12.5px; color: var(--muted); }
.drop.disabled { background: var(--panel); }
.plist-empty { font-size: 13px; color: var(--muted); }
.miss { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--warn); }
.miss.done { color: var(--ok); list-style: none; padding-left: 0; }
.seclist { list-style: none; margin: 0; padding: 0; }
.seclist li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--navy); font-weight: 600; padding: 8px; border-radius: 8px; cursor: pointer; min-height: 32px; }
.seclist li:hover { background: var(--panel); }
.seclist li.on { background: var(--todo-bg); }
.seclist .grip { color: var(--muted); cursor: grab; }
.pagebtn { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; min-height: 24px; }
.pswitch { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 24px; background: none; border: 0; padding: 0 2px; font-family: var(--text); }
.pswitch:disabled { cursor: default; opacity: .6; }
.pswitch i { width: 26px; height: 15px; border-radius: 999px; background: #6B7686; position: relative; transition: background .15s; }
.pswitch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left .15s; }
.pswitch.on { color: var(--navy); }
.pswitch.on i { background: var(--ok); }
.pswitch.on i::after { left: 13px; }
.saved { font-size: 12.5px; color: var(--body); background: var(--cream); border-radius: 8px; padding: 8px 10px; margin-top: 14px; }
.rp h3 { font-size: 19px; margin: 4px 0 10px; }
.rp h3.sub3 { font-size: 16px; margin-top: 18px; }
.movebar { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.movebar button { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--navy); background: var(--panel); border: 1px solid var(--rule); border-radius: 7px; padding: 5px 8px; cursor: pointer; min-height: 28px; }
.movebar button:disabled { opacity: .45; cursor: default; }
.note-s { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.notes-box { min-height: 200px; }
.job-screen.ro .lp, .job-screen.ro .rp, .job-screen.ro .ur { opacity: .55; }
.job-screen.ro .notes-box { background: var(--panel); }

/* the document, as it prints: letter pages, shrunk to fit */
.docs { background: #E7EAF0; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; min-width: 0; overflow-x: auto; }
.pg-wrap { cursor: pointer; border-radius: 4px; outline: 3px solid transparent; outline-offset: 4px; transition: outline-color .15s; }
.pg-wrap:hover { outline-color: rgba(212,160,36,.45); }
.pg-wrap.sel { outline-color: var(--gold); }
.pg-wrap.off { opacity: .55; }
.pg-scale { width: 640px; height: 828px; overflow: hidden; }
.pg-scale > .sheet { transform: scale(0.78431); transform-origin: 0 0; }

/* One letter page: 8.5 × 11 in. The footer sits in the bottom 0.55 in, where print puts it in the page margin. */
.sheet { width: 8.5in; height: 11in; background: #fff; box-shadow: 0 12px 32px rgba(27,46,74,.18); position: relative; display: flex; flex-direction: column; font-size: 14px; line-height: 1.45; color: var(--body); overflow: hidden; }
.sheet .hb { background: var(--navy); display: flex; align-items: center; justify-content: space-between; padding: 20px 36px 18px; border-bottom: 4px solid var(--gold); flex: none; }
.sheet .hb .k { font-size: 10.8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.sheet .hb h4 { color: #fff; font-size: 24px; margin-top: 4px; }
.sheet .hb img { height: 38px; width: auto; }
.sheet .bd { flex: 1; padding: 23px 36px 0; overflow: hidden; min-height: 0; }
.sheet .ft { height: 0.55in; flex: none; display: flex; justify-content: space-between; border-top: 1px solid var(--rule); margin: 0 36px; padding: 10px 0 0; font-size: 10.8px; color: var(--muted); }
.sheet .ft b { color: var(--navy); }
.notes-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }

/* print: only the printed pages */
#print-root { display: none; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  #print-root .sheet { width: 8.5in; height: 10.45in; box-shadow: none; transform: none; break-after: page; }
  #print-root .sheet:last-child { break-after: auto; }
  #print-root .sheet .ft { display: none; }
  #print-root.draft .sheet::after { content: "DRAFT"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-family: var(--text); font-weight: 700; font-size: 150px; letter-spacing: .1em; color: rgba(179,38,30,.16); pointer-events: none; }
}

@media (max-width: 1100px) {
  .job3 { grid-template-columns: 1fr; }
  .lp, .rp { position: static; }
}
@media (max-width: 760px) {
  .bar { padding: 0 16px; gap: 12px; }
  .bar img { height: 34px; }
  .wrap { padding: 24px 16px 0; }
  .pg-scale { width: 320px; height: 414px; }
  .pg-scale > .sheet { transform: scale(0.39216); }
  .fields { grid-template-columns: 1fr; }
}
