/* ============================================================
   Service portal — the Rival Car website's design system
   (same tokens, font, header, buttons and inputs as the CMS
   site.css), so the portal reads as the website's service section.
   Light: :root, dark: [data-theme="dark"].
   ============================================================ */
:root {
    --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --radius: 12px;
    --radius-lg: 22px;

    --bg: #f4f6fb;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f1f3f9;
    --glass: rgba(255, 255, 255, .72);
    --line: rgba(15, 20, 32, .09);
    --line-strong: rgba(15, 20, 32, .18);
    --primary: #2d5be3;
    --primary-fg: #ffffff;
    --primary-hover: #1f49c7;
    --accent: var(--primary);
    --danger: #c0392b;
    --ok: #138f68;
    --text: #121622;
    --muted: #4d5669;
    --faint: #8a93a6;
    --border: #dfe3ec;
    --hover-bg: #eef3ff;
    --notice-bg: #e8f0ff;
    --notice-border: #bcd0fb;
    --notice-fg: #1d3f9e;
    --error-bg: #fdeeee;
    --error-border: #f2c4c0;
    --error-fg: #9b2c22;
    --internal: #fff8e1;
    --booked-row: #f6f9ff;
    --blocked-row: #fdf6f6;
    --weekend-fg: #b7791f;
    --cal-pending-bg: #fff0a8;
    --cal-pending-accent: #e6a500;
    --cal-progress-bg: #cee0fb;
    --cal-progress-accent: #1976d2;
    --cal-ready-bg: #bfeaf2;
    --cal-ready-accent: #0097a7;
    --cal-confirmed-bg: #c8e6c9;
    --cal-confirmed-accent: #2e7d32;
    --cal-done-bg: #dee1e6;
    --cal-done-accent: #6b7280;
    --selected-bg: #e7eeff;
    --selected-bg-hover: #dbe5ff;
    --range-bg: #c7d6ff;
    --range-banner-bg: #e7eeff;
    --range-banner-border: #b9cbff;
    --chip-bg: #eef1f7;
    --tag-free-bg: #e6f7ed;
    --tag-free-fg: #0a7a3d;
    --tag-booked-bg: #e7eeff;
    --tag-booked-fg: #2d5be3;
    --tag-blocked-bg: #fde0e0;
    --tag-blocked-fg: #c0392b;
    --tag-teas-bg: #ece3fb;
    --tag-teas-fg: #6b3fb8;
    --status-confirmed: #2d5be3;
    --status-progress: #b58900;
    --status-ready: #2e8b57;
    --shadow: 0 10px 30px -18px rgba(20, 30, 60, .35);
    --shadow-lg: 0 30px 70px -30px rgba(20, 30, 60, .35), 0 10px 30px -15px rgba(20, 30, 60, .18);
    --orb-1: #7fa4ff; --orb-2: #ff9fb0; --orb-3: #7fe3d3;
    --orb-opacity: .55;
    --logo-grad: linear-gradient(92deg, #141a2b 0%, #2d5be3 50%, #c8102e 100%);
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0b0d12;
    --bg-2: #12161f;
    --surface: #151a25;
    --surface-alt: #12161f;
    --glass: rgba(20, 24, 34, .62);
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --primary: #5b8cff;
    --primary-fg: #ffffff;
    --primary-hover: #7aa2ff;
    --danger: #ff6b6b;
    --ok: #22d3a5;
    --text: #f4f6fb;
    --muted: #a3abbd;
    --faint: #6b7489;
    --border: #262d3b;
    --hover-bg: #1b2130;
    --notice-bg: #14223d;
    --notice-border: #2a4467;
    --notice-fg: #a9c4ff;
    --error-bg: #2c1717;
    --error-border: #5a2828;
    --error-fg: #ffb0b0;
    --internal: #3a3520;
    --booked-row: #161d2c;
    --blocked-row: #241a1d;
    --weekend-fg: #ffb347;
    --cal-pending-bg: #3d3415;
    --cal-pending-accent: #e6b800;
    --cal-progress-bg: #1e3a6e;
    --cal-progress-accent: #5fa0f5;
    --cal-ready-bg: #0f4e5d;
    --cal-ready-accent: #4ec4d8;
    --cal-confirmed-bg: #1a4d2e;
    --cal-confirmed-accent: #6cc880;
    --cal-done-bg: #2a303c;
    --cal-done-accent: #8b939e;
    --selected-bg: #1f2f55;
    --selected-bg-hover: #283b6a;
    --range-bg: #2a4583;
    --range-banner-bg: #18264a;
    --range-banner-border: #2e466b;
    --chip-bg: #1b2130;
    --tag-free-bg: #163025;
    --tag-free-fg: #6ec99c;
    --tag-booked-bg: #1a2740;
    --tag-booked-fg: #8fb0ff;
    --tag-blocked-bg: #2c1717;
    --tag-blocked-fg: #ffb0b0;
    --tag-teas-bg: #251a36;
    --tag-teas-fg: #c3a6f0;
    --status-confirmed: #5b8cff;
    --status-progress: #e0b463;
    --status-ready: #6ec99c;
    --shadow: 0 10px 30px -15px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 10px 30px -15px rgba(0, 0, 0, .6);
    --orb-1: #2b4fd0; --orb-2: #c8102e; --orb-3: #1fb8a8;
    --orb-opacity: .5;
    --logo-grad: linear-gradient(92deg, #ffffff 0%, #cdd9ff 35%, #ffd0d7 65%, #ffffff 100%);
    color-scheme: dark;
}

/* Smooth transition when toggling */
body, .topbar, .appbar, .card, .staff-table th, .filter-bar, .day-panel,
.generate-panel, .range-banner, .calendar-grid, .calendar-grid td a,
.calendar-grid th, .topbar-user, .quick-toggle, input, select, textarea {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100dvh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 15px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.staff { font-size: 14.5px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); font-weight: 800; margin: .3em 0 .5em; }
h2 { font-weight: 700; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { position: relative; z-index: 1; flex: 1 0 auto; width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; }
body.staff .container { max-width: 1240px; }
.muted { color: var(--muted); }

/* ---------- Background (public pages only, as on the website) ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
      background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--bg-2) 70%, var(--primary) 8%) 0%, transparent 60%), linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%); }
.bg__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--orb-opacity); will-change: transform; animation: drift 26s var(--ease) infinite alternate; }
.bg__orb--1 { width: 55vmax; height: 55vmax; left: -15vmax; top: -20vmax; background: radial-gradient(circle, var(--orb-1), transparent 65%); }
.bg__orb--2 { width: 50vmax; height: 50vmax; right: -18vmax; top: 10vmax; background: radial-gradient(circle, var(--orb-2), transparent 65%); animation-duration: 32s; animation-delay: -9s; }
.bg__orb--3 { width: 40vmax; height: 40vmax; left: 30vmax; bottom: -25vmax; background: radial-gradient(circle, var(--orb-3), transparent 65%); animation-duration: 38s; animation-delay: -17s; opacity: calc(var(--orb-opacity) * .7); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
.bg__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
            mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }

/* ---------- Header: website menu (top row) + portal menu (appbar) ---------- */
.topbar { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line);
          background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.topbar__inner { position: relative; width: min(1240px, 100% - 2rem); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 1.2rem; }
.brandmark { display: inline-flex; align-items: center; }
.brandmark:hover { text-decoration: none; }
.brandmark__logo { display: block; width: 140px; aspect-ratio: 910 / 290; background: var(--logo-grad); background-size: 200% 100%; animation: shimmer 8s linear infinite;
                   -webkit-mask: url("../img/rivalcar-logo.png") center / contain no-repeat; mask: url("../img/rivalcar-logo.png") center / contain no-repeat; }
.brandmark__logo--sm { width: 110px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sitenav { display: flex; gap: .2rem; margin-left: auto; }
.sitenav__link { padding: .45rem .8rem; border-radius: 999px; font-weight: 500; font-size: .92rem; color: var(--muted); transition: .2s; }
.sitenav__link:hover { color: var(--text); background: var(--glass); text-decoration: none; }
.sitenav__link.is-active { color: var(--text); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-strong); }
.topbar__tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.sitenav + .topbar__tools { margin-left: 0; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--glass); }
.langs__item { padding: .28rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--muted); transition: .2s; }
.langs__item:hover { color: var(--text); text-decoration: none; }
.langs__item.is-active { background: var(--primary); color: var(--primary-fg); }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer; transition: .25s; }
.iconbtn:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .icon--sun { display: none; }
.theme-toggle .icon--moon { display: block; }
[data-theme="light"] .theme-toggle .icon--sun { display: block; }
[data-theme="light"] .theme-toggle .icon--moon { display: none; }
.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: .3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.appbar { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.appbar__inner { width: min(1240px, 100% - 2rem); margin: 0 auto; min-height: 50px; padding: .35rem 0; display: flex; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; }
.appbar__title { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; color: var(--text); white-space: nowrap; }
.appbar__title svg { color: var(--primary); }
.appbar__links { display: flex; flex-wrap: wrap; gap: .15rem; flex: 1 1 auto; min-width: 0; }
.appbar__link { padding: .4rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.appbar__link:hover { color: var(--text); background: var(--glass); text-decoration: none; }
.appbar__link.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.appbar__end { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.logout-form { display: inline; margin: 0; }
.link-btn { background: none; border: none; cursor: pointer; color: var(--primary); font: inherit; padding: 0; }
.appbar .link-btn { font-size: .88rem; font-weight: 600; color: var(--muted); padding: .4rem .8rem; border-radius: 999px; }
.appbar .link-btn:hover { color: var(--danger); background: var(--glass); }

.topbar-user {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--text);
}
.topbar-user-name { font-weight: 600; }
.topbar-user-role {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 1px 7px;
    border-radius: 999px;
    color: #fff;
}
.topbar-user-role.role-admin { background: #c8102e; }
.topbar-user-role.role-staff { background: var(--primary); }

@media (max-width: 599px) {
    .topbar-user { padding: 2px 8px; font-size: .8rem; }
    .topbar-user-role { display: none; }
}

/* ---------- Buttons (pills, as on the website) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .6rem 1.15rem; min-height: 42px; min-width: 42px;
    border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); color: var(--text);
    font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-fg); transform: translateY(-1px); }
.btn.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.lg { padding: .85rem 1.6rem; font-size: 1rem; }

/* ---------- Landing hero ---------- */
.hero { padding: clamp(1.5rem, 6vh, 4rem) 0 1rem; text-align: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
                 font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px transparent; } }
.hero h1 { margin: 1rem 0 .6rem; font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05;
           background: linear-gradient(92deg, var(--text) 0%, color-mix(in srgb, var(--text) 70%, var(--primary)) 60%, var(--text) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.05rem; font-weight: 300; max-width: 52ch; margin: 0 auto 1.4rem; }
.hero .cta { justify-content: center; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero illustration on the landing page. Inherits `color` for the SVG line work,
   so it follows the light/dark theme; the wheel rings pick up var(--accent). */
.hero-art {
    margin: 12px auto 0;
    max-width: 520px;
    text-align: center;
    color: var(--muted);
}
.hero-art svg,
.hero-art img {
    width: 100%;
    height: auto;
    display: block;
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0 8px; padding: 0; list-style: none; }
.feature { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.feature h3 { margin: 0 0 4px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.card-list { list-style: none; padding: 0; margin: 0; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.card-actions .inline-form { margin: 0; }

.form-section { max-width: 480px; margin: 12px auto; }
.form-section h1 { margin-top: 0; }
/* Public pages: glass panels over the background, like the website's cards. */
body:not(.staff) .card,
body:not(.staff) .form-section { background: var(--glass); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
body:not(.staff) .form-section { padding: 1.6rem 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Visual hint above the OTP phone input — the SVG inherits `color`, so it adapts to the theme. */
.phone-hint {
    margin: 16px 0 20px;
    text-align: center;
    color: var(--muted);
}
.phone-hint svg {
    width: 96px;
    height: 76px;
    color: var(--accent, currentColor);
}
.phone-hint figcaption {
    font-size: 0.875rem;
    margin-top: 4px;
}

/* ---------- Forms ---------- */
form.stack, form > label { display: block; }
form label { display: block; margin: 12px 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
form input, form select, form textarea {
    width: 100%; padding: .68rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
    font: inherit; font-size: .98rem; font-weight: 400; background: var(--surface); color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
form input::placeholder, form textarea::placeholder { color: var(--faint); }
form select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
              background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
              background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
form input[type="checkbox"], form input[type="radio"] { width: auto; padding: 0; accent-color: var(--primary); box-shadow: none; }
/* Date/time pickers keep their native UA colors unless told the scheme. */
form input[type="date"], form input[type="time"], form input[type="number"] { color-scheme: light; }
[data-theme="dark"] form input[type="date"],
[data-theme="dark"] form input[type="time"],
[data-theme="dark"] form input[type="number"] { color-scheme: dark; }
form .checkbox { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
form .checkbox input { width: auto; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
form.inline label { margin: 0; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.error { color: var(--error-fg); padding: 10px 14px; background: var(--error-bg); border: 1px solid var(--error-border); border-radius: var(--radius); }
.notice { color: var(--notice-fg); padding: 10px 14px; background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: var(--radius); }
/* Something for the admin to look at (e.g. SMS quota hits on the staff dashboard). */
.notice--warn { color: var(--error-fg); background: var(--error-bg); border-color: var(--error-border); }
/* Login bot filter: a field people never see or reach (bots fill it in). */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.row-actions { white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.row-actions .btn { padding: 6px 12px; min-height: 32px; min-width: 0; font-size: 0.85rem; }
.inline-form { display: inline; margin: 0; }

.slot-list { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.slot {
    display: flex; flex-direction: column; align-items: center; padding: 12px; gap: 4px;
    border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
    background: var(--surface);
}
.slot input { display: none; }
.slot.disabled { opacity: 0.4; cursor: not-allowed; }
.slot input:checked + span { color: var(--primary); font-weight: 600; }
.slot .capacity { color: var(--muted); font-size: 0.85rem; }

.detail { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }

.notes { list-style: none; padding: 0; }
.notes li { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); margin: 8px 0; }
.notes li.internal { background: var(--internal); }
.notes .tag { display: inline-block; font-size: 0.75rem; background: #b58900; color: white; padding: 2px 6px; border-radius: 4px; margin-left: 8px; }

.staff-table { width: 100%; border-collapse: collapse; }
.staff-table th, .staff-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.staff-table th { background: var(--surface); position: sticky; top: 64px; z-index: 1; }

.muted { color: var(--muted); }

.day-nav { display: flex; align-items: center; gap: 8px; margin: 16px 0 12px; flex-wrap: wrap; }
.day-nav .day-label { color: var(--muted); flex: 1; text-align: center; }

.slot-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.slot-grid .slot-form { margin: 0; }
.slot-grid .slot-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; padding: 16px 8px; gap: 2px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer;
}
.slot-grid .slot-btn:hover { border-color: var(--primary); background: var(--hover-bg); }
.slot-grid .slot-btn .time { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.slot-grid .slot-btn .time-end { font-size: 0.8rem; color: var(--muted); }

.slot-extras { margin-top: 16px; padding: 8px; }
.slot-extras summary { cursor: pointer; color: var(--primary); }

.quick-toggle {
    display: flex; align-items: center; gap: 8px;
    margin: 8px 0 12px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.quick-toggle a { font-weight: 600; text-decoration: none; }
.quick-toggle .quick-on { color: #c08400; }
.quick-toggle .quick-off { color: var(--muted); }
.quick-marker { font-size: 1.1rem; margin-right: 4px; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.tag-free { background: var(--tag-free-bg); color: var(--tag-free-fg); }
.tag-booked { background: var(--tag-booked-bg); color: var(--tag-booked-fg); }
.tag-blocked { background: var(--tag-blocked-bg); color: var(--tag-blocked-fg); }
.tag-teas { background: var(--tag-teas-bg); color: var(--tag-teas-fg); }

.staff-table tr.booked { background: var(--booked-row); }
.staff-table tr.blocked { background: var(--blocked-row); }

/* Admin SMS template editor — one card per template code, three rows inside
   for HU/SK/EN. The lang-badge colors mimic the language picker chips. */
.sms-templates-page { max-width: 900px; margin: 0 auto; }
.template-group {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 18px; margin: 16px 0;
}
.template-group header h2 { margin: 0 0 4px; }
.template-group header h2 code { font-size: 0.95rem; }
.template-group .var-chip {
    display: inline-block;
    background: rgba(0,0,0,0.06); padding: 0 6px; border-radius: 4px;
    margin: 0 4px 0 0; font-size: 0.85em;
}
[data-theme="dark"] .template-group .var-chip { background: rgba(255,255,255,0.08); }
.template-form { margin: 10px 0; }
.template-form label { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.template-form textarea {
    flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
}
.template-form .lang-badge {
    display: inline-block; min-width: 36px; text-align: center;
    background: var(--accent, currentColor); color: #fff;
    font-weight: 700; font-size: 0.85rem;
    padding: 4px 8px; border-radius: 4px;
    margin-top: 12px;
}
.template-form .form-actions {
    display: flex; gap: 10px; align-items: center; justify-content: flex-end;
    margin-top: 6px;
}

/* Callback-request indicators — customer ticked "please call me back about
   details" on their booking. The dashboard row + the calendar cell get a
   subtle marker; the booking detail page gets a prominent action banner. */
.row-callback { background: rgba(245, 158, 11, 0.05); }
.callback-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.9em;
    vertical-align: middle;
}
.cal-badge-callback {
    background: rgba(245, 158, 11, 0.85);
    color: #fff;
    border-radius: 8px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
    display: inline-block;
}
.callback-banner {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid #f59e0b;
    border-radius: var(--radius);
    padding: 14px 18px; margin: 12px 0 20px;
}
.callback-banner strong { font-size: 1.05rem; }
.callback-banner p { margin: 4px 0 0; color: var(--muted); }
.callback-banner form { margin: 0; }
[data-theme="dark"] .callback-banner { background: rgba(245, 158, 11, 0.18); }

.callback-checkbox {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid #f59e0b;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Filter bar — flex-based so it auto-fits varying numbers of fields and
   buttons across pages (Dashboard, Customers, AuditLog, SMS). Each field
   grows to fill space but never narrower than ~160 px; if the buttons
   don't fit on the field row they wrap to a new line on the right. */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.filter-bar > label {
    margin: 0;
    flex: 1 1 160px;
    min-width: 0;     /* allow shrink below content size (long select options) */
}
.filter-bar .filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;   /* push the action buttons to the right edge */
}
.result-count { margin: 8px 0; font-size: 0.9rem; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; flex-wrap: wrap; }

.view-tabs {
    display: flex; gap: 4px; margin: 16px 0;
    border-bottom: 1px solid var(--border);
}
.view-tab {
    padding: 10px 16px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    text-decoration: none;
    font-weight: 600;
}
.view-tab:hover { color: var(--text); text-decoration: none; }
.view-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Staff dashboard calendar variant — cell color reflects the day's dominant status.
   Each status cell has a tinted background PLUS a 4px solid colored stripe on the left,
   so the status is visible at a glance even on small / pale screens. */
.calendar-grid td.cal-status-pending a,
.calendar-grid td.cal-status-progress a,
.calendar-grid td.cal-status-ready a,
.calendar-grid td.cal-status-confirmed a,
.calendar-grid td.cal-status-done a {
    border-left: 4px solid transparent;
    padding-left: 5px;   /* keep total horizontal padding similar to other cells */
}
.calendar-grid td.cal-status-pending a   { background: var(--cal-pending-bg);   border-left-color: var(--cal-pending-accent); }
.calendar-grid td.cal-status-progress a  { background: var(--cal-progress-bg);  border-left-color: var(--cal-progress-accent); }
.calendar-grid td.cal-status-ready a     { background: var(--cal-ready-bg);     border-left-color: var(--cal-ready-accent); }
.calendar-grid td.cal-status-confirmed a { background: var(--cal-confirmed-bg); border-left-color: var(--cal-confirmed-accent); }
.calendar-grid td.cal-status-done a      { background: var(--cal-done-bg);      border-left-color: var(--cal-done-accent); }
.calendar-grid td.cal-status-done .cal-num { color: var(--muted); }

.cal-count-label { color: var(--muted); font-size: 0.75rem; margin-left: 2px; }
.cal-count-empty { color: #c8ccd4; font-size: 1rem; }
.cal-extra {
    margin-left: 4px;
    font-size: 0.75rem;
    color: var(--text);
    background: var(--chip-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-weight: 600;
}

.cal-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
}
.cal-badge-pending { background: #c08400; }
.calendar-grid td { position: relative; }

/* Legend uses the bold accent colors (not the cell tints) so they pop. */
.legend-dot.legend-pending   { background: var(--cal-pending-accent); }
.legend-dot.legend-progress  { background: var(--cal-progress-accent); }
.legend-dot.legend-ready     { background: var(--cal-ready-accent); }
.legend-dot.legend-confirmed { background: var(--cal-confirmed-accent); }
.legend-dot.legend-done      { background: var(--cal-done-accent); }

/* Month-nav row (used by Admin/Slots and Staff/Dashboard calendar views).
   Selector covers both .slots-admin and .staff-dashboard parents so the arrows,
   the month label, and the "Today" button line up on a single row. */
.slots-admin .month-nav,
.staff-dashboard .month-nav {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 24px 0 16px;
}
.slots-admin .month-nav h2,
.staff-dashboard .month-nav h2 {
    margin: 0; flex: 1; text-align: center;
    font-size: 1.4rem; font-weight: 600; text-transform: capitalize;
}
.slots-admin .month-nav .btn,
.staff-dashboard .month-nav .btn { padding: 8px 14px; min-width: 0; }

/* Staff manual page — booking lifecycle explainer. Single-column reading
   layout with a colored status grid and an SVG state diagram. */
.manual-page { max-width: 900px; margin: 0 auto; }
.manual-page .lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 24px; }
.manual-page h2 { margin-top: 36px; }

.rule-callout {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--surface); border: 2px solid var(--accent, currentColor);
    border-radius: var(--radius); padding: 16px 20px; margin: 16px 0 24px;
}
.rule-callout-icon { color: var(--accent, currentColor); flex-shrink: 0; }
.rule-callout p { margin: 6px 0 0; color: var(--muted); }

.tip-callout {
    background: var(--surface); border-left: 4px solid var(--accent, currentColor);
    border-radius: var(--radius); padding: 12px 16px; margin: 32px 0 16px;
}
.tip-callout p { margin: 6px 0 0; color: var(--muted); }

.status-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin: 16px 0;
}
.status-card {
    background: var(--surface); border: 1px solid var(--border);
    border-left: 6px solid currentColor;
    border-radius: var(--radius); padding: 12px 14px;
}
.status-card .status-badge {
    display: inline-block; font-size: 0.85rem; font-weight: 600;
    padding: 2px 10px; border-radius: 12px;
    color: #fff;
    /* Background is provided per anchor class below — we can't use
       `currentColor` here because `color: #fff` (set on this same element
       for the label) overrides it, leaving a white-on-white pill. */
}
.status-card p { margin: 8px 0 0; color: var(--text); font-size: 0.95rem; }

/* Color anchor classes — drive both the left border (via currentColor) and
   the badge background (explicit). Keep these in sync. */
.ms-pending   { color: #f59e0b; }
.ms-confirmed { color: #3b82f6; }
.ms-progress  { color: #8b5cf6; }
.ms-awaiting  { color: #f97316; }
.ms-ready     { color: #10b981; }
.ms-completed { color: #374151; }
.ms-cancelled { color: #6b7280; }
.ms-noshow    { color: #6b7280; }

.ms-pending   .status-badge { background: #f59e0b; }
.ms-confirmed .status-badge { background: #3b82f6; }
.ms-progress  .status-badge { background: #8b5cf6; }
.ms-awaiting  .status-badge { background: #f97316; }
.ms-ready     .status-badge { background: #10b981; }
.ms-completed .status-badge { background: #374151; }
.ms-cancelled .status-badge { background: #6b7280; }
.ms-noshow    .status-badge { background: #6b7280; }

.manual-diagram {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px;
    overflow-x: auto;
}
.manual-diagram svg {
    display: block; width: 100%; height: auto;
    min-width: 600px;   /* don't squish text into illegibility */
    color: var(--text);
}

/* Transition labels on the lifecycle diagram. `paint-order: stroke` puts a
   surface-colored halo BEHIND each glyph's fill, which keeps the text
   legible regardless of what color box / line happens to sit underneath.
   Without this, a 2px stroked group makes the text muddy on dark themes. */
.manual-diagram .diagram-labels text {
    fill: var(--text);
    stroke: var(--surface);
    stroke-width: 4;
    stroke-linejoin: round;
    paint-order: stroke fill;
    font-size: 13px;
    font-weight: 600;
}
.manual-diagram .diagram-labels text.small { font-size: 11px; font-weight: 500; }
.manual-diagram .diagram-labels text.muted { fill: var(--muted); }

.scenario-list {
    padding-left: 24px;
    line-height: 1.55;
}
.scenario-list li { margin: 12px 0; }
.scenario-list strong { display: block; margin-bottom: 4px; }
.scenario-list p { margin: 0; color: var(--muted); }

.sms-examples { list-style: none; padding: 0; }
.sms-examples li { margin: 16px 0; }
.sms-examples strong { display: block; margin-bottom: 4px; }
.sms-examples blockquote {
    background: var(--surface); border-left: 3px solid var(--accent, currentColor);
    border-radius: 4px;
    margin: 0; padding: 8px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem; color: var(--text);
}

/* Admin SMS gateway / wall — chronological feed of inbound + outbound.
   Color-coded rows: inbound = subtle blue tint, outbound = subtle neutral,
   unknown sender = warning yellow border, ambiguous (multi-active) = orange. */
.admin-sms .sms-feed { list-style: none; padding: 0; margin: 16px 0; }
.admin-sms .sms-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 10px 0;
}
.admin-sms .sms-row.sms-in  { border-left-color: #3b82f6; }
.admin-sms .sms-row.sms-out { border-left-color: #6b7280; }
.admin-sms .sms-row.sms-unknown { border-left-color: #f59e0b; }
.admin-sms .sms-row.sms-ambiguous { border-left-color: #f97316; }

.admin-sms .sms-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.9rem; color: var(--muted);
}
.admin-sms .sms-head .sms-dir { font-weight: 700; color: var(--text); }
.admin-sms .sms-head .sms-customer { color: var(--text); }
.admin-sms .sms-tag {
    font-size: 0.75rem; padding: 1px 8px; border-radius: 10px;
    background: rgba(245, 158, 11, 0.15); color: #b45309;
}
.admin-sms .sms-tag.warn { background: rgba(245, 158, 11, 0.18); color: #92400e; }
[data-theme="dark"] .admin-sms .sms-tag.warn { color: #fbbf24; }

.admin-sms .sms-body {
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(0,0,0,0.03);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
}
[data-theme="dark"] .admin-sms .sms-body { background: rgba(255,255,255,0.04); }

.admin-sms .sms-links { margin-top: 8px; }
.admin-sms .sms-links ul { list-style: none; padding: 0; margin: 4px 0; }
.admin-sms .sms-links li { margin: 3px 0; }
.admin-sms .sms-links code { background: rgba(0,0,0,0.05); padding: 0 4px; border-radius: 3px; }
[data-theme="dark"] .admin-sms .sms-links code { background: rgba(255,255,255,0.06); }
.admin-sms .sms-ambig-note {
    background: rgba(249, 115, 22, 0.12);
    border-left: 3px solid #f97316;
    padding: 4px 10px; margin: 4px 0;
    font-size: 0.9rem;
}

.admin-sms .sms-reply { margin-top: 10px; }
.admin-sms .sms-reply summary {
    cursor: pointer; display: inline-block;
    list-style: none;
}
.admin-sms .sms-reply summary::-webkit-details-marker { display: none; }
.admin-sms .sms-reply form { margin-top: 10px; max-width: 540px; }

/* Dominant SVG chevron for navigation arrow buttons. Replaces the thin
   "←/→" Unicode glyph used in month-nav and day-nav rows. `currentColor`
   makes it follow the surrounding text color (and the theme). */
.nav-arrow {
    width: 22px; height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    display: inline-block;
}
.slots-admin .btn.ghost { background: transparent; border-color: transparent; color: var(--primary); margin-left: 4px; }

.calendar-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.calendar-grid th {
    padding: 12px 8px;
    text-align: center;
    background: var(--surface-alt);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.calendar-grid th.weekend { color: var(--weekend-fg); }

.calendar-grid td {
    height: 96px;
    vertical-align: top;
    padding: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.calendar-grid tr td:last-child { border-right: none; }
.calendar-grid tr:last-child td { border-bottom: none; }
.calendar-grid td.cal-empty { background: var(--surface-alt); }

.calendar-grid td a {
    display: block;
    height: 100%;
    padding: 8px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.12s ease;
}
.calendar-grid td a:hover { background: var(--hover-bg); }
.calendar-grid td.cal-none a { color: var(--muted); }
.calendar-grid td.cal-selected a { background: var(--selected-bg); }
.calendar-grid td.cal-selected a:hover { background: var(--selected-bg-hover); }
.calendar-grid td.cal-in-range a { background: var(--selected-bg); }
.calendar-grid td.cal-in-range a:hover { background: var(--selected-bg-hover); }
.calendar-grid td.cal-range-start a,
.calendar-grid td.cal-range-end a {
    background: var(--range-bg);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-grid a { user-select: none; }

.range-banner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 10px 14px; margin: 0 0 12px;
    background: var(--range-banner-bg); border: 1px solid var(--range-banner-border); border-radius: var(--radius);
    color: var(--text);
}
.range-banner .range-actions { display: flex; gap: 8px; }
.small { font-size: 0.85rem; }

.cal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.95rem;
}
.cal-today .cal-num {
    background: var(--primary);
    color: #fff;
}

.cal-count {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.2;
}
.cal-count strong { color: var(--text); font-weight: 600; }

/* Small status dot prefix on the count */
.cal-some .cal-count::before,
.cal-full .cal-count::before,
.cal-blocked .cal-count::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.cal-some .cal-count::before { background: #2e8b57; }
.cal-full .cal-count::before { background: #c08400; }
.cal-blocked .cal-count::before { background: var(--danger); }

.calendar-legend {
    display: flex; gap: 18px; flex-wrap: wrap;
    color: var(--muted); font-size: 0.85rem;
    margin: 12px 0 24px;
}
.legend-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.legend-dot.cal-some { background: #2e8b57; }
.legend-dot.cal-full { background: #c08400; }
.legend-dot.cal-blocked { background: var(--danger); }
.legend-dot.cal-none { background: #d0d4dc; }

.day-panel {
    margin-top: 24px; padding: 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.day-panel h3 { margin: 0 0 12px; }
.day-panel .day-actions { margin-bottom: 16px; }

.generate-panel {
    margin-top: 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 16px;
}
.generate-panel summary {
    cursor: pointer; font-weight: 600;
    padding: 6px 0; color: var(--primary);
    list-style: none;
}
.generate-panel summary::before { content: "▸ "; }
.generate-panel[open] summary::before { content: "▾ "; }
.generate-panel .row { display: flex; gap: 12px; flex-wrap: wrap; }
.generate-panel .row label { flex: 1 1 140px; }
.dow-picker {
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 8px 12px;
}
.dow-picker legend { padding: 0 6px; color: var(--muted); font-size: 0.85rem; }
.dow-picker label {
    margin: 4px 12px 4px 0;
    display: inline-flex; align-items: center; gap: 4px;
}

@media (max-width: 599px) {
    .calendar-grid td { height: 72px; }
    .calendar-grid td a { padding: 4px 6px; }
    .cal-num { width: 26px; height: 26px; font-size: 0.85rem; }
    .calendar-grid .cal-count { font-size: 0.7rem; margin-top: 4px; }
    .slots-admin .month-nav h2,
    .staff-dashboard .month-nav h2 { font-size: 1.1rem; }
}

/* ---------- Footer (as on the website, compact) ---------- */
.footer { position: relative; z-index: 1; margin-top: 2rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem;
          background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer__inner { width: min(1240px, 100% - 2rem); margin: 0 auto; padding: 1.8rem 0 1.2rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.footer__text { color: var(--muted); font-size: .9rem; margin: .8rem 0 0; max-width: 46ch; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--primary); text-decoration: none; }
.footer__bottom { width: min(1240px, 100% - 2rem); margin: 0 auto; padding: 1rem 0 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__inner + .footer__bottom { border-top: 1px solid var(--line); }
.footer__staff, .footer__privacy { color: var(--faint); }
.footer__staff:hover, .footer__privacy:hover { color: var(--primary); text-decoration: none; }
.footer__privacy { margin-left: auto; }

/* ---------- First-visit notice (_Consent; same look as the website's) ---------- */
.has-consent body { overflow: hidden; }
.consent { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem;
           background: rgba(5, 7, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[data-theme="light"] .consent { background: rgba(15, 20, 32, .45); }
.consent__card { width: min(640px, 100%); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; padding: 1.8rem 2rem 1.5rem;
                 background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
                 box-shadow: var(--shadow-lg); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
                 color: var(--muted); font-size: .92rem; line-height: 1.6; }
/* On a narrow card the language and theme switch go above the title (wrap-reverse). */
.consent__head { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin: 0 0 .9rem; }
.consent__tools { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.consent__title { color: var(--text); font-size: 1.35rem; margin: 0; }
.consent__body { min-height: 0; overflow-y: auto; }
.consent__body p { margin: 0 0 .8rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.consent__actions .btn { flex: 1 1 12rem; }
.consent__card .consent__note { font-size: .8rem; color: var(--faint); margin: .8rem 0 0; }
@media (max-width: 480px) {
    .consent__card { padding: 1.3rem 1.2rem 1.1rem; font-size: .86rem; }
    .consent__title { font-size: 1.2rem; }
}

/* ---------- Responsive header ---------- */
/* Same breakpoint as the website: the full Hungarian menu + tools need ~1000px. */
@media (max-width: 1024px) {
    .sitenav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: .6rem 1rem 1rem; margin: 0; gap: .2rem;
               background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
               border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px;
               transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
    .sitenav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .sitenav__link { padding: .75rem 1rem; font-size: 1rem; }
    .burger { display: inline-flex; }
    .sitenav + .topbar__tools { margin-left: auto; }
}
@media (max-width: 600px) {
    .topbar__inner { height: 60px; gap: .6rem; }
    .sitenav { top: 60px; }
    .brandmark__logo { width: 108px; }
    .langs__item { padding: .28rem .42rem; }
    .iconbtn { width: 38px; height: 38px; }
    /* Portal menu: one swipeable row instead of wrapping lines. */
    .appbar__inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .appbar__inner::-webkit-scrollbar { display: none; }
    .appbar__links { flex-wrap: nowrap; }
    .staff-table th { top: 60px; }
    .footer__inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
