/* AcrossView Meet. A dark room interface: video reads best against dark surroundings. */

:root {
  --bg: #0b0d12;
  --surface: #151922;
  --surface-2: #1e2330;
  --surface-3: #283043;
  --line: #2a3142;
  --fg: #e9edf5;
  --muted: #9aa4b6;
  --accent: #4f8cff;
  --accent-2: #8db4ff;
  --danger: #ef4444;
  --danger-2: #dc2626;
  --warn: #f5b40b;
  --ok: #22c55e;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.error { color: #fca5a5; margin: 12px 0 0; }
.note { color: #fcd34d; font-size: 14px; margin: 0 0 10px; }

/* ---------- forms and buttons ---------- */
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.25); }

button.primary, button.secondary, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
button.primary { width: 100%; background: var(--accent); color: #fff; }
button.primary:hover { background: #3f7cf0; }
button.secondary, a.button.secondary { background: var(--surface-2); border-color: var(--line); color: var(--fg); }
button.secondary { width: 100%; }
button.secondary:hover, a.button.secondary:hover { background: var(--surface-3); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- home ---------- */
.home, .prejoin {
  min-height: 100%;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(34, 197, 94, 0.08), transparent 60%),
    var(--bg);
}
.home-bar { padding: 18px 20px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--fg); text-decoration: none; }
.home-main { max-width: 980px; margin: 0 auto; padding: 32px 16px 64px; }
.home-main h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 24px 0 14px; max-width: 760px; }
.lede { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 0 32px; }
.home-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h2 { font-size: 18px; margin: 0 0 16px; }

/* ---------- pre-join ---------- */
.prejoin-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: center;
}
.preview { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.preview .video { position: absolute; inset: 0; }
.preview-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.preview-controls { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 14px; }
.preview .meter.wide { position: absolute; left: 16px; bottom: 30px; width: 90px; }
.join-card h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.join-card .muted { margin: 0 0 20px; }

/* ---------- room ---------- */
.room { position: fixed; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--bg); }
.room-main { display: flex; gap: 12px; min-height: 0; padding: 12px 12px 0; }
.room-stage { flex: 1; min-width: 0; min-height: 0; display: flex; }

