/* The one website stylesheet: the website, the guide chapter pages, the staff portal and the Keycloak theme.
   Source: statiko spec/backend/web-look.md R1 to R3; design main 3493c43 ui/clean/shared/tokens.css,
   components.css (.stk-button, .stk-field, .stk-status, .stk-icon) and web.css. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm_plex_sans_regular.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm_plex_sans_medium.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm_plex_sans_semibold.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm_plex_mono_regular.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm_plex_mono_medium.ttf") format("truetype"); }

/* Tokens: dark by default, light when the browser asks for it (tokens.css:5-266). */
:root {
  color-scheme: dark;
  --stk-primary: #46658F;
  --stk-on-primary: #FFFFFF;
  --stk-background: #111318;
  --stk-surface-lowest: #0C0E13;
  --stk-surface-low: #1A1B21;
  --stk-surface-high: #282A2F;
  --stk-surface-highest: #33353A;
  --stk-on-surface: #E8EDF5;
  --stk-on-surface-variant: #B5C0D0;
  --stk-outline: #8C909F;
  --stk-outline-variant: #2A303F;
  --stk-focus: #8FA9C9;
  --stk-error: #FFB4AB;
  --stk-success: #9EB5A8;
  --stk-success-fill: #3DDC97;
  --stk-warning: #D8B775;
  --stk-highlight: #8FA9C9;
  --stk-glow: rgba(37, 99, 235, 0.12);

  --stk-state-hover-subtle-background: var(--stk-surface-high);
  --stk-state-focus-ring-color: var(--stk-focus);
  --stk-state-focus-ring-width: 2px;
  --stk-state-native-focus-ring-offset: 2px;
  --stk-state-disabled-opacity: 0.5;
  --stk-state-disabled-foreground: var(--stk-outline);

  --stk-font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --stk-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --stk-text-scale: 1;

  --stk-radius-control: 4px;
  --stk-radius-card: 4px;
  --stk-radius-dialog: 8px;
  --stk-radius-full: 9999px;

  --stk-space-1: 4px;
  --stk-space-2: 8px;
  --stk-space-3: 12px;
  --stk-space-4: 16px;
  --stk-space-5: 24px;
  --stk-space-6: 32px;
  --stk-space-7: 48px;

  --stk-target: 32px;
  --stk-control-padding: 12px;
  --stk-control-font-size: 13px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --stk-background: #F5F7FA;
    --stk-surface-lowest: #FFFFFF;
    --stk-surface-low: #F0F3F8;
    --stk-surface-high: #E4EBF3;
    --stk-surface-highest: #DCE5EF;
    --stk-on-surface: #182332;
    --stk-on-surface-variant: #4D5C70;
    --stk-outline: #69788B;
    --stk-outline-variant: #C6CFDC;
    --stk-focus: #46658F;
    --stk-error: #A9272A;
    --stk-success: #336349;
    --stk-success-fill: #27945C;
    --stk-warning: #775519;
    --stk-highlight: #46658F;
    --stk-glow: rgba(37, 99, 235, 0.07);
  }
}

/* Base (tokens.css › body). */
.stk-web {
  margin: 0;
  min-width: 0;
  background: var(--stk-background);
  color: var(--stk-on-surface);
  font: 400 calc(14px * var(--stk-text-scale)) / 1.43 var(--stk-font-sans);
  -webkit-font-smoothing: antialiased;
}
.stk-web img { max-width: 100%; }

/* Icon: inline SVG in place of the design's icon font (web-look.md R3). */
.stk-icon { display: inline-flex; flex: none; width: 20px; height: 20px; }
.stk-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* Button (components.css › Buttons). */
.stk-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--stk-space-2);
  min-height: var(--stk-target); padding: 0 var(--stk-control-padding);
  border-radius: var(--stk-radius-control); border: 1px solid transparent;
  font: 600 calc(var(--stk-control-font-size) * var(--stk-text-scale)) / 20px var(--stk-font-sans);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.stk-button[disabled] { cursor: default; }
