/* Asteria studio view: the site's palette and type, laid out as a calm working screen. */
:root {
  --sand: #efe6d8; --paper: #f7f1e8; --linen: #e4d6c2; --line: #d8c8b2;
  --cocoa: #2f221b; --taupe: #6b5848; --clay: #a0634a; --forest: #16241d;
  --sage: #b5c4a4; --gold: #c9a45c; --danger: #9b3b2c; --danger-soft: #f3dfd8;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 3.2vw, 40px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--cocoa); font: 16px/1.5 "Rubik", "Heebo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: 0.35; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
[hidden] { display: none !important; }

.st { max-width: 1040px; margin: 0 auto; padding: 0 var(--pad) 80px; }

/* Header */
.st-top { display: flex; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.st-logo { font-family: "Young Serif", Georgia, serif; font-size: 28px; color: var(--cocoa); text-decoration: none; letter-spacing: -0.01em; }
.st-logo i { font-style: normal; font-size: 0.5em; color: var(--clay); vertical-align: super; margin-inline-start: 2px; }
.st-tag { padding: 5px 12px; border-radius: 999px; background: var(--forest); color: var(--paper); font-size: 13px; }
.st-tools { display: flex; gap: 8px; margin-inline-start: auto; align-items: center; }
.st-lang, .st-reset, .st-back { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; color: var(--cocoa); text-decoration: none; display: inline-flex; align-items: center; transition: background 0.25s, scale 0.2s var(--ease); }
.st-lang:hover, .st-reset:hover, .st-back:hover { background: var(--sand); }
.st-lang:active, .st-reset:active, .st-back:active { scale: 0.95; }
.st-back { background: var(--cocoa); color: var(--paper); border-color: var(--cocoa); }
.st-back:hover { background: var(--clay); border-color: var(--clay); }

/* Numbers */
.st-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 32px; }
.st-kpi { padding: 18px 18px 16px; border-radius: 22px; background: var(--sand); border: 1px solid var(--line); }
.st-kpi b { display: block; font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.st-kpi small { font-size: 0.45em; color: var(--taupe); margin-inline-start: 2px; }
.st-kpi > span { display: block; margin-top: 6px; font-size: 13px; color: var(--taupe); }

/* Day header */
.st-dayhead { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.st-dayhead h1 { margin: 0; font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: clamp(24px, 3.2vw, 34px); min-width: 0; }
.st-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; transition: background 0.25s, scale 0.2s var(--ease); }
.st-arrow:hover:not(:disabled) { background: var(--sand); }
.st-arrow:active:not(:disabled) { scale: 0.92; }
.st-arrow svg, .st-chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .st-arrow svg { transform: scaleX(-1); }
.st-today { margin-inline-start: auto; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--sage); color: var(--forest); font-size: 14px; transition: scale 0.2s var(--ease); }
.st-today:active:not(:disabled) { scale: 0.95; }

/* Classes */
.st-classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-class { border-radius: 22px; background: #fffaf3; border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.4s var(--ease); }
.st-class.is-open { border-color: var(--taupe); box-shadow: 0 18px 40px -26px rgba(47, 34, 27, 0.45); }
.st-class.is-new { animation: stNew 2.4s var(--ease); }
@keyframes stNew { 0%, 40% { box-shadow: 0 0 0 4px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }
.st-class.is-past .st-row { opacity: 0.62; }
.st-row { width: 100%; display: grid; grid-template-columns: 74px minmax(0, 1fr) 150px auto 24px; align-items: center; gap: 14px; padding: 14px 18px; border: 0; background: none; text-align: start; border-radius: 22px; }
.st-row:hover .st-chev { color: var(--clay); }
.st-time { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.st-time small { display: block; font-size: 12px; font-weight: 400; color: var(--taupe); }
.st-what strong { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.st-what > span { font-size: 13px; color: var(--taupe); }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.st-fill { display: flex; align-items: center; gap: 10px; }
.st-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--linen); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--forest); transform: scaleX(var(--f)); transform-origin: var(--origin, left); transition: transform 0.6s var(--ease); }
[dir="rtl"] .st-bar i { --origin: right; }
.st-class.is-full .st-bar i { background: var(--clay); }
.st-fill b { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 32px; }
.st-chip { padding: 4px 10px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-size: 12px; white-space: nowrap; }
.st-class.is-cancelled .st-chip { background: var(--cocoa); color: var(--paper); }
.st-class.is-cancelled .st-what strong { text-decoration: line-through; text-decoration-color: var(--clay); }
.st-chev { color: var(--taupe); transition: transform 0.4s var(--ease), color 0.25s; }
.st-class.is-open .st-chev { transform: rotate(180deg); }
.st-closed { padding: 40px; text-align: center; border-radius: 22px; background: var(--sand); color: var(--taupe); }

/* Roster */
.st-roster { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.st-class.is-open .st-roster { grid-template-rows: 1fr; }
.st-in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 28px; padding: 0 18px; }
.st-class.is-open .st-in { padding-bottom: 18px; }
.st-col { padding-top: 14px; border-top: 1px solid var(--line); }
.st-col h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--taupe); display: flex; gap: 6px; }
.st-col h3 span { color: var(--cocoa); }
.st-people, .st-wait { list-style: none; margin: 0; padding: 0; }
.st-p { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px dashed var(--line); }
.st-p:last-child { border-bottom: 0; }
.st-seat { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-size: 12px; font-variant-numeric: tabular-nums; }
.st-name { flex: 1; min-width: 0; }
.st-check i { font-style: normal; }
.st-name em { display: inline-block; margin-inline-start: 8px; font-style: normal; font-size: 12px; color: var(--clay); }
.st-p.is-out .st-name { color: var(--taupe); text-decoration: line-through; }
.st-p.is-site { background: linear-gradient(90deg, rgba(201, 164, 92, 0.16), transparent); border-radius: 12px; padding-inline: 6px; margin-inline: -6px; }
.st-p.is-site .st-seat { background: var(--gold); color: var(--cocoa); }
.st-mini { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13px; transition: background 0.25s, border-color 0.25s, scale 0.2s var(--ease); }
.st-mini:hover { background: var(--danger-soft); border-color: var(--danger-soft); color: var(--danger); }
.st-p.is-out .st-mini:hover { background: var(--sage); border-color: var(--sage); color: var(--forest); }
.st-mini:active { scale: 0.94; }

