:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; background: #0b1020; color: #f4f7ff; --panel: #151d35; --line: #293653; --muted: #9aa8c4; --primary: #7c8cff; --danger: #ef6b79; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #182651 0, transparent 38rem), #0b1020; }
a { color: #b9c2ff; text-decoration: none; } a:hover { color: #fff; }
button, input, select { font: inherit; } button, .button { cursor: pointer; }
.site-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-bottom: 1px solid var(--line); background: #0b1020cc; backdrop-filter: blur(14px); }
.site-header nav { display: flex; gap: 1.25rem; align-items: center; } .brand { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; color: #fff; } .user-label { color: var(--muted); }
.link-button { border: 0; background: none; color: #b9c2ff; padding: 0; } .page-shell { width: min(1180px, 90vw); margin: 0 auto; padding: 3.5rem 0; }
.card { background: linear-gradient(145deg, #18213c, #11182d); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 50px #05081766; } .auth-card { width: min(430px, 100%); margin: 8vh auto; padding: 2.25rem; }
h1, h2, p { margin-top: 0; } h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.06em; margin-bottom: .5rem; } h2 { letter-spacing: -.03em; } .muted { color: var(--muted); } .eyebrow { color: #9faaff; font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.stack { display: grid; gap: .65rem; margin-top: 1.5rem; } label { color: #d7def3; font-size: .9rem; } input, select { width: 100%; border: 1px solid #3a496d; border-radius: 10px; padding: .75rem .85rem; color: #fff; background: #0d1428; } input:focus, select:focus { outline: 2px solid #7c8cff; border-color: transparent; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; padding: .65rem 1rem; border: 1px solid #43547e; border-radius: 10px; background: #202b4b; color: #f5f7ff; font-weight: 700; transition: .16s ease; } .button:hover { transform: translateY(-1px); background: #2b3962; } .button-primary { background: var(--primary); color: #0a0f21; border-color: var(--primary); } .button-primary:hover { background: #a8b0ff; } .button-danger { color: #ffdce0; border-color: #89404d; background: #351d2a; } .button.is-active { background: #633341; border-color: #ef6b79; }
.flash, .callout, .form-errors { margin: 0 0 1.25rem; padding: .85rem 1rem; border: 1px solid #45567d; border-radius: 10px; background: #182541; } .flash-alert, .callout-danger, .form-errors { border-color: #8d4452; background: #351d2a; color: #ffdce0; } .flash-notice { border-color: #397466; background: #173a3a; }
.page-heading, .room-header { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; } .page-heading h1, .room-header h1 { margin-bottom: .25rem; } .room-header { align-items: start; } .back-link { display: inline-block; margin-bottom: 1.25rem; }
.room-create, .invite-create { padding: 1.25rem 1.5rem; margin-bottom: 2rem; } .room-create h2, .invite-create h2 { font-size: 1rem; margin-bottom: .8rem; } .inline-form { display: flex; gap: .75rem; } .inline-form input { flex: 1; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; } .room-card { padding: 1.35rem; min-height: 190px; display: flex; flex-direction: column; } .room-card-heading { display: flex; justify-content: space-between; gap: 1rem; } .room-card-heading h2 { margin: 0; } .room-count { color: var(--muted); font-size: .85rem; white-space: nowrap; } .screen-status { color: #b8d5ff; } .room-card-actions { display: flex; gap: .65rem; margin-top: auto; padding-top: 1rem; } .empty-state { padding: 2rem; }
.room-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; } .participants-panel { padding: 1.2rem; } .participants-panel h2 { display: flex; justify-content: space-between; font-size: 1rem; } .participants-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; } .participant { min-width: 0; display: flex; align-items: center; gap: .6rem; padding: .65rem; border-radius: 10px; } .participant-local { background: #222e54; } .avatar { width: 28px; height: 28px; flex: 0 0 28px; display: inline-grid; place-items: center; border-radius: 50%; background: #6978d5; color: #fff; font-size: .7rem; font-weight: 800; } .participant-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .participant-state { margin-left: auto; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.stage { min-height: 600px; display: flex; flex-direction: column; padding: 1rem; } .screen-stage { position: relative; min-height: 450px; flex: 1; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #080c18; } #shared-screen { width: 100%; height: 100%; max-height: 68vh; object-fit: contain; } .screen-placeholder { display: grid; gap: .55rem; place-items: center; color: #c5cdea; } .screen-icon { font-size: 3rem; color: #6877c9; } .screen-sharer-label, .screen-audio-status { position: absolute; left: 1rem; bottom: 1rem; padding: .45rem .65rem; border-radius: 7px; background: #090d18cc; color: #e9edff; font-size: .8rem; } .screen-audio-status { left: auto; right: 1rem; bottom: 1rem; color: #b9d8ff; } .fullscreen-button { position: absolute; right: 1rem; top: 1rem; } .room-controls { display: flex; flex-wrap: wrap; gap: .65rem; padding-top: 1rem; } .join-panel { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: 1rem; } .settings-panel { display: grid; gap: .6rem; width: min(420px, 100%); margin-top: 1rem; padding: 1rem; border-top: 1px solid var(--line); } .checkbox-label { display: flex; align-items: center; gap: .5rem; } .checkbox-label input { width: auto; }
.diagnostics-output { margin-top: 1rem; padding: .8rem; color: #aab9d8; font: .75rem ui-monospace, monospace; background: #0a1020; border-radius: 8px; } .remote-audio { display: none; } .status-dot { width: 7px; height: 7px; display: inline-block; margin-right: .4rem; border-radius: 50%; background: var(--muted); } .status-dot.online { background: #5be2a7; } .status-dot.offline { background: #e96979; } .table-card { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; } .invite-url { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .site-header { padding: 0 5vw; } .site-header nav { gap: .6rem; font-size: .8rem; } .user-label { display: none; } .page-shell { padding: 2rem 0; } .page-heading, .room-header { align-items: start; flex-direction: column; } .inline-form { flex-direction: column; } .room-layout { grid-template-columns: 1fr; } .participants-panel { order: 2; } .stage { min-height: 480px; } .screen-stage { min-height: 320px; } .room-controls .button { flex: 1; } }

[hidden] { display: none !important; }
.page-shell:has(.room-app) { width: min(1600px, calc(100vw - 2rem)); padding: 2rem 0 3rem; }
.room-layout { grid-template-columns: minmax(190px, 220px) minmax(0, 1fr); gap: .75rem; align-items: stretch; }
.room-sidebar { min-width: 0; display: flex; flex-direction: column; gap: .75rem; }
.participants-panel, .room-tools { min-width: 0; padding: 1rem; }
.participants-panel { flex: 1; }
.stage { min-width: 0; min-height: calc(100vh - 230px); padding: .75rem; }
.screen-stage { min-height: clamp(420px, calc(100vh - 300px), 760px); }
#shared-screen { max-height: none; }
.room-tools { display: flex; flex-direction: column; gap: 1rem; margin-top: auto; }
.room-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding-top: 0; }
.room-controls .button { width: 100%; min-width: 0; padding: .6rem .5rem; }
.room-controls form { grid-column: 1 / -1; }
.join-panel { flex-direction: column; gap: .75rem; padding-top: 0; text-align: center; }
.join-panel p { margin-bottom: 0; }
.settings-panel { width: auto; margin-top: 0; padding: 1rem 0 0; }
.room-fullscreen-open { overflow: hidden; }
.screen-stage.is-view-fullscreen { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; min-height: 0; border-radius: 0; background: #000; }
.screen-stage.is-view-fullscreen #shared-screen { max-height: none; }

@media (max-width: 760px) {
  .page-shell:has(.room-app) { width: calc(100vw - 1rem); padding: 2rem 0; }
  .room-layout { grid-template-columns: 1fr; }
  .room-sidebar { order: 2; }
  .stage { order: 1; }
  .stage { min-height: 480px; }
  .screen-stage { min-height: 320px; }
}
