/* Sync-Video.me — dark, glassy, high-contrast. No frameworks. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.hidden { display: none !important; }

:root {
  --bg: #0a0c11;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .025);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --tx: #eef2f7;
  --tx-2: #9aa6b8;
  --tx-3: #667184;
  --accent: #45e2ff;
  --accent-2: #ff5c8a;
  --ok: #47e08b;
  --warn: #ffcb5c;
  --err: #ff6b6b;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 18px 46px rgba(0, 0, 0, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--tx);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* animated backdrop */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 700px at 78% -8%, #16203a 0%, transparent 60%), radial-gradient(900px 600px at 8% 105%, #23132a 0%, transparent 55%), var(--bg); }
.bgfx i { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: .32; }
.bgfx i:nth-child(1) { width: 460px; height: 460px; left: -120px; top: -80px; background: #1d6fb8; animation: drift 26s ease-in-out infinite; }
.bgfx i:nth-child(2) { width: 520px; height: 520px; right: -140px; top: 6%; background: #b0346a; animation: drift 34s ease-in-out infinite reverse; }
.bgfx i:nth-child(3) { width: 380px; height: 380px; left: 42%; bottom: -160px; background: #1f8f8a; animation: drift 30s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) } 50% { transform: translate3d(40px, -34px, 0) } }
@media (prefers-reduced-motion: reduce) { .bgfx i { animation: none } }

/* ────────────────────────────── generic controls ─────────────────────── */
.btn {
  font: 600 14px/1 var(--font); color: var(--tx); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 16px; cursor: pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible, .tab:focus-visible, .mini:focus-visible, .tbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, #4fe3ff, #24b8e0); color: #05202b; border-color: transparent;
  box-shadow: 0 8px 22px rgba(69, 226, 255, .25);
}
.btn-primary:hover { background: linear-gradient(180deg, #6ceaff, #2fc6ee); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn.sm, .tbtn.sm { padding: 7px 11px; font-size: 12.5px; }
.mini { font: 600 11.5px/1 var(--font); color: var(--tx-2); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.mini:hover { color: var(--tx); border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.mini.danger:hover { color: #ffd7d7; border-color: rgba(255, 107, 107, .5); background: rgba(255, 107, 107, .12); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; font-size: 15px; color: var(--tx-2); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.icon-btn:hover { color: var(--tx); background: rgba(255, 255, 255, .09); }
.icon-btn.danger:hover { color: #ffd7d7; border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .14); }

input[type="text"] {
  font: 500 15px/1.2 var(--font); color: var(--tx); background: rgba(0, 0, 0, .32);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; width: 100%;
}
input[type="text"]::placeholder { color: var(--tx-3); }
input[type="text"]:focus { outline: none; border-color: rgba(69, 226, 255, .55); box-shadow: 0 0 0 3px rgba(69, 226, 255, .13); }

.avatar { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font); background: #333; box-shadow: 0 0 0 2px rgba(255, 255, 255, .07) inset; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.avatar.is-host { box-shadow: 0 0 0 2px var(--accent) inset, 0 0 12px rgba(69, 226, 255, .35); }
.avatar.more { background: rgba(255, 255, 255, .1); color: var(--tx-2); font-weight: 600; }

.lbl { display: block; font: 600 11.5px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 9px; }
.lbl.sm { font-size: 10.5px; margin-bottom: 6px; }
.lbl .hint, .fineprint { color: var(--tx-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
.fineprint { font: 500 12px/1.5 var(--font); color: var(--tx-2); margin: 10px 0 0; }
.fineprint code, code { font: 500 12px/1.4 var(--mono); background: rgba(255, 255, 255, .07); padding: 1px 5px; border-radius: 5px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; backdrop-filter: blur(10px); }

/* ─────────────────────────────────── gate / landing ──────────────────── */
.gate { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px 14px; gap: 26px; }
.gate-inner { width: min(1020px, 100%); display: flex; flex-direction: column; gap: 22px; }
.brand-lg { display: flex; align-items: center; gap: 14px; }
.brand-lg h1 { font: 700 clamp(30px, 5.4vw, 46px)/1 var(--display); letter-spacing: -.025em; margin: 0; }
.logo-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--accent); background: linear-gradient(160deg, rgba(69, 226, 255, .16), rgba(255, 92, 138, .13)); border: 1px solid var(--line); }
.accent { color: var(--accent); }
.tld { color: var(--accent-2); font-weight: 500; }
.tagline { margin: 0; font: 500 16px/1.55 var(--font); color: var(--tx-2); max-width: 62ch; }
.tagline em { color: var(--tx); font-style: normal; box-shadow: inset 0 -8px 0 rgba(69, 226, 255, .18); }
.gate-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 16px; }
.card h2 { margin: 0 0 6px; font: 600 17px/1.3 var(--display); }
.card .sub { margin: 0 0 16px; font-size: 13.5px; color: var(--tx-2); line-height: 1.5; }
.name-row { display: flex; align-items: center; gap: 12px; }
.name-row .avatar { width: 40px; height: 40px; font-size: 15px; }
.join-row { display: flex; gap: 10px; }
.code-input { font-family: var(--mono); font-size: 20px; letter-spacing: .28em; text-transform: uppercase; text-align: center; }
.action-card { display: flex; flex-direction: column; }
.action-card .btn { margin-top: auto; }
.feat { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 4px 0 0; padding: 0; }
.feat li { padding: 12px 14px; border-left: 2px solid rgba(69, 226, 255, .45); background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent); border-radius: 0 10px 10px 0; }
.feat b { display: block; font-size: 13px; margin-bottom: 3px; }
.feat span { font-size: 12.5px; color: var(--tx-2); line-height: 1.45; display: block; }
.gate-foot { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--tx-3); }
.gate-foot a { color: var(--tx-2); }
.gate-foot .dot { opacity: .5; }
@media (max-width: 860px) { .gate-grid { grid-template-columns: 1fr; } .feat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feat { grid-template-columns: 1fr; } }

/* ───────────────────────────────────── room shell ────────────────────── */
.room { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; background: rgba(9, 11, 16, .82); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px) saturate(140%);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-sm { color: var(--accent); display: grid; place-items: center; }
.brand-sm { font: 600 16px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font: 600 12px/1 var(--font); color: var(--tx-2); white-space: nowrap; }
.chip b { color: var(--tx); font-weight: 700; }
.chip-code { cursor: pointer; gap: 9px; }
.chip-code:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .07); }
.chip-code .k { font-size: 9.5px; letter-spacing: .16em; color: var(--tx-3); }
.chip-code b { font-family: var(--mono); font-size: 14px; letter-spacing: .16em; color: var(--accent); }
.chip-code .copy { font-size: 10.5px; color: var(--tx-3); border-left: 1px solid var(--line); padding-left: 8px; }
.chip-role.is-host { color: var(--accent); border-color: rgba(69, 226, 255, .38); background: rgba(69, 226, 255, .1); }
.chip-stat b { font-family: var(--mono); font-size: 11.5px; }
#chip-sync[data-state="ok"] { color: var(--ok); border-color: rgba(71, 224, 139, .3); }
#chip-sync[data-state="soft"] { color: var(--warn); border-color: rgba(255, 203, 92, .28); }
#chip-sync[data-state="warn"] { color: var(--err); border-color: rgba(255, 107, 107, .3); }
#chip-sync[data-state="off"] { color: var(--tx-3); }
#chip-sync b { letter-spacing: .02em; }
.led { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.members { display: flex; }
.members .avatar { margin-left: -7px; }
.members .avatar:first-child { margin-left: 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 18px; padding: 18px; max-width: 1560px; margin: 0 auto; width: 100%; flex: 1; align-items: start; }
.stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 1080px) { .layout { grid-template-columns: 1fr; } }

/* player */
.player-wrap { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.player-wrap:fullscreen { border-radius: 0; }
#player, #player iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.player-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 24px; background: radial-gradient(500px 260px at 50% 40%, rgba(69, 226, 255, .1), transparent 70%), #05070b; }
.ph-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--accent); border: 1px solid rgba(69, 226, 255, .35); background: rgba(69, 226, 255, .08); margin-bottom: 8px; }
.ph-title { margin: 0; font: 600 17px/1.3 var(--display); }
.ph-sub { margin: 0; font-size: 13px; color: var(--tx-2); }
.player-note { position: absolute; left: 12px; bottom: 12px; z-index: 5; padding: 9px 13px; border-radius: 9px; font: 600 12.5px/1 var(--font); background: rgba(5, 7, 11, .86); border: 1px solid var(--line-2); cursor: pointer; }
.player-note.is-warn { color: #ffe6b3; border-color: rgba(255, 203, 92, .45); background: rgba(60, 40, 8, .82); }
.banner { position: absolute; inset: auto 0 0 0; z-index: 6; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 13px; background: linear-gradient(180deg, rgba(5, 7, 11, .35), rgba(5, 7, 11, .94)); font-size: 13.5px; }

/* now playing + transport */
.nowbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.now-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.now-title { font: 600 15px/1.35 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-sub { font-size: 12px; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font: 700 10.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--tx-2); white-space: nowrap; }
.badge-on { color: var(--accent); border-color: rgba(69, 226, 255, .35); background: rgba(69, 226, 255, .1); }
.badge-live { color: #ffd0dd; border-color: rgba(255, 92, 138, .4); background: rgba(255, 92, 138, .12); }
.badge-warn { color: #ffe0a8; border-color: rgba(255, 203, 92, .35); background: rgba(255, 203, 92, .1); }

.transport { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.transport-main { display: flex; align-items: center; gap: 8px; }
.transport-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tbtn { min-width: 38px; height: 38px; display: grid; place-items: center; font-size: 15px; color: var(--tx); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0 10px; }
.tbtn:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-2); }
.tbtn-lg { width: 50px; height: 42px; font-size: 16px; color: #05202b; background: linear-gradient(180deg, #4fe3ff, #24b8e0); border-color: transparent; box-shadow: 0 6px 18px rgba(69, 226, 255, .22); }
.tbtn-lg:hover { background: linear-gradient(180deg, #6ceaff, #2fc6ee); }
.scrub { flex: 1; height: 10px; margin: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); cursor: pointer; position: relative; overflow: hidden; }
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #2bb7e6, var(--accent)); }
.time { font: 600 12px/1 var(--mono); color: var(--tx-2); white-space: nowrap; }
.sw { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--font); color: var(--tx-2); cursor: pointer; user-select: none; }
.sw input { appearance: none; width: 34px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .18s ease; }
.sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #cfd8e3; transition: transform .18s ease; }
.sw input:checked { background: rgba(69, 226, 255, .5); border-color: rgba(69, 226, 255, .6); }
.sw input:checked::after { transform: translateX(16px); background: #eaf9ff; }
.sw input:disabled { opacity: .4; }
.sw.is-dim { opacity: .5; }

.addbar { display: flex; gap: 9px; }
.addbar input { flex: 1; }
.kbd-hint { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--tx-3); }
kbd { font: 600 10.5px/1 var(--mono); color: var(--tx-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 4px 6px; }

/* ───────────────────────────────────── side panel ────────────────────── */
.side { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: sticky; top: 68px; height: calc(100dvh - 88px); min-height: 420px; }
@media (max-width: 1080px) { .side { position: static; height: min(66vh, 520px); } }
.tabs { display: flex; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.tab { flex: 1; padding: 13px 6px; font: 600 13px/1 var(--font); color: var(--tx-3); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.tab:hover { color: var(--tx-2); background: rgba(255, 255, 255, .04); }
.tab.is-on { color: var(--tx); border-bottom-color: var(--accent); }
.tab b { display: inline-block; min-width: 17px; margin-left: 5px; padding: 2px 4px; font: 700 10px/1 var(--mono); color: var(--tx-2); background: rgba(255, 255, 255, .08); border-radius: 5px; }
.panel { display: none; flex: 1; min-height: 0; flex-direction: column; }
.panel.is-on { display: flex; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font: 600 11px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--tx-3); border-bottom: 1px solid var(--line); }
.list-scroll, .chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.list-scroll { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.chat-scroll { padding: 12px; display: flex; flex-direction: column; gap: 11px; position: relative; }
.list-scroll::-webkit-scrollbar, .chat-scroll::-webkit-scrollbar { width: 9px; }
.list-scroll::-webkit-scrollbar-thumb, .chat-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }

/* chat */
.chat-msg { display: flex; flex-direction: column; gap: 3px; }
.chat-head { display: flex; align-items: center; gap: 7px; }
.chat-name { font: 700 12.5px/1 var(--font); }
.chat-ts { font: 500 10.5px/1 var(--mono); color: var(--tx-3); }
.chat-body { padding-left: 27px; display: flex; flex-direction: column; gap: 2px; }
.chat-line { font-size: 13.5px; line-height: 1.5; color: #dfe6f0; overflow-wrap: anywhere; }
.chat-msg.is-self .chat-line { color: #f2f7ff; }
.chat-msg.is-sys .chat-line { font-size: 12px; color: var(--tx-3); font-style: italic; padding-left: 0; }
.chat-msg.is-sys .chat-body { padding-left: 0; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.chat-form input { flex: 1; }
.chat-scroll.has-new::after { content: "new messages ↓"; position: sticky; bottom: 0; float: right; font: 700 10.5px/1 var(--font); color: #05202b; background: var(--accent); padding: 5px 8px; border-radius: 999px; }

/* queue + history rows */
.q-item, .h-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; background: var(--panel-2); transition: background .15s ease, border-color .15s ease; }
.q-item:hover, .h-item:hover { background: rgba(255, 255, 255, .06); border-color: var(--line); }
.q-item.is-current { background: rgba(69, 226, 255, .1); border-color: rgba(69, 226, 255, .38); }
.q-item.is-drag { opacity: .45; }
.q-item.is-over { border-color: var(--accent); border-style: dashed; }
.q-idx { width: 22px; text-align: center; font: 700 12px/1 var(--mono); color: var(--tx-3); flex: 0 0 auto; }
.q-idx .glyph { color: var(--accent); font-size: 11px; }
.q-thumb { width: 68px; height: 38px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: #10141b; }
.q-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.q-title { font: 500 13px/1.35 var(--font); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.q-sub { font: 500 11px/1.3 var(--font); color: var(--tx-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.h-play { font: 700 10.5px/1 var(--font); color: var(--accent); opacity: 0; flex: 0 0 auto; }
.h-item:hover .h-play { opacity: 1; }
.empty { display: flex; flex-direction: column; gap: 6px; padding: 26px 16px; text-align: center; color: var(--tx-3); }
.empty b { font: 600 14px/1.3 var(--display); color: var(--tx-2); }
.empty span { font-size: 12.5px; line-height: 1.5; }

/* ───────────────────────────────────── modal + toasts ───────────────── */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4, 6, 10, .68); backdrop-filter: blur(6px); }
.modal-card { width: min(520px, 100%); max-height: 86dvh; overflow: auto; background: #0e1219; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font: 600 18px/1 var(--display); }
.modal-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.modal-body input { margin-bottom: 4px; }
.mini-h { margin: 4px 0 2px; font: 600 12.5px/1 var(--font); color: var(--tx-2); }
.sep { height: 1px; background: var(--line); margin: 12px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

.toasts { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; padding: 0 12px; }
.toast { max-width: 92vw; padding: 11px 15px; border-radius: 10px; font: 600 13px/1.4 var(--font); background: rgba(14, 18, 25, .95); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease; overflow-wrap: anywhere; }
.toast.is-in { opacity: 1; transform: none; }
.toast-ok { border-color: rgba(71, 224, 139, .45); color: #d8ffe8; }
.toast-warn { border-color: rgba(255, 203, 92, .45); color: #ffedb8; }
.toast-error { border-color: rgba(255, 107, 107, .5); color: #ffdada; }
.toast-info { color: #dbe4f0; }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .brand-sm, .chip-ping, .chip-code .copy { display: none; }
  .transport-side { gap: 10px; }
  .layout { padding: 12px; }
  .kbd-hint { display: none; }        /* no keyboard on a phone */
}
