/* ============================================================
 *  FILE:  public_html/assets/css/lms.css
 *  ROLE:  Styling van de HypnoSlank leeromgeving.
 *         Zelfde huisstijl als trancewerk.nl/afvallen/
 *         (palet roze / aubergine / goud / crème, Fraunces + Geist).
 * ============================================================ */

:root {
  --brand:       #EB274E;
  --brand-soft:  #FCE6EA;
  --brand-deep:  #D81E46;
  --gold:        #C9963F;
  --gold-soft:   #F7ECD8;
  --accent:      #D81E46;
  --accent-deep: #B8173A;
  --ink:         #3B1830;
  --ink-soft:    #4E2B43;
  --ink-mute:    #735A6C;
  --cream:       #FAF3E9;
  --cream-warm:  #F5EADC;
  --cream-deep:  #EEDFCC;
  --line:        #EADCCB;
  --paper:       #FFFFFF;
  --green:       #2E8B5A;
  --green-soft:  #E8F5EE;

  --serif: 'Fraunces', 'Georgia', serif;
  --sans:  'Geist', -apple-system, system-ui, sans-serif;

  --max-w:  1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(59, 24, 48, .06), 0 1px 2px rgba(59, 24, 48, .04);
  --shadow:    0 10px 40px -12px rgba(59, 24, 48, .18), 0 4px 16px -8px rgba(59, 24, 48, .08);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.12; color: var(--ink); }
.page-title { font-size: clamp(32px, 5vw, 50px); font-variation-settings: 'opsz' 96, 'SOFT' 30; margin: 10px 0 14px; }
.section-title { font-size: clamp(24px, 3vw, 32px); margin: 48px 0 18px; font-variation-settings: 'opsz' 48; }
.section-title.first { margin-top: 0; }
.h-small { font-size: 21px; font-variation-settings: 'opsz' 36; margin-bottom: 6px; }
.lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--ink-soft); max-width: 660px; }
.muted { color: var(--ink-mute); }
.small { font-size: 14px; }

.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--brand-deep); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--brand); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.page { flex: 1; padding-bottom: 72px; }
.center-block { text-align: center; padding-top: 80px; }
.center-block .lead { margin: 0 auto 28px; }

/* ============ KNOPPEN ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease; text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px -2px rgba(216, 30, 70, .35); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-done { background: var(--green-soft); color: var(--green); border: 1px solid rgba(46, 139, 90, .25); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ============ TOPBALK ============ */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar-inner { max-width: var(--max-w); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand img { height: 52px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mainnav a, .nav-logout button {
  padding: 9px 14px; border-radius: 10px; color: var(--ink-soft); font-size: 15px; font-weight: 500; position: relative;
  text-decoration: none;
}
.mainnav a:hover, .nav-logout button:hover { background: var(--cream); }
.mainnav a.on { color: var(--brand-deep); background: var(--brand-soft); }
.nav-admin { border: 1px dashed var(--line); }
.nav-logout button { color: var(--ink-mute); }
.dot-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 6px;
  border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px;
}
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.nav-toggle > span:first-child, .nav-toggle > span:first-child::before, .nav-toggle > span:first-child::after {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); content: ''; border-radius: 2px;
}
.nav-toggle > span:first-child { top: 21px; }
.nav-toggle > span:first-child::before { top: -7px; left: 0; right: 0; }
.nav-toggle > span:first-child::after { top: 7px; left: 0; right: 0; }

@media (max-width: 860px) {
  .brand img { height: 42px; }
  .nav-toggle { display: block; }
  .mainnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: var(--shadow);
  }
  .mainnav.open { display: flex; }
  .mainnav a, .nav-logout button { padding: 13px 14px; width: 100%; text-align: left; }
}

/* ============ MELDINGEN ============ */
.flash-wrap { padding-top: 20px; }
.flash { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 14px; }
.flash-ok { background: var(--green-soft); color: #1F6B43; border: 1px solid rgba(46, 139, 90, .2); }
.flash-error { background: var(--brand-soft); color: var(--accent-deep); border: 1px solid rgba(216, 30, 70, .2); }
.notice { margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--gold-soft); font-size: 15px; display: inline-block; }
.notice a { font-weight: 600; margin-left: 6px; }
.notice-warn { display: block; margin: 0 0 14px; font-size: 14px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-mute); text-align: center; background: var(--paper); margin: 20px 0; }

/* ============ FORMULIEREN ============ */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); }
.field > span em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea, .field select, .search input, .copy-field, .file-edit input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus, .search input:focus, .file-edit input:focus,
#note:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input:disabled { background: var(--cream); color: var(--ink-mute); }
.field textarea { resize: vertical; min-height: 90px; }
.field-inline { max-width: 320px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.card-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-top: 18px; box-shadow: var(--shadow-sm); }
.card-form .form-sub { margin-top: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px !important; }

