/* Veterans Healthcare Staffing UK – Secure Portal design system v3 (premium, light + dark).
   Brand: Navy #022A57 · Care Teal #0A6E69 · Red #C8102E · Gold accents.
   Every colour is a token. Light is the default; dark applies with <html data-theme="dark">, or follows the
   device setting when no choice has been saved (data-theme absent). No inline styles or scripts (strict CSP). */

@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/static/fonts/inter-latin-wght-normal.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: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/static/fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/static/fonts/plus-jakarta-sans-latin-wght-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/static/fonts/plus-jakarta-sans-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ============ Tokens: light (default) ============ */
:root {
  color-scheme: light;
  --bg: #F3F5F8; --surface: #FFFFFF; --surface-2: #F8F9FB; --surface-3: #F0F3F7; --surface-raised: #FFFFFF;
  --border: #E1E6ED; --border-2: #ECEFF3; --border-strong: #CAD2DC; --border-hover: #A9B5C4;
  --text: #132235; --text-2: #34465B; --muted: #5A6778; --faint: #7F8B9A; --heading: #0A2346;
  --brand: #022A57; --brand-2: #0B3A70; --brand-soft: #EDF2F8; --brand-line: #D3DEEC;
  --accent: #0A6E69; --accent-hover: #065550; --accent-fill: #0A6E69; --accent-fill-hover: #075A55; --accent-soft: #EAF5F3; --accent-line: #C9E5E1; --accent-bright: #5FD0C6;
  --red: #C8102E; --red-fill: #C8102E; --red-fill-hover: #A60D26; --red-soft: #FDEEF0; --red-line: #F4C3CB;
  --gold: #8E6C2E; --gold-soft: #FBF4E6; --gold-line: #EBDCBC;
  --good: #0A6B66; --good-bg: #E7F4F2; --good-line: #C4E4DF; --good-ink: #06504B;
  --warn: #875100; --warn-bg: #FFF5E0; --warn-line: #F1DAA8; --warn-ink: #5E3A00;
  --bad: #AE0D28; --bad-bg: #FDEDF0; --bad-line: #F3C0C9; --bad-ink: #7D0A1E;
  --info: #0B3A70; --info-bg: #EDF3FA; --info-line: #CFDCEE; --info-ink: #0B2F5C;
  --mut: #5A6778; --mut-bg: #EFF2F5; --mut-line: #DFE4EA;
  --input-bg: #FFFFFF; --input-border: #C9D1DB; --placeholder: #97A2AF;
  --header-bg: rgba(255,255,255,.86); --topbar-bg: rgba(243,245,248,.84);
  --sidebar-a: #062244; --sidebar-b: #021530; --sidebar-line: rgba(255,255,255,.07);
  --hero-a: #022A57; --hero-b: #0A3E66;
  --toast-bg: #0E2338; --toast-text: #EAF1F8;
  --internal-bg: #FFF9EA; --internal-line: #E6C878;
  --scrim: rgba(1,22,47,.5);
  --on-fill: #FFFFFF;
  --focus: #D9A93A;
  --sh-1: 0 1px 2px rgba(10,35,70,.05);
  --sh-2: 0 1px 2px rgba(10,35,70,.04), 0 4px 14px -6px rgba(10,35,70,.08);
  --sh-3: 0 24px 60px -24px rgba(1,22,47,.32), 0 2px 6px rgba(1,22,47,.05);
  --sh-hover: 0 1px 2px rgba(10,35,70,.05), 0 14px 30px -16px rgba(10,35,70,.25);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6778' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --r-xl: 20px; --r-lg: 14px; --r: 11px; --r-sm: 8px;
  --head: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --side-w: 268px;
}

/* ============ Tokens: dark (chosen, or device setting when nothing chosen) ============ */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1019; --surface: #101926; --surface-2: #142030; --surface-3: #192739; --surface-raised: #152132;
  --border: #213046; --border-2: #1A2738; --border-strong: #2E405A; --border-hover: #4A6282;
  --text: #E3E9F1; --text-2: #C1CCD9; --muted: #95A4B7; --faint: #718297; --heading: #F2F6FB;
  --brand: #1C4A84; --brand-2: #275C9C; --brand-soft: rgba(110,150,210,.12); --brand-line: rgba(110,150,210,.28);
  --accent: #4BC4B8; --accent-hover: #72D6CC; --accent-fill: #0E7C74; --accent-fill-hover: #11918A; --accent-soft: rgba(75,196,184,.1); --accent-line: rgba(75,196,184,.3); --accent-bright: #5FD0C6;
  --red: #FF6F84; --red-fill: #C8102E; --red-fill-hover: #DD1F3D; --red-soft: rgba(255,95,115,.12); --red-line: rgba(255,95,115,.34);
  --gold: #DDB978; --gold-soft: rgba(221,185,120,.1); --gold-line: rgba(221,185,120,.28);
  --good: #5CD0C3; --good-bg: rgba(75,196,184,.12); --good-line: rgba(75,196,184,.3); --good-ink: #A3E8DF;
  --warn: #F3B85D; --warn-bg: rgba(243,184,93,.12); --warn-line: rgba(243,184,93,.3); --warn-ink: #F8D397;
  --bad: #FF8193; --bad-bg: rgba(255,95,115,.12); --bad-line: rgba(255,95,115,.32); --bad-ink: #FFB4BF;
  --info: #93B9EC; --info-bg: rgba(120,160,220,.12); --info-line: rgba(120,160,220,.3); --info-ink: #C2D7F4;
  --mut: #A5B2C3; --mut-bg: rgba(148,163,182,.12); --mut-line: rgba(148,163,182,.22);
  --input-bg: #0C1520; --input-border: #2A3B52; --placeholder: #66788E;
  --header-bg: rgba(12,19,29,.84); --topbar-bg: rgba(10,16,25,.82);
  --sidebar-a: #0D1726; --sidebar-b: #070D16; --sidebar-line: rgba(255,255,255,.06);
  --hero-a: #0B2445; --hero-b: #0B3450;
  --toast-bg: #1A2739; --toast-text: #EAF1F8;
  --internal-bg: rgba(243,184,93,.08); --internal-line: rgba(243,184,93,.42);
  --scrim: rgba(0,0,0,.6);
  --focus: #E9C063;
  --sh-1: 0 1px 2px rgba(0,0,0,.35);
  --sh-2: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px -8px rgba(0,0,0,.45);
  --sh-3: 0 28px 60px -24px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.3);
  --sh-hover: 0 1px 2px rgba(0,0,0,.35), 0 16px 34px -16px rgba(0,0,0,.7);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2395A4B7' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A1019; --surface: #101926; --surface-2: #142030; --surface-3: #192739; --surface-raised: #152132;
    --border: #213046; --border-2: #1A2738; --border-strong: #2E405A; --border-hover: #4A6282;
    --text: #E3E9F1; --text-2: #C1CCD9; --muted: #95A4B7; --faint: #718297; --heading: #F2F6FB;
    --brand: #1C4A84; --brand-2: #275C9C; --brand-soft: rgba(110,150,210,.12); --brand-line: rgba(110,150,210,.28);
    --accent: #4BC4B8; --accent-hover: #72D6CC; --accent-fill: #0E7C74; --accent-fill-hover: #11918A; --accent-soft: rgba(75,196,184,.1); --accent-line: rgba(75,196,184,.3); --accent-bright: #5FD0C6;
    --red: #FF6F84; --red-fill: #C8102E; --red-fill-hover: #DD1F3D; --red-soft: rgba(255,95,115,.12); --red-line: rgba(255,95,115,.34);
    --gold: #DDB978; --gold-soft: rgba(221,185,120,.1); --gold-line: rgba(221,185,120,.28);
    --good: #5CD0C3; --good-bg: rgba(75,196,184,.12); --good-line: rgba(75,196,184,.3); --good-ink: #A3E8DF;
    --warn: #F3B85D; --warn-bg: rgba(243,184,93,.12); --warn-line: rgba(243,184,93,.3); --warn-ink: #F8D397;
    --bad: #FF8193; --bad-bg: rgba(255,95,115,.12); --bad-line: rgba(255,95,115,.32); --bad-ink: #FFB4BF;
    --info: #93B9EC; --info-bg: rgba(120,160,220,.12); --info-line: rgba(120,160,220,.3); --info-ink: #C2D7F4;
    --mut: #A5B2C3; --mut-bg: rgba(148,163,182,.12); --mut-line: rgba(148,163,182,.22);
    --input-bg: #0C1520; --input-border: #2A3B52; --placeholder: #66788E;
    --header-bg: rgba(12,19,29,.84); --topbar-bg: rgba(10,16,25,.82);
    --sidebar-a: #0D1726; --sidebar-b: #070D16; --sidebar-line: rgba(255,255,255,.06);
    --hero-a: #0B2445; --hero-b: #0B3450;
    --toast-bg: #1A2739; --toast-text: #EAF1F8;
    --internal-bg: rgba(243,184,93,.08); --internal-line: rgba(243,184,93,.42);
    --scrim: rgba(0,0,0,.6);
    --focus: #E9C063;
    --sh-1: 0 1px 2px rgba(0,0,0,.35);
    --sh-2: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px -8px rgba(0,0,0,.45);
    --sh-3: 0 28px 60px -24px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.3);
    --sh-hover: 0 1px 2px rgba(0,0,0,.35), 0 16px 34px -16px rgba(0,0,0,.7);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2395A4B7' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font: 15px/1.6 var(--body); color: var(--text); background: var(--bg); font-feature-settings: 'cv11', 'ss01', 'ss03'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.006em; }
