/* AvaRemote Web — tema Available (nero / oro), come l'app desktop */
:root {
  --bg: #000;
  --panel: #0f0f17;
  --panel2: #16161f;
  --panel3: #22222d;
  --accent: #d4a823;
  --accent-hi: #f0c850;
  --on-accent: #0a0a0a;
  --fg: #fff;
  --dim: #aaaabb;
  --border: #262633;
  --danger: #e5484d;
  --ok: #22c55e;
  --radius: 14px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 650; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin: 18px 0 8px; }
.muted { color: var(--dim); }
.small { font-size: 13px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- controlli ---------- */
button, .btn {
  font: inherit; color: var(--fg); background: var(--panel3); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  justify-content: center; user-select: none; transition: background .15s, border-color .15s, transform .05s;
}
button:hover, .btn:hover { background: #2a2a37; }
button:active, .btn:active { transform: scale(.97); }
button:focus-visible, .btn:focus-within, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary, .btn.primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--on-accent); border-color: transparent; font-weight: 650; }
button.primary:hover, .btn.primary:hover { filter: brightness(1.06); }
button.ghost { background: transparent; }
button.danger { background: var(--danger); border-color: transparent; color: #fff; font-weight: 600; }
button.icon { padding: 8px; }
button.big { width: 100%; padding: 14px; font-size: 16px; border-radius: 12px; }
button:disabled { opacity: .55; cursor: default; }

input, select, textarea {
  font: inherit; color: var(--fg); background: var(--panel2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; width: 100%;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b6b7b; }
input[type=range] { padding: 0; accent-color: var(--accent); background: transparent; border: 0; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field > span { font-size: 13px; color: var(--dim); display: flex; justify-content: space-between; }
.row { display: flex; gap: 8px; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.center { justify-content: center; }

.switch { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--panel3); border: 1px solid var(--border); position: relative; transition: background .2s; margin-top: 2px; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #9a9aa8; transition: transform .2s, background .2s; }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--on-accent); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- connessione ---------- */
.connect {
  min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(212,168,35,.18), transparent 60%), var(--bg);
}
.card { background: rgba(15,15,25,.92); border: 1px solid var(--border); border-radius: 20px; padding: 28px; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.brand img { border-radius: 14px; }
.brand h1 { font-size: 26px; letter-spacing: -.01em; }
.brand h1 span { color: var(--accent); }
.brand h1 small { font-size: 13px; font-weight: 600; color: var(--on-accent); background: var(--accent); padding: 2px 7px; border-radius: 6px; vertical-align: middle; margin-left: 4px; }
.brand p { margin: 2px 0 0; font-size: 13px; }
#remote-id { font-size: 26px; letter-spacing: .12em; text-align: center; font-variant-numeric: tabular-nums; padding: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 4px 10px; font-size: 13px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: 999px; background: var(--panel3); overflow: hidden; }
.chips .chip button { border: 0; border-radius: 0; background: transparent; }
.chips .chip button:hover { background: #2a2a37; }
.chips .chip .chip-x { padding: 4px 9px 4px 6px; color: var(--dim); font-size: 15px; line-height: 1; }
.chips .chip .chip-x:hover { color: var(--fg); }
.chips .chip-clear { background: transparent; border-color: transparent; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.chips .chip-clear:hover { background: transparent; color: var(--fg); }
.status { min-height: 1.4em; margin: 12px 0 0; text-align: center; color: var(--dim); }
.status.err { color: #ff8a8a; }
.hint { font-size: 13px; margin: 18px 0 0; text-align: center; }
.foot { margin-top: 18px; font-size: 12px; }
.google-box { margin: 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel2); }
.google-box h3 { margin: 12px 0 6px; }
.g-head { justify-content: space-between; }
.small-btn { padding: 4px 10px; font-size: 13px; }
.g-signin-wrap { display: grid; gap: 10px; justify-items: start; }
.e-form { display: grid; gap: 8px; width: 100%; }
.e-form .row { gap: 8px; }
.e-form .status { margin: 0; }
.avb { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel3); font-size: 14px; }
.avb small { font-size: 12px; }
.avb-coin { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #E8B931; color: #3a2a00; font-weight: 800; font-size: 14px; }
#g-signin { display: flex; justify-content: center; min-height: 40px; color-scheme: light; }
#g-signin iframe { color-scheme: light; }
.my-devices { display: grid; gap: 6px; }
.my-devices .dev { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel3); }
.my-devices .dev small { display: block; color: var(--dim); font-size: 12px; }
.my-devices .dev small.direct { color: var(--accent); }
.downloads { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.downloads h3 { margin: 0 0 4px; }
.downloads a.btn { text-decoration: none; justify-content: flex-start; }
.downloads p { margin: 4px 0 0; }

/* ---------- sessione ---------- */
.session { position: fixed; inset: 0; background: #000; overflow: hidden; }
.stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.wrap { position: absolute; transform-origin: 0 0; will-change: transform; }
#screen { width: 100%; height: 100%; display: block; image-rendering: auto; outline: none; background: #000; }
.pointer { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6); z-index: 3; }
.pointer.arrow { width: 0; height: 0; margin: 0; border: 0; box-shadow: none; }
.pointer.arrow::before { content: ""; position: absolute; left: -1px; top: -1px; width: 14px; height: 20px; background: #fff;
  clip-path: polygon(0 0, 0 85%, 28% 64%, 47% 100%, 62% 93%, 44% 58%, 80% 58%); filter: drop-shadow(0 0 1.5px #000); }

.center-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.center-msg img { border-radius: 18px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.96); } }

.notice { position: absolute; left: 50%; bottom: calc(28px + var(--safe-b)); transform: translateX(-50%); width: min(720px, calc(100% - 24px)); display: flex; gap: 14px;
  background: rgba(15,15,23,.96); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; z-index: 6; box-shadow: 0 10px 30px rgba(0,0,0,.6); pointer-events: none; }
.notice svg { color: var(--accent); width: 24px; height: 24px; }
.notice p { margin: 4px 0 0; color: var(--dim); font-size: 13px; }

.pill-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; border-radius: 999px; padding: 12px 20px; background: var(--accent); color: var(--on-accent); font-weight: 650; border: 0; }
.stats { position: absolute; left: 10px; bottom: calc(8px + var(--safe-b)); font: 12px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--dim); background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 8px; z-index: 4; pointer-events: none; }
.drop { position: absolute; inset: 0; background: rgba(0,0,0,.55); border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; z-index: 9; pointer-events: none; }
.drop div { background: var(--panel); padding: 14px 20px; border-radius: 999px; font-weight: 600; }

/* barra comandi */
.toolbar {
  position: absolute; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 8;
  display: flex; gap: 4px; align-items: center; padding: 6px; max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none;
  background: rgba(15,15,23,.93); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.55);
  transition: opacity .18s ease;
}
.toolbar::-webkit-scrollbar { display: none; }
.toolbar button { background: transparent; border: 0; padding: 8px 9px; border-radius: 10px; position: relative; flex: none; }
.toolbar button:hover, .toolbar button.on { background: var(--panel3); }
.toolbar button.on { color: var(--accent); }
.toolbar button.warn { color: var(--danger); }
.toolbar button.danger { background: var(--danger); padding: 8px 12px; margin-left: 2px; }
.toolbar button span { font-size: 13px; }
.toolbar select { width: auto; padding: 6px 8px; font-size: 13px; border-radius: 10px; flex: none; }
.toolbar .sep { width: 1px; height: 22px; background: var(--border); margin: 0 3px; flex: none; }
.toolbar .hidebar { color: var(--accent); }
.toolbar.hide { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .18s ease, visibility 0s .18s; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.toolbar-handle { position: absolute; top: var(--safe-t); left: 50%; transform: translateX(-50%); z-index: 7; padding: 2px 16px 4px; border-radius: 0 0 12px 12px;
  background: rgba(15,15,23,.85); border: 1px solid var(--border); border-top: 0; color: var(--accent); }
.toolbar-handle svg { width: 16px; height: 16px; }

/* tasti speciali */
.keys-bar { position: absolute; left: 0; right: 0; bottom: var(--safe-b); z-index: 8; display: flex; gap: 6px; padding: 8px; overflow-x: auto;
  background: rgba(15,15,23,.95); border-top: 1px solid var(--border); scrollbar-width: none; }
.keys-bar::-webkit-scrollbar { display: none; }
/* Pulsanti di navigazione del telefono remoto: lo schermo si ferma sopra la barra, cosi' non ne copre una parte */
.nav-bar { display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; height: calc(48px + var(--safe-b)); padding-bottom: var(--safe-b); background: #000; justify-content: space-evenly; align-items: center; }
.nav-bar button { flex: 1; height: 48px; padding: 0; background: none; border: 0; border-radius: 0; color: #fff; display: flex; align-items: center; justify-content: center; }
.nav-bar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-bar button:active { background: rgba(255,255,255,.14); }
.session.has-nav .nav-bar { display: flex; }
.session.has-nav .stage { bottom: calc(48px + var(--safe-b)); }
.session.has-nav .keys-bar { bottom: calc(48px + var(--safe-b)); }
.session.call .nav-bar { display: none; }
.session.call .stage { bottom: 0; }
.keys-bar button { flex: none; padding: 8px 12px; font-size: 14px; min-width: 44px; }
.keys-bar button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* pannello laterale */
.panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%); z-index: 9; background: rgba(15,15,23,.98); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; padding: calc(12px + var(--safe-t)) 16px calc(12px + var(--safe-b)); box-shadow: -10px 0 40px rgba(0,0,0,.5); }
.panel > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel > header h2 { font-size: 18px; }
.panel > section { overflow-y: auto; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.panel > section[data-panel="chat"] { overflow: hidden; }
@media (max-width: 640px) {
  .panel { top: auto; width: 100%; height: min(72%, 560px); border-left: 0; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; }
}

.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0 10px; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--panel3); align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; cursor: text; }
.msg.me { align-self: flex-end; background: rgba(212,168,35,.18); border: 1px solid rgba(212,168,35,.35); }
.msg small { display: block; color: var(--dim); font-size: 11px; margin-bottom: 2px; user-select: none; }
.msg a { color: var(--accent-hi); text-decoration: underline; word-break: break-all; }

.browser { border: 1px solid var(--border); border-radius: 12px; padding: 8px; margin-top: 10px; }
.path { font-size: 13px; padding: 8px 10px; }
.fs-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.fs-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.fs-list li:hover { background: var(--panel3); }
.fs-list li .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-list li .size { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.fs-list li svg { color: var(--accent); }
.transfers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.transfers li { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.transfers progress { width: 100%; height: 6px; accent-color: var(--accent); }
.transfers .row { justify-content: space-between; }
.clip-remote img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border); margin-top: 6px; }
.clip-remote pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel2); border: 1px solid var(--border); border-radius: 8px; padding: 8px; max-height: 160px; overflow: auto; color: var(--fg); }
.help ul { padding-left: 18px; margin: 6px 0; }

/* videochiamata */
.pip { position: absolute; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 7; width: min(280px, 42vw); aspect-ratio: 4 / 3;
  background: #0a0a0f; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.6); touch-action: none; }
.pip canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.pip video { position: absolute; right: 6px; bottom: 6px; width: 32%; border-radius: 8px; border: 1px solid var(--border); background: #000; transform: scaleX(-1); }
.pip-close { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.5); border: 0; padding: 4px; }
.pip-close svg { width: 16px; height: 16px; }

.kbd { position: fixed; left: -9999px; bottom: 0; width: 10px; height: 10px; opacity: 0; font-size: 16px; }

.toasts { position: absolute; left: 50%; top: calc(66px + var(--safe-t)); transform: translateX(-50%); z-index: 10; display: grid; gap: 8px; width: min(460px, calc(100% - 24px)); pointer-events: none; }
.toast { background: rgba(15,15,23,.97); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 10px 12px; font-size: 14px;
  display: flex; gap: 10px; align-items: center; justify-content: space-between; pointer-events: auto; box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: tin .2s ease; }
.toast.err { border-left-color: var(--danger); }
.toast .actions { display: flex; gap: 6px; flex: none; }
.toast button { padding: 6px 10px; font-size: 13px; }
.toast { touch-action: pan-y; user-select: none; }
.toast .toast-close { background: transparent; border: 0; padding: 6px; color: var(--dim); }
.toast .toast-close:hover { color: var(--fg); background: var(--panel3); }
.toast .toast-close svg { width: 16px; height: 16px; }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } }

