@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2")
    format("woff2");
  unicode-range:
    U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
/* educirAI – dizajnerski tokeni, smjer v6 (izvučeno iz reference/*.dc.html)
   Vrijednosti su doslovno iz odobrenog dizajna. Ne mijenjati bez dogovora. */

:root {
  /* Boje – osnovne */
  --ink: #160b24; /* tekst, tamne sekcije, zaglavlje */
  --ink-deep: #0f0719; /* podnožje */
  --slab: #24133c; /* velike plohe za dubinu na tamnom */
  --slab-photo: #33204d; /* prostor za fotografiju na tamnom */
  --amber: #f4a73b; /* primarne akcije, naglasci na tamnom */
  --amber-hover: #ffc066;
  --amber-busy: #f7c98a; /* gumb u stanju slanja */
  --violet: #5b2a86; /* poveznice, oznake (kicker), hover poveznica */
  --white: #ffffff;
  --mist: #f4f2f7; /* mirne podloge, kartice */
  --mist-2: #e6e0ef; /* prostor za portret */
  --line: #e6e1ee; /* tanke crte, razdjelnici */
  --bar-off: #c9bfd6; /* neaktivni stupci razine / koraka */
  --violet-tint: #efeaf6; /* pozadina brojeva u izborniku */

  /* Tekst */
  --text: #160b24;
  --text-2: #3a2f48; /* odlomci */
  --text-muted: #574b66; /* pomoćni tekst (8,1:1 na bijeloj) */
  --text-on-dark: #ffffff;
  --text-on-dark-2: #cfc3e0; /* sekundarno na tamnom (11,3:1) */
  --text-on-dark-3: #e3daee;

  /* Obrubi */
  --field-border: #857995; /* polja i neodabrani čipovi (4,1:1) */
  --line-on-dark: rgba(207, 195, 224, 0.16);
  --line-on-dark-2: rgba(207, 195, 224, 0.3);
  --slab-border: rgba(207, 195, 224, 0.14);

  /* Status */
  --success: #1f6b47;
  --success-tint: #eaf5ee;
  --danger: #a6370b;
  --danger-tint: #fdeee6;

  /* Koraci 01–04 (boja gumba / tamna inačica za tekst / tonirana podloga ploče / boja teksta na gumbu) */
  --step1: #5b2a86;
  --step1-ink: #5b2a86;
  --step1-tint: #f1ebf8;
  --step1-on: #ffffff; /* Razumijemo */
  --step2: #f4a73b;
  --step2-ink: #7a4e00;
  --step2-tint: #fdf3de;
  --step2-on: #160b24; /* Pokazujemo */
  --step3: #160b24;
  --step3-ink: #160b24;
  --step3-tint: #eeecf2;
  --step3-on: #ffffff; /* Vježbamo */
  --step4: #1f6b47;
  --step4-ink: #1f6b47;
  --step4-tint: #eaf5ee;
  --step4-on: #ffffff; /* Provjeravamo */
}

/* EducirAI platforma – semantički tokeni (R1)
   Portal učitava samo wwwroot/css/portal.css: izvorne varijable koje se ovdje koriste (ink, slab, white, mist, violet, violet-tint,
   text-2, text-on-dark-2, amber, amber-hover, amber-busy, field-border, danger, danger-tint, success, success-tint,
   step1–4, step2-ink, step2-tint, step3-tint) prvo kopirajte iz src/styles/tokens.css u :root portal.css. */
/*
   Sloj iznad izvornih tokena javnog weba (src/styles/tokens.css, v6). Ne uvodi nove boje:
   svaka uloga pokazuje na postojeću vrijednost. Kontrast je izračunat po WCAG formuli. */

