/* Gaggelzimmer – clean, warm, eggy. */
:root {
  --bg: #faf7f0;
  --surface: #ffffff;
  --surface-2: #f4efe4;
  --ink: #1d1b16;
  --muted: #6b665c;
  --line: #e8e1d3;
  --line-strong: #d6cdbb;
  --yolk: #f5b82e;
  --yolk-soft: #fdf1d2;
  --yolk-ink: #3a2900;
  --accent: #b97a00;
  --ok: #2e7a4d;
  --ok-soft: #e2f1e7;
  --bad: #b0412f;
  --bad-soft: #f8e3de;
  --info-soft: #e8eef8;
  --info: #3a5a8c;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(60 40 0 / 0.04), 0 12px 32px -16px rgb(60 40 0 / 0.18);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f;
    --surface: #1d1b16;
    --surface-2: #26231c;
    --ink: #f4efe5;
    --muted: #a8a193;
    --line: #322e25;
    --line-strong: #474134;
    --yolk: #f5b82e;
    --yolk-soft: #3a2f14;
    --yolk-ink: #2b1e00;
    --accent: #f5c451;
    --ok: #6cc592;
    --ok-soft: #1c3326;
    --bad: #ef8a77;
    --bad-soft: #3a1f19;
    --info-soft: #1d2738;
    --info: #9db8e3;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14130f;
  --surface: #1d1b16;
  --surface-2: #26231c;
  --ink: #f4efe5;
  --muted: #a8a193;
  --line: #322e25;
  --line-strong: #474134;
  --yolk-soft: #3a2f14;
  --yolk-ink: #2b1e00;
  --accent: #f5c451;
  --ok: #6cc592;
  --ok-soft: #1c3326;
  --bad: #ef8a77;
  --bad-soft: #3a1f19;
  --info-soft: #1d2738;
  --info: #9db8e3;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--yolk);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 28px;
  }
}

