/* ============================================================
   GI Atlas — Modern Medical Style  (layout NEVER shifts on lang toggle)
   ============================================================ */

:root {
  --bg:           #f8fafc;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --surface:      #ffffff;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
  --radius:       12px;
  --radius-sm:    8px;
  --sidebar-w:    300px;
  --font:         system-ui, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ── App shell ── */
#app-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ══════════════════════════════════════
   HEADER — fixed layout, never shifts
   ══════════════════════════════════════ */
#topbar {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 10px 16px;
  z-index: 100;
}

#header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* Left: logo + brand — always left-anchored */
#header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#logo-link { text-decoration: none; flex-shrink: 0; }
#header-logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
#logo-link:hover #header-logo { transform: scale(1.06); box-shadow: var(--shadow); }

#brand-block { display: flex; flex-direction: column; line-height: 1.25; }
#brand-title {
  font-size: 20px; font-weight: 700;
  color: #0f172a; letter-spacing: -0.4px; white-space: nowrap;
}
#brand-sub {
  font-size: 13px; color: #1e293b;
  margin-top: 2px; white-space: nowrap;
}

/* Center: search + lang toggle — always centered */
#search-area {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 460px;
}

#search-wrap { flex: 1; position: relative; }

#search-input {
  width: 100%;
  padding: 7px 14px 7px 36px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
#search-input:focus { border-color: var(--accent); background: #fff; }
#search-wrap::before {
  content: "🔍";
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
}

#search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  list-style: none;
  z-index: 500;
  max-height: 280px;
  overflow-y: auto;
}
#search-dropdown li { border-bottom: 1px solid var(--border); }
#search-dropdown li:last-child { border-bottom: none; }
#search-dropdown button {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
#search-dropdown button:hover { background: var(--accent-light); color: var(--accent); }
#search-dropdown .result-type {
  font-size: 10px; color: var(--text-muted);
  margin-left: auto; white-space: nowrap;
}
#search-dropdown .match-highlight { color: var(--accent); font-weight: 700; }

/* Lang sliding toggle */
#lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  background: #e2e8f0;
  border-radius: 20px;
  padding: 3px;
  gap: 0;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  height: 32px;
  width: 78px;
}
.lang-opt {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
  line-height: 26px;
}
.lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--accent);
  border-radius: 16px;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
/* Hebrew active → slide thumb to right */
html[lang="he"] #lang-toggle .lang-thumb {
  transform: translateX(calc(100% + 2px));
}
html[lang="he"] #lang-he  { color: #fff; }
html[lang="en"] #lang-en  { color: #fff; }

/* Right: site image button — hidden on mobile, only desktop */
#header-btns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

#site-btn {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.15s, transform 0.15s;
}
#site-btn:hover { opacity: 1; transform: scale(1.04); }
#site-logo-img { height: 52px; width: auto; display: block; }

/* ── Canvas search bar (below header, above 3D canvas) ── */
#canvas-search-bar {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 7px 12px;
  display: none;   /* shown by media query rules below */
  z-index: 90;
}
#canvas-search-wrap { position: relative; max-width: 480px; margin: 0 auto; }
#canvas-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
#canvas-search-input:focus { border-color: var(--accent); background: #fff; }
#canvas-search-wrap::before {
  content: "🔍";
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
}
#canvas-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  list-style: none;
  z-index: 500;
  max-height: 280px;
  overflow-y: auto;
}
#canvas-search-dropdown li { border-bottom: 1px solid var(--border); }
#canvas-search-dropdown li:last-child { border-bottom: none; }
#canvas-search-dropdown button {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
#canvas-search-dropdown button:hover { background: var(--accent-light); color: var(--accent); }
#canvas-search-dropdown .result-type {
  font-size: 10px; color: var(--text-muted);
  margin-left: auto; white-space: nowrap;
}
#canvas-search-dropdown .match-highlight { color: var(--accent); font-weight: 700; }

/* ── Main content ── */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: row;   /* always LTR: canvas left, sidebar right */
  overflow: hidden;
  min-height: 0;
}

