/* Salon Yeager Academy — brand styles */
:root {
  --green: #53682B;
  --green-dark: #3E4F1F;
  --green-soft: #E7EBDD;
  --gold: #CDBC0F;
  --gold-soft: #F6F1C8;
  --cream: #F6F5EF;
  --paper: #FFFFFF;
  --ink: #1F2614;
  --muted: #6B7160;
  --line: #E2E3DA;
  --danger: #A23B2A;
  --danger-soft: #F7E3DF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,38,20,.06), 0 6px 20px rgba(31,38,20,.06);
  --font: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: .01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--green); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { width: min(320px, 70vw); opacity: .9; }

/* ---------- shell */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 18px; width: auto; }
.brand span { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.nav a:hover { background: var(--green-soft); }
.nav a.active { background: var(--green); color: #fff; }
.nav .ico { display: none; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 120px; }
@media (max-width: 760px) {
  .brand span { display: none; }
  .brand img { height: 15px; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--paper); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); margin: 0; }
  .nav a { display: flex; flex-direction: column; align-items: center; font-size: .68rem; padding: 6px 8px; border-radius: 10px; gap: 2px; }
  .nav a.active { background: none; color: var(--green); font-weight: 600; }
  .nav .ico { display: block; font-size: 1.2rem; line-height: 1; }
  main { padding: 20px 16px 110px; }
}

/* ---------- building blocks */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; font-size: .95rem; border: 1px solid var(--green); background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.icon { padding: 6px 10px; }

label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #CFD1C4; border-radius: 10px; padding: 10px 12px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); white-space: nowrap; }
.badge.gold { background: var(--gold-soft); color: #6B6206; }
.badge.lock { background: #ECEDE6; color: var(--muted); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.solid { background: var(--green); color: #fff; }

.progress { height: 8px; border-radius: 99px; background: #ECEDE6; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--green), #7C9142); border-radius: 99px; transition: width .4s; }
.progress.done > div { background: var(--gold); }

/* ---------- dashboard */
.hero { background: var(--green); color: #fff; border-radius: 20px; padding: 28px; position: relative; overflow: hidden; margin-bottom: 26px; }
.hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; background: url('/img/logo-trans.png') no-repeat; opacity: 0; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; }
.hero .mark { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 70px solid transparent; border-right: 70px solid transparent; border-bottom: 140px solid rgba(205,188,15,.18); }
.hero p { max-width: 560px; opacity: .92; margin: .3em 0 1em; }
.hero-body { position: relative; }
.hero.with-photo { padding: 0; }
.hero.with-photo .hero-body { padding: 28px; }
.hero-photo { aspect-ratio: 21 / 8; background: var(--green-dark) center 62% / cover no-repeat; }
@media (max-width: 760px) { .hero-photo { aspect-ratio: 16 / 9; } }
.cover-preview { aspect-ratio: 21 / 8; max-width: 640px; border-radius: 14px; background: var(--green-soft) center 62% / cover no-repeat; display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 1.8rem; font-weight: 500; color: var(--green); }
.stat span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.course-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31,38,20,.12); }
.course-card .cover { aspect-ratio: 16/9; background: var(--green-soft) center/cover no-repeat; position: relative; display: grid; place-items: center; }
.course-card .cover .tri { width: 0; height: 0; border-left: 28px solid transparent; border-right: 28px solid transparent; border-bottom: 52px solid var(--gold); opacity: .85; }
.course-card .cover .badge { position: absolute; top: 12px; left: 12px; }
.course-card.locked .cover { filter: grayscale(1); opacity: .65; }
.course-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card h3 { margin: 0; }
.course-card p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; }
.section-title h2 { margin: 0; }

.announce { border-left: 4px solid var(--gold); }
.announce h3 { margin-bottom: 4px; }

