/* Blink licensing: the Blink console's identity (ui/src/app.css), so the
   portal and the admin pages read as the same product. The four IZT
   swatches (Classic Blue, Antic Cuir, Navy, Charcoal) plus the derived
   blue ramp; small blue text uses --text-accent (AA on white), never
   Classic Blue. Poppins and JetBrains Mono are self-hosted (font-src
   'self'). No JavaScript: every control here is a plain form, link or
   <details>. */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/poppins-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  /* Brand (digital RGB values of the IZT brand book) */
  --izt-classic-blue: #5499d8;
  --izt-antic-cuir: #33608e;
  --izt-navy: #004b92;
  --izt-charcoal: #212222; /* text; never pure black */
  --text-accent: #2f6ba6; /* small blue text, 5.56:1 on white */
  --text-accent-on-navy: #a6c9eb;

  /* Blue scale */
  --blue-50: #ebf3fb;
  --blue-100: #d2e4f5;
  --blue-200: #a6c9eb;
  --blue-300: #79aee0;
  --blue-400: #5499d8;
  --blue-500: #3f84c6;
  --blue-600: #33608e;
  --blue-700: #1e5294;
  --blue-800: #004b92;
  --blue-900: #023571;
  --blue-950: #022049;

  /* Neutrals (cool-leaning so they sit next to the blues) */
  --n-0: #ffffff;
  --n-50: #f7f8fa;
  --n-100: #eef0f4;
  --n-200: #dde1e8;
  --n-300: #c2c8d2;
  --n-400: #969da9;
  --n-500: #6b7280;
  --n-600: #4a4f58;
  --n-700: #353941;
  --n-800: #26282e;
  --n-900: #212222;

  /* Semantic */
  --success: #1f9d55;
  --success-bg: #e6f4ec;
  --warning: #c8870c;
  --warning-text: #7a5205;
  --warning-bg: #fff4d6;
  --danger: #c0392b;
  --danger-bg: #fbeae8;
  --info: var(--text-accent);
  --info-bg: var(--blue-50);

  /* Type */
  --font: 'Poppins', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, 'Liberation Mono', monospace;

  /* Shape */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-xl: 0 24px 56px rgba(20, 40, 80, 0.14), 0 8px 20px rgba(20, 40, 80, 0.08);
  --focus-ring: 0 0 0 2px #fff, 0 0 0 4px var(--izt-navy);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 120ms;
  --base: 200ms;

  /* Roles */
  --canvas: #f6f7f9;
  --surface: var(--n-0);
  --surface-2: var(--n-50);
  --line: var(--n-200);
  --line-strong: var(--n-300);
  --text: var(--izt-charcoal);
  --text-2: var(--n-600);
  --muted: var(--n-500);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

h1 { font-size: 22px; line-height: 1.2; font-weight: 800; text-transform: uppercase; color: var(--izt-navy); margin: 0; }
h2 { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--text); margin: 0; }
h3 { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--text); margin: 0; }
p { margin: 0; }
.eyebrow {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--izt-antic-cuir);
}

a { color: var(--izt-navy); font-weight: 500; text-decoration: none; }
a:hover { color: var(--text-accent); text-decoration: underline; }
.linkbtn {
  border: 0; background: none; padding: 0;
  font: inherit; font-weight: 500; color: var(--izt-navy); cursor: pointer;
}
.linkbtn:hover { color: var(--text-accent); text-decoration: underline; }

button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.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;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  padding: 8px 14px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--izt-navy); font-weight: 600;
}
.skip:focus { top: 12px; }

svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.lg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 0 14px;
  border: 1px solid var(--izt-navy); border-radius: var(--r-sm);
  background: var(--izt-navy); color: #fff;
  font: 600 13px/1 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:hover { background: var(--blue-900); border-color: var(--blue-900); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: var(--n-50); border-color: var(--n-400); color: var(--text); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--n-100); color: var(--text); }
