/* enCompliance client app -- base styles.
   Palette and type taken from the "enCompliance Client App" mockup canvas
   (Main + Dashboard artboards). Mobile-first: phone layout is the default,
   wider screens only get a centred max-width column. */
:root {
  --ink: #111318;        /* text, primary buttons, state chips */
  --ink-2: #3D4250;      /* body text on tinted panels */
  --muted: #5B6170;      /* secondary text */
  --line: #E3E5EA;       /* card borders, header rule */
  --line-2: #C9CDD6;     /* input borders */
  --ground: #F4F5F7;     /* page background */
  --surface: #FFFFFF;
  --link: #1668C0;
  --link-hover: #0F4F94;
  --warn-bg: #FFF4D6;  --warn: #8A5A00;
  --alert-bg: #FFE9E5; --alert: #B42A17;
  --info-bg: #E6F1FD;  --info: #0F4F94;
  /* Brand stripe (logo bars) */
  --b-red: #FD4F37; --b-blue: #2894EF; --b-yellow: #FFC643; --b-green: #26CB4B;
  --radius: 14px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* Outfit, self-hosted (SIL OFL 1.1, static/fonts/OFL.txt). One variable
   file per subset covers weights 400-700. Same unicode ranges Google serves. */
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font);
       font-size: 16px; line-height: 1.45; }
a { color: var(--link); } a:hover { color: var(--link-hover); }

.stripe { display: flex; height: 4px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--b-red); }
.stripe span:nth-child(2) { background: var(--b-blue); }
.stripe span:nth-child(3) { background: var(--b-yellow); }
.stripe span:nth-child(4) { background: var(--b-green); }

