:root {
  --bg: #060a12;
  --bg2: #0a101d;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --panel2: #111c31;
  --line: #1e293b;
  --line-soft: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #22d3ee;
  --accent2: #818cf8;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --font: "Segoe UI", "Noto Kufi Arabic", "Dubai", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(800px 600px at 10% 110%, rgba(129, 140, 248, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(34, 211, 238, 0.08);
  color: #a5f3fc;
  padding: 2px 6px;
  border-radius: 6px;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; line-height: 1.65; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.ltr { direction: ltr; text-align: left; }
.ok-text { color: var(--green) !important; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #24324a; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33465f; }

/* ------------------------------------------------------------ login */
.login-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
  overflow: hidden;
}
.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.glow-a { background: #0e7490; top: -220px; inset-inline-end: -120px; }
.glow-b { background: #4338ca; bottom: -260px; inset-inline-start: -140px; }

.login-card {
  position: relative;
  width: min(440px, 94vw);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  padding: 34px 30px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--accent);
  flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand strong { display: block; font-size: 17px; letter-spacing: 0.02em; }
.brand span:not(.brand-mark) { display: block; font-size: 11px; color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase; }
.brand.big { margin-bottom: 28px; }
.brand.big .brand-mark { width: 58px; height: 58px; border-radius: 18px; }
.brand.big .brand-mark svg { width: 34px; height: 34px; }
.brand.big h1 { font-size: 28px; }
.brand.big p { color: var(--muted); font-size: 13px; margin-top: 3px; }

.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 11.5px;
  color: var(--faint);
}
.form-error {
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: #fecdd3;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
}
.hint { font-size: 11.5px; color: var(--faint); line-height: 1.7; }

/* ------------------------------------------------------------ shell */
.app {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px 16px 18px;
  border-inline-end: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(10, 16, 29, 0.94), rgba(6, 10, 18, 0.86));
  backdrop-filter: blur(16px);
  z-index: 10;
}
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  transition: 0.16s ease;
}
.nav-btn:hover { background: rgba(148, 163, 184, 0.06); color: var(--text); }
.nav-btn.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.12));
  border-color: rgba(34, 211, 238, 0.24);
  color: #cffafe;
}
.nav-btn .ico { color: var(--accent); opacity: 0.9; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 5px 11px;
}
.conn-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.conn-pill.on .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12); }
.conn-pill.on { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.25); }
.user-row { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.user-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.user-meta strong { font-size: 13px; }
.user-meta span { font-size: 11px; color: var(--faint); }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #04121d;
  background: linear-gradient(135deg, var(--accent), #a5b4fc);
  flex: none;
  text-transform: uppercase;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  margin-inline-start: auto;
  transition: 0.15s;
}
.icon-btn:hover { background: rgba(148, 163, 184, 0.08); color: var(--text); }
.icon-btn.danger:hover { color: var(--red); background: rgba(251, 113, 133, 0.08); }

.main { padding: 26px 32px 48px; min-width: 0; max-width: 1480px; width: 100%; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.topbar h2 { font-size: 24px; }
.topbar p { font-size: 12.5px; margin-top: 4px; }
.top-actions { display: flex; gap: 8px; flex: none; }

.ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.ico.big { width: 42px; height: 42px; }

/* ------------------------------------------------------------ buttons/inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.16s ease;
  white-space: nowrap;
}
.btn:hover { border-color: #334155; background: #16223a; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-color: transparent;
  color: #04101c;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.22);
}
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 10px 28px rgba(34, 211, 238, 0.3); }
.btn.ghost { background: transparent; }
.btn.danger { color: #fecdd3; border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.08); }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.field em { color: var(--accent); font-style: normal; }
.input {
  width: 100%;
  background: #08101f;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: 0.15s;
}
.input::placeholder { color: #475569; }
.input:focus { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1); }
.file-input { padding: 8px; font-size: 12px; color: var(--muted); }
.file-input::file-selector-button {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  margin-inline-end: 10px;
  font-family: inherit;
  cursor: pointer;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 5px 11px;
}
.pill.accent { color: #a5f3fc; border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.08); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 5px 11px;
}
.badge.online { color: #a7f3d0; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.28); }
.badge.online::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}
.badge.offline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.dot.live { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14); animation: pulse 2s infinite; }

/* ------------------------------------------------------------ views */
.view { display: none; }
.view.active { display: block; animation: fadeUp 0.28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -30px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.09), transparent 70%);
}
.stat-label { font-size: 12px; color: var(--muted); }
.stat-card strong { font-size: 30px; line-height: 1.1; font-weight: 800; background: linear-gradient(135deg, #f8fafc, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-foot { font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 15px; }
.device-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: 0.18s ease;
  position: relative;
  overflow: hidden;
}
.device-card:hover { border-color: rgba(34, 211, 238, 0.35); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.device-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 22px;
  bottom: 22px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(var(--accent), var(--accent2));
  opacity: 0;
  transition: 0.2s;
}
.device-card:hover::before { opacity: 1; }
.device-head { display: flex; align-items: center; gap: 12px; }
.device-head .avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
.device-title { min-width: 0; flex: 1; }
.device-title h4 { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-title span { font-size: 11px; color: var(--faint); display: block; margin-top: 3px; direction: ltr; text-align: right; }
.device-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.device-meta span {
  font-size: 11px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 4px 8px;
}
.device-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.device-foot small { color: var(--faint); font-size: 11px; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 56px 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.35);
}
.empty h3 { color: var(--text); font-size: 18px; }
.empty p { max-width: 420px; font-size: 13px; }
.empty-icon { color: var(--accent); opacity: 0.7; }
.empty-icon svg { width: 46px; height: 46px; }
.empty.small { padding: 26px 16px; font-size: 12.5px; border: none; background: transparent; }

/* ------------------------------------------------------------ cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-head h3 { font-size: 16px; }
.card-head p { font-size: 12px; margin-top: 4px; }

/* ------------------------------------------------------------ build */
.build-layout { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 16px; align-items: start; }
.form-card { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.build-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.build-actions .btn { padding: 11px 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -4px; }
.chip {
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 5px 10px;
  transition: 0.15s;
}
.chip:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.35); }
.build-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.build-head { display: flex; align-items: center; gap: 12px; }
.build-icon { width: 44px; height: 44px; border-radius: 12px; background: #0b1526; border: 1px solid var(--line); object-fit: cover; }
.build-head strong { display: block; font-size: 14px; }
.build-head .muted { font-size: 11.5px; display: block; margin-top: 2px; }
.status {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 99px;
  text-transform: uppercase;
  flex: none;
}
.status.queued, .status.preparing { background: rgba(148, 163, 184, 0.1); color: var(--muted); }
.status.building, .status.signing { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.status.success { background: rgba(52, 211, 153, 0.13); color: #6ee7b7; }
.status.failed { background: rgba(251, 113, 133, 0.13); color: #fda4af; }
.progress { height: 7px; border-radius: 99px; background: #0a1222; overflow: hidden; margin-top: 16px; border: 1px solid var(--line-soft); }
.progress > div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.4s ease; }
.logbox {
  margin: 14px 0;
  padding: 11px 12px;
  max-height: 180px;
  overflow: auto;
  background: #050a13;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.55;
  color: #94a3b8;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
}
.info-card h4 { font-size: 13.5px; margin-bottom: 10px; }
.steps { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.table-card { margin-top: 16px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { text-align: start; font-size: 11px; color: var(--faint); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.data-table td { padding: 11px 10px; border-bottom: 1px solid rgba(30, 41, 59, 0.55); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(148, 163, 184, 0.03); }
.build-link { font-size: 11.5px; padding: 5px 9px; }

/* ------------------------------------------------------------ device view */
.device-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.device-id { display: flex; align-items: center; gap: 11px; }
.device-id h3 { font-size: 18px; }
.device-id p { font-size: 11.5px; margin-top: 2px; direction: ltr; text-align: right; }
.device-bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(99, 102, 241, 0.1)); border-color: rgba(34, 211, 238, 0.22); color: #cffafe; }
.tab .ico { width: 16px; height: 16px; }
.panel { display: none; padding-top: 18px; }
.panel.active { display: block; animation: fadeUp 0.22s ease; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }

.screen-stage {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background:
    radial-gradient(500px 300px at 50% 0%, rgba(34, 211, 238, 0.05), transparent 70%),
    #04070d;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
}
.screen-img { max-width: 100%; max-height: 68vh; border-radius: 9px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); cursor: crosshair; touch-action: none; user-select: none; }
.stage-placeholder { text-align: center; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px; }
.stage-placeholder .ico { color: var(--accent); opacity: 0.5; }
.stage-placeholder p { font-size: 13.5px; color: var(--muted); }
.stage-placeholder small { font-size: 11px; }
.camera-stage { min-height: 320px; }

.file-table { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: rgba(15, 23, 42, 0.5); }
.file-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  font-size: 12.5px;
  transition: 0.12s;
}
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: rgba(148, 163, 184, 0.04); }
.file-row .ico { color: var(--faint); width: 17px; height: 17px; }
.file-row.dir .ico { color: var(--accent); }
.file-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-name button { background: none; border: none; color: var(--text); font-size: 12.5px; padding: 0; text-align: start; width: 100%; overflow: hidden; text-overflow: ellipsis; }
.file-name button:hover { color: var(--accent); }
.file-size { color: var(--faint); font-size: 11px; direction: ltr; }
.file-actions { display: flex; gap: 4px; }

/* thumbnails in the phone file browser */
.file-row.has-thumb { grid-template-columns: 48px minmax(0, 1fr) auto auto; }
.file-thumb {
  position: relative;
  width: 48px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #0a1322 center / cover no-repeat;
  color: var(--faint);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: 0.15s;
}
.file-thumb .ico { width: 20px; height: 20px; }
.file-thumb:hover { border-color: rgba(34, 211, 238, 0.45); transform: translateY(-1px); }
.file-thumb.ready { border-color: rgba(148, 163, 184, 0.18); }
.file-thumb.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(148, 163, 184, 0.14) 50%, transparent 80%);
  animation: shimmer 1.1s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  padding-inline-start: 2px;
  background: radial-gradient(circle, rgba(2, 6, 15, 0.4), transparent 66%);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.thumb-badge {
  position: absolute;
  bottom: 3px;
  inset-inline-end: 4px;
  padding: 1px 4px;
  border-radius: 5px;
  background: rgba(2, 6, 15, 0.8);
  color: #e2e8f0;
  font-size: 9px;
  direction: ltr;
  z-index: 1;
}

/* media library */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.media-card { position: relative; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(15, 23, 42, 0.5); overflow: hidden; }
.media-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  background: #060b14;
  color: var(--faint);
  cursor: pointer;
  overflow: hidden;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.22s ease; }
.media-thumb:hover img { transform: scale(1.045); }
.media-thumb.audio { background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.12), transparent 70%); }
.media-thumb.audio .ico { color: var(--accent); opacity: 0.7; }
.media-play {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-inline-start: 2px;
  background: rgba(2, 6, 15, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13px;
}
.media-wave { position: absolute; color: var(--accent); font-size: 20px; opacity: 0.65; }
.media-info { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.media-info strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-info span { font-size: 10.5px; color: var(--faint); }
.media-actions { position: absolute; top: 7px; inset-inline-start: 7px; display: flex; gap: 4px; }
.media-actions .icon-btn { background: rgba(2, 6, 15, 0.6); backdrop-filter: blur(4px); }

/* segmented filter + compact selects */
.seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(15, 23, 42, 0.6); }
.seg-btn { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.seg-btn.active { background: rgba(34, 211, 238, 0.12); color: #cffafe; }
.inline-field { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.select-compact { width: auto; padding: 6px 9px; font-size: 11.5px; border-radius: 8px; }

/* recording badge */
.rec-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(2, 6, 15, 0.72);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.rec-badge b { direction: ltr; font-variant-numeric: tabular-nums; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #fb7185; animation: recPulse 1s infinite; }
@keyframes recPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.82); } }
.row.gap { gap: 9px; }

/* preview modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 15, 0.72); backdrop-filter: blur(6px); }
.modal-card {
  position: relative;
  width: min(920px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a1220;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: fadeUp 0.18s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--line-soft); }
.modal-head strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-body {
  padding: 14px;
  overflow: auto;
  display: grid;
  place-items: center;
  min-height: 180px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(34, 211, 238, 0.05), transparent 70%),
    #04070d;
}
.preview-img { max-width: 100%; max-height: 70vh; border-radius: 9px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.preview-video { max-width: 100%; max-height: 70vh; border-radius: 9px; background: #000; }
.preview-video-poster { position: relative; display: grid; place-items: center; }
.preview-video-poster img { max-width: 100%; max-height: 70vh; border-radius: 9px; opacity: 0.92; }
.preview-play {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-inline-start: 4px;
  background: rgba(2, 6, 15, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 18px;
}
.preview-audio { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px; }
.preview-audio .ico { color: var(--accent); }
.preview-audio audio { width: min(480px, 80vw); }
.preview-loading { padding: 30px; color: var(--muted); font-size: 12.5px; }
.preview-meta { padding: 9px 15px 13px; border-top: 1px solid var(--line-soft); }

.notif-list { display: flex; flex-direction: column; gap: 9px; }
.notif-card { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--line-soft); border-radius: 13px; padding: 13px 15px; }
.notif-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.notif-top strong { font-size: 11px; color: var(--accent); direction: ltr; }
.notif-top span { font-size: 10.5px; color: var(--faint); }
.notif-title { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.notif-text { font-size: 12.5px; color: var(--muted); }

.sms-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 12px; height: min(62vh, 620px); min-height: 420px; }
.threads { border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(15, 23, 42, 0.5); display: flex; flex-direction: column; overflow: hidden; }
.threads-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.threads-head .icon-btn { margin: 0; }
.threads-list { overflow-y: auto; flex: 1; }
.thread {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(30, 41, 59, 0.45);
  color: var(--text);
  text-align: start;
  transition: 0.12s;
}
.thread:hover { background: rgba(148, 163, 184, 0.04); }
.thread.active { background: rgba(34, 211, 238, 0.07); border-inline-start: 2px solid var(--accent); }
.thread strong { font-size: 12px; direction: ltr; text-align: right; color: #bae6fd; }
.thread span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread small { font-size: 10px; color: var(--faint); }

.messages-wrap { border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(15, 23, 42, 0.45); display: flex; flex-direction: column; overflow: hidden; }
.messages-head { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 12px; direction: ltr; text-align: right; }
.messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 74%; padding: 9px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.55; background: var(--panel2); border: 1px solid var(--line-soft); align-self: flex-start; border-start-start-radius: 4px; }
.bubble.out { align-self: flex-end; background: linear-gradient(135deg, rgba(34, 211, 238, 0.17), rgba(99, 102, 241, 0.16)); border-color: rgba(34, 211, 238, 0.22); border-start-start-radius: 14px; border-start-end-radius: 4px; }
.bubble time { display: block; font-size: 9.5px; color: var(--faint); margin-top: 4px; direction: ltr; text-align: right; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-soft); background: rgba(6, 10, 18, 0.4); }

.audio-card { max-width: 560px; margin: 8px auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 36px 24px; }
.audio-orb {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(34, 211, 238, 0.35), rgba(99, 102, 241, 0.12) 60%, transparent 70%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
  transition: 0.3s;
}
.audio-orb.on { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.05), 0 0 60px rgba(34, 211, 238, 0.2); animation: orbPulse 2.2s infinite; }
@keyframes orbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row.center { justify-content: center; align-items: center; }
.vu { display: flex; align-items: flex-end; gap: 5px; height: 34px; opacity: 0.25; transition: 0.2s; }
.vu.on { opacity: 1; }
.vu span { width: 5px; border-radius: 99px; background: linear-gradient(var(--accent), var(--accent2)); height: 20%; animation: vu 0.9s infinite ease-in-out; }
.vu span:nth-child(2n) { animation-delay: 0.15s; }
.vu span:nth-child(3n) { animation-delay: 0.3s; }
.vu span:nth-child(4n) { animation-delay: 0.45s; }
.vu.on span { animation-duration: 0.7s; }
@keyframes vu { 0%, 100% { height: 18%; } 50% { height: 95%; } }
.photo-preview { max-width: 100%; max-height: 46vh; margin: 14px auto 10px; border-radius: 12px; border: 1px solid var(--line-soft); display: block; }

/* ------------------------------------------------------------ remote access */
.addr-row { display: flex; gap: 8px; align-items: stretch; }
.addr-row .input { flex: 1; min-width: 0; }
.addr-row .addr-port { flex: none; width: 106px; text-align: center; }
.url-preview {
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #050a13;
  color: #a5f3fc;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11.5px;
  word-break: break-all;
}
.url-preview.error { color: #fda4af; border-color: rgba(251, 113, 133, 0.35); }
.remote-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.remote-layout .card { display: flex; flex-direction: column; gap: 14px; }
.remote-layout .card h3 { font-size: 15px; }
.remote-layout .card p { font-size: 12.5px; color: var(--muted); }
.url-box {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #050a13;
  color: #a5f3fc;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11.5px;
  word-break: break-all;
}
.chip-public {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}
.chip-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
}
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.status-item {
  border: 1px solid var(--line-soft);
  background: rgba(148, 163, 184, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.status-item span { font-size: 11px; color: var(--faint); }
.status-item strong { font-size: 12.5px; font-weight: 650; word-break: break-word; }
.status-item.ok { border-color: rgba(52, 211, 153, 0.28); }
.status-item.ok strong { color: #a7f3d0; }
.status-item.warn { border-color: rgba(251, 191, 36, 0.28); }
.status-item.warn strong { color: #fde68a; }
.rule-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.04);
  font-size: 11.5px;
  color: var(--muted);
}
.rule-line b { color: #a5f3fc; font-weight: 700; }
.remote-steps code { font-size: 0.85em; }
.insecure-banner {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.97), rgba(69, 26, 3, 0.97));
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 12.5px;
  color: #fde68a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.insecure-banner .ico { flex: none; color: #fbbf24; }
.insecure-banner div { flex: 1; min-width: 0; line-height: 1.5; }
.insecure-banner .icon-btn { color: #fde68a; }

/* ------------------------------------------------------------ help */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-bottom: 16px; }
.help-grid h3 { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 10px; }
.help-grid p { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.help-grid p:last-child { margin-bottom: 0; }
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #a5f3fc;
  flex: none;
}
.code {
  background: #050a13;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11.5px;
  color: #a5f3fc;
  direction: ltr;
  text-align: left;
  margin: 0 0 10px;
  overflow-x: auto;
}
.warn-card { border-color: rgba(251, 191, 36, 0.22); background: linear-gradient(180deg, rgba(251, 191, 36, 0.045), rgba(15, 23, 42, 0.7)); }
.warn-card h3 { font-size: 14.5px; margin-bottom: 12px; color: #fde68a; }
.warn-card ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* ------------------------------------------------------------ toasts */
.toasts { position: fixed; bottom: 20px; inset-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(380px, 90vw); }
.toast {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12.5px;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.toast.success { border-color: rgba(52, 211, 153, 0.35); }
.toast.error { border-color: rgba(251, 113, 133, 0.35); }
.toast .dot { margin-top: 5px; flex: none; }
.toast.success .dot { background: var(--green); }
.toast.error .dot { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ transfer dock */
.transfer-dock {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  width: min(390px, calc(100vw - 32px));
  background: rgba(10, 16, 29, 0.97);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 60;
  overflow: hidden;
}
.transfer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.transfer-head strong { font-size: 12.5px; }
.transfer-head .spacer { flex: 1; }
.transfer-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.transfer-dock.collapsed .transfer-list { display: none; }
.transfer-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}
.transfer-item:last-child { border-bottom: none; }
.transfer-item .t-dir {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.transfer-item.down .t-dir { background: rgba(34, 211, 238, 0.12); color: #67e8f9; }
.transfer-item.up .t-dir { background: rgba(129, 140, 248, 0.14); color: #a5b4fc; }
.transfer-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.transfer-name {
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transfer-note {
  font-size: 10.5px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transfer-bar { height: 4px; border-radius: 99px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.transfer-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.2s ease;
}
.transfer-item.done .transfer-bar i { background: var(--green); }
.transfer-item.error .transfer-bar i { background: var(--red); }
.transfer-item .t-state { flex: none; font-size: 10.5px; color: var(--faint); }
.transfer-item.done .t-state { color: var(--green); }
.transfer-item.error .t-state { color: var(--red); }
.transfer-item.active .t-state, .transfer-item.prep .t-state { color: #a5f3fc; }
.transfer-x { flex: none; }

/* folder download dialog */
.folder-dl { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.folder-dl .btn { justify-content: center; }
.btn.sm.active { color: #a5f3fc; border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.08); }

/* keystrokes view */
.checkbox-line { gap: 8px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }
.keys-check { flex: none; display: grid; place-items: center; }
.keys-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.keys-row {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  align-items: baseline;
}
.keys-row:nth-child(odd) { background: rgba(148, 163, 184, 0.05); }
.keys-row.keys-window { background: rgba(129, 140, 248, 0.08); }
.keys-time { flex: none; color: var(--faint); font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; }
.keys-app {
  flex: none;
  width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #67e8f9;
  font-size: 11.5px;
  text-align: right;
}
.keys-window .keys-app { color: #a5b4fc; }
.keys-text { flex: 1; min-width: 0; word-break: break-word; }
.keys-window .keys-text { color: var(--muted); }

/* ------------------------------------------------------------ devices sections */
.devices-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.devices-bar .spacer { flex: 1; }
.section-head { margin: 18px 0 10px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
}
.section-title .pill { font-size: 10.5px; padding: 3px 9px; }
#soundToggle.muted-off { opacity: 0.45; }

/* ------------------------------------------------------------ floating camera */
.cam-float {
  position: fixed;
  top: 90px;
  inset-inline-end: 18px;
  width: 290px;
  z-index: 66;
  background: rgba(10, 16, 29, 0.97);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cam-float-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  cursor: move;
  touch-action: none;
  user-select: none;
}
.cam-float-head strong { font-size: 12px; }
.cam-float-head .spacer { flex: 1; }
.cam-float-body { background: #04070d; }
.cam-float-body img { width: 100%; display: block; }
.screen-img.floating { border-radius: 0; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    border-inline-end: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .sidebar .brand span:not(.brand-mark) { display: none; }
  .nav { flex-direction: row; margin-inline-start: 8px; }
  .nav-btn { width: auto; padding: 8px 12px; }
  .sidebar-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; gap: 10px; }
  .conn-pill { display: none; }
  .user-row { border: none; padding: 0; }
  .user-meta { display: none; }
  .main { padding: 20px 18px 40px; }
  .build-layout { grid-template-columns: 1fr; }
  .build-side { position: static; }
  .remote-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar h2 { font-size: 19px; }
  .topbar p { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 24px; }
  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .device-bar { gap: 10px; }
  .device-bar > .btn { order: 3; }
  .device-bar-end { margin-inline-start: 0; }
  .screen-stage { min-height: 260px; }
  .sms-layout { grid-template-columns: 1fr; height: auto; }
  .threads { max-height: 210px; }
  .messages-wrap { height: 420px; }
  .tab { padding: 7px 10px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-row.has-thumb { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .file-row.has-thumb .file-size { display: none; }
  .media-actions { top: 5px; inset-inline-start: 5px; }
  .tab span:not(.ico) { display: none; }
  .file-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .file-size { display: none; }
  .login-card { padding: 26px 20px 20px; }
  .toolbar .muted.tiny { display: none; }
}
