/* K Attendance Tracking. Colors come from the K logo: brown upright, gold, orange, and red triangles.
   Layout: one centered column for app pages, a single card for check-in, a full-screen board for the projector,
   and wide alternating bands for the public pages. */
:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #efebe7;
  --ink: #221a15;
  --muted: #6a5f57;
  --line: #e2dbd4;
  --accent: #8b5022;          /* logo brown: buttons, links */
  --accent-ink: #ffffff;
  --accent-soft: #f4e8dd;
  --k-brown: #8b5022;
  --k-gold: #f2b71a;
  --k-orange: #f26722;
  --k-red: #c4161c;
  --ok: #2f7a3a;
  --ok-soft: #e3f1e4;
  --warn: #8f5800;
  --warn-soft: #fcefd2;
  --bad: #b3181d;
  --bad-soft: #f9e0df;
  --info-soft: #e6eaf5;
  --info: #36508c;
  --gold: #f2b71a;
  --gold-soft: #fdf3d6;
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --surface: #1e1916;
    --surface-2: #29221e;
    --ink: #f1ebe6;
    --muted: #ab9f96;
    --line: #3a302a;
    --accent: #e3a46b;
    --accent-ink: #21150c;
    --accent-soft: #3a2a1d;
    --k-brown: #c27a42;
    --k-gold: #f5c443;
    --k-orange: #f5824a;
    --k-red: #e5484d;
    --ok: #7fcf88;
    --ok-soft: #1d3322;
    --warn: #e9b350;
    --warn-soft: #3a2d12;
    --bad: #f2898a;
    --bad-soft: #3f1d1d;
    --info-soft: #1f2840;
    --info: #9fb5ea;
    --gold: #f5c443;
    --gold-soft: #3a3115;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; font-family: var(--font-display); font-weight: 700; }
h1 { font-size: 1.85rem; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--k-orange); outline-offset: 2px; }

