/* Colors, theme and font come from brand.json: run `node scripts/brand.mjs` to change them. */
/* brand:start (generated by scripts/brand.mjs; do not edit by hand) */
:root {
  color-scheme: light;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand: #0f766e;
  --accent: #f59e0b;
  --on-brand: #ffffff;
  --brand-600: #0e6a63;
  --brand-50: #e7f1f1;
  --brand-100: #cfe4e2;
  --brand-ink: #0f766e;
  --ink: #17212b;
  --ink-2: #4b5866;
  --muted: #6b7785;
  --faint: #9aa4ae;
  --line: #e2e6ea;
  --field-line: #cfd5db;
  --bg: #f6f7f8;
  --card: #ffffff;
  --subtle: #fafbfc;
  --chip-bg: #eef0f3;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-line: #fecdca;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --ok-line: #abefc6;
  --warn: #93370d;
  --warn-bg: #fffaeb;
  --warn-line: #fedf89;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 24px rgba(16, 24, 40, 0.08);
}
/* brand:end */
:root {
  font-family: var(--font);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
h1, h2, h3 { margin: 0 0 0.4em; line-height: 1.25; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
.small { font-size: 0.85rem; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.error { color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-line); padding: 8px 12px; border-radius: 8px; }
.ok { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line); padding: 8px 12px; border-radius: 8px; }
.warn { color: var(--warn); }
.strike { text-decoration: line-through; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.spinner { width: 28px; height: 28px; margin: 48px auto; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-center { min-height: 100vh; display: grid; place-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; font-weight: 600; background: var(--card); color: var(--ink); text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary:hover:not(:disabled) { background: var(--brand-600); }
.btn.primary:disabled { opacity: 0.6; }
.btn.outline { border-color: var(--line); background: var(--card); }
.btn.outline:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn.danger-solid { background: var(--danger); color: var(--card); }
.btn.small { padding: 5px 10px; font-size: 0.85rem; }
.btn.pill { border-radius: 999px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px; color: var(--ink-2); }
.icon-btn:hover:not(:disabled) { background: var(--brand-50); color: var(--brand-ink); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.round:not(:disabled) { color: var(--brand-ink); background: var(--brand-50); }
.icon-btn:disabled { opacity: 0.35; }
.link-btn { background: none; border: 0; color: var(--brand-ink); padding: 0; font-weight: 600; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-input { width: 110px; border: 1px dashed var(--line); border-radius: 999px; padding: 5px 10px; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--chip-bg); color: var(--ink-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.seg { align-self: flex-start; display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 4px 10px; font-size: 0.8rem; }
.seg button.on { background: var(--brand-50); color: var(--brand-ink); font-weight: 700; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 0.88rem; }
.field.inline { flex-direction: row; align-items: center; gap: 12px; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), .field select, .field textarea, .search, .question-row input:not([type="checkbox"]), .question-row select {
  border: 1px solid var(--field-line); border-radius: 8px; padding: 9px 11px; background: var(--card); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-100); border-color: var(--brand); }
.check { display: flex; align-items: center; gap: 6px; }
.prefix-input > span { white-space: nowrap; }
.prefix-input { display: flex; align-items: center; border: 1px solid var(--field-line); border-radius: 8px; padding-left: 10px; }
.prefix-input input { border: 0 !important; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- public booking ---------- */
.public-bg { min-height: 100vh; background: linear-gradient(180deg, var(--brand-50), var(--bg) 280px); padding: 48px 16px; }
/* clip, not just hidden: focusing a field (or the browser showing a validation bubble) must not scroll the card sideways,
   which would cut off the left column. */
.booking { position: relative; overflow: hidden; overflow: clip; display: grid; grid-template-columns: 330px minmax(0, 1fr); max-width: 820px; margin: 0 auto; min-height: 560px; transition: max-width 0.2s; }
.booking.with-times { grid-template-columns: 330px minmax(0, 1fr) 250px; max-width: 1060px; }
.booking.with-form { grid-template-columns: 330px minmax(0, 1fr); max-width: 900px; }
.booking-info { padding: 28px 24px; border-right: 1px solid var(--line); position: relative; }
.booking-info .back { position: absolute; top: 18px; left: 16px; color: var(--brand-ink); border: 1px solid var(--line); border-radius: 50%; }
.booking-info .avatar { margin-top: 24px; }
.owner-name { color: var(--muted); font-weight: 600; margin: 14px 0 4px; }
.event-name { font-size: 1.6rem; margin-bottom: 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); font-weight: 600; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts li svg { flex: none; margin-top: 1px; color: var(--muted); }
.fact-strong { color: var(--brand-ink); }
.description { white-space: pre-wrap; color: var(--ink-2); }
.durations { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.former { border-top: 1px solid var(--line); padding-top: 12px; }
.booking-cal { padding: 28px 28px; }
.booking-cal h2 { font-size: 1.2rem; margin-bottom: 18px; }
.month { width: 100%; max-width: 420px; }
.month-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 14px; }
.month-title { min-width: 150px; text-align: center; font-weight: 500; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.weekdays span { font-size: 0.72rem; color: var(--muted); font-weight: 600; padding: 6px 0; }
.day { aspect-ratio: 1; width: 100%; max-width: 48px; justify-self: center; border-radius: 50%; border: 0; background: transparent; color: var(--faint); font-size: 0.95rem; position: relative; }
.day.empty { visibility: hidden; }
.day.avail { background: var(--brand-50); color: var(--brand-ink); font-weight: 700; }
.day.avail:hover { background: var(--brand-100); }
.day.sel { background: var(--brand) !important; color: var(--on-brand) !important; }
.day.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.tz-row { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.tz-select-wrap { display: flex; align-items: center; gap: 8px; }
.tz-select-wrap select { border: 0; background: transparent; padding: 6px 0; max-width: 100%; font-weight: 500; }
.no-avail { margin-top: 12px; }
.booking-times { padding: 28px 18px 28px 6px; max-height: 640px; overflow: auto; }
.booking-times h3 { font-weight: 500; margin: 34px 0 18px; }
.times { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.time-btn { width: 100%; padding: 13px 0; border: 1px solid var(--brand); color: var(--brand-ink); background: var(--card); border-radius: 8px; font-weight: 700; }
.time-btn:hover { border-width: 2px; padding: 12px 0; }
.time-confirm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-picked { display: grid; place-items: center; background: #59636e; color: #fff; border-radius: 8px; font-weight: 700; padding: 13px 0; }
.time-confirm .btn { justify-content: center; }
.booking-form { padding: 28px; max-width: 520px; }
.brand-footer { text-align: center; margin: 14px auto 0; font-size: 0.8rem; }
.brand-footer a { color: var(--ink-2); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-100); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.avatar.sm { width: 34px; height: 34px; font-size: 0.8rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; margin: 0 auto 10px; }
.landing { max-width: 820px; margin: 0 auto; padding: 36px; position: relative; overflow: hidden; overflow: clip; }
.landing-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.landing-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.landing-item { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.landing-item:hover { border-color: var(--brand); text-decoration: none; background: var(--brand-50); }
.landing-item .dot { grid-row: span 2; margin-top: 6px; }
.landing-item svg { grid-row: 1 / span 2; grid-column: 3; align-self: center; color: var(--muted); }
.landing-name { font-weight: 700; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.notfound { max-width: 520px; margin: 60px auto; padding: 36px; text-align: center; }
.confirm { max-width: 640px; margin: 0 auto; padding: 40px; text-align: center; position: relative; overflow: hidden; overflow: clip; }
.confirm-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: var(--card); display: grid; place-items: center; margin: 0 auto 12px; }
.confirm-badge.off { background: var(--danger); }
.confirm-box { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; margin: 22px 0; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cancel-form { text-align: left; margin-top: 20px; }

/* ---------- auth ---------- */
.auth-bg { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-50), var(--card)); padding: 24px; }
.auth { width: 100%; max-width: 420px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- owner shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--card); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; }
.side-logo { padding: 4px 8px; }
.side-logo:hover { text-decoration: none; }
.create { justify-content: center; border: 1px solid var(--brand); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.nav-item:hover { background: var(--bg); text-decoration: none; }
.nav-item.active { background: var(--brand-50); color: var(--brand-ink); }
.main { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px 6px; }
.topbar h1 { font-size: 1.6rem; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.avatar-btn { border: 0; background: transparent; padding: 0; border-radius: 50%; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 42px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 220px; z-index: 20; display: flex; flex-direction: column; padding: 6px; }
.menu-head { display: flex; flex-direction: column; padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu a, .menu button { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; color: var(--ink); }
.menu a:hover, .menu button:hover { background: var(--bg); text-decoration: none; }
.content { padding: 12px 32px 48px; max-width: 1180px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { padding: 10px 0; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tab:hover { text-decoration: none; color: var(--brand-ink); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.search { max-width: 320px; }
.owner-row { display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.owner-row > div { flex: 1; }
.et-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.et-card { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--brand); border-radius: var(--radius); padding: 14px 18px 0; display: flex; flex-direction: column; gap: 4px; position: relative; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.et-card.off { opacity: 0.65; }
.et-card .badge { position: absolute; top: 18px; right: 56px; }
.et-top { display: flex; justify-content: space-between; align-items: center; }
.et-name { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-top: 6px; }
.et-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin: 14px -18px 0; padding: 12px 18px; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--field-line); border-radius: 999px; transition: 0.15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: 0.15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.editor-form .panel { margin: 0; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.preview { padding: 24px; position: sticky; top: 20px; }
.question-row { display: grid; grid-template-columns: 2fr 1fr 2fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.schedule-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.tz-field { min-width: 280px; }
.schedule-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.weekly h3, .date-specific h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.day-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; }
.day-letter { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--card); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.intervals { display: flex; flex-direction: column; gap: 8px; min-height: 32px; justify-content: center; }
.interval { display: flex; align-items: center; gap: 8px; }
.interval input { border: 1px solid var(--field-line); border-radius: 8px; padding: 6px 8px; width: 120px; }
.unavailable { padding: 6px 0; }
.day-actions { display: flex; }
.overrides { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.overrides li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 12px; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0; display: flex; justify-content: flex-end; }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: 100%; max-width: 460px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.meetings { display: flex; flex-direction: column; gap: 18px; }
.meeting-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.group-head { background: var(--subtle); border-bottom: 1px solid var(--line); padding: 12px 20px; margin: 0; font-size: 0.95rem; }
.meeting-group ul { list-style: none; padding: 0; margin: 0; }
.meeting { border-bottom: 1px solid var(--line); }
.meeting:last-child { border-bottom: 0; }
.meeting.cancelled .meeting-time, .meeting.cancelled strong { text-decoration: line-through; color: var(--muted); }
.meeting-row { display: grid; grid-template-columns: 16px 170px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 20px; }
.meeting-who { display: flex; flex-direction: column; }
.meeting-details { padding: 0 20px 16px 50px; }
.meeting-details dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 0.9rem; }
.meeting-details dt { color: var(--muted); }
.meeting-details dd { margin: 0; word-break: break-word; }
.empty { text-align: center; color: var(--muted); padding: 48px; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.int-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.int-head { display: flex; gap: 10px; align-items: center; }
.int-head h2 { margin: 0; flex: 1; }
.conn { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.mock-form { border-top: 1px dashed var(--line); padding-top: 12px; }
.mock-list { margin: 0; padding-left: 18px; }
.table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.table tr.revoked { color: var(--muted); }
.token-form { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.new-token { margin-top: 12px; padding: 12px; background: var(--brand-50); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.new-token p { width: 100%; margin: 0; }
.new-token code { word-break: break-all; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .booking, .booking.with-times, .booking.with-form { grid-template-columns: 1fr; max-width: 520px; }
  .booking-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .booking-times { padding: 0 24px 28px; max-height: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .editor, .schedule-cols, .grid3 { grid-template-columns: 1fr; }
  .landing-grid { grid-template-columns: 1fr; }
  .meeting-row { grid-template-columns: 16px 1fr auto; }
  .meeting-row .meeting-who { grid-column: 2 / span 2; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
}

/* Long names, banners, schedules, meetings */
.event-name, .et-name, .landing-name, .owner-name, .confirm-box h2, .meeting-who strong, .booking-info h1, .preview h3, .facts li span { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.booking-info, .booking-cal, .booking-times, .booking-form { min-width: 0; }
.banner { margin: 8px 32px 0; padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); font-size: 0.9rem; }
.banner a { font-weight: 700; }
.schedule-head { flex-wrap: wrap; }
.schedule-pick { display: flex; align-items: flex-end; gap: 10px; }
.delete-schedule { margin-top: 16px; }
.range-form { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.meeting-actions { display: flex; gap: 8px; }
.load-more { align-self: center; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow: auto; }
.modal h2 { font-size: 1.1rem; }
.modal-actions { flex-wrap: wrap; }

/* public site pages (/, /static/privacy, /static/terms) and policy links */
.policy-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; }
.policy-links a { color: var(--muted); }
.site-page { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--brand-50), var(--bg) 280px); }
.site-header, .site-main, .site-footer { width: 100%; max-width: 920px; margin: 0 auto; padding: 20px 24px; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-header .logo:hover { text-decoration: none; }
.site-main { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.site-hero, .site-doc { padding: 32px 36px; }
.site-hero h1 { font-size: 2rem; }
.site-hero p, .site-doc p { color: var(--ink-2); }
.site-doc h2 { margin-top: 1.6em; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); font-size: 0.85rem; }
.template-note { padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); font-size: 0.9rem; }
@media (max-width: 620px) {
  .site-hero, .site-doc { padding: 24px 18px; }
}
