/* Slotwise design tokens and shared components */
:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --surface-3: #e8ebf3;
  --text: #0f1729;
  --muted: #667085;
  --border: rgba(16, 24, 40, 0.09);
  --border-strong: rgba(16, 24, 40, 0.18);

  --c: #6366f1;
  --accent: var(--c);
  --on-accent: #fff;
  --danger: #e5484d;
  --ok: #12b76a;
  --warn: #f79009;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -16px rgba(16, 24, 40, 0.18);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 30px 70px -30px rgba(16, 24, 40, 0.35);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c12;
    --surface: #12151d;
    --surface-2: #181c27;
    --surface-3: #202533;
    --text: #e8eaf2;
    --muted: #8c94a8;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "tnum";
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.1rem; font-weight: 650; }
h3 { font-size: 0.95rem; font-weight: 600; }
p { margin: 0.35rem 0 0; }
.muted { color: var(--muted); }
code, .link-code { font-family: var(--mono); font-size: 0.85em; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Aurora background for public and auth pages */
.aurora {
  min-height: 100dvh;
  background:
    radial-gradient(60% 50% at 10% 0%, color-mix(in oklab, var(--c) 22%, transparent), transparent 70%),
    radial-gradient(50% 40% at 100% 10%, color-mix(in oklab, #22d3ee 18%, transparent), transparent 70%),
    radial-gradient(60% 60% at 50% 110%, color-mix(in oklab, #f472b6 14%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.centered { display: grid; place-items: center; padding: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.92rem;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-decoration: none; white-space: nowrap; line-height: 1.2;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn.primary:hover { background: color-mix(in oklab, var(--accent) 88%, black); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: 7px 12px; font-size: 0.85rem; }
.btn.wide { width: 100%; }
.btn.danger-ghost { color: var(--danger); border-color: transparent; background: transparent; }
.btn.danger-ghost:hover { background: color-mix(in oklab, var(--danger) 10%, transparent); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: 0.88rem; }
.field small { font-size: 0.8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="color"])), select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
textarea { resize: vertical; min-height: 72px; }
input[type="color"] { width: 44px; height: 40px; padding: 2px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); }
input[type="time"], input[type="date"] { width: auto; min-width: 150px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.input-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); color: var(--muted); font-size: 0.85rem; white-space: nowrap; border-right: 1px solid var(--border); }
.input-prefix input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }

.switch-field { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; margin-bottom: 14px; }
.switch-field input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background 0.2s; border: 1px solid var(--border); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--spring); }
.switch-field input:checked + .switch { background: var(--accent); border-color: transparent; }
.switch-field input:checked + .switch::after { transform: translateX(16px); }
.switch-field input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }

.radio-cards { display: grid; gap: 10px; margin-bottom: 14px; }
.radio-cards label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.radio-cards label:has(input:checked) { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 7%, var(--surface)); }
.radio-cards input { margin-top: 4px; accent-color: var(--accent); }
.radio-cards span { display: flex; flex-direction: column; gap: 2px; }
.radio-cards small { color: var(--muted); }

.check-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; }
.check-list label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); }
.check-list label:hover { background: var(--surface-2); }
.check-list input { accent-color: var(--accent); width: 16px; height: 16px; }

