:root { --bg:#0e1220; --panel:#171d33; --panel2:#1f2745; --line:#2c3558; --text:#e9edff; --muted:#8e99c2; --accent:#5b8cff; --ok:#3ddc84; --bad:#ff6b6b; --warn:#ffb74d; }
  * { box-sizing: border-box; }
  body { margin:0; font-family:"Segoe UI", system-ui, sans-serif; background:var(--bg); color:var(--text); height:100vh; display:flex; flex-direction:column; font-size:14px; }
  header { padding:10px 16px; background:linear-gradient(180deg,#1b2240,#151b31); border-bottom:1px solid var(--line); display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  header h1 { font-size:15px; margin:0 8px 0 0; letter-spacing:.02em; }
  #roomTitle { font-weight:600; color:#fff; margin-left:auto; }
  .chip { font-size:12px; padding:3px 10px; border-radius:99px; background:#0004; border:1px solid var(--line); white-space:nowrap; }
  .dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:6px; }
  main { flex:1; display:flex; min-height:0; }
  #stage { flex:1; display:flex; flex-direction:column; min-width:0; }
  #wrap { flex:1; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; background:radial-gradient(ellipse at 50% 40%, #232b4d 0%, #0e1220 75%); }
  canvas { max-width:100%; max-height:100%; }
  .bar { display:flex; gap:8px; padding:10px; background:var(--panel); border-top:1px solid var(--line); flex-wrap:wrap; align-items:center; }
  button, input, select { font:inherit; color:var(--text); background:#0c1124; border:1px solid var(--line); border-radius:8px; padding:7px 11px; }
  button { cursor:pointer; transition:.15s; } button:hover:not(:disabled) { border-color:var(--accent); background:#131a36; }
  button:disabled { opacity:.4; cursor:not-allowed; }
  button.on { background:#1d3a2c; border-color:var(--ok); } button.live { background:#3a1d24; border-color:var(--bad); }
  button.primary { background:var(--accent); border-color:var(--accent); font-weight:600; }
  .bar input[type=text] { flex:1; min-width:130px; }
  #editBar, #lookBar { display:none; background:var(--panel2); } #editBar label, #lookBar label { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
  #editBar input[type=color], #lookBar input[type=color] { padding:0; width:36px; height:30px; } #editBar input[type=text] { flex:0 1 190px; }
  aside { width:330px; background:var(--panel); border-left:1px solid var(--line); display:flex; flex-direction:column; min-height:0; }
  aside h2 { font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin:0; padding:12px 14px 6px; }
  #rooms { padding:0 10px 4px; display:flex; flex-direction:column; gap:4px; max-height:28%; overflow:auto; }
  .room { display:flex; justify-content:space-between; gap:8px; padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:#0c112480; font-size:13px; }
  .room.here { border-color:var(--accent); background:#16204a; } .room small { color:var(--muted); white-space:nowrap; }
  #team { overflow:auto; flex:1.5; padding:0 10px; }
  #log { overflow:auto; flex:1; padding:0 14px 10px; font-size:12px; color:var(--muted); }
  #log div { padding:3px 0; border-bottom:1px dashed #ffffff10; }
  .card { background:#0c112480; border:1px solid var(--line); border-radius:10px; padding:8px 10px; margin-bottom:8px; }
  .card.off { opacity:.45; } .card b { font-size:14px; } .card small { color:var(--muted); display:block; margin-top:2px; } .card small.warn { color:var(--warn); }
  .row { display:flex; justify-content:space-between; align-items:center; gap:8px; }
  .mono { font-variant-numeric:tabular-nums; }
  #login { position:fixed; inset:0; background:#0b1022f2; display:flex; align-items:center; justify-content:center; z-index:9; }
  #login form { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:26px; width:340px; display:flex; flex-direction:column; gap:12px; box-shadow:0 20px 60px #0008; }
  #login h2 { margin:0; } #login p { margin:0; color:var(--muted); font-size:13px; }
  #asks { position:absolute; top:14px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; gap:8px; z-index:4; }
  .ask { background:var(--panel2); border:1px solid var(--accent); border-radius:12px; padding:12px 14px; display:flex; gap:10px; align-items:center; box-shadow:0 10px 30px #0008; white-space:nowrap; }
  #needShare { display:none; border-color:var(--warn); }
  .room { cursor:pointer; } .room:hover { border-color:var(--accent); }
  #itemCtl { position:absolute; display:none; gap:4px; transform:translate(-50%,-100%); z-index:3; } #itemCtl button { width:34px; height:34px; padding:0; font-size:16px; background:#0c1124ee; border-color:var(--ok); } #itemCtl #ctlDel { border-color:var(--bad); }
  #zoomBox { position:absolute; right:12px; bottom:12px; display:flex; flex-direction:column; gap:4px; z-index:3; } #zoomBox button { width:34px; height:34px; padding:0; font-size:16px; background:#0c1124cc; }
  #timeCard { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:var(--panel2); border:1px solid var(--accent); border-radius:16px; padding:22px 34px; text-align:center; box-shadow:0 20px 60px #000a; z-index:5; display:none; cursor:pointer; }
  #timeCard b { display:block; font-size:54px; letter-spacing:.03em; font-variant-numeric:tabular-nums; } #timeCard span { color:var(--muted); display:block; } #timeCard span::first-letter { text-transform:uppercase; }
  #clock { cursor:pointer; }
  #toast { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); background:#000c; border:1px solid var(--line); padding:8px 14px; border-radius:99px; opacity:0; transition:.3s; pointer-events:none; z-index:4; white-space:nowrap; }
  #big { position:fixed; inset:0; background:#000d; display:none; align-items:center; justify-content:center; z-index:8; flex-direction:column; gap:10px; }
  #big video { max-width:94vw; max-height:84vh; border-radius:8px; border:1px solid var(--line); background:#000; }
  @media (max-width: 860px) { main { flex-direction:column; } aside { width:auto; border-left:0; border-top:1px solid var(--line); max-height:42vh; } }
#lookBar { position: fixed !important; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; width: min(760px, calc(100vw - 32px)); gap: 16px !important; padding: 18px !important; border: 1px solid var(--line); border-radius: 16px; background: #121733f8 !important; box-shadow: 0 24px 60px #000a; flex-wrap: wrap; align-items: flex-start !important; }
#lookBar .lgrid { flex: 1; min-width: 260px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
#lookBar .lgrid label { display: flex; flex-direction: column; align-items: stretch !important; gap: 4px !important; font-size: 12px; color: var(--muted); }
#lookBar .lgrid label:has(input[type=checkbox]) { flex-direction: row; align-items: center !important; color: var(--text); font-size: 13px; }
#lookBar input[type=color] { width: 100% !important; height: 30px; padding: 0 !important; }
#lookBar #lDone { grid-column: 1 / -1; justify-self: end; padding: 8px 22px; }
#team .tHead { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 2px 6px; }
#team .tCard { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #0c112480; margin-bottom: 6px; cursor: pointer; transition: border-color .12s, background .12s; }
#team .tCard:hover { border-color: var(--accent); } #team .tCard.me { cursor: default; border-color: #2f4a8a; background: #141d3d; }
#team .tCard.off { opacity: .5; }
#team .tAv { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; }
#team .tAv i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #121733; }
#team .tBody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#team .tTop { display: flex; justify-content: space-between; gap: 8px; } #team .tTop b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #team .tTop em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
#team .tSub { font-size: 12px; color: var(--muted); } #team .tSt { font-weight: 600; }
#team .tTask { font-size: 12px; color: #c9cfee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#team .tWarn { font-size: 11.5px; color: var(--warn); }
#team .daybar { margin: 4px 0 0; }
.pres{display:inline-block;font-size:11px;font-weight:600;color:#fff;padding:1px 7px;border-radius:9px;margin-left:4px;vertical-align:1px}