.btn.danger { background: var(--surface); border-color: var(--line-strong); color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); border-color: #e5b4ae; color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger.solid:hover { background: #a82f22; border-color: #a82f22; }
.btn.small { min-height: 28px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.btn.big { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---------- Form controls ---------- */
input[type='text'], input[type='password'], input[type='number'], input[type='date'], input:not([type]), select, textarea {
  width: 100%; min-height: 34px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 6px 11px; font-size: 13.5px; line-height: 1.4;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
textarea { min-height: 72px; resize: vertical; }
select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url('chevron.svg');
  background-repeat: no-repeat; background-position: right 10px center;
}
input::placeholder, textarea::placeholder { color: var(--n-400); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--izt-navy); box-shadow: 0 0 0 3px rgba(0, 75, 146, 0.14);
}
input:disabled { background: var(--n-50); color: var(--n-400); }
input[type='checkbox'] { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--izt-navy); cursor: pointer; flex: none; }
input.mono { font-family: var(--mono); }
input.short { width: 9ch; min-width: 9ch; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--danger); font-weight: 500; display: flex; align-items: flex-start; gap: 6px; }
.field .err svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; min-height: 34px; align-items: center; }
.checks.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 10px; }
.row-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 12px; }
.row-form .field { flex: 1 1 160px; }
.row-form .field.fit { flex: 0 0 auto; }
form.inline { display: inline; }

/* File drop area: the native input, styled; it still takes a dropped file. */
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 18px; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text-2); cursor: pointer;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.drop:hover, .drop:focus-within { border-color: var(--izt-navy); background: var(--blue-50); }
.drop .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--surface); color: var(--izt-navy); border: 1px solid var(--line); }
.drop .t { font-weight: 600; color: var(--text); font-size: 14px; }
.drop input[type='file'] { max-width: 100%; font-size: 13px; color: var(--text-2); }
.drop input[type='file']:focus-visible { box-shadow: none; }
.drop input[type='file']::file-selector-button {
  margin-right: 10px; min-height: 32px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: 600 13px/1 var(--font);
  box-shadow: var(--shadow-sm);
}
.drop input[type='file']::file-selector-button:hover { background: var(--n-50); border-color: var(--n-400); }

/* ---------- Surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 20px; min-width: 0;
}
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.card.flush > .card-head { padding: 16px 20px 0; }
.card-head p { font-size: 13px; color: var(--muted); margin-top: 2px; max-width: 62ch; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--n-100); font-size: 13px; }
.card.danger-zone { border-color: #eccbc7; }
.card.danger-zone h2 { color: var(--danger); }
.card .body { padding: 16px 20px 20px; }

.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--blue-50); color: var(--izt-navy);
  font-size: 13.5px; line-height: 1.5;
}
.callout > svg { margin-top: 2px; }
.callout .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.callout strong { font-weight: 600; }
.callout.warning { background: var(--warning-bg); color: var(--warning-text); }
.callout.danger { background: var(--danger-bg); color: #9b2c20; }
.callout.success { background: var(--success-bg); color: #176f3d; }
.callout a { color: inherit; text-decoration: underline; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat { padding: 14px 18px; border-left: 1px solid var(--n-100); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 600; line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums; }
.stat .value.small { font-size: 16px; line-height: 1.6; padding-top: 6px; }
.stat .sub { font-size: 12px; color: var(--muted); }
.stat .value.warn { color: var(--warning-text); }
.stat .value.bad { color: var(--danger); }

/* ---------- Tables ---------- */
/* Scroll cue: an edge shadow shows while more columns are hidden that side
   (the covers scroll with the content, the shadows stay with the box). */