a.stk-button[aria-disabled="true"] { cursor: default; pointer-events: none; }
.stk-button--primary { background: var(--stk-primary); color: var(--stk-on-primary); }
.stk-button--primary:hover:not([disabled]) { filter: brightness(1.08); }
.stk-button--secondary { background: var(--stk-surface-high); color: var(--stk-on-surface); border-color: var(--stk-outline-variant); }
.stk-button--secondary:hover:not([disabled]) { background: var(--stk-surface-highest); }
.stk-button--delete, .stk-button--delete:hover:not([disabled]) { color: var(--stk-error); }
.stk-button svg { width: 18px; height: 18px; flex: none; }
.stk-button:disabled, a.stk-button[aria-disabled="true"] { opacity: var(--stk-state-disabled-opacity); }

/* Text field (components.css › Text field). */
.stk-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stk-space-1); }
.stk-field__label { font: 500 calc(12px * var(--stk-text-scale)) / 16px var(--stk-font-sans); color: var(--stk-on-surface-variant); }
.stk-field__control {
  display: flex; align-items: center; min-height: var(--stk-target);
  background: var(--stk-surface-lowest); border: 1px solid var(--stk-outline-variant); border-radius: var(--stk-radius-control);
}
.stk-field__control:focus-within { border-color: var(--stk-focus); }
.stk-field__control input {
  flex: 1; min-width: 0; height: 100%; padding: 0 var(--stk-control-padding);
  background: transparent; border: 0; outline: 0; color: var(--stk-on-surface);
  font: 400 calc(var(--stk-control-font-size) * var(--stk-text-scale)) / 20px var(--stk-font-sans);
}
.stk-field__control input::placeholder { color: var(--stk-outline); }
.stk-field--error .stk-field__control { border-color: var(--stk-error); }
.stk-field__support { font: 400 calc(12px * var(--stk-text-scale)) / 16px var(--stk-font-sans); color: var(--stk-on-surface-variant); }
.stk-field--error .stk-field__support { color: var(--stk-error); }

/* Status badge: a small dot plus words (components.css › Compact labeled status). */
.stk-status { display: inline-flex; align-items: center; gap: var(--stk-space-2); color: var(--stk-on-surface-variant); }
.stk-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: var(--stk-radius-full); background: var(--stk-outline); }
.stk-status--warning::before { background: var(--stk-warning); }
.stk-status--error::before { background: var(--stk-error); }
.stk-status--success::before { background: var(--stk-success-fill); }
.stk-status--info::before { background: var(--stk-focus); }