/* ── 3D canvas ── */
#canvas-container {
  flex: 1; position: relative; overflow: hidden; min-width: 0;
  background:
    radial-gradient(ellipse 65% 12% at 50% 96%, rgba(99,130,190,0.22) 0%, transparent 100%),
    linear-gradient(175deg, #f0f4fa 0%, #f8fafc 45%, #eef2f8 100%);
}
#reset-cam-btn {
  position: absolute; bottom: 14px; right: 14px; z-index: 20;
  background: var(--accent); border: none;
  border-radius: var(--radius-sm); padding: 7px 14px;
  font-size: 13px; font-weight: 600; line-height: 1;
  cursor: pointer; color: #fff; letter-spacing: 0.02em;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 5px;
  transition: background 0.15s, transform 0.15s;
}
#reset-cam-btn:hover { background: var(--accent-hover); transform: rotate(15deg); }
#canvas-container canvas { display: block; width: 100% !important; height: 100% !important; }

/* ── Loader ── */
#loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; background: var(--bg); z-index: 50;
  transition: opacity 0.3s;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loader p { font-size: 13px; color: var(--text-muted); }

/* ── Floating hover label ── */
#floating-label {
  position: fixed; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  padding: 8px 12px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  opacity: 0; transition: opacity 0.18s;
  transform: translateY(-50%);
  max-width: 220px; min-width: 130px;
  cursor: default;
}
#floating-label.visible { opacity: 1; }
.fl-name {
  font-size: 13px; font-weight: 700;
  color: var(--accent); margin-bottom: 5px; white-space: nowrap;
}
.fl-conditions {
  list-style: none; padding: 0; margin: 0;
  max-height: 200px; overflow-y: auto;
}
.fl-conditions li { border-top: 1px solid var(--border); }
.fl-conditions li a {
  display: block; padding: 5px 0;
  font-size: 12px; color: var(--text);
  text-decoration: none; opacity: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fl-conditions li a:hover { color: var(--accent); }

/* ══════════════════════════════════════
   SIDEBAR — always on the right, fixed
   ══════════════════════════════════════ */
#sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow: hidden;
}

#organ-nav { flex: 1; overflow-y: auto; padding: 8px 0 80px; }

.organ-item { border-bottom: 1px solid var(--border); }
.organ-item:first-child { border-top: 1px solid var(--border); }

.organ-header-btn {
  width: 100%; display: flex; align-items: center;
  gap: 10px; padding: 13px 16px;
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text);
  text-align: left; transition: background 0.12s;
}
.organ-header-btn:hover { background: var(--accent-light); }
.organ-header-btn.active { color: var(--accent); background: var(--accent-light); }

.organ-header-btn .o-icon { flex-shrink: 0; display: flex; align-items: center; }
.organ-header-btn .o-icon svg { width: 24px; height: 24px; }
.organ-header-btn .o-name { flex: 1; }
.organ-header-btn .o-chevron {
  font-size: 11px; color: var(--text-muted);
  transition: transform 0.2s; flex-shrink: 0;
}
.organ-header-btn.active .o-chevron { transform: rotate(90deg); }

.condition-list {
  list-style: none; display: none;
  background: #f1f5f9; border-top: 1px solid var(--border);
  max-height: 320px; overflow-y: auto;
}
.condition-list.open { display: block; }
.condition-list li { border-bottom: 1px solid #e2e8f0; }
.condition-list li:last-child { border-bottom: none; }
.condition-list a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  color: var(--accent); text-decoration: none; transition: background 0.12s;
}
.condition-list a:hover { background: var(--accent-light); }
.condition-list a::before { content: "▶"; font-size: 9px; flex-shrink: 0; color: var(--text-muted); }


/* ── Popup ── */
#popup-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.35); z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
#popup-overlay.visible { opacity: 1; pointer-events: all; }

#popup-card {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  z-index: 400; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: min(380px, 92vw); max-height: 80vh;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
#popup-card.visible { opacity: 1; pointer-events: all; transform: translate(-50%, -50%); }

#popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border); gap: 12px;
}
#popup-title { font-size: 17px; font-weight: 700; color: var(--text); flex: 1; }
#popup-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 20px; line-height: 1;
  padding: 2px 4px; border-radius: 4px; transition: color 0.15s, background 0.15s;
}
#popup-close:hover { color: var(--text); background: var(--bg); }

#popup-links { list-style: none; overflow-y: auto; padding: 8px 0; flex: 1; }
#popup-links li { border-bottom: 1px solid var(--border); }
#popup-links li:last-child { border-bottom: none; }
#popup-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; color: var(--accent);
  text-decoration: none; font-size: 14px; font-weight: 500; transition: background 0.12s;
}
#popup-links a:hover { background: var(--accent-light); }
#popup-links a::before { content: "▶"; font-size: 10px; flex-shrink: 0; color: var(--text-muted); }

