/* Freecita — clean, modern, Material-inspired UI */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eef2fa;
  --text: #1f2329;
  --muted: #5f6368;
  --line: #e3e6ee;
  --line-strong: #c9ceda;
  --primary: #2f6bff;
  --primary-hover: #1f58e8;
  --primary-ink: #ffffff;
  --primary-soft: #e8efff;
  --accent: #ffb020;
  --ok: #188038;
  --ok-soft: #e6f4ea;
  --danger: #d93025;
  --danger-soft: #fce8e6;
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgba(60, 64, 67, .12), 0 1px 3px 1px rgba(60, 64, 67, .06);
  --shadow-2: 0 2px 6px rgba(60, 64, 67, .12), 0 8px 24px rgba(60, 64, 67, .08);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1b1f27;
    --surface-3: #232834;
    --text: #e8eaed;
    --muted: #9aa0a6;
    --line: #2a2f3a;
    --line-strong: #3a4150;
    --primary: #7aa2ff;
    --primary-hover: #93b4ff;
    --primary-ink: #0b1020;
    --primary-soft: #1c2a4d;
    --ok: #81c995;
    --ok-soft: #1e3326;
    --danger: #f28b82;
    --danger-soft: #3b2220;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 4px 16px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-3); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.pre { white-space: pre-line; }
.spacer { flex: 1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.wordmark { font-weight: 700; font-size: 1.4rem; letter-spacing: -.04em; color: var(--text); }
.wordmark > span { color: var(--primary); }
.wordmark-xl { font-size: clamp(2.8rem, 7vw, 4.4rem); }
.wordmark-sm { font-size: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font); padding: 12px 22px; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background .15s, box-shadow .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-1); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); border-color: var(--primary-soft); }
.btn-text { background: transparent; color: var(--primary); padding-inline: 14px; }
.btn-text:hover { background: var(--primary-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.95); box-shadow: var(--shadow-1); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; color: var(--text); text-decoration: none !important; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn.disabled { color: var(--line-strong); }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: .875rem; font-weight: 500; color: var(--muted); }
.field small { color: var(--muted); font-size: .8rem; }
.grow { flex: 1; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s; min-height: 48px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
input:disabled { background: var(--surface-2); color: var(--muted); }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.input-prefix > span { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--muted); background: var(--surface-2); white-space: nowrap; font-size: .95rem; border-right: 1px solid var(--line); padding-right: 10px; }
.input-prefix input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.row-2, .row-3 { display: flex; gap: 16px; flex-wrap: wrap; }
.row-2 > *, .row-3 > * { flex: 1 1 200px; }
.row-3 > .field:not(.grow) { flex: 0 1 200px; }
.align-end { align-items: flex-end; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- flash ---------- */
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--danger-soft); color: var(--danger); }

/* ---------- site header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a { color: var(--muted); padding: 8px 14px; border-radius: var(--pill); font-weight: 500; font-size: .95rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--surface-3); color: var(--text); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 48px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a:not(.logo) { display: block; color: var(--text); padding: 4px 0; font-size: .95rem; }
.footer-brand p { color: var(--muted); max-width: 280px; margin-top: 12px; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- home ---------- */
.hero { text-align: center; padding: clamp(48px, 9vh, 110px) 20px 56px; max-width: 860px; margin: 0 auto; }
.hero-brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-brand .logo-mark { width: clamp(52px, 9vw, 76px); height: auto; }
.hero-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 600; margin-bottom: 12px; }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.search-box {
  display: flex; align-items: center; gap: 8px; max-width: 600px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--pill);
  padding: 6px 6px 6px 20px; box-shadow: var(--shadow-1); transition: box-shadow .2s, border-color .2s;
}
.search-box:hover, .search-box:focus-within { box-shadow: var(--shadow-2); border-color: transparent; }
.search-box svg { width: 22px; height: 22px; fill: var(--muted); flex: none; }
.search-box input { border: 0 !important; box-shadow: none !important; padding: 10px 6px !important; font-size: 1.05rem; background: transparent !important; min-height: 44px; }
.hero-note { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--pill); font-size: .9rem; color: var(--muted); background: var(--surface); }
.chips-center { margin: 24px 0 32px; }

