:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: rgba(21, 24, 33, .8);
  --surface-solid: #151821;
  --line: rgba(255, 255, 255, .09);
  --text: #f7f8fb;
  --muted: #8a91a0;
  --pink: #ff4f7b;
  --orange: #ff8b5d;
  --mint: #61e6b5;
  --amber: #ffc66d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 50% 0, #14141e, var(--bg) 42%); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(120px); opacity: .13; pointer-events: none; }
.ambient-a { right: -180px; top: 90px; background: var(--pink); }
.ambient-b { left: -220px; top: 440px; background: #6658ff; }

.login-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: rgba(19, 22, 31, .9); box-shadow: 0 30px 80px rgba(0,0,0,.35); backdrop-filter: blur(20px); text-align: center; }
.mini-logo { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; border-radius: 11px; background: linear-gradient(145deg, var(--pink), var(--orange)); box-shadow: 0 8px 26px rgba(255,79,123,.2); }
.mini-logo i { width: 3px; border-radius: 9px; background: #fff; }
.mini-logo i:nth-child(1) { height: 10px; }.mini-logo i:nth-child(2) { height: 20px; }.mini-logo i:nth-child(3) { height: 14px; }
.kicker { margin: 0 0 7px; color: var(--pink); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.login-card .kicker { margin-top: 20px; }
.login-card h1 { margin: 0 0 10px; font-size: 27px; }
.login-card > p:not(.kicker) { margin: 0 auto 24px; color: var(--muted); font-size: 13px; }
.login-card input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0d1017; color: var(--text); }
.login-card input:focus { border-color: rgba(255,79,123,.6); box-shadow: 0 0 0 3px rgba(255,79,123,.08); }
.login-card button { width: 100%; height: 48px; margin-top: 10px; border: 0; border-radius: 12px; background: linear-gradient(145deg, var(--pink), var(--orange)); color: white; font-weight: 800; }

.dashboard { width: min(1260px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 70px; }
.dashboard-header { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand > div:last-child { display: flex; flex-direction: column; }
.brand strong { letter-spacing: .13em; }.brand span { margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .22em; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.server-live { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.server-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.ghost-button { height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); color: var(--text); font-size: 11px; }

.hero { min-height: 280px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 48px 2px 38px; }
.hero h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.04em; }
.hero h1 em { color: var(--pink); font-style: normal; }
.hero > div > p:last-child { max-width: 590px; margin: 20px 0 0; color: var(--muted); line-height: 1.7; }
.primary-button { min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: linear-gradient(145deg, var(--pink), var(--orange)); color: white; box-shadow: 0 12px 28px rgba(255,79,123,.17); font-size: 12px; font-weight: 800; }
.auto-room-callout { min-width: 230px; padding: 15px 17px; border: 1px solid rgba(97,230,181,.2); border-radius: 14px; background: rgba(97,230,181,.06); color: var(--mint); }
.auto-room-callout strong, .auto-room-callout span { display: block; }
.auto-room-callout strong { font-size: 13px; }
.auto-room-callout span { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats-grid article { min-height: 130px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); backdrop-filter: blur(16px); }
.stats-grid span { color: var(--muted); font-size: 11px; }
.stats-grid strong { margin: 9px 0 4px; font-size: 35px; font-variant-numeric: tabular-nums; }
.stats-grid small { color: #626977; font-size: 10px; }
.stats-grid .warning-stat { border-color: rgba(255,198,109,.2); }.warning-stat strong { color: var(--amber); }

.workspace-grid { display: grid; grid-template-columns: 1.28fr .72fr; gap: 14px; margin-top: 14px; }
.panel { min-height: 390px; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); backdrop-filter: blur(16px); }
.workspace-grid > .panel:first-child { min-height: auto; }
.panel > form { display: flex; gap: 8px; align-items: end; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.panel > form label { flex: 1; display: grid; gap: 6px; color: #c8ccd5; font-size: 11px; }
.panel > form input, .panel > label select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #0e1118; color: var(--text); }
.panel > form button { height: 36px; padding: 0 13px; border: 0; border-radius: 9px; background: linear-gradient(145deg, var(--pink), var(--orange)); color: white; font-size: 10px; font-weight: 800; }
.rooms-panel > label { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; color: var(--muted); font-size: 10px; }
.rooms-panel > label select { width: auto; min-width: 120px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 17px; }.panel-heading .kicker { margin-bottom: 4px; }
.panel-heading > span { color: var(--muted); font-size: 10px; }.privacy-note { max-width: 130px; text-align: right; }
.room-list, .report-list { display: grid; gap: 9px; padding-top: 13px; }
.room-card, .report-card { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.room-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.room-card h3, .report-card h3 { margin: 0; font-size: 13px; }.room-card p, .report-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { padding: 5px 7px; border-radius: 999px; background: rgba(255,255,255,.05); color: #b7bcc8; font-size: 9px; }
.tag.open { color: var(--mint); background: rgba(97,230,181,.08); }.tag.closed { color: #7b8291; }.tag.scheduled { color: var(--amber); background: rgba(255,198,109,.08); }
.tag.auto-room { color: #bfc7ff; background: rgba(145,154,255,.08); }
.tag.room-count { color: #f5c3d0; background: rgba(255,79,123,.08); }
.room-actions { display: flex; flex-direction: column; gap: 6px; }
.room-actions button, .report-actions button { min-width: 68px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); color: var(--text); font-size: 9px; }
.report-card blockquote { margin: 10px 0; padding: 10px 11px; border-left: 2px solid var(--pink); border-radius: 0 8px 8px 0; background: rgba(255,79,123,.055); color: #e9eaf0; font-size: 12px; line-height: 1.5; }
.report-actions { display: flex; gap: 7px; }.report-actions .danger { border-color: rgba(255,79,123,.28); color: #ff8da9; }
.panel-empty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.panel-empty span { color: var(--pink); font-size: 22px; }.panel-empty p { max-width: 240px; font-size: 11px; line-height: 1.6; }

dialog { width: min(560px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #151821; color: var(--text); box-shadow: 0 35px 90px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(3,4,7,.76); backdrop-filter: blur(8px); }
#createRoomForm { display: grid; gap: 14px; padding: 24px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font-size: 20px; }.dialog-heading .kicker { margin-bottom: 4px; }
.close-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-size: 20px; }
#createRoomForm label { display: grid; gap: 6px; color: #c8ccd5; font-size: 11px; }
#createRoomForm input, #createRoomForm select { width: 100%; height: 41px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #0e1118; color: var(--text); }
#createRoomForm input:focus, #createRoomForm select:focus { border-color: rgba(255,79,123,.5); }
#createRoomForm small { color: var(--muted); font-size: 9px; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.full-width { width: 100%; }
fieldset { margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
fieldset legend { padding: 0 5px; color: var(--muted); font-size: 10px; }
#categoryChoices { display: flex; flex-wrap: wrap; gap: 7px; }
#categoryChoices .tag { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
#categoryChoices input { width: auto !important; height: auto !important; }
.form-error { min-height: 15px; color: #ff88a6; font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; padding: 11px 15px; transform: translate(-50%, 20px); border: 1px solid var(--line); border-radius: 11px; background: #252a36; font-size: 11px; opacity: 0; pointer-events: none; transition: .2s; }.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; }.workspace-grid { grid-template-columns: 1fr; }.hero { min-height: 240px; }.hero h1 { font-size: 38px; } }
@media (max-width: 600px) { .dashboard { width: min(100% - 22px, 1260px); }.server-live { display: none; }.hero { align-items: flex-start; flex-direction: column; padding-block: 40px 26px; }.hero h1 { font-size: 33px; }.stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.stats-grid article { min-height: 115px; }.form-row { grid-template-columns: 1fr; } }
