:root {
  --bg: #0e1014;
  --panel: #171a20;
  --panel2: #1e222a;
  --line: #2b303a;
  --text: #f5f6f8;
  --muted: #a9b0bd;
  --accent: #3180ff;
  --accent2: #61a1ff;
  --good: #56c596;
  --warn: #f3c969;
  --bad: #ef6d74;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 12% -10%, #272a34 0, var(--bg) 34%); color: var(--text); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { min-height: 100vh; }
.topbar { height: 70px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(14,16,20,.88); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #ffffff; font-weight: 900; }
.brand small { color: var(--muted); font-weight: 500; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 70px; }
.hero { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: stretch; margin-bottom: 26px; }
.hero-card, .card { background: linear-gradient(180deg, rgba(31,35,43,.96), rgba(22,25,31,.96)); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.hero-card { padding: 30px; }
.hero h1 { font-size: clamp(30px, 5vw, 54px); margin: 6px 0 10px; line-height: .98; letter-spacing: -.04em; }
.eyebrow { color: var(--accent2); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .15em; }
.sub { color: var(--muted); line-height: 1.6; }
.countdown { padding: 25px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.countdown strong { font-size: 46px; }
.countdown span { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card { padding: 22px; }
.card h2, .card h3 { margin-top: 0; }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); color: var(--muted); background: #16191f; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.tab.active { background: var(--accent); color: #ffffff; border-color: var(--accent); font-weight: 800; }
.btn { border: 1px solid var(--line); background: #232832; color: var(--text); padding: 10px 15px; border-radius: 11px; font-weight: 700; }
.btn:hover { filter: brightness(1.08); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn.danger { background: rgba(239,109,116,.12); color: #ff9399; border-color: rgba(239,109,116,.35); }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 10px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
input, select, textarea { width: 100%; color: var(--text); background: #101319; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49,128,255,.16); }
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 12px; }
.form-grid .span-6 { grid-column: span 6; } .form-grid .span-4 { grid-column: span 4; } .form-grid .span-8 { grid-column: span 8; } .form-grid .span-12 { grid-column: span 12; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row { border: 1px solid var(--line); background: #13161c; border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.row.music { grid-template-columns: minmax(170px,1.2fr) minmax(130px,1fr) 150px auto; align-items: center; }
.row.timeline { grid-template-columns: 95px minmax(170px,1fr) minmax(190px,1.3fr) auto; align-items: center; }
.song-title { font-weight: 800; } .song-artist, .meta, .muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid var(--line); }
.pill.good { color: #8ee8bc; background: rgba(86,197,150,.1); } .pill.warn { color: #ffe19a; background: rgba(243,201,105,.1); } .pill.bad { color: #ff9ca2; background: rgba(239,109,116,.1); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat { background: #12151b; border: 1px solid var(--line); border-radius: 15px; padding: 16px; }
.stat strong { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }
.event-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; border: 1px solid var(--line); background: #13161c; border-radius: 16px; padding: 17px; }
.event-card h3 { margin: 0 0 5px; }
.event-list { display: flex; flex-direction: column; gap: 12px; }
.progress { height: 7px; background: #0e1014; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; background: var(--accent); border-radius: inherit; }
.login { width: min(430px, calc(100% - 32px)); margin: 12vh auto; }
.login .card { padding: 30px; }
.login h1 { margin-bottom: 8px; }
.notice { padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: #12151b; color: var(--muted); margin-bottom: 16px; }
.notice.warn { border-color: rgba(243,201,105,.38); color: #ffe5a8; background: rgba(243,201,105,.07); }
.notice.good { border-color: rgba(86,197,150,.38); color: #b7f3d2; background: rgba(86,197,150,.07); }
.notice.bad { border-color: rgba(239,109,116,.38); color: #ffb2b6; background: rgba(239,109,116,.07); }
.statusline { position: fixed; bottom: 16px; right: 16px; z-index: 50; border: 1px solid var(--line); background: rgba(18,21,27,.93); color: var(--muted); padding: 8px 11px; border-radius: 999px; font-size: 12px; backdrop-filter: blur(10px); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--good); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 12px; background: #f6f7f8; color: #111; font-weight: 800; transition: .2s; z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { border: 1px dashed #343a45; border-radius: 14px; padding: 28px; color: var(--muted); text-align: center; }
.split { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.check { display:flex; align-items:center; gap:9px; color:var(--muted); }
.check input { width:auto; }
.locked { opacity:1; }
hr { border:0; border-top:1px solid var(--line); margin:20px 0; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .col-8,.col-6,.col-4 { grid-column:span 12; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .row.music,.row.timeline { grid-template-columns:1fr; }
  .form-grid .span-4,.form-grid .span-6,.form-grid .span-8 { grid-column:span 12; }
  .topbar { padding:0 16px; }
}

.security-panel { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.security-panel summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 800; user-select: none; }
.security-panel summary:hover { color: var(--text); }
.security-body { padding-top: 14px; }

.question-section { margin-bottom: 0; }
.question-admin-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; border:1px solid var(--line); background:#13161c; border-radius:14px; padding:14px; }
.question-admin-main { min-width:0; }
.question-admin-actions { display:flex; flex-wrap:wrap; gap:7px; justify-content:flex-end; }
.question-client-section { margin-bottom:0; }
.question-field { border-bottom:1px solid rgba(255,255,255,.06); padding-bottom:18px; margin-bottom:18px; }
.question-field:last-child { border-bottom:0; padding-bottom:0; margin-bottom:0; }
.required-star { color:#ff9ca2; }
.choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.choice { display:flex; align-items:flex-start; gap:9px; border:1px solid var(--line); background:#101319; border-radius:11px; padding:11px; color:var(--text); }
.choice input { width:auto; margin-top:3px; }
.conditional-note { color:#8fc1ff; }
details.card > summary { cursor:pointer; }
@media (max-width:850px){
  .question-admin-row { grid-template-columns:1fr; }
  .question-admin-actions { justify-content:flex-start; }
  .choice-grid { grid-template-columns:1fr; }
}

/* v12 planning section navigation and introductions */
.question-section-tabs { display:flex; gap:8px; overflow-x:auto; padding:2px 0 10px; margin-bottom:14px; scrollbar-width:thin; }
.question-section-tab { flex:0 0 auto; border:1px solid var(--line); background:#141820; color:var(--muted); padding:10px 13px; border-radius:11px; font-weight:800; white-space:nowrap; }
.question-section-tab.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.intro-group { border:1px solid var(--line); background:#12161d; border-radius:16px; padding:16px; margin-bottom:14px; }
.intro-group h3 { margin:0 0 14px; }
.intro-person { position:relative; }
.intro-number { color:var(--accent2); font-size:12px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; margin-bottom:12px; }
.intro-add { width:100%; border-style:dashed; margin-top:4px; }
.two-stats { grid-template-columns:repeat(2,1fr); }
@media (max-width:850px){ .two-stats { grid-template-columns:1fr 1fr; } }

/* v14 venue lookup */
.venue-lookup { position:relative; }
.venue-suggestions { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:30; border:1px solid var(--line); border-radius:12px; background:#101319; box-shadow:var(--shadow); overflow:hidden; }
.venue-suggestion { width:100%; text-align:left; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--text); padding:11px 12px; cursor:pointer; display:flex; flex-direction:column; gap:3px; }
.venue-suggestion:last-child { border-bottom:0; }
.venue-suggestion:hover,.venue-suggestion:focus { background:#18202b; outline:none; }
.venue-suggestion span { color:var(--muted); font-size:12px; }
.venue-address-check { margin-top:10px; font-size:13px; align-items:flex-start; }

/* v15 song catalog autocomplete */
.song-lookup { position:relative; }
.song-suggestions { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:40; border:1px solid var(--line); border-radius:12px; background:#101319; box-shadow:var(--shadow); overflow:hidden; max-height:320px; overflow-y:auto; }
.song-suggestion { width:100%; text-align:left; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--text); padding:11px 12px; cursor:pointer; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 12px; align-items:center; }
.song-suggestion:last-child { border-bottom:0; }
.song-suggestion:hover,.song-suggestion:focus { background:#18202b; outline:none; }
.song-suggestion strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.song-suggestion span { color:var(--muted); font-size:12px; text-align:right; }
.song-suggestion small { grid-column:1 / -1; color:var(--accent2); font-size:11px; }
.song-suggestion-empty { color:var(--muted); padding:12px; font-size:13px; line-height:1.45; }


/* v23: keep the question creation/editor panel visible while scrolling long question lists */
@media (min-width: 851px) {
  .question-editor-sticky {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* v24 calendar picker */
.date-picker-wrap { position:relative; }
.date-picker-wrap input[type="date"] { padding-right:48px; min-height:46px; }
.date-picker-wrap input[type="date"]::-webkit-calendar-picker-indicator { opacity:0; position:absolute; inset:0; width:100%; height:100%; cursor:pointer; }
.date-picker-btn { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:36px; height:36px; border:0; border-radius:9px; background:#18202b; color:var(--accent2); display:grid; place-items:center; cursor:pointer; z-index:2; }
.date-picker-btn:hover,.date-picker-btn:focus { background:#202b39; color:#fff; outline:1px solid var(--accent); }
.date-picker-btn svg { width:20px; height:20px; }

/* v24 Open Dance Floor FYI acknowledgements */
.fyi-card { border:1px solid rgba(49,128,255,.42); background:rgba(49,128,255,.075); border-radius:15px; padding:16px; margin-bottom:14px; }
.fyi-card p { margin:8px 0 10px; line-height:1.58; color:var(--text); }
.fyi-label { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; background:rgba(49,128,255,.18); color:#9bc3ff; font-size:11px; font-weight:900; letter-spacing:.12em; }
.acknowledgement-control { display:flex; align-items:center; gap:10px; margin-top:12px; border-top:1px solid rgba(255,255,255,.08); padding-top:12px; color:var(--text); font-weight:800; text-transform:none !important; letter-spacing:0 !important; font-size:14px !important; }
.acknowledgement-control input { width:20px; height:20px; flex:0 0 auto; }

/* v24 searchable dance-floor song builder */
.dance-song-builder,.song-file-upload { border:1px solid var(--line); background:#12161d; border-radius:16px; padding:16px; margin-bottom:16px; }
.dance-song-builder h3,.song-file-upload h3 { margin:0 0 6px; }
.dance-song-add { margin-top:16px; padding:14px; border:1px dashed #394456; border-radius:14px; background:#0f1319; }
.dance-song-list { display:flex; flex-direction:column; gap:9px; margin-top:16px; }
.dance-song-row { display:grid; grid-template-columns:34px minmax(0,1.4fr) minmax(150px,1fr) auto; gap:9px; align-items:center; border:1px solid var(--line); background:#101319; border-radius:13px; padding:10px; }
.dance-song-row input { margin:0; }
.dance-song-number { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:rgba(49,128,255,.16); color:#9bc3ff; font-size:12px; font-weight:900; }
.dance-song-readonly { display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:center; border:1px solid var(--line); background:#101319; border-radius:13px; padding:11px; }
.compact-empty { padding:16px; }

/* v24 song-list attachments */
.song-file-picker { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; margin:14px 0 7px; }
.song-file-picker input[type="file"] { padding:9px; }
.song-file-list { display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.song-file-row { display:flex; justify-content:space-between; gap:14px; align-items:center; border:1px solid var(--line); border-radius:12px; background:#101319; padding:11px 12px; }

@media (max-width:850px){
  .dance-song-row { grid-template-columns:32px 1fr; }
  .dance-song-row > input,.dance-song-row > button { grid-column:2; }
  .song-file-picker { grid-template-columns:1fr; }
  .song-file-row { align-items:flex-start; flex-direction:column; }
}

/* Keep Song Name, Artist and timing notes visually together as one song selection. */
.question-field.song-title-field { border-bottom:0; margin-bottom:0; padding-bottom:10px; }
.question-field.song-title-field + .question-field.song-artist-mid { border-bottom:0; margin-bottom:0; padding-bottom:10px; }
.question-field.song-title-field + .question-field.song-artist-end { margin-top:0; }
.question-field.song-artist-mid + .question-field.song-notes-field { padding-top:2px; }
.question-field.song-title-field label,
.question-field.song-artist-field label,
.question-field.song-notes-field label { letter-spacing:.06em; }
\n\n/* v26: render Song Name + Artist + timing notes as one visual block. */\n.song-question-group {\n  border:1px solid var(--line);\n  background:#101319;\n  border-radius:15px;\n  padding:14px;\n  margin-bottom:18px;\n}\n.song-question-group .question-field {\n  border-bottom:0 !important;\n  margin-bottom:0 !important;\n  padding-bottom:12px !important;\n}\n.song-question-group .question-field:last-child {\n  padding-bottom:0 !important;\n}\n.song-question-group .question-field + .question-field {\n  padding-top:2px;\n}\n.song-question-group .meta:empty { display:none; }\n

/* v27 Zoom Call View + Gig Brief */
.zoom-call-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}
.sticky-private-notes{position:sticky;top:18px}
.zoom-event-summary,.brief-event-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel-2);margin:16px 0 20px}
.zoom-event-summary strong,.brief-event-head strong{display:block;font-size:1.15rem}.zoom-event-summary span,.brief-event-head span{display:block;color:var(--muted)}
.brief-section{border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:14px 0;background:rgba(255,255,255,.015)}
.brief-section h3{margin:0;padding:12px 14px;background:rgba(56,139,253,.08);border-bottom:1px solid var(--line);font-size:1rem}
.brief-row{display:grid;grid-template-columns:minmax(190px,35%) 1fr;gap:16px;padding:11px 14px;border-bottom:1px solid var(--line)}
.brief-row:last-child{border-bottom:0}.brief-label{font-weight:750;color:#d9e0ec}.brief-value{min-width:0;overflow-wrap:anywhere}.brief-missing .brief-label{color:#f4c56b}.brief-heading{margin:28px 0 10px}.private-note-read{border:1px solid rgba(244,197,107,.35);background:rgba(244,197,107,.07);padding:16px;border-radius:14px;line-height:1.55}.brief-toolbar{align-items:flex-start}
@media(max-width:900px){.zoom-call-grid{grid-template-columns:1fr}.sticky-private-notes{position:static}.brief-row{grid-template-columns:1fr;gap:5px}.zoom-event-summary,.brief-event-head{align-items:flex-start;flex-direction:column}}

/* v29 Gig Brief toolbar cleanup */
@media(max-width:700px){
  .brief-toolbar{display:block}
  .brief-toolbar .actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:16px;width:100%}
  .brief-toolbar .actions .btn{width:100%;justify-content:center}
}


/* v30: keep the active planning-section tab visible after every selection/re-render */
.question-section-tabs { scroll-behavior:smooth; scroll-padding-inline:18px; }
.question-section-tab { scroll-margin-inline:18px; }