#popup-note {
  padding: 10px 20px; font-size: 11px;
  color: var(--text-muted); border-top: 1px solid var(--border); text-align: center;
}

/* ── Grid-mode popup (Symptoms tile) ── */
#popup-links.popup-grid-mode {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 10px 12px; list-style: none;
}
#popup-links.popup-grid-mode li { border-bottom: none; }
#popup-links.popup-grid-mode a {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 5px;
  padding: 12px 8px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; color: var(--text);
  text-decoration: none; transition: border-color 0.12s, background 0.12s;
}
#popup-links.popup-grid-mode a::before { display: none; }
#popup-links.popup-grid-mode a:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.pg-emoji { font-size: 22px; line-height: 1; }
.pg-label { line-height: 1.25; }

/* ── Mobile organ list ── */
#mobile-list { display: none; flex: 1; flex-direction: column; overflow: hidden; }

#mobile-search-wrap {
  position: relative; padding: 12px 16px 8px;
  background: var(--surface); border-bottom: 1px solid var(--border); flex-shrink: 0;
}
#mobile-search-input {
  width: 100%; padding: 8px 14px 8px 34px;
  border: 1.5px solid var(--border); border-radius: 20px;
  font-size: 14px; outline: none; transition: border-color 0.15s;
}
#mobile-search-input:focus { border-color: var(--accent); }
#mobile-search-wrap::before {
  content: "🔍"; position: absolute;
  left: 27px; top: 50%; transform: translateY(-4px);
  font-size: 14px; pointer-events: none;
}

#mobile-search-dropdown {
  position: absolute; top: calc(100% - 4px);
  left: 16px; right: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  list-style: none; z-index: 500; max-height: 240px; overflow-y: auto;
}
#mobile-search-dropdown li { border-bottom: 1px solid var(--border); }
#mobile-search-dropdown button {
  width: 100%; text-align: left; padding: 11px 14px; font-size: 14px;
  background: none; border: none; cursor: pointer; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
#mobile-search-dropdown button:hover { background: var(--accent-light); color: var(--accent); }

#mobile-grid {
  flex: 1; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 12px 16px 80px; align-content: start;
}

.organ-btn {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 12px;
  font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  box-shadow: var(--shadow-sm); line-height: 1.3;
}
.organ-btn:hover, .organ-btn:focus-visible {
  border-color: var(--accent); background: var(--accent-light); color: var(--accent); outline: none;
}
.organ-btn .organ-icon { display: flex; justify-content: center; margin-bottom: 6px; }
.organ-btn .organ-icon svg { width: 32px; height: 32px; }

/* ── Footer ── */
footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 7px 16px; font-size: 11px; color: var(--text-muted); text-align: center;
}

