:root {
  --bg: #070806;
  --panel: rgba(10, 16, 12, 0.82);
  --ink: #e7f6ec;
  --muted: #7d9788;
  --neon: #3dff8a;
  --neon-dim: #1a8f52;
  --amber: #e0a85c;
  --line: rgba(61, 255, 138, 0.22);
  --danger: #ff6b5a;
  --glow: 0 0 28px rgba(61, 255, 138, 0.16);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Cascadia Code", monospace;
}
* { box-sizing: border-box; }
html, body.desk {
  height: 100%;
  overflow: hidden;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(224, 168, 92, 0.14), transparent 55%),
    radial-gradient(700px 500px at 92% 8%, rgba(61, 255, 138, 0.08), transparent 50%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(61, 255, 138, 0.035) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(61, 255, 138, 0.03) 31px 32px),
    #070806;
}
body.desk::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 78%, rgba(224, 168, 92, 0.06), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
}

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.78);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--neon);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(61, 255, 138, 0.35);
}
.brand em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  margin-left: 0.35rem;
  text-shadow: none;
}
nav { display: flex; gap: 0.15rem; margin-left: auto; }
.tab, .text {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0.4rem 0.75rem;
}
.tab {
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.tab:hover, .text:hover { color: var(--neon); }
.tab.is-on {
  color: var(--neon);
  border-bottom-color: var(--neon);
  text-shadow: 0 0 12px rgba(61, 255, 138, 0.4);
}
.cta {
  background: transparent;
  color: var(--neon);
  border: 1px solid var(--neon);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: var(--glow);
}
.cta:hover { background: rgba(61, 255, 138, 0.12); }

.dash {
  height: calc(100% - 6.6rem);
  min-height: 0;
  padding: 0.85rem 1.1rem 0.5rem;
}
.pane { display: none; height: 100%; min-height: 0; }
.pane.is-on { display: grid; gap: 0.75rem; }
#pane-floor.is-on {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
#pane-solutions.is-on,
#pane-live.is-on {
  grid-template-columns: 1fr;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--glow);
  padding: 0.9rem 1rem;
  min-height: 0;
  overflow: auto;
}
h2 { margin: 0; font-size: 0.95rem; font-weight: 650; letter-spacing: 0.02em; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--neon);
  margin: 0 0 0.25rem;
}
.quiet { color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0; }
.today { display: flex; flex-direction: column; gap: 0.3rem; }
.today strong { color: var(--neon); font-size: 1.45rem; letter-spacing: -0.03em; }
.spark { width: 100%; height: 8.5rem; margin-top: 0.4rem; }

.seats, .queue { display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.seat, .q-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.7rem;
  background: rgba(8, 14, 10, 0.7);
  border: 1px solid rgba(61, 255, 138, 0.14);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
}
.seat { justify-content: space-between; }
.seat-actions { display: flex; gap: 0.35rem; align-items: center; flex: 0 0 auto; }
.q-item > div { min-width: 0; flex: 1; }
.seat.occupied { border-color: rgba(224, 168, 92, 0.45); box-shadow: 0 0 16px rgba(224, 168, 92, 0.12); }
.seat.limited { border-color: rgba(255, 107, 90, 0.55); }
.seat strong, .q-item strong { display: block; font-size: 0.88rem; }
.q-item .mark {
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--neon); color: #071109; display: grid; place-items: center;
  font-size: 0.7rem; flex: 0 0 auto; font-weight: 800;
}
.q-item .mark.live { background: var(--amber); }