/* Web compositions (design web.css). */
.stk-web *, .stk-web *::before, .stk-web *::after { box-sizing: border-box; }
.stk-web [hidden] { display: none !important; }
.stk-web :is(h1, h2, h3, h4, p, dl) { margin: 0; }
.stk-web p + p { margin-top: var(--stk-space-4); }
.stk-web h1 { font: 500 calc(clamp(36px, 4.8vw, 68px) * var(--stk-text-scale)) / 1.08 var(--stk-font-sans); letter-spacing: -.045em; max-width: 18ch; text-wrap: balance; }
.stk-web h2 { font: 500 calc(30px * var(--stk-text-scale)) / 1.2 var(--stk-font-sans); letter-spacing: -.025em; }
.stk-web h3 { font: 600 calc(20px * var(--stk-text-scale)) / 1.3 var(--stk-font-sans); }
.stk-web h4 { font: 600 calc(16px * var(--stk-text-scale)) / 1.4 var(--stk-font-sans); }
.stk-web p, .stk-web address, .stk-web li { font: 400 calc(16px * var(--stk-text-scale)) / 1.65 var(--stk-font-sans); color: var(--stk-on-surface-variant); }
.stk-web a { color: inherit; text-underline-offset: .22em; overflow-wrap: anywhere; }
.stk-web a:not(.stk-button):hover { color: var(--stk-highlight); }
.stk-web :focus-visible { outline: var(--stk-state-focus-ring-width) solid var(--stk-state-focus-ring-color); outline-offset: var(--stk-state-native-focus-ring-offset); }
.stk-web .stk-button { min-height: max(var(--stk-target), var(--stk-space-7)); padding: var(--stk-space-2) var(--stk-space-5); white-space: normal; line-height: 1.4; text-align: center; }
.stk-web .stk-button--primary { color: var(--stk-on-primary); }
.stk-web .stk-field__label { line-height: 1.4; }
.stk-web .stk-field__control { min-height: max(var(--stk-target), var(--stk-space-7)); }
.stk-web .stk-field__control input { min-height: inherit; line-height: 1.4; }
.stk-web__container { width: min(100% - var(--stk-space-7) * 2, 1240px); margin-inline: auto; }
.stk-web-header { border-bottom: 1px solid var(--stk-outline-variant); background: var(--stk-background); }
.stk-web-header .stk-web__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--stk-space-6); padding-block: var(--stk-space-5); }
.stk-web-brand { display: inline-flex; text-decoration: none; flex: none; font: 600 calc(19px * var(--stk-text-scale)) / 1.2 var(--stk-font-sans); letter-spacing: .12em; }
.stk-web-brand small { display: block; font-size: calc(10px * var(--stk-text-scale)); letter-spacing: .22em; margin-top: var(--stk-space-1); color: var(--stk-on-surface-variant); }
.stk-web__nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: var(--stk-space-5); font-size: calc(14px * var(--stk-text-scale)); }
.stk-web__nav-links a:not(.stk-button) { text-decoration: none; padding-block: var(--stk-space-2); }
.stk-web__nav-links a[aria-current="page"]:not(.stk-button) { color: var(--stk-highlight); text-decoration: underline; text-decoration-thickness: 2px; }
.stk-web__hero, .stk-web__page-hero { padding-block: calc(var(--stk-space-7) * 1.5); }
.stk-web__hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--stk-outline-variant); background: radial-gradient(ellipse at 90% 20%, var(--stk-glow), transparent 65%); }
.stk-web__product-identity { display: flex; align-items: center; gap: var(--stk-space-3); margin-bottom: var(--stk-space-6); }
.stk-web__product-identity img { width: var(--stk-space-7); height: var(--stk-space-7); }
.stk-web__product-identity strong { display: block; font-size: calc(18px * var(--stk-text-scale)); letter-spacing: .1em; }
.stk-web__product-identity small { display: block; font-size: calc(10px * var(--stk-text-scale)); letter-spacing: .12em; color: var(--stk-on-surface-variant); }
.stk-web .stk-web__eyebrow, .stk-web__feature-num, .stk-web__step > span { display: block; color: var(--stk-highlight); font: 500 calc(12px * var(--stk-text-scale)) / 1.5 var(--stk-font-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--stk-space-4); }
.stk-web .stk-web__lead { font-size: calc(20px * var(--stk-text-scale)); line-height: 1.6; max-width: 60ch; margin-top: var(--stk-space-5); }
.stk-web .stk-web__launch-note { font-size: calc(13px * var(--stk-text-scale)); margin-top: var(--stk-space-4); }
.stk-web__actions { display: flex; flex-wrap: wrap; gap: var(--stk-space-3); margin-top: var(--stk-space-6); }
.stk-web__section { padding-block: calc(var(--stk-space-7) * 1.4); border-bottom: 1px solid var(--stk-outline-variant); }
.stk-web__alt { background: var(--stk-surface-lowest); }
.stk-web__section-head { max-width: 68ch; margin-bottom: var(--stk-space-6); }
.stk-web__section-head p:not(.stk-web__eyebrow) { margin-top: var(--stk-space-4); }
.stk-web__feature-grid, .stk-web__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--stk-space-5); }
.stk-web__feature-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stk-web__feature, .stk-web__step, .stk-web__material, .stk-web__contact-card { border: 1px solid var(--stk-outline-variant); border-radius: var(--stk-radius-card); background: var(--stk-surface-low); padding: var(--stk-space-6); min-width: 0; }
.stk-web__feature h3, .stk-web__step h3, .stk-web__material h3 { margin-bottom: var(--stk-space-3); }
.stk-web__split, .stk-web__material-grid, .stk-web__contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stk-space-6); }
.stk-web__split { gap: var(--stk-space-7); align-items: start; }
.stk-web__closing { padding-block: var(--stk-space-7); background: var(--stk-surface-low); }
.stk-web__closing > div { display: flex; align-items: center; justify-content: space-between; gap: var(--stk-space-6); }
.stk-web__closing p { margin-top: var(--stk-space-3); }
.stk-web__download-card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--stk-space-5); }
.stk-web__download-card--primary { border-top: var(--stk-space-1) solid var(--stk-primary); }
.stk-web__download-icon { color: var(--stk-highlight); margin-bottom: var(--stk-space-5); }
.stk-web__download-status { color: var(--stk-on-surface-variant); font-size: calc(14px * var(--stk-text-scale)); }
.stk-web__download-action--pair { display: flex; flex-wrap: wrap; gap: var(--stk-space-3); }
.stk-web__download-meta { margin-top: var(--stk-space-7); }
.stk-web__download-meta .stk-web__section-head { margin-bottom: var(--stk-space-3); }
.stk-web__download-meta h3 { margin-bottom: var(--stk-space-2); }
.stk-web__requirements-list { margin: 0; padding-left: var(--stk-space-5); }
.stk-web__email { display: inline-block; margin-block: var(--stk-space-5); }
.stk-web__address { margin-top: var(--stk-space-5); font-style: normal; }
.stk-web__contact-card > p { margin-top: var(--stk-space-4); }
.stk-web__policy { max-width: 820px; }
.stk-web__policy-item { padding-bottom: var(--stk-space-6); margin-bottom: var(--stk-space-6); border-bottom: 1px solid var(--stk-outline-variant); }
.stk-web__policy-item h2 { font-size: calc(22px * var(--stk-text-scale)); margin-bottom: var(--stk-space-4); }
.stk-web-footer { padding-block: var(--stk-space-7) var(--stk-space-5); border-top: 1px solid var(--stk-outline-variant); }
.stk-web__footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--stk-space-7); }
.stk-web__footer-identities { display: flex; flex-wrap: wrap; align-items: center; gap: var(--stk-space-5); margin-bottom: var(--stk-space-4); }
.stk-web__footer-product { display: inline-flex; align-items: center; gap: var(--stk-space-2); }
.stk-web__footer-product img { width: var(--stk-space-5); height: var(--stk-space-5); }
.stk-web__footer-links { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--stk-space-6); }
.stk-web__footer-links > div { display: grid; align-content: start; gap: var(--stk-space-3); }
.stk-web__footer-links a { color: var(--stk-on-surface-variant); text-decoration: none; }
.stk-web__footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--stk-space-4); border-top: 1px solid var(--stk-outline-variant); padding-top: var(--stk-space-5); margin-top: var(--stk-space-7); color: var(--stk-on-surface-variant); font-size: calc(12px * var(--stk-text-scale)); }