:root {
  /* Plohe */
  --surface-brand: var(--ink);          /* #160B24 · zaglavlje, aktivna radionica · bijelo 19,0:1 */
  --surface-brand-raised: var(--slab);  /* #24133C · plohe za dubinu na tamnom */
  --surface: var(--white);              /* kartice, obrasci, dijalozi */
  --surface-app: var(--mist);           /* #F4F2F7 · pozadina aplikacije · tekst 17,1:1, muted 7,3:1 */
  --surface-team: var(--violet);        /* #5B2A86 · traka konteksta tima · bijelo 9,9:1 */
  --surface-selected: var(--violet-tint); /* #EFEAF6 · odabrani redak, aktivna stavka bočne navigacije */
  --surface-overlay: rgba(22, 11, 36, 0.55); /* pozadina dijaloga */

  /* Tekst */
  --text-body: var(--text-2);           /* #3A2F48 · 12,5:1 */
  /* --text-muted već postoji u tokens.css (#574B66 · 8,1:1 na bijelom, 7,3:1 na mist); tekst koristi --ink */
  --text-on-brand: var(--white);
  --text-on-brand-muted: var(--text-on-dark-2); /* #CFC3E0 · 11,3:1 na ink, 10,2:1 na slab */
  --text-link: var(--violet);           /* 9,9:1 */

  /* Akcije – jedna jantarna akcija po ekranu: sljedeći korak */
  --action-primary: var(--amber);       /* #F4A73B · tekst ink 9,4:1 */
  --action-primary-hover: var(--amber-hover); /* #FFC066 · 11,7:1 */
  --action-busy: var(--amber-busy);     /* #F7C98A · samo stanje „Šaljemo…”, tekst #3A2F48 8,1:1 */
  --action-secondary: var(--ink);       /* tamni gumb, hover violet */
  --action-outline: var(--field-border);/* #857995 · obrub 4,1:1 na bijelom (3,7:1 na mist – zato kontrole stoje na bijelom) */
  --action-danger: var(--danger);       /* #A6370B · bijelo 6,6:1 */
  --action-disabled-border: var(--field-border); /* isprekidani obrub, tekst muted – nikad jantar */

  /* Statusi (uvijek tekst + boja, po potrebi ikona) */
  --status-ok-bg: var(--success-tint);    --status-ok-fg: var(--success);   /* 5,8:1 */
  --status-wait-bg: var(--step2-tint);    --status-wait-fg: var(--step2-ink); /* #FDF3DE / #7A4E00 · 6,5:1 */
  --status-info-bg: var(--violet-tint);   --status-info-fg: var(--violet); /* 8,4:1 */
  --status-error-bg: var(--danger-tint);  --status-error-fg: var(--danger); /* 5,8:1 */
  --status-neutral-bg: var(--step3-tint); --status-neutral-fg: var(--text-2); /* #EEECF2 / #3A2F48 · 10,7:1 */

  /* Faze radionice (nasljeđuju korake 01–04 s javnog weba) */
  --phase-before: var(--step1);  /* Prije radionice · ljubičasta */
  --phase-during: var(--step2);  /* Na radionici · jantar (tekst #7A4E00) */
  --phase-after: var(--step4);   /* Nakon radionice · zelena */

  /* Fokus */
  --focus-ring: 0 0 0 6px var(--ink); /* uz outline: 3px solid #FFFFFF; outline-offset: 0 – vidljivo na svakoj plohi */

  /* Kompaktna ljestvica za učestalu upotrebu */
  --fs-screen: clamp(26px, 3vw, 32px); /* naslov ekrana, lh 1.15, 700 */
  --fs-section: 22px;                   /* naslov odjeljka (20 na mobitelu), lh 1.25 */
  --fs-item: 17px;                      /* naslov stavke, lh 1.35 */
  --fs-body-app: 16px;                  /* lh 1.55 */
  --fs-meta: 14px;                      /* pomoćni tekst, oznake */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --control-h: 44px;                    /* sve kontrole i dodirne mete */
  --radius-control: 10px; --radius-card: 16px; --radius-pill: 999px;
  --measure: 68ch;                      /* najveća širina teksta za čitanje */
  --app-wrap: 1240px;
  --team-side: 240px;                   /* bočna navigacija tima ≥1100 px */
}

/* Prijelomi: 1100 (navigacija se skuplja, dvostupčani rasporedi u jedan stupac),
   760 (tablice postaju kartice, zaglavlje polaznika prestaje biti ljepljivo), 420, 360. */

* { box-sizing: border-box; }
:root {
  color: var(--ink);
  background: var(--surface-app);
  font: var(--fs-body-app)/1.55 "Schibsted Grotesk", system-ui, sans-serif;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--text-link); font-weight: 700; text-underline-offset: .25em; overflow-wrap: anywhere; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--white); outline-offset: 0; box-shadow: var(--focus-ring); }