/* ── Mode toggle bar (mobile only) ── */
#mode-toggle-bar {
  display: none;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 6px 12px;
  gap: 6px;
}
.mode-btn {
  flex: 1;
  padding: 8px 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mode-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  #mode-toggle-bar { display: flex; }

  /* Default: list mode */
  #main-content { display: none !important; }
  #mobile-list  { display: flex; }

  /* 3D mode: swap visibility */
  body.mode-3d #main-content { display: flex !important; }
  body.mode-3d #mobile-list  { display: none !important; }
  body.mode-3d #sidebar      { display: none !important; }
  body.mode-3d #canvas-search-bar { display: block; }

  #topbar       { padding: 10px 12px; }
  #header-logo  { width: 52px; height: 52px; }
  #brand-title  { font-size: 16px; }
  #brand-sub    { display: block; font-size: 10px; white-space: normal; line-height: 1.3; max-width: 160px; }
  #search-wrap  { display: none; }
  #search-area  { flex: 0; gap: 0; max-width: none; }
  /* Hide the gastro logo on mobile — only Dr. Shachar's logo stays */
  #header-btns  { display: none; }
  #mobile-grid  { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 80px; }
  .organ-btn    { padding: 14px 8px; font-size: 13px; }
  footer        { font-size: 10px; padding: 6px 12px; }
}
@media (min-width: 768px) {
  #mobile-list      { display: none !important; }
  #mode-toggle-bar  { display: none !important; }
  /* Show canvas search bar on desktop (replaces header search to avoid duplication) */
  #canvas-search-bar { display: block; }
  #search-wrap       { display: none; }
  #search-area       { flex: 0; gap: 0; }
}
/* ── Mobile Bottom Nav ── */
#mobile-bottom-nav {
  display: none;
}
@media (max-width: 767px) {
  #mobile-bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 650;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
    padding: 4px 0 max(4px, env(safe-area-inset-bottom));
  }
  .mbn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 2px; background: none; border: none; cursor: pointer;
    padding: 6px 4px; color: var(--text-muted);
    transition: color 0.15s; -webkit-tap-highlight-color: transparent;
  }
  .mbn-item.active { color: var(--accent); }
  .mbn-icon  { font-size: 22px; line-height: 1; }
  .mbn-label { font-size: 10px; font-weight: 600; letter-spacing: 0.01em; }

  /* Organs button: persistent accent color + intro pulse */
  .mbn-item[data-action="organs"] {
    color: var(--accent);
  }
  .mbn-item[data-action="organs"] .mbn-label {
    font-weight: 700;
  }
  @keyframes mbn-pulse {
    0%   { transform: scale(1);    opacity: 1; }
    40%  { transform: scale(1.22); opacity: 0.8; }
    70%  { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
  }
  .mbn-item[data-action="organs"].mbn-hint .mbn-icon {
    animation: mbn-pulse 0.55s ease-out;
  }

  /* Transparent tap-outside area */
  #mbn-backdrop {
    display: none; position: fixed; inset: 0; z-index: 620;
    background: transparent;
  }
  #mbn-backdrop.open { display: block; }

  /* Floating info card — like the disease label */
  #mbn-panel {
    position: fixed; left: 50%; bottom: 68px; z-index: 630;
    transform: translateX(-50%) translateY(12px);
    opacity: 0; pointer-events: none;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    width: min(88vw, 260px); max-height: 52vh; overflow-y: auto;
    transition: opacity 0.2s, transform 0.2s;
  }
  #mbn-panel.open {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  /* Tests panel: top-right corner of canvas, above the test tubes */
  #mbn-panel.mbn-right {
    bottom: auto; top: 120px; left: auto; right: 8px;
    transform: translateX(0) translateY(-8px);
  }
  #mbn-panel.mbn-right.open {
    transform: translateX(0) translateY(0);
  }
  .mbn-handle { display: none; }
  #mbn-close-btn {
    position: absolute; top: 6px; right: 8px;
    background: none; border: none; cursor: pointer;
    font-size: 15px; color: var(--text-muted);
    line-height: 1; padding: 4px 6px; border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, background 0.15s;
  }
  #mbn-close-btn:active { color: var(--text); background: var(--border); }
  #mbn-panel-content { padding: 8px 12px 12px; }
  /* Pick-list: organ names, same style as fl-conditions */
  .mbn-pick-list { list-style: none; padding: 0; margin: 0; }
  .mbn-pick-list li { border-top: 1px solid var(--border); }
  .mbn-pick-btn {
    display: block; width: 100%; background: none; border: none;
    padding: 11px 4px; font-size: 13px; color: var(--text);
    cursor: pointer; text-align: start; opacity: 1;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
  }
  .mbn-pick-btn:active { color: var(--accent); }

  /* Darker, touch-friendly text in the floating panel link lists */
  #mbn-panel .fl-conditions li a {
    padding: 11px 4px;
    font-size: 13px; font-weight: 500;
    color: var(--text); opacity: 1;
    white-space: normal;
  }
  #mbn-panel .fl-conditions li a:hover,
  #mbn-panel .fl-conditions li a:active { color: var(--accent); }

  #mbn-panel .fl-name {
    font-size: 12px; font-weight: 700; color: var(--accent);
  }
}

@media (max-width: 360px) {
  #brand-title   { font-size: 14px; }
  #brand-sub     { display: none; }          /* too long, wraps & bloats header */
  #header-logo   { width: 44px; height: 44px; }
  #header-left   { gap: 8px; }
  #topbar        { padding: 6px 10px; }
  .mbn-icon      { font-size: 20px; }
  .mbn-label     { font-size: 9px; }
  #canvas-search-input { font-size: 13px; padding: 6px 12px 6px 32px; }
}
