/* Lovelace meetings. House style (Charter, ink on paper) for the pages; a dark
   stage for the meeting itself, where faces should be the brightest thing. */
@font-face { font-family: "Charter"; src: url("/app/fonts/XCharter-Roman.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Charter"; src: url("/app/fonts/XCharter-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #ffffff; --ink: #141414; --quiet: #6a6a6a; --faint: #d6d6d6; --wash: #f4f4f2;
  --bad: #a3261d; --live: #1f6b3a; --hl: #e8b23a;
  --stage: #121212; --stage-2: #1d1d1d; --stage-3: #2a2a2a; --on-stage: #ececec; --on-stage-quiet: #a0a0a0;
  --serif: "Charter", "Bitstream Charter", "Charis SIL", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #121212; --ink: #e8e8e8; --quiet: #9b9b9b; --faint: #3c3c3c; --wash: #1b1b1b;
          --bad: #ef8a80; --live: #7fcf98; --stage: #0b0b0b; --stage-2: #181818; --stage-3: #262626; }
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.5;
       font-kerning: normal; text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }

.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
            max-width: 46rem; margin: 0 auto; padding: 1.4rem 1.25rem 0; }
.mark { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.mark span { font-weight: 400; color: var(--quiet); margin-left: .35rem; }
.who { display: flex; gap: .9rem; align-items: baseline; color: var(--quiet); font-size: .9rem; }

main { max-width: 46rem; margin: 0 auto; padding: 1rem 1.25rem 4rem; }
h1 { font-size: 2rem; font-weight: 400; margin: 1.6rem 0 .6rem; letter-spacing: -.01em; line-height: 1.2; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .7rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.lede { color: var(--quiet); max-width: 32rem; margin: 0 0 1.4rem; }
.aside, .hint { color: var(--quiet); font-size: .88rem; margin: .6rem 0 0; }
.error { color: var(--bad); min-height: 1.2em; margin: .4rem 0 0; }

label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--quiet); }
label.check { flex-direction: row; align-items: center; gap: .5rem; color: var(--ink); font-size: .95rem; }
input, select, button, .button { font: inherit; font-size: 1rem; color: var(--ink); }
input:not([type=checkbox]), select {
  background: var(--paper); border: 1px solid var(--faint); border-radius: 6px; padding: .5rem .65rem; min-width: 0; width: 100%; }
input:disabled { color: var(--quiet); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--ink); margin: 0; }

button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; cursor: pointer;
  border-radius: 6px; padding: .5rem .95rem; border: 1px solid var(--faint); background: var(--paper); text-decoration: none; line-height: 1.2; }
button:hover, .button:hover { border-color: var(--ink); }
.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.primary:hover { opacity: .88; }
.danger { color: var(--bad); }
.danger:hover { border-color: var(--bad); }
button.link { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: .18em; font-size: .9rem; }
button:disabled { opacity: .45; cursor: not-allowed; }
.wide { width: 100%; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.stack { display: grid; gap: 1rem; max-width: 24rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.row label { flex: 0 1 auto; }
.grow { flex: 1 1 14rem !important; }
code { font-family: var(--mono); font-size: .8rem; word-break: break-all; background: var(--wash); padding: .15rem .4rem; border-radius: 4px; }

/* home */
.room-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem; }
.room { border: 1px solid var(--faint); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.room-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.now { color: var(--quiet); font-size: .88rem; }
.now.live { color: var(--live); }
.now.live::before { content: "● "; }
.address { display: flex; gap: .8rem; align-items: baseline; margin: .55rem 0 0; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.extra:not(:empty) { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--faint); }
.invite-list { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .6rem; }
.invite { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline; }
.invite code { flex: 1 1 100%; }
.invite .meta { color: var(--quiet); font-size: .85rem; margin-right: auto; }
.create { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--faint); }

/* check-in, waiting, after */
body.in-room main { max-width: 64rem; }
.checkin { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); gap: 2rem; align-items: center; margin-top: 1rem; }
.checkin h1 { margin-top: 0; }
.preview { position: relative; aspect-ratio: 16 / 9; background: var(--stage); border-radius: var(--r); overflow: hidden; }
.preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-stage-quiet); }
.checkin-toggles { position: absolute; left: 0; right: 0; bottom: .8rem; display: flex; gap: .7rem; justify-content: center; }
.round { width: 3.1rem; height: 3.1rem; border-radius: 50%; padding: 0; background: var(--stage-3); color: var(--on-stage); border: 0; }
.round.off { background: var(--bad); color: #fff; }
.devices { display: grid; gap: .8rem; }
.waiting, .after { text-align: center; max-width: 30rem; margin: 3rem auto; }
.waiting .lede, .after .lede { margin-left: auto; margin-right: auto; }
.after .actions { justify-content: center; }
.pulse { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--ink); opacity: .15;
         animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.25); opacity: .35; } }
