:root {
  --bg: #060810;
  --surface: rgba(10,12,15,.94);
  --surface-alt: rgba(14,15,19,.97);
  --line: rgba(52,56,70,.22);
  --line2: rgba(60,65,82,.34);
  --text: #dde5f5;
  --muted: #5c6b8a;
  --dim: #2e3a55;
  /* Brand orange — primary accent */
  --brand-orange:#f97316;
  --orange-dim:rgba(249,115,22,.12);
  --orange-border:rgba(249,115,22,.32);
  --orange-glow:0 0 0 1px rgba(249,115,22,.12), 0 14px 28px rgba(249,115,22,.14);
  --accent: #f97316;
  --accent-dark: #c2530a;
  --success: #34d399;
  --warn: #f59e0b;
  --cyan:#2dd4bf;
  --cyan-dim:rgba(45,212,191,.14);
  --cyan-border:rgba(45,212,191,.32);
  --blue:#8a9ab8;
  --blue-dim:rgba(138,154,184,.12);
  --amber:#f59e0b;
  --amber-dim:rgba(245,158,11,.12);
  --green:#34d399;
  --green-dim:rgba(52,211,153,.12);
  --red:#f87171;
  --red-dim:rgba(248,113,113,.12);
  --panel-bg:rgba(10,12,15,.94);
  --panel-bg-strong:rgba(8,9,12,.90);
  --panel-bg-alt:rgba(14,15,19,.97);
  --panel-border:rgba(52,56,70,.32);
  --panel-border-soft:rgba(52,56,70,.22);
  --shadow: 0 18px 36px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.025);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 16px;
}
.shell-home { max-width: 1100px; }
.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.topbar-actions, .button-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.headline {
  margin: 6px 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.08;
}
.support-copy, .script-body, .list-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.status-chip, .micro-chip, .nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-weight: 700;
}
.touch-button {
  min-height: 48px;
  min-width: 48px;
  padding: 0 18px;
  border: 1px solid rgba(249,115,22,.36);
  border-radius: 12px;
  background: linear-gradient(180deg, #ea6c0a, #c2530a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.touch-button.subtle {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--line);
}
.hidden { display: none !important; }
.nav-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.producer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.stack { display: grid; gap: 14px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.section-header h2 {
  margin: 4px 0 0;
  font-size: 24px;
}
.wrap { flex-wrap: wrap; }
.flow-list, .simple-list, .form-stack, .booth-grid, .metric-grid, .timer-grid {
  display: grid;
  gap: 12px;
}
.flow-item, .list-item, .metric-card, .timer-card, .booth-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-alt);
}
.flow-item {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.flow-section {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(205, 172, 223, 0.18);
  background: linear-gradient(180deg, rgba(98, 68, 132, 0.24), rgba(80, 56, 110, 0.18));
}
.flow-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.flow-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.flow-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.flow-col {
  display: grid;
  gap: 4px;
  align-content: start;
}
.flow-col-label {
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #93a7da;
}
.flow-col-value {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #eef3ff;
}
.flow-item.live { border-color: var(--accent); background: #eaf2ff; }
.flow-item.done { opacity: 0.72; }
.flow-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.flow-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.flow-side {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: start;
}
.flow-actions-compact {
  justify-content: flex-end;
}
.flow-title {
  margin: 0;
  font-size: 19px;
}
.flow-meta, .flow-notes {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.flow-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.field {
  display: grid;
  gap: 8px;
}
.checkbox-field {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.field span {
  font-size: 14px;
  font-weight: 600;
}
input, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
}
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
select[size] {
  min-height: 220px;
  padding: 8px;
}
textarea { min-height: 120px; resize: vertical; }
.script-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}
.script-card h3 {
  margin: 8px 0 10px;
  font-size: 24px;
}
.list-item {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.list-item-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.list-item-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.list-item-body {
  margin: 0;
}
.list-item-aside {
  justify-self: end;
  display: inline-flex;
  align-items: center;
}
.metric-grid, .timer-grid, .booth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.metric-card, .timer-card, .booth-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}
.booth-card-title {
  font-size: 15px;
  line-height: 1.35;
}
.metric-value, .timer-value {
  font-size: 32px;
  font-weight: 800;
}
.spacer { height: 8px; }
@media (max-width: 900px) {
  .producer-grid, .home-grid, .metric-grid, .timer-grid, .booth-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-direction: column;
  }
}
html, body {
  height: 100%;
}
body.booth-page {
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(180, 70, 20, 0.18), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(249, 115, 22, 0.08), transparent 42%),
    linear-gradient(180deg, #06080a 0%, #0a0e12 40%, #070a0e 100%);
  color: #eef3ff;
}
.booth-frame {
  height: 100dvh;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}
.compact-frame {
  grid-template-columns: 64px minmax(0, 1fr);
}
.booth-shell {
  max-width: none;
  width: 100%;
  height: calc(100dvh - 20px);
  margin: 0;
  padding: 0;
  min-height: 0;
  grid-template-rows: 58px minmax(0, 1fr);
  overflow: hidden;
}
.compact-shell {
  grid-template-rows: 58px minmax(0, 1fr);
}
.booth-rail,
body.booth-page .card,
body.booth-page .flow-item,
body.booth-page .list-item,
body.booth-page .metric-card,
body.booth-page .timer-card,
body.booth-page .booth-card,
body.booth-page .script-card,
body.booth-page input,
body.booth-page textarea,
body.booth-page select,
body.booth-page .status-chip,
body.booth-page .micro-chip,
body.booth-page .nav-pill,
body.booth-page .touch-button.subtle {
  background: linear-gradient(180deg, rgba(14, 16, 22, 0.96), rgba(8, 10, 14, 0.98));
  border-color: rgba(52, 56, 70, 0.32);
  color: #edf3ff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}
.booth-rail {
  padding: 10px 7px 58px;
  border-radius: 20px;
  display: grid;
  grid-auto-rows: min-content;
  gap: 8px;
  align-content: start;
  position: relative;
  min-height: 0;
}
.booth-rail-brand,
.rail-link {
  min-height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 8px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 4px;
}
.booth-rail-brand,
.rail-link.active {
  background: linear-gradient(180deg, rgba(249,115,22,.38), rgba(185,68,6,.50));
}
.rail-link.muted { opacity: 0.7; }
.rail-settings-button {
  position: absolute;
  left: 7px;
  bottom: 10px;
  width: 32px;
  min-height: 32px;
  z-index: 2;
  font-size: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.booth-browser-bar {
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.98), rgba(8, 10, 14, 0.98));
  border: 1px solid rgba(52, 56, 70, 0.32);
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
}
.browser-tab,
.browser-badge {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #f5f8ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.browser-tab.active {
  background: rgba(249, 115, 22, 0.14);
  font-weight: 700;
}
.browser-spacer { flex: 1; }
.booth-header {
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.booth-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.booth-title {
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}
.booth-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(52, 56, 70, 0.18);
  border: 1px solid rgba(52, 56, 70, 0.36);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}
.booth-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reference-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1.16fr 0.92fr 0.72fr;
  grid-template-rows: minmax(0, 1fr) 108px;
  gap: 10px;
  overflow: hidden;
}
.reference-panel {
  min-height: 0;
  min-width: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reference-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.reference-panel-head h2 {
  margin: 4px 0 0;
  font-size: 16px;
}
.reference-icons,
.reference-actions,
.reference-flow-top {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.pco-inline-panel {
  margin: 8px 0 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(52,56,70,.30);
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.98), rgba(7, 8, 12, 0.98));
  display: grid;
  gap: 8px;
}
.icon-chip {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
}
.script-doc-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin: 0 0 8px;
}
.script-doc-editor input {
  min-width: 0;
}
.script-panel .script-card {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}
.script-doc-frame,
.script-doc-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.script-doc-frame iframe {
  border: 0;
  border-radius: 12px;
  background: rgba(5, 10, 24, 0.9);
}
.script-doc-empty {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  padding: 24px;
}
.flow-panel {
  overflow: hidden;
}
.compact-flow-list {
  min-height: 0;
  overflow: auto;
}
.right-panel {
  overflow: hidden;
}
.presentation-column {
  min-height: 0;
  display: grid;
  grid-template-rows: 148px minmax(0, 1fr);
  gap: 6px;
}
.presentation-column.full-strip {
  grid-template-rows: minmax(0, 1fr);
}
.preview-hero,
.presentation-tile {
  border-radius: 12px;
  border: 1px solid rgba(52, 56, 70, 0.28);
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.34), rgba(12, 10, 8, 0.24));
  position: relative;
  overflow: hidden;
  padding: 8px;
}
.presentation-stack {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(3, 252px);
  grid-auto-rows: 252px;
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
  scroll-behavior: smooth;
}
.preview-label {
  font-size: 10px;
  color: #dfe7ff;
  margin-bottom: 6px;
}
.preview-screen {
  height: calc(100% - 22px);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.34), rgba(12, 10, 8, 0.2));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-placeholder {
  padding: 18px;
  text-align: center;
  color: #d0ddff;
  font-size: 12px;
}
.presentation-tile {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 6px;
  padding: 6px;
}
.presentation-tile.live {
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 180, 0.60),
    0 0 0 1px rgba(249, 115, 22, 0.45),
    0 0 24px rgba(249, 115, 22, 0.22);
  background: linear-gradient(180deg, rgba(22, 10, 4, 0.46), rgba(14, 6, 2, 0.30));
}
.presentation-tile-number {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: rgba(18, 30, 70, 0.6);
  color: #dce6ff;
}
.presentation-tile-art {
  grid-column: 2;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.36), rgba(12, 10, 8, 0.24));
}
.presentation-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.presentation-tile-status {
  position: absolute;
  right: 8px;
  top: 8px;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #f4f7ff;
  background: rgba(20, 14, 8, 0.74);
  border: 1px solid rgba(52, 56, 70, 0.32);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.presentation-tile-status.next {
  background: rgba(30, 20, 12, 0.62);
}
.presentation-tile-empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 11px;
  color: #d0ddff;
}
body.booth-page .right-panel {
  padding: 8px;
}
body.booth-page .right-panel .reference-panel-head {
  margin-bottom: 6px;
}
body.booth-page .right-panel .reference-panel-head h2 {
  font-size: 13px;
}
.right-panel {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.bottom-strip {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 0;
}
.reference-timers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.booth-page .bottom-strip > * {
  min-height: 0;
}
body.booth-page .reference-timers .timer-card {
  height: 100%;
  min-height: 0;
  padding: 8px 10px 10px;
  align-content: start;
}
body.booth-page .eyebrow,
body.booth-page .support-copy,
body.booth-page .script-body,
body.booth-page .list-copy,
body.booth-page .flow-meta,
body.booth-page .flow-col-label,
body.booth-page .flow-notes {
  color: #9db2ea;
}
body.booth-page .headline,
body.booth-page .section-header h2,
body.booth-page .flow-title,
body.booth-page .script-card h3,
body.booth-page strong {
  color: #f2f6ff;
}
body.booth-page .nav-pill.active,
body.booth-page .touch-button {
  background: linear-gradient(180deg, #ea6c0a, #c2530a);
  border: 1px solid rgba(249,115,22,.32);
  color: #fff;
}
body.booth-page .status-chip {
  background: linear-gradient(180deg, rgba(14,12,10,.96), rgba(8,7,6,.98));
  border-color: rgba(52,56,70,.32);
  color: #edf3ff;
}
.live-chip {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
body.booth-page .micro-chip {
  min-height: 34px;
  font-size: 11px;
  padding: 0 12px;
}
body.booth-page .compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
}
body.booth-page .compact-panel {
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}
body.booth-page .flow-list,
body.booth-page .simple-list,
body.booth-page .form-stack {
  gap: 8px;
}
body.booth-page .flow-item {
  border-radius: 10px;
  padding: 12px 12px 10px;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.98), rgba(8, 10, 13, 0.98));
  border: 1px solid rgba(52, 56, 70, 0.22);
}
body.booth-page .flow-section {
  background: linear-gradient(180deg, rgba(208, 158, 220, 0.28), rgba(188, 142, 205, 0.22));
  border-color: rgba(233, 196, 244, 0.16);
}
body.booth-page .flow-section.live {
  background: linear-gradient(180deg, rgba(174, 228, 148, 0.34), rgba(154, 211, 126, 0.28));
  border-color: rgba(210, 243, 193, 0.24);
}
body.booth-page .flow-section-title {
  color: #f2f5ff;
}
body.booth-page .flow-title {
  font-size: 13px;
}
body.booth-page .flow-col-label,
body.booth-page .flow-notes {
  font-size: 11px;
}
body.booth-page .flow-col-value {
  font-size: 13px;
  color: #f3f7ff;
}
body.booth-page .flow-notes {
  margin: 0;
  line-height: 1.4;
}
body.booth-page .flow-state-chip {
  min-width: 62px;
  justify-content: center;
  background: rgba(24, 40, 98, 0.9);
}
body.booth-page .flow-item.live {
  background: linear-gradient(180deg, rgba(22, 10, 4, 0.96), rgba(14, 6, 2, 0.98));
  border-color: rgba(249, 115, 22, 0.35);
}
body.booth-page .flow-item.done { opacity: 0.62; }
body.booth-page .flow-item + .flow-item {
  margin-top: 2px;
}
body.booth-page .flow-section + .flow-item,
body.booth-page .flow-item + .flow-section,
body.booth-page .flow-section + .flow-section {
  margin-top: 2px;
}
body.booth-page .list-item {
  padding: 12px 14px;
  min-width: 0;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.98), rgba(8, 10, 13, 0.98));
  border: 1px solid rgba(52, 56, 70, 0.22);
}
body.booth-page .list-item,
body.booth-page .script-card,
body.booth-page .timer-card {
  border-radius: 16px;
}
body.booth-page .reference-timer-card {
  position: relative;
  display: grid;
  gap: 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 12, 4, 0.92), rgba(14, 8, 2, 0.96));
  border: 1px solid rgba(249, 115, 22, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(4, 4, 4, 0.24);
}
body.booth-page .timer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
body.booth-page .timer-badge {
  min-height: 18px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(249, 115, 22, 0.85);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
body.booth-page .timer-control-row {
  display: inline-flex;
  gap: 6px;
}
body.booth-page .timer-control-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 10, 2, 0.92);
  color: rgba(249, 180, 120, 0.95);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
