/* ============================================================
   ARQUIPA — Fase 4 Styles
   Public Directory · Chat · Advanced Reports · PWA · Mobile Nav
   ============================================================ */

/* ---- PUBLIC DIRECTORY PAGE ---- */
#public-page {
  display: none;
  min-height: 100vh;
  font-family: var(--font-family);
  background: var(--bg-app);
}
#public-page.visible { display: block; }

.pub-topbar {
  height: 60px;
  background: var(--color-navy);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(27,42,74,0.25);
}
.pub-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pub-logo-mark {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pub-logo-mark svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pub-logo-name { font-size: 16px; font-weight: 800; letter-spacing: 0.12em; color: #fff; }
.pub-logo-sub  { font-size: 9px; font-weight: 500; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.pub-topbar-spacer { flex: 1; }
.pub-login-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff; border-radius: var(--radius-md);
  padding: 0 16px; height: 34px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 7px;
  font-family: var(--font-family);
  transition: background var(--dur) var(--ease);
}
.pub-login-btn:hover { background: rgba(255,255,255,0.2); }
.pub-login-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.pub-hero {
  background: linear-gradient(155deg, var(--color-navy) 0%, var(--color-navy-light) 60%, var(--color-purple) 100%);
  padding: 64px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.pub-hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.pub-hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 14px; }
.pub-hero p  { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 32px; line-height: 1.7; }

/* Search bar */
.pub-search-bar {
  display: flex; gap: 10px; max-width: 560px; margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.pub-search-bar input {
  flex: 1; border: none; outline: none; font-size: 14px;
  font-family: var(--font-family); color: var(--gray-800);
  background: transparent;
}
.pub-search-bar input::placeholder { color: var(--gray-300); }
.pub-search-bar select {
  border: none; outline: none; font-size: 13px; font-family: var(--font-family);
  color: var(--gray-600); background: transparent; cursor: pointer;
  border-left: 1px solid var(--border-color); padding: 0 8px; min-width: 120px;
}
.pub-search-btn {
  background: var(--color-navy); color: #fff; border: none;
  border-radius: 18px; padding: 0 20px; height: 38px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--font-family); transition: background var(--dur) var(--ease);
  white-space: nowrap;
}
.pub-search-btn:hover { background: var(--color-navy-light); }

/* Stats strip */
.pub-stats {
  display: flex; justify-content: center; gap: 48px;
  padding: 24px; flex-wrap: wrap;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}
.pub-stat { text-align: center; }
.pub-stat .stat-num { font-size: 26px; font-weight: 800; color: var(--color-navy); line-height: 1; }
.pub-stat .stat-lbl { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* Directory grid */
.pub-content { max-width: 1200px; margin: 0 auto; padding: 32px 20px; }
.pub-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.pub-section-header h2 { font-size: var(--font-size-h2); font-weight: 800; }
.pub-section-header p  { font-size: var(--font-size-sub); color: var(--text-secondary); }

.pub-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.pub-filter-btn {
  padding: 7px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background: var(--card-bg); font-size: 12px; font-weight: 600;
  color: var(--gray-600); cursor: pointer; font-family: var(--font-family);
  transition: all var(--dur) var(--ease);
}
.pub-filter-btn:hover  { border-color: var(--color-navy); color: var(--color-navy); }
.pub-filter-btn.active { border-color: var(--color-navy); background: var(--color-navy); color: #fff; }

.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.biz-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.biz-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-navy);
}
.biz-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.biz-avatar {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.biz-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--color-gold-dark);
}
.biz-rating svg { width: 14px; height: 14px; stroke: var(--color-gold); fill: var(--color-gold); stroke-width: 1; }
.biz-name  { font-size: var(--font-size-h3); font-weight: 700; margin-bottom: 4px; }
.biz-type  { font-size: var(--font-size-sub); color: var(--color-purple); font-weight: 500; margin-bottom: 8px; }
.biz-meta  { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.biz-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.biz-meta-item svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.biz-tags  { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.biz-actions { display: flex; gap: 8px; }
.biz-verified-badge {
  position: absolute; top: 14px; right: 56px;
  background: var(--color-green-pale);
  border: 1px solid rgba(26,138,90,0.2);
  color: var(--color-green);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 3px;
}
.biz-verified-badge svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- CHAT MODULE ---- */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  height: calc(100vh - var(--topbar-h) - 56px);
  max-height: 680px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--border-color);
  display: flex; flex-direction: column;
  background: var(--card-bg);
}
.chat-sidebar-header {
  padding: 16px; border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.chat-sidebar-header h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.chat-search { position: relative; }
.chat-search input {
  width: 100%; height: 34px;
  background: var(--input-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-pill); padding: 0 12px 0 32px;
  font-size: 12px; color: var(--text-primary); outline: none;
  font-family: var(--font-family);
}
.chat-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; stroke: var(--gray-400); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chat-list { flex: 1; overflow-y: auto; }
.chat-list::-webkit-scrollbar { width: 3px; }
.chat-list::-webkit-scrollbar-thumb { background: var(--border-color); }

.chat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer;
  transition: background var(--dur) var(--ease);
  border-bottom: 1px solid var(--gray-50);
}
.chat-item:hover  { background: var(--bg-hover); }
.chat-item.active { background: var(--bg-hover); border-right: 3px solid var(--color-navy); }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
  position: relative;
}
.chat-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-green);
  border: 2px solid var(--card-bg);
}
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-preview { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.chat-time { font-size: 10px; color: var(--text-muted); }
.chat-unread {
  background: var(--color-navy); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Chat window */
.chat-window {
  display: flex; flex-direction: column;
  background: var(--gray-50);
}
.chat-window-header {
  padding: 14px 18px; background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.chat-window-name  { font-size: 14px; font-weight: 700; }
.chat-window-status { font-size: 11px; color: var(--color-green); font-weight: 500; }
.chat-window-actions { margin-left: auto; display: flex; gap: 6px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-color); }

.chat-msg { display: flex; gap: 10px; max-width: 72%; }
.chat-msg.mine { flex-direction: row-reverse; align-self: flex-end; }
.chat-msg.mine .chat-bubble { background: var(--color-navy); color: #fff; border-radius: 18px 18px 4px 18px; }
.chat-msg-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light)); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; align-self: flex-end; }
.chat-bubble {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  font-size: 13px; line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.chat-bubble-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: right; }
.chat-msg.mine .chat-bubble-time { color: rgba(255,255,255,0.6); }