.table-wrap {
  width: 100%; overflow-x: auto;
  background:
    linear-gradient(to right, var(--surface) 40%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 40%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
    linear-gradient(to right, rgba(0, 38, 77, 0.12), rgba(0, 38, 77, 0)) left center / 12px 100% no-repeat scroll,
    linear-gradient(to left, rgba(0, 38, 77, 0.12), rgba(0, 38, 77, 0)) right center / 12px 100% no-repeat scroll;
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--n-100); vertical-align: middle; white-space: nowrap; }
th { padding-top: 9px; padding-bottom: 9px; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--n-50); border-bottom-color: var(--line); }
td.wrap { white-space: normal; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions, th.actions { text-align: right; width: 1%; }
td.actions form + form { margin-left: 6px; }
td.detail { white-space: normal; min-width: 260px; }
table.audit td { vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--n-50); }
tr.dim td { color: var(--muted); }
tr.dim .cell-title { color: var(--text-2); }
tr.dim a.cell-title { color: var(--izt-navy); }
tr.flag td { background: var(--warning-bg); }
tr.flag:hover td { background: #fdecc0; }
tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
.cell-title { font-weight: 600; color: var(--text); }
a.cell-title { color: var(--izt-navy); }
.cell-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.table-note { padding: 10px 20px; font-size: 12.5px; color: var(--text-2); border-top: 1px solid var(--n-100); }
.empty-row td { padding: 0; }
.empty-row:hover td { background: none; }

/* ---------- Key/value lists ---------- */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 9px 20px; margin: 0; font-size: 13.5px; }
dl.facts dt { color: var(--text-2); font-size: 12.5px; font-weight: 500; padding-top: 1px; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
dl.facts.boxed { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 1px 10px; margin: 0; font-size: 12px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; color: var(--text); }
ul.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Text helpers ---------- */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sha { font-family: var(--mono); font-size: 12px; word-spacing: 0.15em; color: var(--text-2); }
code { font-family: var(--mono); font-size: 0.92em; background: var(--n-100); padding: 0.1em 0.4em; border-radius: var(--r-xs); }
.lead { font-size: 14.5px; color: var(--text-2); max-width: 64ch; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 1px 8px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; line-height: 1.7;
  background: var(--n-100); color: var(--n-600);
  white-space: nowrap; vertical-align: middle; text-transform: none; letter-spacing: 0;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.plain::before { display: none; }
.pill.success { background: var(--success-bg); color: #177a42; }
.pill.warning { background: var(--warning-bg); color: var(--warning-text); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }
.pill.info { background: var(--info-bg); color: var(--text-accent); }
.pill.navy { background: var(--izt-navy); color: #fff; }
.pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Empty ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 20px; color: var(--muted); font-size: 13.5px; }
.empty .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-50); color: var(--izt-navy); margin-bottom: 6px; }
.empty h3 { color: var(--text); }

/* ---------- Numbered steps (the join page's) ---------- */
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
ol.steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; padding-top: 2px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--izt-navy);
}
ol.steps b, ol.steps strong { color: var(--text); font-weight: 600; }
ol.steps.quiet li::before { background: var(--blue-50); color: var(--izt-navy); }
.path { font-weight: 600; color: var(--text); white-space: nowrap; }

/* ---------- Progress through a portal flow ---------- */
ol.progress { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
ol.progress li { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
ol.progress li::after { content: ''; flex: 1; height: 1px; background: var(--line); min-width: 12px; }
ol.progress li:last-child { flex: 0 0 auto; }
ol.progress li:last-child::after { display: none; }
ol.progress .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--muted); font-size: 12px; flex: none; background: var(--surface); }
ol.progress .n svg { width: 13px; height: 13px; stroke-width: 3; }
ol.progress li.done { color: var(--text-2); }
ol.progress li.done .n { background: var(--blue-50); border-color: var(--blue-50); color: var(--izt-navy); }
ol.progress li.now { color: var(--izt-navy); }
ol.progress li.now .n { background: var(--izt-navy); border-color: var(--izt-navy); color: #fff; }
ol.progress li.error { color: var(--danger); }
ol.progress li.error .n { background: var(--danger); border-color: var(--danger); color: #fff; }
ol.progress li.error .n svg { stroke-width: 2.5; width: 15px; height: 15px; }

/* ---------- Code shown once ---------- */
.reveal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 12px 0 4px; }
.reveal .secret {
  font: 500 28px/1.25 var(--mono); letter-spacing: 0.06em; color: var(--izt-navy);
  padding: 16px 20px; border: 1.5px dashed var(--blue-200); border-radius: var(--r-md);
  background: var(--blue-50); user-select: all; overflow-wrap: anywhere; max-width: 100%;
}
.secret-inline .nw { white-space: nowrap; }
.secret-inline { font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: var(--izt-navy); user-select: all; overflow-wrap: anywhere; }

details > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--izt-navy); list-style: none; display: flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: ''; width: 8px; height: 8px; flex: none; margin: 0 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--fast) var(--ease);
}
details[open] > summary::before { transform: rotate(45deg); }
details.disclosure > .body { padding-top: 12px; }
details.danger > summary { color: var(--danger); }

/* =====================================================================
   Portal shell: the join page's navy band with the card over it.
   ===================================================================== */