body.booth-page .timer-control-button.secondary {
  background: rgba(14, 7, 2, 0.9);
}
body.booth-page .timer-name {
  color: #edf2ff;
  font-size: 11px;
  font-weight: 600;
}
body.booth-page .field span {
  color: #c7d5ff;
  font-size: 12px;
}
body.booth-page input,
body.booth-page textarea {
  background: rgba(6, 14, 35, 0.9);
}
body.booth-page select[size] {
  overflow-y: auto;
}
body.booth-page .metric-value,
body.booth-page .timer-value {
  color: #f3f7ff;
  font-size: 15px;
  line-height: 1;
}
body.booth-page .timer-card .button-row,
body.booth-page .flow-actions {
  gap: 6px;
}
body.booth-page .timer-card .touch-button,
body.booth-page .flow-actions .touch-button,
body.booth-page .metric-card .touch-button {
  min-height: 32px;
  min-width: 32px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 10px;
}
body.booth-page .flow-actions-compact .touch-button {
  min-width: 48px;
}
body.booth-page .metric-card {
  gap: 4px;
}
body.booth-page .metric-card .eyebrow,
body.booth-page .timer-card .eyebrow {
  font-size: 9px;
}
body.booth-page .reference-timer-card .timer-value {
  font-family: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
}
body.booth-page .list-item {
  padding: 12px 14px;
  min-width: 0;
  background: linear-gradient(180deg, rgba(12, 22, 58, 0.98), rgba(10, 20, 50, 0.98));
  border: 1px solid rgba(124, 152, 235, 0.16);
}
body.booth-page .list-item > div:first-child {
  min-width: 0;
}
body.booth-page .list-copy {
  font-size: 11px;
  line-height: 1.45;
  color: #9db2ea;
}
body.booth-page .list-item-title {
  color: #f2f6ff;
}
body.booth-page .list-item-aside {
  align-self: center;
}
body.booth-page .preview-tile h3 {
  font-size: 18px;
}
body.booth-page .preview-tile {
  min-height: 0;
  padding: 10px;
}
body.booth-page .preview-stack {
  grid-template-rows: 126px 90px minmax(0, 1fr) minmax(0, 1fr);
}
body.booth-page .script-body {
  font-size: 12px;
  line-height: 1.5;
}
body.booth-page .reference-panel-head h2 {
  font-size: 14px;
}
body.booth-page .booth-header {
  min-height: 0;
}
body.booth-page .filter-pill {
  min-height: 30px;
  font-size: 11px;
}
body.booth-page .section-header {
  align-items: center;
}
body.booth-page .section-header h2 {
  margin: 2px 0 0;
  font-size: 18px;
}
body.booth-page .headline {
  font-size: 24px;
}
body.booth-page .status-chip.live-chip,
body.booth-page .micro-chip,
body.booth-page .compact {
  min-height: 30px;
  font-size: 11px;
}
.compact-grid {
  min-height: 0;
  display: grid;
  gap: 10px;
}
.compact-grid.two-column {
  grid-template-columns: 1fr 1fr;
}
.home-booth-grid {
  height: 100%;
  align-items: stretch;
}
.compact-booth-grid {
  grid-template-columns: 1fr 1fr;
}
.compact-booth-grid .booth-card {
  min-height: 88px;
  align-content: center;
}
body.booth-page .booth-card {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.98), rgba(8, 10, 13, 0.98));
  border: 1px solid rgba(52, 56, 70, 0.22);
  transition: border-color .15s, transform .15s, background .15s;
}
body.booth-page .booth-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(18, 12, 6, 0.98), rgba(12, 8, 4, 0.98));
}
body.booth-page .booth-card-title {
  color: #f2f6ff;
}
.touch-shell {
  max-width: none;
}
.touch-panel {
  display: grid;
  place-content: center;
  gap: 18px;
}
.edit-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 92vw);
  padding: 12px;
  background: rgba(4, 8, 22, 0.45);
  backdrop-filter: blur(10px);
}
.edit-drawer-card {
  height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(52, 56, 70, 0.32);
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.98), rgba(8, 7, 6, 0.99));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}
.edit-drawer .form-stack {
  min-height: 0;
  overflow: auto;
}
@media (max-width: 1100px) {
  .booth-frame {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }
  .booth-rail {
    grid-auto-flow: column;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .booth-shell {
    height: auto;
    overflow: visible;
  }
  .reference-grid,
  .compact-grid.two-column,
  .bottom-strip {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .compact-booth-grid {
    grid-template-columns: 1fr;
  }
}


/* sync-reference-shell:start */
.sync-app {
  height: 100svh;
  display: grid;
  grid-template-columns: 52px 1fr 1fr 0.92fr;
  grid-template-rows: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}
.sync-nav {
  grid-row: 1 / span 2;
  background: var(--surface);
  border: 1px solid rgba(52,56,70,.32);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  box-shadow: var(--shadow);
}
.sync-nav-link {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-align: center;
  line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.sync-nav-link:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.sync-nav-link.active {
  background: var(--orange-dim, rgba(249,115,22,.12));
  border-color: rgba(249,115,22,.32);
  color: var(--brand-orange, #f97316);
}
.sync-topbar {
  grid-column: 2 / span 3;
  background: var(--panel-bg-strong);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  box-shadow: var(--shadow);
}
.sync-topbar-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.sync-topbar-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}
.sync-topbar-dot {
  color: var(--dim);
}
.sync-live-spine {
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(106px, .7fr);
  gap: 7px;
  align-items: stretch;
  min-width: min(560px, 52vw);
}
.sync-live-spine-cell {
  min-width: 0;
  background: linear-gradient(180deg, rgba(10,11,14,.96), rgba(7,8,11,.96));
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 5px 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sync-live-spine-now {
  border-color: rgba(249, 115, 22, .35);
  background: rgba(249, 115, 22, .08);
}
.sync-live-spine-next {
  border-color: rgba(60, 65, 80, .42);
  background: rgba(50, 55, 65, .10);
}
.sync-live-spine-clock {
  border-color: rgba(61, 220, 132, .24);
  background: rgba(61, 220, 132, .07);
}
.sync-live-spine-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.sync-live-spine-value {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}
.sync-live-spine-clock .sync-live-spine-value {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  color: var(--success);
  letter-spacing: -.02em;
}
.sync-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(52,56,70,.32);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}
.sync-chip-live {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.28);
  color: #fb923c;
}
.sync-live-spine + .sync-chip {
  margin-left: 0;
}
.sync-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sync-col-left { grid-column: 2; }
.sync-col-mid { grid-column: 3; }
.sync-col-right { grid-column: 4; }
.sync-col-stack {
  display: grid;
  gap: 10px;
  grid-template-rows: 1fr 1fr;
}
.sync-col-span {
  grid-column: 2 / span 3;
}
.sync-card {
  background: var(--panel-bg-strong);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sync-card-header {
  padding: 11px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--panel-border-soft);
}
.sync-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sync-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #f2f6ff;
  margin-top: 2px;
}
.sync-card-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.sync-booth-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}
.sync-touch-card {
  justify-content: center;
}
.sync-touch-body {
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: 18px;
}
.sync-touch-note {
  margin: 0;
  color: #9db2ea;
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
}
.sync-touch-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .sync-app {
    grid-template-columns: 52px 1fr 1fr;
  }
  .sync-topbar {
    grid-column: 2 / span 2;
  }
  .sync-col-right {
    grid-column: 2 / span 2;
  }
  .sync-col-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .sync-col-span {
    grid-column: 2 / span 2;
  }
}
@media (max-width: 768px) {
  .sync-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 100svh;
  }
  .sync-nav {
    grid-row: auto;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
  }
  .sync-topbar,
  .sync-col,
  .sync-col-right,
  .sync-col-span {
    grid-column: 1;
  }
  .sync-topbar {
    min-height: 52px;
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .sync-chip {
    margin-left: 0;
  }
  .sync-live-spine {
    order: 3;
    flex-basis: 100%;
    min-width: 100%;
    grid-template-columns: 1fr;
  }
  .sync-col-stack {
    grid-template-columns: 1fr;
  }
}
/* sync-reference-shell:end */


