
/* SeatHall Interactive Multi-Mode Studio Styles */
.sh-hero { padding: 24px 0 28px; }
.sh-hero-hd {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap;
}
.sh-hero-hd.center {
  flex-direction: column; align-items: center; text-align: center; max-width: 820px; margin: 0 auto 20px;
}
.sh-hero h1 {
  margin: 0 0 8px; font-size: clamp(1.85rem, 3.3vw, 2.85rem); font-weight: 500;
  line-height: 1.08; letter-spacing: -0.025em; color: var(--ink);
}
.sh-hero h1 .acc { color: var(--acc); font-weight: 600; }
.sh-hero-sub { margin: 0; color: var(--muted); font-size: 1rem; max-width: 720px; }
.sh-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-pill {
  padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink); white-space: nowrap;
}

/* Studio Frame (Direction B Mint/White Tactile Shell) */
.sh-shell {
  background: var(--panel); border: 2px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08); overflow: hidden;
}
.sh-bar {
  background: var(--band); border-bottom: 1px solid var(--line); padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow-x: auto;
}
.sh-bar-grp { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sh-seg {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); flex-shrink: 0;
}
.sh-btn {
  padding: 6px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); font-family: var(--font-ui); font-size: 0.78rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; line-height: 1.2;
}
.sh-btn:hover { border-color: var(--acc); }
.sh-btn.on, .sh-btn.pri {
  background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 600;
}
.sh-btn.seg-btn { border: 0; background: transparent; color: var(--muted); }
.sh-btn.seg-btn.on { background: var(--acc); color: var(--acc-ink); }
.sh-btn.ghost { background: var(--elev); }

/* 4-Zone Studio Body */
.sh-work { display: flex; height: 564px; min-height: 500px; }
.sh-rail {
  width: 54px; flex-shrink: 0; background: var(--band); border-right: 1px solid var(--line);
  padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.sh-rail-top { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.sh-rbtn {
  width: 100%; padding: 7px 2px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--ink); font-family: var(--font-ui); font-size: 0.75rem; font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
}
.sh-rbtn:hover, .sh-rbtn.on { background: var(--panel); border-color: var(--line); color: var(--acc); }

.sh-left {
  width: 244px; flex-shrink: 0; border-right: 1px solid var(--line); background: var(--panel);
  display: flex; flex-direction: column; overflow: hidden;
}
.sh-pane-hd {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.8rem;
}
.sh-search {
  width: 100%; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--elev); color: var(--ink); font-size: 0.78rem; outline: none;
}
.sh-search:focus { border-color: var(--acc); }

/* Avatar Square Roster Grid (seatingchartmaker.app signature tactile cards!) */
.sh-roster-scroll { flex: 1; overflow-y: auto; padding: 10px; }
.sh-avatar-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
}
.sh-av-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px;
  text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.sh-av-card:hover, .sh-av-card.sel { border-color: var(--acc); background: var(--band); }
.sh-av-circle {
  width: 30px; height: 30px; border-radius: 999px; background: var(--band); border: 1px solid var(--line);
  color: var(--acc); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.sh-av-name {
  font-size: 0.75rem; font-weight: 600; color: var(--ink); line-height: 1.15;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sh-av-tbl { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); line-height: 1; }

.sh-roster-list { display: grid; gap: 6px; }
.sh-rost-row {
  padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--elev);
  display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.78rem; cursor: pointer;
}
.sh-rost-row:hover, .sh-rost-row.sel { border-color: var(--acc); background: var(--band); }

/* Center Spatial Stage */
.sh-stage-wrap { flex: 1; position: relative; overflow: hidden; background: var(--elev); user-select: none; min-width: 0; }
.sh-stage-inner { width: 100%; height: 100%; position: relative; }
.sh-hud-l, .sh-hud-r {
  position: absolute; bottom: 12px; z-index: 15; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 11px; font-family: var(--font-mono); font-size: 0.75rem;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.1);
}
.sh-hud-l { left: 12px; pointer-events: none; color: var(--muted); }
.sh-hud-r { right: 12px; display: flex; align-items: center; gap: 6px; }
.sh-zbtn {
  border: 0; background: var(--elev); color: var(--ink); border-radius: 6px; padding: 2px 8px;
  font-family: var(--font-mono); font-size: 0.78rem; cursor: pointer;
}

/* Right Inspector */
.sh-right {
  width: 266px; flex-shrink: 0; border-left: 1px solid var(--line); background: var(--panel);
  padding: 12px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; gap: 12px;
}
.sh-box { background: var(--elev); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 0.78rem; }
.sh-rule-list { display: grid; gap: 6px; margin: 8px 0 10px; }
.sh-rule-item {
  padding: 7px 9px; border-radius: 9px; background: var(--elev); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.75rem;
}
.sh-tally-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.sh-tally-cell {
  padding: 6px 8px; border-radius: 8px; background: var(--elev); border: 1px solid var(--line);
  display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem;
}

/* Modal Drawer (Paste CSV / Add Rule) */
.sh-modal-bg {
  position: absolute; inset: 0; z-index: 40; background: rgba(17, 24, 39, 0.52);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.sh-modal {
  width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}
.sh-modal textarea {
  width: 100%; height: 140px; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--elev); color: var(--ink); font-size: 0.8rem; margin: 10px 0; resize: vertical;
}

