/* Cortext V2 neutral theme, type, and focus tokens. */
@font-face {
  font-family: Sora;
  src: url("/assets/Sora-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --brand: #000000;
  --on-brand: #ffffff;
  --brand-600: #333333;
  --brand-50: oklch(0.975 0 0);
  --brand-100: #e5e5e5;
  --ink: #000000;
  --ink-2: #48484a;
  --muted: #48484a;
  --line: oklch(0.905 0 0);
  --field-focus: oklch(0.72 0 0);
  --bg: #ffffff;
  --card: #ffffff;
  --danger: oklch(0.48 0.19 27);
  --danger-bg: oklch(0.975 0.014 22);
  --danger-line: oklch(0.89 0.055 22);
  --ok: oklch(0.43 0.135 145);
  --ok-bg: oklch(0.97 0.025 145);
  --ok-line: oklch(0.89 0.06 145);
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 6px 24px rgb(0 0 0 / 5%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: Sora, system-ui, sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #d4d4d4;
    --on-brand: oklch(0.145 0 0);
    --brand-600: #f0f0f0;
    --brand-50: oklch(0.187 0 0);
    --brand-100: #404040;
    --ink: oklch(0.975 0 0);
    --ink-2: #c7c7cc;
    --muted: #c7c7cc;
    --line: oklch(0.25 0 0);
    --field-focus: oklch(0.46 0 0);
    --bg: oklch(0.145 0 0);
    --card: oklch(0.145 0 0);
    --danger: oklch(0.76 0.14 22);
    --danger-bg: oklch(0.23 0.03 22);
    --danger-line: oklch(0.38 0.075 22);
    --ok: oklch(0.76 0.14 145);
    --ok-bg: oklch(0.23 0.03 145);
    --ok-line: oklch(0.38 0.075 145);
    --shadow: 0 1px 2px rgb(0 0 0 / 20%), 0 6px 24px rgb(0 0 0 / 20%);
  }
}
* { 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); 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(--danger); }
.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); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn.danger-solid { background: var(--danger); color: var(--bg); }
.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); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.round:not(:disabled) { color: var(--brand); background: var(--brand-50); }
.icon-btn:disabled { opacity: 0.35; }
.link-btn { background: none; border: 0; color: var(--brand); 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(--brand-50); 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); 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(--line); border-radius: 8px; padding: 9px 11px; background: var(--card); width: 100%;
}
.field :is(input, select, textarea):focus { border-color: var(--field-focus); }
.field :is(input, select, textarea):focus:not(:focus-visible) { outline: none; }
.prefix-input:focus-within { border-color: var(--field-focus); }
.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(--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: 650; font-size: 1rem; color: var(--ink); letter-spacing: -0.025em; }
.logo img { flex: none; }

/* ---------- public booking ---------- */
.public-bg { min-height: 100vh; background: var(--brand-50); padding: 48px 16px; }
.booking { position: relative; overflow: hidden; display: grid; grid-template-columns: 330px minmax(0, 1fr); max-width: 820px; margin: 0 auto; min-height: 560px; }
.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); 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); }
.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(--muted); font-size: 0.95rem; position: relative; }
.day.empty { visibility: hidden; }
.day.avail { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.day.avail:hover { background: var(--brand-100); }
.day:disabled { opacity: 0.48; }
.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); background: var(--card); border-radius: 8px; font-weight: 700; }
.time-btn:hover { background: var(--brand-50); }
.time-confirm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-picked { display: grid; place-items: center; background: var(--brand); color: var(--on-brand); border-radius: 8px; font-weight: 700; padding: 13px 0; }
.time-confirm .btn { justify-content: center; }
.booking-form { padding: 28px; max-width: 520px; }
.public-brand { display: flex; justify-content: space-between; align-items: center; width: min(100%, 1060px); margin: 0 auto 20px; gap: 12px; }
.public-brand .logo { font-size: 0.85rem; }
.public-brand > a:last-child { color: var(--muted); font-size: 0.78rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-100); color: var(--brand); 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; }
.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; }
.confirm-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.confirm-badge.off { background: var(--danger-bg); color: 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: var(--brand-50); 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(--brand-50); border-right: 1px solid var(--line); padding: 20px 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-100); color: var(--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); border-bottom-color: var(--brand); }
.tab:hover { text-decoration: none; color: var(--brand); }
.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-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(--brand-100); border-radius: 999px; transition: 0.15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--on-brand); 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(--brand); color: var(--on-brand); 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(--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: rgb(0 0 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(--brand-50); 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(--brand); color: var(--on-brand); 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; }
}

/* round 2 */
.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(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger); 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; }

/* Shared brand and page treatment. */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn { justify-content: center; min-height: 40px; }
.btn.small { min-height: 34px; }
.content, .booking, .landing, .confirm, .auth, .booking-times, .booking-form, .menu, .modal, .site-hero, .site-document {
  animation: cortext-enter 0.2s var(--ease) both;
}
@keyframes cortext-enter {
  from { opacity: 0; translate: 0 4px; }
  to { opacity: 1; translate: 0 0; }
}
.btn, .icon-btn, .chip, .day, .time-btn, .nav-item, .tab, .landing-item, .menu a, .menu button {
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.et-card { transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.et-card:hover, .et-card:focus-within { border-color: var(--field-focus); box-shadow: var(--shadow); }
.auth .policy-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.78rem; }
.policy-links a { color: var(--muted); }
.sidebar nav .nav-item { min-height: 40px; }
.switch input:not(:checked) + span::after { background: var(--card); }
.panel > :last-child { margin-bottom: 0; }
.site-page { min-height: 100svh; display: flex; flex-direction: column; }
.site-header, .site-footer { width: min(100%, 1120px); margin-inline: auto; padding: 24px clamp(20px, 4vw, 48px); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-hero { width: min(100%, 1120px); margin: auto; padding: clamp(52px, 10vw, 132px) clamp(20px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 84px); align-items: end; }
.site-hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1.08; letter-spacing: -0.05em; max-width: 17ch; }
.site-hero p { color: var(--muted); max-width: 46ch; }
.site-hero-copy > p { font-size: clamp(1rem, 2vw, 1.18rem); margin: 20px 0 26px; }
.site-calendar-card { border: 1px solid var(--line); background: var(--brand-50); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.site-calendar-card a, .site-document a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); font-size: 0.85rem; }
.site-document { width: min(100%, 760px); margin: 0 auto; padding: clamp(28px, 6vw, 68px) clamp(20px, 4vw, 48px); overflow-wrap: anywhere; }
.site-document h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.05em; }
.site-document h2 { margin-top: 2em; }

@media (max-width: 900px) {
  .public-brand { max-width: 520px; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { width: 100%; gap: 4px; }
}
@media (max-width: 620px) {
  .site-hero { grid-template-columns: 1fr; margin-block: 0; padding-block: 56px; }
  .site-header .btn { font-size: 0.78rem; padding-inline: 10px; }
  .site-header .logo { font-size: 0.88rem; }
  .public-bg { padding: 20px 12px; }
  .confirm, .landing { padding: 24px 18px; }
  .booking-cal, .booking-form { padding: 22px 16px; }
  .int-grid, .et-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding-inline: 14px; }
  .topbar, .toolbar, .range-form, .topbar-right { flex-wrap: wrap; }
  .tabs { flex-wrap: wrap; column-gap: 14px; row-gap: 0; }
  .interval { flex-wrap: wrap; }
  .tz-field { min-width: 0; }
}
@media (any-pointer: coarse) {
  input, select, textarea { font-size: max(1em, 16px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