/* sync-home-layout:start */
.sync-home-main {
  grid-column: 2 / span 3;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 10px;
  overflow: hidden;
}
.sync-home-main .sync-card {
  min-height: 0;
}
.sync-home-main .sync-card-body {
  min-height: 0;
}
@media (max-width: 1100px) {
  .sync-home-main {
    grid-column: 2 / span 2;
    grid-template-columns: 1fr 1fr;
  }
  .sync-home-main > :first-child {
    grid-column: 1 / span 2;
  }
}
@media (max-width: 768px) {
  .sync-home-main {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .sync-home-main > :first-child {
    grid-column: auto;
  }
}
/* sync-home-layout:end */


/* utility-pages-core-visual-pass:start */
body.sync-utility-page {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}
body.sync-utility-page .sync-app {
  gap: var(--sync-shell-gap, 10px);
  padding: var(--sync-shell-padding, 10px);
  grid-template-rows: 52px minmax(0, 1fr);
}
body.sync-utility-page .sync-nav,
body.sync-utility-page .sync-topbar,
body.sync-utility-page .sync-card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}
body.sync-utility-page .sync-topbar {
  min-height: 52px;
}
body.sync-utility-page .sync-card {
  border-radius: 14px;
}
body.sync-utility-page .sync-card-header {
  border-color: var(--line);
  padding: 12px 14px 10px;
}
body.sync-utility-page .sync-card-title {
  font-size: 13px;
  font-weight: 600;
}
body.sync-utility-page .sync-card-body {
  padding: 12px;
  gap: 10px;
}
body.sync-utility-page .sync-live-spine-cell,
body.sync-utility-page .list-item,
body.sync-utility-page .td-empty {
  background: var(--surface-alt);
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: none;
}
body.sync-utility-page .list-item {
  padding: 13px 14px;
}
body.sync-utility-page .list-item-title {
  color: var(--text);
}
body.sync-utility-page .list-copy {
  color: var(--muted);
}
body.sync-utility-page .micro-chip {
  background: rgba(52, 56, 70, .18);
  border-color: rgba(52, 56, 70, .38);
  color: var(--text);
  border-radius: 5px;
  box-shadow: none;
}
body.sync-utility-page .sync-chip-live {
  background: rgba(249, 115, 22, .15);
  border-color: rgba(249, 115, 22, .35);
  color: var(--brand-orange, #f97316);
}
@media (max-width: 768px) {
  body.sync-utility-page {
    overflow: auto;
  }
  body.sync-utility-page .sync-app {
    height: auto;
    min-height: 100svh;
    padding: 10px;
    gap: 10px;
  }
}
/* utility-pages-core-visual-pass:end */
