/* Donaus Co Booking, admin console. Tokens and components follow the UI
   prototype (admin-settings.html): pure white, black and white admin,
   Instrument Serif titles, Schibsted Grotesk for everything else. */

:root {
  --white: #ffffff;
  --ink: #000000;
  --ink-2: #555555;
  --line: #e2e2e2;
  --control: #767676;
  --accent: #000000;
  --on-accent: #ffffff;
  --ok: #1d6b3e;
  --warn: #a35a00;
  --bad: #b3261e;
  --focus: #000000;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.8125rem; --fs-sm: 0.9375rem; --fs-md: 1rem; --fs-lg: 1.25rem;
  --fd-1: clamp(2.5rem, 2rem + 1.8vw, 3.25rem);
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem;
  --r-control: 4px; --r-panel: 8px;
  --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.2);
  --tap: 44px;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.55; color: var(--ink); background: var(--white); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 var(--s3); }
h1 { font-size: var(--fd-1); }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 var(--s4); max-width: 68ch; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
code, kbd { font-family: var(--font-code); font-size: 0.9em; overflow-wrap: anywhere; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); border-radius: var(--r-control); }
.skip-link:focus { top: var(--s4); color: var(--white); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.mono { font-family: var(--font-code); }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.grid-2 { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-2 > .field + .field { margin-top: 0; }
.stack > * + * { margin-top: var(--s4); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s5); border: 1px solid transparent; border-radius: var(--r-control); font-weight: 600; font-size: var(--fs-md); text-decoration: none; cursor: pointer; background: var(--white); color: var(--ink); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: #262626; color: var(--on-accent); }
.btn-secondary { border-color: var(--ink); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-quiet { background: transparent; padding-inline: var(--s3); text-decoration: underline; text-underline-offset: 0.18em; }
.btn-danger { color: var(--bad); border-color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 var(--s3); font-size: var(--fs-sm); }
.btn[disabled] { color: var(--ink-2); border-color: var(--line); cursor: not-allowed; box-shadow: none; }
.btn-google { gap: var(--s3); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Forms */
.field { display: grid; gap: var(--s1); }
.field + .field, .field + fieldset, fieldset + .field, fieldset + fieldset, .field + .switches, fieldset + .switches { margin-top: var(--s5); }
.label { font-weight: 600; }
.label .opt { font-weight: 400; color: var(--ink-2); }
.hint { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.error-text { color: var(--bad); font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.error-text::before { content: "Error: "; }
.input, .select, .textarea { width: 100%; min-height: var(--tap); padding: var(--s2) var(--s3); border: 1px solid var(--control); border-radius: var(--r-control); background: var(--white); }
.textarea { min-height: 5.5rem; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 2.25rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.input[readonly] { background: #fafafa; }
[aria-invalid="true"] { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.input-group { display: flex; gap: var(--s2); }
.input-group > .input { flex: 1; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: var(--s2); }
.choices { display: grid; gap: var(--s2); }
.choices-inline { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice { display: flex; gap: var(--s3); align-items: flex-start; min-height: var(--tap); padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-control); cursor: pointer; }
.choice:hover { border-color: var(--control); }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--ink); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:disabled) { cursor: not-allowed; color: var(--ink-2); }
.choice-body { display: grid; flex: 1; }
.switches { display: grid; gap: var(--s1); }
.switch { display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; min-height: var(--tap); }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--white); border: 1px solid var(--control); position: relative; margin: 0; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--control); transition: transform 0.15s; }
.switch input:checked { background: var(--ink); border-color: var(--ink); }
.switch input:checked::after { transform: translateX(18px); background: var(--white); }
.switch input:disabled { opacity: 0.45; cursor: not-allowed; }

/* Feedback */
.notice { display: grid; gap: var(--s1); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 0 var(--r-control) var(--r-control) 0; margin-bottom: var(--s5); }
.notice > :last-child { margin-bottom: 0; }
.notice p { margin: 0; }
.notice-title { font-weight: 650; }
.notice-ok { border-left-color: var(--ok); }
.notice-warn { border-left-color: var(--warn); }
.notice-bad { border-left-color: var(--bad); }
.error-summary { border: 2px solid var(--bad); border-radius: var(--r-control); padding: var(--s4); margin-bottom: var(--s5); }
.error-summary h2 { font-family: var(--font); font-size: var(--fs-md); font-weight: 650; color: var(--bad); margin-bottom: var(--s2); }
.error-summary ul { margin: 0; padding-left: var(--s5); }
.error-summary a { color: var(--bad); font-weight: 600; }
.badge { align-self: center; display: inline-flex; align-items: center; gap: 0.4em; padding: 0.1em 0.6em; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: middle; border: 1px solid #c4c4c4; }
.badge::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ink-2); }
.badge-ok::before { background: var(--ok); }
.badge-warn::before { background: var(--warn); }
.badge-bad { border-color: var(--bad); }
.badge-bad::before { background: var(--bad); }
.badge-neutral::before { background: transparent; border: 1px solid var(--ink-2); }
.toast { position: fixed; bottom: var(--s5); left: 50%; transform: translateX(-50%); z-index: 90; width: min(100% - 2rem, 460px); background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); border-radius: var(--r-control); box-shadow: var(--shadow-pop); }
.toast.is-bad { background: var(--white); color: var(--bad); border: 2px solid var(--bad); }
.toast p { margin: 0; }

/* Data */
.kv { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: var(--s2) var(--s5); margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: var(--s3); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-weight: 650; white-space: nowrap; border-bottom: 1px solid var(--ink); }
.table tbody tr:last-child > * { border-bottom: 0; }
.checks { list-style: none; margin: var(--s3) 0 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.checks .lvl { font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 0.15em; }
.checks .lvl-pass { color: var(--ok); } .checks .lvl-fail { color: var(--bad); } .checks .lvl-warn { color: var(--warn); } .checks .lvl-info { color: var(--ink-2); }
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-list li { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.event-list span { color: var(--ink-2); }
@media (max-width: 560px) { .event-list li { grid-template-columns: 1fr; gap: 0; } }

/* Tabs as links (each tab is its own page) */
.tablist { display: flex; gap: var(--s1); border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: var(--s5); }
.tab { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s4); font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Admin shell */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-side { border-right: 1px solid var(--line); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s5); position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--white); }
.wordmark { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; }
/* Event type editor, Embed */
.code-snippet { font-size: 0.8125rem; line-height: 1.5; white-space: pre; overflow-x: auto; resize: vertical; }
.embed-preview { border: 1px dashed var(--line-strong, #999); border-radius: var(--r-panel); padding: var(--s4); background: #f6f6f6; }
/* Contacts */
.contacts-search .row .input { flex: 1 1 18rem; max-width: 32rem; }
.inline-check { display: inline-flex; align-items: center; gap: var(--s2); }
.inline-check .select { width: auto; }
/* Event type editor, Photo */
.photo-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.photo-current { border: 1px solid var(--line); border-radius: var(--r-control); min-height: 160px; display: grid; place-items: center; padding: var(--s3); background: #fff; }
.photo-current img { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; border-radius: 2px; }
@media (max-width: 640px) { .photo-row { grid-template-columns: 1fr; } }
/* Settings, Booking page: formatting guide and a preview of the hub intro. */
.plain-table { border-collapse: collapse; width: 100%; margin-top: var(--s3); }
.plain-table td { border-top: 1px solid var(--line); padding: var(--s2) var(--s3) var(--s2) 0; vertical-align: top; }
.plain-table td.mono { white-space: nowrap; }
@media (max-width: 640px) { .plain-table td.mono { white-space: normal; word-break: break-word; } }
.hub-preview { border: 1px dashed var(--line-strong, #999); border-radius: var(--r-panel); padding: var(--s5); overflow: hidden; }
.hub-preview .page-intro h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 1; margin-bottom: var(--s4); }
.hub-preview .page-intro > p, .hub-preview .md p, .hub-preview .md ul, .hub-preview .md ol { font-size: 1.125rem; color: var(--ink-2); }
.hub-preview .md { max-width: 68ch; }
.hub-preview .md > * + * { margin-top: var(--s4); }
.hub-preview .md h2 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.hub-preview .md ul, .hub-preview .md ol { padding-left: 1.4em; }
.hub-preview .md img { display: block; max-width: 100%; height: auto; border-radius: var(--r-control); }
.hub-preview .md .btn { margin: 0 var(--s2) var(--s2) 0; }
.hub-preview .btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
.hub-preview .hub-frame { display: block; width: 100%; height: 240px; border: 0; margin-top: var(--s5); }
.brand-icon { display: block; width: 28px; height: 28px; object-fit: contain; flex: none; border-radius: 4px; }
.icon-current img { width: 96px; height: 96px; object-fit: contain; }
.wordmark-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-logo { display: block; height: 32px; width: auto; max-width: min(220px, 55vw); object-fit: contain; object-position: left center; }
.logo-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.logo-current { border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s4); min-height: 88px; display: grid; place-items: center; background: #fff; }
.logo-current img { max-width: 100%; max-height: 80px; width: auto; height: auto; }
@media (max-width: 640px) { .logo-row { grid-template-columns: 1fr; } }
.wordmark-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; }
.wordmark-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: var(--s3); min-height: 40px; padding: 0 var(--s3); border-radius: var(--r-control); text-decoration: none; font-weight: 500; }
.admin-nav a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--white); font-weight: 650; }
.admin-nav .icon { color: var(--ink-2); }
.admin-nav a[aria-current="page"] .icon { color: var(--white); }
.nav-group-label { font-size: var(--fs-xs); color: var(--ink-2); margin: var(--s4) var(--s3) var(--s1); font-weight: 600; }
.admin-user { margin-top: auto; display: flex; gap: var(--s3); align-items: center; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.admin-user form { margin-left: auto; }
.admin-user .btn-quiet { white-space: nowrap; padding-inline: var(--s2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 700; flex: none; }
.admin-main { padding: var(--s5) var(--s6) var(--s8); min-width: 0; }
.admin-topbar { display: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.page-head h1 { margin: 0; }
.page-head p { margin: var(--s1) 0 0; color: var(--ink-2); }
.panel { border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s5); }
.panel + .panel, .notice + .panel, form + .panel, .panel + form, form + form { margin-top: var(--s5); }
/* Button forms sitting side by side (Duplicate / Archive, user actions) are
   laid out by the row's gap, not the stacked-section spacing above. */
.row > form, .secret-actions > form, .page-head form { margin-top: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.panel-head h2 { margin: 0; }
.cols { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.cols > .panel + .panel { margin-top: 0; }
.health-strip { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.health-strip li { display: flex; gap: var(--s2); align-items: center; font-size: var(--fs-sm); }
.settings-form, .settings-col { max-width: 880px; }
.save-row { position: sticky; bottom: 0; z-index: 5; background: var(--white); border-top: 1px solid var(--ink); margin-top: var(--s5); padding: var(--s3) 0; display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: flex-end; }
.save-row p { margin: 0 auto 0 0; }
.save-row p.is-dirty { font-weight: 600; }

/* Write-only credentials */
.secret { border-top: 1px solid var(--line); padding-top: var(--s4); }
.secret + .secret, .field + .secret, .secret + .field { margin-top: var(--s5); }
.secret-state { margin: 0; }
.secret.is-locked .secret-state { color: var(--ink-2); }
.secret details { margin-top: var(--s2); }
.secret summary { list-style: none; display: inline-flex; }
.secret summary::-webkit-details-marker { display: none; }
.secret details[open] summary { display: none; }
.secret-entry { margin-top: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 0 var(--r-control) var(--r-control) 0; display: grid; gap: var(--s2); }
.secret-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s2); }
.secret-actions form { display: inline; }
.test-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; padding: var(--s3) 0; }
.test-row + .test-row { border-top: 1px solid var(--line); }

/* Branding */
.accent-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.accent-row input[type="color"] { width: 56px; height: 44px; border: 1px solid var(--control); border-radius: var(--r-control); padding: 2px; background: var(--white); }
.accent-row .input { width: 8rem; font-family: var(--font-code); }
.brand-preview { border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; --accent: #233f8f; --on-accent: #fff; }
.brand-preview .bp-bar .wordmark { flex: 1 1 auto; font-size: 1rem; }
.brand-preview .brand-logo { height: 24px; max-width: 120px; flex: none; }
.brand-preview .bp-bar .small { white-space: nowrap; flex: none; font-size: 0.8125rem; }
.brand-preview .bp-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.brand-preview .bp-body { padding: var(--s4); display: grid; gap: var(--s3); }
.brand-preview .bp-title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin: 0; }
.brand-preview .bp-row { display: flex; gap: var(--s2); }
.brand-preview .bp-day { width: 44px; height: 44px; border-radius: var(--r-control); display: grid; place-items: center; font-weight: 650; border: 1px solid var(--line); }
.brand-preview .bp-day.is-on, .brand-preview .bp-btn { background: var(--accent); color: var(--on-accent); border: 1px solid var(--ink); }
.brand-preview .bp-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-control); font-weight: 600; }

/* Sign-in */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--s5) var(--s4); }
.auth-panel { width: min(100%, 460px); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s6); }
.auth-panel h1 { font-size: 2.75rem; }