.section { padding: 72px 0; }
.section-tight { padding: 24px 0 64px; }
.section-alt { background: var(--surface-2); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 28px; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.grid-2, .grid-3 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card-link { color: var(--text); text-decoration: none !important; transition: box-shadow .2s, border-color .2s; }
.card-link:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.card-link .link { color: var(--primary); font-weight: 500; }
.step { position: relative; padding-top: 28px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; margin-bottom: 14px; }
.step p, .feature p { color: var(--muted); }
.feature { padding: 8px 4px; }
.ficon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-3); font-size: 1.4rem; margin-bottom: 14px; }
.feature-rows h2 { font-size: 1.15rem; }
.feature-rows p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 6px 0 6px 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.cta { background: linear-gradient(180deg, var(--bg), var(--primary-soft)); }

.mock { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-2); padding: 22px; max-width: 380px; justify-self: center; width: 100%; border: 1px solid var(--line); }
.mock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mock-head small { display: block; color: var(--muted); }
.mock-service { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; margin-bottom: 14px; font-size: .95rem; }
.mock-service span { color: var(--muted); }
.mock-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.mock-days span, .mock-slots span { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 0; font-weight: 600; font-size: .95rem; }
.mock-days small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.mock-days .on, .mock-slots .on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.mock-days .on small { color: inherit; opacity: .85; }
.mock-days .off { opacity: .35; }
.mock-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.mock-slots span { color: var(--primary); font-size: .9rem; }
.mock-btn { background: var(--primary); color: var(--primary-ink); text-align: center; border-radius: var(--pill); padding: 12px; font-weight: 600; }

/* ---------- content pages ---------- */
.page-hero { padding: 64px 0 32px; }
.page-hero h1 { margin-bottom: 14px; }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 2em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.company-card { margin: 32px 0; }
.narrow-card { max-width: 560px; margin: 24px auto 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv-lg dd { font-weight: 500; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 16px 0; }
.table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--surface-2); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: 56px 20px; min-height: calc(100vh - 68px - 260px); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px 32px; }
.auth-card-wide { max-width: 600px; }
.auth-card .logo-mark { width: 48px; height: 48px; margin-bottom: 12px; }
.auth-card h1 { font-size: 1.6rem; }
.big-icon { font-size: 3rem; line-height: 1; margin-bottom: 16px; }
.tip { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; color: var(--muted); margin: 20px 0; }
.error-code { font-size: 4rem; font-weight: 700; color: var(--primary); margin: 0; letter-spacing: -.04em; }

/* ---------- app (dashboard) ---------- */
.layout-app { background: var(--surface-2); }
.app-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-header-row { padding: 0 20px; height: 64px; }
.app-shell { display: grid; grid-template-columns: 240px 1fr; flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; }
.app-nav { padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 64px; align-self: start; }
.app-nav a { display: flex; align-items: center; gap: 14px; padding: 11px 18px; border-radius: var(--pill); color: var(--text); font-weight: 500; text-decoration: none; }
.app-nav a svg { width: 20px; height: 20px; fill: var(--muted); }
.app-nav a:hover { background: var(--surface-3); }
.app-nav a[aria-current] { background: var(--primary-soft); color: var(--primary); }
.app-nav a[aria-current] svg { fill: var(--primary); }
.app-main { padding: 28px 24px 64px; min-width: 0; max-width: 920px; }
.app-main .card { margin-bottom: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 1.75rem; margin-bottom: 4px; }
.page-head p { margin: 0; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 600; }
.menu-pop { position: absolute; right: 0; top: 48px; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 8px; z-index: 30; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head strong, .menu-head span { display: block; overflow-wrap: anywhere; }
.menu-head span { color: var(--muted); font-size: .85rem; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-3); }