.topbar { display: flex; align-items: center; justify-content: space-between;
          padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar img { height: 30px; width: auto; display: block; }
.topbar .product { font-size: 12px; font-weight: 600; letter-spacing: .14em;
                   text-transform: uppercase; color: var(--muted); }

main.page { padding: 20px; display: flex; flex-direction: column; gap: 16px;
            max-width: 720px; margin: 0 auto; }
.eyebrow { margin: 0; font-size: 14px; color: var(--muted); }
h1 { margin: 4px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 16px; font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.note { padding: 14px 16px; border-radius: 12px; background: var(--ground);
        font-size: 14px; color: var(--ink-2); }
.btn { display: flex; align-items: center; justify-content: center; min-height: 52px;
       border-radius: 12px; background: var(--ink); color: #fff; font-size: 16px;
       font-weight: 600; text-decoration: none; padding: 0 20px; }
.btn:hover { color: #fff; background: #000; }

footer.foot { padding: 20px 28px 28px; display: flex; justify-content: center; gap: 16px;
              font-size: 13px; color: var(--muted); }

.topbar .right { display: flex; align-items: center; gap: 12px; }
.linkbtn { min-height: 44px; padding: 0 14px; border: 1px solid #D5D8DF; border-radius: 22px;
           background: var(--surface); color: var(--ink); font: 600 14px var(--font); cursor: pointer; }
.linkbtn:hover { border-color: var(--ink); }
.inline { margin: 0; }

/* Sign-in / set-password: the mockup's "Sign in" artboard. White ground,
   6px stripe, centred logo, single column. */
body.auth { background: var(--surface); }
body.auth .stripe { height: 6px; }
.auth-main { padding: 64px 28px 32px; display: flex; flex-direction: column; gap: 28px;
             max-width: 440px; margin: 0 auto; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.brand img { width: 200px; height: auto; }
.brand p { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em;
           text-transform: uppercase; color: var(--muted); }
.heading { display: flex; flex-direction: column; gap: 6px; }
.heading h1 { margin: 0; }
.heading p { margin: 0; font-size: 15px; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
               font: 400 16px var(--font); color: var(--ink); background: var(--surface); width: 100%; }
.field input:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
button.btn { border: 0; cursor: pointer; width: 100%; margin-top: 6px; font-family: var(--font); }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.msg.error { background: var(--alert-bg); color: var(--alert); font-weight: 600; }
.msg.ok { background: var(--info-bg); color: var(--info); font-weight: 600; }
/* The result of an action stays in view when the page lands on an anchor
   (#st-XX, #offboarding...): sticky at the top, and anchor targets stop
   below it. */
main.page > p.msg { position: sticky; top: 8px; z-index: 5; box-shadow: 0 4px 14px rgba(17, 19, 24, .12); }
[id^="st-"], #st, #offboarding, #pending { scroll-margin-top: 72px; }

/* Admin screens -- the mockup's "Admin: client users" artboard. */
.topbar .left { display: flex; align-items: center; gap: 10px; }
.badge { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: #fff;
         font-size: 12px; font-weight: 700; letter-spacing: .06em; display: inline-flex; align-items: center; }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn.secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn.danger { background: var(--alert); }
.btn.danger:hover { background: #8F1F10; }
.filter { display: flex; gap: 8px; align-items: flex-end; }
.filter .field { flex: 1; }
/* Every <select> in the app looks like the other inputs (Neo, 2026-10-07:
   "Notice received by" sat in .inline-form and missed the old .field rule). */
main.page select { height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
                   background: var(--surface); font: 400 16px var(--font); color: var(--ink); width: 100%; }
main.page .inline-form select { height: 48px; padding: 0 12px; }   /* = .inline-form input */
main.page select:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.filter .btn { min-height: 48px; width: auto; margin: 0; }
.field label.sub { font-size: 13px; color: var(--ink-2); }
fieldset.roles { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.roles legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.role-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-2);
            border-radius: 12px; cursor: pointer; }
.role-opt:has(input:checked) { border: 2px solid var(--ink); padding: 11px; }
.role-opt input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
.role-opt span.t { display: flex; flex-direction: column; gap: 2px; }
.role-opt b { font-size: 15px; font-weight: 600; }
.role-opt small { font-size: 13px; color: var(--muted); }
.list { padding: 4px 16px; gap: 0; }
.row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #EEF0F3;
       text-decoration: none; color: var(--ink); }
.row:last-child { border-bottom: 0; }
.row:hover { color: var(--ink); }
.row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .who b { font-size: 15px; font-weight: 600; }
.row .who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row .more { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #D5D8DF; flex-shrink: 0;
             display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.st { font-weight: 600; }
.st-invited { color: var(--warn); }
.st-locked, .st-deactivated { color: var(--alert); }
.st-active { color: #1B7A35; }
dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions form { margin: 0; }
.actions .btn { width: 100%; }
.linkbox { display: flex; flex-direction: column; gap: 8px; }
.linkbox input { height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px;
                 font: 400 14px var(--font); width: 100%; background: var(--ground); }
.empty { color: var(--muted); font-size: 14px; padding: 12px 0; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* "Show password" checkbox (static/password-toggle.js). The whole label is the
   touch target: at least 44px tall, box enlarged to 20px. */
.show-pw label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
                 font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer;
                 -webkit-tap-highlight-color: transparent; }
.show-pw input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.show-pw input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.show-pw[hidden] { display: none; }

/* Companies + Our states */
.count { display: inline-flex; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 12px;
         background: var(--ground); color: var(--ink); font-size: 13px; font-weight: 700;
         align-items: center; justify-content: center; }
.count.hot { background: var(--alert); color: #fff; }
.row .count { flex-shrink: 0; }
.qitem { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid #EEF0F3; }
.qitem:last-child { border-bottom: 0; }
.qitem .who { display: flex; flex-direction: column; gap: 2px; }
.qitem .who b { font-size: 15px; font-weight: 600; }
.qitem .who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.qitem form { margin: 0; }
.qitem .btn { width: 100%; }
.days { font-weight: 600; }
.qitem .who .days.urgent { color: var(--alert); }
details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer;
                  font-size: 14px; font-weight: 600; color: var(--link); }
.inline-form { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px; }
.inline-form input, .field input[type=date] { height: 48px; padding: 0 12px; border: 1px solid var(--line-2);
                      border-radius: 12px; font: 400 16px var(--font); width: 100%; background: var(--surface); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.statepick { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.statepick label { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px;
                   border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.statepick label:has(input:checked) { border: 2px solid var(--ink); padding: 0 7px; }
.statepick input { width: 18px; height: 18px; margin: 0; }
.pill { display: inline-flex; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 12px;
        font-weight: 700; align-items: center; vertical-align: middle; background: #EEF0F3; color: var(--ink); }
.pill-requested { background: var(--warn-bg); color: var(--warn); }
.pill-onboarding { background: var(--info-bg); color: var(--info); }
.pill-live { background: #E3F6E8; color: #1B7A35; }
.pill-offboarding { background: var(--alert-bg); color: var(--alert); }
.pill-offboarded { background: #EEF0F3; color: var(--muted); }
.role-opt.off { opacity: .45; cursor: not-allowed; }

/* Deadline colours (deadlines.py). Text is always shown with the colour.
   Yellow uses dark text: white on #FFC643 fails contrast. */
/* The chip selectors repeat under .qitem .who so the row's muted text colour
   (.qitem .who span) can never override a chip's own text colour. */
.btn.dl-neutral, .dl.dl-neutral, .qitem .who .dl.dl-neutral { background: var(--surface); color: var(--ink); border: 2px solid var(--line-2); }
.btn.dl-green,   .dl.dl-green,   .qitem .who .dl.dl-green   { background: #1B7A35; color: #fff; }
.btn.dl-yellow,  .dl.dl-yellow,  .qitem .who .dl.dl-yellow  { background: #FFC643; color: #111318; }
.btn.dl-red,     .dl.dl-red,     .qitem .who .dl.dl-red     { background: var(--alert); color: #fff; }
.btn.dl-overdue, .dl.dl-overdue, .qitem .who .dl.dl-overdue { background: #7A1608; color: #fff; }
.btn.dl-neutral:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn.dl-green:hover, .btn.dl-red:hover, .btn.dl-overdue:hover { color: #fff; filter: brightness(.92); }
.btn.dl-yellow:hover { color: #111318; filter: brightness(.95); }
.dl { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px;
      font-size: 12px; font-weight: 700; white-space: nowrap; }
.btn:has(.dlt) { flex-direction: column; gap: 2px; padding: 8px 16px; text-align: center; }
.btn .dlt { font-weight: 500; font-size: 14px; }

/* Admin top navigation */
.adminnav { display: flex; gap: 4px; padding: 6px 12px; background: var(--surface);
            border-bottom: 1px solid var(--line); overflow-x: auto; }
.adminnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
              border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted);
              text-decoration: none; white-space: nowrap; }
.adminnav a:hover { color: var(--ink); background: var(--ground); }
.adminnav a[aria-current="page"] { color: #fff; background: var(--ink); }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
                border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; cursor: pointer; }
.radios label:has(input:checked) { border: 2px solid var(--ink); padding: 0 11px; }
.field input[type=number] { height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px;
                            font: 400 16px var(--font); width: 100%; }
.facts-sm { font-size: 13px; color: var(--muted); }

/* Inline form errors (server-rendered; see admin_company_form.html) */
.field-error { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--alert); }
[aria-invalid="true"] { border: 2px solid var(--alert) !important; }
#form-errors ul { margin: 6px 0 0; padding-left: 18px; }
#form-errors a { color: var(--alert); }
p.inline { margin: 0; }

/* Coverage history (migration 026) */
ol.periods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ol.periods > li { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
ol.periods .sub { font-size: 13px; color: var(--muted); }
.unknown { color: var(--muted); font-style: italic; }

/* ---------------------------------------------------------------------------
   Client app shell (DESIGN_SPEC.md, artboards 2-7): header with the account
   button, fixed 5-tab bar. Staff pages do not get .has-tabs. */
.acct { position: relative; }
.acct summary { list-style: none; width: 44px; height: 44px; border-radius: 22px; border: 1px solid #D5D8DF;
                background: var(--surface); display: flex; align-items: center; justify-content: center;
                font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 0; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.acct-menu { position: absolute; right: 0; top: 52px; z-index: 20; width: 240px; padding: 14px;
             background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
             box-shadow: 0 8px 24px rgba(17, 19, 24, .12); display: flex; flex-direction: column; gap: 12px; }
.acct-menu p { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.acct-menu p span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.acct-menu .btn { min-height: 44px; margin: 0; }

body.has-tabs main.page { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
          height: calc(80px + env(safe-area-inset-bottom)); padding: 4px 6px calc(18px + env(safe-area-inset-bottom));
          background: var(--surface); border-top: 1px solid var(--line);
          display: flex; justify-content: space-around; align-items: center; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
       min-width: 64px; min-height: 52px; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tab:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 8px; }
@media (min-width: 760px) and (max-width: 1023.98px) {   /* tablet: same bar, content width */
  .tabbar { padding-left: calc(50% - 360px); padding-right: calc(50% - 360px); }
}
@media (min-width: 1024px) {     /* desktop: ONE sticky bar -- logo left, tabs centred, account right */
  body.has-tabs main.page { padding-bottom: 40px; }
  .client-top { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr;
                align-items: center; gap: 16px; padding: 0 24px; min-height: 64px; }
  .client-top > a { justify-self: start; }
  .client-top > .acct { justify-self: end; }
  .tabbar { position: static; height: auto; padding: 0; border: 0; background: none;
            justify-content: center; gap: 4px; }
  .tab { flex-direction: row; gap: 8px; min-height: 64px; padding: 0 14px; font-size: 15px;
         border-bottom: 3px solid transparent; }
  .tab svg { width: 20px; height: 20px; }
  .tab[aria-current="page"] { border-bottom-color: var(--ink); }
  /* clear the sticky bar (64px): messages and #st-XX jumps stop below it */
  body.has-tabs main.page > p.msg { top: 72px; }
  body.has-tabs [id^="st-"] { scroll-margin-top: 136px; }
}

/* Client screens */
.lede { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.card h2 + .attn, .card > .attn:first-of-type { margin-top: 0; }
.attn { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px;
        color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.4; }
.attn:hover { color: var(--ink); }
.attn .bdg { flex-shrink: 0; min-width: 62px; height: 26px; padding: 0 8px; border-radius: 6px; color: #fff;
             font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.attn.warn { background: var(--warn-bg); } .attn.warn .bdg { background: var(--warn); }
.attn.alert { background: var(--alert-bg); } .attn.alert .bdg { background: var(--alert); }
.attn.info { background: var(--info-bg); } .attn.info .bdg { background: var(--info); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
        display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat span { font-size: 12px; line-height: 1.3; color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head a { font-size: 14px; font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tiles > * { height: 36px; border-radius: 8px; background: #EEF0F3; color: var(--ink); font-size: 14px; font-weight: 600;
             display: flex; align-items: center; justify-content: center; text-decoration: none; }
a.tile:hover { color: var(--ink); background: #E3E5EA; }
.tile-group { display: flex; flex-direction: column; gap: 8px; }
.tile-group h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface);
        color: var(--ink); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; text-decoration: none; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.dlrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface);
         border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dlrow:hover { color: var(--ink); border-color: var(--line-2); }
.dlrow b { flex-grow: 1; font-size: 15px; font-weight: 600; }
.dlrow span { font-size: 13px; color: var(--muted); }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
        display: flex; flex-direction: column; gap: 8px; }
.rule .cite { font-size: 13px; font-weight: 600; color: var(--link); overflow-wrap: anywhere; }
.rule h2 { font-size: 17px; line-height: 1.35; }
.rule p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.rule .req { display: flex; flex-direction: column; gap: 6px; }
.rule .req-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.rule .req-list li + li { margin-top: 4px; }
.rule .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.rule .meta a { font-weight: 500; }
.fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.soon { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.soon b { font-size: 16px; font-weight: 600; }
.soon p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.st-card { padding-top: 4px; padding-bottom: 4px; }
.st-card .qitem .who b { font-size: 16px; font-weight: 700; }

/* Lease check (artboard 5) */
.notice { padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: var(--ink);
          display: flex; flex-direction: column; gap: 4px; }
.notice p { margin: 0; font-size: 14px; line-height: 1.5; }
.notice .draft { font-size: 12px; letter-spacing: .06em; color: var(--alert); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; text-align: center;
        border: 2px dashed var(--line-2); border-radius: 12px; background: #FAFBFC; }
.drop label { font-size: 15px; font-weight: 600; }
.drop input[type=file] { max-width: 100%; font: 400 14px var(--font); }
.drop input[type=file]::file-selector-button { height: 44px; padding: 0 16px; margin-right: 10px; border-radius: 10px;
        border: 1px solid var(--ink); background: var(--surface); font: 600 15px var(--font); color: var(--ink); cursor: pointer; }
.sevs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sev { padding: 10px; border-radius: 10px; display: flex; flex-direction: column; }
.sev b { font-size: 22px; font-weight: 700; }
.sev span { font-size: 12px; }
.sev-crit { background: var(--alert-bg); } .sev-crit b { color: var(--alert); } .sev-crit span { color: #7A1D10; }
.sev-imp { background: var(--warn-bg); } .sev-imp b { color: var(--warn); } .sev-imp span { color: #6B4600; }
.sev-oth { background: #EEF0F3; } .sev-oth b { color: var(--ink); } .sev-oth span { color: var(--ink-2); }
.chiprow { display: flex; gap: 8px; align-items: center; }
.sevchip { height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700;
           display: inline-flex; align-items: center; background: #EEF0F3; color: var(--ink-2); }
.sevchip-critical { background: var(--alert-bg); color: var(--alert); }
.sevchip-important { background: var(--warn-bg); color: var(--warn); }
.finding h3 { margin: 0; font-size: 16px; font-weight: 600; }
.finding .excerpt { font-style: italic; color: var(--muted); }
.suggest { padding: 12px; border-radius: 10px; background: var(--ground); display: flex; flex-direction: column; gap: 4px; }
.suggest span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.suggest p { color: var(--ink); }
.snap { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid #EEF0F3; }
.snap p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
/* "What the law requires" and the rules snapshot: " - " runs as a list, the Laws page formatter, at render time only */
.suggest .req-list, .snap .req-list { margin: 0; padding-left: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.suggest .req-list { font-size: 14px; color: var(--ink); }
.snap .req-list { font-size: 13px; color: var(--ink-2); }
.suggest .req-list li + li, .snap .req-list li + li { margin-top: 4px; }
dl.facts code { font-size: 12px; overflow-wrap: anywhere; }

/* Password label with "Forgot password?" on the same line (Main artboard) */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row label { font-size: 14px; font-weight: 600; }
.label-row a { font-size: 14px; font-weight: 500; }
.acct-menu a.btn { min-height: 44px; margin: 0; }
a.linkbtn { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.fine-box { display: flex; flex-direction: column; gap: 4px; }
.fine-box .draft { font-size: 12px; letter-spacing: .06em; color: var(--alert); }

/* Staff header on phones: logo + badge + Password + Sign out fit on one line
   without the product label (it is on the sign-in page and in the title). */
@media (max-width: 440px) {
  .topbar .product { display: none; }
  .topbar .linkbtn { padding: 0 12px; white-space: nowrap; }
}

/* Admin: client profile changes (old -> new) */
.facts.changes dd { overflow-wrap: anywhere; }
.facts.changes .old { color: var(--muted); text-decoration: line-through; }

/* Changes feed (artboard 3) + Home "Recent changes" */
.st-code { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 24px; padding: 0 6px;
           border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
/* inside a list row (staff Hidden view) the row's muted span colour must not win */
.qitem .who .st-code { color: #fff; }
.chg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
       display: flex; flex-direction: column; gap: 8px; }
.chg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chg-type { font-size: 13px; font-weight: 600; color: var(--muted); }
.chg h2 { font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.chg p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.chg .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.chg .meta a { font-weight: 500; }
/* Status tones: the table is feed.TONES (one mapping; a test checks these match) */
.tone-success { background: #E3F6E8; color: #17692F; }
.tone-warning { background: #FFF4D6; color: #8A5A00; }
.tone-danger { background: #FFE9E5; color: #B42A17; }
.tone-neutral { background: #EEF0F3; color: #111318; }
.tone-info { background: #E6F1FD; color: #0F4F94; }
.pill-hidden { background: #EEF0F3; color: var(--ink); border: 1px dashed var(--line-2); }
pre.diff { margin: 8px 0 0; max-height: 360px; overflow: auto; padding: 10px; border-radius: 8px; background: #F6F7F9;
           font-size: 12px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.pager { display: flex; justify-content: space-between; gap: 12px; }
.chg-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; color: var(--ink); text-decoration: none;
           border-top: 1px solid var(--line); }
.chg-row:first-of-type { border-top: 0; }
.chg-row > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.chg-row > span:last-child span { font-size: 13px; color: var(--muted); }

/* Admin: pilot features */
.qitem.pilot .master { font-weight: 600; }
.qitem.pilot .master.off { color: var(--warn); }
.qitem.pilot .master.on { color: #1B7A35; }

/* Onboarding started after the contracted target */
.late { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px;
        background: var(--alert-bg); color: var(--alert); font-size: 12px; font-weight: 700; }

/* Staff header (Neo, 2026-10-14): one sticky bar. Phones: logo + STAFF and a
   Menu button (a checkbox, CSS only) that opens the links.
   Bug 6: EVERY menu / :checked rule lives in the phone query below, so the
   desktop layout never depends on the checkbox (open the menu narrow, widen
   the window: the desktop bar is unchanged). */
.staff-top { position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.staff-links .adminnav { padding: 0; border: 0; overflow: visible; background: none; }   /* every width */
.staff-links .adminnav a { min-height: 44px; }
.staff-actions { display: flex; gap: 6px; }
.staff-actions .linkbtn, .staff-actions button { min-height: 44px; }
.staff-actions a.linkbtn[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
body.has-staff main.page > p.msg { top: 72px; }
body.has-staff [id^="st-"], body.has-staff #st, body.has-staff #offboarding, body.has-staff #pending,
body.has-staff #pilots { scroll-margin-top: 140px; }
@media not all and (min-width: 1024px) {     /* phones + tablets: exactly the complement of the desktop query */
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #D5D8DF;
              border-radius: 22px; font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; }
  .menu-toggle:focus-visible + .menu-btn { outline: 2px solid var(--link); outline-offset: 2px; }
  .menu-toggle:checked + .menu-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
  /* a panel under the Menu button, right edge on the button's right edge (the bar's 20px padding) */
  .staff-links { display: none; position: absolute; top: calc(100% + 4px); right: 20px; z-index: 11;
                 width: min(260px, calc(100vw - 40px)); max-height: calc(100vh - 100px); overflow-y: auto;
                 flex-direction: column; gap: 6px; padding: 8px; box-sizing: border-box; background: var(--surface);
                 border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(17, 20, 26, .14); }
  .menu-toggle:checked ~ .staff-links { display: flex; }
  .staff-links .adminnav { flex-direction: column; }
  .staff-actions { flex-direction: column; }
  .staff-actions .linkbtn, .staff-actions form, .staff-actions button { width: 100%; justify-content: center; }
}
@media (min-width: 1024px) {
  .staff-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
               padding: 0 24px; min-height: 64px; }
  .menu-toggle, .menu-btn { display: none; }
  .staff-links { display: contents; }
  .staff-links .adminnav { flex-direction: row; justify-self: center; }
  .staff-actions { flex-direction: row; justify-self: end; align-items: center; }
}