@media (max-width: 960px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform 0.2s; box-shadow: var(--shadow-pop); visibility: hidden; }
  .admin-side.is-open { transform: none; visibility: visible; }
  .admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; background: var(--white); }
  .admin-main { padding: var(--s4) var(--s4) var(--s7); }
  .cols { grid-template-columns: minmax(0, 1fr); }
}
.table .row > form { display: flex; }
.panel > [data-show-when] { margin-top: var(--s5); }

/* Month preview: open days are marked, never counted */
.month-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.month-head h3 { margin: 0; }
.mini-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; font-size: var(--fs-sm); }
.mini-cal .dow { text-align: center; color: var(--ink-2); font-weight: 600; font-size: var(--fs-xs); padding: var(--s1); }
.mini-cal .cell > * { width: 100%; min-height: 44px; border-radius: var(--r-control); display: grid; place-items: center; position: relative; }
.mini-cal .cell span { color: #8a8a8a; }
.mini-cal .cell a.open { border: 1px solid var(--line); font-weight: 650; text-decoration: none; }
.mini-cal .cell a.open::after { content: ""; position: absolute; bottom: 6px; width: 12px; height: 3px; border-radius: 2px; background: var(--ink); }
.mini-cal .cell a.open:hover { border-color: var(--ink); }
.mini-cal .cell a[aria-current="date"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.mini-cal .cell a[aria-current="date"]::after { background: var(--white); }
.mini-cal .is-today { text-decoration: underline; text-underline-offset: 0.25em; }
.legend-bar { display: inline-block; width: 12px; height: 3px; border-radius: 2px; background: var(--ink); vertical-align: middle; }
.time-list { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.time-list li { border: 1px solid var(--line); border-radius: var(--r-control); padding: 0.15rem 0.5rem; font-size: var(--fs-sm); }

/* Weekly hours editor */
.week { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.week > li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); align-items: start; }
.week .day-name { min-height: var(--tap); display: flex; align-items: center; }
.windows { display: grid; gap: var(--s2); }
.window { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.window .input { width: 8.5rem; }
.week .closed { color: var(--ink-2); min-height: var(--tap); display: flex; align-items: center; }
.rule-list { list-style: none; margin: 0 0 var(--s4); padding: 0; border-top: 1px solid var(--line); }
.rule-list li { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; padding: var(--s2) 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 600px) { .week > li { grid-template-columns: 1fr; gap: var(--s2); } }
.week [data-spare][hidden] { display: none; }

/* Booking form builder */
.field-rows, .option-rows { list-style: none; margin: 0; padding: 0; }
.field-rows { border-top: 1px solid var(--line); }
.field-row { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; padding: var(--s3) 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.field-row form { margin: 0; }
.option-rows { display: grid; gap: var(--s2); }
.option-row { display: flex; gap: var(--s2); align-items: center; }
.option-row > .input { flex: 1; min-width: 0; }
.input-prefix { display: inline-flex; align-items: center; gap: var(--s1); flex: 0 0 7.5rem; }
.input-prefix > .input { min-width: 0; }
.choice-price { margin-left: auto; padding-left: var(--s2); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.check-inline { display: flex; gap: var(--s3); align-items: flex-start; min-height: var(--tap); padding: var(--s1) 0; cursor: pointer; }
.check-inline input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--ink); flex: none; }
.preview-form > .field + .field, .preview-form > .field + fieldset, .preview-form > fieldset + .field { margin-top: var(--s4); }
.price-box { margin-top: var(--s4); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-control); }
.preview-form > .hint + * { margin-top: var(--s3); }
.input-group.tel { flex-wrap: wrap; }
.input-group.tel > .input { flex: 1 1 10rem; }

/* Bookings */
.tab .count { font-weight: 400; color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 var(--s4) var(--s4); font-size: var(--fs-sm); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 0.35em; width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 1px solid var(--ink); }
.timeline li.is-key::before { background: var(--ink); }
.timeline time { display: block; color: var(--ink-2); font-size: var(--fs-xs); }
.decline-form details > summary { list-style: none; }
.decline-form details > summary::-webkit-details-marker { display: none; }
.decline-form details[open] { flex-basis: 100%; }
.table th[scope="row"] { font-weight: 650; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); font-size: var(--fs-sm); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--s2); }
.time-grid .choice { min-height: 40px; align-items: center; }
