/* Huisstijl The Social Synergy: Inter + Inter Tight, navy en oranje */
:root {
  --navy: #1A1F2E;
  --navy-2: #252B3D;
  --navy-3: #343B51;
  --orange: #ED6835;
  --orange-2: #F55C32;
  --orange-ink: #9E4421;
  --orange-soft: #FDEFE8;
  --ink: #1A1F2E;
  --ink-2: #55524D;
  --ink-3: #6F6C66;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --line: #E1E4EA;
  --line-2: #EEF0F3;
  --green: #2F7D5B;
  --green-soft: #E6F3ED;
  --amber-soft: #FFF6E0;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(26, 31, 46, .06), 0 4px 16px rgba(26, 31, 46, .05);
  --font: Inter, system-ui, -apple-system, sans-serif;
  --font-head: "Inter Tight", Inter, system-ui, sans-serif;
  --side: 264px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 3.2vw, 34px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
a { color: var(--orange-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- layout ---------- */
.shell { background: linear-gradient(to right, var(--navy) var(--side), var(--bg) var(--side)); display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: #fff; }
.brand img { width: 30px; height: 30px; }
.brand b { font-family: var(--font-head); font-size: 15px; display: block; line-height: 1.15; }
.brand small { color: #AEB4C4; font-size: 12px; }
.teamchip { background: var(--navy-2); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; }
.teamchip .lbl { color: #AEB4C4; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.teamchip b { display: block; font-weight: 600; }
.teamchip select { width: 100%; background: var(--navy-3); color: #fff; border: 0; border-radius: 4px; padding: 6px 8px; margin-top: 4px; }
.weekbar { margin-top: 8px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.weekbar i { height: 5px; border-radius: 3px; background: var(--navy-3); }
.weekbar i.on { background: var(--orange); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius); color: #D6DAE4; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.active { background: var(--orange); color: #fff; }
.nav a.active svg { opacity: 1; }
.nav .sep { height: 1px; background: var(--navy-3); margin: 8px 4px; }
.side .grow { flex: 1; }
.wa { display: flex; align-items: center; gap: 10px; background: #1F7A4D; color: #fff; text-decoration: none; padding: 10px 12px; border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.wa:hover { background: #239058; }
.wa svg { width: 18px; height: 18px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; font-size: 13px; color: #D6DAE4; }
.me .av { background: var(--navy-3); }
.me a { color: #AEB4C4; margin-left: auto; font-size: 12.5px; }

.main { padding: 32px clamp(16px, 4vw, 48px) 80px; max-width: 1180px; width: 100%; }
.topbar { display: none; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--orange-ink); }
.pagehead { margin-bottom: 26px; }
.pagehead p { color: var(--ink-2); max-width: 720px; }
.eyebrow { color: var(--orange-ink); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; display: block; }

/* ---------- cards & grid ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: 6px; }
.card .sub { color: var(--ink-3); font-size: 14px; }
.card.link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; display: block; }
.card.link:hover { border-color: var(--orange); transform: translateY(-1px); }
.card.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.card.dark .sub { color: #AEB4C4; }
.card.orange { background: var(--orange-soft); border-color: #F7D3C2; box-shadow: none; }
.cardtitle { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.cardtitle svg { width: 16px; height: 16px; }
.dark .cardtitle { color: #AEB4C4; }
.stat { font-family: var(--font-head); font-size: 30px; font-weight: 600; line-height: 1.1; }
.section { margin-top: 34px; }
.section > h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 30px 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 300px; height: 300px; background: url("/img/logo.svg") no-repeat center / contain; opacity: .12; }
.hero h1 { margin-bottom: 8px; }
.hero p { color: #C9CEDB; margin: 0; max-width: 560px; }
.ring { width: 112px; height: 112px; position: relative; z-index: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--font-head); font-size: 24px; font-weight: 600; line-height: 1; }
.ring span small { display: block; font-family: var(--font); font-size: 10px; max-width: 64px; margin-inline: auto; color: #AEB4C4; font-weight: 500; margin-top: 4px; }

/* ---------- timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.tl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: inherit; position: relative; min-height: 112px; display: flex; flex-direction: column; gap: 4px; }
.tl .wk { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tl b { font-family: var(--font-head); font-size: 14px; font-weight: 600; line-height: 1.25; }
.tl .st { margin-top: auto; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.tl .st svg { width: 13px; height: 13px; }
.tl.now { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.tl.now .wk { color: var(--orange-ink); }
.tl.done .st { color: var(--green); }
.tl.locked { background: #FAFBFC; color: var(--ink-3); }
.tl:hover { border-color: var(--orange); }

/* ---------- chips, buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--orange); color: #fff; border-radius: var(--radius); padding: 10px 16px; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--orange-2); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn.dark { background: var(--navy); }
.btn.dark:hover { background: var(--navy-3); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.link { background: none; color: var(--orange-ink); padding: 4px 0; }
.btn.danger { background: #fff; color: #A93A2A; border-color: #F0D0CA; }
.btn:disabled { opacity: .5; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip svg { width: 12px; height: 12px; }
.chip.orange { background: var(--orange-soft); color: var(--orange-ink); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.navy { background: var(--navy); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 13px; font-size: 13.5px; cursor: pointer; font-weight: 500; }
.chips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
label.f > span { display: block; margin-bottom: 5px; }
label.f small { font-weight: 400; color: var(--ink-3); }
.in, input[type=text], input[type=email], input[type=date], input[type=datetime-local], input[type=number], input[type=url], input[type=search], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; background: #fff; font-size: 14.5px; }
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: transparent; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.bar { height: 6px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }
.dark .bar { background: var(--navy-3); }

/* ---------- module ---------- */
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.modcard { display: flex; flex-direction: column; gap: 10px; }
.modcard .num { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.modcard.locked .num { background: var(--line); color: var(--ink-3); }
.modcard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.modcard .bar { flex: 1; }
.lesson-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.lessonnav { position: sticky; top: 20px; padding: 14px; }
.lessonnav a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.35; }
.lessonnav a:hover { background: var(--bg); }
.lessonnav a.active { background: var(--orange-soft); }
.lessonnav a small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; margin-top: 1px; }
.dot.done { background: var(--green); border-color: var(--green); color: #fff; }
.dot svg { width: 12px; height: 12px; }
.lessonnav .ttl { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; padding: 4px 10px 8px; }
.prose { max-width: 760px; }
.prose > * + * { margin-top: 16px; }
.prose p { margin: 0; }
.prose ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prose ul.ticks li { display: flex; gap: 10px; }
.prose ul.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 9px; flex: none; }
.prose h3 { margin-top: 28px; }
.callout { border-radius: var(--radius-lg); padding: 18px 20px; border-left: 4px solid var(--orange); background: var(--orange-soft); }
.callout.navy { background: #EEF0F5; border-left-color: var(--navy); }
.callout b { display: block; font-family: var(--font-head); margin-bottom: 4px; font-size: 16px; }
.golden { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.golden div { background: var(--navy-2); border-radius: var(--radius); padding: 14px 10px; }
.golden b { display: block; font-family: var(--font-head); font-size: 18px; }
.golden small { color: #AEB4C4; }
.golden div:nth-child(2) { background: var(--orange); }
.golden div:nth-child(2) small { color: #FFE3D6; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: #F9FAFB; font-weight: 600; color: var(--ink-2); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.steps { display: grid; gap: 10px; }
.steps > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.compare { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; align-items: start; }
.compare > div { border-radius: var(--radius-lg); padding: 16px 18px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.compare .txt { white-space: pre-wrap; }
.compare .lbl svg { width: 16px; height: 16px; flex: none; }
.compare .lbl { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; margin-bottom: 8px; white-space: normal; }
.compare .bad .lbl { color: #A93A2A; }
.compare .good { border-color: #BFE0CF; background: #F6FBF8; }
.compare .good .lbl { color: var(--green); }
.promptbox { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.promptbox .ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #F9FAFB; border-bottom: 1px solid var(--line); }
.promptbox .ph b { font-size: 14px; }
.promptbox pre { margin: 0; padding: 14px 16px; white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.55; color: var(--ink); max-height: 380px; overflow: auto; }
.ex { display: grid; gap: 12px; }
.exitem { display: grid; grid-template-columns: 26px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.exitem.done { background: #F6FBF8; border-color: #BFE0CF; }
.check { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.check svg { width: 14px; height: 14px; color: #fff; display: none; }
.check.on { background: var(--green); border-color: var(--green); }
.check.on svg { display: block; }
.exitem b { display: block; margin-bottom: 2px; }
.exitem p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.exitem details { margin-top: 8px; }
.exitem summary { cursor: pointer; color: var(--orange-ink); font-weight: 600; font-size: 13.5px; }
.lessonfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.homework { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.homework .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--orange); color: #fff; display: grid; place-items: center; }
.homework .ic svg { width: 22px; height: 22px; }

/* ---------- downloads ---------- */
.dl { display: flex; gap: 14px; align-items: flex-start; }
.ftype { width: 44px; height: 52px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex: none; letter-spacing: .03em; }
.ftype.Word { background: #2B579A; } .ftype.Excel { background: #217346; } .ftype.PDF { background: #B83B2B; }
.dl .grow { flex: 1; min-width: 0; }

/* ---------- prompts ---------- */
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.builder .preview { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; }
.builder .preview pre { white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: #E6E9F0; flex: 1; margin: 10px 0 14px; min-height: 160px; }
.builder .preview .empty { color: #8C93A6; }
.part { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.part .n { width: 26px; height: 26px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-top: 24px; }
.promptlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 8px; }
.pcard pre { white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; background: var(--bg); border-radius: var(--radius); padding: 12px; margin: 0; max-height: 170px; overflow: hidden; position: relative; color: var(--ink-2); }
.pcard.open pre { max-height: none; }
.pcard .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.search { position: relative; max-width: 360px; margin-bottom: 14px; }
.search input { padding-left: 36px; }
.search svg { position: absolute; left: 11px; top: 11px; width: 17px; height: 17px; color: var(--ink-3); }

/* ---------- acties ---------- */
.actadd { display: grid; grid-template-columns: 1fr 200px 160px auto; gap: 10px; align-items: end; }
.acts { display: grid; gap: 8px; }
.act { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; }
.act.klaar .t { text-decoration: line-through; color: var(--ink-3); }
.act .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; align-items: center; }
.act .meta .late { color: #A93A2A; font-weight: 600; }
.act select { width: auto; padding: 5px 8px; font-size: 13px; }
.act .ops { display: flex; gap: 6px; align-items: center; }
.iconbtn { border: 0; background: none; cursor: pointer; padding: 6px; border-radius: 4px; color: var(--ink-3); display: grid; place-items: center; }
.iconbtn:hover { background: var(--bg); color: var(--ink); }
.iconbtn svg { width: 16px; height: 16px; }

/* ---------- agenda ---------- */
.meeting { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; }
.datebox { width: 64px; border-radius: 10px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: #fff; }
.datebox .m { background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 0; letter-spacing: .05em; }
.datebox .d { font-family: var(--font-head); font-size: 24px; font-weight: 600; padding: 4px 0 2px; line-height: 1.1; }
.datebox .w { font-size: 11px; color: var(--ink-3); padding-bottom: 4px; }
.slots { display: grid; gap: 18px; }
.slotday h4 { font-size: 14px; margin-bottom: 8px; color: var(--ink-2); }
.slotbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.slotbtns button { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 9px 14px; cursor: pointer; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.slotbtns button small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.slotbtns button:hover { border-color: var(--orange); background: var(--orange-soft); }

/* ---------- calc ---------- */
.calc { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; align-items: end; }
.calcout { display: flex; gap: 18px; align-items: baseline; margin-top: 6px; flex-wrap: wrap; }

/* ---------- glossary ---------- */
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.term b { font-family: var(--font-head); font-size: 16px; display: block; margin-bottom: 4px; }
.term p { margin: 0 0 6px; color: var(--ink-2); font-size: 14.5px; }
.term small { color: var(--ink-3); }

/* ---------- modal & toast ---------- */
.modalbg { position: fixed; inset: 0; background: rgba(26, 31, 46, .5); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { font-size: 20px; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
#toast.on { opacity: 1; transform: translateX(-50%); }
#toast.err { background: #A93A2A; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .l { background: var(--navy); color: #fff; padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; gap: 40px; }
.login .l::after { content: ""; position: absolute; right: -120px; bottom: -140px; width: 520px; height: 520px; background: url("/img/logo.svg") no-repeat center / contain; opacity: .1; }
.login .l h1 { font-size: clamp(30px, 4vw, 46px); max-width: 520px; }
.login .l h1 em { font-style: normal; color: var(--orange); }
.login .l p { color: #C9CEDB; max-width: 460px; font-size: 16px; }
.login .l ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: #D6DAE4; position: relative; z-index: 1; }
.login .l li { display: flex; gap: 10px; align-items: center; }
.login .l li svg { width: 18px; height: 18px; color: var(--orange); }
.login .r { display: grid; place-items: center; padding: 32px 16px; background: #fff; }
.login .box { width: 100%; max-width: 380px; }
.login .box h2 { font-size: 26px; }
.sso { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); margin-bottom: 12px; }
.sso:hover { border-color: var(--ink-3); background: #FAFBFC; }
.sso svg { width: 20px; height: 20px; }
.alert { background: #FBEDEA; color: #8A2F22; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.devlogin { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line); }

.empty-state { text-align: center; padding: 34px 20px; color: var(--ink-3); }
.empty-state svg { width: 34px; height: 34px; color: var(--line); margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-layout { grid-template-columns: 1fr; }
  .lessonnav { position: static; }
  .lesson-layout.in-lesson .lessonnav { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .2s; z-index: 40; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(26,31,46,.45); }
  .topbar { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
  .topbar button { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
  .topbar svg { width: 24px; height: 24px; }
  .topbar img { width: 24px; }
  .topbar b { font-family: var(--font-head); }
  .main { padding: 22px 16px 70px; }
  .g2, .g3, .g4, .builder, .compare { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .ring { width: 92px; height: 92px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actadd, .calc { grid-template-columns: 1fr; }
  .homework { grid-template-columns: auto 1fr; }
  .homework .btn { grid-column: 1 / -1; }
  .login { grid-template-columns: 1fr; }
  .login .l { min-height: auto; }
  .golden { grid-template-columns: 1fr; }
  .meeting { grid-template-columns: 64px 1fr; }
  .meeting .row { grid-column: 1 / -1; }
  .promptlist { grid-template-columns: 1fr; }
}
