/* ===========================================================================
   RoomBook — a classy, editorial design system.
   Palette matched to joseph-stiftung.de: crimson brand + slate + olive.
   =========================================================================== */
:root {
  --brand: #b61e3f;
  --brand-deep: #8a1730;
  --radius: 14px;
  --radius-sm: 9px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark — neutral charcoal, crimson accent */
html[data-theme="dark"] {
  --bg: #17181a;
  --bg-soft: #1c1e20;
  --surface: #212325;
  --surface-2: #2a2c2f;
  --border: #383a3d;
  --text: #f2f2f2;
  --text-soft: #b9bcbf;
  --text-faint: #85888c;
  --accent: var(--brand);
  --accent-ink: #ffffff;
  --danger: #e2586c;
  --ok: #8dad4a;
  --shadow: 0 18px 48px -24px rgba(0, 0, 0, .8);
}

/* Light — neutral warm gray, crimson accent */
html[data-theme="light"] {
  --bg: #f6f6f6;
  --bg-soft: #fbfbfb;
  --surface: #ffffff;
  --surface-2: #eeeeee;
  --border: #d2d3d4;
  --text: #212529;
  --text-soft: #565a5e;
  --text-faint: #939598;
  --accent: var(--brand);
  --accent-ink: #ffffff;
  --danger: #dc3545;
  --ok: #577a38;
  --shadow: 0 18px 44px -26px rgba(30, 20, 22, .18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 85% -15%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 55%),
    var(--bg);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 44px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
  color: var(--accent-ink); font-family: var(--serif); font-weight: 700; font-size: 19px;
  box-shadow: var(--shadow);
}
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .01em; }
.topbar__nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  text-decoration: none; color: var(--text-soft);
  font-weight: 600; font-size: .88rem; letter-spacing: .02em;
  padding: 8px 14px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }

.pill-btn {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
  cursor: pointer; font-size: .92rem; font-weight: 600; letter-spacing: .04em;
  transition: background .15s, border-color .15s, transform .1s;
}
.pill-btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.pill-btn:active { transform: scale(.94); }

/* ---------- Layout ---------- */
.view { max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 52px); }
.page__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 34px; flex-wrap: wrap;
}
.eyebrow {
  margin: 0 0 8px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em; color: var(--accent);
}
.page__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem); letter-spacing: -.01em; margin: 0; line-height: 1.1;
}
.page__sub { margin: 10px 0 0; color: var(--text-faint); font-size: .94rem; }

/* ---------- Buttons ---------- */
.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  padding: 11px 20px; border-radius: 999px;
  cursor: pointer; transition: background .15s, transform .1s, border-color .15s;
}
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
  border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--brand) 75%, transparent);
}
.btn--primary:hover { filter: brightness(1.06); }
/* Any button with a colored background + white text (--accent-ink) needs a
   dark hover color in light mode, or the white text disappears on hover. */
html[data-theme="light"] .btn--primary:hover,
html[data-theme="light"] .btn--accent:hover { color: #000000; }
.btn--sm { padding: 7px 14px; font-size: .82rem; }
.btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.btn--block { width: 100%; }

/* ---------- Date groups + user cards ---------- */
.group { margin-bottom: 34px; }
.group__date {
  font-family: var(--serif); font-size: 1.02rem; font-weight: 600;
  color: var(--text-soft); margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.cards { display: grid; gap: 13px; }
.cards--admin { gap: 18px; }

.card {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .12s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.monogram {
  display: grid; place-items: center; flex-shrink: 0;
  min-width: 64px; height: 44px; padding: 0 12px;
  font-family: var(--serif); font-weight: 600; font-size: .98rem; letter-spacing: .02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: 999px;
}
.card__time { display: flex; flex-direction: column; gap: 3px; }
.card__hours { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.card__dur { font-size: .8rem; color: var(--text-faint); }

/* ---------- Admin cards ---------- */
.acard {
  padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); display: grid; gap: 14px;
}
.acard--cancelled { opacity: .6; }
.acard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.acard__who { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.acard__mail { display: block; color: var(--text-soft); font-size: .85rem; text-decoration: none; margin-top: 3px; }
.acard__mail:hover { color: var(--accent); }
.acard__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-soft); font-size: .9rem; }
.acard__meta strong { color: var(--text); }
.acard__desc, .acard__remarks { margin: 0; font-size: .9rem; color: var(--text-soft); line-height: 1.55; }
.acard__checks { display: flex; gap: 22px; flex-wrap: wrap; }
.acard__actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 15px; border-top: 1px solid var(--border); }

.badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge--ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.badge--muted { background: var(--surface-2); color: var(--text-faint); }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-soft); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 76px 20px; color: var(--text-faint); }
.empty__icon { font-size: 2.6rem; color: var(--accent); margin-bottom: 14px; }
.empty h3 { font-family: var(--serif); margin: 0 0 8px; color: var(--text); font-weight: 600; font-size: 1.25rem; }
.empty p { margin: 0 auto; max-width: 360px; font-size: .92rem; line-height: 1.5; }