.live-card { display: flex; flex-direction: column; }
.live-seats { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
.chip.is-on { color: var(--neon); border-color: var(--neon); }
.term {
  flex: 1;
  min-height: 12rem;
  margin-top: 0.7rem;
  background:
    linear-gradient(180deg, rgba(61, 255, 138, 0.05), transparent 18%),
    #050807;
  color: #b7f5cc;
  border: 1px solid rgba(61, 255, 138, 0.18);
  border-radius: 12px;
  padding: 0.85rem 0.6rem 0.85rem 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow: auto;
  white-space: pre-wrap;
}
.term.empty { color: #8fb8a0; }
.term ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ln;
}
.term li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.7rem;
  padding: 0 0.85rem 0 0;
}
.term li::before {
  counter-increment: ln;
  content: counter(ln);
  color: #3d5f4d;
  text-align: right;
  user-select: none;
}
.term .user { color: var(--amber); }
.term .tool { color: #8be0ff; }
.term .ask { color: #ffb4a8; }
.term .cursor { color: var(--neon); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.checkin { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
input, select, textarea, button {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  background: #0b120e;
  color: var(--ink);
  border-radius: 10px;
}
textarea { width: 100%; min-height: 3rem; margin: 0.3rem 0; }
form button, .checkin button[type="submit"] {
  background: var(--neon);
  color: #071109;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
.seat button {
  background: transparent;
  color: var(--amber);
  border: 1px solid rgba(224, 168, 92, 0.5);
}

.health {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.45rem 1.2rem 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.85);
}
.bar {
  flex: 1;
  height: 0.45rem;
  background: rgba(61, 255, 138, 0.12);
  border-radius: 999px;
  overflow: hidden;
  max-width: 14rem;
}
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-dim), var(--neon)); width: 40%; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 5, 0.78);
  display: grid;
  place-items: center;
  z-index: 12;
  backdrop-filter: blur(10px);
}
.modal[hidden], [hidden] { display: none !important; }
.modal-card {
  width: min(42rem, calc(100% - 2rem));
  max-height: 92vh;
  overflow: auto;
  background: #0c120e;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 0 80px rgba(61, 255, 138, 0.12), 0 28px 80px rgba(0, 0, 0, 0.55);
}
.modal-card.has-qr {
  position: relative;
  width: min(44rem, calc(100% - 1.5rem));
  padding: 2.4rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.modal-card.has-qr .card-head {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  margin: 0;
}
.modal-card.has-qr .card-head h2,
.modal-card.has-qr .checkin,
.modal-card.has-qr .quiet { display: none; }
.qr-stage {
  display: grid;
  place-items: center;
  padding: 0.2rem 0;
}
.qr-stage img {
  display: block;
  width: min(80vmin, 34rem);
  height: auto;
  background: #fff;
  image-rendering: pixelated;
  border-radius: 8px;
}
.add { margin-top: 0.7rem; }
.add summary { cursor: pointer; color: var(--neon); font-weight: 600; }
.row { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }

@media (max-width: 900px) {
  #pane-floor.is-on { grid-template-columns: 1fr; }
  html, body.desk { overflow: auto; height: auto; }
  .dash { height: auto; }
  nav { margin-left: 0; }
  .top { flex-wrap: wrap; }
}

/* Desk sign-in. The desk is reachable from the internet, so the floor is
   behind a password rather than behind being physically at the counter. */
.signin {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 8, 0.92);
  backdrop-filter: blur(6px);
}
.signin[hidden] { display: none; }
.signin-card {
  width: min(360px, calc(100vw - 3rem));
  display: grid;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid rgba(61, 255, 138, 0.28);
  border-radius: 14px;
  background: #0c120e;
}
.signin-card h1 { margin: 0; font-size: 1.25rem; }
.signin-card input {
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #070b08;
  color: inherit;
  font: inherit;
}
.signin-card button {
  padding: 0.6rem;
  border: 0;
  border-radius: 8px;
  background: #3dff8a;
  color: #06120b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Footer status pills. The printer one matters most: it is the only part of
   the salon that stayed in the room. */
.health .pill {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
}
.health .pill.is-ok { border-color: rgba(61, 255, 138, 0.5); color: #3dff8a; }
.health .pill.is-bad { border-color: rgba(255, 122, 122, 0.6); color: #ff9d9d; }
