/* Brand typography. Suisse* are licensed fonts — drop the .woff2 files into
   /assets/fonts/ (see fonts/README.txt). If absent, the fallbacks are used. */
@font-face{font-family:'Suisse Works';src:url('/assets/fonts/SuisseWorks-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Suisse Works';src:url('/assets/fonts/SuisseWorks-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Suisse Intl';src:url('/assets/fonts/SuisseIntl-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Suisse Intl';src:url('/assets/fonts/SuisseIntl-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Suisse Intl';src:url('/assets/fonts/SuisseIntl-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
/* Manrope — self-hosted body font (latin subset incl. æøå). Pairs with the
   Suisse Works serif used for headings. */
@font-face{font-family:'Manrope';src:url('/assets/fonts/Manrope-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Manrope';src:url('/assets/fonts/Manrope-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Manrope';src:url('/assets/fonts/Manrope-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Manrope';src:url('/assets/fonts/Manrope-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}

:root{
  --bg:#F5F6F7; --card:#fff; --ink:#1f2937; --muted:#6b7280;
  --accent:#1a93b8; --link:#2563eb; --border:#e5e7eb;
  --font-body:'Manrope','Suisse Intl',system-ui,Segoe UI,Roboto,sans-serif;
  --font-head:'Suisse Works',Georgia,'Times New Roman',serif;
}
*{box-sizing:border-box}
/* Form controls don't inherit font-family from <body> by default — opt them in
   so buttons/inputs/selects use the Suisse brand font like the rest of the UI. */
button,input,select,textarea{font-family:inherit}
body{margin:0;font-family:var(--font-body);background:var(--bg);color:var(--ink);
  min-height:100vh;display:flex;flex-direction:column}
/* Suisse Works for headings and brand-defining typography */
h1,h2,h3,h4,h5,.brand span,.welcome-card h2,.auth-card h1,.auth-card h2{font-family:var(--font-head)}
/* Global heading scale — one size per level so headings are consistent app-wide
   regardless of (or instead of relying on) a wrapper class. Context classes
   further down may still override intentionally (e.g. report/guide layouts). */
h1{font-size:28px}
h2{font-size:22px}
h3{font-size:18px}
/* keep the footer pinned to the bottom on short pages */
body > .container{flex:1 0 auto;width:100%}
body > .site-footer{flex-shrink:0;width:100%}
/* simple topbar used on public pages (index/login) */
header.topbar{display:flex;align-items:center;justify-content:space-between;
  padding:12px 24px;background:var(--card);border-bottom:1px solid var(--border)}
.topbar .brand{font-weight:700;font-size:20px;color:var(--accent);text-decoration:none}
.topbar nav a{margin-left:16px;color:var(--ink);text-decoration:none}
.topbar nav a:hover{color:var(--accent)}

/* ===== App navbar (sticky, transparent on scroll, content slides under) ===== */
.navbar{position:sticky;top:0;z-index:1000;padding:10px 16px;
  transition:background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;}
.navbar-inner{max-width:1120px;margin:0 auto;display:flex;align-items:center;gap:20px;
  background:rgba(255,255,255,.92);border:1px solid var(--border);border-radius:16px;
  padding:8px 18px;box-shadow:0 1px 3px rgba(0,0,0,.05);
  transition:background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;}
/* when scrolled: more see-through + blur so text passes under it */
.navbar.scrolled .navbar-inner{background:rgba(255,255,255,.65);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 6px 20px rgba(0,0,0,.10);}
.navbar .brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:20px;
  color:var(--accent);text-decoration:none}
.nav-collapse{display:flex;align-items:center;gap:20px;flex:1}
/* minimal header (public survey): no navbar box — centred brand, lang toggle pinned right */
.survey-top{width:100%}
.survey-top-inner{position:relative;display:flex;justify-content:center;align-items:center;
  max-width:760px;margin:0 auto;padding:22px 16px}
.survey-top-inner .brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:26px;
  color:var(--accent);text-decoration:none}
.survey-top-inner .brand svg{width:40px;height:40px}
.survey-top-inner .lang-toggle{position:absolute;right:16px;top:50%;transform:translateY(-50%)}
.navmenu{display:flex;align-items:center;gap:6px;flex:1}
/* burger (mobile only) */
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;
  width:44px;height:38px;padding:0 10px;background:#fff;border:1px solid var(--border);
  border-radius:10px;cursor:pointer}
.nav-toggle span{display:block;height:2px;border-radius:2px;background:var(--ink);transition:transform .2s,opacity .2s}
.lang-toggle--top{display:none}
.navbar.nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.navbar.nav-open .nav-toggle span:nth-child(2){opacity:0}
.navbar.nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.navlink{padding:8px 12px;border-radius:8px;color:#6b7280;text-decoration:none;font-size:15px;
  display:inline-flex;align-items:center;gap:6px}
.nav-ico{flex:none}
.navlink:hover{color:#000}
.navlink.active{color:#000}
.navright{display:flex;align-items:center;gap:12px;margin-left:auto}
.lang-toggle{border:1px solid var(--border);border-radius:8px;padding:6px 10px;
  text-decoration:none;color:#6b7280;font-size:14px;background:#fff}
.lang-toggle:hover{background:var(--bg)}

/* dropdowns (Administration + user) */
.dropdown{position:relative}
.dropdown-toggle{background:none;border:0;cursor:pointer;font:inherit;font-size:15px;
  color:#6b7280;padding:8px 12px;border-radius:8px;display:flex;align-items:center;gap:6px}
.dropdown-toggle:hover{color:#000}
.dropdown-toggle.active{color:#000}
.dropdown-toggle.user{font-weight:500}
.caret{font-size:11px;color:var(--muted)}
.dropdown-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:180px;
  background:#fff;border:1px solid var(--border);border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);padding:6px;display:none;z-index:1100}
.dropdown-menu.right{left:auto;right:0}
.dropdown.open .dropdown-menu{display:block}
.dropdown-menu a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;color:#6b7280;
  text-decoration:none;font-size:15px}
.dropdown-menu a:hover{background:var(--bg)}
.dropdown-info{display:block;padding:8px 12px;color:var(--muted);font-size:13px;
  border-bottom:1px solid var(--border);margin-bottom:4px}

/* width:100% is required because body is a flex column — without it a flex
   item with auto side margins shrinks to its content width instead of filling. */
.container{width:100%;max-width:1120px;margin:24px auto;padding:0 16px}
.center-hero{text-align:center;margin-top:64px}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:16px}
/* card with a shaded header band; body stays white (use with .card{padding:0;overflow:hidden}) */
.card-band{display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:18px 24px;background:#e6e9ee;border-bottom:1px solid var(--border)}
.card-body{padding:6px 24px 14px}
@media(max-width:600px){.card-band{flex-wrap:wrap}.card-band .btn{width:100%;text-align:center}}
.btn{display:inline-block;background:var(--accent);color:#fff;border:0;border-radius:8px;
  padding:10px 18px;font-size:15px;cursor:pointer;text-decoration:none}
.btn.secondary{background:#fff;color:var(--accent);border:1px solid var(--accent)}
/* hover: darken ONLY the background (inset overlay leaves text/border untouched);
   neutral buttons keep their own hover; the light-red delete button goes more red */
.btn:hover,.btn-pill:hover{box-shadow:inset 0 0 0 999px rgba(0,0,0,.08)}
.btn--white:hover,.btn.secondary:hover,.btn--grey:hover,.btn--ghost:hover{box-shadow:none}
.btn--danger:hover{box-shadow:none;background:#f3bcc4}
.danger-outline:hover{box-shadow:none;background:#fde7ea}
label{display:block;margin:12px 0 4px;font-size:14px;color:var(--muted)}
input,select,textarea{width:100%;padding:10px;border:1px solid var(--border);border-radius:8px;font-size:15px}
.form-narrow{max-width:380px;margin:48px auto}
.scale-row{display:flex;gap:8px;justify-content:space-between;margin:8px 0 20px}
.scale-row label{flex:1;text-align:center;background:#fff;border:1px solid var(--border);
  border-radius:8px;padding:10px 4px;cursor:pointer;margin:0}
.scale-row input{display:none}
.scale-row input:checked + span{font-weight:700;color:var(--accent)}

/* ---- my classes grid (3 per row) ---- */
.class-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.class-card{display:flex;flex-direction:column;gap:6px;margin-bottom:0}
.class-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.class-card-head .list-card-title{margin:0}
.class-card-head .badge{flex:none;white-space:nowrap;text-decoration:none}
.class-card-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;
  margin-top:auto;padding-top:10px}
.class-card-foot .list-card-link{margin-top:0}
.class-card-actions{display:flex;align-items:center;gap:6px}
.class-card-actions .inline-del{display:inline;margin:0}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border-radius:8px;border:1px solid var(--border);background:#fff;color:var(--muted);
  cursor:pointer;text-decoration:none;font-size:15px;padding:0}
.icon-btn:hover{border-color:var(--accent);color:var(--accent)}
.icon-btn--danger:hover{border-color:#dc2626;color:#dc2626}
@media(max-width:900px){.class-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.class-grid{grid-template-columns:1fr}}
.class-card--add{border:2px dashed var(--border);background:transparent;align-items:center;
  justify-content:center;text-align:center;color:var(--muted);text-decoration:none;min-height:140px}
.class-card--add:hover{border-color:var(--accent);color:var(--accent)}
.class-card--add .add-plus{font-size:30px;line-height:1}

/* ---- admin list + forms (schools/users) ---- */
.muted{color:var(--muted)}
.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:16px}
.page-head h1{margin:0;font-size:28px}
.list-card{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.list-card-title{font-size:18px;font-weight:600;color:var(--link);text-decoration:none}
.list-card-title:hover{text-decoration:underline}
/* In list rows (schools, licences, …) and teacher class cards the title reads
   like a plain table cell: ink, normal weight, no blue — only teal + underline
   on hover for affordance. */
.list-card .list-card-title,.class-card-head .list-card-title{font-size:16px;font-weight:400;color:var(--ink)}
.list-card .list-card-title:hover,.class-card-head .list-card-title:hover{color:var(--accent);text-decoration:underline}
.list-card-main p{margin:4px 0 0}
.list-card-meta{text-align:right;font-size:13px;min-width:140px}
.list-card-link{display:inline-block;margin-top:8px;color:var(--accent);text-decoration:none}
.list-card-link:hover{text-decoration:underline}
.form-card{max-width:720px;margin:0 auto}
/* back-link above a centred form-card: align it to the card's left edge,
   with a bit of breathing room before the card */
.form-back{max-width:720px;margin:0 auto 20px}
.back-bar{margin:0 0 20px}
.class-actions{display:flex;gap:8px;align-items:center;flex:none}
.empty-state{background:#f7f9fb;border-radius:12px;padding:28px 20px;text-align:center}
.empty-state .btn{display:inline-flex;align-items:center;gap:8px}
.assigned-box{background:#f7f9fb;border-radius:12px;padding:18px 20px}
.assigned-list{list-style:none;margin:0;padding:0}
.assigned-list li{display:flex;align-items:center;gap:10px;padding:5px 0}
.assigned-list .dot{flex:none;width:9px;height:9px;border-radius:50%;background:#16a34a}
.assign-admin-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.assign-admin-row select{flex:1;min-width:220px;margin:0}
.assign-admin-row .btn{flex:none}
@media(max-width:600px){.assign-admin-row .btn{width:100%}}
.form-card h1{font-size:28px;margin:4px 0 16px}
.form-section{border:1px solid var(--border);border-radius:12px;padding:8px 18px 18px;margin:18px 0;background:#fafcfe}
.form-section legend{font-weight:600;padding:0 6px;color:var(--ink)}
.field-hint{color:var(--muted);font-size:13px;margin:4px 0 0}
.req{color:#dc2626;font-weight:500;font-size:13px}
.data-table{width:100%;border-collapse:collapse}
.data-table th{text-align:left;color:var(--muted);font-weight:600;font-size:13px;
  padding:8px 10px;border-bottom:1px solid var(--border)}
.data-table td{padding:10px;border-bottom:1px solid var(--border)}
.data-table tr:last-child td{border-bottom:0}
/* link that blends into a table cell: same size/weight/colour as plain text */
.cell-link{color:inherit;text-decoration:none}
.cell-link:hover{text-decoration:underline}
.filter-row{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-end}
.filter-field{flex:1;min-width:160px}
.filter-field label{margin-top:0}
.active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}
.active-filters .af-label{color:#6b7280;font-size:14px;margin-right:2px}
.filter-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 13px;border-radius:999px;font-size:14px;font-weight:500;text-decoration:none;line-height:1.4}
.filter-chip .x{font-size:15px;opacity:.65}
.filter-chip:hover .x{opacity:1}
.chip-blue{background:#dde8ff;color:#1d4ed8}
.chip-green{background:#d7f5e1;color:#15803d}
.chip-yellow{background:#fdeec0;color:#92660b}
.clear-filters{color:#374151;font-size:14px;text-decoration:none;margin-left:4px}
.clear-filters:hover{text-decoration:underline}
.no-match{color:#dc2626;margin-left:10px}
th.sortable{cursor:pointer;user-select:none}
th.sortable .arrow{opacity:.4;font-size:12px;margin-left:3px}
.error-page{display:flex;justify-content:center;padding:48px 16px}
.error-card{max-width:480px;width:100%;text-align:center;padding:40px 32px}
.error-card .error-code{font-size:52px;font-weight:700;color:var(--link);line-height:1;margin-bottom:8px}
.error-card h1{margin:0 0 8px;font-size:28px}
.error-card p{margin:0 0 24px}
.chip-list{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 10px}
.ms-chip{display:inline-flex;align-items:center;gap:9px;padding:6px 15px;border-radius:999px;font-size:15px;font-weight:500;background:#dde8ff;color:#1d4ed8}
.ms-chip button{border:0;background:none;color:inherit;cursor:pointer;font-size:16px;line-height:1;padding:0;opacity:.65}
.ms-chip button:hover{opacity:1}
.rule{border:0;border-top:1px solid var(--border);margin:18px 0}
.role-options{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.role-option{display:flex;align-items:flex-start;gap:10px;margin:0;cursor:pointer;font-size:15px;color:var(--ink)}
.role-option input{width:auto;margin-top:3px}
.role-option em{color:var(--muted);font-style:normal}
.badge--amber{background:#fef9c3;color:#854d0e}
.badge--grey{background:#e5e7eb;color:#374151}
.badge--red{background:#fee2e2;color:#991b1b}
.badge--yellow{background:#fef9c3;color:#854d0e}
.badge--blue{background:#dbeafe;color:#1e40af}
.active-toggle{margin:4px 0 10px}
.inline-check{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-size:15px;margin:0;cursor:pointer}
.inline-check input{width:auto}
.danger-outline{background:#fff;color:#dc2626;border:1px solid #dc2626}
.btn--yellow{background:#eab308;color:#fff}
.btn--teal{background:#1a93b8;color:#fff}
.btn--ghost{background:#eceef0;color:#6b7280;border:1px solid var(--border);font-size:14px;padding:8px 14px}
.btn--white{background:#fff;color:#6b7280;border:1px solid var(--border)}
.btn--white:hover{background:#eceef0}
.btn--ghost:hover{color:#000}
.btn--red{background:#ef4444;color:#fff}
/* CSV upload guidelines */
.info-box{background:#eaf2fe;border-radius:10px;padding:14px 18px;margin:16px 0}
.info-box h4{margin:0 0 8px;color:#1e40af}
.info-box ul{margin:0;padding-left:18px;color:#1e40af}
.info-box li{padding:2px 0}
.code-box{background:#f3f4f6;border:1px solid var(--border);border-radius:8px;padding:14px 16px;margin:4px 0 0;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;color:#374151;
  white-space:pre;overflow:auto}
.btn--danger{background:#fbeaed;color:#b06472;border:1px solid #f3d8dd}
.btn--grey{background:#f1f2f3;color:#6b7280;border:1px solid #e4e6e9}
.btn--dark{background:#374151;color:#fff;border:1px solid #374151}
/* role badges (scope palette): org=admin, tag=school_admin, net=teacher */
.badge--org{background:#cdf3ec;color:#0f766e}
.badge--tag{background:#fde4cf;color:#9a4f1b}
.badge--net{background:#e5e7eb;color:#374151}
.form-actions-split{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:12px}

/* no-access checklist (school admin dashboard role card) */
.dash-checklist--no{color:#6b7280}
.dash-checklist--no li::before{content:'\2715 ';color:#dc2626}

/* school detail page */
.detail-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0 8px}
.detail-meta{background:#f8fafc;border:1px solid var(--border);border-radius:10px;
  padding:12px 16px;margin:0}
.detail-label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.school-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
@media(max-width:640px){.detail-meta-grid{grid-template-columns:1fr}}
/* Danish address autocomplete */
.addr-wrap{position:relative}
.addr-suggest{position:absolute;left:0;right:0;top:calc(100% + 4px);background:#fff;
  border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.12);
  z-index:50;max-height:240px;overflow:auto;display:none}
.addr-suggest.open{display:block}
.addr-suggest div{padding:9px 12px;cursor:pointer;font-size:14px}
.addr-suggest div:hover,.addr-suggest div.active{background:#f1f5f9}
.addr-chosen{background:#eaf2fe;border-radius:8px;padding:10px 12px;margin-top:8px;font-size:14px;color:#1e40af}
.invite-row{display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:12px 0;border-bottom:1px solid var(--border)}
.invite-row:last-child{border-bottom:0}
.linklike-danger{background:none;border:0;color:#dc2626;cursor:pointer;font:inherit;padding:0}
.linklike-danger:hover{text-decoration:underline}
.stat-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.stat-tile{background:#f8fafc;border:1px solid var(--border);border-radius:10px;padding:16px}
.stat-tile-label{color:var(--muted);font-size:14px}
.stat-tile-num{font-size:28px;font-weight:700;color:var(--link);margin-top:4px}
a.stat-tile{display:block;text-decoration:none;color:inherit;transition:box-shadow .15s,transform .15s}
a.stat-tile:hover{box-shadow:0 6px 18px rgba(15,61,86,.08);transform:translateY(-1px)}
.stat-tile-link{color:var(--link);font-size:13px;margin-top:8px}
@media(max-width:640px){.stat-tiles{grid-template-columns:1fr}}

/* ---- auth pages (login / forgot / reset / accept) ---- */
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.auth-card{width:100%;max-width:440px;margin:40px auto;padding:32px}
.auth-card h1,.auth-card h2{text-align:center;color:#0f3d56;margin-top:0}
.auth-card .btn{width:100%}
.auth-intro{text-align:center;color:var(--muted);margin:0 0 22px}
.auth-links{text-align:center;color:var(--muted);margin-top:14px;font-size:14px}
.auth-links a{color:var(--link);text-decoration:none;font-weight:600}
.auth-links a:hover{text-decoration:underline}

/* ---- site footer (all pages) ---- */
.site-footer{max-width:1120px;margin:24px auto 32px;padding:0 16px;text-align:center;
  color:var(--muted);font-size:13px}
.footer-rule{width:64px;height:3px;margin:0 auto 14px;border-radius:2px;
  background:linear-gradient(90deg,#16a34a,#2563eb,#9333ea)}
.site-footer p{margin:0}

/* ---- public landing (logged out) ---- */
.index-hero{margin:0;text-align:center;padding:48px 24px}
/* Primary buttons use the brand teal app-wide. Kept as an alias so existing
   btn--blue markup stays valid (it's no longer blue). */
.btn--blue{background:var(--accent)}
/* compound selector so these win over the later .welcome-wheel base rules */
.welcome-wheel.welcome-wheel--lg{width:400px;height:400px;max-width:100%}
.welcome-wheel.welcome-wheel--lg::after{inset:130px}
.welcome-wheel.welcome-wheel--lg span{font-size:54px}

/* ---- questionnaires admin stat cards ---- */
.qstat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.qstat{margin:0;text-align:center;padding:20px 16px}
.qstat-num{font-size:30px;font-weight:700;color:var(--link)}
.qstat-label{color:var(--muted);font-size:14px;margin-top:4px}
/* light tint matching each stat number; borders stay uniform (var(--border)) */
.qstat--blue{background:#eff4ff}
.qstat--green{background:#ecfdf3}
.qstat--purple{background:#f7f0fe}
.qstat--orange{background:#fff3ec}
.school-check-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media(max-width:700px){.school-check-grid{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.qstat-grid{grid-template-columns:1fr 1fr}}

/* ---- logged-in welcome homepage ---- */
.welcome-card{margin:0;text-align:center;padding:48px 32px}
.welcome-card h2{margin:32px 0 4px;font-size:24px;color:#0f3d56}
.welcome-sub{color:var(--muted);margin:0 0 24px}
.welcome-wheel{width:240px;height:240px;border-radius:50%;margin:8px auto 16px;position:relative;
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  background:conic-gradient(#1b6b6b 0 45deg,#2f8f8f 45deg 90deg,#7cc0bd 90deg 135deg,
    #cfe7d8 135deg 180deg,#efe2b0 180deg 225deg,#e0c074 225deg 270deg,
    #c79545 270deg 315deg,#9c6b32 315deg 360deg)}
.welcome-wheel::after{content:'';position:absolute;inset:78px;background:#fff;border-radius:50%}
.welcome-wheel span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:34px;color:#0f3d56;z-index:1}

/* ---- dashboard ---- */
.dash-head{margin-bottom:20px}
.dash-kicker{margin:0;color:var(--muted);font-size:15px}
.dash-head h1{margin:2px 0 0;font-size:28px}
.dash-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.dash-card{margin:0;display:flex;flex-direction:column}
.dash-card h3{margin:0 0 4px;font-size:18px}
.dash-card--accent{background:#f1f0fe;border-color:#e0ddfb}
.dash-card--accent h3{color:#6d28d9}
.dash-card--teacher{background:#e7f7f0;border-color:#bfe9d6}
.dash-card--teacher h3{color:#0f3d56}
.dash-card--teacher .dash-i{color:#0f766e}
.dash-card--teacher .dash-card-desc{color:#0f766e;font-weight:700}
.dash-card--teacher .dash-checklist{color:#166534}
.dash-card--teacher .dash-checklist--no{color:#6b7280}
.dash-card--teacher .dash-checklist--no li::before{color:#9ca3af}
.dash-card-desc{color:var(--muted);font-size:14px;margin:6px 0 12px}
.dash-card-top{display:flex;justify-content:space-between;align-items:flex-start}
.dash-stat{text-align:right;line-height:1.1}
.dash-num{font-size:30px;font-weight:700;color:var(--link);display:block}
.dash-num--green{color:#16a34a}
.dash-num--purple{color:#9333ea}
.dash-num--orange{color:#ea580c}
.dash-unit{font-size:12px;color:var(--muted)}
.dash-checklist{list-style:none;padding:0;margin:0;color:#6d28d9;font-size:14px}
.dash-checklist li{padding:3px 0}
.dash-checklist li::before{content:'\2713';color:#16a34a;display:inline-block;margin-right:10px;font-weight:700}
.dash-checklist--no li::before{content:'\2717';color:#9ca3af}
.dash-links{margin-top:auto;padding-top:8px;display:flex;gap:18px;flex-wrap:wrap}
.dash-links a{color:var(--link);text-decoration:none;font-size:14px}
.dash-links a:hover{text-decoration:underline}

/* ---- guide / documentation ---- */
.guide-head{text-align:center;margin:8px 0 28px}
.guide-head .guide-ico{font-size:38px;color:var(--link);display:block;margin-bottom:10px}
.guide-head h1{margin:0 0 6px;font-size:28px}
.guide-head p{margin:0;color:var(--muted);font-size:17px}
.guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}
.guide-card{display:block;background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px;
  text-decoration:none;color:inherit;transition:box-shadow .15s,transform .15s}
.guide-card:hover{box-shadow:0 8px 24px rgba(15,61,86,.10);transform:translateY(-2px)}
.guide-card .guide-card-ico{font-size:28px;color:#374151;display:block;margin-bottom:18px}
.guide-card h3{margin:0 0 12px;font-size:19px;color:#0f3d56;line-height:1.25}
.guide-card p{margin:0;color:var(--muted);line-height:1.5;font-size:15px}
@media(max-width:1000px){.guide-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.guide-grid{grid-template-columns:1fr}}
.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:6px}
.guide-step{display:flex;gap:12px}
.guide-step .step-num{flex:none;width:28px;height:28px;border-radius:50%;background:#e9f0ff;color:var(--link);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.guide-step h4{margin:0 0 4px;font-size:16px;color:#0f3d56}
.guide-step p{margin:0;color:var(--muted);line-height:1.5;font-size:15px}
@media(max-width:700px){.guide-steps{grid-template-columns:1fr}}
.guide-article{margin-left:auto;margin-right:auto}
.guide-article h2{font-size:20px;color:#0f3d56;margin:22px 0 8px}
.guide-article h2:first-child{margin-top:0}
.guide-article p{line-height:1.6}
.guide-article ol,.guide-article ul{margin:0 0 8px;padding-left:22px;line-height:1.6}
.guide-article li{padding:3px 0}

/* ---- profile ---- */
.profile-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.profile-head h1{margin:0;font-size:28px}
.link-back{color:var(--link);text-decoration:none}
.profile-grid{display:grid;grid-template-columns:300px 1fr;gap:18px;align-items:stretch}
.profile-pic-card{margin:0;text-align:center}
.profile-info-card{margin:0}
.avatar-img{width:150px;height:150px;border-radius:50%;object-fit:cover;margin:8px auto 12px;display:block;border:3px solid #fff;box-shadow:0 0 0 1px var(--border)}
.avatar-default{width:150px;height:150px;border-radius:50%;margin:8px auto 12px;position:relative;
  background:conic-gradient(#1b6b6b 0 45deg,#2f8f8f 45deg 90deg,#7cc0bd 90deg 135deg,
    #cfe7d8 135deg 180deg,#efe2b0 180deg 225deg,#e0c074 225deg 270deg,
    #c79545 270deg 315deg,#9c6b32 315deg 360deg)}
.avatar-default::after{content:'';position:absolute;inset:30px;background:#fff;border-radius:50%}
.avatar-default span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-weight:700;color:var(--ink);z-index:1}
.avatar-form{margin-top:4px}
.avatar-hint{color:var(--muted);font-size:12px;margin:10px 0 0}
.profile-info-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.profile-info-head h3{margin:0}
.btn.dark{background:#475569;color:#fff}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.profile-dl{margin:0}
.profile-dl dt{color:var(--muted);font-size:13px;margin-top:14px}
.profile-dl dd{margin:2px 0 0;font-size:15px}
.profile-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.badge{display:inline-block;padding:3px 12px;border-radius:999px;font-size:13px}
.badge--green{background:#dcfce7;color:#166534}
.badge--role{background:#fde2e4;color:#9d174d}
.flash{padding:10px 14px;border-radius:8px;margin-bottom:16px}
.flash--ok{background:#dcfce7;color:#166534}
.flash--err{background:#fee2e2;color:#991b1b}

/* ---- class detail + survey ---- */
.class-head{display:flex;justify-content:space-between;align-items:flex-start}
.class-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}
.stat-card{border-radius:14px;padding:20px 22px;display:flex;flex-direction:column;gap:2px;border:1px solid var(--border)}
.stat-card--blue{background:#eff6ff;border-color:#dbeafe}
.stat-card--green{background:#ecfdf5;border-color:#d1fae5}
.stat-card--amber{background:#fffbeb;border-color:#fde68a}
.stat-num{font-size:30px;font-weight:700;color:#1f2937}
.stat-card--blue .stat-num{color:#2563eb}
.stat-card--green .stat-num{color:#16a34a}
.stat-card--amber .stat-num{color:#ea580c}
.stat-label{color:var(--muted);font-size:14px}

.survey-row{border:1px solid var(--border);border-radius:12px;padding:16px}
.survey-row-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.survey-actions{display:flex;gap:8px;flex-wrap:wrap}
.btn-pill{border:0;border-radius:8px;padding:7px 14px;font-size:14px;cursor:pointer;text-decoration:none;display:inline-block}
.btn-pill--green{background:#dcfce7;color:#166534}
.btn-pill--blue{background:#e0e7ff;color:#3730a3}
.btn-pill--purple{background:#f3e8ff;color:#7e22ce}
.survey-counts{background:#f8fafc;border-radius:8px;padding:12px 14px;margin-top:14px;font-size:14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.survey-counts strong{margin-right:6px}
.dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-left:8px}
.dot--purple{background:#9333ea}.dot--blue{background:#2563eb}.dot--green{background:#16a34a}

/* ---- modal ---- */
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);display:flex;
  align-items:flex-start;justify-content:center;padding:40px 16px;z-index:2000;overflow:auto}
.modal-backdrop[hidden]{display:none}
.modal{background:#fff;border-radius:16px;padding:24px;max-width:560px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.modal-close{background:none;border:0;font-size:24px;line-height:1;cursor:pointer;color:var(--muted)}
/* styled delete confirmation */
#confirmModal{align-items:center}
.confirm-box{max-width:460px;padding:0;overflow:hidden}
.confirm-top{display:flex;gap:16px;align-items:flex-start;padding:24px 24px 20px}
.confirm-ico{flex:none;width:44px;height:44px;border-radius:50%;background:#fde8e8;color:#dc2626;
  display:flex;align-items:center;justify-content:center;font-size:22px}
.confirm-title{margin:0 0 6px;font-size:20px}
.confirm-msg{margin:0;color:var(--muted);line-height:1.5}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;background:#f8fafc;border-top:1px solid var(--border)}
.link-card{border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin-bottom:14px}
.link-card--purple{border-color:#e9d5ff;background:#faf5ff}
.link-card--blue{border-color:#dbeafe;background:#eff6ff}
.link-card--green{border-color:#bbf7d0;background:#f0fdf4}
.link-card-title{font-weight:600;color:#1f2937}
.link-card-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.btn-link{display:inline-block;border-radius:8px;padding:9px 16px;color:#fff;text-decoration:none;font-size:14px}
.btn-link--purple{background:#9333ea}.btn-link--blue{background:#2563eb}
.link-input{width:100%;font-size:12px;font-family:monospace;background:#fff;
  border:1px solid var(--border);border-radius:8px;padding:8px}

/* ---- analyse page ---- */
.analyse-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.btn--green{background:#16a34a;color:#fff}
.stat-grid--4{grid-template-columns:repeat(4,1fr)}
.stat-card--purple{background:#f5f3ff;border-color:#e9d5ff}
.stat-card--purple .stat-num{color:#7e22ce}
.oct-acc{padding:0;overflow:hidden}
.oct-acc>summary{list-style:none;cursor:pointer;padding:16px 20px;display:flex;
  justify-content:space-between;align-items:center;gap:12px}
.oct-acc>summary::-webkit-details-marker{display:none}
.oct-title{font-size:17px;font-weight:600}
.oct-stats{display:flex;align-items:center;gap:0;font-size:13px;line-height:1.25}
.oct-stats > span{width:96px;text-align:right}
.oct-stats b{font-size:16px;color:#1f2937}
.oct-caret{transition:transform .2s;color:var(--muted);width:28px;text-align:center;flex:none}
.oct-acc[open] .oct-caret{transform:rotate(180deg)}
/* right margin 48 = 20 inset + 28 caret, so the table's two right-aligned number
   columns line up under the summary's "Elev gns." / "Spredning" values. */
.oct-table{margin:0 48px 18px 20px;table-layout:fixed}
.oct-table th{font-size:12px}
.oct-table td:nth-child(2){word-wrap:break-word;overflow-wrap:break-word}
.oct-table .col-num{text-align:right;width:96px;white-space:normal;line-height:1.3;vertical-align:middle}
/* per-question rows: same column widths as the summary (96 + 96 + 28 caret)
   and same 20px side padding, so numbers line up under Elev gns./Spredning. */
.oq{padding:0 20px 16px}
.oq-row{display:flex;align-items:center;padding:9px 0;border-top:1px solid var(--border)}
.oq-row.oq-head{border-top:0;color:var(--muted);font-size:12px;font-weight:600}
.oq-text{flex:1;min-width:0;padding-right:12px}
.oq-num{width:96px;flex:none;text-align:right}
.oq-caret-space{width:28px;flex:none}
@media(max-width:820px){.stat-grid--4{grid-template-columns:repeat(2,1fr)}}

/* ---- advanced analysis / research (Cronbach) ---- */
.research-card{display:flex;justify-content:space-between;align-items:center;gap:16px;
  text-decoration:none;color:inherit;background:#f5f0fe;border-color:#e4d9fb}
.research-card:hover{border-color:#9333ea}
.research-card h3{color:#9333ea}
.research-card-ico{font-size:26px;color:#9333ea;flex:none}
.type-btns{display:flex;gap:6px;flex-wrap:wrap}
.type-btn{background:#fff;border:1px solid var(--border);border-radius:8px;padding:9px 14px;
  font-size:14px;cursor:pointer;color:var(--ink)}
.type-btn:hover{border-color:var(--accent)}
.type-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}
.cronbach-overall{display:flex;justify-content:space-between;align-items:center;
  background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:16px 20px;margin-bottom:18px}
.cronbach-big{font-size:30px;font-weight:700;color:var(--ink);line-height:1.1}

/* ---- demo ---- */
.demo-fab{position:fixed;right:20px;bottom:20px;z-index:900;background:#0f2a43;color:#fff;
  padding:12px 20px;border-radius:999px;box-shadow:0 6px 20px rgba(0,0,0,.25);text-decoration:none;
  font-size:15px;display:inline-flex;align-items:center;gap:8px}
.demo-fab:hover{background:#13344f}
.demo-banner{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  background:#fef9c3;border:1px solid #fde68a;border-radius:12px;padding:16px 20px;margin-bottom:18px}
.demo-banner strong{color:#713f12}
.demo-banner p{margin:2px 0 0;color:#92722e;font-size:14px}
.demo-banner-btn{background:#0f2a43;color:#fff;flex:none}
.demo-banner-btn:hover{background:#13344f}
.demo-banner--report{padding:12px 20px}
.demo-gold-btn{background:#b45309;color:#fff;flex:none}
.demo-gold-btn:hover{background:#c2620f}
.view-toggle{display:inline-flex;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#fff}
.view-toggle-btn{padding:9px 16px;font-size:14px;color:#6b7280;text-decoration:none;cursor:pointer}
.view-toggle-btn:hover{color:#0f2a43}
.view-toggle-btn.active{background:#0f2a43;color:#fff}
.view-toggle-btn.active:hover{color:#fff}
.demo-features{margin-top:24px}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:16px}
.feature{text-align:center}
.feature h3{margin:0 0 6px}
.feature p{margin:0}
.feature-ico{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  margin:0 auto 12px;font-size:26px}
.feature-ico--blue{background:#dbeafe;color:#2563eb}
.feature-ico--green{background:#dcfce7;color:#16a34a}
.feature-ico--purple{background:#f3e8ff;color:#9333ea}
@media(max-width:700px){.feature-grid{grid-template-columns:1fr}}
/* demo school-admin sections (Min skole / Lærere / Klasser) */
.sec-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.sec-ico{font-size:20px;flex:none}
.sec-ico--blue{color:#2563eb}.sec-ico--green{color:#16a34a}.sec-ico--purple{color:#9333ea}
.sec-title{margin:0;font-size:18px}
.sec-sub{margin:0;font-size:13px}
.kv-row{display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:9px 0;border-top:1px solid var(--border);font-size:14px}
.sec-row{display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:10px 0;border-top:1px solid var(--border)}
.sec-row-main{display:flex;align-items:center;gap:10px}
.avatar-sm{width:34px;height:34px;border-radius:50%;background:#eef2ff;color:#3730a3;flex:none;
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600}
.demo-oct{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;margin-bottom:10px}
.demo-oct-title{font-size:17px;font-weight:600}
.demo-oct-stats{display:flex;gap:28px;text-align:right;font-size:13px;line-height:1.25}
.demo-oct-stats b{font-size:16px;color:var(--ink)}

/* demo report styled as a printed "paper" sheet */
.demo-banner--attached{border-radius:12px 12px 0 0;margin-bottom:0}
.report-paper{background:#fff;border:1px solid #e3e7ec;border-top:0;border-radius:0 0 14px 14px;
  box-shadow:0 8px 30px rgba(15,42,67,.10);padding:26px 30px 32px;margin:0 0 28px}
/* standalone paper (no yellow bar above) — full border + all corners rounded */
.report-paper--plain{border-top:1px solid #e3e7ec;border-radius:14px}
/* inner sections: framed + slightly scaled down so they stand out on the paper */
.report-paper .card{margin-bottom:14px;padding:16px 18px;border:1px solid #eceff3;
  box-shadow:0 1px 3px rgba(0,0,0,.05)}
.report-paper .card:last-child{margin-bottom:0}
.report-paper .report-title{font-size:18px}
.report-paper h2{font-size:18px}
.report-paper .report-explain p,.report-paper .muted{font-size:14px}
@media(max-width:700px){.report-paper{padding:20px 16px}}

/* ---- QTI report (one card per profile) ---- */
.report-card{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.report-text{flex:1;min-width:240px}
.report-chart{flex:1.2;min-width:320px}
.report-title{font-size:20px;margin:0 0 8px}
.report-title--ideal{color:#9333ea}
.report-title--now{color:#2563eb}
.report-title--class{color:#16a34a}
/* report explanation + questions overview */
.report-explain p{line-height:1.6;max-width:760px;margin:0 auto 14px;text-align:center}
.qti-model{margin:18px auto;max-width:420px;text-align:center}
.qti-model #chart-model{max-width:380px;margin:0 auto}
.qti-model figcaption{font-size:13px;font-style:italic;color:var(--muted);margin-top:6px}
.oct-qlist{margin:0;padding:6px 20px 18px 42px}
.oct-qlist li{padding:4px 0}

/* print: PDF export via the browser — keep just the report content */
@media print{
  .navbar, .site-footer, .nav-toggle, .no-print{display:none !important}
  body{background:#fff}
  .container{margin:0;max-width:none}
  .card, .report-card, .oct-acc{break-inside:avoid;box-shadow:none}
  .oct-acc .oct-qlist{display:block}
}

/* ---- survey respond page ---- */
.respond-head{border-top:4px solid var(--accent)}
.respond-head.respond--ideal{border-top-color:#9333ea}
.respond-head.respond--now{border-top-color:#2563eb}
.respond-head.respond--student{border-top-color:#16a34a}
.respond-type{color:var(--link);font-weight:700;font-size:18px;margin:4px 0 0}
.respond-progress{padding:16px 20px}
.respond-progress-head{display:flex;justify-content:space-between;color:var(--muted);font-size:14px;margin-bottom:10px}
.progress-track{height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden}
.progress-fill{height:100%;width:0;background:var(--accent);border-radius:999px;transition:width .2s ease}
.respond-q{padding:18px 20px;position:relative}
.respond-q-text{margin:0 0 4px;font-size:17px;font-weight:600;padding-right:44px}
/* per-question read-aloud speaker (top-right of each question card) */
.q-speak{position:absolute;top:14px;right:16px;width:36px;height:36px;border-radius:50%;
  border:1px solid var(--border);background:#fff;color:var(--accent);cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:17px;padding:0}
.q-speak:hover{border-color:var(--accent);background:#eef6fb}
.q-speak.playing{background:var(--accent);color:#fff;border-color:var(--accent)}
/* subtle "using browser voice" note shown when the server voice is unreachable */
.ra-note{position:fixed;left:20px;bottom:72px;z-index:900;display:none;max-width:300px;
  background:#1f2937;color:#fff;padding:9px 13px;border-radius:8px;font-size:13px;
  box-shadow:0 6px 20px rgba(0,0,0,.25)}
.respond-q-hint{margin:0 0 14px;color:var(--muted);font-size:14px}
.respond-q-num{color:var(--muted);font-weight:600;margin-right:6px}
/* numbered answer boxes (1..5 with label under the number) */
.scale-row--num{gap:12px}
.scale-row--num .scale-box{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;
  background:#fff;border:1px solid var(--border);border-radius:10px;padding:14px 6px;margin:0;cursor:pointer;
  transition:border-color .15s,background .15s,box-shadow .15s}
.scale-row--num .scale-box:hover{border-color:var(--accent)}
.scale-row--num .scale-box input{display:none}
.scale-num{font-size:20px;font-weight:700;color:var(--ink)}
.scale-lbl{font-size:13px;color:var(--muted)}
.scale-row--num .scale-box input:checked ~ .scale-num{color:var(--accent)}
.scale-row--num .scale-box input:checked ~ .scale-lbl{color:var(--accent)}
.scale-row--num .scale-box:has(input:checked){border-color:var(--accent);background:#eef6fb;
  box-shadow:0 0 0 1px var(--accent) inset}

@media(max-width:820px){
  .dash-grid{grid-template-columns:1fr}
  .profile-grid{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:1fr}
}

/* ---- mobile: burger nav + content reflow ---- */
@media(max-width:860px){
  /* navbar collapses behind the burger */
  .navbar{padding:10px 12px}
  .navbar-inner{flex-wrap:wrap;gap:10px;position:relative}
  /* top bar: brand .... [lang][burger] */
  .lang-toggle--top{display:inline-block;margin-left:auto}
  .nav-toggle{display:flex}
  /* the in-panel language toggle moves up to the top bar on mobile */
  .nav-collapse .lang-toggle{display:none}
  .nav-collapse{display:none;flex-direction:column;align-items:stretch;gap:6px;
    flex-basis:100%;width:100%;margin-top:6px}
  .navbar.nav-open .nav-collapse{display:flex}
  .navmenu{flex-direction:column;align-items:stretch;gap:2px;flex:none;width:100%}
  .navright{flex-direction:column;align-items:stretch;gap:8px;margin-left:0;width:100%}
  .navlink{padding:11px 12px;border-radius:10px}
  .navlink:hover,.navlink.active{background:#f1f5f9}
  /* dropdowns expand inline instead of floating off-screen; icon+label sit left */
  .nav-collapse .dropdown{width:100%}
  .nav-collapse .dropdown-toggle{width:100%;justify-content:flex-start;padding:11px 12px;border-radius:10px}
  .nav-collapse .dropdown-toggle .caret{margin-left:auto}
  .nav-collapse .dropdown-toggle:hover{background:#f1f5f9}
  .nav-collapse .dropdown-menu{position:static;display:none;box-shadow:none;border:0;
    min-width:0;width:100%;padding:0 0 4px 14px}
  .nav-collapse .dropdown.open .dropdown-menu{display:block}

  /* general content reflow */
  .container{margin:16px auto}
  .page-head{flex-wrap:wrap;align-items:flex-start;gap:12px}
  .page-head h1{font-size:24px}
  .page-head .btn{width:100%;text-align:center}
  .profile-head{flex-wrap:wrap;gap:10px}
  /* full-width list rows stack: title on top, actions below */
  .list-card{flex-direction:column;align-items:stretch}
  .list-card-meta{text-align:left;min-width:0}
  .class-actions{width:100%}
  .class-actions .btn,.class-actions form{flex:1}
  .class-actions .btn{text-align:center;width:100%}
  /* wide tables scroll horizontally inside their card instead of overflowing */
  .card:has(.data-table),.card:has(.oct-table){overflow-x:auto}
  .data-table{min-width:520px}
  /* hero / welcome wheel scales down */
  .welcome-card{padding:32px 20px}
  .welcome-wheel.welcome-wheel--lg{width:240px;height:240px}
  .welcome-wheel.welcome-wheel--lg::after{inset:78px}
  .welcome-wheel.welcome-wheel--lg span{font-size:40px}
}

@media(max-width:600px){
  .guide-head h1{font-size:24px}
  .form-card,.auth-card{padding:24px 18px}
  .welcome-wheel.welcome-wheel--lg{width:200px;height:200px}
  .welcome-wheel.welcome-wheel--lg::after{inset:65px}
  .welcome-wheel.welcome-wheel--lg span{font-size:34px}
}