/* Pills, badges, callouts */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: color-mix(in oklab, var(--c) 14%, transparent); color: color-mix(in oklab, var(--c) 80%, var(--text)); white-space: nowrap; }
.pill.grey { background: var(--surface-3); color: var(--muted); }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin: 10px 0; }
.alert.err { background: color-mix(in oklab, var(--danger) 12%, transparent); color: var(--danger); }
.callout { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 12px 16px; border-radius: var(--radius); background: color-mix(in oklab, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent); margin-bottom: 16px; font-size: 0.92rem; }
.callout.warn { background: color-mix(in oklab, var(--warn) 12%, var(--surface)); border-color: color-mix(in oklab, var(--warn) 35%, transparent); }
.callout a { font-weight: 600; margin-left: auto; }
.toast { padding: 11px 16px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; margin-bottom: 16px; animation: toast-in 0.4s var(--spring); border: 1px solid transparent; }
.toast.ok { background: color-mix(in oklab, var(--ok) 14%, var(--surface)); color: color-mix(in oklab, var(--ok) 70%, var(--text)); border-color: color-mix(in oklab, var(--ok) 30%, transparent); }
.toast.err { background: color-mix(in oklab, var(--danger) 12%, var(--surface)); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 30%, transparent); }
.toast.floating { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; box-shadow: var(--shadow-lg); background: var(--text); color: var(--bg); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
.toast.floating { animation: toast-up 0.4s var(--spring); }
@keyframes toast-up { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.row { display: flex; align-items: center; }
.row.gap { gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.top-gap { margin-top: 14px; }

.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-3); gap: 2px; }
.segmented > * { padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: background 0.15s, color 0.15s; }
.segmented > .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented > *:hover { text-decoration: none; color: var(--text); }
.segmented.tiny > * { padding: 4px 10px; font-size: 0.75rem; }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: color-mix(in oklab, var(--c) 18%, var(--surface)); color: color-mix(in oklab, var(--c) 80%, var(--text)); font-weight: 700; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar.xl { width: 88px; height: 88px; font-size: 1.8rem; }
.avatar-fallback { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 20%, var(--surface)); color: var(--accent); font-weight: 700; font-size: 0.8rem; }