/* ---------- PIN gate ---------- */
.gate { display: grid; place-items: center; min-height: 62vh; }
.gate__box {
  width: min(384px, 100%); text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 42px 32px;
}
.gate__icon { font-size: 2rem; color: var(--accent); }
.gate__box h1 { font-family: var(--serif); margin: 14px 0 8px; font-size: 1.5rem; font-weight: 600; }
.gate__box p { margin: 0 0 24px; color: var(--text-faint); font-size: .92rem; line-height: 1.5; }
.gate__field { margin-bottom: 10px; }
.gate__back { display: inline-block; margin-top: 20px; color: var(--text-soft); text-decoration: none; font-size: .88rem; }
.gate__back:hover { color: var(--accent); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.field__label i { color: var(--accent); font-style: normal; }
.field__label em { color: var(--text-faint); font-style: italic; font-weight: 400; }
.field__err { font-size: .78rem; color: var(--danger); min-height: 1em; }

.input {
  width: 100%; font: inherit; font-size: .95rem;
  padding: 11px 13px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent); }
textarea.input { resize: vertical; min-height: 44px; }
select.input { appearance: none; cursor: pointer; }
input[type="search"].input::-webkit-search-cancel-button,
input[type="search"].input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

/* ---------- Password field with show/hide toggle ---------- */
.pw-field { position: relative; }
.pw-field .input { padding-right: 42px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: grid; place-items: center; width: 30px; height: 30px;
  border: none; background: none; border-radius: 999px; cursor: pointer;
  color: var(--text-faint); transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle svg { width: 18px; height: 18px; }

/* ---------- Modal ---------- */
.modal {
  width: min(560px, 94vw); max-height: 90vh; overflow: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); padding: 0; box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(12, 9, 4, .6); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.form { padding: 24px 26px 26px; }
.form__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.form__head h2 { font-family: var(--serif); margin: 0; font-size: 1.4rem; font-weight: 600; }
.form__banner { margin: 0 0 16px; font-size: .86rem; color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); padding: 11px 14px; border-radius: var(--radius-sm); }
.form__banner:empty { display: none; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.col-span { grid-column: 1 / -1; }
.form__admin { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.form__section { font-family: var(--serif); font-size: 1rem; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.form__checks { display: flex; gap: 22px; padding-top: 8px; }
.form__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; z-index: 100; width: max-content; max-width: 92vw; }
.toast {
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .25s;
}
.toast--in { opacity: 1; transform: translateY(0); }
.toast--success { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.toast--error { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
  .form__grid { grid-template-columns: 1fr; }
  .page__head .btn--primary { width: 100%; }
}
/* ---------- Custom date / time pickers ---------- */
.card__time { margin-right: auto; }

.picker-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; cursor: pointer;
}
.picker-trigger:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.picker-trigger__text { color: var(--text); }
.picker-trigger__text.is-placeholder { color: var(--text-faint); }
.picker-ic {
  width: 18px; height: 18px; flex-shrink: 0;
  background-repeat: no-repeat; background-position: center; background-size: 18px 18px;
}
html[data-theme="dark"] .picker-ic--cal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b61e3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .picker-ic--clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b61e3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E");
}
html[data-theme="light"] .picker-ic--cal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238a1730' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
html[data-theme="light"] .picker-ic--clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238a1730' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E");
}

.picker {
  position: fixed; z-index: 1000;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px;
  animation: pop .14s ease;
}
.picker__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.picker__title { font-family: var(--serif); font-weight: 600; font-size: .98rem; text-transform: capitalize; }
.picker__nav {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.05rem; line-height: 1;
}
.picker__nav:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.picker__grid { display: grid; grid-template-columns: repeat(7, 34px); gap: 2px; }
.picker__weekdays { margin-bottom: 2px; }
.picker-wd { text-align: center; font-size: .7rem; color: var(--text-faint); padding: 4px 0; }
.picker-day {
  height: 34px; border: none; background: none; color: var(--text);
  border-radius: 8px; cursor: pointer; font: inherit; font-size: .86rem;
}
.picker-day:hover:not(:disabled) { background: var(--surface-2); }
.picker-day--empty { visibility: hidden; pointer-events: none; }
.picker-day:disabled { color: var(--text-faint); opacity: .35; cursor: default; }
.picker-day.is-today { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 55%, var(--border)); }
.picker-day.is-selected { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: var(--accent-ink); font-weight: 700; }
.picker__times { max-height: 224px; overflow-y: auto; display: grid; gap: 2px; width: 120px; }
.picker-time {
  padding: 9px 0; text-align: center; border: none; background: none; color: var(--text);
  border-radius: 8px; cursor: pointer; font: inherit; font-size: .9rem;
}
.picker-time:hover { background: var(--surface-2); }
.picker-time.is-selected { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: var(--accent-ink); font-weight: 700; }