/* ============ INLOGGEN ============ */
body.auth { background: var(--cream); }
body.auth::before {
  content: ''; position: fixed; top: -200px; right: -150px; width: 620px; height: 620px; pointer-events: none;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
}
.auth-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; position: relative; }
.auth-logo img { height: 96px; width: auto; margin-bottom: 26px; }
.auth-card { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 34px; margin-bottom: 8px; }
.auth-intro { color: var(--ink-soft); margin-bottom: 22px; }
.auth-links { margin-top: 18px; text-align: center; font-size: 15px; }
.auth-note { margin-top: 14px; font-size: 13px; color: var(--ink-mute); text-align: center; }
.auth-foot { margin-top: 26px; font-size: 13px; color: var(--ink-mute); }

/* ============ DASHBOARD ============ */
.dash-hero { padding: 44px 0 20px; position: relative; overflow: clip; }
.dash-hero::before {
  content: ''; position: absolute; top: -220px; right: -120px; width: 600px; height: 600px; pointer-events: none;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
}
.dash-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; }
.tier-pill { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.tier-pill strong { color: var(--brand-deep); }
.progress-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; gap: 24px; align-items: center; box-shadow: var(--shadow); }
.ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--cream-deep); }
.ring-fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; }
.progress-text p { color: var(--ink-soft); margin-bottom: 14px; font-size: 15px; }
.progress-text .next-title { margin: 10px 0 0; font-size: 14px; color: var(--ink-mute); }
.all-done { color: var(--green) !important; font-weight: 600; }

.course { padding-top: 10px; }
.section-eyebrow { margin: 30px 0 14px; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lesson-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lesson-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.lesson-card h4 { font-size: 22px; }
.lesson-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.lc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lc-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); }
.lc-state { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--ink-mute); }
.state-done .lc-state { background: var(--green-soft); color: var(--green); }
.state-done .lc-state::before { content: '✓ '; }
.state-viewed .lc-state { background: var(--gold-soft); color: #8A6420; }
.lesson-card.is-next { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.lc-sessions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.lc-sessions img { width: 40px; height: 40px; object-fit: contain; }

@media (max-width: 860px) {
  .dash-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .progress-card { flex-direction: column; text-align: center; }
}

/* ============ LES ============ */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; padding-top: 30px; align-items: start; }
.back-link { display: inline-block; font-size: 14px; color: var(--ink-mute); margin-bottom: 14px; }
.lesson-main .lead { margin-bottom: 26px; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, transparent 40%, rgba(59, 24, 48, .35)); }
.video-play span { width: 76px; height: 76px; border-radius: 50%; background: rgba(250, 243, 233, .92); display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.video-play span::before { content: ''; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--ink); }
.video-play:hover span { transform: scale(1.08); }
.video-soon { display: flex; align-items: center; justify-content: center; color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 24px; }

.complete-row { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; flex-wrap: wrap; }
.complete-hint { font-size: 13px; color: var(--ink-mute); cursor: pointer; text-decoration: underline; }
.complete-hint:empty { display: none; }

.prose { margin-top: 26px; color: var(--ink-soft); }
.prose h3 { font-size: 24px; margin: 26px 0 10px; color: var(--ink); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--brand); }

.sessions { display: flex; flex-direction: column; gap: 16px; }
.session-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.session-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.session-head img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.session-head h3 { font-size: 22px; margin-bottom: 4px; }
.session-head p { font-size: 15px; color: var(--ink-soft); }