.share-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--primary-soft), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.share-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 280px; min-width: 0; }
.share-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.share-url { font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.share-actions { display: flex; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .88rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 12px 18px; color: var(--muted); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none !important; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-current] { color: var(--primary); border-bottom-color: var(--primary); }
.day-group { margin-bottom: 24px; }
.day-label { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px 4px; }

.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-compact { margin-top: 16px; }
.list-item { border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item > summary, a.list-item, .list-item.flat { display: flex; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; color: var(--text); text-decoration: none !important; }
.list-item.flat { cursor: default; }
.list-item > summary::-webkit-details-marker { display: none; }
.list-item > summary:hover, a.list-item:hover { background: var(--surface-2); }
.list-item[open] > summary { background: var(--surface-2); }
.list-item .time { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 112px; }
.who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.who small { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: var(--pill); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.is-cancelled .who strong, .is-cancelled .time { text-decoration: line-through; color: var(--muted); }
.is-paused .who strong { color: var(--muted); }
.chev { color: var(--primary); font-size: .88rem; font-weight: 500; }
.booking-detail, .service-form, .danger-zone-inline { padding: 4px 20px 20px; }
.service-form { padding-top: 16px; }
.inline-confirm { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.danger-zone-inline { margin-top: 0; }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty p { margin-bottom: 16px; }
.form-card h2 { margin-bottom: 16px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.danger-zone h2 { color: var(--danger); }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--surface-2) 30%); padding: 16px 0; margin-bottom: 8px; }

.hours { display: flex; flex-direction: column; }
.hours-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 68px; }
.hours-row:last-child { border-bottom: 0; }
.hours-times { display: flex; align-items: center; gap: 10px; }
.hours-times input { width: 130px !important; }
.closed-label { display: none; }
.hours-row.is-closed .hours-times { display: none; }
.hours-row.is-closed .closed-label { display: inline; }
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; min-width: 170px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 40px; height: 24px; border-radius: 12px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.day-name { font-weight: 500; }

/* ---------- public booking ---------- */
.layout-booking { background: var(--surface-2); }
.booking-container { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }
.booking-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.booking-header-row { height: 64px; display: flex; align-items: center; }
.biz-id { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.biz-id small { display: block; color: var(--muted); font-size: .8rem; }
.biz-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 1.1rem; flex: none; }
.biz-avatar-lg { width: 72px; height: 72px; border-radius: 22px; font-size: 2rem; margin-bottom: 16px; }
.booking-main { padding: 28px 0 48px; }
.booking-main > .flash { max-width: 608px; margin: 0 auto 16px; }
.biz-hero { text-align: center; padding: 16px 0 28px; }
.biz-hero h1 { font-size: 1.9rem; margin-bottom: 4px; }
.biz-desc { max-width: 520px; margin: 14px auto 0; }
.biz-meta { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.step-title { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.step-title h2 { font-size: 1.12rem; margin: 0; }
.step-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: .85rem; flex: none; }
.service-pick .svc-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.service-pick .svc-meta strong { color: var(--text); }
.arrow { font-size: 1.6rem; color: var(--muted); line-height: 1; }
.back { display: inline-block; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.selected-service { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.week-range { font-weight: 500; color: var(--muted); font-size: .95rem; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: flex; flex-direction: column; align-items: center; padding: 10px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none !important; transition: border-color .15s, background .15s; }
.day small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.day strong { font-size: 1.2rem; }
a.day:hover { border-color: var(--primary); }
.day.is-selected { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.day.is-selected small { color: inherit; opacity: .85; }
.day.is-off { opacity: .4; background: transparent; }
.slot-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { display: block; text-align: center; padding: 12px 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--primary); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s; }
.slot:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.summary-card { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.summary-card > div:last-child { display: flex; flex-direction: column; }
.summary-icon { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 14px; flex: none; }
.confirm-head { text-align: center; padding: 16px 0 24px; }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--ok-soft); color: var(--ok); font-size: 2rem; font-weight: 700; }
.confirm-icon.cancelled { background: var(--danger-soft); color: var(--danger); }
.cancel-box { margin-top: 16px; }
.cancel-box summary { cursor: pointer; font-weight: 500; color: var(--danger); }
.cancel-box form { margin-top: 16px; }
.booking-footer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px 32px; font-size: .85rem; }
.powered { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none !important; }
.powered .logo-mark { width: 20px; height: 20px; }
.booking-footer .muted a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-nav { position: fixed; bottom: 0; left: 0; right: 0; top: auto; z-index: 25; flex-direction: row; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .app-nav a { flex-direction: column; gap: 2px; padding: 6px 10px; font-size: .72rem; border-radius: 14px; }
  .app-main { padding: 20px 16px 96px; }
  .sticky-actions { bottom: 64px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .header-row { gap: 12px; }
  .search-box { flex-direction: column; border-radius: 24px; padding: 8px; align-items: stretch; }
  .search-box svg { display: none; }
  .search-box input { text-align: center; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 12px; }
  .stat-num { font-size: 1.4rem; }
  .list-item .time { min-width: 0; font-size: .9rem; }
  .list-item > summary { flex-wrap: wrap; }
  .auth-card { padding: 32px 20px; border-radius: 22px; }
  .days { gap: 4px; }
  .day strong { font-size: 1.05rem; }
  .day small { font-size: .62rem; letter-spacing: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .share-actions { width: 100%; }
  .share-actions .btn { flex: 1; }
}

/* ---------- branding ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Logos are shown exactly as uploaded: no frame, background or rounding, natural aspect ratio. */
.biz-logo { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; flex: none; }
.biz-logo-lg { height: 104px; max-width: min(320px, 80%); margin: 0 auto 18px; }
.biz-hero-wrap { margin-top: -28px; padding-top: 28px; }
.biz-cover { height: clamp(150px, 30vw, 280px); max-width: 960px; margin: -28px auto 0; overflow: hidden; background: var(--surface-3); }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.has-cover .biz-hero { padding-top: 28px; }
@media (min-width: 961px) { .biz-cover { border-radius: 0 0 24px 24px; } }
.brand-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 8px; }
.brand-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.brand-item h3 { margin: 0; font-size: .95rem; }
.brand-preview { border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.logo-preview { width: 120px; height: 120px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview .biz-avatar-lg { margin: 0; }
.cover-preview { width: 100%; aspect-ratio: 3 / 1; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-form { margin: 0; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
@media (max-width: 640px) { .brand-grid { grid-template-columns: 1fr; } }

/* ---------- account menu: business switcher ---------- */
.menu-pop { min-width: 280px; max-height: calc(100vh - 90px); overflow-y: auto; }
.menu-head span { font-size: .78rem; }
.menu-section { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 12px 4px; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-pop .biz-switch { display: flex; align-items: center; gap: 10px; }
.menu-pop .biz-switch:disabled { cursor: default; background: var(--primary-soft); }
.biz-switch-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.biz-switch-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.biz-switch-text small { color: var(--muted); font-size: .75rem; }
.biz-switch .tick { color: var(--primary); font-weight: 700; }
.biz-avatar-sm { width: 28px; height: 28px; border-radius: 8px; font-size: .85rem; }
.biz-logo-sm { height: 28px; width: 28px; object-fit: contain; flex: none; }
.menu-pop .menu-add { color: var(--primary); font-weight: 500; }
.menu-toggle strong { font-weight: 600; }

/* ---------- business picker ---------- */
.biz-pick-list { margin: 24px 0 16px; }
.biz-pick-list form { border-bottom: 1px solid var(--line); }
.biz-pick-list form:last-child { border-bottom: 0; }
button.list-item { width: 100%; background: none; border: 0; font: inherit; text-align: left; }
.biz-pick .biz-logo { height: 40px; max-width: 64px; }
.biz-new { margin: 8px 0; }

/* ---------- team ---------- */
.team-list { margin: 16px 0; }
.team-row { flex-wrap: wrap; gap: 10px 14px; }
.team-row .who strong { overflow-wrap: anywhere; font-weight: 500; }
.select-sm { width: auto !important; min-height: 38px !important; padding: 6px 10px !important; }
.switch-sm { min-width: 0; gap: 8px; }
.text-danger { color: var(--danger) !important; }
.text-danger:hover { background: var(--danger-soft) !important; }
.team-add { margin-top: 8px; }
.notify-check { align-self: center; padding-bottom: 12px; }
.field > .field { gap: 6px; }

/* ---------- developers ---------- */
.dev-section { margin: 32px 0 8px; }
.dev-section > summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 500; padding: 10px 4px; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.dev-section > summary::-webkit-details-marker { display: none; }
.dev-section > summary::before { content: "</>"; font-family: var(--mono); font-size: .8rem; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); }
.dev-section > summary::after { content: "›"; transition: transform .15s; }
.dev-section[open] > summary::after { transform: rotate(90deg); }
.dev-section .card { margin-top: 8px; }
.dev-section h3 { margin-top: 24px; }
.code { font-family: var(--mono); font-size: .8rem; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; white-space: pre; }
.secret-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.secret { font-size: .82rem; padding: 8px 10px; overflow-wrap: anywhere; }
.secret-row form { margin: 0; }
.wh-status { padding: 8px 12px; border-radius: var(--radius-sm); margin: 12px 0; overflow-wrap: anywhere; }
.wh-status.ok { background: var(--ok-soft); color: var(--ok); }
.wh-status.err { background: var(--danger-soft); color: var(--danger); }

/* ---------- language switcher ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.lang-switch a { color: var(--muted); padding: 2px 4px; border-radius: 6px; }
.lang-switch a[aria-current] { color: var(--text); font-weight: 600; }
.menu-langs { display: flex; gap: 4px; padding: 6px 8px; }
.menu-langs a { flex: 1; text-align: center !important; font-size: .82rem; padding: 6px 4px !important; border: 1px solid var(--line); }
.menu-langs a[aria-current] { background: var(--primary-soft); color: var(--primary); border-color: transparent; font-weight: 600; }
.booking-footer .lang-switch { margin-top: 4px; }

/* ---------- home: owner-focused ---------- */
.hero-kicker { display: table; margin-left: auto; margin-right: auto; font-weight: 600; font-size: .85rem; color: var(--primary); background: var(--primary-soft); padding: 6px 14px; border-radius: var(--pill); margin-bottom: 14px; }
.savings-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 8px 0 20px; }
.save-item { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: box-shadow .2s; }
a.save-item:hover { box-shadow: var(--shadow-2); }
.save-item span { font-weight: 600; color: var(--muted); font-size: .9rem; }
.save-item strong { font-size: 1.8rem; letter-spacing: -.02em; color: var(--danger); }
.save-item small { color: var(--muted); font-size: .8rem; }
.save-item.us { background: var(--primary); border-color: var(--primary); }
.save-item.us span, .save-item.us small { color: color-mix(in srgb, var(--primary-ink) 80%, transparent); }
.save-item.us strong { color: var(--primary-ink); }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- compare ---------- */
.block { display: block; }
.compare-table td, .compare-table th { vertical-align: middle; }
.compare-table .col-free { background: color-mix(in srgb, var(--primary-soft) 60%, transparent); font-weight: 600; }
.compare-table th.col-free { color: var(--primary); }
.compare-table .cost { font-weight: 700; color: var(--danger); font-size: 1.05rem; }
.compare-table .zero { font-weight: 800; color: var(--ok); font-size: 1.15rem; }
.compare-table tbody th { font-weight: 500; color: var(--muted); }
.compare-cards { margin-top: 32px; }
.save-badge { display: inline-block; margin-top: 8px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: var(--pill); }
.save-badge.lg { font-size: 1rem; padding: 8px 16px; }
.savings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.saving { display: flex; flex-direction: column; gap: 4px; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.saving.us { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #7c3aed)); color: #fff; border: 0; }
.saving.us .small { color: rgba(255,255,255,.85); }
.saving-label { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; opacity: .8; }
.saving-num { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.saving.them .saving-num { color: var(--danger); }
.saving-num.sm { font-size: 1.6rem; margin-top: 10px; }
.saving.us .save-badge { background: #fff; color: var(--ok); align-self: flex-start; margin-top: 16px; }
.honest { margin: 40px 0; }
.plain { padding-left: 1.2em; color: var(--muted); }
.plain li { margin: 6px 0; }
.sources { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 960px) { .savings-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .savings { grid-template-columns: 1fr; } .savings-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- infographics ---------- */
.ig { margin: 0; }
.ig figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 16px; }
.ig-steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: igs; position: relative; }
.ig-steps li { counter-increment: igs; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.ig-steps li::before { content: counter(igs); position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.ig-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: var(--primary); font-weight: 700; font-size: 1.2rem; z-index: 1; }
.ig-icon { font-size: 2.2rem; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); margin-bottom: 6px; }
.ig-steps small { color: var(--muted); }
.ig-glance { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-glance div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 10px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.ig-glance strong { font-size: 2.2rem; letter-spacing: -.03em; color: var(--primary); line-height: 1; }
.ig-glance span { color: var(--muted); font-size: .85rem; }
.ig-journey .lane-head { display: grid; grid-template-columns: 1fr 1fr; font-weight: 700; margin-bottom: 12px; }
.ig-journey .lane-head span:last-child { text-align: right; }
.ig-journey ol { list-style: none; padding: 0; margin: 0; position: relative; display: flex; flex-direction: column; gap: 10px; }
.ig-journey ol::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line-strong); }
.ig-journey li { position: relative; width: calc(50% - 22px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 12px 48px; font-size: .95rem; }
.ig-journey li b { position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: .8rem; }
.ig-journey li.right { align-self: flex-end; }
.ig-journey li.center { align-self: center; width: auto; max-width: 80%; background: var(--primary); color: var(--primary-ink); border-color: var(--primary); text-align: center; padding: 12px 18px 12px 48px; font-weight: 600; z-index: 1; }
.ig-journey li.center b { background: rgba(255,255,255,.25); color: #fff; }
.ig-costs svg { width: 100%; height: auto; display: block; }
.ig-label { font: 600 15px var(--font); fill: var(--text); }
.ig-val { font: 700 14px var(--font); fill: var(--danger); }
.ig-bar { fill: color-mix(in srgb, var(--danger) 75%, #fff); }
.ig-bar-free { fill: var(--ok); }
.ig-free { fill: var(--ok); }

/* ---------- SEO pages ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.answer { color: var(--text); }
.answer-box { background: var(--primary-soft); border-radius: var(--radius); padding: 18px 20px; margin-top: 18px; }
.answer-box strong { display: block; color: var(--primary); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.answer-box p { margin: 0; font-size: 1.05rem; }
.howto { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: hs; }
.howto li { counter-increment: hs; display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.howto-n::before { content: counter(hs); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 700; }
.howto h2 { font-size: 1.1rem; margin: 6px 0 4px; }
.howto p { margin: 0; color: var(--muted); }
.tips { margin-top: 8px; }
.industry-card h2, .card-title { font-size: 1.1rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 960px) {
  .ig-steps ol { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .ig-steps li:nth-child(2)::after { display: none; }
  .ig-glance { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ig-steps ol { grid-template-columns: 1fr; }
  .ig-steps li::after { display: none; }
  .ig-journey ol::before { left: 12px; }
  .ig-journey li, .ig-journey li.center { width: auto; max-width: none; align-self: stretch; margin-left: 28px; }
  .ig-journey .lane-head { display: none; }
}

/* ---------- navbar language picker ---------- */
.lang-menu > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--pill); font-weight: 600; font-size: .88rem; color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.lang-menu > summary:hover, .lang-menu[open] > summary { background: var(--surface-3); }
.lang-menu .caret { font-size: .7rem; color: var(--muted); }
.lang-pop { min-width: 180px !important; top: 46px; }
.lang-pop a { display: flex !important; align-items: center; gap: 10px; }
.lang-pop a[aria-current] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.lang-code { font-size: .75rem; font-weight: 700; color: var(--muted); width: 22px; }
.lang-pop .tick { margin-left: auto; color: var(--primary); }
.booking-header-row { justify-content: space-between; }
.booking-header .header-actions { margin-left: auto; }
@media (max-width: 640px) { .lang-menu > summary { padding: 7px 10px; } }

/* ---------- contact form ---------- */
.contact-form-card { max-width: 760px; margin: 32px auto 0; }
.contact-form-card h2 { margin-bottom: 4px; }
.contact-form-card .sent { padding: 24px 0; }

/* ---------- dashboard calendar ---------- */
.tab-cal { margin-left: auto; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-title { font-size: 1.2rem; margin: 0 0 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--pill); overflow: hidden; background: var(--surface); }
.seg a { padding: 7px 14px; font-size: .88rem; font-weight: 500; color: var(--text); text-decoration: none !important; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a[aria-current] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.cal-head, .cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span { padding: 10px 8px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; }
.cal-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-row .cal-day:last-child { border-right: 0; }
.cal-row:last-child .cal-day { border-bottom: 0; }
.cal-mode-week .cal-day { min-height: 360px; }
.cal-mode-week .cal-ev { white-space: normal; }
.cal-day.is-out { background: var(--surface-2); }
.cal-day.is-out .cal-num { color: var(--line-strong); }
.cal-day.is-past .cal-ev { opacity: .65; }
.cal-num { align-self: flex-end; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 600; color: var(--text); text-decoration: none !important; }
.cal-num:hover { background: var(--surface-3); }
.cal-day.is-today .cal-num { background: var(--primary); color: var(--primary-ink); }
.cal-ev { display: block; font-size: .78rem; line-height: 1.3; padding: 3px 6px; border-radius: 6px; background: var(--primary-soft); color: var(--text); text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--primary); }
.cal-ev:hover { background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary)); }
.cal-ev b { color: var(--primary); font-weight: 700; }
.cal-mode-week .cal-ev small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: .75rem; color: var(--primary); font-weight: 600; padding: 0 6px; }
@media (max-width: 820px) {
  .tab-cal { margin-left: 0; }
  .cal-day { min-height: 72px; padding: 3px; }
  .cal-ev span, .cal-mode-week .cal-ev small { display: none; }
  .cal-ev { padding: 2px 4px; font-size: .7rem; text-align: center; border-left-width: 2px; }
}
