/* VPC Deskview by VectorPC: dark zinc + VectorPC teal */
:root {
  --bg: #0e0e10;
  --bg-2: #131315;
  --panel: #1c1b1e;
  --panel2: #242226;
  --panel3: #322f34;
  --text: #f4f4f5;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(20, 195, 190, .28);
  --accent: #14c3be;
  --accent-2: #0aa8a4;
  --accent-3: #5eead4;
  --accent-ink: #04201f;
  --accent-soft: rgba(20, 195, 190, .12);
  --glow: 0 0 0 1px rgba(20, 195, 190, .35), 0 8px 30px rgba(20, 195, 190, .18);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --radius: 14px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--text);
  font: 14px/1.5 var(--font);
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(20, 195, 190, .14), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(10, 168, 164, .08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body::before { /* faint dot grid */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
body > * { position: relative; z-index: 1; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  background: rgba(19, 19, 21, .8); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button {
  cursor: pointer; border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 8px 13px;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
}
button:hover { border-color: var(--line-2); background: var(--panel3); }
button:active { transform: translateY(1px); }
button.primary {
  background: linear-gradient(135deg, #22d3cd, var(--accent-2)); border-color: transparent; color: var(--accent-ink); font-weight: 700;
  box-shadow: 0 6px 22px rgba(20, 195, 190, .28);
}
button.primary:hover { background: linear-gradient(135deg, #3be0da, #12b7b2); box-shadow: 0 8px 28px rgba(20, 195, 190, .4); }
button.danger { color: var(--bad); }
button.danger.solid { background: linear-gradient(135deg, #f87171, #dc2626); border-color: transparent; color: #fff; font-weight: 700; }
button:disabled { opacity: .45; cursor: default; transform: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
.mob-only { display: none; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font-size: 12px; }
.code { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 7px; word-break: break-all; font-size: 12.5px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.err { color: var(--bad); min-height: 20px; margin-top: 10px; font-size: 13px; }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: 11px; font-weight: 800; padding: 1px 7px; margin-left: 6px; }
.who { color: var(--muted); font-size: 12px; }

/* brand lockup: VectorPC logo + DESKVIEW */
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none !important; }
.brand img { height: 40px; width: auto; display: block; }
.brand .product {
  font-weight: 800; letter-spacing: .22em; font-size: 11px; padding: 4px 9px 4px 11px; border-radius: 99px;
  color: var(--accent-3); border: 1px solid var(--line-2); background: var(--accent-soft);
}

/* ---------- login ---------- */
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; overflow: hidden; }
.login-wrap::before { /* slow aurora */
  content: ""; position: fixed; inset: -30%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(20,195,190,.18) 60deg, transparent 120deg, rgba(10,168,164,.12) 220deg, transparent 300deg);
  filter: blur(60px); animation: aurora 24s linear infinite;
}
@keyframes aurora { to { transform: rotate(360deg); } }
.login-card {
  width: 100%; max-width: 380px; padding: 30px 30px 26px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(36, 34, 38, .85), rgba(19, 19, 21, .9)); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}
.login-logo { height: 52px; display: block; margin: 0 auto 6px; }
.login-sub { text-align: center; margin: 0 0 14px; letter-spacing: .2em; text-transform: uppercase; font-size: 11px; font-weight: 700; color: var(--accent-3); }
.login-card label { display: block; margin: 12px 0 5px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.login-card input { width: 100%; }
.login-card button { width: 100%; margin-top: 20px; padding: 11px; }
label.check { display: flex; align-items: center; gap: 9px; font-weight: 400; margin-top: 14px; cursor: pointer; color: var(--text-2); }
label.check input { width: auto; accent-color: var(--accent); }

/* ---------- console ---------- */
.topbar {
  height: 62px; display: flex; align-items: center; gap: 16px; padding: 0 18px;
  background: rgba(14, 14, 16, .72); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.quick { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.quick input { width: 140px; }
.topnav { display: flex; gap: 6px; }
.layout { display: grid; grid-template-columns: 250px 1fr; height: calc(100% - 62px); }
.sidebar { background: rgba(19, 19, 21, .6); border-right: 1px solid var(--line); overflow: auto; padding: 14px 10px; }
.side-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 12px 10px 6px; font-weight: 800; }
.side-list { list-style: none; margin: 0 0 8px; padding: 0; }
.side-list li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; cursor: pointer; user-select: none; transition: background .12s; }
.side-list li:hover { background: rgba(255,255,255,.04); }
.side-list li.active { background: var(--accent-soft); color: var(--accent-3); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.side-list .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.side-list .empty { color: var(--muted); cursor: default; font-size: 12.5px; }
.side-list .empty:hover { background: none; }
.recent-chip { display: flex; align-items: center; gap: 8px; }
main { overflow: auto; padding: 18px 22px 40px; }
.view-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.view-tabs button { border-radius: 99px; padding: 7px 16px; }
.view-tabs button.active { border-color: var(--line-2); color: var(--accent-3); background: var(--accent-soft); }
.main-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.main-tools input { flex: 1; max-width: 440px; }
table.devices {
  width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(36,34,38,.7), rgba(28,27,30,.7)); border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.devices th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(19,19,21,.5); white-space: nowrap; }
.devices td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.devices tr:last-child td { border-bottom: 0; }
.devices tbody tr { cursor: default; user-select: none; transition: background .12s; }
.devices tbody tr:hover { background: rgba(20,195,190,.06); }
.devices tbody tr.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.devices tr.group-row td { background: rgba(19,19,21,.55); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); padding: 7px 14px; }
.devices .name { font-weight: 650; }
.devices .sub { color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #52525b; vertical-align: middle; position: relative; }
.dot.on { background: var(--ok); box-shadow: 0 0 10px rgba(52,211,153,.7); }
.dot.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(52,211,153,.45); animation: ping 2.2s ease-out infinite; }
.dot.busy { background: var(--accent); box-shadow: 0 0 12px rgba(20,195,190,.8); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.pill { font-size: 11px; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-3); font-weight: 700; border: 1px solid var(--line-2); }
.pill.grey { background: rgba(255,255,255,.04); color: var(--muted); border-color: var(--line); }
.pill.rd { background: rgba(255,152,0,.12); color: #ffb74d; border-color: rgba(255,152,0,.35); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h3 { color: var(--text); margin: 0 0 6px; font-size: 18px; }
.prio { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.prio.high, .prio.urgent { color: var(--bad); }
.prio.low { color: var(--muted); }
.ticket-row td { vertical-align: top; }
.shot { max-width: 100%; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }

.menu { position: fixed; z-index: 50; min-width: 220px; background: rgba(28,27,30,.96); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; animation: pop .12s ease-out; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 8px; }
.menu button:hover { background: var(--accent-soft); color: var(--accent-3); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.menu .title { padding: 6px 12px 5px; font-size: 12px; color: var(--muted); font-weight: 600; }

dialog { border: 1px solid var(--line); border-radius: 18px; padding: 0; background: linear-gradient(180deg, #242226, #1c1b1e); color: var(--text); box-shadow: var(--shadow); width: min(660px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog[open] { animation: pop .16s ease-out; }
dialog::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { margin: 0; font-size: 17px; }
.dlg-b { padding: 18px 20px; overflow: auto; max-height: calc(100vh - 170px); }
.dlg-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.x { border: 0; background: none; font-size: 22px; line-height: 1; padding: 2px 8px; color: var(--muted); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; margin-bottom: 14px; background: rgba(19,19,21,.55); }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 4px 0 10px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--text-2); }
.field input, .field textarea, .field select { width: 100%; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 16px; overflow-x: auto; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 9px 12px; color: var(--muted); white-space: nowrap; }
.tabs button.active { color: var(--accent-3); border-bottom-color: var(--accent); font-weight: 650; }
table.plain { width: 100%; border-collapse: collapse; font-size: 13px; }
.plain th, .plain td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plain th { color: var(--muted); font-weight: 600; font-size: 12px; }
.qr { background: #fff; padding: 8px; border-radius: 10px; width: 200px; height: 200px; image-rendering: pixelated; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#toast div { background: rgba(28,27,30,.96); border: 1px solid var(--line-2); color: var(--text); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 13.5px; max-width: min(540px, 90vw); animation: pop .18s ease-out; backdrop-filter: blur(10px); }
#toast div.bad { border-color: rgba(248,113,113,.5); color: #fecaca; }
@keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(20,195,190,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .quick input { width: 110px; }
  .col-opt { display: none; }
}
@media (max-width: 640px) {
  .mob-only { display: initial; }
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 14px; position: static; }
  .brand img { height: 28px; }
  .quick { margin-left: 0; width: 100%; order: 3; }
  .quick input { flex: 1; min-width: 0; }
  .topnav { margin-left: auto; }
  .topnav button { padding: 7px 10px; }
  .topnav .lbl { display: none; }
  .layout { height: auto; }
  main { padding: 12px 14px 30px; }
  table.devices thead { display: none; }
  table.devices, .devices tbody, .devices tr, .devices td { display: block; width: 100%; }
  .devices tbody tr:not(.group-row) { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .devices td { border: 0; padding: 0; max-width: none; }
  .devices td.col-opt { display: none; }
  .devices td.c-id { grid-column: 2; color: var(--muted); font-size: 12px; }
  .devices td.c-seen { grid-column: 3; grid-row: 1 / span 2; text-align: right; font-size: 12px; }
  .devices td.c-dot { grid-row: 1 / span 2; }
  .devices tr.group-row td { padding: 9px 14px; }
  .menu { left: 8px !important; right: 8px; bottom: 8px; top: auto !important; min-width: 0; position: fixed; padding: 8px; }
  .menu button { padding: 13px 14px; font-size: 15px; }
  dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
}

/* ---------- Windows app home ("this computer") ---------- */
.home { max-width: 1000px; margin: 0 auto; padding: 26px 18px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.home .card {
  margin: 0; padding: 22px 24px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(36,34,38,.78), rgba(28,27,30,.78)); backdrop-filter: blur(10px);
  box-shadow: 0 14px 44px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}
.home .card.hero { position: relative; overflow: hidden; border-color: var(--line-2); }
.home .card.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(20,195,190,.22), transparent 65%); pointer-events: none; }
.home h2 { margin: 0 0 4px; font-size: 18px; }
.idbox { margin: 18px 0 4px; position: relative; }
.idbox .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.idbox .v {
  font-size: 42px; font-weight: 800; letter-spacing: .03em; line-height: 1.15; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #5eead4, #14c3be 55%, #0aa8a4); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(20,195,190,.25));
}
.idbox .v.pw { font-family: var(--mono); font-size: 34px; letter-spacing: .14em; }
.status-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; padding: 9px 12px; border-radius: 10px; background: rgba(19,19,21,.6); border: 1px solid var(--line); }
.home .full { grid-column: 1 / -1; }
.home.single { grid-template-columns: minmax(0, 560px); justify-content: center; }
#dlg .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#dlg textarea { width: 100%; min-height: 110px; resize: vertical; }
@media (max-width: 560px) { #dlg .grid2 { grid-template-columns: 1fr; } }
.home .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home textarea { width: 100%; min-height: 110px; resize: vertical; }
@media (max-width: 780px) { .home { grid-template-columns: 1fr; } .home .grid2 { grid-template-columns: 1fr; } .idbox .v { font-size: 34px; } }

/* ---------- session viewer ---------- */
body.session { background: #070708; overflow: hidden; display: flex; flex-direction: column; }
body.session::before { display: none; }
.sbar {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 10px; flex-wrap: wrap; z-index: 20;
  background: rgba(19, 19, 21, .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.sbar button, .sbar select { background: rgba(36,34,38,.9); border-color: var(--line); padding: 5px 11px; font-size: 13px; border-radius: 9px; }
.sbar select { max-width: 124px; padding-right: 4px; }
.sbar button:hover { border-color: var(--line-2); }
.sbar button.on { background: linear-gradient(135deg, #22d3cd, var(--accent-2)); border-color: transparent; color: var(--accent-ink); font-weight: 700; }
.sbar button.lock.on { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #241a03; }
.sbar .title { font-weight: 700; margin-right: 6px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sbar .title img { width: 22px; height: 22px; border-radius: 6px; }
.sbar .tools { display: contents; }
.sbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.sbar .grow { flex: 1; }
.sbar .lbl { margin-left: 2px; }
.sbar .stats { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sbar .stats b { color: var(--accent-3); font-weight: 600; }
.seg { display: inline-flex; }
.seg button { border-radius: 0; margin-left: -1px; }
.seg button:first-child { border-radius: 9px 0 0 9px; margin-left: 0; }
.seg button:last-child { border-radius: 0 9px 9px 0; }
.seg button:only-child { border-radius: 9px; }
.sbody { flex: 1; display: flex; min-height: 0; }
#stage { flex: 1; position: relative; overflow: auto; display: grid; place-items: center; }
#stage.actual { place-items: start; }
#stage.touch { overflow: hidden; place-items: start; touch-action: none; }
#stage.touch #screen { transform-origin: 0 0; }
#screen { display: block; background: #000; outline: none; image-rendering: auto; touch-action: none; box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 20px 60px rgba(0,0,0,.6); }
#screen.hide { visibility: hidden; }
#overlay { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(600px 400px at 50% 40%, rgba(20,195,190,.10), transparent), rgba(7,7,8,.86); z-index: 5; }
#overlay .box { background: linear-gradient(180deg, #242226, #1c1b1e); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; min-width: 300px; max-width: 460px; text-align: center; box-shadow: var(--shadow); }
#overlay .box h2 { margin: 0 0 8px; font-size: 18px; }
#overlay .box input { width: 100%; margin: 12px 0 4px; text-align: center; font-size: 20px; letter-spacing: .14em; font-family: var(--mono); }
#overlay .box .row { justify-content: center; margin-top: 14px; }
#drop { position: absolute; inset: 14px; border: 2px dashed var(--accent); border-radius: 18px; background: rgba(20,195,190,.10); display: grid; place-items: center; font-size: 18px; font-weight: 700; pointer-events: none; z-index: 6; backdrop-filter: blur(2px); }
#zoomhint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.72); color: #fff; border-radius: 99px; padding: 4px 12px; font-size: 12px; z-index: 6; pointer-events: none; }
#lockbanner { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6; background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.5); color: #fde68a; padding: 5px 14px; border-radius: 99px; font-size: 12.5px; pointer-events: none; }
#vcursor { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 4; }
#vcursor::before { content: ""; position: absolute; left: -2px; top: -2px; border-left: 9px solid #fff; border-right: 9px solid transparent; border-bottom: 14px solid transparent; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000); transform: rotate(-12deg); }
#files { width: 360px; flex: none; background: rgba(19,19,21,.92); backdrop-filter: blur(12px); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.fhead { display: flex; gap: 6px; padding: 9px; border-bottom: 1px solid var(--line); }
.fhead input { flex: 1; min-width: 0; font-size: 12.5px; padding: 6px 9px; }
.fhead button { padding: 5px 10px; }
#fList { list-style: none; margin: 0; padding: 5px; overflow: auto; flex: 1; font-size: 13px; }
#fList li { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 8px; cursor: default; user-select: none; }
#fList li:hover { background: rgba(20,195,190,.08); }
#fList .ic { width: 18px; text-align: center; flex: none; }
#fList .fn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fList .fs { color: var(--muted); font-size: 11.5px; flex: none; font-variant-numeric: tabular-nums; }
#fList .dl { opacity: 0; border: 0; background: none; padding: 0 4px; color: var(--accent); }
#fList li:hover .dl { opacity: 1; }
.fdrop { margin: 9px; padding: 13px; border: 2px dashed rgba(255,255,255,.12); border-radius: 12px; text-align: center; font-size: 12.5px; color: var(--muted); transition: border-color .15s, background .15s; }
.fdrop.over { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.fdrop label { color: var(--accent); cursor: pointer; text-decoration: underline; }
#transfers { list-style: none; margin: 0; padding: 0 9px 9px; max-height: 38%; overflow: auto; font-size: 12px; }
#transfers li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 7px; background: rgba(36,34,38,.6); }
#transfers .tname { display: flex; gap: 8px; align-items: center; }
#transfers .tname span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#transfers .tname button { padding: 1px 7px; font-size: 11px; border-radius: 6px; }
#transfers .tinfo { color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 3px; }
#transfers .bar { height: 5px; background: rgba(255,255,255,.06); border-radius: 5px; margin-top: 6px; overflow: hidden; }
#transfers .bar i { display: block; height: 100%; background: linear-gradient(90deg, #0aa8a4, #5eead4); width: 0; transition: width .2s; }
#transfers li.done .bar i { background: var(--ok); }
#transfers li.fail { border-color: rgba(248,113,113,.5); }
#keybar { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 7px 9px calc(7px + env(safe-area-inset-bottom)); background: rgba(19,19,21,.95); border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
#keybar button { flex: none; padding: 9px 12px; font-size: 14px; min-width: 44px; }
#keybar button.armed { background: linear-gradient(135deg, #22d3cd, var(--accent-2)); color: var(--accent-ink); border-color: transparent; }
#keybar.hidden { display: none; }
#kbd, #pasteSink { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: 0; border: 0; padding: 0; resize: none; z-index: -1; font-size: 16px; }
#clipbar { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 30; background: rgba(28,27,30,.96); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); max-width: calc(100vw - 24px); font-size: 13.5px; backdrop-filter: blur(10px); }
#clipbar.hidden { display: none; }
.touch-only { display: none; }
@media (hover: none), (pointer: coarse) { .touch-only { display: inline-block; } }
body.session.fs .sbar { position: fixed; top: 0; left: 0; right: 0; transform: translateY(-100%); transition: transform .15s; }
body.session.fs .sbar.peek { transform: none; }
@media (max-width: 760px) {
  .sbar { flex-wrap: nowrap; gap: 6px; padding: 6px 8px; }
  .sbar .tools { display: none; }
  body.menu-open .sbar .tools { display: flex; flex-wrap: wrap; gap: 8px; position: fixed; top: 50px; left: 8px; right: 8px; z-index: 40; background: rgba(28,27,30,.97); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
  body.menu-open .sbar .tools select { max-width: none; flex: 1 1 140px; }
  .sbar .title { min-width: 0; overflow: hidden; }
  .sbar .title span { overflow: hidden; text-overflow: ellipsis; }
  .sbar .stats { display: none; }
  .sbar .lbl { display: none; }
  #files { position: fixed; inset: 50px 0 0 0; width: auto; z-index: 35; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* "Set up a new PC" – Advanced disclosure on the install card */
.advlink { background: none; border: 0; color: var(--muted); padding: 8px 0 0; text-align: left; cursor: pointer; align-self: flex-start; font: inherit; }
.advlink:hover { color: var(--text-2); }
.prereq-box { margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.prereq-row { display: flex; align-items: center; gap: 9px; padding: 3px 0; cursor: pointer; }
.prereq-row input { margin: 0; accent-color: var(--accent); }