.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.small-card { text-align: center; max-width: 380px; }
.small-card img { border-radius: 14px; margin-bottom: 10px; }
.small-card h2 { margin-bottom: 6px; }

.touch-only { display: none; }
@media (pointer: coarse) { .touch-only { display: inline-flex; } label.touch-only { display: grid; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- rubrica, stato in linea, chiamate ---------- */
.dot { width: 10px; height: 10px; border-radius: 50%; background: #5a5a66; display: inline-block; flex: none; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.dot.busy { background: #f59e0b; }
.presence-line { display: flex; align-items: center; gap: 8px; margin: -6px 0 10px 2px; font-size: 13px; color: var(--dim); }
.presence-line.on { color: var(--fg); }
.chip .dot { width: 8px; height: 8px; margin: auto 0 auto 10px; }
.actions { display: flex; gap: 8px; }
.actions .big { flex: 1; width: auto; }
.actions .square { padding: 0 16px; border-radius: 12px; }
.actions .square svg { width: 20px; height: 20px; }
.contacts-box { margin: 18px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel2); }
.contacts-box h3 { margin: 0; }
.contacts-box .g-head { justify-content: space-between; margin-bottom: 8px; }
.contacts-box .small-btn svg { width: 14px; height: 14px; }
.contacts { display: grid; gap: 6px; }
.contact { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel3); }
.contact .who { flex: 1; min-width: 0; }
.contact .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact .who small { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.contact button { background: transparent; border: 0; padding: 7px; border-radius: 9px; }
.contact button:hover { background: #2a2a37; }
.contact button svg { width: 18px; height: 18px; }
.contact button:disabled { opacity: .35; }

.call-info { position: absolute; top: calc(70px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 8; text-align: center;
  background: rgba(0,0,0,.55); padding: 8px 16px; border-radius: 14px; display: grid; gap: 2px; }
.call-info b { font-size: 17px; }
.session.call .wrap, .session.call #pointer, .session.call #stats { display: none; }
.session.call .pip { inset: 0; width: auto; height: auto; aspect-ratio: auto; right: 0; bottom: 0; border-radius: 0; border: 0; background: #0b0b10; }
.session.call .pip canvas { object-fit: contain; }
.session.call .pip video { width: min(30%, 220px); right: 14px; bottom: calc(14px + var(--safe-b)); border-radius: 12px; }
.session.call .pip-close { display: none; }
.session.call .toolbar [data-act="touchmode"], .session.call .toolbar [data-act="keyboard"], .session.call .toolbar [data-act="keys"],
.session.call .toolbar [data-act="cad"], .session.call .toolbar [data-panel="clipboard"], .session.call .toolbar [data-panel="files"],
.session.call .toolbar [data-panel="settings"], .session.call .toolbar [data-act="zoomreset"], .session.call .toolbar #screen-select,
.session.call .toolbar [data-act="sharescreen"], .session.call .toolbar [data-act="stopscreen"], .session.call .toolbar [data-act="guidepip"] { display: none; }

/* ---------- host nel browser ("Ricevi assistenza qui") ---------- */
.host-box { margin: 14px 0 4px; padding: 14px; border: 1px solid rgba(212,168,35,.35); border-radius: 14px; background: linear-gradient(180deg, rgba(212,168,35,.09), var(--panel2)); }
.host-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; }
.my-id-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 6px; }
.my-id-wrap { display: grid; gap: 2px; }
.my-id { font-size: 26px; letter-spacing: .10em; font-variant-numeric: tabular-nums; color: var(--accent-hi); line-height: 1.15; }
.host-sub { margin: 4px 0 0; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.host-only { display: none; }
.session.host-mode .host-only { display: inline-flex; }
.session.host-mode .host-only.block { display: grid; }
.session.host-mode .viewer-only,
.session.host-mode .toolbar [data-act="touchmode"],
.session.host-mode .toolbar [data-act="keyboard"],
.session.host-mode .toolbar [data-act="keys"],
.session.host-mode .toolbar [data-act="cad"],
.session.host-mode .toolbar [data-act="zoomreset"],
.session.host-mode .toolbar #screen-select,
.session.host-mode .toolbar [data-panel="settings"] { display: none !important; }

.session.host-mode .stage { cursor: default; }
.host-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: radial-gradient(600px 400px at 50% 45%, rgba(212,168,35,.08), transparent); }
.host-idle p { max-width: 380px; margin: 0; }
.host-shared-box { margin-top: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel2); gap: 8px; }
.host-shared-box .row { justify-content: space-between; }

.incoming-card { max-width: 400px; display: grid; gap: 8px; justify-items: center; }
.inc-badge { display: inline-block; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: rgba(212,168,35,.18); color: var(--accent-hi); border: 1px solid rgba(212,168,35,.4); }
.inc-badge.live { background: rgba(34,197,94,.16); color: #4ade80; border-color: rgba(34,197,94,.45); }
.incoming-actions { width: 100%; display: grid; gap: 8px; margin-top: 8px; }
.host-idle a.btn { text-decoration: none; }