/* ---------- Top bar (app) ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--k-gold); }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.topnav { display: flex; gap: 18px; flex-wrap: wrap; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.topnav a:hover { color: var(--ink); }
/* ---------- Page structure ---------- */
.main { max-width: 1100px; margin: 0 auto; padding: 28px 16px 64px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.eyebrow a { color: inherit; }
.section-tag {
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; vertical-align: middle;
}
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.panel.narrow { max-width: 640px; }
.panel.empty { align-items: flex-start; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-flag { border-color: var(--warn); background: var(--warn-soft); }

.notice { padding: 12px 14px; border-radius: 8px; background: var(--ok-soft); color: var(--ink); border-left: 4px solid var(--ok); }
.notice-error { background: var(--bad-soft); border-left-color: var(--bad); }
.notice-warn { background: var(--warn-soft); border-left-color: var(--warn); }

/* ---------- Forms ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.grow { flex: 1 1 260px; }
.field > span { font-size: 0.875rem; font-weight: 700; }
input[type=text], input[type=password], input[type=email], input[type=date], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-height: 42px; max-width: 100%;
}
textarea { font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 16px; min-height: 42px;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger-quiet { color: var(--bad); }
.btn-small { min-height: 34px; padding: 5px 12px; font-size: 0.875rem; }
.btn-big { min-height: 54px; font-size: 1.1rem; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-top: 6px; }

details > summary { cursor: pointer; font-weight: 700; color: var(--accent); }
details[open] > summary { margin-bottom: 14px; }
.inline-h2 { display: inline; color: var(--ink); }
.inline-details { position: relative; }
.inline-details > summary { list-style: none; color: var(--ink); }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] > summary { margin-bottom: 10px; }
.roster-tools { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.danger-zone { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.danger-zone form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.panel.danger-zone { margin-top: 0; }
.manage-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data th, .data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.data tbody tr:hover { background: var(--surface-2); }
.data .num { text-align: right; white-space: nowrap; }
.data .actions { text-align: right; white-space: nowrap; }
.data tr.is-inactive td { color: var(--muted); }
.th-sub { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }

.pill {
  display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.pill-flag { background: var(--warn-soft); color: var(--warn); }
.pill-muted { background: var(--surface-2); color: var(--muted); }

/* ---------- Dashboard ---------- */
.term-group { display: flex; flex-direction: column; gap: 12px; }
.term-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.class-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s;
}
.class-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.class-name { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.class-section { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.class-stats { display: flex; gap: 16px; margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.class-stats strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.live-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent);
}
.live-banner .btn { margin-left: auto; }
.live-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok); animation: pulse 1.6s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(44, 110, 54, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(44, 110, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(44, 110, 54, 0); } }

/* ---------- Class page ---------- */
.take-panel { border-color: var(--accent); }
.take-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.slot-card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid transparent;
}
.slot-card.is-open { background: var(--accent-soft); border-color: var(--accent); }
.slot-label { font-weight: 700; font-size: 1.05rem; }
.slot-state { color: var(--muted); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.popover { margin-top: 4px; padding: 14px; background: var(--surface-2); border-radius: 8px; }

/* ---------- Session page ---------- */
.mark { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mark-select { min-height: 36px; padding: 5px 8px; font-weight: 700; }
.mark-select.status-present { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.mark-select.status-absent { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.mark-select.status-excused { background: var(--info-soft); color: var(--info); border-color: transparent; }
.mark-meta { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.flag-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Report ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 0.875rem; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.segmented a { padding: 6px 12px; font-size: 0.875rem; text-decoration: none; color: var(--muted); }
.segmented a.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.report-table .dates { min-width: 220px; }
.chip {
  display: inline-block; margin: 2px 4px 2px 0; padding: 1px 7px; border-radius: 5px;
  font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chip-absent { background: var(--bad-soft); color: var(--bad); }
.chip-late, .chip-left { background: var(--warn-soft); color: var(--warn); }
.chip-left { box-shadow: inset 0 -2px 0 var(--warn); }
.chip-excused { background: var(--info-soft); color: var(--info); }
.legend { color: var(--muted); display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.count-high { color: var(--bad); font-weight: 700; }
.count-some { color: var(--warn); font-weight: 700; }
.count-zero { color: var(--muted); }
.grid-table th, .grid-table td { padding: 6px 8px; }
.grid-table .grid-date { text-align: center; font-size: 0.75rem; }
.grid-table .grid-date a { color: inherit; text-decoration: none; }
.grid-cell { text-align: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; }
.cell-present { color: var(--muted); }
.cell-absent { background: var(--bad-soft); color: var(--bad); }
.cell-late, .cell-left { background: var(--warn-soft); color: var(--warn); }
.cell-excused { background: var(--info-soft); color: var(--info); }
.sticky-col { position: sticky; left: 0; background: var(--surface); white-space: nowrap; z-index: 1; }

/* ---------- Student pages ---------- */
.student-main {
  min-height: 100vh; padding: 32px 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; gap: 16px;
}
.student-main > .notice { width: 100%; max-width: 440px; }
.checkin-card {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px 22px; display: flex; flex-direction: column; gap: 16px;
}
.checkin-card h1 { font-size: 1.5rem; }
.code-input {
  font-family: var(--font-mono) !important; font-size: 2rem !important; font-weight: 700;
  letter-spacing: 0.25em; text-align: center; text-transform: uppercase; min-height: 64px !important;
}
.bound-name { font-size: 1.4rem; font-weight: 700; padding: 14px; background: var(--surface-2); border-radius: 8px; text-align: center; }
.instructor-link { font-size: 0.875rem; }
.instructor-link a { color: var(--muted); }
.checkin-done { text-align: center; align-items: center; border-color: var(--ok); }
.done-mark { color: var(--ok); }
.done-name { font-size: 1.4rem; font-weight: 700; }
.done-facts { margin: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.done-facts div { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; }
.done-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.done-facts dd { margin: 0; font-weight: 700; }

/* ---------- Projector screen (always light, high contrast) ---------- */
body.mode-display { background: #f7f8f6; color: #101614; color-scheme: light; }
.display-main { min-height: 100vh; padding: 0 16px; }
.live { max-width: 1400px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; gap: 24px; padding-block: 24px; }
.live-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.live-class { font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 700; }
.live-sub { font-size: clamp(1rem, 1.6vw, 1.35rem); color: #4b5752; }
.live-count { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.live-count #count { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; color: #8b5022; line-height: 1; }
.live-of { font-size: clamp(1.1rem, 2vw, 1.6rem); color: #4b5752; }
.live-count-label { font-family: var(--font-body); color: #4b5752; font-size: 1rem; width: 100%; text-align: right; }
.live-body { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.live-code-col, .live-qr-col { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; text-align: center; }
.live-step { font-size: clamp(1.1rem, 2vw, 1.6rem); color: #2a3430; }
.live-url { color: #101614; font-family: var(--font-mono); word-break: break-all; }
.live-code {
  font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.12em;
  font-size: clamp(3.5rem, 11vw, 10rem); line-height: 1; color: #101614;
  padding: 0.18em 0.3em 0.18em 0.42em; background: #ffffff; border: 3px solid #101614; border-radius: 18px;
}
.live-code.is-new { animation: codeIn 0.35s ease-out; }
@keyframes codeIn { from { opacity: 0.2; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.live-bar { width: min(100%, 640px); height: 10px; background: #dfe5e1; border-radius: 99px; overflow: hidden; }
.live-bar-fill { height: 100%; width: 100%; background: #8b5022; transform-origin: left center; }
.live-hint { color: #4b5752; font-size: 1rem; }
.live-qr { width: min(100%, 420px); aspect-ratio: 1; background: #fff; padding: 18px; border-radius: 16px; border: 1px solid #d3dad6; max-width: 100%; }
.live-qr img, .live-qr canvas { width: 100% !important; height: auto !important; display: block; image-rendering: pixelated; }
.live-closed { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.live-closed h1 { font-size: clamp(2rem, 5vw, 4rem); }
.live-closed p { font-size: 1.4rem; color: #4b5752; }
.live-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #d3dad6; padding-top: 16px; }
.live-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.live-controls form { display: contents; }
.btn-ghost { background: transparent; color: #2a3430; border-color: #c4ccc8; }
.btn-ghost-strong { background: #101614; color: #fff; border-color: #101614; }
.live-status { color: #4b5752; font-variant-numeric: tabular-nums; }
.live.is-offline .live-status::after { content: " · Reconnecting…"; color: #a52a21; }
.live-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: #2a3430; font-size: 1.05rem; }
.live-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.live-logo { width: clamp(44px, 5vw, 72px); height: auto; flex: none; }

/* ---------- Logo and online class days ---------- */
.brand-logo { width: 34px; height: auto; display: block; }
.card-logo { width: 72px; height: auto; display: block; }
.pill-online { background: var(--gold-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); vertical-align: middle; }
.grid-online { display: block; font-size: 0.65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.format-choice { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.format-choice legend { float: left; font-weight: 700; margin-right: 6px; padding: 0; }
.format-option {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.format-option input { accent-color: var(--accent); margin: 0; }
.format-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }

@media (max-width: 800px) {
  .live-body { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
  .data th, .data td { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Program types, settings, and forms ---------- */
.pill-kind { color: #fff; }
.pill-kind.kind-class { background: var(--k-brown); }
.pill-kind.kind-meeting { background: #9a6a00; }
.pill-kind.kind-event { background: var(--k-red); }
.pill-admin { background: var(--accent-soft); color: var(--accent); }
.class-card { border-top: 4px solid var(--k-brown); }
.class-card.kind-meeting { border-top-color: var(--k-gold); }
.class-card.kind-event { border-top-color: var(--k-orange); }
.owner-filter select { min-height: 42px; }

.kind-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.kind-option {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 22px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color 0.15s, transform 0.15s;
}
.kind-option::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--k-brown); }
.kind-option.kind-meeting::before { background: var(--k-gold); }
.kind-option.kind-event::before { background: var(--k-orange); }
.kind-option:hover { border-color: var(--accent); transform: translateY(-2px); }
.kind-option-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.kind-option-text { color: var(--ink); }

.setting { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.setting legend { font-weight: 700; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--surface); }
.choice input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice small { color: var(--muted); font-size: 0.875rem; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.req, .opt { font-style: normal; font-weight: 400; font-size: 0.75rem; color: var(--muted); margin-left: 4px; }
.req { color: var(--k-red); }
.field-error { color: var(--bad); font-size: 0.875rem; font-weight: 700; }
.field-hint { font-size: 0.875rem; color: var(--muted); }
.field-hint.is-ok { color: var(--ok); }
.field-hint.is-bad { color: var(--bad); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-accent { background: var(--k-orange); border-color: var(--k-orange); color: #fff; }
.btn-accent:hover { filter: brightness(1.06); border-color: var(--k-orange); }
.btn-light { background: #fff; color: #221a15; border-color: #fff; }

/* ---------- Public pages ---------- */
.public-main { display: block; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header-inner { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.site-nav a:not(.btn):hover, .site-nav a.is-on { color: var(--ink); }
.site-nav a.is-on { box-shadow: inset 0 -2px 0 var(--k-orange); }

.kicker { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--k-orange); }
.hero { padding-block: clamp(32px, 6vw, 72px); overflow: hidden; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-title { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; }
.hero-title .hl { color: var(--k-brown); display: block; }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-checkin { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; max-width: 480px; }
.hero-checkin label { font-weight: 700; font-size: 0.95rem; }
.hero-checkin-row { display: flex; gap: 10px; }
.hero-checkin .code-input { flex: 1; min-width: 0; font-size: 1.4rem !important; min-height: 50px !important; letter-spacing: 0.2em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-visual { position: relative; margin: 0; padding: 18px 18px 18px 0; min-width: 0; }
.hero-photo { display: block; width: 100%; max-width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 14px; position: relative; z-index: 1; background: var(--surface-2); }
.shape { position: absolute; z-index: 0; }
.shape-brown { left: -14px; top: 40px; bottom: 60px; width: 22px; background: var(--k-brown); border-radius: 3px; }
.shape-gold { right: -4px; top: -6px; width: 120px; height: 120px; background: var(--k-gold); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.shape-red { right: -6px; bottom: 70px; width: 70px; height: 140px; background: var(--k-red); clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.hero-badge {
  position: absolute; z-index: 2; left: -10px; bottom: -6px; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 18px; background: var(--surface); color: var(--ink); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(34, 26, 21, 0.18); border: 1px solid var(--line); min-width: 210px;
}
.hero-badge-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.hero-badge-code { font-family: var(--font-mono); font-weight: 700; font-size: 1.9rem; letter-spacing: 0.14em; line-height: 1; }
.hero-badge-bar { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.hero-badge-bar span { display: block; height: 100%; width: 100%; background: var(--k-orange); transform-origin: left; animation: drain 30s linear infinite; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.hero-badge-count { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-badge-count strong { color: var(--ok); }
.hero-credit { position: relative; z-index: 1; margin-top: 8px; text-align: right; font-size: 0.75rem; color: var(--muted); }

.band { background: var(--k-brown); color: #fff; padding-block: clamp(40px, 6vw, 72px); }
.band-inner, .section-inner, .cta-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.band .section-title { color: #fff; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.015em; margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--k-gold); }
.steps p { color: rgba(255, 255, 255, 0.85); }

.section { padding-block: clamp(44px, 6vw, 80px); }
.section-tint { background: var(--surface-2); }
.kind-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.kind-card { position: relative; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.kind-card::after { content: ""; position: absolute; top: 0; right: 0; width: 56px; height: 56px; clip-path: polygon(0 0, 100% 0, 100% 100%); background: var(--k-brown); }
.kind-card.kind-meeting::after { background: var(--k-gold); }
.kind-card.kind-event::after { background: var(--k-orange); }
.kind-card h3 { font-size: 1.3rem; padding-right: 40px; }
.kind-card p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.split .section-title { margin-bottom: 12px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.trust-list li { padding: 16px 18px; background: var(--surface); border-radius: 10px; border-left: 4px solid var(--k-red); }
.trust-list li:nth-child(2) { border-left-color: var(--k-orange); }
.trust-list li:nth-child(3) { border-left-color: var(--k-gold); }
.trust-list li:nth-child(4) { border-left-color: var(--k-brown); }

.cta { background: var(--k-red); color: #fff; padding-block: clamp(36px, 5vw, 56px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 26em; }
.cta p { opacity: 0.9; margin-top: 6px; }

.page-hero { padding-block: clamp(36px, 5vw, 64px) 8px; }
.page-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 14px; }
.pricing-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.price-card { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--surface); border: 2px solid var(--k-brown); border-radius: 14px; }
.price-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amount { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--k-brown); }
.price-per { color: var(--muted); }
.price-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.feature-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; }
.feature-list dt { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }
.feature-list dd { margin: 4px 0 0; color: var(--muted); }
.signup-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.signup-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); position: relative; }
.signup-thanks { padding: 24px; background: var(--surface); border-radius: 14px; border-left: 5px solid var(--ok); display: flex; flex-direction: column; gap: 8px; }
.typo-box { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; padding: 12px 14px; background: var(--gold-soft); border-radius: 8px; }
.contact-layout { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 26px; background: var(--surface); border-radius: 14px; border-top: 5px solid var(--k-orange); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-email { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; word-break: break-all; }
.help-topics { display: flex; flex-direction: column; gap: 18px; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 28px; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { font-family: var(--font-display); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { width: 100%; }

@media (max-width: 860px) {
  .hero-inner, .split, .pricing-layout, .signup-layout, .contact-layout { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .hero-visual { padding-right: 12px; }
  .hero-badge { left: 8px; }
}
@media (max-width: 480px) {
  .hero-checkin-row { flex-direction: column; }
  .site-nav { gap: 6px 14px; }
}
/* ---------- Plans, checkout, and memberships ---------- */
.section-plans { padding-top: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 20px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.plan-card.plan-featured { border: 2px solid var(--k-brown); }
.plan-card.plan-auto { border: 2px solid var(--k-orange); }
.plan-card.is-selected { box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-flag {
  position: absolute; top: -12px; left: 18px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--k-brown);
}
.plan-auto .plan-flag { background: var(--k-orange); }
.plan-title { font-size: 1.2rem; }
.plan-monthly { display: flex; align-items: baseline; gap: 4px; }
.plan-amount { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--k-brown); font-variant-numeric: tabular-nums; }
.plan-total { color: var(--ink); font-size: 0.95rem; }
.plan-save { color: var(--ok); font-weight: 700; font-size: 0.9rem; min-height: 1.4em; }
.plan-btn { margin-top: auto; }
.plan-note { margin-top: 18px; max-width: 70em; }

.join-layout { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.join-summary { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 2px solid var(--k-brown); border-radius: 14px; }
.join-main { min-width: 0; }
.form-section { font-size: 1.05rem; margin-top: 6px; }
.join-details { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface-2); border-radius: 10px; margin-bottom: 18px; }
.pay-step { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.paypal-box { max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
#paypal-buttons { min-height: 150px; }

.member-banner { background: var(--gold-soft); border-bottom: 1px solid var(--k-gold); padding: 10px 16px; text-align: center; font-size: 0.95rem; }
.member-banner a { font-weight: 700; }
.pill-member-active { background: var(--ok-soft); color: var(--ok); }
.pill-member-expiring { background: var(--warn-soft); color: var(--warn); }
.pill-member-expired { background: var(--bad-soft); color: var(--bad); }
.pill-member-complimentary { background: var(--info-soft); color: var(--info); }
.pill-member-trial { background: var(--gold-soft); color: var(--warn); }
.trial-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 0 0 24px; padding: 22px 24px; background: var(--gold-soft);
  border: 2px solid var(--k-gold); border-radius: 14px;
}
.trial-callout h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.35rem; }
.trial-callout p { margin: 0; max-width: 60ch; }
@media (max-width: 560px) { .trial-callout .btn { width: 100%; text-align: center; } }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.facts div { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; min-width: 0; }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.tab-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tab-count { font-variant-numeric: tabular-nums; font-weight: 400; opacity: 0.85; }
.tab-alert:not(.is-on) { border-color: var(--bad); color: var(--bad); }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Help and FAQ ---------- */
.help-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.help-toc { position: sticky; top: 90px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.help-toc ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.help-toc a { text-decoration: none; }
.help-body { display: flex; flex-direction: column; gap: 36px; min-width: 0; max-width: 46em; }
.help-body article { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.help-body h2 { font-size: 1.5rem; padding-bottom: 8px; border-bottom: 3px solid var(--k-gold); }
.help-body h3 { margin-top: 8px; }
.help-body ol, .help-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.help-body li ul { margin-top: 6px; }
.tip { padding: 12px 14px; background: var(--gold-soft); border-radius: 8px; }
.faq-layout { display: flex; flex-direction: column; gap: 36px; max-width: 52em; }
.faq-group { display: flex; flex-direction: column; gap: 10px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 4px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--ink); list-style-position: outside; }
.faq-item[open] summary { margin-bottom: 0; }
.faq-item p { padding: 0 0 16px; color: var(--muted); }
.faq-item[open] { border-color: var(--k-orange); }

@media (max-width: 860px) {
  .join-layout, .help-layout { grid-template-columns: 1fr; }
  .join-summary, .help-toc { position: static; }
}
/* ---------- Search and filter bars ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-bar .field { flex: 0 1 auto; }
.filter-bar .filter-search { flex: 1 1 240px; }
.filter-bar .filter-creator { flex: 1 1 220px; }
.filter-actions { display: flex; gap: 12px; align-items: center; }
input[type=search] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-height: 42px; max-width: 100%; }
.result-count { margin-top: -8px; }
.class-meta { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; margin-top: 4px; }
.class-creator { color: var(--ink); }

/* ---------- Contact form, support, About ---------- */
.contact-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.topic-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.plain-textarea { font-family: var(--font-body) !important; font-size: 1rem !important; }
.support-msg.is-done { opacity: 0.6; }
.support-text { white-space: normal; padding: 14px 16px; background: var(--surface-2); border-radius: 8px; max-width: 60em; }

.about-layout { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photo { position: relative; margin: 0; padding: 14px 14px 0 0; position: sticky; top: 90px; }
.about-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 42% 30%; border-radius: 14px; }
.about-photo .shape-brown { left: -12px; top: 50px; bottom: 90px; width: 18px; }
.about-photo .shape-gold { right: -2px; top: -2px; width: 96px; height: 96px; }
.about-photo figcaption { position: relative; z-index: 1; display: flex; flex-direction: column; margin-top: 12px; padding-left: 14px; border-left: 4px solid var(--k-orange); }
.about-photo figcaption strong { font-family: var(--font-display); font-size: 1.15rem; }
.about-photo figcaption span { color: var(--muted); font-size: 0.9rem; }
.about-text { display: flex; flex-direction: column; gap: 18px; max-width: 40em; font-size: 1.08rem; line-height: 1.65; }
.about-lead { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; font-weight: 500; color: var(--ink); }
.about-text .hero-actions { margin-top: 8px; }
.key-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.backup-key { font-family: var(--font-mono); font-size: 0.95rem; padding: 8px 12px; background: var(--surface); border-radius: 6px; word-break: break-all; user-select: all; }
.backup-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.backup-option { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 18px; background: var(--surface-2); border-radius: 10px; }
.about-subhead { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 18px; padding-top: 22px; border-top: 3px solid var(--k-gold); }
.about-linkedin { margin-top: 6px; font-weight: 700; font-size: 0.95rem; }

@media (max-width: 860px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; }
}
/* ---------- User Agreement ---------- */
.terms-text { display: flex; flex-direction: column; gap: 12px; line-height: 1.6; }
.terms-text h3 { font-size: 1.1rem; margin-top: 12px; }
.terms-text ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.terms-meta { color: var(--muted); font-size: 0.9rem; }
.terms-page { max-width: 48em; }
.agree-card { max-width: 720px; }
.terms-scroll { max-height: 46vh; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 0.92rem; }
.terms-check { align-items: flex-start; }
.terms-check span { line-height: 1.5; }
/* ---------- Homepage video ---------- */
.video-section { padding-top: clamp(16px, 3vw, 40px); }
.video-layout { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.6fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.video-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.video-copy .section-title { margin-bottom: 0; }
.video-frame { position: relative; padding: 14px 14px 0 0; min-width: 0; }
.video-frame video { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #221a15; box-shadow: 0 18px 40px rgba(34, 26, 21, 0.18); }
.video-frame .shape-gold { right: -4px; top: -4px; width: 110px; height: 110px; }
.video-frame .shape-red { right: -6px; bottom: 40px; width: 50px; height: 100px; }
.watch-link { align-self: center; font-weight: 700; color: var(--accent); text-decoration: none; }
.watch-link:hover { text-decoration: underline; }
@media (max-width: 860px) { .video-layout { grid-template-columns: 1fr; } }
/* ---------- Classroom location check ---------- */
.geo-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--info-soft); font-size: 0.95rem; line-height: 1.45; }
.geo-note > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.geo-dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 4px rgba(54, 80, 140, 0.15); }
.geo-note[data-state="ok"] { background: var(--ok-soft); }
.geo-note[data-state="ok"] .geo-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 122, 58, 0.15); }
.geo-note[data-state="failed"] { background: var(--warn-soft); }
.geo-note[data-state="failed"] .geo-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(143, 88, 0, 0.15); }
.geo-note[data-state="pending"] .geo-dot { animation: pulse 1.6s infinite; }
.geo-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.geo-line .geo-dot { margin-top: 0; background: var(--ok); }
.geo-spot { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.geo-spot form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pill-geo-far { background: var(--bad-soft); color: var(--bad); }
.pill-geo-in { background: var(--ok-soft); color: var(--ok); }
.trust-list li:nth-child(5) { border-left-color: var(--k-orange); }

/* ---------- Organizations and sharing ---------- */
.share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.share-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--surface-2); border-radius: 8px; }
.share-list li > span:first-child { flex: 1 1 220px; min-width: 0; }
.invite-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.invite-box code { font-family: var(--font-mono); font-size: 0.85rem; padding: 8px 12px; background: var(--surface-2); border-radius: 6px; word-break: break-all; user-select: all; }
.member-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.member-actions form { display: inline; }
.join-org-card { max-width: 520px; }
.group-plans { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.group-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--surface); border-radius: 14px; border: 2px solid var(--k-gold); }
@media (max-width: 860px) { .group-plans { grid-template-columns: 1fr; } }
.cta-link { color: #fff; font-weight: 700; text-decoration: underline; }

.geo-candidates { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--gold-soft); border-radius: 10px; }
.geo-candidate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface); border-radius: 8px; }
.geo-candidate-label { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.geo-or { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }.trust-list li:nth-child(6) { border-left-color: var(--k-gold); }
.privacy-summary { padding: 18px 20px; background: var(--ok-soft); border-radius: 12px; border-left: 5px solid var(--ok); display: flex; flex-direction: column; gap: 8px; }
.privacy-summary h3 { margin-top: 0; }
.privacy-table td { vertical-align: top; font-size: 0.92rem; }