/* Attendance switch */
.st-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--taupe); }
.st-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-check span { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--linen); transition: background 0.3s; }
.st-check span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fffaf3; box-shadow: 0 1px 3px rgba(47, 34, 27, 0.25); transition: translate 0.35s var(--ease); }
.st-check input:checked + span { background: var(--forest); }
.st-check input:checked + span::after { translate: 16px 0; }
[dir="rtl"] .st-check input:checked + span::after { translate: -16px 0; }
.st-check input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

.st-wait { counter-reset: w; }
.st-wait li { counter-increment: w; display: flex; align-items: center; gap: 10px; min-height: 40px; }
.st-wait li::before { content: counter(w); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1px solid var(--line); }
.st-wait li.is-site::before { background: var(--gold); border-color: var(--gold); }
.st-empty, .st-note { margin: 6px 0; font-size: 14px; color: var(--taupe); }

.st-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--cocoa); color: var(--paper); font-size: 14px; white-space: nowrap; transition: background 0.25s, scale 0.2s var(--ease); }
.st-btn:hover { background: var(--clay); }
.st-btn:active { scale: 0.95; }
.st-btn.is-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.st-btn.is-danger:hover { background: var(--danger); color: var(--paper); }
.st-move, .st-cancel { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.st-move label { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 12px; color: var(--taupe); }
.st-move select, .st-cancel input { width: 100%; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--cocoa); }
.st-cancel input { flex: 1; min-width: 0; }
.st-cancelled { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--danger-soft); color: var(--danger); display: grid; gap: 10px; justify-items: start; }
.st-cancelled p { margin: 0; font-size: 14px; }
.st-cancelled strong { margin-inline-end: 6px; }

