:root {
  --primary: #2f2f52;
  --primary-dark: #1f1f3a;
  --logo-bg: #000;
  --accent: #a2895c;
  --accent-light: #c9b48a;
  --bg: #ffffff;
  --bg-soft: #f7f5f0;
  --text: #22223a;
  --muted: #62627a;
  --border: #e4e0d6;
  --danger: #b3261e;
  --success: #1e7b45;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 31, 58, 0.08);
  --header-h: 68px;
  --font-heading: 'Poppins';
  --font-body: 'Poppins';
  font-family: var(--font-body), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; color: var(--primary-dark); font-family: var(--font-heading), var(--font-body), system-ui, sans-serif; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.rich p:last-child { margin-bottom: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- announcement & header ---------- */
.announcement { background: var(--accent); color: #1b1b30; text-align: center; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary-dark); min-width: 0; }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; background: var(--logo-bg); flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 1rem; line-height: 1.15; display: block; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: flex; }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; line-height: 1.2; min-height: 44px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); padding: 8px 12px; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8c1d17; color: #fff; }
.btn-sm { padding: 6px 14px; min-height: 36px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: grid; gap: 6px; }
.field > span, .field-label { font-weight: 500; font-size: 0.9rem; color: var(--primary-dark); }
.field small { color: var(--muted); }
input:not([type]), input[type='text'], input[type='email'], input[type='password'], input[type='tel'], input[type='date'], input[type='time'], input[type='search'], input[type='url'], input[type='number'], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(162, 137, 92, 0.2); }
input[type='color'] { width: 56px; height: 44px; padding: 2px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; }
.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--primary); }
.form-error { color: var(--danger); font-size: 0.9rem; min-height: 1em; }
.hp { position: absolute; left: -9999px; }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(circle at 80% 20%, #3d3d6b 0%, var(--primary) 45%, var(--primary-dark) 100%); color: #fff; overflow: hidden; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.86); max-width: 560px; }
.hero .btn-row { margin-top: 28px; }
@media (max-width: 800px) {
  .hero p { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
}

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.person { text-align: center; }
.person .role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }

/* ---------- timetable ---------- */
.tag { background: var(--bg-soft); color: var(--primary); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; }
.map-embed { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- pricing ---------- */
.plan { display: flex; flex-direction: column; position: relative; }
.plan.highlight { border: 2px solid var(--accent); transform: translateY(-6px); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.plan ul { padding: 0; list-style: none; margin: 0 0 8px; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.badge { display: inline-block; background: var(--accent); color: #fff; padding: 3px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- gallery ---------- */
.gallery-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--bg-soft); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gi-type { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.55); color: #fff; border-radius: 6px; padding: 2px 6px; font-size: 0.75rem; }
.gallery-item .gi-caption { position: absolute; inset: auto 0 0 0; padding: 24px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; font-size: 0.8rem; opacity: 0; transition: opacity 0.2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-item:hover .gi-caption, .gallery-item:focus .gi-caption { opacity: 1; }
.btn-insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.btn-insta:hover { color: #fff; filter: brightness(1.08); }

/* ---------- contact ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- auth & account ---------- */
.member-card { background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: 20px; padding: 24px; text-align: center; box-shadow: 0 16px 40px rgba(31, 31, 58, 0.3); position: relative; overflow: hidden; }
.member-card::after { content: ''; position: absolute; width: 260px; height: 260px; border: 10px solid rgba(162, 137, 92, 0.35); border-radius: 50%; top: -120px; right: -120px; }
.member-card h2 { color: #fff; margin-bottom: 4px; font-size: 1.4rem; }
.member-card .mid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; letter-spacing: 0.08em; color: var(--accent-light); font-weight: 700; }
.qr-box { background: #fff; border-radius: 16px; padding: 12px; width: min(280px, 100%); margin: 16px auto; position: relative; z-index: 1; }
.qr-box img, .qr-box svg { width: 100%; height: auto; display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 0.85rem; }
.account-grid { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }

.list { list-style: none; padding: 0; margin: 0; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .meta { color: var(--muted); font-size: 0.85rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--bg-soft); font-weight: 600; color: var(--primary-dark); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #faf8f3; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--bg-soft); color: var(--primary); }
.pill-admin { background: var(--primary); color: #fff; }
.pill-instructor { background: var(--accent); color: #fff; }
.pill-u16 { background: #e6f0fb; color: #1d4f8f; }
.pill-inactive { background: #f3dcdb; color: var(--danger); }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 28px 16px 56px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.93rem; white-space: nowrap; }
.admin-nav a:hover { background: var(--bg-soft); }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-nav .nav-heading { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 10px 12px 4px; font-weight: 600; }
.admin-main { min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: 1.7rem; margin: 0; }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); padding-top: 0; gap: 16px; }
  .admin-nav { position: sticky; top: var(--header-h); z-index: 10; flex-direction: row; overflow-x: auto; border-radius: 0; margin: 0 -16px; border-width: 0 0 1px; padding: 8px 16px; scrollbar-width: none; }
  .admin-nav .nav-heading { display: none; }
}
.list-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* A long title shortens with "…" rather than stretching the form wider than a phone. */
.list-editor-item { min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fcfbf8; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.list-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.list-editor-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-editor-actions { display: flex; gap: 4px; flex-shrink: 0; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; display: grid; place-items: center; font-size: 0.95rem; color: var(--primary); }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn.danger:hover { background: #f3dcdb; color: var(--danger); }
.image-field { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.image-field .thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); background: var(--bg-soft); }
.image-field input[type='text'] { flex: 1; min-width: 180px; }
.save-bar { position: sticky; bottom: 0; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px); border-top: 1px solid var(--border); padding: 12px 0; margin-top: 20px; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; z-index: 5; }
.save-bar .status { margin-right: auto; color: var(--muted); font-size: 0.9rem; }
.save-bar .status.dirty { color: var(--accent); font-weight: 600; }
.nav-editor-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; min-height: 420px; }

/* ---------- scanner ---------- */
.scanner-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .scanner-layout { grid-template-columns: 1fr; } }
.scanner-view { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; position: relative; display: grid; place-items: center; color: #fff; }
.scanner-view #qr-reader { width: 100%; }
.scanner-view video { object-fit: cover; }
.scanner-placeholder { text-align: center; padding: 24px; }
.scan-result { border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; font-weight: 500; display: flex; gap: 12px; align-items: center; animation: pop 0.25s ease; }
.scan-result .sr-icon { font-size: 1.8rem; }
.scan-result.ok { background: #e3f4ea; color: var(--success); }
.scan-result.warn { background: #fff4dc; color: #8a5a00; }
.scan-result.err { background: #f8e1df; color: var(--danger); }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.session-pick { display: grid; gap: 10px; }
.session-option { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.session-option:hover { border-color: var(--accent); }
.session-option.active { border-color: var(--primary); background: #f2f2f8; }

/* ---------- misc ---------- */
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { display: grid; place-items: center; min-height: 50vh; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.notice { background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; }
.notice.warn { border-left-color: #d08a00; background: #fff8e8; }

.toast-region { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--primary-dark); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); animation: pop 0.2s ease; font-size: 0.95rem; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35); }
dialog::backdrop { background: rgba(20, 20, 40, 0.55); }
.dialog-body { padding: 24px; overflow-y: auto; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dialog-head h2 { margin: 0; font-size: 1.3rem; }

@media print {
  .announcement, .no-print, .admin-nav { display: none !important; }
  .member-card { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- lightbox ---------- */
dialog.lightbox { width: min(1040px, calc(100% - 16px)); max-height: calc(100vh - 16px); background: #111; color: #fff; padding: 0; border-radius: 16px; overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lb-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); max-height: calc(100vh - 16px); position: relative; }
.lb-media { position: relative; background: #000; display: grid; place-items: center; min-height: 300px; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 16px); object-fit: contain; display: block; }
.lb-side { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; background: #fff; color: var(--text); }
.lb-caption { white-space: pre-wrap; margin: 0; font-size: 0.95rem; }
.lb-nav { display: flex; gap: 8px; margin-top: auto; }
.lb-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.1rem; cursor: pointer; }
.lb-slide { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.85); color: #000; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-slide[disabled] { opacity: 0.3; cursor: default; }
.lb-slide.prev { left: 10px; }
.lb-slide.next { right: 10px; }
.lb-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.lb-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.lb-dots span.on { background: #fff; }
@media (max-width: 760px) {
  .lb-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-media img, .lb-media video { max-height: 65vh; }
  .lb-side { padding: 18px; }
}

/* ---------- attendance chart ---------- */
.month-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 160px; padding-top: 8px; }
.mc-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.mc-bar { width: 100%; max-width: 44px; min-height: 4px; background: linear-gradient(var(--accent), var(--primary)); border-radius: 6px 6px 2px 2px; }
.mc-count { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.mc-label { color: var(--muted); font-size: 0.8rem; }
.bio-box { white-space: pre-wrap; background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin: 0; }
.form-heading { margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 1.05rem; color: var(--accent); }
.form > .form-heading:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.debrief-cta { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.cell-clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.detail-list dt { font-weight: 600; color: var(--primary-dark); }
.detail-list dd { margin: 0; }
@media (max-width: 520px) { .detail-list { grid-template-columns: 1fr; gap: 2px; } .detail-list dd { margin-bottom: 10px; } }
.scan-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; border-radius: 999px; padding: 14px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
@media (pointer: fine) { .scan-fab { display: none; } }
/* Room at the bottom so the Scan QR button never covers the last thing on the page. */
@media (pointer: coarse) { .has-fab .admin-main { padding-bottom: 84px; } }
.consent-box { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 0; display: grid; gap: 10px; }
.consent-box legend { padding: 0 6px; }
.guardian-fields { display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.consent-check { align-items: flex-start; font-weight: 400; font-size: 0.92rem; }
.consent-check input { margin-top: 2px; flex-shrink: 0; }
.policy { max-width: 780px; }
.policy h3, .policy-scroll h3 { margin-top: 1.6em; font-size: 1.15rem; }
.policy ul, .policy-scroll ul { padding-left: 22px; margin: 0 0 1em; }
.policy li, .policy-scroll li { margin-bottom: 6px; }
.policy-scroll { max-height: 280px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 4px 16px; background: var(--bg-soft); font-size: 0.9rem; }