/* State panel (the invitation states and the portal's signed-out pages). */
.stk-web-state { max-width: 860px; padding-block: var(--stk-space-5); }
.stk-web-state h1 { font-size: calc(44px * var(--stk-text-scale)); max-width: 25ch; }
.stk-web-state__icon { display: grid; place-items: center; width: calc(var(--stk-space-6) * 2); height: calc(var(--stk-space-6) * 2); margin-bottom: var(--stk-space-6); border: 1px solid var(--stk-outline-variant); border-radius: var(--stk-radius-dialog); color: var(--stk-highlight); background: var(--stk-surface-low); }
.stk-web-state__icon .stk-icon { width: var(--stk-space-6); height: var(--stk-space-6); }
.stk-web-state[data-tone="success"] .stk-web-state__icon { color: var(--stk-success); }
.stk-web-state[data-tone="refusal"] .stk-web-state__icon { color: var(--stk-warning); }
.stk-web-student-form { display: grid; gap: var(--stk-space-4); max-width: 420px; padding-bottom: var(--stk-space-5); }

/* Notice. */
.stk-web-notice { display: flex; align-items: start; gap: var(--stk-space-3); padding: var(--stk-space-4); background: var(--stk-surface-low); border: 1px solid var(--stk-outline-variant); border-left: var(--stk-space-1) solid var(--stk-highlight); border-radius: var(--stk-radius-card); font-size: calc(14px * var(--stk-text-scale)); line-height: 1.5; overflow-wrap: anywhere; }
.stk-web-notice > .stk-icon { margin-top: 2px; color: var(--stk-highlight); }
.stk-web-notice--success { border-left-color: var(--stk-success); }
.stk-web-notice--success > .stk-icon { color: var(--stk-success); }
.stk-web-notice--error { border-left-color: var(--stk-error); }
.stk-web-notice--error > .stk-icon { color: var(--stk-error); }

