/* ==========================================================================
   Page & module styles (light first; dark overrides at the bottom)
   ========================================================================== */
.link { background: none; border: 0; padding: 0; color: var(--teal); cursor: pointer; font-weight: 600; font-size: 13px; }
.link:hover { text-decoration: underline; }
.eyebrow-s { font: 600 11px/1.3 var(--font); letter-spacing: .1em; color: var(--gold2); text-transform: uppercase; margin-bottom: 6px; }
.gold { color: var(--gold); }
.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.warn-t { color: var(--amber); font-weight: 700; }
pre.code { margin: 0; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; font: 11.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; color: var(--text2); }
pre.code.blocked { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); color: var(--muted); background: var(--bad-bg); }
.spin { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg-sm button { padding: 5px 10px; font-size: 12px; }

/* ---------------------------------------------------------------- overview */
.ov-hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.25fr); gap: 28px; align-items: stretch; margin-bottom: 30px; }
.ov-hero-text { display: flex; flex-direction: column; gap: 18px; justify-content: center; padding: 8px 0; }
.ov-hero-text h2 { font-size: clamp(30px, 3.3vw, 46px); letter-spacing: -.035em; line-height: 1.08; font-weight: 800; }
.ov-hero-text p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 600px; margin: 0; }
.ov-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ov-facts div { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ov-facts b { display: block; font: 700 20px/1.2 var(--display); letter-spacing: -.03em; }
.ov-facts span { font-size: 11.5px; color: var(--muted); }
.ov-hero-3d { position: relative; display: flex; flex-direction: column; min-height: 460px; }
.ov-scene { flex: 1; height: auto; min-height: 460px; border-radius: 22px; }
.ov-cap { position: absolute; left: 16px; bottom: 16px; z-index: 6; font-size: 12px; color: var(--text2); background: rgba(255, 255, 255, .88); padding: 6px 11px; border-radius: 10px; pointer-events: none; box-shadow: var(--shadow-sm); font-weight: 500; }
.ov-sec { margin-top: 34px; }
.ov-sec > .row-between { margin-bottom: 14px; }
.ov-sec h3 { font-size: 20px; letter-spacing: -.025em; }
.ov-b { position: relative; padding-top: 20px; transition: transform .2s, box-shadow .2s; }
.ov-b:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ov-b h4 { margin: 8px 0 8px; font: 700 15px/1.3 var(--display); text-transform: none; letter-spacing: -.01em; color: var(--text); }
.ov-n { position: absolute; top: 16px; right: 18px; font: 700 13px var(--mono); color: var(--gold2); background: var(--gold-soft); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.ov-pains { display: grid; gap: 8px; }
.ov-pain { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; flex-wrap: wrap; box-shadow: var(--shadow-xs); }
.ov-pain:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.ov-go { color: var(--teal); font-weight: 600; font-size: 13px; white-space: nowrap; }
.ov-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 14px; }
.ov-col { display: grid; gap: 6px; }
.ov-col > div { font-size: 12.5px; padding: 7px 10px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); }
.ov-col.core > div.z { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 30%, transparent); font-weight: 600; color: var(--text); }
.ov-col.core > div.alt { background: color-mix(in srgb, var(--teal) 10%, var(--panel)); border-color: color-mix(in srgb, var(--teal) 30%, transparent); font-weight: 600; }
.ov-h { font: 600 10.5px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 2px; }
.ov-arrow { color: var(--gold); font-size: 20px; }
.ov-not { display: grid; gap: 12px; margin-top: 12px; }
.ov-not > div { display: flex; gap: 12px; align-items: flex-start; }
.ov-not .x { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--bad-bg); color: var(--red); font-size: 11px; flex: none; font-weight: 800; }