h1 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 .9em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-line); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; background: var(--brand); color: var(--on-fill); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }
.ico { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .86rem; color: var(--muted); }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 72ch; }
.hint { font-size: .84rem; color: var(--muted); margin: .45em 0; }
code { font-family: var(--mono); background: var(--surface-3); color: var(--text); padding: 2px 7px; border-radius: 6px; font-size: .9em; letter-spacing: .02em; border: 1px solid var(--border-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden], .is-hidden { display: none !important; }
.num, .stat__value, .table td, .kv dd { font-variant-numeric: tabular-nums; }

/* Logos: dark-ink logo on light surfaces, white logo on dark ones */
.logo--dark { display: none !important; }
:root[data-theme="dark"] .logo--light { display: none !important; }
:root[data-theme="dark"] .logo--dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--light { display: none !important; }
  :root:not([data-theme="light"]) .logo--dark { display: block !important; }
}

/* ============ Theme switch ============ */
.theme-toggle { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); text-decoration: none; box-shadow: var(--sh-1); transition: border-color .15s, color .15s, background .15s; }
.theme-toggle:hover { border-color: var(--border-hover); color: var(--heading); }
.theme-toggle .ico { width: 18px; height: 18px; }
.theme-toggle .t-moon { display: block; }
.theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .t-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .t-sun { display: block; }
}
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; margin: 4px 4px 6px; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 10px; }
.theme-seg a { display: flex !important; flex-direction: column; align-items: center; gap: 3px !important; padding: 7px 4px !important; border-radius: 8px !important; font-size: .74rem !important; font-weight: 600 !important; color: var(--muted) !important; }
.theme-seg a .ico { width: 16px !important; height: 16px !important; }
.theme-seg a:hover { background: var(--surface) !important; color: var(--heading) !important; }
.theme-seg a[aria-current="true"] { background: var(--surface); color: var(--heading) !important; box-shadow: var(--sh-1); }
.menu-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 700; padding: 8px 12px 2px; }

/* ============ Install app button ============ */
.install-btn { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--heading); font: 600 .86rem var(--body); cursor: pointer; }
.install-btn:hover { border-color: var(--border-hover); }
.install-btn .ico { width: 16px; height: 16px; }
.install-btn[hidden] { display: none; }
@media (display-mode: standalone) { .install-btn, [data-install] { display: none !important; } }

