/* Alieia – shared stylesheet. Visual language matches the Base44 prototype
   (navy sidebar, IBM Plex Sans, 12px cards, small uppercase stat labels).
   No inline styles/scripts anywhere: the CSP forbids them. */

/* IBM Plex Sans, self-hosted (same files as the INE GSEE app; no external font host).
   Greek and Latin subsets, weights 400/500/600/700. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-greek-500-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-greek-600-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/ibm-plex-sans-greek-700-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-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: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-700-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; }

:root {
  --navy: #0f2a44;            /* primary, sidebar, buttons */
  --navy-2: #173a5e;          /* sidebar active / hover */
  --navy-line: #254a70;
  --gold: #c9a227;            /* brand accent */
  --bg: #f7f9fa;
  --card: #ffffff;
  --text: #1b2532;
  --muted: #637083;
  --border: #dde2e9;
  --input-border: #d3dae3;
  --ring: rgba(15, 42, 68, .25);
  --ok: #16875a;      --ok-bg: #e8f6ef;     --ok-line: #bfe6d2;
  --bad: #d12f3a;     --bad-bg: #fdecee;    --bad-line: #f6c4c8;
  --warn: #d97706;    --warn-bg: #fff6e5;   --warn-line: #fcd34d;
  --info: #1d5fa8;    --info-bg: #eaf3fc;   --info-line: #b9d6f2;
  --violet: #5b3fc2;  --violet-bg: #f0ecfc; --violet-line: #d5cbf5;
  --radius: 12px;
  --radius-sm: 7.6px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}