/* ---------- course page */
.course-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; margin-bottom: 26px; }
.course-hero .cover { aspect-ratio: 16/9; border-radius: 18px; background: var(--green) center/cover no-repeat; display: grid; place-items: center; }
.course-hero .cover .tri { width: 0; height: 0; border-left: 46px solid transparent; border-right: 46px solid transparent; border-bottom: 86px solid var(--gold); }
@media (max-width: 760px) { .course-hero { grid-template-columns: 1fr; } .course-hero .cover { order: -1; } }
.module { padding: 0; overflow: hidden; }
.module-head { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; background: #FBFBF7; border-bottom: 1px solid var(--line); }
.module-head h3 { margin: 0; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: var(--cream); }
.lesson-row.locked { color: var(--muted); cursor: not-allowed; }
.lesson-row.locked:hover { background: none; }
.dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #CFD1C4; display: grid; place-items: center; flex: none; font-size: .8rem; }
.dot.done { background: var(--green); border-color: var(--green); color: #fff; }
.lesson-row .title { flex: 1; }
.lock-note { background: var(--gold-soft); border: 1px solid #E9DE8A; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }

.rubric-view { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 8px; }
.rubric-view td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rubric-view td:last-child { text-align: right; font-weight: 500; }
.feedback { background: var(--cream); border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: .92rem; white-space: pre-wrap; }

/* ---------- lesson player */
.player { max-width: 860px; margin: 0 auto; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.media { margin: 18px 0; }
.media video, .media img { width: 100%; border-radius: 14px; background: #000; display: block; }
.media img { background: none; }
.media .yt { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.media .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.file-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 1.4em; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1em 0; padding: .2em 1em; color: var(--muted); }
.prose code { background: var(--green-soft); padding: 1px 6px; border-radius: 6px; }
.lesson-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.question { padding: 20px; }
.question .num { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.question .prompt { font-size: 1.08rem; font-weight: 500; margin: 4px 0 12px; }
.option { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-size: .98rem; background: #fff; }
.option:hover { border-color: var(--green); }
.option input { accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.option.right { border-color: var(--green); background: var(--green-soft); }
.option.wrong { border-color: var(--danger); background: var(--danger-soft); }
.question.is-right { border-left: 4px solid var(--green); }
.question.is-wrong { border-left: 4px solid var(--danger); }
.result-banner { text-align: center; padding: 28px; border-radius: 18px; margin-bottom: 20px; }
.result-banner.pass { background: var(--green); color: #fff; }
.result-banner.fail { background: var(--danger-soft); color: var(--danger); }
.result-banner .score { font-size: 3rem; font-weight: 500; line-height: 1; }

/* ---------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data th { font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #FBFBF7; position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--cream); }

/* ---------- grading */
.crit { padding: 14px 0; border-bottom: 1px solid var(--line); }
.crit:last-child { border-bottom: 0; }
.crit .name { font-weight: 500; margin-bottom: 8px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { font: inherit; min-width: 48px; height: 44px; border-radius: 12px; border: 1px solid #CFD1C4; background: #fff; cursor: pointer; font-size: 1rem; }
.seg button.on { background: var(--green); color: #fff; border-color: var(--green); }
.score-pill { position: sticky; bottom: 76px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 16px; margin-top: 16px; }
@media (min-width: 761px) { .score-pill { bottom: 16px; } }

/* ---------- admin */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-list li:last-child { border-bottom: 0; }
.admin-list .grow { flex: 1; min-width: 0; }
.admin-list a.grow { text-decoration: none; color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.q-edit { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; background: #FDFDFB; }
.opt-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.opt-row input[type=text] { flex: 1; }
.uploadbar { height: 6px; background: #ECEDE6; border-radius: 9px; overflow: hidden; margin-top: 8px; }
.uploadbar > div { height: 100%; background: var(--gold); width: 0; transition: width .2s; }
.thumb { width: 56px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--green-soft); flex: none; display: grid; place-items: center; font-size: .7rem; color: var(--green-dark); }

/* ---------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .art { background: var(--green); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 48px; color: #fff; }
.login .art .big-tri { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 0; height: 0; border-left: 160px solid transparent; border-right: 160px solid transparent; border-bottom: 300px solid var(--gold); opacity: .95; }
.login .art .big-tri::after { content: ''; position: absolute; left: -110px; top: 90px; border-left: 110px solid transparent; border-right: 110px solid transparent; border-bottom: 210px solid var(--green); }
.login .art p { position: relative; font-size: 1.1rem; max-width: 360px; opacity: .95; }
.login .form { display: grid; place-items: center; padding: 32px 24px; background: var(--paper); }
.login form { width: 100%; max-width: 380px; }
.login .logo { width: 100%; max-width: 340px; margin-bottom: 8px; }
@media (max-width: 760px) { .login { grid-template-columns: 1fr; } .login .art { display: none; } }

/* ---------- toasts, empty states */
#toasts { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); animation: up .25s ease; }
.toast.good { background: var(--green); }
.toast.bad { background: var(--danger); }
.toast.gold { background: var(--gold); color: var(--ink); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- certificate */
.cert { background: #fff; max-width: 900px; margin: 0 auto; aspect-ratio: 11/8.5; border: 14px solid var(--green); outline: 2px solid var(--gold); outline-offset: -26px; padding: 7% 8%; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2%; }
.cert img { width: 55%; }
.cert .eyebrow { font-size: .9rem; }
.cert .who { font-size: clamp(1.6rem, 5vw, 3rem); font-weight: 400; border-bottom: 1px solid var(--gold); padding: 0 24px 6px; }
.cert .what { font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--green); font-weight: 500; }
@media print {
  .topbar, .nav, .no-print, #toasts { display: none !important; }
  body, main { background: #fff; padding: 0; margin: 0; }
  .cert { border-width: 10px; max-width: none; width: 100%; }
  @page { size: landscape; margin: 0.4in; }
}

/* ---------- notifications */
.nav a { position: relative; }
.count { font-style: normal; position: absolute; top: 0; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 600; line-height: 18px; text-align: center; }
.count[hidden] { display: none; }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); flex: none; }
.bell:hover, .bell.active { background: var(--green-soft); color: var(--green); }
.bell .bell-ico { display: grid; }
.bell .count { top: 2px; right: 0; }
@media (max-width: 760px) { .bell { margin-left: auto; } .nav .count { right: 6px; top: 2px; } }
.tab-count { margin-left: 6px; background: var(--danger); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .75rem; }
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--cream); }
.notif .dot-unread { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.notif.unread .dot-unread { background: var(--gold); }
.notif.unread strong { color: var(--green-dark); }
.grow { flex: 1; min-width: 0; }

/* ---------- career path */
.level-strip { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; color: #fff; text-decoration: none; max-width: 560px; position: relative; }
.level-strip:hover { background: rgba(255,255,255,.2); }
.level-strip .progress { background: rgba(255,255,255,.25); margin-top: 6px; }
.level-strip .progress > div { background: var(--gold); }
.path { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.path::before { content: ''; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.path > li { display: flex; gap: 16px; margin-bottom: 16px; position: relative; }
.path .node { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; border: 2px solid #CFD1C4; font-weight: 600; color: var(--muted); z-index: 1; }
.path li.done .node { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.path li.next .node { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 0 0 5px var(--green-soft); }
.path li > .card { flex: 1; margin: 0; }
.path li.next > .card { border-color: var(--green); }
.path-courses { list-style: none; padding: 0; margin: 10px 0 0; }
.path-courses li { display: flex; gap: 10px; padding: 5px 0; font-size: .95rem; }
.path-courses li span { width: 18px; color: var(--green); }

/* ---------- submissions */
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.thumbs img, .thumbs video, .thumb-wrap img, .thumb-wrap video { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; background: #000; display: block; }
.thumb-wrap { position: relative; }
.thumb-wrap .x { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: .75rem; }
.sub-status { margin-top: 18px; border-left: 4px solid var(--line); }
.sub-status.pending { border-left-color: var(--gold); }
.sub-status.approved { border-left-color: var(--green); }
.sub-status.revise { border-left-color: var(--danger); }
.review-media { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 16px 0; }
.review-media img, .review-media video { width: 100%; border-radius: 14px; display: block; background: #000; max-height: 70vh; object-fit: contain; }

/* ---------- insights */
.meter { width: 110px; height: 8px; border-radius: 99px; background: #ECEDE6; overflow: hidden; flex: none; }
.meter > div { height: 100%; background: var(--green); border-radius: 99px; }
.meter.gold > div { background: var(--gold); }
.meter.red > div { background: var(--danger); }
.insight-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.insight-row:last-child { border-bottom: 0; }
.insight-row b { width: 44px; text-align: right; flex: none; }
.tabs .btn { white-space: nowrap; }
@media (max-width: 760px) { .review-media { grid-template-columns: 1fr 1fr; } .review-media img { aspect-ratio: 3/4; object-fit: cover; } .review-media video { grid-column: 1 / -1; } }

/* ---------- acknowledgments */
.ack-doc { padding: 28px clamp(18px, 5vw, 44px); }
.ack-logo { display: block; width: min(260px, 70%); margin: 0 auto 18px; }
.ack-doc .prose h2 { text-align: center; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
.ack-check { align-items: flex-start; line-height: 1.5; }
.ack-check input { margin-top: 3px; }
.sig-name { font-family: 'Brush Script MT', 'Segoe Script', 'Snell Roundhand', cursive; font-size: 1.8rem; color: var(--ink); }
.x-inline { border: 0; background: none; color: inherit; opacity: .55; cursor: pointer; margin-left: 4px; font-size: .7rem; padding: 0; }
.x-inline:hover { opacity: 1; }

/* ---------- flashcards */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chip { font: inherit; font-size: .85rem; white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.flashcard { position: relative; width: 100%; max-width: 560px; margin: 10px auto 0; min-height: 420px; perspective: 1400px; cursor: pointer; outline: none; }
.flashcard:focus-visible .fc-face { box-shadow: 0 0 0 3px var(--gold); }
.fc-face { position: absolute; inset: 0; border-radius: 22px; padding: 26px 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s cubic-bezier(.2,.7,.2,1); box-shadow: 0 10px 30px rgba(31,38,20,.12); overflow: hidden; }
.fc-front { background: var(--green); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.fc-front .eyebrow { color: var(--gold); }
.fc-front .badge.lock { background: rgba(255,255,255,.15); color: #fff; }
.fc-meta { position: absolute; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fc-img { max-height: 150px; max-width: 70%; object-fit: contain; margin-bottom: 14px; border-radius: 10px; }
.fc-title { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 500; line-height: 1.15; }
.fc-sub { margin-top: 8px; opacity: .9; font-size: 1.05rem; }
.fc-tap { position: absolute; bottom: 18px; left: 0; right: 0; font-size: .8rem; opacity: .75; letter-spacing: .08em; text-transform: uppercase; }
.fc-back { background: var(--paper); border: 1px solid var(--line); transform: rotateY(180deg); overflow-y: auto; }
.fc-back-title { font-size: 1.2rem; font-weight: 500; color: var(--green); margin-bottom: 6px; }
.fc-back .prose h2, .fc-back .prose h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.fc-back .prose ul { margin: 4px 0; padding-left: 18px; }
.fc-back .prose p { margin: 4px 0; }
.flashcard.flipped .fc-front { transform: rotateY(180deg); }
.flashcard.flipped .fc-back { transform: rotateY(360deg); }
.fc-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.fc-controls .btn { min-width: 64px; font-size: 1.2rem; }
@media (max-width: 760px) { .flashcard { min-height: 460px; } }
