:root{
  --bg:#070707;
  --surface:#0f0f0f;
  --line:rgba(255,255,255,.07);
  --line-2:rgba(255,255,255,.12);
  --text:#ecece9;
  --muted:#8b8c89;
  --faint:#55564f;
  --accent:#9b6bff;
  --alert:#ff5b4f;
  --font:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"Geist Mono",ui-monospace,Consolas,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html,body{height:100%}
body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:13px;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;overflow:hidden;user-select:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input{font:inherit;color:var(--text);background:none;border:0;outline:none;user-select:text}
input::placeholder{color:var(--faint)}
svg.i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
svg.i.s12{width:12px;height:12px}
.mono{font-family:var(--mono);font-size:11px;color:var(--muted)}
.mono.strong{color:var(--text)}
.faint{color:var(--faint)}
.soon{opacity:.45;cursor:default}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.08);border-radius:8px}
::-webkit-scrollbar-track{background:transparent}

/* ---------- title bar ---------- */
.titlebar{height:48px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 18px;position:relative;-webkit-app-region:drag}
.nodrag,.titlebar button,.titlebar input{-webkit-app-region:no-drag}
.tb-left{display:flex;align-items:center;gap:14px;min-width:0;overflow:hidden}
.brand{display:flex;align-items:center;gap:9px;font-weight:500;font-size:14px;letter-spacing:-.01em}
.brand svg{width:22px;height:22px}
.room{display:flex;align-items:center;gap:10px;white-space:nowrap}
.room .sep{width:1px;height:14px;background:var(--line-2)}
.tb-right{display:flex;align-items:center;gap:6px}
/* The three screens, side by side in the middle of the title bar. */
.vtabs{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:1px;padding:2px;border-radius:9px;background:rgba(255,255,255,.03)}
.vtabs button{display:flex;align-items:center;gap:5px;height:23px;padding:0 8px;border-radius:7px;font-size:11.5px;font-weight:500;color:var(--muted);white-space:nowrap}
.vtabs button:hover{color:var(--text);background:rgba(255,255,255,.05)}
.vtabs button.on{color:#cdbaff;background:rgba(155,107,255,.22)}
.vtabs svg{width:12px;height:12px}
.vtabs .count{min-width:17px;height:17px;padding:0 5px;border-radius:999px;background:var(--alert);color:#fff;font-size:10px;font-weight:600;display:inline-grid;place-items:center}
/* A narrow window keeps the icons and drops the words, so the tabs never
   run into the meeting name on the left or the buttons on the right. */
.vtabs.tight{position:static;transform:none;flex:none;margin:0 8px}
@media (max-width:1100px){.vtabs button{padding:0 7px}.vtabs button span:not(.count){display:none}}
.me{display:flex;align-items:center;gap:8px;margin-right:6px;font-size:12px;color:var(--muted)}
.me-av{width:26px;height:26px;background:radial-gradient(circle at 30% 30%,#e8deff,#6b4fc2 70%)!important}
.wcs{display:flex}
.wc{width:40px;height:32px;display:grid;place-items:center;color:var(--muted);border-radius:8px}
.wc:hover{background:rgba(255,255,255,.06);color:var(--text)}
.wc.close:hover{background:rgba(255,91,79,.18)}
.wc svg{width:14px;height:14px}

main{flex:1;display:flex;min-height:0}
.view{flex:1;min-width:0;min-height:0}

/* ---------- atoms ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 16px;border-radius:999px;font-weight:500;font-size:13px;border:1px solid var(--line-2);background:rgba(10,10,10,.6);color:var(--text);white-space:nowrap}
.btn:hover{border-color:rgba(255,255,255,.22)}
.btn.primary{background:#f4f4f1;color:#0a0a0a;border-color:transparent}
.btn.primary:hover{background:#fff}
.btn:disabled{opacity:.4;cursor:default}
.btn.sm{height:28px;padding:0 12px;font-size:12px}
.btn svg{width:14px;height:14px}
.chip{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px;border-radius:999px;border:1px solid var(--line-2);background:rgba(0,0,0,.35);font-size:11.5px;color:var(--text);white-space:nowrap}
button.chip:hover{border-color:rgba(255,255,255,.22)}
.dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none}
.dot.idle{background:var(--faint)}
.dot.alert{background:var(--alert)}
.av{border-radius:50%;flex:none;display:grid;place-items:center;color:#0a0a0a;font-weight:600;background:var(--accent)}
/* A profile photo fills the circle; it wins over colors set inline or by .me-av. */
.av.photo{background-image:var(--av-photo)!important;background-size:cover!important;background-position:center!important;background-color:#161616!important;color:transparent}
#home-av{cursor:pointer}
/* Photo controls sit on the card's picture, not in its name row. */
.photo-actions{position:absolute;right:8px;bottom:8px;z-index:2;display:flex;gap:4px;opacity:0;transition:opacity .15s}
.person:hover .photo-actions,.photo-actions:focus-within{opacity:1}
@media (hover:none){.photo-actions{opacity:1}}
.photo-btn{height:22px;padding:0 8px;gap:5px;font-size:10.5px;background:rgba(0,0,0,.6)}
.photo-btn svg{width:11px;height:11px}
.lvl{display:flex;gap:2px;align-items:flex-end;height:12px}
.lvl i{width:2px;height:2px;background:var(--accent);border-radius:1px;transition:height .08s}
.icon-btn{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--muted);border:1px solid var(--line)}
.icon-btn:hover{color:var(--text);border-color:var(--line-2)}
.icon-btn.off{color:var(--alert);border-color:rgba(255,91,79,.3)}
.icon-btn svg{width:13px;height:13px}

.glow{position:relative;overflow:hidden;background:#050505}
.glow::before{content:"";position:absolute;inset:-20%;pointer-events:none;
  background:
    radial-gradient(38% 42% at 78% 22%, rgba(186,160,255,.48), transparent 70%),
    radial-gradient(30% 50% at 62% 48%, rgba(124,88,230,.26), transparent 72%),
    radial-gradient(26% 30% at 12% 88%, rgba(150,118,255,.26), transparent 70%);
  filter:blur(30px)}
.glow::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);background-size:3px 3px;mask-image:linear-gradient(transparent,#000 60%);opacity:.5}
.wires{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.wires path{fill:none;stroke:rgba(255,255,255,.14);stroke-width:1;vector-effect:non-scaling-stroke}

/* ---------- sign in ---------- */
.signin-view{display:flex;padding:0 12px 12px}
.panel{flex:1;border-radius:12px;border:1px solid var(--line)}
.auth{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);width:380px;display:flex;flex-direction:column;align-items:center;text-align:center}
.auth svg.logo{width:92px;height:92px;margin-bottom:18px;overflow:visible}
.auth h1{font-weight:400;font-size:40px;letter-spacing:-.04em;line-height:1}
.auth > p{color:#b8b9b5;font-size:13.5px;margin:12px 0 30px}
.form{width:100%;padding:8px;border-radius:18px;border:1px solid var(--line-2);background:rgba(8,8,8,.72);backdrop-filter:blur(18px);display:flex;flex-direction:column;gap:6px;text-align:left}
.field{height:54px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid var(--line);padding:8px 14px;display:flex;flex-direction:column;justify-content:center;gap:3px;cursor:text}
.field:focus-within{border-color:rgba(155,107,255,.45);box-shadow:0 0 0 3px rgba(155,107,255,.08)}
.field .label{font-size:10.5px;color:var(--muted);letter-spacing:.02em}
.field input{font-size:13.5px;width:100%}
.field .row{display:flex;align-items:center;gap:8px}
.eye{color:var(--muted);display:grid;place-items:center}
.eye:hover{color:var(--text)}
.form-error{color:var(--alert);font-size:12px;padding:2px 6px}
.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.linkbtn{font-size:12px;color:var(--text);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.linkbtn:hover{text-decoration-color:var(--text)}
.form .btn{height:44px;margin-top:4px}
.auth-foot{margin-top:18px;display:flex;gap:12px;color:var(--muted);font-size:12px}
.auth-foot u{color:var(--text);text-decoration-color:var(--line-2);text-underline-offset:3px}
.made-by{margin-top:28px;font-size:11px;letter-spacing:.02em;color:var(--faint)}
.server{position:absolute;z-index:2;left:22px;bottom:18px;display:flex;align-items:center;gap:10px}

/* ---------- home ---------- */
.home{display:flex;flex-direction:column;gap:12px;padding:0 12px 12px}
.hero{flex:1;min-height:0;border-radius:12px;border:1px solid var(--line)}
.hero-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;z-index:2;text-align:center;padding:0 24px}
.hero h1{font-weight:400;font-size:clamp(32px,4vw,51px);letter-spacing:-.045em;line-height:1}
.hero h1 span{background:linear-gradient(90deg,#fff 10%,rgba(255,255,255,.35));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{color:#b8b9b5;font-size:14px}
.actions{display:flex;gap:8px;margin-top:10px}
.code{display:inline-flex;align-items:center;height:36px;border-radius:999px;border:1px solid var(--line-2);background:rgba(10,10,10,.6);padding:0 4px 0 14px;gap:8px}
.code:focus-within{border-color:rgba(155,107,255,.45)}
.code input{font-family:var(--mono);font-size:12px;width:112px}
.node{position:absolute;z-index:2;display:flex;flex-direction:column;gap:2px}
.node.right{align-items:flex-end}
.node .name{display:flex;align-items:center;gap:7px;font-size:12.5px}
.node .val{padding-left:13px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.node .ico{width:30px;height:30px;border-radius:50%;border:1px solid var(--line-2);display:grid;place-items:center;background:rgba(0,0,0,.5);margin-bottom:10px}
/* The DAW node lights up while arclive Send is connected. */
.node-daw .ico{transition:border-color .3s,box-shadow .3s,color .3s}
.node-daw.live .ico{border-color:rgba(155,107,255,.75);color:#e4d9ff;background:radial-gradient(circle at 50% 40%,rgba(155,107,255,.35),rgba(0,0,0,.5) 75%);box-shadow:0 0 0 4px rgba(155,107,255,.12),0 0 24px rgba(155,107,255,.55)}
.node-daw.live .name{color:#fff}
.hero-foot{position:absolute;left:22px;right:22px;bottom:18px;display:flex;justify-content:space-between;align-items:center;z-index:2}

.people-head{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 0}
.people-head .t{display:flex;align-items:center;gap:12px;font-size:13px}
/* Same rule as the meeting strip: the feed is 16:9, the card width follows it. */
.people{--feed-h:clamp(110px,15vh,170px);flex:none;display:flex;gap:10px;overflow:hidden}
.person{flex:none;width:calc(var(--feed-h) * 16 / 9);height:calc(var(--feed-h) + 44px);border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden;display:flex;flex-direction:column;transition:border-color .2s}
.person .feed{flex:1;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(70% 90% at 50% 30%,#1c1a22 0%,#0f0e12 70%)}
.person .feed video,.tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.av.big{width:48px;height:48px;font-size:15px}
.person .feed .lvl{position:absolute;right:8px;top:8px}
.person .feed .badge{position:absolute;left:8px;top:8px;height:20px;font-size:10.5px;padding:0 8px}
.person .info{height:44px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 12px;border-top:1px solid var(--line);gap:8px}
.person .who{min-width:0}
.person .who b{font-weight:400;font-size:12.5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person .who small{font-size:11px;color:var(--muted)}
.name-btn{display:flex;align-items:center;gap:6px;max-width:100%;text-align:left}
.name-btn b{min-width:0}
.name-btn svg{width:11px;height:11px;color:var(--faint)}
.name-btn:hover svg{color:var(--text)}
.name-input{display:block;width:100%;font-size:12.5px;padding:0 0 1px;border-bottom:1px solid rgba(155,107,255,.7)}
.card-actions{display:flex;gap:4px}
.person.speaking,.tile.speaking{border-color:rgba(155,107,255,.5)}
.person.invite{border-style:dashed;background:transparent;align-items:center;justify-content:center;gap:6px;color:var(--muted)}
.person.invite small{font-size:11px;color:var(--faint)}

/* ---------- meeting ---------- */
.meeting{display:grid;grid-template-columns:60px minmax(0,1fr) 320px;border-top:1px solid var(--line)}
.tools{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0;border-right:1px solid var(--line)}
.tool{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:var(--muted)}
.tool:hover{color:var(--text);background:rgba(255,255,255,.05)}
.tool.on{color:#0a0a0a;background:#f1f1ee}
.tool svg{width:17px;height:17px}
.tools hr{width:22px;border:0;border-top:1px solid var(--line);margin:6px 0}
.swatches{display:flex;flex-direction:column;align-items:center;gap:10px;padding:4px 0}
.swatch{width:18px;height:18px;border-radius:50%;border:1px solid rgba(255,255,255,.15)}
.swatch.on{outline:1.5px solid #fff;outline-offset:3px}
.sizes{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:8px}
.sizes button{width:28px;height:22px;display:grid;place-items:center}
.sizes span{display:block;border-radius:50%;background:var(--muted)}
.sizes button.on span{background:#fff}
.tools .spacer{flex:1}
body.no-screen .tool[data-tool]:not([data-tool="pointer"]),body.no-screen #ink-undo,body.no-screen #ink-clear{opacity:.35}

.center{display:flex;flex-direction:column;gap:10px;padding:12px;min-width:0;min-height:0}
.stage{flex:1;min-height:0;position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#0b0b0b}
#screen-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#ink-canvas{position:absolute;pointer-events:none;touch-action:none}
.stage.drawing #ink-canvas{pointer-events:auto;cursor:crosshair}
.stage.erasing #ink-canvas{cursor:cell}
.stage.texting #ink-canvas{cursor:text}
.ink-text{position:absolute;z-index:4;min-width:160px;padding:2px 6px;border:1px dashed rgba(255,255,255,.35);border-radius:6px;background:rgba(0,0,0,.35);font-weight:500;transform:translate(-7px,-3px);line-height:1.2}
.ink-waiting{position:absolute;z-index:5;left:50%;bottom:20px;transform:translateX(-50%);display:flex;align-items:center;gap:14px;max-width:calc(100% - 32px);padding:12px 16px;border:1px solid var(--line-2);border-radius:12px;background:#111;font-size:13px}
.ink-waiting span{min-width:0}
.ink-waiting button{flex:none}
.ink-access{position:relative}
.ink-access summary{cursor:pointer;list-style:none}
.ink-access summary::-webkit-details-marker{display:none}
.ink-access-body{position:absolute;top:34px;left:0;width:min(300px,70vw);padding:10px 12px;background:#111;border:1px solid var(--line-2);border-radius:12px;box-shadow:0 8px 24px #0008}
.ink-access-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0;font-size:12px}
.ink-access-row span{overflow-wrap:anywhere;min-width:0}
.ink-access-row button{flex:none}
.ink-access-row select{min-width:0;flex:1;color:var(--text);background:#111;border:1px solid var(--line-2);border-radius:6px;padding:5px;font:inherit}
.ink-access-empty{display:block;color:var(--muted);font-size:12px;padding:5px 0}
#ink-consent-modal{z-index:75}
#ink-consent-title{overflow-wrap:anywhere}
.ink-consent-note{padding:0 20px 18px;font-size:13px;color:var(--muted)}
.stage-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;background-image:radial-gradient(rgba(255,255,255,.035) 1px,transparent 1px);background-size:18px 18px}
.stage-empty .ico{width:44px;height:44px;border-radius:50%;border:1px solid var(--line-2);display:grid;place-items:center;margin-bottom:6px;color:var(--muted)}
.stage-empty h2{font-weight:400;font-size:22px;letter-spacing:-.02em}
.stage-empty p{color:var(--muted);margin-bottom:10px}
.stage-label{position:absolute;left:12px;top:12px;right:12px;z-index:3;display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}
.stage-label > *{pointer-events:auto}
.share-switch{display:flex;gap:4px;flex-wrap:wrap}
/* Whoever is sharing reads in purple everywhere: stage label, switch, tile
   badge, split cells, people list. White chips were mistaken for buttons. */
.chip.sharing-chip{background:rgba(155,107,255,.2);border-color:rgba(155,107,255,.6);color:#efe8ff}
.chip.sharing-chip svg{color:#c9b5ff}
.stage-label .share-switch .chip{border-color:rgba(155,107,255,.4);color:#e4d9ff}
.stage-label .chip.on{background:var(--accent);color:#0a0a0a;border-color:transparent}
.stage-label .share-switch .chip.pending{border-style:dashed;opacity:.6}
.stage-label .share-switch .chip.pending.on{opacity:1}
.stage-missing p{max-width:440px;line-height:1.5}
.prow .n small.sharing{color:#c9b5ff}

/* The people strip folds down (M): the stage takes the whole height. */
.strip-toggle{justify-self:start;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px 0 6px;border-radius:999px;color:var(--muted);font-family:var(--mono);font-size:11px}
.strip-toggle:hover{color:var(--text);background:rgba(255,255,255,.05)}
.strip-toggle svg{width:14px;height:14px;transition:transform .15s}
.meeting.strip-collapsed:not(.gallery) .strip{display:none}
.meeting.strip-collapsed .strip-toggle svg{transform:rotate(180deg)}
.stage-label .stage-full{margin-left:auto}
.stage:fullscreen{border-radius:0;border:0;background:#000}

/* Two or more shared screens: split the stage, click one to pin it. */
.share-grid{position:absolute;inset:0;display:grid;gap:6px;padding:48px 6px 6px;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(0,1fr)}
.share-grid[data-count="3"],.share-grid[data-count="4"]{grid-template-rows:1fr 1fr}
.share-grid[data-count="5"]{grid-template-columns:1fr 1fr 1fr}
.share-cell{position:relative;min-width:0;min-height:0;border-radius:10px;overflow:hidden;background:#000;border:1px solid var(--line);padding:0}
.share-cell:hover{border-color:rgba(155,107,255,.7)}
.share-cell video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.share-cell-name{position:absolute;left:8px;bottom:8px}
.share-cell-pin{position:absolute;right:8px;bottom:8px;opacity:0;transition:opacity .15s}
.share-cell:hover .share-cell-pin{opacity:1}

/* Tiles keep a real camera proportion (16:9) and grow with the window height,
   instead of stretching across the width into a ribbon. */
/* No cap on people: past the window width the strip scrolls sideways.
   overflow-y is set on its own because overflow-x:auto alone turns the
   vertical axis into auto too, and the tiles would get a ghost scrollbar. */
.strip{height:clamp(108px,16vh,180px);flex:none;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.tile{height:100%;aspect-ratio:16/9;flex:none;position:relative;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:radial-gradient(70% 95% at 50% 30%,#1c1a22 0%,#0f0e12 70%);display:grid;place-items:center;transition:border-color .2s}
.tile .av{width:40px;height:40px;font-size:13px}
.tile.peer video{transform:none}
.tile .tag{position:absolute;left:6px;bottom:6px;display:flex;align-items:center;gap:5px;font-size:11px;background:rgba(0,0,0,.5);padding:3px 8px;border-radius:999px;max-width:calc(100% - 12px)}
.tile .tag span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .tag svg{width:11px;height:11px}
.tile .tag svg.muted{color:var(--alert)}
.tile .lvl{position:absolute;right:8px;top:8px}
.tile.empty{border-style:dashed;background:transparent;color:var(--faint);font-size:12px}

/* Gallery: no stage, the tiles share the whole area like Zoom's gallery.
   --tile-w is computed in JS so the grid is as large as the area allows. */
.meeting.gallery .stage{display:none}
.meeting.gallery .strip{flex:1;height:auto;min-height:0;flex-wrap:wrap;justify-content:center;align-content:safe center;gap:10px;overflow:hidden}
/* Safety net for any stale frame: a tile never wider than the strip, and
   "safe center" pins overflow to the bottom instead of above the stage. */
.meeting.gallery .tile{height:auto;width:min(var(--tile-w,320px),100%)}
.meeting.gallery .tile .av{width:26%;max-width:150px;height:auto;aspect-ratio:1;font-size:clamp(13px,2.2vw,44px)}
.meeting.gallery .tile .tag{left:10px;bottom:10px;font-size:12px}
.meeting.gallery .tile.empty{font-size:14px}

.dockrow{height:52px;flex:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.dockrow .right{text-align:right}
.dock{display:flex;align-items:center;gap:4px;padding:5px;border-radius:999px;background:var(--surface);border:1px solid var(--line-2)}
.dbtn{white-space:nowrap;height:38px;min-width:38px;padding:0 12px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12.5px;color:var(--muted)}
.dbtn:hover{color:var(--text)}
.dbtn.on{background:rgba(255,255,255,.08);color:var(--text)}
.dbtn.muted{color:var(--alert);background:rgba(255,91,79,.1)}
.dbtn svg{width:17px;height:17px}
.dock .sep{width:1px;height:20px;background:var(--line-2);margin:0 4px}
.dbtn.leave{background:#f4f4f1;color:#0a0a0a;padding:0 16px;font-weight:500}
.dbtn.leave:hover{background:#fff}

.side{border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0;overflow:hidden}

/* Side panel folded to the right: a thin rail with chat and people, and the
   stage and gallery take the space (their ResizeObservers relayout them). */
/* No transition on the columns: the gallery tile width is computed from the
   strip width by a ResizeObserver, which answers one frame late. Animated,
   every frame changed the width again and the tiles were drawn too wide,
   spilling over the top of the stage for the whole .22s. Instant = one
   resize, recomputed before the paint. */
.meeting.side-collapsed{grid-template-columns:60px minmax(0,1fr) 52px}
.side-rail{display:none;flex-direction:column;align-items:center;gap:6px;padding:10px 0}
.meeting.side-collapsed .side-rail{display:flex}
.meeting.side-collapsed .side > :not(.side-rail){display:none}
.rail-btn{position:relative;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:var(--muted)}
.rail-btn:hover{color:var(--text);background:rgba(255,255,255,.05)}
.rail-btn svg{width:17px;height:17px}
.rail-btn .badge{position:absolute;top:1px;right:1px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--accent);color:#0a0a0a;font-size:10px;font-weight:600;display:grid;place-items:center}
.tabs .side-close{flex:none;width:30px;padding:0;display:grid;place-items:center;color:var(--muted)}
.tabs .side-close:hover{color:var(--text);background:rgba(255,255,255,.05)}
.tabs .side-close svg{width:15px;height:15px}
.tabs{display:flex;gap:2px;padding:10px 12px;border-bottom:1px solid var(--line)}
.tabs button{flex:1;text-align:center;padding:6px 0;border-radius:999px;color:var(--muted);font-size:12px}
.tabs button.on{background:rgba(255,255,255,.07);color:var(--text)}
.pane{flex:1;display:flex;flex-direction:column;min-height:0}
.msgs{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:14px;user-select:text}
.msgs > :first-child{margin-top:auto}
.msg{display:flex;gap:10px}
.msg .av{width:24px;height:24px;font-size:10px}
.msg .who{display:flex;gap:8px;align-items:baseline;margin-bottom:3px;font-size:12px}
.msg .who b{font-weight:500}
.msg .who span{color:var(--faint);font-size:10.5px;font-family:var(--mono)}
.msg p{color:#c9cac6;line-height:1.45;font-size:12.5px;white-space:pre-wrap;word-break:break-word}
.msg.self .who b{color:var(--accent)}
.sys{text-align:center;color:var(--faint);font-size:11px}
.compose{margin:0 14px 14px;display:flex;align-items:center;gap:8px;height:42px;padding:0 6px 0 14px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface)}
.compose:focus-within{border-color:rgba(155,107,255,.45)}
.compose input{flex:1;min-width:0;font-size:13px}
.compose .send{width:30px;height:30px;border-radius:50%;background:#f1f1ee;color:#000;display:grid;place-items:center;flex:none}
.compose .send svg{width:14px;height:14px}
.compose .attach{width:30px;height:30px;border-radius:50%;color:var(--muted);display:grid;place-items:center;flex:none}
.compose .attach:hover{color:var(--text);background:rgba(255,255,255,.06)}
.compose .attach svg{width:16px;height:16px}
.compose.busy .attach{opacity:.4;pointer-events:none}
#pane-chat.dropping .msgs{outline:1px dashed rgba(155,107,255,.6);outline-offset:-6px;border-radius:12px}

/* ---------- team chat ---------- */
.view.team{flex:1;min-height:0;display:grid;grid-template-columns:232px minmax(0,1fr) 220px;border-top:1px solid var(--line)}
/* The left column keeps its foot in place while the lists above it scroll. */
.team-side{min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line)}
.team-side-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:14px 10px}
.team-side-foot{flex:none;border-top:1px solid var(--line);padding:8px 10px 10px;display:flex;flex-direction:column;gap:6px}
/* ---- a channel that holds links */
.team-links-bar{flex:none;display:flex;align-items:center;gap:10px;padding:8px 16px;border-bottom:1px solid var(--line)}
.team-links-bar input{flex:1;min-width:0}
#team-link-count{flex:none;color:var(--faint)}
.team-links-bar input{height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:rgba(0,0,0,.35);color:var(--text);font-size:12.5px}
.team-links-bar input:focus{outline:none;border-color:var(--line-2)}
.team-add-link{flex:none;display:flex;gap:8px;padding:12px 16px 16px;border-top:1px solid var(--line)}
.team-add-link input{height:36px;padding:0 12px;border-radius:10px;border:1px solid var(--line-2);background:rgba(8,8,8,.72);color:var(--text);font-size:13px}
.team-add-link #team-link-url{flex:1.2;min-width:0}
.team-add-link #team-link-text{flex:1;min-width:0}
.team-add-link input:focus{outline:none;border-color:rgba(155,107,255,.6)}
/* One link: the page's picture on the left, what it is on the right. */
.team-msg .link-card{max-width:460px;margin-top:6px}
.team-msg .text.gone{display:none}
.link-row{position:relative;padding:4px 0}
.link-card.lifted{opacity:.45}
.link-card.drop-above{box-shadow:0 -2px 0 0 var(--accent)}
.link-card.drop-below{box-shadow:0 2px 0 0 var(--accent)}
.link-card{display:flex;gap:14px;align-items:stretch;padding:10px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.02);cursor:pointer}
.link-card:hover{border-color:var(--line-2);background:rgba(255,255,255,.04)}
.link-shot{flex:none;width:168px;height:94px;border-radius:10px;overflow:hidden;background:rgba(255,255,255,.05);display:grid;place-items:center}
.link-shot img{width:100%;height:100%;object-fit:cover;display:block}
.link-letter{font-size:30px;font-weight:600;color:var(--faint)}
.link-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;justify-content:center}
.link-title{font-size:13.5px;font-weight:500;color:var(--text);text-decoration:none;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.link-title:hover{text-decoration:underline}
.link-said{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.link-foot{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--faint)}
.link-site{color:#cdbaff}
.link-row .react{position:absolute;top:8px;right:10px;opacity:0;transition:opacity .12s}
.link-row:hover .react{opacity:1}
.link-row .team-reactions{padding-left:192px}

/* A board in the channel list is the same row as a channel, and just as
   quiet. Only .unread lights either of them up. */
.team-item.unread svg.i{color:var(--accent)}
/* What someone leads, on their row in People. */
.rank-chip{flex:none;height:17px;padding:0 6px;border-radius:999px;border:1px solid var(--line);color:var(--faint);font-size:10px;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.rank-chip.on{background:rgba(155,107,255,.18);border-color:rgba(155,107,255,.55);color:#cdbaff}
.rank-chip:hover:not(:disabled){border-color:var(--line-2);color:var(--text)}
.rank-chip:disabled{cursor:default}
/* Where a dragged channel would land. */
.drop-here{background:rgba(155,107,255,.14);border-radius:8px;outline:1px dashed rgba(155,107,255,.65);outline-offset:-1px}
.team-filter-row{display:block}
.team-side-foot .team-filter{align-items:center;max-height:132px;overflow-y:auto;padding:0;gap:3px}
/* In the flow with the chips, so it never keeps a line to itself. */
.team-filter-row .wc{width:20px;height:22px;vertical-align:top}
.team-filter-row .wc svg{width:12px;height:12px}
.team-filter-row .wc.on svg{transform:rotate(-90deg)}
/* Three buttons, one line, in a column about 230 px wide. */
.team-side-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.team-side-tools .btn.sm{height:24px;padding:0 7px;font-size:11.5px}
/* Room on the right so nothing runs into the window's edge. */
.team-people{min-height:0;overflow-y:auto;overflow-x:hidden;padding:14px 14px 14px 10px;border-left:1px solid var(--line)}
.team-side-head{display:flex;flex-direction:column;gap:3px;padding:2px 8px 12px}
.team-side-head b{font-weight:500;font-size:14px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-call-pill{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 10px;padding:8px 10px;border-radius:10px;background:rgba(155,107,255,.14);border:1px solid rgba(155,107,255,.4);color:#efe8ff;font-size:12px;text-align:left}
.team-call-pill span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-list-head{display:flex;align-items:center;justify-content:space-between;height:28px;padding:0 4px 0 8px;margin-top:8px;font-size:11px;color:var(--muted);letter-spacing:.02em}
.team-list-head .wc{width:24px;height:24px}
.team-list{display:flex;flex-direction:column;gap:1px}
.team-item{display:flex;align-items:center;gap:8px;height:30px;padding:0 8px;border-radius:8px;color:var(--muted);font-size:12.5px;text-align:left;width:100%}
.team-item:hover{background:rgba(255,255,255,.04);color:var(--text)}
.team-item.on{background:rgba(255,255,255,.08);color:var(--text)}
.team-item.unread{color:var(--text);font-weight:500}
.team-item .label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-item svg.i{width:14px;height:14px;color:var(--faint)}
.team-item .count{margin-left:auto}
.team-item .live{width:7px;height:7px;border-radius:50%;background:#3ccf7e;flex:none}
.team-item .av{width:18px;height:18px;font-size:8px}
.team-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.team-head{display:flex;align-items:center;gap:10px;height:56px;flex:none;padding:0 16px;border-bottom:1px solid var(--line)}
.team-head-text{flex:1;min-width:0;display:flex;align-items:baseline;gap:10px}
.team-head-text b{font-weight:500;font-size:14px;white-space:nowrap}
.team-head-text span{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-menu-btn{display:none}
#team-call.live{background:rgba(60,207,126,.14);border-color:rgba(60,207,126,.55);color:#d6f7e4}
.team-msgs{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 18px;display:flex;flex-direction:column;user-select:text}
.team-msgs > :first-child{margin-top:auto}
.team-day{display:flex;align-items:center;gap:10px;margin:14px 0 6px;color:var(--faint);font-size:11px}
.team-day::before,.team-day::after{content:"";flex:1;height:1px;background:var(--line)}
.team-older{align-self:center;margin:6px 0 10px}
.team-msg{position:relative;display:flex;gap:10px;padding:6px 8px;margin:0 -8px;border-radius:8px}
.team-msg:hover{background:rgba(255,255,255,.025)}
.team-msg.cont{padding-top:1px}
.team-msg .av{width:30px;height:30px;font-size:11px}
.team-msg.cont .av{visibility:hidden;height:0}
.team-msg-body{flex:1;min-width:0}
.team-msg .who{display:flex;gap:8px;align-items:baseline;margin-bottom:2px;font-size:12.5px}
.team-msg .who b{font-weight:500}
.team-msg .who span{color:var(--faint);font-size:10.5px;font-family:var(--mono)}
.team-msg.cont .who{display:none}
.team-msg p{color:#d6d7d3;line-height:1.5;font-size:13px;white-space:pre-wrap;word-break:break-word}
.team-msg .picture{max-height:320px}
.team-msg .picture img{max-height:320px}
.team-msg .del{position:absolute;top:4px;right:6px;width:26px;height:26px;border-radius:7px;display:none;place-items:center;color:var(--muted);background:#141414;border:1px solid var(--line-2)}
.team-msg:hover .del{display:grid}
.team-msg .del:hover{color:var(--alert)}
.team-callcard{display:flex;align-items:center;gap:10px;margin-top:4px;padding:10px 12px;border-radius:10px;border:1px solid var(--line-2);background:rgba(255,255,255,.03);max-width:360px}
.team-callcard span{flex:1;color:var(--muted);font-size:12px}
.team-empty{margin:auto;text-align:center;color:var(--muted);max-width:340px;line-height:1.6}
.team-empty b{display:block;color:var(--text);font-weight:500;font-size:15px;margin-bottom:4px}
.team-readonly{margin:0 16px 8px;padding:10px 12px;border-radius:10px;border:1px solid rgba(255,91,79,.35);background:rgba(255,91,79,.08);color:#ffd9d5;font-size:12px}
.team-compose{margin:0 16px 16px;display:flex;align-items:flex-end;gap:8px;min-height:44px;padding:6px 6px 6px 14px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface)}
.team-compose:focus-within{border-color:rgba(155,107,255,.45)}
.team-compose textarea{flex:1;min-width:0;max-height:180px;resize:none;font:inherit;font-size:13px;line-height:1.5;padding:5px 0;color:var(--text);background:none;border:0;outline:none;user-select:text}
.team-compose textarea::placeholder{color:var(--faint)}
.team-compose .attach{width:30px;height:30px;border-radius:50%;color:var(--muted);display:grid;place-items:center;flex:none}
.team-compose .attach:hover{color:var(--text);background:rgba(255,255,255,.06)}
.team-compose .send{width:30px;height:30px;border-radius:50%;background:#f1f1ee;color:#000;display:grid;place-items:center;flex:none}
.team-compose .send svg{width:14px;height:14px}
.team-compose.busy .attach{opacity:.4;pointer-events:none}
.team-main.dropping .team-msgs{outline:1px dashed rgba(155,107,255,.6);outline-offset:-6px;border-radius:12px}
.team-people-list{display:flex;flex-direction:column;gap:1px}
.team-group{margin:12px 0 4px;padding:0 8px;font-size:11px;color:var(--faint);letter-spacing:.02em}
.team-person{position:relative}
.team-person .online{position:absolute;left:21px;top:19px;width:8px;height:8px;border-radius:50%;background:#3ccf7e;border:2px solid var(--bg)}
.team-person .role{margin-left:auto;font-size:10.5px;color:var(--faint)}
.team-sheet{width:min(520px,92vw)}
.team-modal-body{padding:4px 20px 18px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;min-height:0}
.team-modal-body .field{height:auto;min-height:54px}
.team-modal-body textarea{font:inherit;font-size:13.5px;color:var(--text);background:none;border:0;outline:none;resize:none;width:100%}
.team-check{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;font-size:12.5px;cursor:pointer;user-select:none}
.team-check:hover{background:rgba(255,255,255,.04)}
.team-check input{width:14px;height:14px;accent-color:var(--accent);cursor:pointer}
.team-check .av{width:22px;height:22px;font-size:9px}
.team-pick{display:flex;flex-direction:column;max-height:260px;overflow-y:auto;border:1px solid var(--line);border-radius:12px;padding:4px}
.team-row{display:flex;align-items:center;gap:8px}
.team-row input{flex:1;min-width:0;height:32px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.03)}
.team-row select{height:30px;border-radius:8px;border:1px solid var(--line);background:#111;color:var(--text);padding:0 8px;font:inherit;font-size:12px}
.team-row .name{flex:1;min-width:0;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-danger{color:var(--alert)!important;border-color:rgba(255,91,79,.45)!important}
/* client area */
.clients-none{padding:6px 8px;font-size:12px;color:var(--faint);line-height:1.45}
.clients-invite{margin:8px 8px 0;align-self:flex-start}
.clients-code{font-size:22px;letter-spacing:.08em;text-align:center;padding:14px;border:1px dashed rgba(155,107,255,.5);border-radius:10px;color:#e4d9ff;user-select:all}
.clients-tabs{display:flex;gap:2px;padding:2px;border:1px solid var(--line-2);border-radius:9px;margin-left:auto}
.clients-tabs button{height:26px;padding:0 12px;border-radius:7px;font-size:12px;color:var(--muted)}
.clients-tabs button.on{background:rgba(155,107,255,.22);color:#efe8ff}
.clients-fin{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.fin-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 20px 8px}
.fin-periods{display:flex;gap:2px;padding:2px;border:1px solid var(--line-2);border-radius:9px}
.fin-periods button{height:26px;padding:0 10px;border-radius:7px;font-size:12px;color:var(--muted)}
.fin-periods button.on{background:rgba(255,255,255,.1);color:var(--text)}
.fin-range{font-size:13px;min-width:120px;text-align:center}
.fin-search{height:30px;min-width:180px;flex:1;max-width:320px;padding:0 10px;border-radius:8px;border:1px solid var(--line-2);background:rgba(255,255,255,.03);font-size:12.5px}
.fin-payer-pick{height:30px;border-radius:8px;border:1px solid var(--line-2);background:#111;color:var(--text);padding:0 8px;font:inherit;font-size:12px}
.fin-spacer{flex:1}
.fin-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:4px 20px 8px}
.fin-card{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.02)}
.fin-card.strong{border-color:rgba(155,107,255,.45);background:rgba(155,107,255,.08)}
.fin-card-label{font-size:11px;color:var(--muted)}
.fin-card-value{font-size:18px;font-weight:500;letter-spacing:-.01em}
.fin-card-note{font-size:11px;color:var(--faint)}
.fin-cats{display:flex;flex-wrap:wrap;gap:6px;padding:0 20px 8px}
.fin-cat{display:inline-flex;align-items:center;gap:8px;height:24px;padding:0 10px;border-radius:999px;border:1px solid var(--line-2);font-size:11.5px;color:var(--muted)}
.fin-cat b{color:var(--text);font-weight:500}
.fin-cat.on{border-color:var(--accent);color:var(--text)}
.fin-list{flex:1;min-height:0;overflow-y:auto;padding:0 12px 16px}
.fin-row{display:grid;grid-template-columns:86px minmax(0,1fr) 120px 72px 120px 18px;align-items:center;gap:12px;width:100%;min-height:44px;padding:6px 8px;border-radius:8px;text-align:left;border-bottom:1px solid var(--line)}
.fin-row:hover{background:rgba(255,255,255,.04)}
.fin-row.deleted{opacity:.4;text-decoration:line-through}
.fin-date{font-size:11.5px;color:var(--muted)}
.fin-what{display:flex;flex-direction:column;min-width:0}
.fin-what b{font-weight:500;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-what span{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-type{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-payer{font-size:10.5px;padding:2px 8px;border-radius:999px;justify-self:start}
.fin-payer.client{background:rgba(155,107,255,.16);color:#d9c9ff}
.fin-payer.company{background:rgba(255,255,255,.08);color:var(--muted)}
.fin-amount{text-align:right;font-weight:500;font-size:13px}
.fin-doc{color:var(--muted);display:grid;place-items:center}
.fin-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fin-form-row input,.team-modal-body input[type=file]{font:inherit;font-size:13.5px;color:var(--text);background:none;border:0;outline:none;width:100%;color-scheme:dark}
.fin-open{align-self:flex-start}
.fin-facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;font-size:13px}
.fin-facts .k{color:var(--muted)}
.fin-history{display:flex;flex-direction:column;gap:4px}
.fin-history-line{display:flex;align-items:baseline;gap:10px;font-size:12px;line-height:1.5}
.fin-history-line .mono{color:var(--faint);font-size:11px;white-space:nowrap}
@media (max-width:980px){.fin-row{grid-template-columns:78px minmax(0,1fr) 64px 110px 18px}.fin-type{display:none}}
.clients-select{height:32px;border-radius:8px;border:1px solid var(--line-2);background:#111;color:var(--text);padding:0 8px;font:inherit;font-size:13px;width:100%;margin-top:4px}
@media (max-width:980px){
  .view.team{grid-template-columns:220px minmax(0,1fr)}
  .team-people{display:none}
}
@media (max-width:760px){
  .view.team{grid-template-columns:minmax(0,1fr)}
  .team-side{display:none;position:fixed;inset:48px 0 0 0;z-index:40;background:var(--bg)}
  .view.team.side-open .team-side{display:block}
  .team-menu-btn{display:grid}
  .team-head{padding:0 10px}
  .team-compose{margin:0 10px calc(10px + env(safe-area-inset-bottom))}
}

/* ---------- board (third screen) ---------- */
.view.board-view{flex:1;min-height:0;display:grid;grid-template-columns:232px minmax(0,1fr);border-top:1px solid var(--line)}
.board-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.board-head{gap:8px}
.board-readonly{color:var(--muted)}
.board-viewers{display:flex;align-items:center}
.board-viewers .av{width:24px;height:24px;font-size:9px;margin-left:-6px;box-shadow:0 0 0 2px var(--bg)}
.board-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#0b0b0b}
#board-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.board-tools{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px;border-radius:14px;background:rgba(15,15,15,.92);border:1px solid var(--line-2);z-index:5}
.board-tools .btool{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:var(--muted)}
.board-tools .btool:hover{color:var(--text);background:rgba(255,255,255,.06)}
.board-tools .btool.on{color:#fff;background:rgba(155,107,255,.28)}
.board-tools.view-only .btool:not([data-tool=select]),.board-tools.view-only .board-colors,.board-tools.view-only .board-sizes,.board-tools.view-only #board-undo,.board-tools.view-only .board-sep{display:none}
.board-sep{width:22px;height:1px;background:var(--line-2);margin:4px 0}
.board-colors{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:2px}
.board-colors button{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.15)}
.board-colors button.on{box-shadow:0 0 0 2px #0f0f0f,0 0 0 3.5px #fff}
.board-colors [data-color="#9b6bff"]{background:#9b6bff}
.board-colors [data-color="#f1f1ee"]{background:#f1f1ee}
.board-colors [data-color="#ff5b4f"]{background:#ff5b4f}
.board-colors [data-color="#f5c542"]{background:#f5c542}
.board-colors [data-color="#3ccf7e"]{background:#3ccf7e}
.board-colors [data-color="#4aa3ff"]{background:#4aa3ff}
.board-sizes{display:flex;flex-direction:column;gap:2px}
.board-sizes button{width:34px;height:22px;border-radius:7px;display:grid;place-items:center}
.board-sizes button.on{background:rgba(255,255,255,.08)}
.board-sizes span{display:block;border-radius:50%;background:var(--text)}
.board-sizes [data-size="0"] span{width:4px;height:4px}
.board-sizes [data-size="1"] span{width:7px;height:7px}
.board-sizes [data-size="2"] span{width:11px;height:11px}
.board-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
/* The bar that sits over the chosen text box or note. */
.board-item-bar{position:absolute;z-index:7;transform:translate(-100%,-100%);display:flex;align-items:center;gap:1px;padding:3px;border-radius:10px;background:rgba(15,15,15,.94);border:1px solid var(--line-2)}
.board-item-bar button{height:24px;min-width:24px;padding:0 5px;border-radius:7px;display:grid;place-items:center;color:var(--muted);font-size:12px;font-weight:500}
.board-item-bar button:hover{color:var(--text);background:rgba(255,255,255,.06)}
.board-item-bar button.on{color:#fff;background:rgba(155,107,255,.28)}
.board-item-bar svg{width:14px;height:14px}
.board-item-bar .mono{min-width:20px;text-align:center;color:var(--text)}
.board-item-bar .board-sep{width:1px;height:16px;margin:0 3px;background:var(--line-2)}
/* Writing happens in the box itself, so the editor wears the item's own
   size and alignment and leaves the board showing through. */
.board-editor.in-place{padding:0;border:none;border-radius:0;background:transparent;overflow:hidden}
.board-editor{position:absolute;z-index:6;padding:10px 12px;border:1px solid rgba(155,107,255,.7);border-radius:6px;background:rgba(15,15,15,.95);color:var(--text);font:inherit;font-weight:500;line-height:1.3;resize:none;outline:none;user-select:text}
.board-select{height:34px;border-radius:10px;border:1px solid var(--line);background:#111;color:var(--text);padding:0 10px;font:inherit;font-size:13px;width:100%;margin-top:6px}
.team-boards-link{margin:0 0 8px;color:var(--text)}
.team-boards-link svg.i{color:var(--accent)!important}
.team-sendbar{position:absolute;left:16px;right:16px;bottom:66px;z-index:29;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;background:#141414;border:1px solid rgba(155,107,255,.5);box-shadow:0 -8px 30px rgba(0,0,0,.5);font-size:12.5px}
.team-sendbar b{font-weight:500}
.team-sendbar select{height:30px;border-radius:8px;border:1px solid var(--line);background:#0f0f0f;color:var(--text);padding:0 8px;font:inherit;font-size:12px;min-width:0;flex:1}
.team-msg .picture-pick{position:absolute;margin:8px;width:22px;height:22px;border-radius:6px;border:1.5px solid rgba(255,255,255,.7);background:rgba(0,0,0,.45);display:none;place-items:center;color:#fff;font-size:13px;z-index:2}
.team-msg:hover .picture-pick,.team-msg .picture-pick.on{display:grid}
.team-msg .picture-pick.on{background:var(--accent);border-color:var(--accent)}
.team-msg .picture-wrap{position:relative;display:inline-block;max-width:100%}
@media (max-width:760px){
  .view.board-view{grid-template-columns:minmax(0,1fr)}
  .board-side{display:none}
}

/* ---------- chat pictures ---------- */
.msg > div:last-child{min-width:0}
.msg .picture{display:block;max-width:100%;max-height:260px;margin-top:2px;padding:0;border-radius:10px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid var(--line);cursor:zoom-in}
.msg .picture img{display:block;width:100%;height:100%;object-fit:contain}
.msg .picture.gone{cursor:pointer;display:grid;place-items:center;color:var(--faint);font-size:11px;min-height:48px;padding:0 12px}
.chat-picture-view{background:rgba(0,0,0,.86);cursor:zoom-out}
.chat-picture-view img{display:block;max-width:94vw;max-height:92vh;object-fit:contain;border-radius:8px}
.picture-close{position:fixed;top:16px;right:16px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);color:var(--text)}
.picture-close svg{width:16px;height:16px}
.plist-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 14px 4px}
.noise-seg{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.plist-actions .noise-seg{margin-top:10px;flex-direction:column;align-items:flex-start;gap:6px}
.seg.small{padding:3px}
.seg.small button{padding:4px 11px;font-size:11.5px}
.plist{padding:12px;display:flex;flex-direction:column;gap:4px}
.prow{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:6px;padding:8px;border-radius:10px;transition:background .3s}
.prow.flash{background:rgba(155,107,255,.14)}
.prow .vol{grid-column:2 / 4;display:flex;align-items:center;gap:8px}
.vol-mute{width:28px;height:28px;flex:none;border-radius:8px;display:grid;place-items:center;color:var(--muted)}
.vol-mute:hover{color:var(--text);background:rgba(255,255,255,.05)}
.vol-mute.on{color:var(--alert);background:rgba(255,91,79,.1)}
.vol-mute svg{width:15px;height:15px}
.vol input[type=range]{flex:1;min-width:0;accent-color:var(--accent);cursor:pointer}
.vol input[type=range].dim{opacity:.4}
.vol-pct{width:38px;text-align:right}
.share-vol .vol-label{flex:none;color:#c9b5ff}
.stage-audio{gap:4px;padding:0 10px 0 2px;border-color:rgba(155,107,255,.4)}
.stage-audio .vol-mute{width:22px;height:22px;border-radius:50%}
.stage-audio .vol-mute svg{width:13px;height:13px}
.stage-audio input[type=range]{width:96px;accent-color:var(--accent);cursor:pointer}
.stage-audio input[type=range].dim{opacity:.4}
.stage-audio .vol-pct{width:34px}
.lpcm-btn{flex:none;height:20px;padding:0 7px;border-radius:999px;border:1px solid var(--line-2);font-family:var(--mono);font-size:10.5px;color:var(--muted)}
.lpcm-btn:hover{color:var(--text)}
.lpcm-btn.wait{color:#c9b5ff;border-color:rgba(155,107,255,.55)}
.lpcm-btn.on{background:var(--accent);border-color:transparent;color:#0a0a0a}
span.lpcm-btn{display:inline-flex;align-items:center;cursor:default}
span.lpcm-btn:hover{color:inherit}
.lpcm-send{cursor:pointer}
.tile.peer{cursor:pointer}
.tile .tag .vol-off{display:inline-grid}
.tile .tag .vol-off svg{color:var(--alert)}
.prow .av{width:28px;height:28px;font-size:10px}
.prow .n{flex:1;min-width:0}
.prow .n b{font-weight:400;display:block}
.prow .n small{color:var(--muted);font-size:11px}
.prow svg{color:var(--muted)}
.prow svg.muted{color:var(--alert)}

/* ---------- share picker ---------- */
.modal{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.6);backdrop-filter:blur(6px);display:grid;place-items:center}
.sheet{width:min(880px,92vw);max-height:82vh;display:flex;flex-direction:column;background:#0b0b0b;border:1px solid var(--line-2);border-radius:18px;overflow:hidden}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px}
.sheet-head h3{font-weight:400;font-size:18px;letter-spacing:-.02em}
.seg{display:flex;gap:2px;padding:4px;border:1px solid var(--line);border-radius:999px}
.seg button{padding:5px 14px;border-radius:999px;color:var(--muted);font-size:12px}
.seg button.on{background:rgba(255,255,255,.08);color:var(--text)}
.sources{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:4px 20px 20px;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;align-content:start}
.source{display:flex;flex-direction:column;gap:8px;padding:8px;border-radius:12px;border:1px solid var(--line);text-align:left}
.source:hover{border-color:var(--line-2)}
.source.on{border-color:rgba(155,107,255,.7);box-shadow:0 0 0 3px rgba(155,107,255,.1)}
.source img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#000;border-radius:8px}
.source span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 2px}
.sources-empty{grid-column:1/-1;color:var(--muted);padding:40px 0;text-align:center}
.sheet-foot{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-top:1px solid var(--line)}
.sheet-actions{display:flex;gap:8px}

/* ---------- server bar, setup note, invite ---------- */
.server-bar{position:fixed;left:34px;bottom:30px;z-index:5;display:flex;align-items:center;gap:10px}
.server-form{display:flex;align-items:center;gap:6px;height:32px;padding:0 3px 0 12px;border-radius:999px;border:1px solid var(--line-2);background:rgba(0,0,0,.6)}
.server-form:focus-within{border-color:rgba(155,107,255,.5)}
.server-form input{font-family:var(--mono);font-size:11.5px;width:230px}
.setup-note{font-size:12px;line-height:1.45;color:#cdb9ff;padding:4px 6px}
.person.invite:hover{border-color:var(--line-2);color:var(--text)}
.tile .badge{position:absolute;left:6px;top:6px;height:20px;font-size:10.5px;padding:0 8px}
.tile .badge.lost-chip{left:auto;right:6px;background:rgba(255,91,79,.16);border-color:rgba(255,91,79,.55);color:#ffd6d2}
.sheet.small{width:min(480px,92vw)}
.picker-foot-left{display:flex;align-items:center;gap:18px;flex-wrap:wrap;min-width:0}
.share-audio:not([hidden]){display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text);cursor:pointer;user-select:none}
.share-audio input{width:14px;height:14px;margin:0;accent-color:var(--accent);cursor:pointer}
.share-audio.off{opacity:.45}
.share-select{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.share-select select{height:28px;padding:0 6px;border-radius:8px;border:1px solid var(--line-2);background:#0b0b0b;color:var(--text);font:inherit;font-size:12.5px;cursor:pointer;outline:none}
.share-select select:focus{border-color:rgba(155,107,255,.55)}
.share-select option{background:#0b0b0b;color:var(--text)}
.devices-body{padding:0 20px 18px;display:flex;flex-direction:column;gap:8px;overflow-y:auto}
.field.select{cursor:pointer}
.field select{width:100%;font:inherit;font-size:13.5px;color:var(--text);background:transparent;border:0;outline:none;cursor:pointer;text-overflow:ellipsis}
.field select:disabled{color:var(--muted);cursor:default}
.field select option{background:#0b0b0b;color:var(--text)}
.dev-meter{height:4px;margin:0 2px;border-radius:2px;background:var(--line);overflow:hidden}
.dev-meter i{display:block;height:100%;width:0;background:var(--accent);transition:width .08s}
.devices-body p.mono{padding:0 2px 6px;min-height:20px}
#dev-speaker-row .btn{margin-top:8px}

/* ---------- meetings overview (owner) ---------- */
#btn-meetings .count{min-width:17px;height:17px;padding:0 5px;border-radius:999px;background:var(--alert);color:#fff;font-size:10px;font-weight:600;display:inline-grid;place-items:center}
.meetings-list{flex:1;min-height:120px;overflow-x:hidden;overflow-y:auto;padding:0 20px 16px;display:flex;flex-direction:column;gap:8px}
.mrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.mrow.live{border-color:rgba(155,107,255,.45)}
.mrow.ended{opacity:.5}
.mrow.blocked{border-color:rgba(255,91,79,.35)}
.mrow.blocked .mrow-head b{color:var(--muted);text-decoration:line-through}
.mrow-head{display:flex;align-items:center;gap:8px;min-width:0}
.mrow-head b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mrow-detail{grid-column:1;color:var(--muted);font-size:12px;line-height:1.5}
.mrow-detail .sharing-name{color:#c9b5ff}
.mrow-actions{grid-column:2;grid-row:1 / 3;display:flex;align-items:center;gap:6px}
.dot.live-dot{background:#3ddc84;box-shadow:0 0 0 3px rgba(61,220,132,.18)}
.btn.danger{color:#ffb3ad;border-color:rgba(255,91,79,.35)}
.btn.danger.confirm{background:var(--alert);color:#fff;border-color:transparent}
.invite-body{padding:0 20px 20px;color:#b8b9b5;line-height:1.5}
.invite-body p{margin-bottom:14px}
.invite-body #invite-result p{margin:12px 0 0}
.invite-code{font-family:var(--mono);font-size:24px;letter-spacing:.06em;color:var(--text);text-align:center;padding:20px;border:1px dashed rgba(155,107,255,.45);border-radius:12px;user-select:text}

/* ---------- phones ----------
   One column. The shared screen on top in 16:9, people stacked below and
   scrolling, drawing tools as a strip, the chat opening over everything and
   folding into round buttons. Not the desktop layout squeezed. */
@media (max-width: 760px) {
  body{height:100dvh}
  .titlebar{height:52px;padding:0 8px 0 14px}
  .room{gap:8px;min-width:0}
  .room .sep,#room-timer{display:none}
  #room-title{max-width:30vw;overflow:hidden;text-overflow:ellipsis}
  #me-name{display:none}
  #btn-invite{font-size:0;gap:0;width:34px;padding:0}

  .signin-view{padding:0 8px 8px}
  .panel{overflow-y:auto}
  .auth{position:relative;left:auto;top:auto;transform:none;width:auto;max-width:400px;margin:24px auto 96px;padding:0 10px}
  .auth h1{font-size:32px}
  .auth svg.logo{width:70px;height:70px}
  .auth > p{margin:10px 0 22px}
  .field-pair{grid-template-columns:1fr}
  .auth-foot{flex-wrap:wrap;justify-content:center;gap:8px}
  .server-bar{left:12px;right:12px;bottom:12px;flex-wrap:wrap}
  .server-form{flex:1}
  .server-form input{flex:1;width:auto;min-width:0}

  .home{padding:0 8px 8px;overflow-y:auto}
  .hero{flex:none;min-height:440px}
  .node,.wires{display:none}
  .hero-center{padding:0 16px}
  .hero h1{font-size:27px}
  .hero p{font-size:13.5px}
  .actions{flex-direction:column;align-items:stretch;width:100%;max-width:320px}
  .code{justify-content:space-between}
  .code input{flex:1;width:auto;min-width:0}
  .hero-foot{flex-direction:column;gap:8px;align-items:center}
  .people-head .t .mono{display:none}
  .people-head{flex-wrap:wrap;gap:8px}
  .people{flex-direction:column}
  .person{width:100%;height:auto}
  .person .feed{flex:none;aspect-ratio:16/9}
  .person.invite{padding:18px}

  .meeting{display:flex;flex-direction:column;border-top:1px solid var(--line)}
  .center{order:1;flex:1;min-height:0;padding:8px;gap:8px}
  .stage{flex:none;width:100%;aspect-ratio:16/9}
  .strip,.meeting.gallery .strip{flex:1;height:auto;min-height:0;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-content:flex-start;overflow-x:hidden;overflow-y:auto}
  .tile,.meeting.gallery .tile{width:100%;height:auto;aspect-ratio:16/9;flex:none}
  .tools{order:2;flex:none;flex-direction:row;align-items:center;overflow-x:auto;overflow-y:hidden;border-right:0;border-top:1px solid var(--line);padding:6px 8px;gap:2px}
  .tools hr{width:1px;height:22px;border:0;border-left:1px solid var(--line);margin:0 6px;flex:none}
  .swatches,.sizes{flex-direction:row;padding:0 4px;margin:0;gap:12px;flex:none}
  .tools .spacer{flex:0 0 6px}
  .tool{flex:none}
  .dockrow{grid-template-columns:1fr;height:auto;padding-bottom:2px}
  .dockrow > .mono,.strip-toggle{display:none}
  .dock{justify-self:center;max-width:100%;overflow-x:auto}
  .dbtn{padding:0 10px}
  .dbtn span{display:none}

  .side{position:fixed;left:0;right:0;top:52px;bottom:0;z-index:40;background:var(--bg);border-left:0}
  .meeting.side-collapsed .side{left:auto;top:auto;right:12px;bottom:128px;background:transparent;overflow:visible}
  .meeting.side-collapsed .side-rail{padding:0;gap:10px}
  .rail-btn{width:46px;height:46px;border-radius:50%;background:rgba(15,15,15,.94);border:1px solid var(--line-2)}
  .compose{margin:0 10px calc(10px + env(safe-area-inset-bottom))}
  .audio-unlock{bottom:190px}
  .sheet{width:calc(100vw - 16px)}
  .sources{grid-template-columns:1fr}
  .toast{max-width:calc(100vw - 24px);text-align:center}
}

/* ---------- cloud: create account, workspaces, plan, platform ---------- */
.signup-mode{margin:-14px 0 18px}
.kind-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px 2px}
.kind-row .label{font-size:10.5px;color:var(--muted);letter-spacing:.02em}
.plan-chip:hover{border-color:rgba(255,255,255,.22)}
.plan-chip.blocked{border-color:rgba(255,91,79,.45);color:#ffb3ad}
#btn-workspace{gap:7px}
#btn-workspace svg{width:12px;height:12px;color:var(--muted)}
#ws-name{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.ws-body{padding:0 20px 18px;display:flex;flex-direction:column;gap:10px;overflow-y:auto}
.ws-plan{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:12.5px;line-height:1.7;color:var(--muted)}
.ws-plan b{color:var(--text);font-weight:500;font-size:13.5px}
.ws-access{padding:10px 14px;border-radius:12px;border:1px solid rgba(255,91,79,.35);color:#ffb3ad;font-size:12.5px;line-height:1.5}
.ws-h{font-weight:500;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:8px 2px 0}
.ws-list{display:flex;flex-direction:column;gap:6px}
.ws-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:left;line-height:1.5}
.ws-item:hover{border-color:var(--line-2)}
.ws-item.on{border-color:rgba(155,107,255,.5)}
.ws-item b{font-weight:500}
.ws-item small{color:var(--muted);font-size:11px;font-family:var(--mono)}
.ws-join{display:flex;gap:6px;align-items:center;height:38px;padding:0 4px 0 14px;border-radius:999px;border:1px solid var(--line-2)}
.ws-join:focus-within{border-color:rgba(155,107,255,.5)}
.ws-join input{flex:1;min-width:0;font-family:var(--mono);font-size:12px}
.ws-billing{display:flex;flex-direction:column;gap:8px}
.ws-billing-state{font-size:12.5px;color:var(--muted);line-height:1.55;padding:0 2px}
.ws-billing-state b{color:var(--text);font-weight:500}
.ws-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.ws-plans:empty{display:none}
.ws-plan-card{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:left;line-height:1.35}
.ws-plan-card:hover{border-color:var(--line-2)}
.ws-plan-card.on{border-color:rgba(155,107,255,.6);box-shadow:0 0 0 3px rgba(155,107,255,.1)}
.ws-plan-card b{font-weight:500;font-size:13px}
.ws-plan-card .price{font-size:12.5px;color:var(--text)}
.ws-plan-card small{font-size:10.5px;color:var(--muted)}
.ws-pay{display:flex;gap:8px;align-items:stretch}
.ws-pay .field{flex:1;min-width:0}
.ws-pay .field input{font-family:var(--mono);font-size:13px}
.ws-pay .btn{height:auto;align-self:stretch;border-radius:12px;padding:0 16px}
.ws-billing-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.ws-billing-actions:empty{display:none}
@media (max-width:760px){.ws-plans{grid-template-columns:1fr}.ws-pay{flex-direction:column}.ws-pay .btn{height:44px}}
.platform-edit select{height:28px;padding:0 6px;border-radius:8px;border:1px solid var(--line-2);background:#0b0b0b;color:var(--text);font:inherit;font-size:12px;cursor:pointer}
.platform-edit select option{background:#0b0b0b}
.mrow.blocked .mrow-head b{text-decoration:none;color:#ffb3ad}

/* ---------- settings ---------- */
.settings-sheet{width:min(760px,92vw);height:min(680px,86vh);max-height:none}
.settings-body{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:0 20px 18px}
.keys-top{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:14px;padding:0 0 12px;background:#0b0b0b}
.keys-top input{flex:1;min-width:0;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2);background:rgba(255,255,255,.02);font-size:13px}
.keys-top input:focus{border-color:rgba(155,107,255,.55)}
.keys-group{margin:6px 0 14px}
.keys-group h4,.set-group h4{font-weight:500;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 2px 8px}
.key-row{display:flex;align-items:center;gap:12px;min-height:44px;padding:6px 8px 6px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:6px}
.key-row.changed{border-color:rgba(155,107,255,.35)}
.key-row .kname{flex:1;min-width:0;font-size:13px}
.key-row .kname small{display:block;color:var(--muted);font-size:11px;margin-top:1px}
.key-row .kslots{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.kslot{display:inline-flex;align-items:center;gap:2px;height:30px;padding:0 4px 0 6px;border-radius:9px;border:1px solid var(--line-2);background:rgba(0,0,0,.35)}
.kslot:hover{border-color:rgba(255,255,255,.22)}
.kslot.recording{border-color:var(--accent);box-shadow:0 0 0 3px rgba(155,107,255,.18)}
.kslot .kcaps{display:inline-flex;align-items:center;gap:4px;height:100%;padding-right:2px}
.kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:6px;border:1px solid rgba(255,255,255,.16);border-bottom-width:2px;background:linear-gradient(#1b1b1b,#121212);font-family:var(--mono);font-size:11px;color:var(--text);line-height:1}
.kslot.recording .kbd{color:#c9b5ff}
.kslot .kwait{font-family:var(--mono);font-size:11px;color:#c9b5ff;padding:0 6px}
.kslot .kx{width:18px;height:18px;border-radius:5px;display:grid;place-items:center;color:var(--faint)}
.kslot .kx:hover{color:var(--text);background:rgba(255,255,255,.06)}
.kslot .kx svg{width:10px;height:10px}
.kadd{height:30px;padding:0 10px;border-radius:9px;border:1px dashed var(--line-2);color:var(--muted);font-size:12px}
.kadd:hover{color:var(--text);border-color:rgba(255,255,255,.22)}
.kadd.recording{border-style:solid;border-color:var(--accent);color:#c9b5ff}
.kreset{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:var(--faint)}
.kreset:hover{color:var(--text);background:rgba(255,255,255,.06)}
.kreset svg{width:13px;height:13px}
.kreset[disabled]{visibility:hidden}
.key-note{font-size:11.5px;color:#ffb3ad;margin:-2px 4px 8px}
.key-note.info{color:#c9b5ff}
.kcaps{cursor:pointer}
.keys-empty{color:var(--muted);text-align:center;padding:40px 0}
.set-group{padding:6px 0 18px;border-bottom:1px solid var(--line);margin-bottom:16px}
.set-group:last-of-type{border-bottom:0}
.set-desc{color:var(--muted);font-size:12.5px;line-height:1.5;margin:0 2px 12px;max-width:620px}
.set-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:8px}
.set-row[hidden]{display:none}
.set-label{min-width:0}
.set-label b{font-weight:400;font-size:13px;display:block}
.set-label small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px}
.set-seg{flex:none}
.set-seg button{white-space:nowrap}
.set-seg button.on{background:var(--accent);color:#0a0a0a}
.set-foot-note{color:var(--faint);font-size:11.5px;line-height:1.5;margin:4px 2px 0}
@media (max-width:760px){
  .keys-top .mono{display:none}
  .set-row{flex-direction:column;align-items:stretch}
  .set-seg{flex-wrap:wrap;border-radius:14px}
}

.audio-unlock{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:55;height:38px;padding:0 18px;border-radius:999px;background:var(--accent);color:#0a0a0a;font-weight:500;font-size:13px}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:60;padding:10px 16px;border-radius:999px;background:#f1f1ee;color:#0a0a0a;font-size:12.5px;font-weight:500}

/* Positions, swatch colors and size dots that used to be inline style
   attributes in index.html: the CSP no longer allows inline style. The swatch
   color keeps the priority the inline style had (a selected or hovered button
   must not repaint it). */
.svg-defs{position:absolute}
#node-daw{left:60%;top:13%}
.node-p1{left:12%;top:16%}
.node-p2{right:12%;top:12%}
.node-p3{left:9%;top:66%}
.node-p4{right:10%;top:54%}
.swatch[data-color="#9b6bff"]{background:#9b6bff !important}
.swatch[data-color="#f1f1ee"]{background:#f1f1ee !important}
.swatch[data-color="#ff5b4f"]{background:#ff5b4f !important}
.swatch[data-color="#e9c46a"]{background:#e9c46a !important}
[data-size="2"] span{width:4px;height:4px}
[data-size="4"] span{width:7px;height:7px}
[data-size="8"] span{width:10px;height:10px}

/* ---------- team: right-click menu on a person, search in Titles ---------- */
.team-menu{position:fixed;z-index:80;min-width:190px;max-width:260px;max-height:70vh;overflow-y:auto;padding:6px;border-radius:12px;background:#111;border:1px solid var(--line-2);box-shadow:0 12px 40px rgba(0,0,0,.55);display:flex;flex-direction:column;gap:1px}
.team-menu-head{padding:6px 8px 8px;font-size:12.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid var(--line);margin-bottom:4px}
.team-menu-label{padding:8px 8px 4px;font-size:10.5px;color:var(--faint);letter-spacing:.02em}
.team-menu-item{display:flex;align-items:center;gap:8px;height:30px;padding:0 8px;border-radius:7px;font-size:12.5px;color:var(--muted);text-align:left}
.team-menu-item:hover{background:rgba(255,255,255,.06);color:var(--text)}
.team-menu-item.on{color:var(--text)}
.team-menu-item.on::after{content:"";margin-left:auto;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.team-menu-input{height:30px;margin:4px 2px 2px;padding:0 8px;border-radius:7px;border:1px solid var(--line);background:rgba(255,255,255,.03);font-size:12.5px}
.team-menu-input:focus{border-color:rgba(155,107,255,.45)}
.team-find{height:34px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.03)}
.team-find:focus{border-color:rgba(155,107,255,.45)}
/* Each title is its own block in the people list, with a line between them. */
.team-people-list .team-group{padding-top:10px;border-top:1px solid var(--line);color:var(--muted)}
.team-people-list .team-group:first-child{border-top:0;padding-top:0;margin-top:4px}
/* The company's name on top of the team list; owner and admins click to rename. */
#team-name{font-size:17px;font-weight:600;letter-spacing:-.02em;line-height:1.25;border-radius:6px;padding:1px 4px;margin:0 -4px}
#team-name.editable{cursor:pointer}
#team-name.editable:hover{background:rgba(255,255,255,.05)}
#team-name.unnamed{color:var(--accent);font-weight:500;font-size:14px}
.team-name-input{width:100%;height:30px;padding:0 8px;border-radius:8px;border:1px solid rgba(155,107,255,.45);background:rgba(255,255,255,.04);font-size:15px;font-weight:600}
.team-row .wc{width:26px;height:26px;flex:none}
.team-row .wc:disabled{opacity:.25;cursor:default}
.team-menu-item.team-danger{color:var(--alert)}

/* ---------- team: @mentions, /commands, notes ---------- */
.team-main{position:relative}
.team-suggest{position:absolute;left:16px;right:16px;bottom:66px;z-index:30;max-height:300px;overflow-y:auto;padding:6px;border-radius:12px;background:#111;border:1px solid var(--line-2);box-shadow:0 -8px 30px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:1px}
.team-suggest-item{display:flex;align-items:center;gap:9px;height:34px;padding:0 10px;border-radius:8px;text-align:left;font-size:12.5px;color:var(--muted)}
.team-suggest-item b{font-weight:500;color:var(--text);white-space:nowrap}
.team-suggest-item span{margin-left:auto;font-size:11px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-suggest-item .av{width:22px;height:22px;font-size:9px}
.team-suggest-item.on,.team-suggest-item:hover{background:rgba(155,107,255,.14)}
.team-msg p .mention{color:#cbb8ff;background:rgba(155,107,255,.14);border-radius:4px;padding:0 3px}
.team-msg p .mention.mention-me{color:#fff;background:rgba(155,107,255,.38)}
.team-msg.mentioned{background:rgba(155,107,255,.07);box-shadow:inset 2px 0 0 var(--accent)}
.team-msg.mentioned:hover{background:rgba(155,107,255,.1)}
.count.mention{background:var(--accent)!important;color:#fff!important}
.team-note{align-self:center;margin:10px 0;padding:6px 12px;border-radius:999px;border:1px solid var(--line);color:var(--muted);font-size:11.5px;text-align:center}
.team-modal-text{font-size:13px;line-height:1.55;color:var(--text)}
.team-modal-text.faint{color:var(--muted);font-size:12px}
.btn.team-danger-fill{background:var(--alert);color:#fff;border-color:transparent}
.btn.team-danger-fill:hover{background:#ff7166}
.team-item .count,#team-count{min-width:18px;height:17px;padding:0 5px;border-radius:999px;background:rgba(255,255,255,.12);color:var(--text);font-size:10px;font-weight:600;display:inline-grid;place-items:center;flex:none}
#team-count:not(.mention){background:rgba(255,255,255,.16)}
/* Offline people: one list at the bottom, almost hidden, like Discord. */
.team-person.offline{opacity:.35}
.team-person.offline:hover{opacity:.75}
.team-person.offline .av{filter:grayscale(1)}
.team-people-list .team-group.offline{color:var(--faint)}

/* ---------- team: reactions ---------- */
.team-msg .react{position:absolute;top:4px;right:36px;width:26px;height:26px;border-radius:7px;display:none;place-items:center;color:var(--muted);background:#141414;border:1px solid var(--line-2);font-size:14px}
.team-msg:hover .react{display:grid}
.team-msg .react:hover{color:var(--text)}
.team-msg:not(:has(.del)) .react{right:6px}
.team-reactions{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.team-reaction{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px;border-radius:999px;border:1px solid var(--line-2);background:rgba(255,255,255,.03);font-size:12px;color:var(--muted)}
.team-reaction .emoji{font-size:14px;line-height:1}
.team-reaction:hover{border-color:rgba(255,255,255,.25)}
.team-reaction.mine{border-color:rgba(155,107,255,.6);background:rgba(155,107,255,.14);color:var(--text)}
.team-menu.team-emoji{flex-direction:row;flex-wrap:wrap;width:232px;max-width:232px;min-width:0;padding:6px}
.team-emoji-item{width:36px;height:36px;border-radius:8px;font-size:19px;display:grid;place-items:center}
.team-emoji-item:hover{background:rgba(255,255,255,.08)}
/* Full screen for the board: a quiet corner button, stronger on hover. */
.board-full{position:absolute;top:10px;right:10px;z-index:5;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:var(--muted);background:rgba(15,15,15,.6);border:1px solid var(--line);opacity:.55}
.board-full:hover{opacity:1;color:var(--text);border-color:var(--line-2)}
.board-stage:fullscreen{background:#0b0b0b}
/* Board filling the window when the system full screen is not allowed. */
body.board-full .titlebar,body.board-full .board-side,body.board-full .board-head{display:none!important}
body.board-full .view.board-view{grid-template-columns:minmax(0,1fr);border-top:0}

/* ---------- team: department filter chips ---------- */
/* At the foot of People, under the list it filters. */
#team-everyone.on{background:rgba(155,107,255,.22);border-color:transparent;color:#cdbaff}
.team-filter{display:flex;flex-wrap:wrap;gap:4px;padding:6px 6px 2px}
.team-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;height:22px;padding:0 7px;border-radius:999px;border:1px solid var(--line);color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-chip:hover{border-color:var(--line-2);color:var(--text)}
.team-chip.on{background:rgba(155,107,255,.18);border-color:rgba(155,107,255,.6);color:var(--text)}
.team-chip .n{font-size:10px;color:var(--faint)}
.team-chip.on .n{color:#cbb8ff}

/* ---------- schedule (schedule.js): Gantt ---------- */
.view.sched-view{flex:1;min-height:0;display:flex;flex-direction:column;border-top:1px solid var(--line)}
.sched-title{font-size:14px;font-weight:500;margin-right:8px}
.clients-sched{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.sched-scroll{flex:1;min-height:0;overflow:auto;padding:4px 20px 24px}
.sched-section{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:14px 0 6px}
.sched-empty{color:var(--muted);padding:24px 0}
.sched-summary{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 12px}
.sched-stat{display:flex;flex-direction:column;gap:2px;padding:7px 12px;border:1px solid var(--line-2);border-radius:9px;min-width:92px}
.sched-stat span{font-size:10.5px;color:var(--muted)}
.sched-stat b{font-weight:500;font-size:13px}
.sched-stat.late b{color:var(--alert)}
.g-wrap{overflow-x:auto;overflow-y:hidden;border:1px solid var(--line);border-radius:10px;margin-bottom:6px}
.g-grid{position:relative;width:max-content;min-width:100%}
.g-row{display:flex;height:30px;border-bottom:1px solid var(--line)}
.g-row:last-of-type{border-bottom:0}
.g-headrow{height:44px;position:sticky;top:0;z-index:3;background:var(--surface)}
.g-name{position:sticky;left:0;z-index:2;width:var(--name-w);flex:none;display:flex;align-items:center;gap:7px;padding:0 10px;background:var(--surface);border-right:1px solid var(--line);overflow:hidden;white-space:nowrap}
.g-corner{font-size:11px;color:var(--muted)}
.g-phase .g-name b{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.g-task .g-name{padding-left:28px}
.g-tname{overflow:hidden;text-overflow:ellipsis;min-width:0}
.g-who{margin-left:auto;font-size:11px;color:var(--muted);flex:none;max-width:90px;overflow:hidden;text-overflow:ellipsis}
.g-sub{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.g-sub.late{color:var(--alert)}
.g-swatch{width:10px;height:10px;border-radius:3px;flex:none}
.g-add{margin-left:auto;width:20px;height:20px;border-radius:6px;color:var(--muted);flex:none}
.g-add:hover{background:var(--line-2);color:var(--text)}
.g-track{position:relative;flex:none;height:100%}
.g-head{position:relative;height:100%}
.g-months,.g-ticks{position:absolute;left:0;right:0;height:22px}
.g-months{top:0}
.g-ticks{top:22px}
.g-month{position:absolute;top:5px;padding-left:5px;font-size:11px;color:var(--text);border-left:1px solid var(--line-2);height:17px;white-space:nowrap}
.g-tick{position:absolute;top:0;height:22px;padding-top:4px;font-size:10px;color:var(--faint);text-align:center;border-left:1px solid var(--line)}
.g-tick.weekend{background:rgba(255,255,255,.025)}
.g-phasebar{position:absolute;top:13px;height:4px;border-radius:2px;opacity:.9}
.g-plan{position:absolute;top:6px;height:18px;border:1px solid;border-radius:5px;opacity:.75;pointer-events:none}
.g-bar{position:absolute;top:10px;height:10px;border-radius:4px;overflow:hidden;cursor:default}
.g-done{height:100%}
/* over the end of its bar, clear of the arrows that leave from there */
.g-late{position:absolute;top:-1px;transform:translateX(-100%);font-size:10px;line-height:11px;color:var(--alert);font-family:var(--mono);white-space:nowrap;pointer-events:none}
.g-lane{height:40px}
.g-lane .g-name{flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;cursor:pointer}
.g-lane .g-name b{font-weight:500;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.g-lanebar{position:absolute;top:13px;height:14px;border-radius:4px;opacity:.55}
.g-lanebar.now{opacity:1;box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.g-today{position:absolute;top:0;width:1px;background:var(--alert);z-index:1;pointer-events:none}
.g-links{position:absolute;top:0;pointer-events:none;z-index:1;overflow:visible}
.g-link{fill:none;stroke:rgba(255,255,255,.45);stroke-width:1}
.g-arrow{fill:rgba(255,255,255,.55)}
.g-grip{position:absolute;top:0;width:6px;height:100%;cursor:ew-resize}
.g-grip-l{left:0}
.g-grip-r{right:0}
.sched-view .g-bar,.clients-sched .g-bar{cursor:grab}
.sched-swatches{display:flex;gap:6px;margin:4px 0 8px}
.sched-swatch{width:24px;height:24px;border-radius:7px;border:2px solid transparent}
.sched-swatch.on{border-color:var(--text)}
.sched-waits{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.sched-wait{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px;border:1px solid var(--line-2);border-radius:7px}
.sched-wait-add{display:flex;align-items:center;gap:8px}
.sched-lag{width:56px;border:1px solid var(--line-2);border-radius:7px;padding:4px 6px}
.sched-open-head{display:flex;align-items:center;gap:12px;margin:8px 0 10px}
.sched-open-head b{font-size:15px;font-weight:500}
.sched-dept{font-size:11px;color:var(--muted);padding:2px 8px;border:1px solid var(--line-2);border-radius:20px}
.sched-tag{margin-left:7px;font-size:10px;font-weight:400;color:var(--muted);padding:1px 6px;border:1px solid var(--line-2);border-radius:10px;vertical-align:1px}