/* Dark Slate 3-Card Real Room Examples Showcase Band (Direction B signature!) */
.sh-showcase { background: #111827; color: #F9FAFB; padding: 52px 0; margin-top: 28px; }
.sh-showcase h2 { color: #FFFFFF; margin: 0 0 8px; font-size: clamp(1.5rem, 2.5vw, 2.05rem); font-weight: 500; letter-spacing: -0.02em; }
.sh-showcase-sub { color: #9CA3AF; margin: 0 0 26px; font-size: 0.95rem; }
.sh-gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sh-gal-card {
  background: #1F2937; border: 1px solid #374151; border-radius: 18px; padding: 14px;
  cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease;
}
.sh-gal-card:hover { transform: translateY(-4px); border-color: #34D399; }
.sh-gal-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 0.875rem; }
.sh-gal-meta strong { color: #F9FAFB; font-weight: 600; }
.sh-gal-meta span { font-family: var(--font-mono); font-size: 0.75rem; color: #34D399; white-space: nowrap; }

/* Dedicated Sub-Studio Layouts (Sign, Place Cards, Calculator, Groups, QR, Noise Meter) */
.sh-split {
  display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 540px;
}
.sh-ctrl-col {
  border-right: 1px solid var(--line); background: var(--panel); padding: 18px;
  display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
}
.sh-prev-col { background: var(--elev); padding: 22px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.sh-field label, .sh-lbl { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.sh-inp {
  width: 100%; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--elev); color: var(--ink); font-family: var(--font-ui); font-size: 0.85rem;
}
.sh-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* Printable Poster Sign & Avery Cards */
.sh-poster {
  width: min(680px, 100%); background: #FAF8F4; color: #111827; border: 2px solid #111827;
  padding: 34px 30px; box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12); position: relative;
}
.sh-poster.arch { border-radius: 150px 150px 14px 14px; }
.sh-poster.minimal { border-radius: 12px; background: #FFFFFF; border-width: 1.5px; }
.sh-poster.botanical { border-radius: 18px; background: #F4F9F5; border-color: #0F291E; }
.sh-poster.darktie { border-radius: 16px; background: #111827; color: #F9FAFB; border-color: #D4AF37; }
.sh-poster-cols { display: grid; gap: 18px; margin-top: 20px; font-size: 0.8rem; }
.sh-poster-cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-poster-cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sh-sheet-grid {
  width: min(740px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  background: #FFFFFF; color: #111827; padding: 22px; border-radius: 14px; border: 1px solid #CBD5E1;
}
.sh-tent {
  border: 1px dashed #94A3B8; border-radius: 8px; padding: 14px 16px; background: #FFFEFC;
}
.sh-tent-fold {
  border-bottom: 1px dashed #CBD5E1; padding-bottom: 6px; margin-bottom: 10px;
  display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; color: #64748B;
}

/* Toast */
.sh-toast {
  position: fixed; bottom: 18px; right: 18px; z-index: 95; max-width: 360px;
  background: #0F291E; color: #FFFFFF; border: 1px solid #34D399; border-radius: 12px;
  padding: 11px 15px; font-size: 0.8125rem; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

/* 4-Step Grid inside Prose */
.sh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.sh-step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.sh-step-n { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--acc); display: block; margin-bottom: 6px; }
.sh-step h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.sh-step p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* Responsive Studio Collapse (0px horizontal overflow at 375px / 390px!) */
@media (max-width: 1040px) {
  .sh-work { flex-direction: column; height: auto; }
  .sh-rail { display: none; }
  .sh-stage-wrap { height: 420px; flex: none; order: 1; }
  .sh-left { width: 100%; height: 240px; border-right: 0; border-top: 1px solid var(--line); order: 2; }
  .sh-right { width: 100%; border-left: 0; border-top: 1px solid var(--line); order: 3; }
  .sh-avatar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sh-split { grid-template-columns: minmax(0, 1fr); }
  .sh-ctrl-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .sh-gal-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sh-stage-wrap { height: 340px; }
  .sh-hud-l { display: none; }
  .sh-avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-poster-cols.c3, .sh-poster-cols.c2, .sh-sheet-grid, .sh-steps { grid-template-columns: minmax(0, 1fr); }
  .sh-poster.arch { border-radius: 72px 72px 12px 12px; padding: 24px 18px; }
}

/* Clean Print / Vector PDF Output */
@media print {
  .no-print, .hd, .ft, .sh-bar, .sh-rail, .sh-left, .sh-right, .sh-ctrl-col, .sh-hud-l, .sh-hud-r, .sh-hero, .sh-showcase, .sh-toast {
    display: none !important;
  }
  body.sh, .sh-shell, .sh-stage-wrap, .sh-prev-col {
    background: #FFFFFF !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important;
  }
  .sh-work, .sh-split { display: block !important; height: auto !important; }
  .sh-poster, .sh-sheet-grid { width: 100% !important; max-width: none !important; box-shadow: none !important; }
}