/* Staff portal (design web.css › .stk-staff). */
.stk-staff { max-width: 1360px; margin: auto; padding: var(--stk-space-7); }
.stk-staff__heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--stk-space-5); margin-bottom: var(--stk-space-6); }
.stk-staff h1 { font-size: calc(36px * var(--stk-text-scale)); }
.stk-staff__session { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: var(--stk-space-4); font-size: calc(12px * var(--stk-text-scale)); color: var(--stk-on-surface-variant); }
.stk-staff__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--stk-space-6); align-items: start; }
.stk-staff__body > *, .stk-staff__content > * { min-width: 0; }
.stk-staff__content, .stk-staff__aside, .stk-staff__card, .stk-staff__form { display: grid; gap: var(--stk-space-5); }
.stk-staff__card { padding: var(--stk-space-5); border: 1px solid var(--stk-outline-variant); border-radius: var(--stk-radius-card); background: var(--stk-surface-low); }
.stk-staff__card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: var(--stk-space-4); }
.stk-staff__content > :empty { display: none; }
.stk-staff__form textarea, .stk-staff__form select { font: inherit; color: var(--stk-on-surface); background: var(--stk-surface-lowest); border: 1px solid var(--stk-outline-variant); border-radius: var(--stk-radius-control); padding: var(--stk-space-3); width: 100%; min-width: 0; min-height: var(--stk-target); line-height: 1.5; }
.stk-staff__form textarea { resize: vertical; }
.stk-staff__filter { width: calc(var(--stk-space-7) * 6); max-width: 100%; }
.stk-staff__date { width: calc(var(--stk-space-7) * 5); max-width: 100%; }
.stk-staff__form .stk-button { justify-self: start; }
.stk-staff__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stk-space-4) var(--stk-space-6); }
.stk-staff__facts dt { color: var(--stk-on-surface-variant); font-size: calc(12px * var(--stk-text-scale)); margin-bottom: var(--stk-space-1); }
.stk-staff__facts dd { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.stk-staff__list { border: 1px solid var(--stk-outline-variant); border-radius: var(--stk-radius-card); overflow: hidden; }
.stk-staff__list-head, .stk-staff__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--stk-space-5); padding: var(--stk-space-5); }
.stk-staff__list-head { font-size: calc(12px * var(--stk-text-scale)); color: var(--stk-on-surface-variant); background: var(--stk-surface-lowest); }
.stk-staff__row { text-decoration: none; border-top: 1px solid var(--stk-outline-variant); background: var(--stk-surface-low); }
.stk-staff__row:hover { background: var(--stk-state-hover-subtle-background); }
.stk-staff__row small { display: block; margin-top: var(--stk-space-1); color: var(--stk-on-surface-variant); font-size: calc(12px * var(--stk-text-scale)); overflow-wrap: anywhere; }
.stk-staff__mobile-label { display: none; }
.stk-staff__empty { padding: var(--stk-space-6); border: 1px dashed var(--stk-outline-variant); border-radius: var(--stk-radius-card); }
.stk-staff__log { margin-top: var(--stk-space-7); display: grid; gap: var(--stk-space-4); }
.stk-staff__confirmation { display: grid; gap: var(--stk-space-4); padding: var(--stk-space-5); border: 1px solid var(--stk-error); border-radius: var(--stk-radius-card); }
/* Staff change log (STK-1310 › Decided by Claude: the design draws no change rows; spec/backend/web-look.md R17). */
.stk-staff__table { overflow-x: auto; border: 1px solid var(--stk-outline-variant); border-radius: var(--stk-radius-card); background: var(--stk-surface-low); }
.stk-staff__table table { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--stk-text-scale)); }
.stk-staff__table th, .stk-staff__table td { padding: var(--stk-space-3) var(--stk-space-4); text-align: left; vertical-align: top; border-top: 1px solid var(--stk-outline-variant); }
.stk-staff__table thead th { border-top: 0; font-weight: 500; font-size: calc(12px * var(--stk-text-scale)); color: var(--stk-on-surface-variant); background: var(--stk-surface-lowest); }
.stk-staff__table code { font: calc(12px * var(--stk-text-scale)) / 1.5 var(--stk-font-mono); overflow-wrap: anywhere; }