.chat-date-sep { text-align: center; font-size: 11px; color: var(--text-muted); font-weight: 600; position: relative; }
.chat-date-sep::before, .chat-date-sep::after { content: ''; position: absolute; top: 50%; width: 28%; height: 1px; background: var(--border-color); }
.chat-date-sep::before { left: 0; } .chat-date-sep::after { right: 0; }

/* Chat attachment pills */
.chat-attach {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 8px 12px;
  font-size: 12px; color: var(--text-secondary); margin-top: 6px;
}
.chat-attach svg { width: 14px; height: 14px; stroke: var(--color-navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.chat-msg.mine .chat-attach { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }
.chat-msg.mine .chat-attach svg { stroke: rgba(255,255,255,0.8); }

.chat-input-row {
  padding: 12px 16px; background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  display: flex; gap: 10px; align-items: flex-end; flex-shrink: 0;
}
.chat-input {
  flex: 1; min-height: 38px; max-height: 120px;
  background: var(--input-bg); border: 1.5px solid var(--border-color);
  border-radius: 19px; padding: 9px 16px;
  font-size: 13px; color: var(--text-primary); outline: none;
  resize: none; font-family: var(--font-family); line-height: 1.5;
  transition: border-color var(--dur) var(--ease);
}
.chat-input:focus { border-color: var(--color-navy); }
.chat-send-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-navy); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--dur) var(--ease);
}
.chat-send-btn:hover { background: var(--color-navy-light); }
.chat-send-btn svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-attach-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-500);
  transition: all var(--dur) var(--ease);
}
.chat-attach-btn:hover { background: var(--gray-100); color: var(--text-primary); }
.chat-attach-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- REPORTS MODULE ---- */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-bottom: 24px; }

.report-chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.report-chart-card .rcc-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.report-chart-card .rcc-title  { font-size: var(--font-size-h3); font-weight: 700; }
.report-chart-card .rcc-sub    { font-size: var(--font-size-sub); color: var(--text-secondary); margin-top: 2px; }

/* Revenue line chart SVG */
.line-chart-svg { width: 100%; height: 160px; overflow: visible; }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { opacity: 0.12; }
.chart-dot  { r: 4; }