.mirror { transform: scaleX(-1); }

/* the meeting: full window, dark stage */
body.in-meeting { background: var(--stage); overflow: hidden; }
body.in-meeting .masthead { display: none; }
body.in-meeting main { max-width: none; padding: 0; }
.meeting { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--stage); color: var(--on-stage);
           height: 100dvh; }
.meeting .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem .2rem; min-width: 0; }
.meeting .title { display: flex; align-items: baseline; gap: .8rem; min-width: 0; }
.meeting .top h1 { font-size: 1.05rem; font-weight: 700; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting .info { color: var(--on-stage-quiet); font-size: .82rem; white-space: nowrap; display: inline-flex; gap: .6rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .25rem; color: var(--hl); }
.chip { background: var(--stage-3); color: var(--on-stage); border: 0; border-radius: 99px; padding: .35rem .8rem; font-size: .82rem; flex: none; }
.chip:hover { background: #3a3a3a; }
.middle { position: relative; display: flex; gap: .6rem; min-height: 0; padding: .3rem .7rem; }

.stage { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; gap: .5rem; }
.stage .tiles { flex: 1; min-width: 0; min-height: 0; }
.stage.grid .tiles { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 0; }
.stage.grid .tiles > .tile { width: var(--w); height: var(--h); }
.stage.grid .strip { display: none; }
.stage.focus .tiles, .stage.duo .tiles { display: flex; }
.stage.focus .tiles > .tile, .stage.duo .tiles > .tile { flex: 1; }
.stage.focus .strip { width: 12.5rem; flex: none; display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; scrollbar-width: thin; }
.stage.focus .strip > .tile { aspect-ratio: 16 / 9; flex: none; }
.stage.duo .strip { position: absolute; right: .6rem; bottom: .6rem; width: 30%; max-width: 9rem; z-index: 2; }
.stage.duo .strip > .tile { aspect-ratio: 3 / 4; box-shadow: 0 6px 24px rgba(0,0,0,.5); }

.tile { position: relative; background: var(--stage-2); border-radius: var(--r); overflow: hidden; min-height: 0; min-width: 0;
        outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s; }
.tile.speaking { outline-color: var(--hl); }
.tile.pinned { outline-color: var(--on-stage-quiet); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.tile.screen video { object-fit: contain; background: #000; }
.stage.focus .tiles .tile:not(.screen) video { object-fit: contain; background: #000; }
.tile.has-video video { opacity: 1; }
.tile .avatar { position: absolute; inset: 0; display: grid; place-items: center; }
.tile.has-video .avatar { display: none; }
.tile .avatar span { width: min(5rem, 38%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
                     background: var(--stage-3); font-size: clamp(1rem, 4vmin, 1.8rem); font-weight: 700; color: var(--on-stage); }
.tile .label { position: absolute; left: .4rem; bottom: .4rem; right: 2.6rem; display: flex; align-items: center; gap: .3rem; font-size: .8rem; min-width: 0; }
.tile .name { background: rgba(0,0,0,.6); color: #fff; padding: .1rem .45rem; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile .flags { display: inline-flex; gap: .25rem; align-items: center; flex: none; }
.tile .flags > * { background: rgba(0,0,0,.6); color: #fff; border-radius: 4px; padding: .1rem .25rem; display: inline-flex; }
.tile .flags .hand { color: var(--hl); }
.tile .flags .weak { color: #f0a29b; }
.tile .flags .tag { font-size: .68rem; padding: .12rem .35rem; text-transform: uppercase; letter-spacing: .04em; border: 0; }
.tile .pin { position: absolute; top: .35rem; right: .35rem; padding: .3rem; background: rgba(0,0,0,.55); color: #fff; border: 0; opacity: 0; transition: opacity .15s; }
.tile:hover .pin, .tile .pin:focus-visible, .tile.pinned .pin { opacity: 1; }
.stage.duo .strip .label, .stage.duo .strip .pin { display: none; }
.strip .tile .flags .tag { display: none; }

/* blackboard */
.board-tile { background: #1e2a25; }
.board { position: absolute; inset: 0; display: flex; flex-direction: column; }
.board-surface { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.board-canvas { position: absolute; inset: 0; touch-action: none; cursor: crosshair; outline: none; }
.board-tools { display: flex; flex-wrap: wrap; gap: .3rem .7rem; justify-content: center; align-items: center;
               padding: .35rem .5rem .5rem; background: rgba(0,0,0,.18); }
.tool-group { display: flex; gap: .2rem; align-items: center; }
.board-tools button { background: rgba(255,255,255,.07); border: 0; color: #f4f1e8; padding: .3rem; min-width: 2.1rem; min-height: 2.1rem; border-radius: 8px; }
.board-tools button:hover { background: rgba(255,255,255,.16); }
.board-tools button.on { background: #f4f1e8; color: #1e2a25; }
.board-tools .swatch { width: 1.6rem; min-width: 1.6rem; height: 1.6rem; min-height: 1.6rem; padding: 0; border-radius: 50%;
                       background: var(--c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.board-tools .swatch.on { outline: 2px solid #f4f1e8; outline-offset: 2px; background: var(--c); }
.custom-color { width: 1.8rem; height: 1.8rem; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.size-range { width: 6rem; accent-color: #f4f1e8; }
.zoom-label { color: #f4f1e8; font-size: .78rem; min-width: 2.8rem; text-align: center; font-variant-numeric: tabular-nums; }
.board-tile > .label { display: none; }
.strip .board-tile .board-tools { display: none; }
.strip .board-tile .board-canvas { pointer-events: none; }

/* schedules */
.schedule { margin: .5rem 0 0; }
.schedule .when { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: 0; }
.schedule .rel { color: var(--quiet); font-size: .88rem; }
.schedule .rel::before { content: "· "; }
.schedule .description { white-space: pre-wrap; color: var(--quiet); margin: .35rem 0 0; font-size: .95rem; }
.schedule-fields { display: grid; gap: .75rem; }
textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--faint); border-radius: 6px;
           padding: .5rem .65rem; width: 100%; resize: vertical; }
details.plan { margin-top: .8rem; }
details.plan summary { cursor: pointer; color: var(--quiet); font-size: .92rem; }
details.plan[open] summary { margin-bottom: .7rem; }
.wide-form { max-width: none; }
.fresh-link:not(:empty) { margin: .8rem 0; padding: .7rem .8rem; background: var(--wash); border-radius: 8px; }
.fresh-link code { display: block; margin: .3rem 0 .5rem; }
.checkin .schedule { margin-bottom: .2rem; }
.checkin-form > .small { justify-self: start; }

/* controls */
.bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: .6rem;
       padding: .55rem .9rem calc(.7rem + env(safe-area-inset-bottom)); }
.bar .group { display: flex; gap: .4rem; }
.ctl { position: relative; flex-direction: column; gap: .15rem; min-width: 4.3rem; padding: .45rem .5rem; border: 0;
       background: var(--stage-3); color: var(--on-stage); border-radius: 12px; font-size: .7rem; line-height: 1.1; }
.ctl .icon { width: 1.35rem; height: 1.35rem; }
.ctl:hover { background: #3a3a3a; }
.ctl.off { background: var(--bad); color: #fff; }
.ctl.on { background: var(--on-stage); color: var(--stage); }
.ctl.leave { background: #b3261e; color: #fff; min-width: 4.8rem; }
.ctl.leave:hover { background: #c62f26; }
.ctl .count { position: absolute; top: .1rem; right: .3rem; background: var(--hl); color: #000; border-radius: 99px; font-size: .66rem; padding: 0 .35rem; font-weight: 700; }
.narrow-only { display: none; }
.menu { position: absolute; bottom: calc(100% - .2rem); right: 1rem; background: var(--stage-2); border: 1px solid var(--stage-3); border-radius: 12px;
        padding: .35rem; display: grid; min-width: 14rem; z-index: 6; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.menu button { justify-content: flex-start; background: none; border: 0; color: var(--on-stage); padding: .65rem .8rem; border-radius: 8px; }
.menu button:hover, .menu button.on { background: var(--stage-3); }
.audio-unlock { position: fixed; top: 3.5rem; left: 50%; transform: translateX(-50%); z-index: 5; }

/* side panel */
.side { width: 21rem; flex: none; background: var(--paper); color: var(--ink); border-radius: var(--r); padding: .8rem 1rem;
        overflow-y: auto; display: flex; flex-direction: column; gap: .7rem; }
.side-head { display: flex; justify-content: space-between; align-items: center; }
.side-head h2 { margin: 0; }
.icon-only { padding: .3rem; border: 0; background: none; }
.people h3, .settings h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--quiet); margin: .8rem 0 .3rem; font-weight: 700; }
.person { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--faint); }
.person .who { display: flex; align-items: center; gap: .4rem; min-width: 0; font-size: .95rem; }
.person .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .mi { display: inline-flex; color: var(--quiet); }
.person .mi.off { color: var(--bad); }
.person .acts { display: flex; gap: .25rem; flex: none; }
.person .acts .on { background: var(--ink); color: var(--paper); }
.waiting-person { background: var(--wash); border-radius: 8px; padding: .45rem .55rem; border: 0; margin-bottom: .3rem; }
.small { padding: .28rem .45rem; font-size: .82rem; }
.tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--quiet); border: 1px solid var(--faint); border-radius: 4px; padding: 0 .3rem; flex: none; }
.tag.owner { color: var(--ink); border-color: var(--ink); }
.tile .tag.owner { background: rgba(0,0,0,.6); color: #fff; }
.tile .tag.guest { background: var(--hl); color: #000; }
.person .hand { color: #b8860b; display: inline-flex; }
.owner-actions { display: grid; gap: .45rem; margin-top: 1rem; }
.owner-actions button { justify-content: flex-start; }
.chat { display: flex; flex-direction: column; gap: .6rem; min-height: 0; flex: 1; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; min-height: 6rem; }
.msg { background: var(--wash); border-radius: 10px; padding: .4rem .65rem; max-width: 88%; align-self: flex-start; }
.msg.mine { align-self: flex-end; background: var(--ink); color: var(--paper); }
.msg .from { font-size: .72rem; opacity: .75; display: flex; gap: .5rem; justify-content: space-between; }
.msg p { margin: .1rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: .4rem; }
.chat-form button { padding: .5rem .7rem; }
.devices summary { cursor: pointer; color: var(--quiet); font-size: .9rem; margin-bottom: .6rem; }
.devices[open] { display: grid; gap: .7rem; }
.big { padding: .75rem 1rem; font-size: 1.05rem; }

.toasts { position: fixed; top: .8rem; left: 50%; transform: translateX(-50%); display: grid; gap: .4rem; z-index: 10; width: min(26rem, 92vw); pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: .5rem .85rem; border-radius: 10px; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.25);
         animation: toast-in .2s ease-out; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .toast, .pulse, .tile, .tile video { animation: none; transition: none; } }

@media (max-width: 760px) {
  html { font-size: 17px; }
  .checkin { grid-template-columns: 1fr; gap: 1rem; margin-top: 0; }
  .meeting .top { padding: .5rem .7rem .1rem; }
  .meeting .info { display: none; }
  .chip span { display: none; }
  .middle { padding: .2rem .4rem; }
  .side { position: absolute; inset: 0; width: auto; z-index: 5; border-radius: 14px 14px 0 0; margin-top: 2.5rem; }
  .bar { padding: .45rem .5rem calc(.55rem + env(safe-area-inset-bottom)); gap: .3rem; }
  .bar .group { gap: .3rem; }
  .ctl { min-width: 0; width: 3.05rem; height: 3.05rem; padding: 0; border-radius: 50%; }
  .ctl .ctl-label { display: none; }
  .ctl.leave { min-width: 0; width: 3.05rem; }
  .wide-only { display: none; }
  .narrow-only { display: inline-flex; }
  .stage.focus { flex-direction: column; }
  .stage.focus .strip { width: auto; height: 5.6rem; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .stage.focus .strip > .tile { height: 100%; aspect-ratio: 4 / 3; }
  .menu { right: .5rem; left: .5rem; min-width: 0; }
}
@media (max-width: 760px) and (orientation: landscape) {
  .stage.focus { flex-direction: row; }
  .stage.focus .strip { width: 8rem; height: auto; flex-direction: column; overflow-y: auto; }
  .stage.focus .strip > .tile { height: auto; width: 100%; }
}

/* privacy notice for guests */
.notice { max-width: 38rem; }
.notice h2 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
.notice p { margin: .4rem 0; }
dialog.before-join { position: fixed; inset: 0; margin: auto; max-height: calc(100dvh - 2rem); overflow: auto; border: 0; border-radius: 14px; padding: 1.3rem 1.4rem 1.1rem; max-width: min(32rem, 92vw);
  background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.before-join::backdrop { background: rgba(0,0,0,.45); }
.before-join h2 { font-size: 1.2rem; font-weight: 400; margin: 0 0 .7rem; }
.before-join ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: .95rem; }
.before-join .hint { margin: .8rem 0 0; }
.before-join .actions { justify-content: flex-end; margin-top: 1.1rem; }
.before-join a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 2px; }

/* text and formulas on the board */
.board-editor { position: absolute; z-index: 3; display: grid; gap: .3rem; transform: translateY(-.15em); }
.board-text { font-family: var(--serif); line-height: 1.3; min-width: 12rem; max-width: 60vw; resize: none; overflow: hidden;
  background: rgba(0,0,0,.25); border: 1px dashed rgba(255,255,255,.35); border-radius: 6px; padding: 0 .2em; margin: 0; outline: none; }
.board-text::placeholder { color: rgba(255,255,255,.35); }
.board-hint { margin: 0; max-width: 26rem; font-size: .75rem; line-height: 1.35; color: var(--on-stage-quiet);
  background: rgba(0,0,0,.55); padding: .35rem .5rem; border-radius: 6px; }

/* files */
.transfers { position: fixed; top: 3.6rem; right: .8rem; z-index: 9; display: grid; gap: .5rem; width: min(22rem, calc(100vw - 1.6rem)); }
.transfer { background: var(--stage-2); color: var(--on-stage); border: 1px solid var(--stage-3); border-radius: 12px;
  padding: .7rem .8rem; display: grid; gap: .4rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: .9rem; }
.transfer .what { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.transfer .what strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.transfer .size, .transfer .status { color: var(--on-stage-quiet); white-space: nowrap; }
.transfer .status { white-space: normal; font-size: .85rem; }
.transfer .track { height: 3px; background: var(--stage-3); border-radius: 2px; overflow: hidden; }
.transfer .meter { height: 100%; width: 0; background: var(--on-stage); transition: width .2s; }
.transfer .meter.countdown { width: 100%; background: var(--hl); animation: countdown linear forwards; }
@keyframes countdown { to { width: 0; } }
.transfer .actions { display: flex; justify-content: flex-end; gap: .4rem; }
.transfer.over { opacity: .8; }
.meeting .drop-hint { display: none; }
.meeting.dropping .drop-hint { display: flex; position: fixed; inset: .8rem; z-index: 8; align-items: center; justify-content: center; gap: .6rem;
  border: 2px dashed var(--on-stage-quiet); border-radius: 18px; background: rgba(0,0,0,.6); color: var(--on-stage); font-size: 1.2rem; pointer-events: none; }
.transfer button { background: var(--stage-3); color: var(--on-stage); border-color: transparent; }
.transfer button.primary { background: var(--on-stage); color: var(--stage); }

/* inviting: Lovelace users, then guests */
.invites { display: grid; gap: 1.4rem; }
.invites h3 { font-size: 1rem; margin: 0 0 .5rem; }
.members .invite strong { font-weight: 700; }
.member-login { margin-top: .2rem; }
.member-login .link { font-size: inherit; }
.members-result p { margin: .3rem 0 0; }
.members-result button { margin-left: .3rem; }
.my-invites { margin-bottom: 2.2rem; }
.my-invites .room-head .meta { color: var(--quiet); font-size: .88rem; }