/* ---------- Field hint ---------- */
.field__hint { font-size: .77rem; color: var(--text-faint); line-height: 1.4; }

/* ---------- Status chips (user cards) + badges ---------- */
.chip { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.chip--ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.chip--wait { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--accent); }
.chip--muted { background: var(--surface-2); color: var(--text-faint); }
.badge--wait { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--accent); }

.btn--accent { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); border-color: transparent; color: var(--accent-ink); }
.btn--accent:hover { filter: brightness(1.06); }

.nav-link--active { color: var(--text); background: var(--surface-2); }

/* ---------- Settings panel (admin) ---------- */
.settings { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 30px; }
.settings__title { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; margin: 0 0 14px; }
.settings__row { display: flex; gap: 12px; align-items: flex-end; }
.settings__field { flex: 1; }

/* ---------- Rules page ---------- */
.rules-sec { margin-bottom: 34px; }
.rules-sec__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.rules-grp { margin-bottom: 22px; }
.rules-grp__title { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0 0 9px; font-weight: 700; }
.rules-list { margin: 0; padding-left: 20px; display: grid; gap: 9px; color: var(--text-soft); line-height: 1.6; font-size: .95rem; }
.rules-list li::marker { color: var(--accent); }
.rules-list a, .rules-contact a { color: var(--accent); }
.rules-contact { margin-top: 6px; color: var(--text-soft); font-size: .95rem; }

/* ---------- Message modal (pending confirmation) ---------- */
.modal--msg { width: min(420px, 94vw); }
.msg { padding: 32px 28px; text-align: center; }
.msg__icon { font-size: 2.2rem; color: var(--accent); }
.msg h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 12px 0 10px; }
.msg p { color: var(--text-soft); line-height: 1.55; margin: 0 0 10px; }
.msg__contact { font-weight: 600; }
.msg .btn { margin-top: 16px; }

/* ---------- Rejected status + exception flags ---------- */
.acard--inactive { opacity: .6; }
.chip--rej, .badge--rej { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

.acard__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acard__flags-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.flag {
  font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--border));
}

/* ---------- Nav pending badge ---------- */
.nav-badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  margin-left: 4px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: var(--accent-ink);
}

/* ---------- Change-PIN row (admin settings) ---------- */
.settings__pin { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.settings__pin > .field__label { display: block; margin-bottom: 10px; }
.settings__pin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.settings__pin-row .input, .settings__pin-row .pw-field { flex: 1; min-width: 120px; }

/* ---------- Search bars ---------- */
.admin-search { margin-bottom: 22px; }
.admin-search .input { max-width: 480px; }
.user-search { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.user-search .picker-trigger { max-width: 220px; }

/* ---------- Notification outbox ---------- */
.outbox__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.outbox__note { margin: 4px 0 14px; font-size: .82rem; color: var(--text-faint); line-height: 1.45; }
.outbox__empty { margin: 0; color: var(--text-faint); font-size: .9rem; }
.ob { padding: 14px 0; border-top: 1px solid var(--border); }
.ob--sent { opacity: .6; }
.ob__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ob__to { font-weight: 600; font-size: .9rem; }
.ob__subject { color: var(--text-soft); font-size: .88rem; margin: 4px 0 10px; }
.ob__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ob__actions .btn { text-decoration: none; }

/* ---------- Admin greeting ---------- */
.admin-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.greeting { font-family: var(--serif); font-size: 1rem; color: var(--accent); font-weight: 600; }

/* ---------- Tutor rows ---------- */
.trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.trow:first-of-type { border-top: none; }
.trow__info { display: flex; flex-direction: column; gap: 2px; }
.trow__name { font-weight: 600; }
.trow__name em { color: var(--text-faint); font-weight: 400; font-style: italic; }
.trow__email { font-size: .85rem; color: var(--text-soft); }
.trow__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Past reservations (user view) ---------- */
.past { margin-top: 44px; padding-top: 4px; }
.past__title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--text-soft); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.past .card { opacity: .62; }
.past .card:hover { opacity: .85; }

/* ---------- Responsive (phones) ---------- */
@media (max-width: 600px) {
  .topbar { padding: 12px 16px; }
  .topbar__nav { gap: 6px; }
  .nav-link { padding: 7px 10px; font-size: .82rem; }
  .pill-btn { min-width: 34px; height: 34px; padding: 0 9px; font-size: .85rem; }
  .view { padding: 22px 16px 40px; }
  .page__head { flex-direction: column; align-items: stretch; gap: 16px; }
  .page__head .btn--primary { width: 100%; }
  .form { padding: 20px 18px 22px; }
  .settings__row { flex-direction: column; align-items: stretch; }
  .settings__row .btn { width: 100%; }
  .acard__meta { gap: 6px 14px; font-size: .86rem; }
}
@media (max-width: 400px) {
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