/* ---------------------------------------------------------------- explorer */
.ex-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 12px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex: 1; min-width: 160px; }
.crumbs span { color: var(--faint); }
.ex-layers { gap: 16px; }
.ex-scene { height: calc(100vh - 330px); height: calc(100dvh - 330px); min-height: 500px; }
.ex-panel { position: sticky; top: 0; max-height: calc(100vh - 330px); min-height: 500px; overflow: auto; }
.hall-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hall-chip { border: 1px solid var(--line); background: var(--panel); color: var(--text2); border-radius: 8px; padding: 4px 9px; font-size: 12px; cursor: pointer; font-weight: 500; transition: all .15s; }
.hall-chip:hover { border-color: var(--ink); color: var(--text); }
.hall-chip.on { border-color: color-mix(in srgb, var(--c) 55%, transparent); color: var(--text); background: color-mix(in srgb, var(--c) 12%, var(--panel)); font-weight: 600; }
.cp-row { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cp-row:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- designer */
.dz { display: grid; gap: 18px; grid-template-columns: 310px minmax(0, 1fr); align-items: start; }
.dz-gen { position: sticky; top: 0; max-height: calc(100vh - 140px); overflow: auto; }
.dz-g { gap: 10px; }
.dz-num input { padding: 7px 10px; }
.dz-main { display: grid; gap: 14px; min-width: 0; }
.dz-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; }
.dz-toolbar .dz-sum { grid-column: 1 / -1; }
.dz-toolbar .dz-tools { grid-column: 1 / -1; grid-row: 3; }
.dz-toolbar > .row { grid-column: 3; justify-self: end; }
.dz-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; font-size: 13px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dz-sum b { color: var(--text); font-family: var(--display); }
.dz-sum .ok { color: var(--green); font-weight: 600; }
.dz-sum .bad { color: var(--red); font-weight: 600; }
.dz-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; min-width: 0; }
.dz-tg { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.dz-tg > span { font: 600 10.5px var(--font); text-transform: uppercase; color: var(--faint); margin-right: 4px; letter-spacing: .07em; }
.btn.armed { background: var(--ink); color: var(--bg); border-color: transparent; }
.dz-canvas { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.dz-canvas[data-view="plan"] { grid-template-columns: minmax(0, 1fr); }
.dz-canvas[data-view="plan"] .dz-3d { display: none; }
.dz-canvas[data-view="3d"] { grid-template-columns: minmax(0, 1fr); }
.dz-canvas[data-view="3d"] .dz-plan-wrap { display: none; }
.dz-plan-wrap { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; min-height: 480px; outline: none; touch-action: none; box-shadow: var(--shadow-xs); }
.dz-plan-wrap:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
.dz-canvas[data-view="plan"] .dz-plan-wrap { min-height: 620px; }
#dz-plan svg { width: 100%; height: 100%; min-height: 440px; max-height: calc(100vh - 320px); display: block; user-select: none; }
.dz-canvas[data-view="plan"] #dz-plan svg { max-height: calc(100vh - 270px); }
.dz-hint { position: absolute; left: 14px; bottom: 12px; font-size: 11.5px; color: var(--muted); background: color-mix(in srgb, var(--panel) 90%, transparent); padding: 4px 9px; border-radius: 8px; pointer-events: none; border: 1px solid var(--line); }
.dz-3d { height: 100%; min-height: 480px; }
.dz-canvas[data-view="3d"] .dz-3d { min-height: calc(100vh - 320px); }
.dz-side { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.dz-mix { margin-top: 14px; }
.dz-pav { width: 74px; padding: 5px 8px; }
.pl-hall { fill: #f1eee8; stroke: #9aa3b2; stroke-width: .3; }
.pl-gridline { fill: none; stroke: rgba(15, 23, 42, .08); stroke-width: .05; }
.pl-aisle { fill: rgba(120, 100, 80, .07); }
.pl-aisle.main { fill: rgba(199, 91, 97, .22); }
.pl-item { cursor: grab; }
.pl-item:active { cursor: grabbing; }
.pl-item rect, .pl-item circle { stroke: rgba(15, 23, 42, .3); stroke-width: .08; }
.pl-item.t-stall rect { fill: var(--c); }
.pl-item.t-stall .pl-back { stroke: #1e293b; stroke-width: .35; }
.pl-item .pl-t { fill: #fff; text-anchor: middle; font-family: var(--font); font-weight: 700; pointer-events: none; paint-order: stroke; stroke: rgba(15, 23, 42, .35); stroke-width: .12; }
.pl-item .pl-t.dark { fill: #1e293b; stroke: none; }
.pl-item .pl-chairs { fill: none; stroke: #8b94a5; stroke-width: .35; stroke-dasharray: .3 .35; }
.pl-item .pl-top { fill: #ffffff; }
.pl-item.t-stage rect { fill: #2b303c; }
.pl-item.t-screen rect { fill: #6d5ce6; }
.pl-item.t-fnb rect { fill: #e8833a; }
.pl-item.t-seats rect { fill: #9a3244; }
.pl-item.t-station rect { fill: #202634; }
.pl-item.t-lounge rect { fill: rgba(37, 99, 235, .1); stroke: rgba(37, 99, 235, .6); stroke-dasharray: .6 .4; }
.pl-item.t-zone rect { fill: rgba(124, 58, 237, .1); stroke: rgba(124, 58, 237, .6); stroke-dasharray: .6 .4; }
.pl-item.t-dance rect { fill: #3a4058; }
.pl-item.t-entrance rect { fill: #16a34a; }
.pl-item.t-lounge .pl-t, .pl-item.t-zone .pl-t { fill: #2563eb; stroke: none; }
.pl-item.sel rect, .pl-item.sel circle { stroke: #b8862b; stroke-width: .45; }
.pl-item.bad rect, .pl-item.bad circle { stroke: #dc2626; stroke-width: .45; }
.pl-dim { fill: #8b94a5; text-anchor: middle; font-family: var(--font); font-weight: 600; }

/* ---------------------------------------------------------------- reservations */
.rs-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 16px; padding: 14px 16px; }
.rs-bar .field { min-width: 230px; }
.rs-scene { height: calc(100vh - 470px); min-height: 440px; }
.rs-list { display: grid; gap: 6px; max-height: 52vh; overflow: auto; padding-right: 2px; }
.rs-tbl { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 9px 12px; cursor: pointer; position: relative; padding-left: 16px; transition: border-color .15s, box-shadow .15s; }
.rs-tbl::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.rs-tbl b { font-size: 13.5px; }
.rs-tbl span { font-size: 12px; color: var(--muted); grid-column: 1; }
.rs-tbl i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--green); }
.rs-tbl.s-booked { opacity: .6; }
.rs-tbl.s-booked::before { background: var(--red); }
.rs-tbl.s-booked i { color: var(--red); }
.rs-tbl.s-partial::before { background: var(--amber); }
.rs-tbl.s-partial i { color: var(--amber); }
.rs-tbl:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.rs-consent { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 9px; margin: 4px 0; background: var(--bg2); }
.rs-consent legend { font-size: 12px; color: var(--text2); padding: 0 6px; font-weight: 600; }
.rs-confirm { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; }
.rs-code { font: 700 22px var(--mono); color: var(--gold2); letter-spacing: .06em; }

/* ---------------------------------------------------------------- consent */
.cs-people { display: grid; gap: 3px; margin-top: 10px; max-height: 62vh; overflow: auto; }
.cs-p { display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.cs-p b { font-size: 13.5px; }
.cs-p span { font-size: 12px; color: var(--muted); grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-p i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; display: flex; gap: 6px; font-size: 12px; }
.cs-p em { font-style: normal; font-weight: 700; }
.cs-p em.ok { color: var(--green); }
.cs-p em.bad { color: var(--red); }
.cs-p:hover { background: var(--panel2); }
.cs-p.on { background: var(--panel2); border-color: var(--line2); box-shadow: var(--shadow-xs); }
.cs-systems { display: grid; gap: 8px; }
.cs-sys { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .3s, background .3s; }
.cs-sys.done { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); background: var(--ok-bg); }
.cs-tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--green); font-weight: 800; flex: none; box-shadow: 0 0 0 1px var(--line); }
.cs-hist { display: grid; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; margin-bottom: 4px; }
.cs-hist span { font-size: 12px; color: var(--muted); }
.cs-hist.on, .cs-hist:hover { background: var(--panel2); border-color: var(--line); }
.cs-steps { display: flex; gap: 4px; }
.cs-steps i { width: 22px; height: 6px; border-radius: 3px; background: var(--line2); }
.cs-steps i.on { background: var(--green); }
.cs-policy { display: grid; gap: 10px; }
.cs-clause { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--panel); display: grid; gap: 7px; position: relative; padding-left: 18px; }
.cs-clause::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line2); }
.cs-clause.sev-high::before { background: var(--red); }
.cs-clause.sev-medium::before { background: var(--amber); }
.cs-clause.sev-ok::before { background: var(--green); }
.cs-clause blockquote { margin: 0; font-style: italic; color: var(--text); font-size: 14px; }
.t tr.bad-row td { background: var(--bad-bg); }

/* ---------------------------------------------------------------- pavilion */
.pv-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding: 14px 16px; }
.pv-bar .field { min-width: 280px; }
.pv-stepper { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.pv-step { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 12.5px; color: var(--muted); cursor: default; font-weight: 500; }
.pv-step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--bg3); font-size: 11px; color: var(--text2); }
.pv-step.done { color: var(--text); border-color: color-mix(in srgb, var(--green) 30%, var(--line)); }
.pv-step.done i { background: var(--green); color: #fff; }
.pv-step.next { color: var(--text); border-color: var(--ink); font-weight: 600; }
.pv-step.next i { background: var(--ink); color: var(--bg); }
.pv-step[disabled] { opacity: .55; }
.pv-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pv-file { border: 1px dashed var(--line2); border-radius: 12px; padding: 12px; display: grid; gap: 3px; background: var(--bg2); }
.pv-file span { font-size: 12.5px; }
.pv-file i { font-style: normal; font-size: 11px; color: var(--faint); font-family: var(--mono); }
.pv-progress { height: 4px; border-radius: 3px; background: var(--bg3); overflow: hidden; margin: -4px 0 14px; }
.pv-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--teal)); }
.pv-score { position: relative; width: 92px; height: 20px; border-radius: 6px; background: var(--bg3); overflow: hidden; }
.pv-score span { position: absolute; inset: 0 auto 0 0; background: var(--c2); }
.pv-score.t-A span { background: #22c55e; }
.pv-score.t-B span { background: #f59e0b; }
.pv-score.t-C span { background: #94a3b8; }
.pv-score b { position: relative; font: 700 11px/20px var(--mono); padding-left: 7px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.pv-scene { height: 320px; min-height: 320px; }
.pv-pricebox { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(160deg, var(--gold-soft), var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line)); }
.pv-pricebox > div { display: grid; gap: 3px; }
.pv-pricebox b { font: 800 27px/1.1 var(--display); letter-spacing: -.03em; }

/* ---------------------------------------------------------------- arrivals */
.ar-controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; padding: 14px 16px; }
.ar-controls .field { min-width: 160px; }
.ar-parks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ar-park { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--panel); display: grid; gap: 5px; box-shadow: var(--shadow-xs); }
.ar-park.is-full { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); background: linear-gradient(180deg, var(--bad-bg), var(--panel) 60%); }
.ar-note { grid-column: 1 / -1; margin: 0; }
.ar-scene { height: 340px; min-height: 340px; }
.ar-msg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel); display: grid; gap: 5px; }
.ar-msg.due:not(.pub) { border-color: color-mix(in srgb, var(--amber) 50%, var(--line)); background: linear-gradient(180deg, var(--warn-bg), var(--panel) 50%); }
.ar-msg.pub { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.ar-ar { font-family: var(--arabic); color: var(--text2); text-align: right; font-size: 13.5px; }
.ar-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.ar-push, .ar-sms { font-size: 12px; border-radius: 12px; padding: 8px 10px; background: var(--bg2); border: 1px solid var(--line); line-height: 1.45; }
.ar-push span, .ar-sms span { display: block; font: 600 10px var(--font); color: var(--faint); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.ar-vms { grid-column: 1 / -1; background: #0a0a0a; border: 4px solid #2a2a2a; border-radius: 8px; padding: 8px 12px; font: 700 13px/1.3 var(--mono); color: #ffb020; text-shadow: 0 0 6px rgba(255, 176, 32, .75); letter-spacing: .14em; text-align: center; }

/* ---------------------------------------------------------------- assistant */
.as-grid { display: grid; grid-template-columns: minmax(330px, 430px) minmax(0, 1fr); gap: 22px; align-items: start; }
.as-phone { border-radius: 38px; border: 10px solid #111827; background: #111827; box-shadow: var(--shadow-lg), inset 0 0 0 1px #374151; height: min(78vh, 770px); min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.as-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #0f766e; color: #fff; }
.as-head b { font-family: var(--display); }
.as-head small { display: block; color: #ccfbf1; font-size: 11px; }
.as-ava { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #f1c66a, #b8862b); color: #fff; display: grid; place-items: center; font: 800 12px var(--display); }
.as-ch { margin-left: auto; font-size: 10.5px; background: rgba(255, 255, 255, .16); padding: 3px 8px; border-radius: 7px; }
.as-log { flex: 1; overflow: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; background: #efeae2; }
.as-msg { display: flex; flex-direction: column; max-width: 86%; }
.as-msg.me { align-self: flex-end; align-items: flex-end; }
.as-msg.bot { align-self: flex-start; }
.as-bubble { position: relative; padding: 9px 12px 19px; border-radius: 14px; font-size: 14px; line-height: 1.5; color: #111b21; background: #ffffff; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); min-width: 84px; }
.as-msg.me .as-bubble { background: #d9fdd3; }
.as-time { position: absolute; right: 10px; bottom: 4px; font-size: 10px; opacity: .55; }
.as-link { display: block; margin-top: 8px; background: #f0faf8; border: 1px solid #b9e5dd; color: #0f766e; border-radius: 9px; padding: 6px 9px; font-weight: 600; cursor: pointer; font-size: 12.5px; text-align: left; }
.as-src { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.as-src .chip { font-size: 10.5px; background: rgba(255, 255, 255, .85); }
.as-typing { display: flex; gap: 4px; padding: 12px 14px; }
.as-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; animation: blink 1.2s infinite; }
.as-typing i:nth-child(2) { animation-delay: .2s; }
.as-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.as-chips { display: flex; gap: 6px; overflow-x: auto; padding: 9px 10px; background: #f0f2f5; scrollbar-width: thin; }
.as-chips button { flex: none; border: 1px solid #d1d7db; background: #fff; color: #111b21; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; font-weight: 500; }
.as-chips button:hover { border-color: #0f766e; color: #0f766e; }
.as-input { display: flex; gap: 8px; padding: 10px; background: #f0f2f5; }
.as-input input { border-radius: 999px; background: #fff; border-color: #d1d7db; color: #111b21; box-shadow: none; }
.as-input .btn { border-radius: 50%; width: 42px; height: 42px; padding: 0; background: #0f766e; color: #fff; border: 0; }
.as-trace { display: grid; gap: 9px; }
.as-trace > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; font-size: 13px; }
.as-trace span { color: var(--faint); font: 600 10.5px var(--font); text-transform: uppercase; letter-spacing: .07em; padding-top: 2px; }
.as-trace small { color: var(--muted); }
.as-guard { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; color: var(--text2); }
.as-kb { display: grid; gap: 6px; max-height: 260px; overflow: auto; }

/* ---------------------------------------------------------------- event plus */
.ep { display: grid; gap: 18px; grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
.ep-stand { display: grid; gap: 10px; }
.ep-scene { height: 230px; min-height: 230px; }
.ep-total { font: 800 27px/1.1 var(--display); letter-spacing: -.03em; color: var(--text); }
.ep-t td { vertical-align: middle; }
.ep-t tr.ep-cat td { background: var(--bg2); font: 600 10.5px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 7px 12px; }
.ep-t tr.off td { opacity: .42; }
.ep-qty { width: 74px; padding: 5px 8px; text-align: right; }
.ep-line { position: relative; height: 70px; margin: 22px 8px 4px; border-top: 3px solid var(--line2); }
.ep-mark { position: absolute; top: -10px; transform: translateX(-50%); text-align: center; font-size: 12px; font-weight: 500; }
.ep-mark i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 3px solid var(--gold); margin: 0 auto 5px; }
.ep-mark small { color: var(--faint); }
.ep-today { position: absolute; top: -22px; transform: translateX(-50%); }
.ep-today span { display: block; background: var(--ink); color: var(--bg); font: 700 11px var(--mono); padding: 3px 8px; border-radius: 7px; }
.ep-today::after { content: ""; display: block; width: 2px; height: 40px; background: var(--ink); margin: 0 auto; opacity: .6; }
.ep-open { position: absolute; top: -10px; transform: translateX(-100%); font-size: 12px; font-weight: 700; }
.ep-open span::before { content: "■ "; color: var(--red); }
.ep-tiers { margin-top: 8px; gap: 10px; }
.ep-tier { border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; background: var(--panel); display: grid; gap: 2px; }
.ep-tier span { font-size: 12px; color: var(--muted); font-weight: 500; }
.ep-tier b { font: 700 17px var(--display); letter-spacing: -.02em; }
.ep-tier small { font-size: 11px; }
.ep-tier.cur { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent); }
.ep-chat { display: grid; gap: 6px; max-height: 260px; overflow: auto; margin-bottom: 8px; }
.ep-q { font-size: 13px; padding: 8px 11px; border-radius: 12px; background: var(--bg2); line-height: 1.5; }
.ep-q.me { background: var(--ink); color: var(--bg); justify-self: end; max-width: 90%; }
.ep-mqs { display: flex; flex-wrap: wrap; gap: 5px; }
.ep-nudges { display: grid; gap: 8px; }
.ep-n { position: relative; padding: 5px 12px; display: grid; gap: 2px; }
.ep-n::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--teal); }
.ep-n.past { opacity: .45; }
.ep-n.blocked::before { background: var(--red); }
.ep-impact { display: grid; gap: 9px; }
.ep-impact > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ep-impact span { color: var(--text2); }
.ep-impact b { font-family: var(--mono); font-size: 11.5px; text-align: right; }

/* ---------------------------------------------------------------- leadership */
.ld-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.ld-scene { height: 360px; min-height: 360px; }
.ld-ops { display: grid; gap: 9px; }
.ld-ops > div { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ld-ops span { color: var(--text2); }
.ld-ops b { text-align: right; font-family: var(--mono); }
.ld-ops small { grid-column: 1 / -1; font-size: 11.5px; color: var(--faint); }
.ld-gov { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--text2); }
#ld-heat .hg-cell { cursor: pointer; transition: transform .1s; }
#ld-heat .hg-cell:hover { transform: scale(1.06); }
#ld-heat .hg-cell.cur { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------------------------------------------------------------- dark-theme adjustments */
:root[data-theme="dark"] .pl-hall { fill: #2a2f3d; }
:root[data-theme="dark"] .ov-cap { background: rgba(17, 26, 46, .85); }
:root[data-theme="dark"] .as-log { background: #0b141a; }
:root[data-theme="dark"] .as-bubble { background: #1f2c33; color: #e9edef; }
:root[data-theme="dark"] .as-msg.me .as-bubble { background: #005c4b; }
:root[data-theme="dark"] .as-chips, :root[data-theme="dark"] .as-input { background: #0b141a; }
:root[data-theme="dark"] .as-chips button, :root[data-theme="dark"] .as-input input { background: #1f2c33; color: #e9edef; border-color: #2a3942; }
:root[data-theme="dark"] .as-link { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); color: #8fe3d4; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1440px) { .dz { grid-template-columns: 290px minmax(0, 1fr); } }
@media (max-width: 1280px) {
  .dz-side { grid-template-columns: minmax(0, 1fr); }
  .dz-gen { position: static; max-height: none; }
}
@media (max-width: 1180px) { .dz-canvas { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) {
  .ov-hero { grid-template-columns: minmax(0, 1fr); }
  .ex-panel { position: static; max-height: none; min-height: 0; }
  .as-grid { grid-template-columns: minmax(0, 1fr); }
  .as-phone-wrap { max-width: 440px; width: 100%; margin: 0 auto; }
  .dz, .ep { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ov-flow { grid-template-columns: minmax(0, 1fr); }
  .ov-arrow { transform: rotate(90deg); justify-self: center; }
  .ex-scene { height: 64vh; min-height: 420px; }
}
@media (max-width: 760px) {
  .ex-scene, .rs-scene { height: 60vh; min-height: 360px; }
  .ov-scene { height: 54vh; min-height: 340px; }
  .ov-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-ch { grid-template-columns: minmax(0, 1fr); }
  .as-phone { height: 72vh; min-height: 500px; border-width: 7px; border-radius: 28px; }
  .rs-confirm { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .dz-plan-wrap { min-height: 320px; }
  #dz-plan svg { min-height: 300px; }
  .dz-toolbar { grid-template-columns: minmax(0, 1fr); }
  .dz-toolbar > .row { grid-column: 1; justify-self: start; }
  .ex-bar, .rs-bar, .pv-bar, .ar-controls, .ld-bar { padding: 12px; gap: 12px; }
  .rs-bar .field, .pv-bar .field { min-width: 0; width: 100%; }
  .ld-bar .seg { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
}

/* DWTC co-brand lockup (overview hero) and brand touches */
.ov-cobrand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ov-cobrand img { height: 46px; width: auto; display: block; }
.ov-cobrand .logo-w { display: none !important; }
:root[data-theme="dark"] .ov-cobrand .logo-b { display: none !important; }
:root[data-theme="dark"] .ov-cobrand .logo-w { display: block !important; }
.ov-x { width: 1px; height: 34px; background: var(--line2); }
.ov-cobrand b { display: block; font: 700 14px/1.2 var(--display); }
.ov-cobrand small { display: block; font-size: 12px; }
.venue-h { display: flex; align-items: center; gap: 9px; }
.venue-h img { width: 26px; height: 26px; }
.venue-h .logo-w { display: none !important; }
:root[data-theme="dark"] .venue-h .logo-b { display: none !important; }
:root[data-theme="dark"] .venue-h .logo-w { display: inline-block !important; }
@media (max-width: 640px) { .ov-cobrand img { height: 36px; } .ov-x { height: 28px; } }
@media (max-width: 640px) { .ov-x { display: none; } .ov-cobrand { gap: 10px; } }
