:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --sidebar-bg: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-soft: #e0f2fe;
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --info-soft: #dbeafe;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --sidebar-w: 248px;
  --alerts-w: 300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hidden { display: none !important; }
.nav-item.hidden { display: none !important; }
.screen { min-height: 100vh; }

.server-error-banner {
  background: #991b1b;
  color: #fff;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* Login */
.login-card {
  max-width: 420px;
  margin: 8vh auto;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.login-brand h1 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.login-brand p { color: var(--muted); font-size: 0.95rem; }

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  margin: 1rem 0 0.35rem;
}

form input, form select, form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.btn {
  padding: 0.62rem 1.15rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
  margin-top: 1.25rem;
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  width: 100%;
}

.btn-ghost:hover { background: var(--surface2); color: var(--text); }

/* App shell */
#app-screen { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.85rem;
  flex-shrink: 0;
}

.sidebar-brand {
  text-align: center;
  padding: 0 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  margin-bottom: 0.65rem;
}

.sidebar-brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
}

.sidebar-brand-tier {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

.sidebar-nav { flex: 1; padding-top: 0.5rem; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.72rem 0.9rem;
  margin-bottom: 0.2rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.75;
}

.nav-icon svg { width: 100%; height: 100%; }

.nav-item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.nav-item.active .nav-icon { opacity: 1; }

.nav-item-admin { margin-top: 0.75rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  min-width: 1.25rem;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sidebar-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.sidebar-link:hover { color: var(--primary-dark); }

.user-info {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding: 0 0.35rem;
  line-height: 1.35;
}

.app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.topbar-left { min-width: 160px; }

.console-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0e7490;
  line-height: 1.2;
}

.view-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.15rem;
}

.topbar-center { flex: 1; min-width: 200px; max-width: 480px; }

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  font-size: 0.9rem;
  color: var(--text);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
}

.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--surface2); }

.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

.btn-add { width: auto; margin: 0; white-space: nowrap; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
}

.user-chip-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-chip-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dashboard body */
.dashboard-body {
  display: flex;
  flex: 1;
  gap: 1rem;
  padding: 1rem 1.25rem 1.25rem;
  overflow: hidden;
}

.main-column {
  flex: 1;
  min-width: 0;
  overflow: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.35rem 0 0.15rem;
  line-height: 1.1;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-sub-ok { color: var(--success); font-weight: 600; }
.stat-sub-warn { color: var(--warning); font-weight: 600; }

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Alerts panel */
.alerts-panel {
  width: var(--alerts-w);
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  box-shadow: var(--shadow-sm);
}

.alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.alerts-header h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.alerts-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--danger-soft);
  color: var(--danger);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.alerts-list {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
}

.alert-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
  background: var(--surface2);
  cursor: pointer;
  transition: border-color 0.15s;
}

.alert-item:hover { border-color: var(--primary); }

.alert-item.critical { border-left: 3px solid var(--danger); }
.alert-item.warning { border-left: 3px solid var(--warning); }
.alert-item.info { border-left: 3px solid var(--primary); }