.brand-mark { display: inline-block; width: 28px; height: 28px; border-radius: 9px; background: conic-gradient(from 210deg, #6366f1, #22d3ee, #f472b6, #6366f1); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.brand-mark.lg { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 16px; }
.brand-mark.lg::after { inset: 15px; }
.brand-logo { height: 28px; width: auto; }

/* Auth / small centered cards */
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px 32px; text-align: center; animation: rise 0.5s var(--spring); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .btn { margin-top: 20px; }
.auth-logo { height: 48px; width: auto; margin: 0 auto 16px; }
.fineprint { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.status-code { font-size: 3rem; font-weight: 800; color: var(--surface-3); letter-spacing: -0.05em; line-height: 1; margin-bottom: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* App shell */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 20px 16px; border-right: 1px solid var(--border); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.05rem; color: var(--text); padding: 6px 10px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 560; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: color-mix(in oklab, var(--accent) 12%, var(--surface)); color: var(--accent); }
.nav svg { width: 18px; height: 18px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.public-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 0.78rem; overflow: hidden; }
.public-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-link:hover { color: var(--text); text-decoration: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--border); }
.user-chip img { width: 34px; height: 34px; border-radius: 50%; }
.user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.user-meta strong { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 36px 40px 60px; max-width: 1080px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.back { font-size: 0.85rem; color: var(--muted); display: inline-block; margin-bottom: 6px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.card > h2 { margin-bottom: 14px; }
.form-grid { display: grid; gap: 18px; max-width: 760px; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.danger-zone { max-width: 760px; margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border: 1px dashed color-mix(in oklab, var(--danger) 40%, transparent); border-radius: var(--radius-lg); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s; position: relative; overflow: hidden; }
.event-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event-card.disabled { opacity: 0.65; }
.event-card-top { display: flex; align-items: center; gap: 10px; }
.event-card h2 a { color: var(--text); }
.color-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.event-desc { font-size: 0.9rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 1.4em; }
.event-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.event-card-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.link-code { color: var(--muted); }

.booking-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.booking-item { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 18px; box-shadow: var(--shadow-sm); }
.booking-item.cancelled { opacity: 0.6; }
.date-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 64px; border-radius: var(--radius); background: color-mix(in oklab, var(--c) 12%, var(--surface)); color: color-mix(in oklab, var(--c) 85%, var(--text)); line-height: 1; }
.date-badge .dow { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.date-badge .day { font-size: 1.5rem; font-weight: 800; margin: 2px 0; }
.date-badge .mon { font-size: 0.7rem; font-weight: 600; }
.booking-body { min-width: 0; }
.booking-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.booking-meta { display: flex; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.booking-notes { font-size: 0.85rem; color: var(--muted); margin-top: 6px; white-space: pre-line; }
.booking-actions { display: flex; gap: 6px; align-items: center; }

.empty { text-align: center; padding: 60px 20px; }
.empty-art { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 36px; background: conic-gradient(from 180deg, color-mix(in oklab, var(--accent) 25%, transparent), color-mix(in oklab, #22d3ee 25%, transparent), color-mix(in oklab, #f472b6 25%, transparent), color-mix(in oklab, var(--accent) 25%, transparent)); filter: blur(0.5px); }
.empty .btn { margin-top: 16px; }

.connected { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 20%, transparent); }
.status-dot.bad { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in oklab, var(--danger) 20%, transparent); }
.danger-text { color: var(--danger); font-style: normal; }

/* External calendar sources */
.source-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.source { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface-2); }
.source-head { display: flex; align-items: flex-start; gap: 12px; }
.source-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.source-meta span { font-size: 0.85rem; }
.source-calendars { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.source-calendars .check-list { margin-top: 0; }
.add-heading { margin-top: 18px; margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.empty-hint { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); margin-top: 10px; }
.add-sources { display: flex; flex-direction: column; gap: 8px; }
.add-body { padding: 0 0 14px; }
.add-body .btn { margin-top: 10px; }
.add-source form > p { margin: 0 0 12px; font-size: 0.88rem; }
.add-source { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 0 14px; }
.add-source summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.add-source summary::-webkit-details-marker { display: none; }
.add-source summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); font-weight: 700; transition: transform 0.2s; }
.add-source[open] summary::before { transform: rotate(45deg); }
.add-source form { padding: 4px 0 14px; }

/* Availability editor */
.weekly { display: flex; flex-direction: column; }
.day-row { display: grid; grid-template-columns: 130px auto auto; justify-content: start; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.day-row:last-child { border-bottom: 0; }
.day-row .day-name { display: flex; align-items: center; gap: 10px; font-weight: 600; padding-top: 6px; }
.ranges { display: flex; flex-direction: column; gap: 8px; }
.range { display: flex; align-items: center; gap: 8px; }
.range input[type="time"] { width: 128px; }
.range span { color: var(--muted); }
.range .icon-btn { width: 30px; height: 30px; }
.day-row .closed { color: var(--muted); padding-top: 8px; font-size: 0.9rem; }
.overrides { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.override { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.override strong { padding-top: 6px; display: block; }

/* Public profile */
.profile { width: min(560px, 100%); margin: 0 auto; padding: 60px 20px; }
.profile-head { text-align: center; margin-bottom: 28px; }
.profile-head .avatar { margin: 0 auto 14px; }
.profile-head h1 { font-size: 1.7rem; }
.profile-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.profile-events a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.profile-events a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.profile-events .color-bar { width: 6px; align-self: stretch; border-radius: 4px; background: var(--c); }
.profile-event-body { display: flex; flex-direction: column; flex: 1; }
.profile-events svg { color: var(--muted); }
.powered { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 28px; }
.powered a { color: inherit; font-weight: 600; }

/* Manage page */
.manage { text-align: center; }
.manage .avatar { margin: 0 auto 12px; }
.manage h1 { margin-bottom: 14px; }
.done-card { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 18px; border-radius: var(--radius-lg); background: var(--surface-2); margin: 16px 0; }
.done-card strong { font-size: 1.25rem; }
.done-card .btn { margin-top: 12px; }
.done-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bk-error { color: var(--danger); font-size: 0.9rem; margin: 10px 0; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--danger) 10%, transparent); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--border); }
  .nav { flex-direction: row; margin: 0; flex: 1; overflow-x: auto; }
  .nav a { padding: 8px 10px; font-size: 0.88rem; white-space: nowrap; }
  .sidebar-foot { flex-direction: row; margin: 0; width: 100%; }
  .public-link { flex: 1; }
  .user-meta { display: none; }
  .content { padding: 22px 16px 48px; }
  .field-row { grid-template-columns: 1fr; }
  .booking-item { grid-template-columns: auto 1fr; }
  .booking-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .day-row, .override { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
