:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #1c2938;
  background: #f3f6f9;
  --navy:#111e2d;
  --teal:#08786f;
  --teal-dark:#075b53;
  --ink:#172536;
  --muted:#526479;
  --border:#dce5ed;
}
* { box-sizing: border-box; }
body { margin:0; min-width:320px; }
[hidden] { display:none!important; }
button, input, select, textarea { font:inherit; }
button, .file-button {
  display:inline-flex; justify-content:center; align-items:center; gap:.45em;
  padding:.58rem .8rem; min-height:2.4rem; border:1px solid #cfdbe6; border-radius:8px;
  color:#263a50; background:white; font-weight:650; font-size:.875rem; cursor:pointer;
  white-space:nowrap;
}
button:hover:not(:disabled), .file-button:hover { background:#edf4f7; border-color:#9bb7c7; }
button:disabled { opacity:.48; cursor:default; }
:focus-visible { outline:3px solid #16a99b; outline-offset:3px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(1.75rem,3vw,2.38rem); letter-spacing:-.055em; line-height:1.1; }
h2 { font-size:1.09rem; letter-spacing:-.025em; }
p { color:var(--muted); line-height:1.5; }
svg { width:1.15em; height:1.15em; flex:none; }
input:not([type=checkbox]):not([type=file]),select,textarea {
  display:block; width:100%; min-width:0; margin-top:.35rem; padding:.6rem .7rem;
  border:1px solid #cad8e4; border-radius:7px; background:#fff; color:#17283a; font-weight:450;
}
select {
  appearance:none; padding-right:2rem;
  background-image:linear-gradient(45deg,transparent 50%,#506980 50%),linear-gradient(135deg,#506980 50%,transparent 50%);
  background-repeat:no-repeat; background-size:5px 5px,5px 5px; background-position:calc(100% - 15px) 52%,calc(100% - 10px) 52%;
}
textarea { resize:vertical; }
label, legend { display:block; font-size:.86rem; font-weight:680; color:#34495e; }
.primary { color:#fff; background:var(--teal); border-color:var(--teal); }
.primary:hover:not(:disabled) { color:#fff; background:var(--teal-dark); border-color:var(--teal-dark); }
.brand { display:flex; align-items:center; gap:.75rem; color:#f7fbff; white-space:nowrap; }
.brand strong { font-size:1.38rem; letter-spacing:.055em; line-height:1; }
.brand span { display:block; color:#a4b9cb; font-size:.7rem; margin-top:.16rem; }
.mark { width:37px; height:37px; flex:none; display:flex; gap:3px; align-items:flex-end; justify-content:center; padding:8px;
  border-radius:9px; background:#1b3545; border:1px solid #315164; transform:none; }
.mark span { width:5px; height:10px; margin:0; background:#55dbba; transform:skew(-21deg); border-radius:2px; }
.mark span:nth-child(2) { height:16px; background:#3acabb; }
.mark span:nth-child(3) { height:21px; background:#98efe0; }
.top,.participant-top { height:67px; padding:0 1.45rem; display:flex; align-items:center; justify-content:space-between; background:#111e2e; }
.top-side { display:flex; align-items:center; gap:1.2rem; }
.stream-state { display:flex; align-items:center; gap:.5rem; font-size:.82rem; color:#d7e5ee; white-space:nowrap; }
.stream-state i,.presence { width:8px; height:8px; border-radius:50%; background:#8e9bae; flex:none; }
.stream-state.online i,.presence.online { background:#4cd5a7; box-shadow:0 0 0 3px #55ceaa24; }
.avatar { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:#264355; color:#dceff9; font-weight:700; font-size:.85rem; }
.shell { min-height:calc(100vh - 67px); display:grid; grid-template-columns:216px minmax(0,1fr); }
.sidebar { padding:1.35rem .9rem; background:#192839; display:flex; flex-direction:column; justify-content:space-between; gap:1rem; color:#c9d9e5; }
.sidebar label { color:#aebfd0; }
.sidebar select { background-color:#203449; color:#f3f8ff; border-color:#334a60; font-size:.8rem; text-overflow:ellipsis; }
.side-create { width:100%; justify-content:flex-start; margin:.65rem 0 1.65rem; color:#d6eeec; border-color:#375469; background:#23394a; }
.side-create:hover:not(:disabled) { background:#2d4658; }
nav { display:grid; gap:.35rem; }
nav button { justify-content:flex-start; width:100%; border-color:transparent; background:transparent; color:#c4d3e1; }
nav button svg { margin-right:.27rem; }
nav button.active,nav button:hover:not(:disabled) { background:#244252; color:#a5f1df; border-color:#365969; }
.sidebar-footer { display:flex; gap:.55rem; align-items:center; font-size:.81rem; color:#a6bbca; }
.main-content { width:100%; max-width:1600px; padding:1.6rem clamp(1rem,3vw,2.6rem) 2rem; margin:auto; align-self:start; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.25rem; }
.section-heading h1 { margin:.25rem 0 .45rem; }
.section-heading .eyebrow { font-size:.73rem; letter-spacing:.115em; font-weight:790; text-transform:uppercase; color:#08766d; }
.section-heading p { font-size:.91rem; }
.panel,.stat,.monitor-card,.empty { background:white; border:1px solid var(--border); border-radius:12px; box-shadow:0 2px 4px #1c3d5c07; }
.overview-stats { display:grid; grid-template-columns:.9fr 1.15fr 1fr; gap:.85rem; margin-bottom:.87rem; }
.stat { display:flex; align-items:center; gap:.7rem; min-height:68px; padding:.7rem .85rem; }
.stat>span,.empty-icon { display:grid; place-items:center; width:36px; height:36px; flex:none; color:#08786f; background:#e6f5f2; border-radius:8px; }
.stat small,.stat strong { display:block; }
.stat small { color:var(--muted); font-size:.78rem; margin-bottom:.15rem; }
.stat strong { color:#1c3042; font-size:.99rem; }
.status { display:inline-block; width:max-content; white-space:nowrap; font-weight:710; font-size:.8rem; padding:.37rem .65rem; background:#e6ecf3; color:#435c74; border-radius:99px; }
.status.running { color:#056558; background:#d9f4e9; }
.status.paused { color:#744a0a; background:#fff0cd; }
.control-panel { display:flex; align-items:flex-end; justify-content:space-between; gap:.75rem; padding:.85rem; flex-wrap:wrap; }
.control-fields,.session-actions,.button-row { display:flex; align-items:flex-end; gap:.48rem; flex-wrap:wrap; }
.control-fields { flex:1 1 auto; }
.control-fields label { flex:1 0 115px; white-space:nowrap; }
.control-fields select { margin-top:.23rem; padding-top:.55rem; padding-bottom:.55rem; }
.grid-heading { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin:1.15rem 0 .6rem; }
.grid-heading span { font-size:.79rem; color:var(--muted); }
.monitor-grid,.people-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.87rem; }
.monitor-card { overflow:hidden; }
.monitor-card header,.person-editor header { display:flex; justify-content:space-between; align-items:center; padding:.55rem .7rem; min-height:50px; gap:.5rem; }
.person-mini { display:flex; align-items:center; gap:.55rem; min-width:0; }
.person-mini strong,.person-mini small { display:block; line-height:1.25; }
.person-mini strong { font-size:.89rem; }
.person-mini small { color:var(--muted); font-size:.73rem; margin-top:.13rem; }
.index { display:grid; place-items:center; width:28px; height:28px; flex:none; border-radius:7px; background:#e8f2f7; color:#24495b; font-size:.8rem; font-weight:750; }
.monitor-meta { display:flex; align-items:center; gap:.67rem; }
.monitor-meta button { min-height:28px; width:30px; padding:0; }
.monitor-card .desktop { aspect-ratio: 2/1; }
.gate { min-height:100dvh; display:grid; place-items:center; padding:1.15rem; background:radial-gradient(ellipse at 79% 10%,#1e5262,transparent 57%),linear-gradient(135deg,#101d2b,#182d40); }
.gate-card { width:min(100%,430px); padding:2rem; background:#fff; border-radius:16px; box-shadow:0 20px 60px #06101a80; }
.gate-card .brand { color:#172a3c; margin-bottom:1.65rem; }
.gate-card .brand span { color:#4e6479; }
.gate h1 { font-size:1.9rem; margin-bottom:.5rem; }
.gate form { display:grid; gap:.8rem; margin-top:1.35rem; }
.gate [role=alert] { font-size:.86rem; color:#9f2030; min-height:1rem; }
.empty { padding:3.25rem 1.25rem; text-align:center; }
.empty-icon { margin:0 auto .75rem; }
.empty p { max-width:475px; margin:.45rem auto 1rem; }
.person-editor,.editor-panel { padding:1rem; display:grid; gap:.9rem; }
.person-editor header { padding:0; min-height:auto; }
.member-status { color:#526479; }
.member-status.online { color:#077463; font-weight:700; }
.form-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.invite { font-size:.8rem; }
.button-row { justify-content:flex-end; margin-top:.85rem; }
.media-field small { display:block; margin-top:.3rem; color:var(--muted); overflow-wrap:anywhere; }
.media-control { display:flex; gap:.4rem; flex-wrap:wrap; align-items:center; }
.file-button { position:relative; overflow:hidden; }
.file-button input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; }
.file-button:focus-within { outline:3px solid #16a99b; outline-offset:3px; }
.editor-selector { padding:.75rem 1rem; display:flex; gap:.5rem; align-items:flex-end; flex-wrap:wrap; }
.editor-selector label:first-child { flex:1; min-width:185px; }
.editor-panel { margin-top:.85rem; }
.editor-panel>label:has(+.media-field),.person-editor>label:has(+.media-field) { margin-bottom:-.55rem; }
fieldset { margin:0; padding:.5rem .7rem .65rem; border:1px solid var(--border); border-radius:8px; }
legend { padding:0 .25rem; }
.checks { display:flex; flex-wrap:wrap; gap:.35rem .9rem; }
.checks label { display:flex; align-items:center; gap:.28rem; font-weight:500; }
.checks input { accent-color:var(--teal); }
summary { cursor:pointer; font-size:.89rem; font-weight:700; }
.mail-fields { display:grid; gap:.75rem; margin-top:.65rem; }
#effects { display:grid; gap:.65rem; }
.effect-row { background:#f4f8fa; border:1px solid var(--border); padding:.65rem; border-radius:8px; }
.effect-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; }
.effect-content { display:flex; gap:.55rem; align-items:end; margin-top:.55rem; }
.effect-content label { flex:1; }
#add-effect,.person-editor>[data-copy] { justify-self:start; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:.87rem; }
th,td { padding:.75rem .9rem; border-bottom:1px solid #e6edf2; }
th { background:#edf4f8; color:#385167; }
td:first-child { white-space:nowrap; }
tr:last-child td { border-bottom:0; }
#notice:not(:empty) { margin:0 0 .85rem; padding:.65rem .85rem; font-size:.85rem; background:#ddf3ec; color:#045b4e; border-radius:8px; }
#notice.error { background:#ffe6e6; color:#8c1b24; }
dialog { border:1px solid #d3e0e7; border-radius:13px; color:var(--ink); box-shadow:0 20px 60px #0f1e4670; }
dialog::backdrop { background:#101d2bcc; }
#create-dialog { width:min(94vw,420px); padding:1.35rem; }
#create-dialog p { margin:.45rem 0 .8rem; }
#focus-dialog { width:min(95vw,1150px); padding:.8rem; }
.dialog-title { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:0 0 .65rem; }
#focus-view { aspect-ratio:16/9; border-radius:8px; }
.participant { background:#111e2d; color:#e8f3fc; }
.participant-top { border-bottom:1px solid #283b4e; gap:.8rem; }
.participant-details { flex:1; display:flex; gap:.7rem; align-items:baseline; margin-left:.6rem; }
.participant-details span { color:#a9bed0; font-size:.88rem; }
.assignment { display:flex; align-items:center; justify-content:space-between; gap:1rem; background:#172738; padding:.75rem 1.45rem .9rem; }
.assignment h1 { font-size:1.5rem; margin:.1rem 0 .25rem; }
.assignment small { color:#82e2d2; font-weight:720; }
.assignment p { color:#b5c8d8; font-size:.86rem; }
.participant-stage { padding:.7rem; }
.participant-stage .desktop { min-height:420px; height:calc(100dvh - 181px); border:1px solid #335061; border-radius:10px; }
#desk-error:not(:empty) { position:fixed; bottom:65px; left:1rem; background:#ffe6e6; color:#8c1b24; padding:.55rem .75rem; border-radius:8px; z-index:10; }
.desktop { position:relative; isolation:isolate; overflow:hidden; container-type:size; background:#0b2a3a; color:#f1f8ff; font-family:"Segoe UI",system-ui,sans-serif; }
.wallpaper,.wallpaper-file,.wallpaper-grain { position:absolute; inset:0; pointer-events:none; }
.wallpaper { background:radial-gradient(ellipse at 74% 41%,#194d61 0%,transparent 52%),linear-gradient(130deg,#173d55,#0c2539 35%,#092735 86%); }
.wallpaper::before,.wallpaper::after { content:""; position:absolute; border-radius:48% 48% 45% 46%; transform:rotate(-27deg); pointer-events:none; }
.wallpaper::before { width:83%; height:91%; top:9%; left:37%; background:repeating-radial-gradient(ellipse at 64% 68%,#29c6c31c 2%,#267b8733 5%,transparent 7%,transparent 8%),linear-gradient(125deg,#37d4c95c,#0b526a88 44%,#102a3b22 82%); box-shadow:inset 0 2px 14px #79ffee63; }
.wallpaper::after { width:75%; height:83%; top:27%; left:34%; background:linear-gradient(118deg,#225676,#0a2b43 32%,#0e4b5e 55%,#14776f45); box-shadow:inset 0 3px 22px #54cde777,0 -8px 23px #0f233a99; }
.wallpaper-file img,.wallpaper-file video { height:100%; width:100%; object-fit:cover; }
.wallpaper-grain { background:linear-gradient(90deg,#081c2d48,transparent 35%),linear-gradient(0deg,#0b1a2b80,transparent 27%); }
.monitor-label { position:absolute; top:4%; right:4%; color:#aeece3; font-weight:750; font-size:clamp(8px,2.25cqw,15px); letter-spacing:.17em; text-shadow:0 2px 4px #08243c; }
.monitor-label span { color:#fff; }
.icons { position:absolute; top:4%; left:2%; display:grid; align-content:start; gap:clamp(2px,1.3cqh,.7rem); }
.shortcut { flex-direction:column; gap:.25em; background:transparent; border:1px solid transparent; padding:.23em; width:clamp(35px,12cqw,76px); height:clamp(26px,16cqh,72px); min-height:0; color:#f4f9ff; text-shadow:0 1px 4px #071a2b; font-size:clamp(6px,2.25cqw,12px); }
.shortcut:disabled { opacity:1; }
.shortcut:hover:not(:disabled) { background:#5eabd33e; border-color:#9ad5f44a; color:#fff; }
.shortcut-icon { display:grid; place-items:center; width:clamp(15px,7cqw,39px); height:clamp(15px,7cqw,39px); border-radius:22%; box-shadow:0 3px 6px #0005; }
.shortcut-icon svg { width:66%; height:66%; }
.shortcut-icon.monitor { background:linear-gradient(145deg,#86bfe5,#2778ac); }
.shortcut-icon.trash { background:linear-gradient(145deg,#e8f6ff,#83a7bf); color:#155577; }
.shortcut-icon.mail { background:linear-gradient(145deg,#61e4d4,#08768c 70%); }
.taskbar { position:absolute; bottom:0; left:0; right:0; height:clamp(15px,8cqh,44px); display:flex; align-items:center; justify-content:center; gap:.26em; background:#102438e8; border-top:1px solid #6588ae54; font-size:clamp(7px,2.3cqw,13px); }
.task-start,.task-app button { display:grid; place-items:center; width:2.1em; height:1.85em; min-height:0; padding:0; background:transparent; border:1px solid transparent; color:#68d7e5; font-size:inherit; position:relative; }
.task-app button:hover:not(:disabled) { background:#274e65; color:#fff; }
.task-app button:disabled { opacity:.85; }
.task-app i { position:absolute; bottom:0; width:.7em; height:2px; border-radius:9px; background:#94f5e3; }
.task-time { position:absolute; right:3%; color:#e6f0f7; }
.mail-window { position:absolute; width:56%; height:49%; min-height:0; z-index:2; background:#f7fafd; color:#203445; box-shadow:0 10px 25px #04121f80; border:1px solid #a8bed2; border-radius:clamp(4px,1.2cqw,11px); overflow:hidden; font-size:clamp(7px,1.82cqw,14px); }
.mail-title { height:15%; min-height:18px; background:#dcebf7; border-bottom:1px solid #b9ccdf; display:flex; align-items:center; justify-content:space-between; gap:.4em; font-weight:700; }
.mail-title>span { display:flex; gap:.45em; align-items:center; padding-left:.75em; }
.mail-title.draggable { cursor:grab; touch-action:none; user-select:none; }
.window-buttons { display:flex; height:100%; }
.window-buttons button { height:100%; min-height:0; border:0; border-radius:0; background:transparent; padding:0 .65em; font-size:1.25em; }
.window-buttons button:hover:not(:disabled) { background:#bbcfe2; }
.window-buttons button:last-child:hover:not(:disabled) { background:#c83045; color:white; }
.mail-layout { display:grid; grid-template-columns:27% 29% 44%; height:85%; }
.mail-folders,.mail-list,.reading { min-width:0; overflow:auto; }
.mail-folders,.mail-list { border-right:1px solid #d8e3ee; }
.mail-folders { display:flex; gap:.55em; flex-direction:column; padding:.85em .46em; background:#eaf2f9; }
.mail-folders strong { background:#d1e5f2; border-radius:.4em; padding:.3em; }
.mail-folders span { padding-left:.3em; }
.message { display:flex; align-items:flex-start; flex-direction:column; gap:.2em; width:100%; border:0; border-bottom:1px solid #d8e3ee; border-radius:0; background:#fff; font-size:inherit; min-height:0; padding:.65em .5em; white-space:normal; text-align:left; overflow-wrap:anywhere; }
.message:disabled { opacity:1; }
.message span { color:#526a81; font-size:.92em; }
.message.selected { background:#dbf2f1; box-shadow:inset .2em 0 #149489; }
.reading { display:flex; flex-direction:column; align-items:flex-start; gap:.34em; padding:.7em; background:#fff; overflow-wrap:anywhere; }
.reading .subject { font-size:1.26em; }
.reading small { color:#526779; font-size:.88em; }
.reading p { margin:.28em 0; font-size:.94em; line-height:1.25; white-space:pre-wrap; }
.empty-mail { color:#5b7084; }
.mail-link { justify-content:start; text-align:left; border:0; padding:0; min-height:0; font-size:.94em; text-decoration:underline; color:#086b75; white-space:normal; }
.mail-link:disabled { opacity:1; }
.mail-link.visited { color:#5c3c90; }
.public-click { padding:.3em .5em; background:#e8f2ff; color:#264c7b; border-radius:.35em; font-size:.84em; }
.private-layer { position:absolute; z-index:4; top:13%; right:2.5%; width:30%; display:grid; gap:.32em; pointer-events:none; font-size:clamp(7px,1.85cqw,15px); }
.consequence { display:flex; gap:.5em; align-items:center; padding:.65em; border-radius:.55em; color:#edfdfa; border:1px solid #4d9d99; background:#14473ff2; box-shadow:0 4px 12px #0618234d; overflow-wrap:anywhere; }
.consequence.notification { background:#184061f2; border-color:#558bbc; }
.consequence .effect-icon { color:#90eace; display:flex; }
.consequence small,.consequence strong { display:block; }
.consequence small { color:#bfe4df; font-size:.77em; }
.scene-paper { position:absolute; top:21%; left:25%; width:49%; font-size:clamp(7px,1.85cqw,14px); }
.scene-paper article { padding:.85em; border:1px solid #90c8ce4a; border-radius:.65em; background:#152e45ee; box-shadow:0 5px 20px #0613258a; }
.scene-paper h3 { margin:.25em 0; }
.scene-paper p { color:#cbe3ef; font-size:.91em; line-height:1.3; }
.scene-paper .primary { min-height:0; margin-top:.45em; padding:.38em .5em; font-size:.86em; }
.scene-symbol { color:#71e1ce; }
@media(max-width:1000px){
  .shell { grid-template-columns:181px minmax(0,1fr); }
  .main-content { padding-left:1rem; padding-right:1rem; }
  .control-fields label { flex-basis:105px; }
}
@media(max-width:720px){
  .top,.participant-top { padding:0 .85rem; }
  .shell { display:block; }
  .sidebar { padding:.65rem .85rem; }
  .sidebar-inner { display:flex; gap:.45rem; flex-wrap:wrap; align-items:end; }
  .sidebar label { min-width:135px; flex:1; }
  .side-create { width:auto; margin:0; }
  nav { width:100%; display:flex; flex-wrap:wrap; gap:.23rem; }
  nav button { flex:1 0 auto; width:auto; min-height:2rem; font-size:.76rem; padding:.3rem .45rem; }
  .sidebar-footer { display:none; }
  .main-content { padding:1rem .7rem; }
  .monitor-grid,.people-grid { grid-template-columns:1fr; }
  .overview-stats { gap:.31rem; }
  .stat { padding:.45rem; gap:.3rem; }
  .stat>span { display:none; }
  .stat small { font-size:.68rem; }
  .stat strong { font-size:.82rem; }
  .effect-fields { grid-template-columns:1fr 1fr; }
  .participant-details { flex-direction:column; gap:.1rem; line-height:1.1; margin-left:0; }
  .participant-details span { font-size:.73rem; }
  .assignment { padding:.65rem .75rem; }
  .participant-stage { padding:.41rem; }
  .participant-stage .desktop { min-height:335px; }
  .desktop .mail-window { container-type:normal; }
}