.alert-level {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.alert-item.critical .alert-level { color: var(--danger); }
.alert-item.warning .alert-level { color: var(--warning); }
.alert-item.info .alert-level { color: var(--primary-dark); }

.alert-title { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.alert-text { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

.alert-empty {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.alerts-footer-link {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.alerts-footer-link:hover { background: var(--surface2); }

/* Views & tables */
.view-lead {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-bar label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.filter-bar select {
  width: 280px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th {
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
td { font-size: 0.88rem; color: var(--text-soft); }
tr:last-child td { border-bottom: none; }

tr.clickable-row { cursor: pointer; }
tr.clickable-row:hover td { background: var(--primary-soft); }
tr.clickable-row.selected td { background: #bae6fd; }

tr.search-hidden { display: none; }

.network-detail {
  margin-top: 1.25rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.network-detail h3 { margin-bottom: 0.25rem; color: var(--text); }
.network-detail .detail-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; }
.network-detail h4 { margin: 1rem 0 0.5rem; font-size: 0.95rem; color: var(--primary-dark); }

.site-tree { margin-top: 0.75rem; }
.site-tree-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}
.site-tree-item h5 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.site-tree-nested {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.auto-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}
.auto-row-main { flex: 1; min-width: 220px; }
.auto-row .ip-local { font-size: 0.8rem; color: var(--muted); margin-left: 0.35rem; }

.connect-box {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: var(--success-soft);
}
.connect-box.connect-preview { margin-top: 0.75rem; margin-bottom: 0.5rem; }
.connect-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.connect-line { font-size: 0.88rem; margin: 0.15rem 0; }
.connect-ip { font-size: 1rem; font-weight: 700; color: #047857; }
.connect-note { font-size: 0.76rem; color: var(--muted); margin-top: 0.35rem; line-height: 1.35; }

.row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; white-space: nowrap; }

.btn-sm { padding: 0.38rem 0.7rem; font-size: 0.78rem; width: auto; margin: 0; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-edit { background: transparent; color: var(--primary-dark); border: 1px solid var(--primary); }
.btn-edit:hover { background: var(--primary-soft); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-online { background: var(--success-soft); color: #047857; }
.badge-offline { background: #f1f5f9; color: var(--muted); }
.badge-hiro { background: var(--info-soft); color: #1d4ed8; }
.badge-eztech { background: #ede9fe; color: #6d28d9; }
.badge-companytec { background: var(--warning-soft); color: #b45309; }

.ip-virtual { color: #047857; font-family: Consolas, monospace; font-weight: 600; }
.ip-local { color: var(--muted); font-family: Consolas, monospace; font-size: 0.82rem; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* Tunnel / installers */
.tunnel-panel { max-width: 100%; }
.tunnel-panel h3 { margin: 0 0 0.75rem; color: var(--text); }
.version-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}
.version-tag { font-size: 0.72rem; font-weight: 700; color: var(--primary-dark); margin-left: 0.25rem; }
.tunnel-lead { color: var(--muted); margin: 0 0 1.25rem; line-height: 1.5; }
.tunnel-steps { margin: 0 0 1rem 1.1rem; line-height: 1.6; }
.tunnel-steps.compact { font-size: 0.88rem; margin-bottom: 1rem; }
.tunnel-steps code { background: var(--surface2); padding: 0.15rem 0.4rem; border-radius: 4px; }
.tunnel-info { margin-top: 1.25rem; color: var(--muted); font-size: 0.88rem; }
.tunnel-panel .btn-primary { display: inline-block; text-decoration: none; text-align: center; width: auto; margin: 0; }

.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.download-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem;
}
.download-card h4 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--primary-dark); }
.download-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

.installer-upload-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--surface2);
}
.installer-upload-panel h4 { margin: 0 0 0.5rem; }
.installer-upload-panel input[type=text] { width: 100%; max-width: 220px; margin-bottom: 1rem; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.upload-card {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.upload-card label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.upload-card input[type=file] { display: block; margin-bottom: 0.75rem; width: 100%; }
.upload-card .btn { width: 100%; }

/* Modal */
.modal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  max-width: 480px;
  width: 95%;
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(15, 23, 42, 0.45); }
.modal form { padding: 0; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-body { padding: 1.25rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.modal-footer .btn { width: auto; margin: 0; }
.btn-icon { background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 1000;
  color: var(--text);
}
.toast.error { border-color: var(--danger); color: #b91c1c; }
.toast.success { border-color: var(--success); color: #047857; }

/* Remote viewer stays dark */
.remote-viewer-modal {
  width: min(98vw, 1600px);
  max-width: none;
  padding: 0;
  border: none;
  background: #0f1419;
  color: #e8edf5;
}
.remote-viewer-modal.remote-viewer-fullscreen,
.remote-viewer-modal:fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
  padding: 0;
}
.remote-viewer-modal.remote-viewer-fullscreen::backdrop,
.remote-viewer-modal:fullscreen::backdrop { background: #000; }
.remote-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #2d3a4f;
  background: #1a2332;
  flex-shrink: 0;
}
.remote-viewer-modal.remote-viewer-fullscreen .remote-viewer-header,
.remote-viewer-modal:fullscreen .remote-viewer-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  border-bottom: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent);
}
.remote-viewer-modal.remote-viewer-fullscreen:hover .remote-viewer-header,
.remote-viewer-modal:fullscreen:hover .remote-viewer-header,
.remote-viewer-modal.remote-viewer-fullscreen .remote-viewer-header:focus-within,
.remote-viewer-modal:fullscreen .remote-viewer-header:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.remote-viewer-header h3 { margin: 0; font-size: 1rem; }
.remote-viewer-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.remote-viewer-body { padding: 0.5rem; background: #0a0a0a; text-align: center; min-height: 200px; }
.remote-viewer-modal.remote-viewer-fullscreen .remote-viewer-body,
.remote-viewer-modal:fullscreen .remote-viewer-body {
  padding: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#remote-screen-img {
  max-width: 100%;
  max-height: 85vh;
  cursor: crosshair;
  user-select: none;
  background: #111;
}
.remote-viewer-modal.remote-viewer-fullscreen #remote-screen-img,
.remote-viewer-modal:fullscreen #remote-screen-img {
  flex: 1;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
#remote-screen-img.waiting { min-height: 240px; opacity: 0.35; }
.remote-viewer-modal .btn-ghost { color: #8b9cb3; border-color: #2d3a4f; width: auto; }
.remote-viewer-body .hint { color: #8b9cb3; margin: 0.5rem 0 0; font-size: 0.85rem; }

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .alerts-panel { display: none; }
}

@media (max-width: 768px) {
  #app-screen { flex-direction: column; }
  .sidebar { width: 100%; min-height: auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .topbar-center { order: 3; flex: 1 1 100%; max-width: none; }
  .download-grid { grid-template-columns: 1fr; }
  .user-chip-name { display: none; }
}