.pt { min-height: 100vh; display: flex; flex-direction: column; }
.band {
  position: relative; overflow: hidden;
  background: var(--izt-navy); color: #fff;
  padding: 0 clamp(16px, 4vw, 48px) 128px;
}
.band-mark { position: absolute; width: 640px; height: 640px; right: -140px; top: -110px; pointer-events: none; }
.band-top {
  position: relative; display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap;
  max-width: 1040px; margin: 0 auto; padding: 22px 0;
}
.band-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.band-brand:hover { text-decoration: none; }
.band-brand img { display: block; height: 34px; width: auto; }
.band-brand .product { font-size: 15px; font-weight: 600; color: var(--text-accent-on-navy); padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.22); line-height: 26px; }
.pnav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.pnav a { color: rgba(255, 255, 255, 0.78); font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: var(--r-sm); }
.pnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.pnav a[aria-current] { color: var(--izt-navy); background: #fff; }
.band-intro {
  position: relative; max-width: 720px; margin: 0 auto; padding-top: clamp(16px, 4vh, 40px);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.band-intro .eyebrow { color: var(--text-accent-on-navy); }
.band-intro h1 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.12; }
.band-intro p { color: var(--blue-100); font-size: 15.5px; max-width: 60ch; text-wrap: balance; }

.pmain { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 16px 48px; }
.sheet {
  position: relative; width: 100%; max-width: 640px; margin-top: -96px;
  padding: 32px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; gap: 22px;
}
.sheet.wide { max-width: 960px; }
.sheet h2 { font-size: 16px; }
.sheet .section { display: flex; flex-direction: column; gap: 12px; }
.sheet .section + .section { padding-top: 20px; border-top: 1px solid var(--n-100); }
.sheet .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ref { font-size: 12.5px; color: var(--text-2); }

.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
a.task {
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  color: var(--text); font-weight: 400; text-decoration: none;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
a.task:hover { border-color: var(--blue-300); background: var(--blue-50); text-decoration: none; color: var(--text); }
a.task .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--blue-50); color: var(--izt-navy); margin-bottom: 4px; }
a.task:hover .ico { background: var(--surface); }
a.task h2 { color: var(--izt-navy); display: flex; align-items: center; gap: 6px; }
a.task h2 svg { width: 15px; height: 15px; transition: transform var(--fast) var(--ease); }
a.task:hover h2 svg { transform: translateX(2px); }
a.task p { font-size: 13.5px; color: var(--text-2); }
a.task .need { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 4px; }

progress.bar { appearance: none; width: 100%; height: 8px; border: 0; border-radius: var(--r-pill); background: var(--n-100); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--n-100); border-radius: var(--r-pill); }
progress.bar::-webkit-progress-value { background: var(--izt-navy); border-radius: var(--r-pill); }
progress.bar::-moz-progress-bar { background: var(--izt-navy); border-radius: var(--r-pill); }

.pfoot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 32px;
  font-size: 12.5px; color: var(--text-2);
}
.pfoot .maker { display: flex; align-items: center; gap: 14px; }
/* The IZT Apps logo keeps its clear zone (about the height of the Z). */
.pfoot .maker img { display: block; height: 22px; width: auto; margin: 6px 6px 6px 0; }
.pfoot .maker span { padding-left: 14px; border-left: 1px solid var(--line); }

/* ---------- Additions for the license pages ---------- */
.ico svg.i, .empty .ico svg.i { width: 20px; height: 20px; }
.wrapall { overflow-wrap: anywhere; word-break: break-all; }
.wrap-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Narrow screens ---------- */
@media (max-width: 640px) {
  .band { padding: 0 16px 112px; }
  .band-top { padding: 16px 0 12px; gap: 12px; }
  .band-brand img { height: 28px; }
  .band-brand .product { font-size: 14px; padding-left: 12px; }
  .pnav { margin-left: 0; width: 100%; gap: 2px; }
  .pnav a { padding: 8px 10px; font-size: 13px; }
  .band-intro { padding-top: 8px; }
  .band-intro h1 { font-size: 22px; }
  .band-intro p { font-size: 14px; }
  .band-mark { width: 420px; height: 420px; right: -170px; top: -60px; }
  .sheet { margin-top: -84px; padding: 22px 18px; gap: 20px; border-radius: var(--r-lg); }
  .tasks { grid-template-columns: minmax(0, 1fr); }
  .sheet .actions .btn, .sheet .actions form, .sheet form > .btn { width: 100%; }
  .sheet .actions form .btn { width: 100%; }
  ol.progress li:not(.now):not(.error) .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .btn { min-height: 40px; }
  .btn.small { min-height: 36px; }
  input[type='text'], input[type='password'], input[type='number'], input[type='date'], input:not([type]), select { min-height: 40px; font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--n-100); padding: 12px 14px; }
  .stat:nth-child(even) { border-left: 1px solid var(--n-100); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat .value { font-size: 22px; }
  dl.facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  dl.facts dd { margin-bottom: 8px; }
  .reveal .secret { font-size: 20px; padding: 14px; }
  .row-form .field, .row-form .field.fit { flex: 1 1 100%; }
  .row-form .field.fit .btn { width: 100%; }
  .pfoot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}