/* Keycloak sign-in pages (design web.css › .stk-web-identity). */
.stk-web-identity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 80vh; }
.stk-web-identity__brand { display: flex; flex-direction: column; justify-content: center; align-items: start; padding: calc(var(--stk-space-7) * 1.5); border-right: 1px solid var(--stk-outline-variant); background: radial-gradient(ellipse at bottom left, var(--stk-glow), transparent 70%); }
.stk-web-identity__brand h2 { max-width: 15ch; font-size: calc(44px * var(--stk-text-scale)); }
.stk-web-identity__panel { padding: var(--stk-space-7); align-self: center; width: min(100%, 600px); margin: auto; display: grid; gap: var(--stk-space-5); }
.stk-web-identity__panel h1 { font-size: calc(30px * var(--stk-text-scale)); }
.stk-web-identity__form { display: grid; gap: var(--stk-space-4); }
.stk-web-identity__form .stk-field { display: grid; gap: var(--stk-space-2); }
.stk-web-identity__links { display: flex; justify-content: flex-end; font-size: calc(14px * var(--stk-text-scale)); }
.stk-web-identity__submit { width: 100%; justify-content: center; }
.stk-web-identity__aside, .stk-web-identity__info { font-size: calc(14px * var(--stk-text-scale)); line-height: 1.5; color: var(--stk-on-surface-variant); }
.stk-web-identity__panel a:not(.stk-button) { color: var(--stk-highlight); }
/* Keycloak's own page markup in the field and button looks (statiko backend/docker/keycloak-theme/login/theme.properties
   maps Keycloak's kc classes onto these; spec/backend/web-look.md R20). */