/* Progress bars */
.prog-bar-row { display: flex; flex-direction: column; gap: 12px; }
.prog-row { display: flex; flex-direction: column; gap: 5px; }
.prog-row-head { display: flex; justify-content: space-between; align-items: center; }
.prog-row-head span:first-child { font-size: 13px; font-weight: 500; }
.prog-row-head span:last-child  { font-size: 13px; font-weight: 700; color: var(--color-navy); }
.prog-track { height: 8px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.prog-fill  { height: 100%; border-radius: 4px; transition: width 1s var(--ease); }

/* Pie chart SVG */
.pie-wrap { display: flex; align-items: center; gap: 20px; }
.pie-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pie-legend-item { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.pie-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pie-legend-left  { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); }
.pie-legend-right { font-weight: 700; font-size: 13px; }

/* Export bar */
.reports-export-bar {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.reports-export-bar span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* ---- PWA / MOBILE NAV ---- */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 62px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(27,42,74,0.1);
  z-index: 300;
  padding: 0 4px env(safe-area-inset-bottom, 0);
}
.mobile-nav-items {
  display: flex; height: 100%; align-items: center;
  justify-content: space-around;
}
.mobile-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; padding: 6px 4px;
  border: none; background: none;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur) var(--ease);
  color: var(--gray-400);
  position: relative;
}
.mobile-nav-item.active { color: var(--color-navy); }
.mobile-nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-nav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
.mobile-nav-item .mnav-badge {
  position: absolute; top: 4px; right: calc(50% - 16px);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-danger); color: #fff;
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--card-bg);
}

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  #app-shell .app-layout { padding-bottom: 62px; }
  #app-shell .sidebar { display: none; }
}

/* ---- PWA INSTALL BANNER ---- */
.pwa-install-banner {
  position: fixed; bottom: 70px; left: 16px; right: 16px;
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: none;
  align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  animation: slideUp .35s var(--ease);
  max-width: 400px;
  margin: 0 auto;
}
.pwa-install-banner.show { display: flex; }
.pwa-install-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pwa-install-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pwa-install-text { flex: 1; }
.pwa-install-text strong { font-size: 13px; font-weight: 700; color: #fff; display: block; }
.pwa-install-text span   { font-size: 11px; color: rgba(255,255,255,0.6); }
.pwa-install-btn {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: var(--radius-md); padding: 0 14px; height: 32px;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-family);
  flex-shrink: 0; white-space: nowrap;
  transition: background var(--dur) var(--ease);
}
.pwa-install-btn:hover { background: rgba(255,255,255,0.25); }
.pwa-dismiss { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 16px; padding: 4px; flex-shrink: 0; }

/* ---- REPORT PERIOD SELECTOR ---- */
.period-tabs {
  display: flex; gap: 4px;
  background: var(--gray-100); border-radius: var(--radius-md); padding: 3px;
}
.period-tab {
  padding: 5px 12px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: var(--gray-500);
  font-family: var(--font-family); transition: all var(--dur) var(--ease);
}
.period-tab.active {
  background: var(--card-bg); color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

/* ---- DETAIL MODAL (biz profile) ---- */
.biz-detail-header {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  padding: 28px 28px 24px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.biz-detail-header h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.biz-detail-header p  { color: rgba(255,255,255,0.65); font-size: 13px; }

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 860px) {
  .chat-layout  { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .chat-sidebar.show { display: flex; position: absolute; inset: 0; z-index: 10; }
  .biz-grid     { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .pub-stats    { gap: 24px; }
}
@media (max-width: 640px) {
  .pub-search-bar { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .pub-search-bar select { border-left: none; border-top: 1px solid var(--border-color); padding-top: 6px; }
  .pub-search-btn { width: 100%; border-radius: var(--radius-md); height: 38px; }
}

/* Dark theme overrides for fase4 components */
[data-theme="dark"] .pub-search-bar  { background: var(--card-bg,#161B27); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
[data-theme="dark"] .pub-search-bar input { color: var(--text-primary,#E8ECF4); }
[data-theme="dark"] .pub-filter-btn  { background: var(--card-bg,#161B27); border-color: var(--border-color); color: var(--text-secondary); }
[data-theme="dark"] .pub-filter-btn.active { background: var(--color-navy); color: #fff; }
[data-theme="dark"] .pub-biz-card    { background: var(--card-bg,#161B27); border-color: var(--border-color); }
[data-theme="dark"] .chat-layout     { background: var(--page-bg,#0D1117); }
[data-theme="dark"] .chat-sidebar    { background: var(--card-bg,#161B27); border-color: var(--border-color); }
[data-theme="dark"] .chat-window     { background: var(--page-bg,#0D1117); }
[data-theme="dark"] .chat-item       { color: var(--text-primary); }
[data-theme="dark"] .chat-item:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .chat-item.active { background: rgba(255,255,255,.06); }
[data-theme="dark"] .chat-bubble     { background: rgba(255,255,255,.06); color: var(--text-primary); }
[data-theme="dark"] .chat-input-row  { background: var(--card-bg,#161B27); border-color: var(--border-color); }
[data-theme="dark"] .chat-input      { background: rgba(255,255,255,.04); color: var(--text-primary); border-color: var(--border-color); }
[data-theme="dark"] .reports-grid-card { background: var(--card-bg,#161B27); border-color: var(--border-color); }