.files { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.file {
  display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "icon label meta" "icon bar bar";
  align-items: center; column-gap: 12px; row-gap: 6px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--cream);
}
.file:not(.is-ready) { grid-template-areas: "icon label meta"; }
.file-icon, .file-play { grid-area: icon; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.file-label { grid-area: label; font-weight: 600; font-size: 15px; }
.file-label small { font-weight: 400; color: var(--ink-mute); margin-left: 4px; }
.file-meta { grid-area: meta; font-size: 13px; color: var(--ink-mute); text-align: right; }
.file-bar { grid-area: bar; height: 6px; border-radius: 3px; background: var(--cream-deep); cursor: pointer; position: relative; }
.file-fill { height: 100%; width: 0; border-radius: 3px; background: var(--brand); }
.file-play { background: var(--accent); color: #fff; box-shadow: 0 3px 10px -2px rgba(216, 30, 70, .4); }
.file-play::before { content: ''; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.file.is-playing .file-play::before { margin: 0; width: 12px; height: 14px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.file.is-loading .file-play { opacity: .6; }
.is-locked { opacity: .75; }
.is-locked .file-icon { background: var(--cream-deep); color: var(--ink-mute); }
.is-locked .file-meta { color: var(--brand-deep); }
.is-soon .file-icon { background: var(--gold-soft); color: #8A6420; }
.listens.is-full { color: var(--green); font-weight: 600; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.prevnext a { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; text-decoration: none; }
.prevnext a:hover { border-color: var(--brand); }
.prevnext small { display: block; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); margin-bottom: 2px; }
.pn-next { text-align: right; grid-column: 2; }

.lesson-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
#note {
  width: 100%; margin-top: 10px; font: inherit; font-size: 15px; line-height: 1.55; color: var(--ink);
  background: #FFFDF8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; resize: vertical; outline: none;
}
.note-status { display: block; min-height: 18px; margin-top: 6px; font-size: 12px; color: var(--ink-mute); }
.note-status.is-error { color: var(--accent-deep); }

.toc ol { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow: auto; }
.toc a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.toc a:hover { background: var(--cream); }
.toc .is-current a { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.toc-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--cream-deep); flex-shrink: 0; position: relative; }
.toc .is-done .toc-check { background: var(--green); border-color: var(--green); }
.toc .is-done .toc-check::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.toc-progress { font-size: 13px; color: var(--ink-mute); }
.toc-bar, .mini-bar { height: 6px; border-radius: 3px; background: var(--cream-deep); margin: 8px 0 6px; overflow: hidden; }
.toc-bar div, .mini-bar div { height: 100%; background: var(--brand); border-radius: 3px; transition: width .6s ease; }
.mini-bar { width: 80px; display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }

@media (max-width: 980px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-side { position: static; }
}
@media (max-width: 560px) {
  .file { grid-template-columns: 40px 1fr; grid-template-areas: "icon label" "icon meta" "bar bar"; }
  .file:not(.is-ready) { grid-template-areas: "icon label" "icon meta"; }
  .file-meta { text-align: left; }
  .prevnext { grid-template-columns: 1fr; }
  .pn-next { grid-column: 1; }
}

/* ============ VRAGEN ============ */
.questions { margin-top: 20px; }
.ticket-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.ticket-list a {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none;
}
.ticket-list a:hover { border-color: var(--brand); }
.ticket-list .is-unread a { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tl-subject { font-weight: 600; }
.tl-subject small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-mute); }
.tl-date { font-size: 13px; color: var(--ink-mute); white-space: nowrap; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-open { background: var(--gold-soft); color: #8A6420; }
.status-answered { background: var(--green-soft); color: var(--green); }
.status-closed { background: var(--cream-deep); color: var(--ink-mute); }
@media (max-width: 560px) {
  .ticket-list a { grid-template-columns: 1fr auto; }
  .tl-date { grid-column: 1 / -1; }
}

.thread { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.msg { max-width: 86%; padding: 16px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.msg-staff { background: var(--brand-soft); border-color: rgba(216, 30, 70, .15); }
.msg-mine { align-self: flex-end; }
.msg-meta { font-size: 13px; color: var(--ink-mute); margin-bottom: 6px; }
.msg-body p { margin-bottom: 10px; }
.msg-body p:last-child { margin-bottom: 0; }

/* ============ AANTEKENINGEN / ACCOUNT ============ */
.note-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 16px; }
.note-item header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.note-body { color: var(--ink-soft); }
.note-body p { margin-bottom: 10px; }
.small-link { font-size: 14px; font-weight: 600; }
.device-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.device-list small { display: block; }

/* ============ BEHEER ============ */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 22px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 10px 16px; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; font-weight: 500; }
.admin-nav a.on { color: var(--brand-deep); border-color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; }
.stat-num { font-family: var(--serif); font-size: 40px; line-height: 1; }
.stat-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-top: 6px; }
.stat-sub { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--cream); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .is-unread td { background: #FFF8F9; font-weight: 600; }
.table .is-blocked td { opacity: .5; }
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-size: 14px; text-decoration: none !important; }
.chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search { flex: 1; max-width: 380px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.admin-cols .card-form:first-child { margin-top: 0; }
.plain-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.copy-field { font-size: 13px !important; margin: 6px 0 4px; }
.card-form.wide { max-width: none; }
.session-edit { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.session-edit legend { font-family: var(--serif); font-size: 19px; padding: 0 6px; }
.file-edit { display: grid; grid-template-columns: 200px 1fr 110px; gap: 10px; align-items: center; }
.fe-label { font-size: 14px; font-weight: 600; }
.fe-min { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-mute); }
.file-edit input { padding: 9px 12px; font-size: 14px; }
@media (max-width: 860px) {
  .admin-cols { grid-template-columns: 1fr; }
  .file-edit { grid-template-columns: 1fr 100px; }
  .fe-label { grid-column: 1 / -1; }
}

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: rgba(250, 243, 233, .55); padding: 32px 0; text-align: center; font-size: 13px; }
.footer-row { margin-bottom: 8px; }