.stk-web-identity__panel form { display: grid; gap: var(--stk-space-4); }
.stk-web-identity__panel .stk-field { gap: var(--stk-space-2); }
.stk-web-kc__label { display: flex; gap: var(--stk-space-1); }
.stk-web-kc__input { display: grid; gap: var(--stk-space-2); }
.stk-web-kc__control {
  width: 100%; min-width: 0; min-height: max(var(--stk-target), var(--stk-space-7)); padding: 0 var(--stk-control-padding);
  background: var(--stk-surface-lowest); border: 1px solid var(--stk-outline-variant); border-radius: var(--stk-radius-control);
  color: var(--stk-on-surface); font: 400 calc(var(--stk-control-font-size) * var(--stk-text-scale)) / 1.4 var(--stk-font-sans);
}
.stk-web-kc__control:focus { outline: 0; border-color: var(--stk-focus); }
.stk-web-kc__control[aria-invalid="true"], .stk-field__control:has(> [aria-invalid="true"]) { border-color: var(--stk-error); }
.stk-web-kc__error { color: var(--stk-error); }
.stk-web-identity__panel .required { color: var(--stk-error); }
.stk-web-kc__toggle { display: grid; place-items: center; flex: none; width: var(--stk-space-7); align-self: stretch; padding: 0; background: transparent; border: 0; color: var(--stk-on-surface-variant); cursor: pointer; }
.stk-web-kc__eye { width: 20px; height: 20px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stk-web-kc__eye--off { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E"); }
.stk-web-kc__buttons { display: flex; flex-wrap: wrap; gap: var(--stk-space-3); }
.stk-web-kc__social { display: grid; gap: var(--stk-space-4); }
.stk-web-kc__social hr { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--stk-outline-variant); }
.stk-web-identity__panel .stk-web-kc__social h2 { font-size: calc(14px * var(--stk-text-scale)); font-weight: 400; color: var(--stk-on-surface-variant); }
.stk-web-kc__social-list { display: grid; gap: var(--stk-space-3); margin: 0; padding: 0; list-style: none; }
.stk-web-identity__panel .instruction { font-size: calc(14px * var(--stk-text-scale)); line-height: 1.5; }

@media (min-width: 1600px) { .stk-web__container { width: min(100% - var(--stk-space-7) * 2, 1360px); } }
@media (max-width: 1199px) {
  .stk-web__container { width: calc(100% - var(--stk-space-6) * 2); }
  .stk-web-header .stk-web__nav { flex-wrap: wrap; }
  .stk-web__nav-links { gap: var(--stk-space-4); }
  .stk-web__feature-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stk-staff { padding: var(--stk-space-6); }
  .stk-staff__body { grid-template-columns: minmax(0, 1fr); }
  .stk-staff__aside .stk-staff__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stk-staff__aside .stk-staff__form h2 { grid-column: 1 / -1; }
}
@media (max-width: 839px) {
  .stk-web__feature-grid, .stk-web__feature-grid--four, .stk-web__steps, .stk-web__material-grid, .stk-web__split, .stk-web__contact-grid, .stk-web__footer-top, .stk-web-identity { grid-template-columns: minmax(0, 1fr); }
  .stk-web__hero, .stk-web__page-hero, .stk-web__section { padding-block: var(--stk-space-7); }
  .stk-web__closing > div { flex-direction: column; align-items: start; }
  .stk-web-identity__brand { padding: var(--stk-space-6); border: 0; border-bottom: 1px solid var(--stk-outline-variant); }
  .stk-web-identity__brand h2 { display: none; }
  .stk-web-identity__brand .stk-web__product-identity { margin: 0; }
  .stk-web-identity__panel { padding: var(--stk-space-6); }
  .stk-staff__list { border: 0; display: grid; gap: var(--stk-space-4); }
  .stk-staff__list-head { display: none; }
  .stk-staff__row { grid-template-columns: minmax(0, 1fr); gap: var(--stk-space-4); border: 1px solid var(--stk-outline-variant); border-radius: var(--stk-radius-card); }
  .stk-staff__mobile-label { display: block; color: var(--stk-on-surface-variant); font-size: calc(12px * var(--stk-text-scale)); margin-bottom: var(--stk-space-1); }
}
@media (max-width: 599px) {
  .stk-web__container { width: calc(100% - var(--stk-space-5) * 2); }
  .stk-web-header .stk-web__nav { gap: var(--stk-space-5); }
  .stk-web__nav-links { width: 100%; gap: var(--stk-space-2) var(--stk-space-4); }
  .stk-web__nav-links .stk-button { width: 100%; }
  .stk-web__feature, .stk-web__step, .stk-web__material, .stk-web__contact-card { padding: var(--stk-space-5); }
  .stk-web__footer-links, .stk-staff__facts, .stk-staff__aside .stk-staff__form { grid-template-columns: minmax(0, 1fr); }
  .stk-web__actions > *, .stk-staff__date, .stk-staff__filter { width: 100%; }
  .stk-web-state h1 { font-size: calc(34px * var(--stk-text-scale)); }
  .stk-staff { padding: var(--stk-space-5); }
  .stk-staff__session { justify-content: start; }
}
@media (max-height: 479px) {
  .stk-web__hero, .stk-web__page-hero, .stk-web__section { padding-block: var(--stk-space-5); }
  .stk-web-identity { min-height: 0; }
}