/* ---------- typography ---------- */
h1, h2, h3 { color: var(--text); line-height: 1.25; margin: 0; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; }
h1 small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: .4rem; }
h2 { font-size: 15px; font-weight: 600; margin-bottom: .75rem; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.muted, .hint { color: var(--muted); font-size: 13px; }
.hint { line-height: 1.5; }

/* page heading block (title + subtitle, with a divider like the prototype) */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.page-head p { margin: .35rem 0 0; color: var(--muted); }
main > h1, .app-main > h1, .applicant-main > h1 { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

/* ---------- buttons ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1; height: 32px; padding: 0 12px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
button:hover, .btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.btn.secondary, button.secondary, .btn-outline {
  background: var(--card); color: var(--text); border-color: var(--input-border); box-shadow: 0 1px 2px rgba(15, 42, 68, .05);
}
.btn.secondary:hover, button.secondary:hover, .btn-outline:hover { background: var(--bg); color: var(--text); border-color: var(--navy); }
.linklike { background: none; border: 0; box-shadow: none; height: auto; padding: 8px 12px; color: inherit; font-size: 13px; font-weight: 400; }
.linklike:hover { background: rgba(255, 255, 255, .08); border: 0; }

/* ---------- forms ---------- */
label { font-size: 12px; font-weight: 500; color: var(--text); }
form p { margin: 0 0 14px; }
form p > label { display: block; margin-bottom: 6px; }
form p:has(> input[type=checkbox]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 8px; }
form p:has(> input[type=checkbox]) > label { margin: 0; }
form p:has(> input[type=checkbox]) > input { margin-top: 2px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea {
  display: block; font: inherit; font-size: 14px; color: var(--text); background: var(--card);
  border: 1px solid var(--input-border); border-radius: var(--radius-sm);
  padding: 4px 12px; height: 36px; max-width: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { font-size: 13px; background: var(--bg); padding-right: 8px; box-shadow: none; }
textarea { height: auto; min-height: 7rem; padding: 8px 12px; width: 100%; resize: vertical; }
form p input:not([type=checkbox]):not([type=radio]):not([type=file]), form p select { width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--ring); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--navy); vertical-align: -3px; margin: 0 .35rem 0 0; }
input[type=file] { font: inherit; font-size: 13px; max-width: 100%; }
input::placeholder { color: #94a0b0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 12px; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 6px; }
.helptext { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.errorlist { list-style: none; margin: 6px 0; padding: 6px 10px; color: var(--bad); background: var(--bad-bg);
  border: 1px solid var(--bad-line); border-radius: var(--radius-sm); font-size: 12px; }
.radio-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.radio-list li { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
.radio-list label { font-size: 14px; font-weight: 400; }
.readonly-value { font-weight: 600; }
.required { font-size: 11px; font-weight: 500; color: var(--bad); }

/* show/hide password button (core/password-toggle.js) */
.pw-wrap { position: relative; display: block; max-width: 100%; width: 100%; }
.pw-wrap input { padding-right: 44px !important; width: 100%; }
.pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 30px; height: 28px; padding: 0;
  background: transparent; color: var(--muted); border: 0; box-shadow: none;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--text); background: var(--bg); border: 0; }

/* registry-derived, locked values (applications step 2) */
.locked-group { display: grid; gap: 12px 16px; margin: 0 0 14px; grid-template-columns: 1fr 1fr; }
.locked-field label { display: block; margin-bottom: 6px; }
input.locked { width: 100%; background: var(--bg) !important; color: var(--text); border: 1px dashed #9fb0c3 !important;
  cursor: not-allowed; font-weight: 600; box-shadow: none !important; }

/* ---------- messages, notices, badges ---------- */
.msg { padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: 13px;
  background: var(--info-bg); color: var(--info); border: 1px solid var(--info-line); }
.msg.error { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.msg.success { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.msg.warning { background: var(--warn-bg); color: #8a4b00; border-color: var(--warn-line); }
.msg.success strong { color: inherit; }
.notice { background: var(--info-bg); border: 1px solid var(--info-line); color: var(--text);
  padding: 10px 14px; margin: 0 0 16px; border-radius: var(--radius-sm); font-size: 13px; }
blockquote, .declaration-text { margin: 0 0 12px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border);
  border-left: 3px solid var(--navy); border-radius: var(--radius-sm); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 500;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; line-height: 18px; }
.badge.ok, .badge.st-approved, .badge.st-completed { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.bad, .badge.st-rejected { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.badge.warn, .badge.st-clarification_needed, .badge.st-objection { background: var(--warn-bg); color: #9a5b0b; border-color: var(--warn-line); }
.badge.st-submitted, .badge.st-ready_for_decision { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge.st-preliminary_check, .badge.st-under_evaluation { background: var(--violet-bg); color: var(--violet); border-color: var(--violet-line); }
.badge.st-draft { background: var(--bg); color: var(--muted); }
.badge.demo, .badge.warn.demo { background: var(--warn-bg); color: #9a5b0b; border: 1px dashed var(--warn-line); border-radius: 4px; font-size: 10px; font-weight: 600; padding: 0 6px; margin-left: 4px; }

.demo-banner { margin: 0 0 20px; padding: 10px 14px; border: 1px dashed var(--warn-line); background: var(--warn-bg);
  color: #8a4b00; border-radius: var(--radius); font-size: 13px; }
.demo-banner b { font-weight: 600; }
.progress { background: var(--border); border-radius: 999px; height: 8px; overflow: hidden; }
.progress > div { background: var(--navy); height: 8px; border-radius: 999px; }

/* ---------- cards & tables ---------- */
.card, section.card, .table-wrap {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 1px 2px rgba(15, 42, 68, .04); margin-bottom: 16px;
}
.card h2 { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.card h2:only-child { border: 0; padding: 0; margin: 0; }
table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 13px; margin-bottom: 16px;
}
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: var(--bg); color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; padding: 10px 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table > tr:hover td { background: #fafbfc; }
td a { font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }
dl { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 8px 20px; margin: 0; font-size: 13px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* filter bars */
form.card { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; }
form.card input, form.card select { flex: 1 1 180px; min-width: 0; height: 36px; }
form.card label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
form.card label input[type=date] { flex: 0 0 auto; }

/* stat cards (dashboard) */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; display: block; text-decoration: none; color: inherit; }
a.stat:hover { border-color: #b6c2d1; }
.stat-label { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.stat-value { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.stat.ok .stat-value { color: var(--ok); } .stat.bad .stat-value { color: var(--bad); } .stat.warn .stat-value { color: var(--warn); }
.stat.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.stat.dark .stat-label { color: #9fb6cf; }

/* ---------- shell: sidebar + page (staff and applicant) ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 243px; flex: none; background: var(--navy); color: #fff; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 17px; border-bottom: 1px solid var(--navy-line);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; line-height: 1.25; }
.sidebar .brand-logo { width: 32px; height: 32px; flex: none; border-radius: 9.6px; background: rgba(255, 255, 255, .95); color: var(--navy);
  display: grid; place-items: center; font-size: 18px; border: 0; }
.sidebar .brand small { display: block; color: var(--gold); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; flex: 1; }
.nav a, .nav .disabled, .nav .group {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 9.6px;
  font-size: 13px; color: rgba(255, 255, 255, .65); text-decoration: none; border: 0;
}
.nav a { transition: background-color .15s ease, color .15s ease; position: relative; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav .disabled { opacity: .4; }
.nav .group { margin-top: 2px; color: rgba(255, 255, 255, .65); }
.nav .sub { margin-left: 17px; padding: 6px 12px 6px 18px; font-size: 12px; color: rgba(255, 255, 255, .5); border-radius: 0 9.6px 9.6px 0; border-left: 1px solid var(--navy-line); }
.nav .sub:hover { border-radius: 0 9.6px 9.6px 0; }
.nav svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar .user { display: flex; align-items: center; gap: 10px; padding: 14px 14px; border-top: 1px solid var(--navy-line); }
.sidebar .avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.sidebar .user-text { flex: 1; min-width: 0; line-height: 1.3; }
.sidebar .user-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .user-role { font-size: 11px; color: rgba(255, 255, 255, .5); }
.sidebar .user form { margin: 0; }
.sidebar .user .linklike { padding: 6px; color: rgba(255, 255, 255, .6); border-radius: 6px; }
.sidebar .user .linklike svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }

.page { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1480px; padding: 40px 28px 32px; }
.app-footer { padding: 14px 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.app-footer a { color: var(--muted); }

/* applicant pages share the shell; forms are cards */
.applicant-main { max-width: 960px; margin-left: auto; margin-right: auto; }
/* signed-out applicant pages (register, set password, …): one centred column */
.layout.public { justify-content: center; }
.layout.public .page { max-width: 560px; margin: 0 auto; }
.layout.public .applicant-main { padding-top: 24px; }
.public-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; color: var(--navy);
  text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.25; }
.public-brand .brand-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 22px; }
.public-brand small { display: block; color: var(--gold); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.layout.public .app-footer { text-align: center; border-top: 0; }
.applicant-main > form, .applicant-main > .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 42, 68, .04); padding: 20px; margin-bottom: 16px; }
.applicant-main > form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; align-items: start; }
.applicant-main > form > *:not(fieldset) { grid-column: 1 / -1; }
.applicant-main > form > fieldset:has(textarea),
.applicant-main > form > fieldset:has(blockquote),
.applicant-main > form > fieldset:has(.radio-list),
.applicant-main > form > fieldset:has(input[type=radio]),
.applicant-main > form > fieldset:has(ul),
.applicant-main > form > fieldset:has(table) { grid-column: 1 / -1; }
.applicant-main > form fieldset input:not([type=checkbox]):not([type=radio]):not([type=file]), .applicant-main > form fieldset select { width: 100%; }
.applicant-main > form .wizard-buttons { margin: 4px 0 0; }
.applicant-main > form > button { justify-self: start; }
.applicant-main > p:last-of-type { margin-bottom: 0; }

/* wizard stepper – a real sequence, so the steps are numbered */
.wizard-nav { margin: 0 0 20px; }
.wizard-nav ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.wizard-nav li > * { counter-increment: step; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted);
  font-size: 12px; font-weight: 400; text-decoration: none; white-space: nowrap; }
.wizard-nav li > *::before { content: counter(step); font-weight: 500; }
.wizard-nav a { color: var(--text); }
.wizard-nav a:hover { border-color: var(--navy); }
.wizard-nav .current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
.wizard-nav .disabled { color: #a3adba; }

.wizard-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.wizard-buttons a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); background: var(--card); color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 500; }
.wizard-buttons a:hover { border-color: var(--navy); }
.wizard-buttons button[value=save] { background: var(--card); color: var(--text); border-color: var(--input-border); box-shadow: 0 1px 2px rgba(15, 42, 68, .05); }
.wizard-buttons button[value=save]:hover { background: var(--bg); border-color: var(--navy); color: var(--text); }
.wizard-buttons button[value=next] { margin-left: auto; }
.document-type { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.document-list { list-style: none; padding: 0; margin: 0 0 10px; }
.document-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.document-list form { margin: 0; }
.inline-form { display: inline; }

/* ---------- sign-in / registration ---------- */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: var(--bg); }
body.auth .card { width: min(100%, 400px); padding: 32px 28px; border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 42, 68, .1); }
body.auth .card::before { content: "\2693"; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: 26px; }
body.auth h2 { font-size: 20px; text-align: center; border: 0; padding: 0; margin-bottom: 14px; }
body.auth .hint { text-align: center; }
body.auth button:not(.pw-toggle) { width: 100%; height: 40px; font-size: 13px; }
body.auth .card > p:last-child { text-align: center; font-size: 12px; margin: 14px 0 0; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .nav { flex-direction: row; flex-wrap: wrap; padding: 8px 12px; }
  .nav .sub { margin-left: 0; border-left: 0; }
  .nav a.active::before { display: none; }
  main { padding: 24px 14px; }
  .applicant-main > form, .locked-group { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 8px; }
  h1 { font-size: 24px; }
}
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .sidebar, .app-footer, .wizard-buttons { display: none; } body { background: #fff; } }