/* Toast */
.st-toast { position: fixed; inset-inline: 0; bottom: 24px; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: var(--forest); color: var(--paper); font-size: 14px; box-shadow: 0 16px 40px -18px rgba(22, 36, 29, 0.6); z-index: 10; }

@media (max-width: 760px) {
  .st-top { flex-wrap: wrap; gap: 10px; }
  .st-tools { width: 100%; margin-inline-start: 0; }
  .st-back { margin-inline-start: auto; }
  .st-kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 24px; }
  .st-row { grid-template-columns: 58px minmax(0, 1fr) 24px; gap: 10px; padding: 14px; }
  .st-fill { grid-column: 2 / 3; grid-row: 2; }
  .st-chip { grid-column: 2 / 3; grid-row: 3; justify-self: start; }
  .st-in { grid-template-columns: 1fr; padding: 0 14px; }
  .st-dayhead h1 { font-size: 22px; }
  .st-cancel { flex-wrap: wrap; }
  .st-cancel .st-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Messages from the contact form */
.st-inbox { margin-bottom: 32px; padding: 20px; border-radius: 22px; background: #fffaf3; border: 1px solid var(--line); }
.st-inbox-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.st-inbox-head h2 { margin: 0; font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 22px; }
.st-badge { padding: 3px 10px; border-radius: 999px; background: var(--gold); font-size: 12px; }
.st-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-msg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); transition: opacity 0.3s; }
.st-msg.is-done { opacity: 0.55; }
.st-msg.is-new { animation: stNew 2.4s var(--ease); }
.st-msg-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.st-msg-top bdi { color: var(--taupe); }
.st-msg-topic { padding: 2px 8px; border-radius: 999px; background: var(--sand); font-size: 12px; }
.st-msg-top time { font-size: 12px; color: var(--taupe); }
.st-msg p { grid-column: 1; margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.st-msg p em { font-style: normal; color: var(--taupe); }
.st-msg .st-check { grid-column: 2; grid-row: 1 / span 2; }
.st-more { margin-top: 10px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; transition: background 0.25s; }
.st-more:hover { background: var(--sand); }
@media (max-width: 760px) {
  .st-inbox { padding: 16px; }
  .st-msg { grid-template-columns: 1fr; }
  .st-msg .st-check { grid-column: 1; grid-row: auto; }
}

/* Shared bookings: the live badge, booking tags, the PIN screen */
.st-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--sage); color: var(--forest); font-size: 13px; }
.st-live[hidden] { display: none; }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); animation: stPulse 1.6s ease-in-out infinite; }
@keyframes stPulse { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: 0.35; scale: 0.7; } }
.st-vtag { font-style: normal; font-size: 12px; color: var(--taupe); font-variant-numeric: tabular-nums; }
.st-move { flex-wrap: wrap; }
.st-move-seat { flex: 1 1 100%; display: grid; gap: 4px; font-size: 12px; color: var(--taupe); }
.st-move-seat select { width: 100%; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--cocoa); }
.st-lock { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(247, 241, 232, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.st-lock form { width: min(400px, 100%); display: grid; gap: 12px; justify-items: center; text-align: center; padding: 32px 26px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(47, 34, 27, 0.45); }
.st-lock h1 { margin: 6px 0 0; font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 28px; }
.st-lock p { margin: 0; color: var(--taupe); font-size: 15px; line-height: 1.5; }
.st-lock input { width: 100%; min-height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--sand); text-align: center; font-size: 22px; letter-spacing: 0.4em; color: var(--cocoa); }
.st-lock input:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.st-lock .st-btn { width: 100%; min-height: 50px; font-size: 16px; }
.st-pin-err { color: var(--danger) !important; }
.st-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