h1, h2, h3, p { margin-block: 0; }
h1 { font-size: var(--fs-screen); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: var(--fs-section); line-height: 1.25; }
h3 { font-size: var(--fs-item); line-height: 1.35; }
p + p { margin-top: .75rem; }
form { margin: 0; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
.skip-link { position: fixed; z-index: 90; inset: 12px auto auto 12px; padding: 12px 16px; color: var(--ink); background: var(--surface); border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.top { background: var(--surface-brand); color: var(--text-on-brand); z-index: 20; }
.top-inner { display: flex; align-items: center; gap: 20px; max-width: var(--app-wrap); margin-inline: auto; min-height: 64px; padding-inline: clamp(16px, 4vw, 40px); }
.member-area .top { position: sticky; top: 0; }
.brand { color: var(--white); display: inline-flex; align-items: center; min-height: var(--control-h); letter-spacing: -.03em; font-size: 22px; font-weight: 800; text-decoration: none; }
.brand:hover, .public-link:hover { color: var(--white); }
.brand span { color: var(--amber); }
.public-link { color: var(--text-on-brand-muted); margin-left: auto; }
.top-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top-nav a { display: inline-flex; align-items: center; min-height: var(--control-h); color: var(--white); padding-inline: 12px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.top-nav a:hover, .account-menu summary:hover { background: var(--surface-brand-raised); }
.top-nav a[aria-current="page"] { text-decoration: underline 2px var(--amber); text-underline-offset: 8px; font-weight: 700; }
.account-menu { position: relative; margin-left: auto; min-width: 0; }
.account-menu summary { display: flex; align-items: center; gap: 10px; min-height: var(--control-h); padding-inline: 10px; border-radius: var(--radius-control); list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.initials { background: var(--text-on-brand-muted); color: var(--ink); border-radius: 50%; inline-size: 32px; block-size: 32px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; }
.account-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 24ch; }
.chevron { width: 8px; height: 8px; border: solid var(--amber); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-block-start: -3px; }
.account-menu[open] .chevron { transform: rotate(225deg); margin-block-start: 3px; }
.account-actions { position: absolute; z-index: 21; inset: calc(100% + 8px) 0 auto auto; width: min(250px, 85vw); padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 32px 64px -28px var(--surface-overlay); }
.account-actions p { padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; color: var(--text-muted); font-size: var(--fs-meta); }
.account-actions a, .account-actions button { display: flex; align-items: center; min-height: var(--control-h); padding-inline: 10px; width: 100%; border-radius: 8px; text-decoration: none; font-weight: 600; text-align: left; color: var(--ink); }
.account-actions a:hover, .account-actions button:hover { background: var(--surface-app); }
.link-button { background: none; border: 0; text-decoration: underline; color: var(--text-link); }
.portal-shell { flex: 1; }
.workspace, .gateway { width: 100%; max-width: var(--app-wrap); margin-inline: auto; padding: 24px clamp(16px, 4vw, 40px) 64px; min-width: 0; }
.gateway { max-width: 1120px; padding-block: clamp(24px, 5vw, 64px); }
.team-shell { display: grid; grid-template-columns: var(--team-side) minmax(0, 1fr); }
.team-shell .workspace { margin-inline: 0; padding-inline: clamp(16px, 3vw, 40px); }
.team-context { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 12px; padding-inline: 16px; min-height: 36px; background: var(--surface-team); color: var(--white); font-size: var(--fs-meta); font-weight: 700; }
.team-context a, .team-context a:hover { display: inline-flex; align-items: center; min-height: var(--control-h); color: var(--white); }
.staff-area .top-inner { margin: 0; padding-inline: 16px; max-width: none; min-height: 60px; gap: 16px; }
.team-label { font-size: var(--fs-meta); color: var(--text-on-brand-muted); }
.team-side { min-width: 0; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 12px; }
.team-side p { margin: 0 12px 8px; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.team-side a { display: flex; align-items: center; min-height: var(--control-h); padding-inline: 12px; border-radius: var(--radius-control); color: var(--ink); font-weight: 600; text-decoration: none; }
.team-side a:hover { background: var(--surface-app); }
.team-side a[aria-current="page"] { color: var(--text-link); background: var(--surface-selected); font-weight: 800; }
.entry-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; }
.gateway-side { position: relative; overflow: hidden; color: var(--text-on-brand); background: var(--surface-brand); padding: 48px clamp(24px, 4vw, 64px); }
.gateway-side::before { content: ""; position: absolute; inset: auto auto -160px -120px; width: 520px; height: 420px; background: var(--surface-brand-raised); border-radius: 48px; border: 1px solid var(--line-on-dark); }
.gateway-side > * { position: relative; }
.gateway-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gateway-brand .public-link { color: var(--white); display: inline-flex; align-items: center; min-height: var(--control-h); font-size: 15px; }
.gateway-lead { margin-block-start: 50px; }
.gateway-heading { color: var(--white); font-weight: 700; font-size: 40px; line-height: 1.08; letter-spacing: -.03em; max-width: 24ch; }
.gateway-side ol { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: gateway-steps; max-width: 40ch; color: var(--text-on-brand-muted); }
.gateway-side li { counter-increment: gateway-steps; display: flex; align-items: start; gap: 12px; }
.gateway-side li::before { content: counter(gateway-steps); flex: none; display: grid; place-items: center; width: 26px; height: 26px; color: var(--ink); background: var(--amber); border-radius: 8px; font-size: 13px; font-weight: 800; }
.gateway-link-note { margin-block-start: 20px; padding: 14px 16px; border: 1.5px solid var(--line-on-dark-2); border-radius: 14px; }
.gateway-link-note strong { color: var(--amber); font-size: 13px; }
.gateway-link-note p { color: var(--text-on-brand-muted); font-size: 14px; }
.entry-pane { display: flex; flex-direction: column; align-items: center; justify-content: start; gap: 12px; max-width: none; padding: 72px 24px; }
.entry-pane > * { width: min(100%, 460px); }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(16px, 2vw, 22px); box-shadow: 0 1px 2px rgba(22, 11, 36, .06), 0 24px 48px -36px rgba(22, 11, 36, .35); min-width: 0; overflow-wrap: anywhere; }
.gateway-panel { padding: clamp(20px, 4vw, 36px); }
.single-panel { max-width: 34rem; margin-inline: auto; }
.form-stack { display: grid; gap: 1rem; margin-top: 1.25rem; align-content: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field { display: grid; align-content: start; gap: .3rem; min-width: 0; }
.field label { font-size: 15px; font-weight: 700; }
.field input:not([type="checkbox"]), .field textarea, .field select, .search-input { min-height: 2.75rem; width: 100%; padding: .55rem .7rem; background: white; border: 1.5px solid var(--field-border); border-radius: var(--radius-control); color: var(--ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:read-only { background: var(--mist); }
.field input[type="file"] { padding: .4rem; }
.field .input-validation-error, .field [aria-invalid="true"] { border: 2px solid var(--action-danger); }
.hint { font-size: .88rem; color: var(--text-muted); font-weight: 400; }
.form-errors, .field-error { color: var(--danger); }
.form-errors ul { margin-block: 0; padding-inline-start: 1.35rem; }
.validation-summary-errors, .notice { border-radius: .65rem; padding: .8rem 1rem; }
.validation-summary-errors { background: var(--danger-tint); }
.validation-summary-valid, .field-validation-valid { display: none; }
.notice { background: var(--status-ok-bg); color: var(--status-ok-fg); margin-bottom: 1rem; }
.button { min-height: var(--control-h); min-width: 0; width: fit-content; padding: 8px 18px; border-radius: var(--radius-control); border: 1.5px solid transparent; background: var(--action-secondary); color: var(--white); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-align: left; }
.button:hover { background: var(--surface-team); color: var(--white); }
.button.primary { background: var(--action-primary); color: var(--ink); }
.button.primary:hover { background: var(--action-primary-hover); }
.button.secondary { color: var(--ink); background: var(--surface); border-color: var(--action-outline); }
.button.secondary:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.button.danger { background: var(--danger-tint); color: var(--action-danger); border-color: var(--action-danger); }
dialog .button.danger { background: var(--action-danger); color: var(--white); }
.button[disabled], .button[aria-disabled="true"] { color: var(--text-muted); background: var(--surface); border: 1.5px dashed var(--action-disabled-border); cursor: not-allowed; }
.button[aria-busy="true"].primary { background: var(--action-busy); color: var(--text-body); }
.intro { color: var(--text-muted); margin-top: .8rem; }
.account-links { margin-top: 1.2rem; display: grid; gap: .6rem; }
.account-links p { margin: 0; }
.back-link { display: inline-flex; align-items: center; min-height: var(--control-h); }
.breadcrumb { font-size: 15px; color: var(--text-muted); }
.breadcrumb [aria-current] { margin-inline-start: 8px; }
.page-title { margin-block-end: 1.5rem; }
.page-title p { margin-top: .55rem; color: var(--text-muted); }
.section-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.page-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 1rem; border-top: 1px solid var(--line); font-size: .85rem; }
.page-footer a { color: var(--text-muted); }
.recovery-codes { columns: 2; line-height: 1.8; }
.token { overflow-wrap: anywhere; border: 1px solid var(--line); padding: .55rem .8rem; }
.panel h2 + p { margin-top: .65rem; }
.content-stack { display: grid; gap: 1rem; }
.card-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.card-list li { min-width: 0; }
.card-list a:not(.button) { text-underline-offset: .23em; }
.row-detail { display: flex; justify-content: space-between; align-items: center; gap: .85rem; flex-wrap: wrap; }
.subdued { color: var(--text-muted); }
.split-line { border: 0; border-top: 1px solid var(--line); margin-block: 1rem; }
.workshop-text { white-space: pre-wrap; max-width: var(--measure); overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; border-radius: var(--radius-pill); padding: 3px 10px; font-size: 13px; font-weight: 700; background: var(--status-neutral-bg); color: var(--status-neutral-fg); }
.badge.ok { background: var(--status-ok-bg); color: var(--status-ok-fg); }
.badge.wait, .badge.unread { background: var(--status-wait-bg); color: var(--status-wait-fg); }
.badge.info { background: var(--status-info-bg); color: var(--status-info-fg); }
.badge.error { background: var(--status-error-bg); color: var(--status-error-fg); }
.team-nav { display: flex; gap: .8rem; flex-wrap: wrap; margin-block-end: 1.25rem; }
.inline-form { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; margin-block: 1rem; }
.inline-form .field { flex: 1 1 12rem; }
@media (max-width: 1099.98px) {
  .entry-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; }
  .gateway-side { padding: 20px 16px 24px; }
  .gateway-side::before, .gateway-lead { display: none; }
  .entry-pane { padding: 20px 16px 40px; }
  .team-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .team-side { display: flex; align-items: center; gap: 4px; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); padding: 6px 12px; }
  .team-side p, .account-name { display: none; }
  .team-side a { white-space: nowrap; }
  .member-area .top-inner { flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
  .member-area .top-nav { order: 3; flex: 1 0 100%; border-top: 1px solid var(--line-on-dark); }
}
@media (max-width: 759.98px) {
  :root { scroll-padding-block-start: 12px; }
  .member-area .top { position: static; }
  .section-grid { grid-template-columns: minmax(0, 1fr); }
  h2 { font-size: 20px; }
}
@media (max-width: 420px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 760px) {
  .member-area { --header-clearance: 128px; }
  .member-area [id] { scroll-margin-block-start: var(--header-clearance); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); white-space: nowrap; overflow: hidden; }
.material-list { margin-top: .8rem; }
.material-list li { padding: .8rem 0; border-top: 1px solid var(--line); }
.material-form { max-width: 52rem; }

.badge-group { display: flex; flex-wrap: wrap; gap: .35rem; }
.conversation-form, .conversation-timeline { max-width: 46rem; }
.conversation-timeline { padding: 0; list-style: none; display: grid; gap: .75rem; margin: 1rem 0 0; }
.conversation-message { border: 1px solid var(--line); background: var(--white); border-radius: .75rem; padding: .8rem 1rem; min-width: 0; }
.conversation-message.incoming { background: var(--mist); }
.conversation-message .workshop-text { margin-top: .45rem; }
.conversation-message .badge { margin-top: .35rem; }
.page-title h1 { overflow-wrap: anywhere; }

.quiz-editor { max-width: 52rem; }
.quiz-editor .quiz-fieldset textarea { min-height: 4.5rem; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-block: .8rem; }
.quiz-fieldset { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; overflow-wrap: anywhere; }
.quiz-fieldset legend { max-inline-size: 100%; padding-inline: .35rem; font-weight: 750; }
.quiz-fieldset > * + * { margin-block-start: .8rem; }
.quiz-options { display: grid; gap: .55rem; }
.quiz-option, .quiz-choice { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .55rem; }
.quiz-check, .quiz-choice { display: flex; align-items: baseline; gap: .6rem; min-height: 2.75rem; }
.quiz-check input, .quiz-choice input { flex: none; accent-color: var(--violet); width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; }
.quiz-choice { cursor: pointer; }
.quiz-choice:hover, .quiz-choice:has(:checked) { background: var(--violet-tint); }
.quiz-choice:has(:checked) { border-color: var(--violet); }
.quiz-rules { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.quiz-rules dt, .quiz-review-list dt { font-weight: 700; }
.quiz-rules dd, .quiz-review-list dd { margin: 0 0 .35rem; }
.quiz-score { font-size: 1.6rem; font-weight: 750; }

.profile-photo { margin-top: 1rem; }
.profile-photo-image { object-fit: cover; border-radius: 50%; display: block; margin-top: .8rem; }
img.initials { object-fit: cover; }


fieldset { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-control); }
fieldset legend { font-weight: 700; }
.workshop-modules { display: flex; flex-wrap: wrap; gap: 12px; }
.workshop-module { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; flex: 1 1 max(15rem, 28%); color: var(--text); text-decoration: none; }
.workshop-module h3 { color: var(--text-link); text-decoration: underline; text-underline-offset: .2em; }
.workshop-module > .badge + h3 { margin-block-start: 0; }
.workshop-module p { margin: 0; color: var(--text-muted); font-weight: 400; }
.workshop-module:hover { border-color: var(--action-outline); background: var(--surface-selected); }
.workshop-settings { display: grid; gap: .5rem; }
.workshop-settings p { margin: 0; }
.context-help { width: fit-content; max-width: 100%; }
.context-help summary { display: grid; place-items: center; min-width: var(--control-h); min-height: var(--control-h); width: fit-content; border-radius: var(--radius-control); color: var(--text-link); cursor: pointer; list-style: none; }
.context-help summary::-webkit-details-marker { display: none; }
.context-help summary:hover, .context-help[open] summary { background: var(--surface-selected); }
.context-help > p { max-width: 46ch; margin: .25rem 0 .5rem; padding: .65rem .8rem; border-radius: var(--radius-control); background: var(--surface-selected); color: var(--text-2); }
.panel > * + h2, .panel > * + h3 { margin-block-start: 1rem; }
.panel a:not(.button), .account-links a, .page-footer a { min-height: var(--control-h); }
.account-links a, .page-footer a { display: inline-flex; align-items: center; }
.password-field { position: relative; }
.password-field input[type="password"], .password-field input[type="text"] { padding-inline-end: min(45%, 110px); }
.password-toggle { position: absolute; inset: 0 4px auto auto; min-height: var(--control-h); padding-inline: 8px; border: 0; background: none; color: var(--text-link); font-size: var(--fs-meta); font-weight: 700; }
.password-toggle[hidden] { display: none; }
dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 0; border-radius: var(--radius-card); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: var(--surface-overlay); }
dialog p { margin-block: 12px; }
dialog .inline-form { margin-block-end: 0; }
.workshop-cards, .news-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.workshop-card { display: grid; justify-items: start; align-content: start; gap: 12px; }
.workshop-card.active-workshop, .workshop-banner { background: var(--surface-brand); color: var(--white); border-color: var(--surface-brand); }
.workshop-card.active-workshop p, .workshop-banner p, .workshop-card.active-workshop a:not(.button) { color: var(--text-on-brand-muted); }
.workshop-banner { margin-block-end: 20px; }
.next-step { background: var(--status-wait-bg); border-color: var(--phase-during); }
.empty-state, .narrow-content { max-width: 720px; }
.reading-panel { max-width: calc(var(--measure) + 44px); }
.workflow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.workflow-steps li { padding: 10px 12px; border: 1px dashed var(--field-border); border-radius: 12px; background: var(--surface); }
.workflow-steps li[aria-current="step"] { background: var(--surface-brand); color: var(--white); border-style: solid; }
.workflow-steps li.complete { background: var(--status-ok-bg); color: var(--status-ok-fg); border-color: transparent; }
.workflow-steps small { display: block; }
.workspace-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px; align-items: start; }
.workspace-split > * { min-width: 0; }
.screen-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-block: 0 20px; }
.screen-tabs a { display: inline-flex; align-items: center; min-height: var(--control-h); padding-inline: 12px; color: var(--text-body); text-decoration: none; border-bottom: 3px solid transparent; }
.screen-tabs a[aria-current="page"] { border-bottom-color: var(--text-link); color: var(--ink); }
.conversation-message { max-width: min(100%, 62ch); }
.conversation-message.incoming { background: var(--surface-selected); }
.conversation-message.outgoing { margin-inline-start: auto; }
.quiz-choice:has(:checked) { box-shadow: inset 0 0 0 1px var(--ink); border-color: var(--ink); }
.quiz-question[hidden] { display: none; }
.quiz-navigation { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1099.98px) { .workspace-split { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto; transition: none; } }
.info-note { background: var(--status-info-bg); color: var(--status-info-fg); margin-block: 12px; padding: 12px 14px; border-radius: 12px; }
.validation-summary-errors { border: 1.5px solid var(--action-danger); }
.quiz-navigation[hidden] { display: none; }
.editorial-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.work-queue { margin-block-start: 12px; }
.panel header + .workshop-text { margin-block-start: 1rem; }
.news-cards h2 { margin-block-start: 8px; font-size: 20px; }
.news-cards a { color: var(--ink); text-decoration: none; }
.news-cards a:hover { text-decoration: underline; }
@media (max-width: 1099.98px) { .editorial-workspace { grid-template-columns: minmax(0, 1fr); } }
.download-error { flex-basis: 100%; padding: 12px 14px; border-radius: 12px; color: var(--status-error-fg); background: var(--status-error-bg); }
.button[aria-busy="true"] { cursor: progress; }
.draft-status { font-size: var(--fs-meta); color: var(--text-muted); }
@media (max-width: 759.98px) {
  .conversation-compose.with-keyboard { position: sticky; bottom: var(--keyboard-inset); z-index: 4; }
  .conversation-compose.with-keyboard textarea { min-height: 4.5rem; }
}
.field[hidden], dialog button[hidden] { display: none; }

