/* MyCool Skole · shared visual language. No remote fonts or dependencies. */
:root {
  --ink: #20213d;
  --ink-2: #545671;
  --paper: #f5f5fb;
  --line: #e4e5f0;
  --teal: #6654e8;
  --teal-dark: #5140c5;
  --purple: #6654e8;
  --lime: #d9f56f;
  --green: #177653;
  --red: #b63751;
  --shadow: 0 10px 32px rgb(32 33 61 / 5%);
  --radius: 24px;
  --font-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
body { background: var(--paper); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
body, input, select, textarea { color: var(--ink); }
body { overflow-wrap: break-word; }
main { min-height: calc(100svh - 163px); }
main:focus { outline: none; }
h1, h2, h3, .summary-card strong, .category-number, .points-earned, .mini-score strong, .admin-stat strong, .profile-avatar {
  font-family: var(--font-ui) !important;
  letter-spacing: -.035em;
}
h1, h2, h3 { font-weight: 800; }
::selection { background: #e3dcff; color: #272043; }
:focus-visible { outline: 3px solid #6654e8; outline-offset: 4px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled, .button:disabled { cursor: not-allowed; transform: none; opacity: .6; box-shadow: none; }
.ui-icon { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.shell { width: min(1160px, calc(100% - 64px)); }
.skip-link:focus { position: fixed; color: var(--ink); border-radius: 8px; box-shadow: var(--shadow); }
.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; height: auto; display: flex; gap: 24px; }
.brand { gap: 10px; font-size: 21px; letter-spacing: -.7px; white-space: nowrap; }
.brand > span:last-child span { color: var(--purple); }
.brand-mark { display: flex; justify-content: center; align-items: center; padding-bottom: 5px; width: 42px; height: 42px; background: var(--lime); color: var(--ink); font-size: 35px; letter-spacing: -4px; font-weight: 900; border-radius: 13px; transform: rotate(-5deg); }
.brand-mark span { color: var(--purple); margin-right: 4px; }
.header-tagline { color: #66687d; font-size: 13px; font-weight: 650; }
.main-nav { gap: 8px; margin-left: auto; }
.main-nav .nav-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; color: #63657c; border-radius: 12px; opacity: 1; font-size: 13px; }
.main-nav .nav-link .ui-icon { width: 18px; height: 18px; }
.main-nav .nav-link:hover { color: var(--purple); background: #f7f5ff; }
.main-nav .nav-link.is-active { color: #5543c2; background: #eeebff; }
.header-tools { display: flex; align-items: center; gap: 15px; }
.header-tools form { margin: 0; }
.header-points { display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 12px; background: #f0f9d5; color: #374119; font-size: 13px; white-space: nowrap; }
.header-points .ui-icon { width: 18px; height: 18px; }
.header-points strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.nav-button { color: #62647b; display: inline-flex; align-items: center; gap: 7px; opacity: 1; min-height: 44px; font-size: 12px; font-weight: 700; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; }
.nav-button .ui-icon { width: 18px; height: 18px; }
.nav-button:hover { background: #f4f3fb; color: var(--ink); }
.button { min-height: 48px; gap: 9px; border-radius: 12px; font-size: 14px; padding: 12px 20px; line-height: 1.35; }
.button .ui-icon { width: 19px; height: 19px; }
.button-primary { background: var(--purple); box-shadow: 0 5px 0 #5140bf, 0 8px 16px #6654e81a; }
.button-primary:hover { background: #5b48da; box-shadow: 0 6px 0 #4936b9, 0 12px 20px #6654e821; transform: translateY(-1px); }
.button-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #5140bf; }
.button-secondary { background: #eeecf9; color: #5347a0; }
.button-small { min-height: 42px; font-size: 13px; padding: 9px 13px; }
.button-category, .button-subject { border: 1px solid var(--line); }
.card, .panel { border-color: var(--line); }
.eyebrow { font-size: 11px; letter-spacing: 1.6px; font-weight: 800; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: #61617c; }
.back-link:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.section-heading h2 { font-size: 30px; }
.section-heading p { color: #63657b; }
.stack-form label, .field { font-size: 13px; font-weight: 750; }
.stack-form input, .field input, .field select, .field textarea, .practice-options select { min-height: 48px; border-color: #dcddeb; border-radius: 11px; font-size: 16px; background: #fcfcff; }
.stack-form input::placeholder, .field input::placeholder { color: #7a7b91; }
.stack-form input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px #6654e812; }
.helper { font-size: 12px; line-height: 1.55; color: #63657b; }
.notice { line-height: 1.6; font-weight: 550; }
.notice-error { background: #fff0f3; color: #922840; border-color: #f4cbd4; }
.notice-success { background: #eaf8f1; color: #196346; }
.notice-info { background: #efedff; color: #524298; border-color: #d8d1f7; }

/* Login: confident typography and a small set of subject illustrations. */
.login-hero { display: flex; align-items: center; min-height: calc(100svh - 82px); padding: 80px 0 84px; background: #20213d; color: #fff; }
.login-hero::before { right: -220px; top: 100px; width: 720px; height: 720px; border: 1px solid #ffffff0d; box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff03; }
.login-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 6% 0%, #6654e833, transparent 55%); }
.login-grid { grid-template-columns: 1.1fr .9fr; gap: 85px; z-index: 1; }
.login-eyebrow { color: #e0d9ff; display: flex; align-items: center; gap: 9px; letter-spacing: 1.1px; margin-bottom: 25px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px #d9f56f12; }
.login-copy h1 { font-size: clamp(48px, 5.2vw, 72px); letter-spacing: -.055em; line-height: 1.05; max-width: 650px; margin-bottom: 24px; }
.login-copy h1 > span { color: var(--lime); }
.login-copy > p { color: #c1c0d6; font-size: 16px; line-height: 1.8; max-width: 455px; }
.login-subjects { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 36px; }
.login-subject-tile { position: relative; display: flex; flex-direction: column; border-radius: 18px; min-height: 140px; padding: 19px 16px; color: #20213d; overflow: hidden; text-align: left; }
.login-subject-tile > .ui-icon { width: 29px; height: 29px; margin-bottom: 16px; position: relative; z-index: 1; }
.login-subject-tile > span:not(.tile-doodle) { font-size: 14px; font-weight: 800; z-index: 1; }
.login-subject-tile small { font-size: 11px; margin-top: 2px; z-index: 1; }
.login-math { background: #bdb5ff; transform: rotate(-3deg); }
.login-danish { background: var(--lime); transform: translateY(-8px) rotate(2deg); }
.login-history { background: #ffc998; transform: rotate(-2deg); }
.tile-doodle { position: absolute; font-size: 65px; font-weight: 900; right: 6px; top: -7px; color: #20213d12; transform: rotate(15deg); }
.login-promise { display: flex; flex-wrap: wrap; gap: 22px; color: #c4c3d8; margin-top: 28px; font-size: 12px; }
.login-promise > span { display: inline-flex; align-items: center; gap: 7px; }
.login-promise .ui-icon { width: 16px; height: 16px; color: var(--lime); }
.login-card { background: #fff; color: var(--ink); padding: 34px; border: 0; box-shadow: 0 24px 70px #0f10232e; }
.login-card-top { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.login-icon { width: 45px; height: 45px; background: #efecff; color: var(--purple); border-radius: 13px; }
.login-icon .ui-icon { width: 23px; height: 23px; }
.login-welcome-label { color: #76768d; font-size: 9px; letter-spacing: 1px; font-weight: 800; }
.login-card h2 { font-size: 28px; letter-spacing: -1px; margin: 0 0 7px; }
.login-card > p { color: #6d6d85; font-size: 14px; margin-bottom: 25px; }
.login-card .stack-form { gap: 19px; }
.login-card .button-primary { margin: 6px 0; justify-content: space-between; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-toggle { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; top: 3px; right: 3px; background: transparent; border: 0; color: #74728e; border-radius: 8px; cursor: pointer; }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { background: #efecff; color: var(--purple); }
.form-note { font-size: 11px !important; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 20px; }

/* Shared administration remains calm and dense enough to scan. */
.admin-shell { padding-top: 38px; }
.admin-heading h1 { font-size: 36px; }
.admin-tabs { padding: 6px; background: #eaeaf5; border-radius: 14px; gap: 5px; }
.admin-tabs a { background: transparent; border-radius: 9px; min-height: 42px; display: flex; align-items: center; color: #5b5b77; }
.admin-tabs a.active { background: #fff; color: var(--purple); box-shadow: 0 2px 6px #20213d0d; }
.admin-tabs a:hover { background: #f8f7ff; }
.admin-stat { padding: 22px; border-color: var(--line); box-shadow: var(--shadow); }
.admin-stat strong { font-size: 34px; font-variant-numeric: tabular-nums; }
.admin-stat span { color: #696981; }
.panel { border-radius: 20px; box-shadow: 0 3px 16px #20213d03; }
.panel h2 { font-size: 23px; }
.table-wrap { border-radius: 12px; }
.data-table thead { background: #f7f7fc; }
.data-table th { color: #696a81; padding-top: 14px; padding-bottom: 14px; }
.data-table tbody tr:hover { background: #fbfaff; }
.data-table td { border-color: #eeedf5; }
.data-table td a:not(.button), .link-button { color: #5c49ca; font-weight: 700; text-underline-offset: 3px; }
.bar-track { background: #eeecf8; }
.status { font-size: 11px; padding: 5px 9px; }
.site-footer { background: #eeeef7; color: #6d6c84; font-size: 12px; border-top: 1px solid var(--line); padding: 25px 0; }
.footer-inner { align-items: center; gap: 16px; }
.footer-inner > span:first-child { color: #3a3a55; }
.footer-inner .footer-dot { color: var(--purple); font-size: 20px; vertical-align: middle; margin-left: 6px; }

@media (max-width: 1050px) {
  .header-inner { gap: 15px; }
  .main-nav .nav-link { padding-inline: 11px; }
  .header-tools { gap: 8px; }
  .login-grid { gap: 40px; grid-template-columns: 1.1fr 1fr; }
  .login-copy h1 { font-size: 58px; }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; gap: 0 10px; padding-block: 15px 8px; }
  .header-tools { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 12px 0 0; gap: 6px; }
  .main-nav .nav-link { flex: 1; }
  .is-guest .header-inner { padding-block: 15px; }
  .login-grid { grid-template-columns: 1fr; max-width: 520px; gap: 35px; }
  .login-hero { padding: 45px 0 55px; }
  .login-copy { text-align: left; }
  .login-copy > p { margin-inline: 0; }
  .login-copy h1 { font-size: 60px; }
  .login-subjects { margin-top: 29px; }
  .login-subject-tile { min-height: 128px; }
  .footer-inner { align-items: flex-start; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 32px); }
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; font-size: 30px; border-radius: 10px; }
  .header-points { font-size: 11px; padding: 8px; }
  .header-points strong { font-size: 14px; }
  .points-unit, .nav-button > span, .header-tagline { display: none; }
  .nav-button { padding: 10px; min-width: 44px; }
  .main-nav .nav-link { display: inline-flex; font-size: 13px; padding: 9px; }
  .header-tools { gap: 7px; }
  .login-hero { padding-top: 24px; }
  .login-grid { gap: 23px; }
  .login-subjects, .login-promise { display: none; }
  .login-eyebrow { font-size: 9px; letter-spacing: .9px; margin-bottom: 20px; }
  .login-copy h1 { font-size: 44px; margin-bottom: 14px; }
  .login-copy > p { font-size: 13px; line-height: 1.6; margin-bottom: 0; }
  .login-subjects { gap: 9px; margin-top: 26px; }
  .login-subject-tile { padding: 13px 10px; border-radius: 13px; min-height: 118px; }
  .login-subject-tile > span:not(.tile-doodle) { font-size: 12px; }
  .login-subject-tile small { font-size: 9px; }
  .login-subject-tile > .ui-icon { width: 24px; height: 24px; }
  .login-promise { font-size: 11px; gap: 17px; margin-top: 22px; }
  .login-card { padding: 25px 22px; }
  .login-card-top { margin-bottom: 15px; }
  .login-card h2 { font-size: 26px; }
  .section-heading h2 { font-size: 28px; }
  .admin-heading h1 { font-size: 31px; }
  .panel { padding: 17px; }
  .panel-header { flex-wrap: wrap; gap: 12px; }
  .footer-inner { flex-direction: column; gap: 4px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button:hover, .button:active { transform: none; }
}