/* ============ Public header / footer (sign-in pages) ============ */
.site { background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.site__in { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site__logo img { display: block; height: 40px; width: auto; }
.site__nav { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; }
.site__nav a:not(.theme-toggle) { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.site__nav a:not(.theme-toggle):hover { background: var(--surface-3); color: var(--heading); }
.site__nav .theme-toggle { margin-left: 6px; }
.site__tel { display: inline-flex; align-items: center; gap: 7px; background: var(--accent-soft); color: var(--accent) !important; border: 1px solid var(--accent-line); margin-left: 4px; }
.site__tel .ico { width: 16px; height: 16px; }
.foot { background: var(--sidebar-b); color: #A9B8CB; border-top: 1px solid var(--sidebar-line); }
.foot__in { max-width: 1320px; margin: 0 auto; padding: 22px 24px; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot a { color: #FFFFFF; }
.foot__sec { display: inline-flex; gap: 8px; align-items: center; color: #D6E0EC; }
.foot__sec .ico { width: 16px; height: 16px; color: var(--accent-bright); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 10px; border: 1px solid transparent; font: 600 .9rem/1.2 var(--body); letter-spacing: .003em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 17px; height: 17px; }
.btn--primary { background: var(--accent-fill); color: var(--on-fill); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(1,22,47,.2); }
.btn--primary:hover { background: var(--accent-fill-hover); color: var(--on-fill); }
.btn--secondary { background: var(--brand); color: var(--on-fill); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(1,22,47,.2); }
.btn--secondary:hover { background: var(--brand-2); color: var(--on-fill); }
.btn--danger { background: var(--red-fill); color: var(--on-fill); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(1,22,47,.2); }
.btn--danger:hover { background: var(--red-fill-hover); color: var(--on-fill); }
.btn--ghost { background: var(--surface); color: var(--heading); border-color: var(--border-strong); box-shadow: var(--sh-1); }
.btn--ghost:hover { border-color: var(--border-hover); color: var(--heading); background: var(--surface-2); }
.btn--link { background: none; color: var(--accent); padding: 4px 2px; min-height: 0; border: 0; text-decoration: underline; box-shadow: none; font-weight: 600; }
.btn--link:hover { color: var(--accent-hover); }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: .84rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.btn-row--tight { gap: 4px 14px; margin: 0; }
.form--inline { display: inline; }
.form--inline .form__actions { display: inline; margin: 0; padding: 0; border: 0; }

/* ============ Cards & layout ============ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); margin: 0 0 20px; overflow: hidden; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 22px 14px; border-bottom: 1px solid var(--border-2); }
.card__head h2 { font-size: 1rem; margin: 0; font-weight: 650; letter-spacing: -.005em; }
.card__head p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.card__body { padding: 18px 22px 22px; }
.card--feature { position: relative; }
.card--feature::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent-fill), var(--gold)); }
.card--alert { border-color: var(--red-line); }
.card--alert::before { content: ''; display: block; height: 3px; background: var(--red-fill); }
.card--wizard .card__body { padding: 28px; }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .card { margin: 0; }

/* ============ Badges, alerts, marks ============ */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; line-height: 1.55; border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge--good { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.badge--warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge--bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.badge--muted { background: var(--mut-bg); color: var(--mut); border-color: var(--mut-line); }
.alert { display: block; border-radius: var(--r); padding: 12px 16px; margin: 0 0 18px; border: 1px solid; font-size: .92rem; }
.alert--icon { display: flex; gap: 12px; align-items: flex-start; }
.alert > .ico { margin-top: 1px; width: 19px; height: 19px; }
.alert--info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-ink); }
.alert--success { background: var(--good-bg); border-color: var(--good-line); color: var(--good-ink); }
.alert--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.alert--error { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.alert a { color: inherit; font-weight: 600; }
.alert .form--inline button { padding: 0; }
.mark { display: inline-flex; justify-content: center; min-width: 2.4em; font-weight: 700; border-radius: 7px; padding: 1px 8px; font-size: .86rem; }
.mark--yes { background: var(--good-bg); color: var(--good); }
.mark--no { background: var(--bad-bg); color: var(--bad); }
.mark--na { background: var(--mut-bg); color: var(--mut); }
.mark--review { background: var(--warn-bg); color: var(--warn); }
.overall { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r-lg); margin: 14px 0 20px; border: 1px solid; }
.overall span { font-weight: 600; font-size: .93rem; }
.overall strong { font-family: var(--head); font-size: 1.08rem; letter-spacing: .04em; }
.overall--good { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.overall--warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.overall--bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.overall--muted { background: var(--mut-bg); color: var(--mut); border-color: var(--mut-line); }

/* ============ Tables & lists ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.table th { text-align: left; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; padding: 10px 14px; white-space: nowrap; border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border-2); vertical-align: middle; color: var(--text); }
.table td a { font-weight: 600; text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table--compact td { padding: 4px 8px; border: 0; }
.table--compact tbody tr:hover td { background: none; }
.person { display: flex; align-items: center; gap: 12px; }
.person .avatar { width: 34px; height: 34px; font-size: .78rem; border-radius: 9px; }
.person strong { display: block; color: var(--heading); font-weight: 600; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 20px; text-align: center; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r); font-size: .9rem; }
.empty .ico { width: 26px; height: 26px; color: var(--faint); padding: 0; }
.kv { display: grid; grid-template-columns: minmax(140px, 36%) 1fr; margin: 0 0 12px; font-size: .92rem; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--border-2); margin: 0; }
.kv dt { color: var(--muted); font-weight: 500; padding-right: 14px; }
.kv dd { color: var(--text); }
.answers { display: grid; grid-template-columns: minmax(200px, 42%) 1fr; margin: 0 0 8px; font-size: .92rem; }
.answers dt, .answers dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--border-2); }
.answers dt { color: var(--muted); padding-right: 18px; }
.codes { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.codes code { display: block; text-align: center; font-size: 1.05rem; padding: 10px; background: var(--brand-soft); border: 1px dashed var(--brand-line); }

/* ============ Forms ============ */
.fields { display: flex; flex-wrap: wrap; gap: 18px 18px; margin-bottom: 8px; }
.field { flex: 1 1 100%; min-width: 0; }
.w100 { flex-basis: 100%; }
.w50 { flex-basis: calc(50% - 9px); }
.w40 { flex-basis: calc(37.5% - 12px); }
.w33 { flex-basis: calc(33.333% - 12px); }
.w25, .w20 { flex-basis: calc(25% - 14px); }
.field > label, .field legend { display: block; font-weight: 600; color: var(--text-2); margin-bottom: 7px; font-size: .87rem; }
.field fieldset, fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--input-border); border-radius: 10px; background-color: var(--input-bg); color: var(--text); font: 15px/1.4 var(--body);
  box-shadow: 0 1px 2px rgba(1,22,47,.04); transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { min-height: 116px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--border-hover); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-line); outline: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.error-text { color: var(--bad); font-weight: 600; font-size: .84rem; margin: 7px 0 0; display: flex; gap: 6px; align-items: center; }
.req { color: var(--red); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.choice, label.choice { display: flex; align-items: flex-start; gap: 10px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--input-bg); cursor: pointer; font-weight: 500; color: var(--text); font-size: .9rem; margin: 0; transition: border-color .12s, background .12s; }
.choice:hover { border-color: var(--border-hover); }
.choice input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent-fill); flex: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.choice--accept { background: var(--surface-2); align-items: flex-start; }
.remember { border: 0; padding: 4px 0; background: none; box-shadow: none !important; }
.remember:has(input:checked) { background: none; }
.field--html p, .vhs-form-note, .vhs-p-note { color: var(--muted); font-size: .86rem; margin: 0; }
.vhs-p-alert--red { background: var(--bad-bg); color: var(--bad-ink); padding: 13px 15px; border-radius: 10px; border: 1px solid var(--bad-line); font-size: .9rem; }
.fsection { font-size: .95rem; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--border-2); width: 100%; color: var(--heading); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-fields select, .inline-fields input { min-height: 36px; width: auto; flex: 1 1 130px; padding: 6px 10px; font-size: .86rem; }
.inline-fields select { padding-right: 32px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: var(--surface-3); color: var(--text-2); border-radius: 7px; padding: 0 12px; font: 600 .78rem var(--body); cursor: pointer; }
.pw-toggle:hover { color: var(--heading); }
.pw-meter { height: 5px; border-radius: 999px; background: var(--border-2); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .2s, background .2s; }
.pw-meter__label { font-size: .78rem; color: var(--muted); margin-top: 5px; }
input[type=file] { width: 100%; padding: 18px 16px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); font: 500 .88rem var(--body); color: var(--muted); cursor: pointer; }
input[type=file]:hover { border-color: var(--accent); background: var(--accent-soft); }
input[type=file]::file-selector-button { font: 600 .86rem var(--body); margin-right: 14px; padding: 8px 15px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent-fill); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 20px; box-shadow: var(--sh-1); }
.filters label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; flex: 1 1 200px; }
.filters input, .filters select { text-transform: none; letter-spacing: 0; font-weight: 400; min-height: 42px; }
details.add, details.more { margin-top: 16px; border: 1px dashed var(--border-strong); border-radius: var(--r); padding: 12px 16px; background: var(--surface-2); }
details.add > summary, details.more > summary { cursor: pointer; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 8px; list-style: none; }
details.add > summary::-webkit-details-marker, details.more > summary::-webkit-details-marker { display: none; }
details[open].add > summary { margin-bottom: 14px; }

/* ============ Auth / public pages ============ */
.auth { min-height: calc(100vh - 140px); max-width: 1220px; margin: 0 auto; padding: 44px 24px 64px; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: start; }
.auth__intro { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 44px 42px; color: #D5E0EE; background: radial-gradient(900px 400px at 110% -10%, rgba(17,134,127,.45), transparent 60%), radial-gradient(600px 400px at -10% 110%, rgba(184,146,74,.18), transparent 60%), linear-gradient(160deg, var(--sidebar-a) 0%, var(--hero-a) 55%, var(--hero-b) 100%); box-shadow: var(--sh-3); border: 1px solid var(--sidebar-line); }
.auth__intro::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); pointer-events: none; }
.auth__intro > * { position: relative; z-index: 1; }
.auth__intro h1 { color: #FFFFFF; font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -.025em; margin: 14px 0 16px; line-height: 1.15; }
.auth__intro p { color: #C5D3E4; font-size: 1rem; }
.auth__intro a { color: #FFFFFF; }
.auth__tag { font-family: var(--head); font-weight: 700; color: #FFFFFF !important; font-size: .95rem !important; padding-top: 10px; border-top: 1px solid rgba(233,219,190,.25); display: inline-block; }
.auth__trust { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth__trust li { display: flex; gap: 12px; align-items: center; font-size: .93rem; color: #E3EBF5; }
.auth__trust .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); box-sizing: border-box; color: #9FE0D9; }
.auth__panel .card { margin: 0; box-shadow: var(--sh-3); border-radius: var(--r-xl); }
.auth__panel .card__head { padding: 30px 32px 0; border-bottom: 0; }
.auth__panel .card__head h2 { font-family: var(--head); font-size: 1.4rem; font-weight: 700; letter-spacing: -.015em; }
.auth__panel .card__body { padding: 18px 32px 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); color: #FFFFFF; padding: 5px 12px 5px 10px; border-radius: 999px; font-weight: 650; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.18); }
.chip .ico { width: 15px; height: 15px; }
.landing .chip, .narrow .chip { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.login .form__actions .btn, .apply-card .form__actions .btn { width: 100%; min-height: 48px; font-size: .98rem; }
.login__links { margin: 14px 0 0; text-align: right; font-size: .88rem; }
.login__alt { margin-top: 24px; padding: 18px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.login__alt p { margin: 0 0 12px; font-size: .9rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.secure-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .78rem; color: var(--faint); margin-top: 18px; }
.secure-note .ico { width: 15px; height: 15px; color: var(--accent); }
.narrow { max-width: 640px; margin: 48px auto; padding: 0 24px; }
.landing { max-width: 1120px; margin: 0 auto; padding: 60px 24px 72px; }
.landing h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); letter-spacing: -.03em; margin-top: 14px; }
.qr { background: #FFFFFF; display: inline-block; padding: 10px; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--sh-1); }
.qr svg { width: 200px; height: 200px; display: block; }

/* ============ App shell ============ */
body.is-app { background: var(--bg); }
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--sidebar-b) var(--side-w), transparent var(--side-w)); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-scrim { display: none; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; color: #C3D0E0;
  background: radial-gradient(420px 260px at 0% 0%, rgba(17,134,127,.2), transparent 60%), linear-gradient(180deg, var(--sidebar-a), var(--sidebar-b)); border-right: 1px solid var(--sidebar-line); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.portal--client .sidebar { background: radial-gradient(420px 260px at 0% 0%, rgba(17,134,127,.3), transparent 60%), linear-gradient(180deg, var(--sidebar-a), var(--sidebar-b)); }
.portal--office .sidebar { background: radial-gradient(420px 260px at 0% 0%, rgba(184,146,74,.16), transparent 60%), linear-gradient(180deg, #111C2A, #090F18); }
.portal--office { background: linear-gradient(90deg, #090F18 var(--side-w), transparent var(--side-w)); }
.sidebar__logo { display: block; padding: 22px 22px 14px; }
.sidebar__logo img { height: 38px; width: auto; display: block; }
.sidebar__hub { margin: 0 22px 16px; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #E9DBBE; padding: 4px 10px; border: 1px solid rgba(233,219,190,.22); border-radius: 999px; background: rgba(233,219,190,.05); }
.sidebar__hub .ico { width: 13px; height: 13px; }
.side__user { margin: 0 14px 8px; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); }
.side__user div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side__user strong { color: #FFFFFF; line-height: 1.3; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.side__user span { font-size: .78rem; color: #9FB0C4; line-height: 1.4; }
.side__user .badge { align-self: flex-start; margin-top: 4px; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #11867F, #075550); color: #FFFFFF; font-weight: 700; font-family: var(--head); letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.avatar .ico { width: 20px; height: 20px; }
.avatar--lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1.45rem; }
.sidebar nav ul { list-style: none; margin: 0; padding: 4px 12px 12px; }
.sidebar nav a, .nav-logout { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: #BAC7D7; text-decoration: none; font-weight: 500; font-size: .89rem; width: 100%; background: none; border: 0; cursor: pointer; font-family: var(--body); text-align: left; position: relative; transition: background .12s, color .12s; }
.sidebar nav a .ico, .nav-logout .ico { width: 18px; height: 18px; color: #8397AE; }
.sidebar nav a:hover, .nav-logout:hover { background: rgba(255,255,255,.055); color: #FFFFFF; }
.sidebar nav a:hover .ico { color: #C3D0E0; }
.sidebar nav a.is-active { background: rgba(255,255,255,.08); color: #FFFFFF; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sidebar nav a.is-active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-bright); }
.sidebar nav a.is-active .ico { color: var(--accent-bright); }
.nav-sep { font-size: .64rem; text-transform: uppercase; letter-spacing: .15em; color: #6A7F97; padding: 18px 12px 6px; font-weight: 700; }
.nav-count { margin-left: auto; font-style: normal; background: rgba(200,16,46,.85); color: #FFFFFF; border-radius: 999px; font-size: .68rem; padding: 1px 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sidebar form { margin: 0; }
.sidebar__foot { margin-top: auto; padding: 16px; }
.help-card { border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-size: .82rem; color: #A9B8CB; }
.help-card strong { display: block; color: #FFFFFF; margin-bottom: 4px; font-size: .88rem; }
.help-card a { display: inline-flex; gap: 8px; align-items: center; color: #7FE0D6; font-weight: 700; text-decoration: none; font-size: .93rem; margin-top: 4px; }
.help-card .ico { width: 16px; height: 16px; }
.sec-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .7rem; color: #6F849C; letter-spacing: .02em; }
.sec-foot .ico { width: 14px; height: 14px; color: #7FE0D6; }

.app__main { min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 32px; background: var(--topbar-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); min-height: 64px; }
.topbar__menu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; color: var(--heading); }
.crumbs { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs strong { color: var(--heading); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--border-hover); }
.topbar__tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.secure-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--good); background: var(--good-bg); border: 1px solid var(--good-line); margin-right: 4px; white-space: nowrap; }
.secure-pill .ico { width: 14px; height: 14px; }
.secure-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--good-line); }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); box-shadow: var(--sh-1); }
.bell:hover { border-color: var(--border-hover); color: var(--heading); }
.bell .ico { width: 18px; height: 18px; }
.bell span { position: absolute; top: -5px; right: -5px; background: var(--red-fill); color: #FFFFFF; border-radius: 999px; font-size: .66rem; font-weight: 700; padding: 1px 6px; border: 2px solid var(--bg); }
.usermenu { position: relative; }
.usermenu > summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 3px 10px 3px 3px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sh-1); }
.usermenu > summary:hover { border-color: var(--border-hover); }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary .avatar { width: 32px; height: 32px; border-radius: 8px; font-size: .74rem; }
.usermenu > summary span:not(.avatar) { font-weight: 600; font-size: .86rem; color: var(--heading); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 272px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--sh-3); padding: 6px; z-index: 40; }
.usermenu__panel .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--border-2); margin-bottom: 6px; }
.usermenu__panel .who strong { display: block; color: var(--heading); font-weight: 600; }
.usermenu__panel .who small { color: var(--muted); word-break: break-all; }
.usermenu__panel a, .usermenu__panel button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font: 500 .88rem var(--body); background: none; border: 0; cursor: pointer; text-align: left; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--surface-3); color: var(--heading); }
.usermenu__panel .ico { width: 17px; height: 17px; color: var(--muted); }
.usermenu__panel form { margin: 0; border-top: 1px solid var(--border-2); margin-top: 6px; padding-top: 6px; }
.content { padding: 30px 32px 44px; max-width: 1280px; width: 100%; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 0; letter-spacing: -.022em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: .97rem; }
.page-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.page-head .eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; opacity: .7; }
.page-head .btn-row { margin: 0; }
.app-foot { margin-top: auto; padding: 18px 32px 24px; font-size: .78rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; border-top: 1px solid var(--border); }
.app-foot a { color: var(--muted); }
.app-foot .ico { width: 14px; height: 14px; color: var(--accent); margin-right: 5px; vertical-align: -2px; }

/* toasts */
.toast { position: fixed; right: 22px; top: 80px; z-index: 60; max-width: 420px; display: flex; gap: 12px; align-items: flex-start; background: var(--toast-bg); color: var(--toast-text); border-radius: 13px; padding: 13px 16px; box-shadow: var(--sh-3); font-size: .9rem; border: 1px solid rgba(255,255,255,.08); animation: toastIn .35s ease; }
.toast .ico { color: #7FE0D6; margin-top: 1px; }
.toast button { margin-left: 6px; background: none; border: 0; color: #9FB0C4; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 2px; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ Dashboard components ============ */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px 30px; margin-bottom: 20px; color: #D5E0EE; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: radial-gradient(700px 300px at 100% 0%, rgba(17,134,127,.42), transparent 60%), linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 100%); box-shadow: var(--sh-2); border: 1px solid var(--sidebar-line); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h2 { color: #FFFFFF; font-family: var(--head); font-size: 1.42rem; font-weight: 700; letter-spacing: -.018em; margin: 0 0 6px; }
.hero p { margin: 0; color: #C5D3E4; max-width: 60ch; }
.hero .btn-row { margin: 18px 0 0; }
.hero .btn--ghost { background: rgba(255,255,255,.08); color: #FFFFFF; border-color: rgba(255,255,255,.22); box-shadow: none; }
.hero .btn--ghost:hover { background: rgba(255,255,255,.16); }
.hero .btn--primary { background: #0E7C74; }
.hero .btn--primary:hover { background: #11918A; }
.hero .btn--danger { background: #C8102E; }
.ring { --p: 0; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(#5FD0C6 calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.ring > div { width: 92px; height: 92px; border-radius: 50%; background: #0B2E52; display: grid; place-items: center; text-align: center; }
.ring strong { display: block; color: #FFFFFF; font-family: var(--head); font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ring small { color: #9FB0C4; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; overflow: hidden; }
.stat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-line); opacity: 0; transition: opacity .15s; }
.stat:hover { border-color: var(--border-hover); transform: translateY(-1px); box-shadow: var(--sh-hover); color: var(--text); }
.stat:hover::after { opacity: 1; }
.stat--teal::after { background: var(--accent); } .stat--gold::after { background: var(--gold); } .stat--red::after { background: var(--red); }
.stat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--info); flex: none; border: 1px solid var(--brand-line); }
.stat--teal .stat__icon { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.stat--gold .stat__icon { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.stat--red .stat__icon { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.stat__icon .ico { width: 16px; height: 16px; }
.stat__label { font-size: .76rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; line-height: 1.35; }
.stat__value { margin-top: auto; font-family: var(--head); font-size: 1.9rem; font-weight: 700; color: var(--heading); line-height: 1; letter-spacing: -.025em; }
.stat__value .badge { font-size: .78rem; font-family: var(--body); letter-spacing: .01em; }
.stat__arrow { color: var(--faint); }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile > .ico { width: 40px; height: 40px; color: var(--accent); background: var(--accent-soft); padding: 10px; border-radius: 11px; box-sizing: border-box; border: 1px solid var(--accent-line); margin-bottom: 4px; }
.tile strong { color: var(--heading); font-size: 1rem; font-weight: 650; }
.tile span { color: var(--muted); font-size: .89rem; }
.tile:hover { border-color: var(--accent-line); transform: translateY(-1px); box-shadow: var(--sh-hover); color: var(--text); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.checklist li.is-done { background: var(--good-bg); border-color: var(--good-line); }
.checklist li.is-current { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.checklist .tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--border-strong); color: transparent; }
.checklist .is-done .tick { background: var(--accent-fill); border-color: var(--accent-fill); color: #FFFFFF; }
.checklist .is-current .tick { border-color: var(--info); }
.checklist .tick .ico { width: 15px; height: 15px; }
.checklist div { flex: 1; min-width: 0; }
.checklist strong { display: block; color: var(--heading); font-size: .93rem; font-weight: 600; }
.checklist span { font-size: .85rem; color: var(--muted); }
.checklist .is-done strong { color: var(--good); }

/* status steps */
.steps { list-style: none; padding: 0; margin: 8px 0 22px; display: flex; gap: 0; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; text-align: center; font-weight: 600; font-size: .82rem; color: var(--muted); padding: 0 6px; }
.steps li::after { content: ''; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--border); }
.steps li:last-child::after { display: none; }
.steps li.is-done::after { background: var(--accent); }
.steps__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--surface); flex: none; z-index: 1; }
.steps .is-done { color: var(--good); }
.steps .is-done .steps__dot { background: var(--accent-fill); border-color: var(--accent-fill); color: #FFFFFF; }
.steps .is-current { color: var(--heading); }
.steps .is-current .steps__dot { border-color: var(--info); box-shadow: 0 0 0 5px var(--brand-soft); }
.steps__dot .ico { width: 15px; height: 15px; }
.progress { height: 7px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.card .progress, .wiz__meter .progress { background: var(--border-2); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-fill), var(--accent-bright)); border-radius: 999px; transition: width .6s; }

/* wizard */
.wiz { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.wiz__nav { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 16px 12px; }
.wiz__nav h3 { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); margin: 2px 8px 12px; }
.wizard { list-style: none; padding: 0; margin: 0; counter-reset: w; }
.wizard li { position: relative; }
.wizard li > a, .wizard li > span { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 500; }
.wizard li > a:hover { background: var(--surface-3); color: var(--heading); }
.wizard__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .74rem; font-weight: 700; border: 1.5px solid var(--border-strong); color: var(--muted); background: var(--surface); }
.wizard .is-done .wizard__n { background: var(--accent-fill); border-color: var(--accent-fill); color: #FFFFFF; }
.wizard .is-done > a, .wizard .is-done > span { color: var(--text-2); }
.wizard .is-current > span, .wizard .is-current > a { background: var(--brand-soft); color: var(--heading); font-weight: 600; }
.wizard .is-current .wizard__n { border-color: var(--brand); background: var(--brand); color: #FFFFFF; }
.wiz__meter { margin: 14px 8px 4px; }
.wizard__title { font-size: 1.3rem; margin-bottom: 4px; }
.wizard__sub { color: var(--muted); margin-bottom: 22px; }
.form--wizard .form__actions { justify-content: space-between; border-top: 1px solid var(--border-2); padding-top: 20px; margin-top: 26px; }
.form--wizard .form__actions .btn--primary { order: 3; margin-left: auto; min-width: 190px; }
.autosave { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--faint); }
.autosave .ico { width: 14px; height: 14px; }
.review-step { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; }
.review-step > header { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.review-step > header h3 { margin: 0; font-size: .95rem; }
.review-step .answers { padding: 4px 16px 10px; }
.review-step .fsection { display: none; }

/* calendar */
.cal-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cal h3 { font-size: .95rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal__dow { font-size: .68rem; font-weight: 700; color: var(--faint); text-align: center; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.cal__day { text-align: center; padding: 9px 0; border-radius: 8px; background: var(--surface-2); font-size: .86rem; color: var(--text-2); font-variant-numeric: tabular-nums; border: 1px solid var(--border-2); }
.cal__day.is-available { background: var(--good-bg); color: var(--good); font-weight: 700; border-color: var(--good-line); }
.cal__day.is-partial { background: var(--warn-bg); color: var(--warn); font-weight: 700; border-color: var(--warn-line); }
.cal__day.is-unavailable { background: var(--bad-bg); color: var(--bad); font-weight: 700; border-color: var(--bad-line); }
.cal__day.is-today { box-shadow: 0 0 0 2px var(--info) inset; }
.legend { list-style: none; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 16px 0 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; }
.legend .is-available { background: var(--good); } .legend .is-partial { background: var(--warn); } .legend .is-unavailable { background: var(--bad); }

/* notices, threads, files */
.notices { list-style: none; padding: 0; margin: 0; }
.notices li { display: flex; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--border-2); }
.notices li:last-child { border-bottom: 0; }
.notices li p { margin: 0; }
.notices li a { color: var(--text); text-decoration: none; }
.notices li a:hover { color: var(--accent); }
.notices li time { font-size: .78rem; color: var(--faint); }
.notices li.is-unread p { font-weight: 650; color: var(--heading); }
.notices li > .ico { color: var(--accent); background: var(--accent-soft); padding: 7px; width: 32px; height: 32px; border-radius: 9px; box-sizing: border-box; flex: none; border: 1px solid var(--accent-line); }
.thread { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.thread li { max-width: 82%; padding: 12px 16px; border-radius: 14px 14px 14px 4px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--text); }
.thread li.is-mine { align-self: flex-end; background: var(--accent-soft); border-color: var(--accent-line); border-radius: 14px 14px 4px 14px; }
.thread li.is-internal { background: var(--internal-bg); border: 1px dashed var(--internal-line); align-self: center; max-width: 95%; border-radius: 12px; }
.thread__who { font-size: .74rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.files, .resources { list-style: none; padding: 0; margin: 0; }
.files li, .resources li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-2); }
.files li:last-child, .resources li:last-child { border-bottom: 0; }
.files li .ico, .resources li > .ico { color: var(--info); }
.resources li span { flex: 1; font-weight: 600; }
.item-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.item-head h2 { margin: 8px 0 2px; font-size: 1.3rem; }
.ref { display: inline-block; background: var(--brand); color: #FFFFFF; font-weight: 700; font-size: .74rem; padding: 4px 10px; border-radius: 7px; letter-spacing: .06em; font-family: var(--mono); }
.back { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; font-size: .88rem; margin-bottom: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 20px; padding: 3px; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 11px; width: fit-content; max-width: 100%; }
.tabs a { padding: 7px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .86rem; border-radius: 8px; }
.tabs a:hover { color: var(--heading); }
.tabs a.is-active { color: var(--heading); background: var(--surface); box-shadow: var(--sh-1); }
.settings-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.settings-list li { padding: 8px 12px; border-radius: 9px; background: var(--surface-2); color: var(--faint); font-size: .88rem; border: 1px solid var(--border-2); }
.settings-list li.is-yes { background: var(--accent-soft); color: var(--accent); font-weight: 600; border-color: var(--accent-line); }
.checks-list { padding-left: 20px; }
.checks-list li { margin-bottom: 7px; }

/* professional profile header */
.pro-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 24px 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-2); margin-bottom: 20px; }
.pro-head > div:not(.actions) { flex: 1 1 320px; min-width: 0; }
.pro-head h2 { margin: 0 0 4px; font-family: var(--head); font-size: 1.45rem; font-weight: 700; }
.pro-head .meta { color: var(--muted); font-size: .92rem; }
.pro-head .actions { margin-left: auto; }
.verified { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.verified span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--good-bg); color: var(--good); border: 1px solid var(--good-line); }
.verified span.is-pending { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.verified .ico { width: 14px; height: 14px; }

/* ============ Public request forms ============ */
.pf-hero { background: radial-gradient(900px 380px at 100% -20%, rgba(17,134,127,.4), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgba(184,146,74,.16), transparent 60%), linear-gradient(160deg, var(--sidebar-a), var(--hero-a) 60%, var(--hero-b)); color: #D5E0EE; position: relative; overflow: hidden; }
.pf-page--urgent .pf-hero { background: radial-gradient(900px 380px at 100% -20%, rgba(200,16,46,.4), transparent 60%), linear-gradient(160deg, #161B2E, var(--hero-a) 60%, #34101F); }
.pf-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.pf-hero__in { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 50px 24px 88px; }
.pf-hero h1 { color: #FFFFFF; font-size: clamp(1.85rem, 3.2vw, 2.55rem); letter-spacing: -.03em; margin: 16px 0 12px; max-width: 22ch; }
.pf-hero p { color: #C5D3E4; max-width: 68ch; font-size: 1.02rem; }
.pf-trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: #E3EBF5; }
.pf-trust li { display: inline-flex; align-items: center; gap: 8px; }
.pf-trust .ico { width: 18px; height: 18px; color: #7FE0D6; }
.pf { max-width: 1240px; margin: -56px auto 60px; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; position: relative; z-index: 2; }
.pf-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 12px 32px 32px; }
.pf-step { padding: 26px 0 8px; border-bottom: 1px solid var(--border-2); }
.pf-step:last-of-type { border-bottom: 0; }
.pf-step > header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pf-step > header h2 { margin: 0; font-size: 1.1rem; }
.pf-num { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #FFFFFF; font-weight: 700; font-family: var(--head); flex: none; font-size: .9rem; }
.pf-page--urgent .pf-num { background: var(--red-fill); }
.pf-form .form__actions { border-top: 1px solid var(--border-2); padding-top: 22px; }
.pf-form .form__actions .btn { min-height: 50px; min-width: 260px; font-size: .98rem; }
.pf-page--urgent .pf-form .form__actions .btn--primary { background: var(--red-fill); }
.pf-page--urgent .pf-form .form__actions .btn--primary:hover { background: var(--red-fill-hover); }
.pf-aside { position: sticky; top: 90px; display: grid; gap: 16px; }
.pf-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 20px; }
.pf-card h3 { font-size: .98rem; margin-bottom: 14px; }
.pf-card .btn { margin-top: 6px; }
.pf-next { list-style: none; padding: 0; margin: 0; counter-reset: n; display: grid; gap: 14px; }
.pf-next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; font-size: .86rem; }
.pf-next li::before { content: counter(n); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; border: 1px solid var(--accent-line); }
.pf-next strong { color: var(--heading); font-weight: 600; }
.pf-next span { color: var(--muted); }
.pf-card--call { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.pf-card--call > .ico { width: 42px; height: 42px; padding: 10px; border-radius: 11px; background: var(--accent-fill); color: #FFFFFF; box-sizing: border-box; }
.pf-card--call div { display: flex; flex-direction: column; }
.pf-card--call a { font-family: var(--head); font-weight: 800; font-size: 1.2rem; color: var(--heading); text-decoration: none; }
.pf-card--call span { font-size: .8rem; color: var(--muted); }
.pf-aside .secure-note { justify-content: flex-start; text-align: left; margin: 0; align-items: flex-start; }
.pf-urgent { display: flex; gap: 14px; align-items: center; background: var(--red-fill); color: #FFFFFF; border-radius: var(--r-lg); padding: 15px 20px; margin-bottom: 18px; box-shadow: 0 12px 30px -16px rgba(200,16,46,.9); }
.pf-urgent a { color: #FFFFFF; font-weight: 800; }
.pf-urgent .ico { width: 24px; height: 24px; flex: none; }
.pf-done .card__body { text-align: center; padding: 40px 32px; }
.pf-done h1 { font-size: 1.65rem; }
.pf-done__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #FFFFFF; box-shadow: 0 0 0 8px var(--accent-soft); }
.pf-done__icon .ico { width: 30px; height: 30px; }
.pf-ref { font-size: .9rem; color: var(--muted); }
.pf-ref .ref { font-size: 1.05rem; padding: 6px 14px; margin-top: 6px; }
.pf-done .btn-row { justify-content: center; }
hr.sep { border: 0; border-top: 1px solid var(--border-2); margin: 16px 0; }
@media (max-width: 1024px) { .pf { grid-template-columns: 1fr; margin-top: -40px; } .pf-aside { position: static; } }
@media (max-width: 760px) { .pf-form { padding: 6px 18px 22px; } .pf-form .form__actions .btn { min-width: 0; width: 100%; } .pf-hero__in { padding: 36px 18px 70px; } }

/* ============ Responsive ============ */
@media (max-width: 1240px) { .secure-pill span { display: none; } .secure-pill { padding: 6px 8px; } }
@media (max-width: 1120px) {
  .wiz { grid-template-columns: 1fr; }
  .wiz__nav { position: static; }
  .wizard { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .wizard li > a, .wizard li > span { white-space: nowrap; }
  .wizard .wizard__l { display: none; }
  .wizard .is-current .wizard__l { display: inline; }
  .wiz__nav h3 { display: none; }
}
@media (max-width: 1024px) {
  .app, .portal--office { grid-template-columns: 1fr; background: none; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px); z-index: 70; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--sh-3); }
  .nav-toggle:checked ~ .sidebar { transform: none; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 65; }
  .nav-toggle:checked ~ .nav-scrim { display: block; }
  .topbar__menu { display: inline-flex; }
  .topbar { padding: 10px 18px; }
  .content { padding: 22px 18px 32px; }
  .app-foot { padding: 16px 18px 22px; }
  .auth { grid-template-columns: 1fr; gap: 24px; padding-top: 26px; }
  .auth__intro { padding: 30px 26px; }
  .usermenu > summary span:not(.avatar) { display: none; }
  .usermenu > summary { padding: 3px; }
  .crumbs > span:not(.sep), .crumbs .sep { display: none; }
  .secure-pill { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .site__nav a:not(.site__tel):not(.theme-toggle) { display: none; }
  .install-btn span { display: none; }
  .site__logo img { height: 32px; }
  .site__in { padding: 10px 16px; }
  .grid--2, .grid--3, .cal-wrap { grid-template-columns: 1fr; }
  .w50, .w40, .w33, .w25, .w20 { flex-basis: 100%; }
  .card__body { padding: 16px 16px 18px; }
  .card__head { padding: 16px 16px 12px; flex-direction: column; }
  .card--wizard .card__body { padding: 20px 16px; }
  .auth { padding-left: 16px; padding-right: 16px; }
  .auth__panel .card__head, .auth__panel .card__body { padding-left: 20px; padding-right: 20px; }
  .kv, .answers { grid-template-columns: 1fr; }
  .kv dt, .answers dt { border-bottom: 0; padding-bottom: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 4px 14px; }
  .table td::before { content: attr(data-label); display: block; font-size: .68rem; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  .table td[data-label=""]::before { content: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat__value { font-size: 1.5rem; }
  .thread li { max-width: 100%; }
  .form--wizard .form__actions .btn { flex: 1 1 100%; }
  .form--wizard .form__actions .btn--primary { order: -1; }
  .steps { flex-direction: column; gap: 12px; }
  .steps li { flex-direction: row; text-align: left; }
  .steps li::after { display: none; }
  .hero { padding: 22px; }
  .ring { width: 96px; height: 96px; } .ring > div { width: 74px; height: 74px; }
  .toast { left: 12px; right: 12px; top: 74px; }
  .page-head { margin-bottom: 18px; }
  .codes { grid-template-columns: 1fr; }
  .narrow { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; --bg: #fff; --surface: #fff; --text: #000; --heading: #000; --muted: #333; --border: #ccc; --border-2: #ddd; }
  .sidebar, .topbar, .site, .foot, .app-foot, form, .toast, .theme-toggle { display: none !important; }
  .app { display: block; background: none; } .card { box-shadow: none; }
}

/* ============ Jobs board (public /jobs) ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.jb-hero .pf-hero__in { padding-bottom: 44px; }
.jb-hero h1 { max-width: 28ch; }
.jb-search { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 10px; background: var(--surface); border-radius: var(--r-xl); padding: 10px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); }
.jb-s { position: relative; display: flex; align-items: center; margin: 0; }
.jb-s .ico { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.jb-s input, .jb-s select { width: 100%; height: 50px; border: 1px solid var(--border); border-radius: var(--r); background: var(--input-bg); color: var(--text); font: inherit; padding: 0 14px; }
.jb-s input { padding-left: 42px; }
.jb-s input:focus, .jb-s select:focus, .jb-f select:focus { outline: 3px solid var(--accent-line); border-color: var(--accent); }
.jb-search > .btn { height: 50px; padding: 0 22px; }
.jb-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 4px 4px 2px; }
.jb-f { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); min-width: 170px; flex: 1 1 170px; margin: 0; }
.jb-f select { height: 40px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--input-bg); color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; padding: 0 10px; }
.jb-clear { font-size: .88rem; font-weight: 600; color: var(--accent); padding: 0 4px 10px; white-space: nowrap; }
.jb-wrap { max-width: 1240px; margin: 28px auto 60px; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.jb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.jb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .88rem; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.jb-chip em { font-style: normal; font-size: .75rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 7px; }
.jb-chip:hover { border-color: var(--accent); }
.jb-chip.is-on { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.jb-chip.is-on em { background: rgba(255,255,255,.2); color: #fff; }
.jb-count { margin: 0 0 14px; color: var(--muted); }
.jb-count strong { color: var(--heading); }
.jb-list { display: grid; gap: 14px; }
.jb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh-2); transition: border-color .18s, box-shadow .18s, transform .18s; }
.jb-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 18px 36px -20px rgba(2,42,87,.35); }
.jb-card.is-featured { border-left: 4px solid var(--accent); }
.jb-card__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.jb-role { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.jb-flag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
.jb-flag .ico { width: 13px; height: 13px; }
.jb-flag--ok { background: var(--good-bg); color: var(--good-ink); }
.jb-card__t { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.3; }
.jb-card__t a { color: var(--heading); text-decoration: none; }
.jb-card__t a:hover { color: var(--accent); }
.jb-card__loc { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--text-2); font-size: .92rem; }
.jb-card__loc .ico { width: 16px; height: 16px; color: var(--accent); }
.jb-card__pay { margin: 0 0 10px; font-weight: 700; color: var(--heading); }
.jb-card__sum { margin: 0 0 12px; color: var(--text-2); }
.jb-meta { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); }
.jb-meta li { display: inline-flex; align-items: center; gap: 6px; }
.jb-meta .ico { width: 15px; height: 15px; }
.jb-card__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-2); padding-top: 12px; }
.jb-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 22px 0 0; color: var(--muted); }
.jb-empty { text-align: center; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: 40px 24px; }
.jb-empty .ico { width: 34px; height: 34px; color: var(--accent); }
.jb-empty h2 { margin: 10px 0 8px; font-size: 1.2rem; }
.jb-empty p { max-width: 560px; margin: 0 auto 16px; color: var(--text-2); }
.jb-empty .btn-row { justify-content: center; }
.jb-aside { display: grid; gap: 14px; position: sticky; top: 20px; }
.jb-aside h3, .jb-apply h3 { margin: 0 0 8px; font-size: 1.05rem; }
.jb-back { margin: 0 0 12px; }
.jb-back a { color: #CFE3F5; font-weight: 600; text-decoration: none; }
.jb-back a:hover { text-decoration: underline; }
.jb-hero--job .pf-hero__in { padding-bottom: 88px; }
.jb-hero__meta { margin-top: 14px; }
.jb-advert .card__body { padding: 28px; }
.jb-advert h2 { font-size: 1.1rem; margin: 24px 0 10px; }
.jb-lead { font-size: 1.08rem; font-weight: 500; color: var(--heading); }
.jb-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.jb-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.jb-ticks .ico { width: 18px; height: 18px; color: var(--accent); flex: 0 0 18px; margin-top: 2px; }
.jb-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jb-tags li { padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .86rem; font-weight: 600; }
.jb-note { display: flex; gap: 12px; margin-top: 26px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border-2); font-size: .9rem; color: var(--text-2); }
.jb-note .ico { flex: 0 0 20px; color: var(--accent); }
.jb-note p { margin: 0; }
.jb-apply .btn { width: 100%; justify-content: center; }
.jb-apply .form__actions { margin-top: 10px; }
.jb-signin { margin: 12px 0 0; }
.apply-job { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 16px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.apply-job .ico { color: var(--accent); flex: 0 0 20px; margin-top: 2px; }
.apply-job div { display: flex; flex-direction: column; gap: 2px; }
.apply-job strong { color: var(--heading); }
@media (max-width: 1024px) { .jb-wrap { grid-template-columns: 1fr; } .jb-aside { position: static; } }
@media (max-width: 760px) {
  .jb-search { grid-template-columns: 1fr; border-radius: var(--r-lg); }
  .jb-f { flex: 1 1 100%; }
  .jb-wrap { padding: 0 16px; margin-top: 20px; }
  .jb-card { padding: 18px; }
  .jb-card__foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .jb-card, .jb-chip { transition: none; } .jb-card:hover { transform: none; } }
.jb-upd { display: flex; flex-direction: column; gap: 6px; min-width: 210px; }
.jb-upd select, .jb-upd input { width: 100%; }
.jb-upd-form .form__actions { margin-top: 6px; }
