:root { --bg:#f4f7fb; --text:#14213d; --muted:#64748b; --card:#ffffff; --line:#dbe3ef; --primary:#1f6feb; --accent:#f97316; }
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:var(--bg); color:var(--text); }
a { color:inherit; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:16px 24px; background:#0b1220; color:#fff; position:sticky; top:0; z-index:10; }
.brand { font-weight:800; text-decoration:none; letter-spacing:.2px; }
.topbar nav { display:flex; gap:14px; flex-wrap:wrap; }
.topbar nav a { color:#dbeafe; text-decoration:none; font-weight:600; font-size:14px; }
.container { width:min(1120px, 94vw); margin:28px auto; }
.footer { text-align:center; color:var(--muted); padding:28px; font-size:13px; }
.card, .hero-card { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:22px; box-shadow:0 10px 30px rgba(15,23,42,.06); }
.hero-card { background:linear-gradient(135deg,#0b1220,#1f3b73); color:#fff; margin-bottom:22px; }
.hero-card p { color:#dbeafe; max-width:720px; }
.narrow { max-width:460px; margin:40px auto; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:18px; }
.room-card { display:flex; flex-direction:column; gap:10px; }
.room-logo { width:74px; height:74px; object-fit:cover; border-radius:16px; background:#e2e8f0; }
.btn { display:inline-flex; justify-content:center; align-items:center; gap:8px; border:0; border-radius:12px; padding:11px 16px; background:var(--primary); color:#fff; text-decoration:none; font-weight:800; cursor:pointer; }
.btn.secondary { background:#334155; }
.btn.danger { background:#dc2626; }
.link { color:var(--primary); font-weight:700; text-decoration:none; }
.flash { width:min(1120px,94vw); margin:16px auto -8px; padding:12px 14px; border-radius:12px; font-weight:700; }
.flash.success { background:#dcfce7; color:#166534; }
.flash.error { background:#fee2e2; color:#991b1b; }
label { display:block; font-weight:700; margin:14px 0 6px; }
input, textarea, select { width:100%; border:1px solid var(--line); border-radius:12px; padding:11px 12px; font:inherit; background:#fff; color:#0f172a; }
textarea { min-height:110px; resize:vertical; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:18px; }
table { width:100%; border-collapse:collapse; background:#fff; border-radius:14px; overflow:hidden; }
th, td { text-align:left; padding:12px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#f8fafc; font-size:13px; color:#475569; }
code, pre { background:#0f172a; color:#e2e8f0; border-radius:12px; padding:4px 7px; }
pre { padding:14px; overflow:auto; }
.badge { display:inline-flex; padding:4px 8px; border-radius:999px; background:#e0f2fe; color:#075985; font-size:12px; font-weight:800; }
.chat-shell { min-height:600px; border-radius:22px; padding:18px; background:var(--chat-bg); color:var(--chat-text); box-shadow:0 18px 60px rgba(2,6,23,.18); }
.chat-hero { display:flex; gap:14px; align-items:center; margin-bottom:12px; }
.station-logo { width:72px; height:72px; object-fit:cover; border-radius:18px; background:rgba(255,255,255,.12); }
.chat-hero h1 { margin:0; font-size:24px; }
.chat-hero p { margin:4px 0 0; opacity:.82; }
.player { width:100%; margin:8px 0 14px; }
.messages { height:390px; overflow:auto; display:flex; flex-direction:column; gap:10px; padding:12px; border-radius:18px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); }
.message { max-width:84%; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.12); border-radius:16px; padding:10px 12px; }
.message.ai { border-color:var(--accent); box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.message .meta { display:flex; gap:10px; justify-content:space-between; font-size:12px; opacity:.8; }
.message p { margin:5px 0 0; line-height:1.4; }
.chat-form { display:grid; grid-template-columns:160px 1fr auto; gap:10px; margin-top:12px; }
.chat-form input { border:0; }
.chat-form .btn { background:var(--accent); }
.chat-note { font-size:13px; opacity:.78; margin:12px 3px 0; }
.embed-body { margin:0; background:transparent; }
.embed-body .chat-shell { border-radius:0; min-height:100vh; }
.embed-body .topbar, .embed-body .footer { display:none; }
.persona-card { border:1px solid var(--line); border-radius:16px; padding:16px; margin:16px 0; background:#fff; }
@media (max-width:760px) { .form-grid, .chat-form { grid-template-columns:1fr; } .topbar { align-items:flex-start; flex-direction:column; } .message { max-width:100%; } }

input[type="checkbox"] { width:auto; margin-right:6px; }
input[type="color"] { padding:4px; min-height:44px; }
.muted { color: var(--muted); font-weight: 500; font-size: 13px; }
.warning { background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; border-radius:12px; padding:12px 14px; }
input[readonly] { background:#f8fafc; color:#475569; }