.responsive-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.responsive-table caption { text-align: left; font-weight: 700; font-size: var(--fs-section); margin-block-end: 10px; }
.responsive-table :is(th, td) { padding: 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.responsive-table thead th { border-bottom: 2px solid var(--ink); color: var(--text-muted); font-size: 13px; }
.responsive-table tbody th { width: 33%; }
.responsive-table tbody tr:last-child > * { border-bottom: 0; }
.table-meta { display: block; color: var(--text-muted); font-weight: 400; overflow-wrap: anywhere; }
.table-actions { display: flex; flex-wrap: wrap; gap: 0 16px; }
.table-actions a { display: inline-flex; align-items: center; min-height: var(--control-h); }
.table-mobile-label { display: none; }
.editions-table { margin-block-start: 12px; }
@media (max-width: 759.98px) {
  .responsive-table { display: block; }
  .responsive-table caption { display: block; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .responsive-table tbody { display: grid; gap: 10px; }
  .responsive-table tbody tr { display: grid; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
  .responsive-table tbody :is(th, td) { padding: 0; width: auto; border: 0; }
  .responsive-table td { margin-block-start: 6px; }
  .table-mobile-label { display: inline; }
}
.conversation-workspace { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); }
.conversation-sidebar [aria-current] { display: block; padding: 8px; border-radius: 8px; background: var(--surface-selected); color: var(--text-link); }
@media (max-width: 1099.98px) {
  .conversation-workspace { grid-template-columns: minmax(0, 1fr); }
  .conversation-sidebar { display: none; }
}
.notice-info { color: var(--status-info-fg); background: var(--status-info-bg); }
.notice-error { color: var(--status-error-fg); background: var(--status-error-bg); border: 1.5px solid var(--status-error-fg); }
.screen-tabs[hidden] { display: none; }
.screen-tabs button { min-height: var(--control-h); padding-inline: 12px; color: var(--text-body); border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 600; }
.screen-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--text-link); }
#editor-preview-panel :is(h3, .workshop-text) { margin-block-start: 12px; }