.grid-wrap { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.grid { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }

.tile { position: relative; flex: none; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); transition: box-shadow 0.15s; }
.tile.speaking { box-shadow: 0 0 0 3px var(--accent), 0 0 24px rgba(79, 140, 255, 0.35); }
.video { width: 100%; height: 100%; display: block; background: #000; }
.video.cover { object-fit: cover; }
.video.contain { object-fit: contain; }
.video.mirror { transform: scaleX(-1); }

.avatar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.avatar span {
  width: clamp(40px, 30%, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: clamp(14px, 2.2vw, 34px);
  letter-spacing: 0.02em;
}
.tile.compact .avatar span { font-size: 14px; width: 40%; }

.tile-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.62);
  backdrop-filter: blur(6px);
  font-size: 13px;
}
.tile.compact .tile-label { font-size: 12px; padding: 2px 7px; left: 6px; bottom: 6px; }
.tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-mic { display: inline-flex; color: #fca5a5; }
.tag { flex: none; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: rgba(79, 140, 255, 0.25); color: #cfe0ff; margin-left: 4px; }
.tile-hand { position: absolute; top: 8px; left: 8px; display: flex; padding: 5px; border-radius: 999px; background: var(--warn); color: #1a1300; }
.quality { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; }
.q-good { background: var(--warn); }
.q-poor { background: #f97316; }
.q-lost { background: var(--danger); }
.tile-pin {
  position: absolute;
  top: 6px;
  right: 28px;
  display: flex;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.62);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.tile:hover .tile-pin, .tile-pin:focus-visible { opacity: 1; }

.stage { flex: 1; display: flex; gap: 12px; min-width: 0; min-height: 0; }
.stage-main { position: relative; flex: 1; min-width: 0; min-height: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.stage-main > .video { position: absolute; inset: 0; }
.stage-person, .stage-person > .tile { width: 100%; height: 100%; }
.stage-label {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.7);
  font-size: 13px;
}
.strip { flex: none; width: 228px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden; }

/* ---------- side panel ---------- */
.side { flex: none; width: 360px; display: flex; flex-direction: column; min-height: 0; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.side-head h2 { font-size: 16px; margin: 0; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-log .empty { color: var(--muted); font-size: 13px; text-align: center; padding: 16px 8px; }
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 88%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-meta { font-size: 12px; color: var(--muted); }
.msg-text { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .msg-text { background: var(--accent); color: #fff; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; }
.search { width: auto; margin: 12px 16px 8px; }
.people { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 0 8px 12px; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.people li:hover { background: var(--surface-2); }
.mini-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; }
.person-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-hand { display: flex; color: var(--warn); }
.person-mic { display: flex; color: #fca5a5; }
.person-mic.on { color: var(--fg); }
.person-actions { display: flex; gap: 2px; }
button.link { padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--accent-2); font-size: 13px; cursor: pointer; }
button.link:hover { background: var(--surface-3); }
button.link.danger { color: #fca5a5; }

/* ---------- control bar ---------- */
.controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.controls-left { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 14px; }
.room-code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locked { display: inline-flex; color: var(--warn); }
.controls-center { display: flex; align-items: center; gap: 10px; }
.controls-right { display: flex; justify-content: flex-end; gap: 10px; }

.ctl {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s, transform 0.06s;
}
.ctl:hover { background: var(--surface-3); }
.ctl:active { transform: scale(0.95); }
.ctl:focus-visible, .icon-btn:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.ctl.off { background: var(--danger); color: #fff; }
.ctl.off:hover { background: var(--danger-2); }
.ctl.active { background: var(--accent); color: #fff; }
.ctl.danger { width: 64px; border-radius: 999px; background: var(--danger); color: #fff; }
.ctl.danger:hover { background: var(--danger-2); }
.ctl-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
}

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--fg); cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn.small { width: 32px; height: 32px; }
.icon-btn.accent { background: var(--accent); color: #fff; }

.menu-anchor { position: relative; }
.menu {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  min-width: 250px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  z-index: 30;
}
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: #fca5a5; }
.menu .phone-only { display: none; }

/* ---------- notices ---------- */
.banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--warn);
  color: #1a1300;
  font-weight: 600;
}
button.banner.action { display: flex; align-items: center; gap: 8px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.toasts { position: fixed; left: 16px; bottom: 90px; z-index: 35; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(21, 25, 34, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  animation: rise 0.18s ease-out;
}
.hint {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 35;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px;
  animation: rise 0.18s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hint { animation-name: rise-centered; }
@keyframes rise-centered { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

.meter { display: inline-block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.meter > span { display: block; width: 0; height: 100%; background: var(--ok); transition: width 0.08s linear; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.modal { width: min(460px, 100%); padding-bottom: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.modal .field { padding: 0 16px; margin-top: 14px; }

.ended { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 16px; text-align: center; }
.ended h1 { font-size: 24px; margin: 0; max-width: 520px; }
.ended-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ended-actions .primary { width: auto; min-width: 140px; }

/* ---------- narrower screens ---------- */
@media (max-width: 800px) {
  .prejoin-main { grid-template-columns: 1fr; }
  .stage { flex-direction: column; }
  .strip { width: auto; height: 104px; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .side { position: fixed; inset: 0; z-index: 45; width: auto; margin: 0; border-radius: 0; border: 0; }
}

@media (max-width: 600px) {
  .room-main { padding: 8px 8px 0; }
  .controls { display: flex; justify-content: center; gap: 8px; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); }
  .controls-left { display: none; }
  .controls-center, .controls-right { display: contents; }
  .ctl { width: 44px; height: 44px; }
  .ctl.danger { width: 56px; }
  .hide-phone { display: none; }
  .menu .phone-only { display: flex; }
  .menu { left: auto; right: -60px; transform: none; }
  .toasts { left: 8px; right: 8px; bottom: 76px; max-width: none; }
  .hint { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- support pages (/share, /connect) ---------- */
.home-bar { display: flex; align-items: center; justify-content: space-between; }
.bar-link { color: var(--accent-2); text-decoration: none; font-size: 15px; }
.center-main { max-width: 480px; margin: 0 auto; padding: 32px 16px 64px; }
.center-main .card h1 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 14px; }
.center-main .card p { margin: 0 0 12px; }
.device-id { font-size: 42px; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; margin: 4px 0 16px !important; }
.id-input { font-size: 20px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.warning { background: rgba(245, 180, 11, 0.1); border: 1px solid rgba(245, 180, 11, 0.45); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.warning p:last-child { margin-bottom: 0; }
.badge-unverified {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
}
.badge-unverified.small { padding: 1px 8px; font-size: 12px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.actions .primary, .actions .secondary { width: auto; min-width: 120px; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }

/* the room gets a banner row in support sessions */
.room { grid-template-rows: auto minmax(0, 1fr) auto; }
.support-banner { grid-row: 1; }
.room-main { grid-row: 2; }
.controls { grid-row: 3; }
.support-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.support-banner.customer { background: rgba(34, 197, 94, 0.08); }
.support-banner .code { color: var(--muted); }
.support-banner .code strong { color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.support-banner .end-btn {
  margin-left: auto;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.support-banner .end-btn:hover { background: var(--danger-2); }
.enc { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.enc.ok { color: var(--ok); }
.enc.warn { color: var(--warn); font-weight: 600; }

.presenting-self {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background: var(--surface);
}
.presenting-self p { margin: 0; font-size: 18px; color: var(--fg); }
.presenting-self .secondary { width: auto; }

@media (max-width: 600px) {
  .support-banner { padding: 8px 10px; gap: 6px 10px; font-size: 13px; }
  .support-banner .end-btn { margin-left: 0; }
}

/* the technician's control surface over a native agent's screen */
.control-surface { position: absolute; inset: 0; outline: none; touch-action: none; cursor: default; }
.control-surface:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.control-state { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.control-state.on { border-color: var(--accent); color: var(--accent-2); }

/* alone in a meeting: the link to share */
.invite-card { position: fixed; left: 16px; bottom: 96px; z-index: 30; width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.invite-card h2 { font-size: 18px; margin: 0 0 6px; padding-right: 30px; }
.invite-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.invite-link { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font: 600 15px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; user-select: all; overflow-wrap: anywhere; }
.invite-actions { display: flex; gap: 8px; }
.invite-actions > * { flex: 1; min-width: 0; }
.invite-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.invite-close:hover { background: var(--surface-2); color: var(--fg); }

/* time left under the plan's limit */
.time-left { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time-left.low { border-color: #fca5a5; color: #fca5a5; }
.plan-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.plan-note a { color: var(--accent-2); }
.key-details { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.key-details summary { cursor: pointer; }
.key-details .field { margin: 10px 0 0; }

/* /account */
.tabs { display: flex; gap: 6px; padding: 4px; margin: 0 0 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { flex: 1; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--fg); }
.plans-table { width: 100%; border-collapse: collapse; margin: 18px 0 12px; font-size: 14px; }
.plans-table th, .plans-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--line); }
.plans-table th { width: 38%; font-weight: 600; }
.plans-table tr.current th, .plans-table tr.current td { color: var(--fg); }
.plans-table .you { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; }
.plan-badge { display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-2); font-size: 13px; }
.small-print { font-size: 13px; }
.small-print a, .plan-note a { color: var(--accent-2); }

/* /share: the "Get help" page */
.share-ready h1 { margin-bottom: 18px; }
.share-ready .id-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-ready .id-row .device-id { margin: 4px 0; }
.share-ready .copy-id { width: auto; padding: 8px 14px; }
.waiting-line { display: flex; align-items: center; gap: 10px; margin: 10px 0 16px; color: var(--fg); font-size: 15px; }
.share-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; color: var(--fg); }
.share-steps li { padding-left: 4px; }
@media (max-width: 420px) { .share-ready .id-row .device-id { font-size: 34px; } }

/* /connect: unattended password and saved computers */
.check { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: auto; height: auto; margin: 3px 0 0; padding: 0; accent-color: var(--accent); }
.saved-pw { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--fg); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent-2); text-decoration: underline; cursor: pointer; }
.computers { margin-top: 16px; }
.computers ul { list-style: none; margin: 0 0 10px; padding: 0; }
.computers li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.computers li:first-child { border-top: 0; }
.computers .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.computers .dot.on { background: var(--ok); }
.computers .computer { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.computers .computer:hover:not(:disabled) { background: var(--surface-2); }
.computers .computer-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.computers .computer-id { font-size: 13px; font-variant-numeric: tabular-nums; }
.computers .pw-tag { flex: none; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.computers .remove { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.computers .remove:hover { background: var(--surface-2); color: var(--fg); }