/* ------------------------------------------------ Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand small {
  display: block;
  font: 500 0.72rem/1 var(--font);
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--ink);
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: var(--yolk);
  border-color: var(--yolk);
  color: var(--yolk-ink);
  box-shadow: 0 6px 18px -8px rgb(245 184 46 / 0.8);
}
.btn-primary:hover {
  background: #f0ab12;
  border-color: #f0ab12;
}
.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn-dark:hover {
  opacity: 0.9;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: transparent;
}
.btn-danger {
  color: var(--bad);
}
.btn-danger:hover {
  border-color: var(--bad);
  background: var(--bad-soft);
}
.btn-ok {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
}

/* ------------------------------------------------ Cards & forms */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  gap: 6px;
}
.field > span,
.label {
  font-size: 0.88rem;
  font-weight: 600;
}
.field small {
  color: var(--muted);
  font-size: 0.82rem;
}
.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.input {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}
select.input {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.input:focus {
  outline: none;
  border-color: var(--yolk);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--yolk) 28%, transparent);
}
.input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}
.error {
  color: var(--bad);
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 0;
}
.error:empty {
  display: none;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 0.92rem;
  font-weight: 500;
}
.notice:empty {
  display: none;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.segmented button {
  border: 0;
  background: transparent;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}
.segmented button[aria-pressed="true"],
.segmented button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

/* ------------------------------------------------ Hero */
.hero {
  padding: 48px 0 32px;
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    padding: 72px 0 56px;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--yolk-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 7vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  isolation: isolate;
}
.hero h1 .hl {
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  height: 0.32em;
  background: var(--yolk);
  border-radius: 999px;
  z-index: -1;
  opacity: 0.85;
}
.hero .lead {
  margin-top: 18px;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
}
.hero .cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-art {
  display: none;
}
@media (min-width: 900px) {
  .hero-art {
    display: block;
    justify-self: center;
    width: min(100%, 340px);
    filter: drop-shadow(0 30px 40px rgb(80 50 0 / 0.16));
    animation: float 7s ease-in-out infinite;
  }
}
@keyframes float {
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
}
.perks {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .perks {
    grid-template-columns: repeat(3, 1fr);
  }
}
.perks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.perks .ico {
  font-size: 1.5rem;
  line-height: 1;
}
.perks b {
  display: block;
  font-size: 0.97rem;
}
.perks small {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ------------------------------------------------ Booking layout */
.section {
  padding: 24px 0 72px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
}
.steps {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar {
  display: none;
}
.steps button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px 7px 7px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.steps button:disabled {
  cursor: default;
  opacity: 0.6;
}
.steps .n {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 0.8rem;
}
.steps button[aria-current="step"] {
  color: var(--ink);
  border-color: var(--ink);
}
.steps button[aria-current="step"] .n,
.steps button.done .n {
  background: var(--yolk);
  color: var(--yolk-ink);
}

.booking-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 960px) {
  .booking-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .summary {
    position: sticky;
    top: 84px;
  }
}
.panel {
  padding: 20px;
}
@media (min-width: 720px) {
  .panel {
    padding: 28px;
  }
}
.step-title {
  font-size: 1.45rem;
  font-weight: 750;
}
.step-sub {
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 20px;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.step-actions .spacer {
  flex: 1;
}
.stack {
  display: grid;
  gap: 16px;
}
.row-2 {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------ Calendar */
.cal {
  user-select: none;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: capitalize;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) {
  border-color: var(--ink);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-wd {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
}
.day {
  position: relative;
  width: 100%;
  height: clamp(42px, 11vw, 54px);
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.12s ease, transform 0.12s ease;
}
.day:hover:not(:disabled) {
  background: var(--yolk-soft);
}
.day.today {
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.day:disabled {
  cursor: not-allowed;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 55%, transparent);
}
.day.full {
  color: var(--muted);
  background: repeating-linear-gradient(-45deg, var(--surface-2) 0 5px, transparent 5px 10px);
  text-decoration: line-through;
}
.day.partial::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent);
}
.day.in-range {
  background: var(--yolk-soft);
  border-radius: 6px;
}
.day.start,
.day.end {
  background: var(--yolk);
  color: var(--yolk-ink);
  font-weight: 800;
}
.day.start.partial::after,
.day.end.partial::after {
  background: var(--yolk-ink);
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--surface-2);
}
.cal-legend i.sel {
  background: var(--yolk);
}
.cal-legend i.part {
  background: var(--surface-2);
  position: relative;
}
.cal-legend i.part::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-legend i.full {
  background: repeating-linear-gradient(-45deg, var(--line-strong) 0 2px, transparent 2px 4px);
}
.times {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
@media (min-width: 560px) {
  .times {
    grid-template-columns: 1fr 1fr;
  }
}
.time-box {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  display: grid;
  gap: 8px;
}
.time-box .label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.time-box .label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.busy-list {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ------------------------------------------------ Wishes */
.wish-groups {
  display: grid;
  gap: 22px;
}
.wish-group h4 {
  font-size: 0.8rem;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.wish {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.wish:hover {
  border-color: var(--line-strong);
}
.wish.on {
  border-color: var(--yolk);
  background: var(--yolk-soft);
}
.wish-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
  font-weight: 550;
  line-height: 1.25;
}
.wish-emoji {
  font-size: 1.4rem;
  width: 28px;
  text-align: center;
  flex: none;
}
.wish-qty {
  display: none;
  align-items: center;
  gap: 2px;
  padding-right: 8px;
}
.wish.on .wish-qty {
  display: flex;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--surface);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover {
  border-color: var(--accent);
}
.qty-n {
  min-width: 26px;
  text-align: center;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.88rem;
  font-weight: 550;
}
.chip b {
  font-weight: 750;
  color: var(--accent);
}
.empty {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ------------------------------------------------ Summary */
.summary {
  padding: 22px;
}
.summary h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 14px;
}
.sum-block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.sum-block .label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sum-range {
  font-weight: 650;
}
.sum-range small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--yolk-soft);
  color: var(--accent);
  width: fit-content;
}

/* ------------------------------------------------ Status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.st-pending {
  background: var(--yolk-soft);
  color: var(--accent);
}
.st-confirmed {
  background: var(--ok-soft);
  color: var(--ok);
}
.st-declined {
  background: var(--bad-soft);
  color: var(--bad);
}
.st-cancelled {
  background: var(--surface-2);
  color: var(--muted);
}

.done {
  text-align: center;
  padding: 40px 20px;
  max-width: 620px;
  margin: 0 auto;
}
.done .big {
  font-size: 3.5rem;
  line-height: 1;
}
.done h2 {
  margin-top: 16px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
}
.done p {
  color: var(--muted);
  margin-top: 10px;
}
.code-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px auto 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  max-width: 460px;
}
.code-box code {
  font: 700 1.3rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}
.link-out {
  word-break: break-all;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ------------------------------------------------ Detail page */
.page {
  padding: 32px 0 72px;
}
.page-narrow {
  max-width: 760px;
}
.detail-head {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.detail-head h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
}
.detail-head p {
  color: var(--muted);
}
.kv {
  display: grid;
  gap: 2px;
}
.kv dt {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.kv dd {
  margin: 0 0 12px;
  font-weight: 550;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.host-note {
  padding: 16px;
  border-radius: 16px;
  background: var(--yolk-soft);
  white-space: pre-wrap;
}
.host-note b {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.section-card + .section-card {
  margin-top: 16px;
}
.section-card h2 {
  font-size: 1.2rem;
  font-weight: 750;
  margin-bottom: 14px;
}
.note-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------ Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer a {
  color: var(--muted);
}

/* ------------------------------------------------ Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.92rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  max-width: calc(100vw - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.fade-in {
  animation: fadeIn 0.28s ease both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.loading {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

/* ------------------------------------------------ Admin */
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dash-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
}
.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stat {
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 112px;
}
.stat b {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-display);
  line-height: 1.1;
}
.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}
.blist {
  display: grid;
  gap: 14px;
}
.bcard {
  padding: 18px;
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .bcard {
    padding: 22px;
  }
}
.bcard.inactive {
  opacity: 0.62;
  box-shadow: none;
}
.bcard textarea.input {
  min-height: 52px;
}
.bcard-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.bcard-when {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.12rem;
}
.bcard-when small {
  display: block;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.bcard-who {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.93rem;
}
.bcard-who a {
  color: var(--accent);
  font-weight: 600;
}
.bcard-cols {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .bcard-cols {
    grid-template-columns: 1fr 1fr;
  }
}
.bcard-cols .label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bcard-msg {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.93rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.bcard-actions .grow {
  flex: 1;
}
.shop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.shop-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.shop-list li:last-child {
  border-bottom: 0;
}
.shop-list .q {
  min-width: 44px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.shop-list .who {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}
.menu-edit {
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .menu-edit {
    grid-template-columns: 1fr 1fr;
  }
}
.menu-edit textarea {
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}
.login {
  max-width: 420px;
  margin: 8vh auto 0;
  padding: 28px;
}
.login h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 12px 0 4px;
}
.login p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ------------------------------------------------ Utilities */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.done .cta {
  justify-content: center;
}
.mt {
  margin-top: 20px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}
