/* ═══════════════════════════════════════════════════════════════
   PRISMA — GEDEELDE STYLESHEET
   Ondersteunt: telefoon, iPad (portrait+landscape), laptop/desktop
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy:       #1F3864;
  --blue:       #2E74B5;
  --accent:     #4A9FD4;
  --bg:         #F0F4F8;
  --surface:    #FFFFFF;
  --border:     #CBD5E1;
  --text:       #1E293B;
  --muted:      #64748B;
  --success:    #059669;
  --warn:       #D97706;
  --danger:     #EF4444;
  --sans:       'IBM Plex Sans', sans-serif;
  --mono:       'IBM Plex Mono', monospace;

  /* Layout tokens */
  --sidebar-w:    220px;
  --header-h:     56px;
  --bottom-nav-h: 64px;
  --content-max:  1200px;
  --radius:       0px;

  /* Touch targets */
  --touch-min:    44px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overscroll-behavior: none;
}

/* ══════════════════════════════════════════════════════
   LAYOUT SHELL — 3 breakpoints
   mobile  : < 768px   → bottom nav, no sidebar
   tablet  : 768–1199  → landscape sidebar / portrait bottom nav
   desktop : ≥ 1200px  → persistent sidebar
   ══════════════════════════════════════════════════════ */

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* ── TOP HEADER (all sizes) ── */
.app-header {
  background: var(--navy);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.app-header .logo-badge {
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.app-header .logo-title {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.2;
}
.app-header .logo-sub {
  color: rgba(255,255,255,.4);
  font-size: 10px;
  font-family: var(--mono);
}
.app-header .header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── BODY AREA (header + sidebar + content) ── */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ── SIDEBAR (tablet landscape + desktop) ── */
.app-sidebar {
  display: none; /* hidden on mobile/portrait tablet */
  flex-direction: column;
  width: var(--sidebar-w);
  background: var(--navy);
  flex-shrink: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
}
.sidebar-section {
  padding: 16px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,.3);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 16px 8px;
}
.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: rgba(255,255,255,.55);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  padding: 11px 16px 11px 13px;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s, border-color .12s;
  min-height: var(--touch-min);
  text-decoration: none;
}
.sidebar-btn .nav-icon { font-size: 15px; flex-shrink: 0; }
.sidebar-btn:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); }
.sidebar-btn.active {
  background: rgba(74,159,212,.15);
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 500;
}

/* ── CONTENT AREA ── */
.app-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 100px; /* bottom padding for mobile nav */
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.content-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ── BOTTOM NAV (mobile + tablet portrait) ── */
.bottom-nav {
  display: flex;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  z-index: 200;
  /* Safe area for iPhone */
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.45);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .15s;
  min-height: var(--touch-min);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.bottom-nav-btn .nav-icon { font-size: 18px; }
.bottom-nav-btn:hover,
.bottom-nav-btn.active { color: #fff; }
.bottom-nav-btn.active .nav-icon {
  background: rgba(74,159,212,.25);
  border-radius: 12px;
  padding: 2px 10px;
}

/* ══════════════════════════════════════════════════════
   BREAKPOINTS
   ══════════════════════════════════════════════════════ */

/* Tablet landscape + desktop: show sidebar, hide bottom nav */
@media (min-width: 768px) and (orientation: landscape),
       (min-width: 1024px) {
  .app-sidebar { display: flex; }
  .bottom-nav  { display: none; }
  .app-content { padding: 28px 28px 40px; }
}

/* Desktop wide */
@media (min-width: 1200px) {
  :root { --sidebar-w: 240px; }
  .app-content { padding: 32px 40px 48px; }
}

/* Mobile: bigger safe-area bottom padding */
@media (max-width: 767px) {
  .app-content { padding: 16px 14px calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); }
}

/* ══════════════════════════════════════════════════════
   PAGE TITLE BLOCK
   ══════════════════════════════════════════════════════ */
.page-title {
  font-size: 20px;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: -.01em;
  margin-bottom: 2px;
}
.page-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .page-title { font-size: 24px; }
  .page-sub { margin-bottom: 24px; }
}

/* ══════════════════════════════════════════════════════
   SECTION CARDS
   ══════════════════════════════════════════════════════ */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
}
.section-header {
  background: var(--navy);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 500;
}
.section-title {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.section-body { padding: 16px; }
@media (min-width: 768px) {
  .section-body { padding: 20px; }
}

/* ══════════════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .form-grid       { grid-template-columns: 1fr 1fr; }
  .form-grid.cols-1 { grid-template-columns: 1fr; }
  .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .field.span-2     { grid-column: span 2; }
  .field.span-3     { grid-column: span 3; }
}
.field { display: flex; flex-direction: column; gap: 5px; }

label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .07em;
  text-transform: uppercase;
}

input[type=text],
input[type=date],
input[type=email],
select,
textarea {
  font-family: var(--sans);
  font-size: 16px; /* prevents iOS zoom */
  color: var(--text);
  background: #F8FAFC;
  border: 1px solid var(--border);
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s, background .15s;
  width: 100%;
  min-height: var(--touch-min);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 80px;
  font-size: 15px;
}
@media (min-width: 768px) {
  input[type=text], input[type=date], input[type=email], select, textarea {
    font-size: 13px;
    padding: 9px 11px;
    min-height: 38px;
  }
  textarea { font-size: 13px; min-height: 72px; }
}

