:root {
    --bg: #0b0d11;
    --panel: #12161d;
    --panel2: #181d25;
    --text: #f1f3f5;
    --muted: #9198a5;
    --line: rgba(255,255,255,.09);
    --accent: #d7ad72;
    --accent2: #8a6843;
    --danger: #d26868;
    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 top, #171c25 0, var(--bg) 38%); color: var(--text); min-height: 100vh; }
button { font: inherit; }
.shell { max-width: 1500px; margin: 0 auto; padding: 18px; }
.topbar { display:flex; gap:20px; justify-content:space-between; align-items:center; margin-bottom:16px; }
.brand { letter-spacing:.26em; font-weight:800; font-size:1.15rem; }
.subtitle { color:var(--muted); font-size:.8rem; margin-top:4px; }
.world-stats { display:flex; gap:16px; align-items:center; flex-wrap:wrap; justify-content:flex-end; color:#cfd3d9; }
.world-stats strong { font-size:1.2rem; color:white; }
.game-grid { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:16px; }
.scene-card,.panel { background:rgba(18,22,29,.94); border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:0 22px 60px rgba(0,0,0,.28); }
.scene { min-height:580px; position:relative; background-image:linear-gradient(135deg,#252c38,#11151c); background-size:cover; background-position:center; display:flex; align-items:flex-end; }
.scene-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(5,7,10,.95),rgba(5,7,10,.08) 55%,rgba(5,7,10,.22)); }
.scene-copy { position:relative; z-index:2; padding:28px; max-width:760px; }
.scene-copy h1 { font-size:clamp(2rem,4vw,4.2rem); margin:.15em 0; line-height:.95; }
.scene-copy p { color:#d0d4d9; max-width:680px; }
.scene-placeholder { position:absolute; z-index:1; inset:50% auto auto 50%; transform:translate(-50%,-50%); text-align:center; color:rgba(255,255,255,.4); letter-spacing:.16em; font-weight:700; }
.scene-placeholder small { display:block; margin-top:10px; letter-spacing:0; font-weight:400; }
.eyebrow { display:block; color:var(--accent); letter-spacing:.17em; font-size:.72rem; font-weight:800; }
.people-strip,.actions-panel { padding:18px 22px; border-top:1px solid var(--line); }
.people-strip { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.people { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.person-chip { display:flex; align-items:center; gap:10px; padding:8px 12px; border:1px solid var(--line); border-radius:999px; background:var(--panel2); }
.person-chip button { border:0; background:transparent; color:var(--accent); cursor:pointer; padding:0; }
.time-actions { display:flex; gap:8px; }
button { border:1px solid var(--line); background:var(--panel2); color:var(--text); border-radius:12px; padding:11px 14px; cursor:pointer; transition:.15s ease; }
button:hover { transform:translateY(-1px); border-color:rgba(215,173,114,.5); }
.primary { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#16110b; font-weight:800; border:0; }
.ghost { background:transparent; }
.danger { color:var(--danger); }
.action-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:10px; margin-top:10px; }
.action-grid button { text-align:left; min-height:52px; }
.compact { margin-top:8px; }
.side-panel { display:flex; flex-direction:column; gap:16px; }
.panel { padding:18px; }
.panel h2 { margin:4px 0 0; }
.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.log { display:flex; flex-direction:column; gap:10px; margin-top:16px; max-height:460px; overflow:auto; }
.log-item { padding:11px 12px; background:var(--panel2); border:1px solid var(--line); border-radius:12px; color:#c9cdd3; font-size:.88rem; }
.log-item time { color:var(--accent); font-weight:800; margin-right:8px; }
.quick-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.quick-grid button { display:flex; flex-direction:column; align-items:flex-start; font-size:1.2rem; min-height:76px; }
.quick-grid span { font-size:.8rem; margin-top:8px; color:#c9cdd3; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.72); backdrop-filter:blur(10px); z-index:50; display:grid; place-items:center; padding:20px; }
.modal[hidden] { display:none; }
.modal-card { width:min(720px,100%); max-height:85vh; overflow:auto; background:#141922; border:1px solid var(--line); border-radius:20px; padding:26px; position:relative; box-shadow:0 35px 100px rgba(0,0,0,.55); }
.modal-close { position:absolute; right:14px; top:14px; width:38px; height:38px; padding:0; border-radius:50%; font-size:1.4rem; }
.event-card p { font-size:1.08rem; line-height:1.7; color:#d5d8dd; }
.speaker { color:var(--accent); font-weight:800; margin:12px 0 4px; }
.contact { padding:14px; border:1px solid var(--line); border-radius:14px; margin-top:10px; background:var(--panel2); }
.contact-head { display:flex; justify-content:space-between; gap:15px; }
.statbar { height:7px; border-radius:999px; background:#252c36; overflow:hidden; margin-top:5px; }
.statbar i { display:block; height:100%; background:var(--accent); }
.notice { padding:14px; border:1px solid var(--line); background:var(--panel2); border-radius:12px; color:#cfd3d9; line-height:1.5; }
@media (max-width: 980px) { .game-grid { grid-template-columns:1fr; } .scene { min-height:500px; } .side-panel { display:grid; grid-template-columns:1fr 1fr; } }
@media (max-width: 680px) { .shell { padding:10px; } .topbar,.people-strip { align-items:flex-start; flex-direction:column; } .world-stats { justify-content:flex-start; } .scene { min-height:430px; } .side-panel { display:flex; } }
.subtitle a { color: var(--accent); text-decoration: none; }
.floor-card { margin-top:12px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--panel2); }
.floor-card > strong { display:block; margin-bottom:10px; }
.floor-rooms { display:flex; flex-wrap:wrap; gap:8px; }
.room-pill { padding:7px 10px; border:1px solid var(--line); border-radius:999px; color:#cfd3d9; font-size:.82rem; }
.room-pill.private { border-color:rgba(215,173,114,.55); color:var(--accent); }
.setup-wrap { max-width:900px; margin:40px auto; padding:18px; }
.setup-card { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:24px; margin-bottom:16px; }
.setup-grid { display:grid; grid-template-columns:180px 1fr; gap:10px 16px; margin-top:18px; }
.setup-grid dt { color:var(--muted); }
.setup-grid dd { margin:0; word-break:break-word; }
.status-ok { color:#83d59a; font-weight:800; }
.status-off { color:#d7ad72; font-weight:800; }
.status-bad { color:#e08080; font-weight:800; }
code.inline { background:#0c1016; border:1px solid var(--line); border-radius:7px; padding:3px 6px; }


.time-actions{display:flex;gap:10px;flex-wrap:wrap}.time-actions .accent{background:#8357ff;color:#fff}.contact-card{display:flex;gap:14px;align-items:flex-start;margin:14px 0;padding:14px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.03)}.contact-card img{width:76px;height:114px;object-fit:cover;border-radius:10px}.media-note{margin-top:12px;padding:10px 12px;border-radius:12px;background:rgba(131,87,255,.12);color:#d9d1ff}.media-status{opacity:.8;font-size:12px;margin-top:8px}.notice.success{background:rgba(65,160,110,.18);border:1px solid rgba(65,160,110,.35)}


.scene-job-status{margin-top:12px;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(10,16,24,.45);border:1px solid rgba(255,255,255,.12);font-size:12px;font-weight:600}.scene-job-status.ready{background:rgba(70,160,110,.16);border-color:rgba(70,160,110,.35)}.scene-job-status.working{background:rgba(132,97,255,.16);border-color:rgba(132,97,255,.35)}.scene-job-status.failed{background:rgba(180,88,88,.16);border-color:rgba(180,88,88,.35)}.scene-job-status.idle{background:rgba(255,255,255,.08)}.event-scene-status{margin:14px 0}.event-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.notice.success{background:rgba(70,160,110,.16);border:1px solid rgba(70,160,110,.35)}