/* ══════════════════════════════════════════════════════
   DYNAMIC TABLE (bezoek app)
   ══════════════════════════════════════════════════════ */
.dyn-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 4px; }
.dyn-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 400px; }
.dyn-table th {
  background: var(--navy); color: #fff;
  font-weight: 500; padding: 10px 10px;
  text-align: left; font-size: 11px;
  letter-spacing: .05em; white-space: nowrap;
}
.dyn-table td { border-bottom: 1px solid var(--border); padding: 4px 3px; vertical-align: top; }
.dyn-table tr:nth-child(even) td { background: #F8FAFC; }
.dyn-table td input,
.dyn-table td select,
.dyn-table td textarea {
  border: none; background: transparent;
  font-size: 13px; padding: 6px 8px; width: 100%;
  min-height: 40px;
}
.dyn-table td input:focus,
.dyn-table td select:focus,
.dyn-table td textarea:focus { background: #EFF6FF; outline: 1px solid var(--accent); }
.dyn-table td textarea { min-height: 52px; resize: vertical; }

.add-row-btn {
  background: none; border: 1px dashed var(--border);
  color: var(--muted); font-family: var(--sans); font-size: 12px;
  padding: 10px 16px; cursor: pointer; margin-top: 10px;
  transition: all .15s; letter-spacing: .04em;
  min-height: var(--touch-min); width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.add-row-btn:active { border-color: var(--accent); color: var(--accent); background: #EFF6FF; }
@media (hover: hover) {
  .add-row-btn:hover { border-color: var(--accent); color: var(--accent); background: #EFF6FF; }
}

.del-btn {
  background: none; border: none; color: #CBD5E1;
  cursor: pointer; font-size: 18px; padding: 4px 8px;
  min-width: var(--touch-min); min-height: var(--touch-min);
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.del-btn:active { color: #EF4444; }
@media (hover: hover) { .del-btn:hover { color: #EF4444; } }

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */
.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 18px;
  border: none;
  cursor: pointer;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:active { background: #162b4e; }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:active  { background: #3a8fca; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:active { border-color: var(--accent); color: var(--accent); }
.btn-danger  { background: transparent; border: 1px solid #FCA5A5; color: var(--danger); }
.btn-danger:active  { background: #FEF2F2; }
.btn-sm { font-size: 11px; padding: 8px 12px; min-height: 36px; }

@media (hover: hover) {
  .btn-primary:hover { background: #162b4e; }
  .btn-accent:hover  { background: #3a8fca; }
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
  .btn-danger:hover  { background: #FEF2F2; }
}

.action-bar {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  background: #F8FAFC;
}
.action-bar .btn { flex: 1; min-width: 140px; }
@media (min-width: 600px) {
  .action-bar .btn { flex: 0 0 auto; }
}

/* ══════════════════════════════════════════════════════
   ARCHIEF / VISIT ITEMS
   ══════════════════════════════════════════════════════ */
.visits-list { display: flex; flex-direction: column; gap: 8px; }
.visit-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}
.visit-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.visit-name { font-size: 14px; font-weight: 500; }
.visit-date { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.visit-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   STATUS / TYPE BADGES
   ══════════════════════════════════════════════════════ */
.status-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 3px 8px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.s-open         { background: #FEF2F2; color: #EF4444; }
.s-behandeling  { background: #FFFBEB; color: #D97706; }
.s-afgerond     { background: #ECFDF5; color: #059669; }
.s-doorgestuurd { background: #EDE9FE; color: #7C3AED; }

.type-badge {
  display: inline-block; font-size: 10px; font-weight: 600; padding: 3px 6px; letter-spacing: .05em;
}
.t-data      { background: #FEF9C3; color: #854D0E; }
.t-gebruiker { background: #DBEAFE; color: #1E40AF; }
.t-systeem   { background: #FEE2E2; color: #991B1B; }
.t-onbekend  { background: #F1F5F9; color: #475569; }

.status-pill { display: inline-block; font-size: 10px; font-weight: 600; padding: 3px 8px; letter-spacing: .06em; text-transform: uppercase; }
.pill-geen    { background:#F1F5F9; color:#64748B; }
.pill-start   { background:#FEF3C7; color:#92400E; }
.pill-uitrol  { background:#DBEAFE; color:#1E40AF; }
.pill-actief  { background:#D1FAE5; color:#065F46; }

/* ══════════════════════════════════════════════════════
   STAT CARDS (dashboard)
   ══════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.stat-card { background: var(--surface); border: 1px solid var(--border); padding: 16px; }
.stat-num { font-size: 28px; font-weight: 300; line-height: 1; margin-bottom: 4px; letter-spacing: -.02em; }
.stat-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-open .stat-num        { color: #EF4444; }
.stat-behandeling .stat-num { color: #D97706; }
.stat-afgerond .stat-num    { color: #059669; }
.stat-totaal .stat-num      { color: var(--navy); }

/* ══════════════════════════════════════════════════════
   BAR CHARTS
   ══════════════════════════════════════════════════════ */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1fr 1fr; } }

.dash-card { background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.dash-card-header { background: var(--navy); padding: 9px 16px; }
.dash-card-header span { color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

.bar-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 12px; }
.bar-item:last-child { border-bottom: none; }
.bar-label { min-width: 120px; font-size: 11px; color: var(--text); }
.bar-track { flex: 1; background: #F1F5F9; height: 6px; }
.bar-fill { height: 6px; background: var(--accent); transition: width .4s; }
.bar-num { font-family: var(--mono); font-size: 11px; color: var(--muted); min-width: 20px; text-align: right; }

/* ══════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════ */
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 500px; }
.data-table th {
  background: #F8FAFC; color: var(--muted); font-size: 10px; font-weight: 600;
  padding: 9px 12px; text-align: left; border-bottom: 2px solid var(--border);
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.clickable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.data-table tr.clickable:active td { background: #F0F7FF; }
@media (hover: hover) { .data-table tr.clickable:hover td { background: #F8FAFC; } }

/* ══════════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════════ */
.filter-bar {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.filter-select, .filter-input {
  font-family: var(--sans); font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 12px; outline: none; min-height: var(--touch-min);
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.filter-input { flex: 1; min-width: 160px; }
.filter-select:focus, .filter-input:focus { border-color: var(--accent); outline: none; }
@media (min-width: 768px) {
  .filter-select, .filter-input { font-size: 12px; padding: 7px 10px; min-height: 36px; }
  .filter-select { padding-right: 28px; }
}

/* ══════════════════════════════════════════════════════
   OVERVIEW TABLE
   ══════════════════════════════════════════════════════ */
.overview-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.overview-table th { background: var(--navy); color: #fff; padding: 9px 12px; text-align: left; font-size: 11px; letter-spacing: .05em; font-weight: 500; }
.overview-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.overview-table tr:nth-child(even) td { background: #F8FAFC; }

/* ══════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 500;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -4px 32px rgba(0,0,0,.2);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 600px) {
  .modal-overlay { align-items: center; }
  .modal { width: 540px; max-width: 95vw; max-height: 88vh; }
}
.modal-header {
  background: var(--navy); padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1;
}
.modal-header span { color: #fff; font-size: 14px; font-weight: 500; }
.modal-close {
  background: none; border: none; color: rgba(255,255,255,.7); font-size: 22px;
  cursor: pointer; padding: 4px 8px; min-width: var(--touch-min); min-height: var(--touch-min);
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-actions .btn { flex: 1; }

/* ══════════════════════════════════════════════════════
   SETUP / INFO CARD
   ══════════════════════════════════════════════════════ */
.setup-card { background: #FFF8E1; border: 1px solid #FDE68A; padding: 16px 20px; margin-bottom: 20px; }
.setup-card h3 { font-size: 13px; font-weight: 600; color: #92400E; margin-bottom: 8px; }
.setup-card p  { font-size: 12px; color: #78350F; line-height: 1.8; }

/* ══════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--navy); color: #fff;
  padding: 11px 20px; font-size: 13px; font-weight: 500;
  letter-spacing: .03em; white-space: nowrap;
  opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) and (orientation: landscape),
       (min-width: 1024px) {
  .toast {
    bottom: 24px; left: auto; right: 24px;
    transform: translateY(10px);
  }
  .toast.show { transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   LOADING OVERLAY
   ══════════════════════════════════════════════════════ */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.75);
  display: none; align-items: center; justify-content: center; z-index: 400;
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border); border-top-color: var(--navy);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════
   CONNECTION BAR
   ══════════════════════════════════════════════════════ */
.conn-bar {
  background: #162b4e; padding: 6px 20px;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-size: 11px; font-family: var(--mono); flex-wrap: wrap;
}
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: #F87171; flex-shrink: 0; }
.conn-dot.ok { background: #34D399; }
.conn-text { color: rgba(255,255,255,.6); }
.conn-url  { color: rgba(255,255,255,.35); font-size: 10px; display: none; }
@media (min-width: 900px) { .conn-url { display: block; margin-left: auto; } }
.btn-conn {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8); font-family: var(--sans); font-size: 11px;
  padding: 4px 10px; cursor: pointer; letter-spacing: .04em;
  min-height: 28px; margin-left: auto;
}
@media (min-width: 900px) { .btn-conn { margin-left: 0; } }

/* ══════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--muted); font-family: var(--mono); font-size: 12px;
}
