/* Dashboard Motéis Gleisson - componentes (design system IP Soluções, tema escuro laranja).
 * Consome os tokens vendorizados em /static/tokens/*.css. Regra de ouro: Container #E11D2E
 * e Diamante #D4A017 SÓ como cor de série (classes .c / .d), nunca como cor de ação. */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg-app);
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-accent); text-decoration: none; }
a:hover { color: var(--action-hover); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2e2e2e; border-radius: 999px; border: 2px solid var(--bg-app); }

/* ícones Lucide: traço 1.75, tamanho padrão 18 (sobreposto por .ic-*) */
[data-lucide], svg.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex-shrink: 0; }
.ic-14 svg { width: 14px; height: 14px; }
.ic-15 svg { width: 15px; height: 15px; }
.ic-16 svg { width: 16px; height: 16px; }
.ic-20 svg { width: 20px; height: 20px; }
.ic-22 svg { width: 22px; height: 22px; }
.ic-28 svg { width: 28px; height: 28px; }
.icon { display: inline-flex; align-items: center; justify-content: center; }

/* ─── Shell ─────────────────────────────────────────────────────────────── */
.app { display: flex; height: 100vh; overflow: hidden; }

.sidebar { display: none; }        /* mobile: escondida (aparece só >= 860px) */
.topbar-desk { display: none; }
.filterbar-mobile { display: flex; }
.topbar-mobile { display: flex; }
.bottom-nav { display: grid; }

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

/* topbar mobile */
.topbar-mobile {
  align-items: center; gap: 12px; padding: 0 16px; height: 56px; flex-shrink: 0;
  border-bottom: 1px solid var(--border); background: rgba(14,14,14,0.9);
  backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40;
}
.topbar-mobile img { height: 22px; border-radius: 5px; display: block; }
.topbar-mobile .tt {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* filtros mobile (chips de período full-width + select) */
.filterbar-mobile {
  flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px;
  flex-shrink: 0; border-bottom: 1px solid var(--border); background: var(--bg-raised);
}
.filterbar-mobile .segrow { display: flex; gap: 6px; }
.filterbar-mobile .seg { flex: 1; text-align: center; padding: 7px 0; }
.filterbar-mobile .motel-select { width: 100%; }

/* conteúdo */
.content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 16px 22px; position: relative; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* bottom nav mobile */
.bottom-nav {
  grid-template-columns: repeat(5, 1fr); flex-shrink: 0;
  background: rgba(14,14,14,0.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; color: var(--text-secondary); border-top: 2px solid transparent;
}
.bottom-nav a span { font-size: 9.5px; font-weight: 500; letter-spacing: 0.02em; }
.bottom-nav a.active { color: var(--brand-orange-300); border-top-color: var(--action); }
.bottom-nav a.active span { font-weight: 600; }

/* ─── Controles ─────────────────────────────────────────────────────────── */
.seg {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  padding: 7px 12px; border-radius: var(--radius-md); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
  display: inline-block; transition: background var(--dur-fast) var(--ease-standard);
}
.seg:hover { background: var(--surface-hover); color: var(--text-primary); }
.seg.active {
  background: var(--action-soft); border-color: var(--brand-orange-600); color: var(--brand-orange-300);
}
.segrow { display: flex; gap: 6px; }

.motel-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  height: 40px; padding: 0 34px 0 12px; font-family: var(--font-body); font-size: 13px;
  color: var(--text-primary); background: var(--surface-input);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M0 0l5 6 5-6z" fill="%23A7A7A7"/></svg>');
  background-repeat: no-repeat; background-position: right 12px center;
}
.motel-select:focus { outline: none; box-shadow: var(--focus-shadow); border-color: var(--brand-orange-600); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 32px; padding: 0 14px; font-family: var(--font-body); font-size: 13px; font-weight: 500;
  border-radius: var(--radius-md); cursor: pointer; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-primary);
  transition: background var(--dur-fast) var(--ease-standard);
}
.btn:hover { background: var(--surface-hover); }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease-standard);
}
.iconbtn:hover { background: var(--surface-hover); color: var(--text-primary); }
.iconbtn.ghost { background: transparent; border-color: transparent; }
.iconbtn.ghost:hover { background: var(--surface-hover); }

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.card-head.baseline { align-items: baseline; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-primary); letter-spacing: -0.01em; }
.card-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.card-body { padding: 16px 18px; }
.card-body.tight { padding: 8px 18px 14px; }
.card-body.list { padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 11px; }

/* spans na grade (mobile = full; desktop sobrescreve) */
.sp4, .sp5, .sp6, .sp7, .sp8, .sp12 { grid-column: 1 / -1; }

/* KPI row */
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Stat (KPI) ────────────────────────────────────────────────────────── */
.stat {
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.stat-head { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.stat-label { font-size: 13px; font-weight: 500; }
.stat-value {
  font-family: var(--font-mono); font-weight: 600; font-size: 30px; line-height: 1.05;
  color: var(--text-primary); letter-spacing: -0.01em; overflow-wrap: anywhere;
}
.stat-value .unit { font-size: 16px; color: var(--text-secondary); margin-left: 2px; }
.stat-delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.stat-delta.up { color: var(--status-positive); }
.stat-delta.down { color: var(--status-negative); }
.stat-delta.flat { color: var(--text-disabled); }

/* ─── Badge ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-md); white-space: nowrap;
}
.badge .bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.positive { background: var(--status-positive-soft); color: var(--status-positive); }
.badge.negative { background: var(--status-negative-soft); color: var(--status-negative); }
.badge.warning  { background: var(--status-warning-soft);  color: var(--status-warning); }
.badge.neutral  { background: var(--surface-active); color: var(--text-secondary); }
.badge.brand    { background: var(--action-soft); color: var(--brand-orange-300); }

/* ─── Séries de marca (Regra de ouro) ───────────────────────────────────── */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.dot.c { background: #E11D2E; }   /* Container */
.dot.d { background: #D4A017; }   /* Diamante */
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw.c { background: #E11D2E; } .sw.d { background: #D4A017; }

/* ─── Barra de participação (share) ─────────────────────────────────────── */
.share { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 2px; }
.share i { height: 100%; display: block; }
.share-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.share-row { display: flex; align-items: center; gap: 10px; }
.share-row .lbl { flex: 1; font-size: 13px; color: var(--text-primary); }
.share-row .val { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-primary); }
.share-row .pct { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); width: 44px; text-align: right; }

/* ─── Barras agrupadas por mês ──────────────────────────────────────────── */
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: end; height: 190px; }
.bars .mo { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.bars .mo i { width: 44%; border-radius: 3px 3px 0 0; display: block; min-height: 2px; }
.bars .mo i.c { background: #E11D2E; } .bars .mo i.d { background: #D4A017; }
.bars-x { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin-top: 6px; }
.bars-x span { font-family: var(--font-mono); font-size: 9.5px; text-align: center; color: var(--text-disabled); }
.legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--text-secondary); align-items: center; }
.legend .li { display: inline-flex; align-items: center; gap: 7px; }
.legend .tot { margin-left: auto; font-family: var(--font-mono); color: var(--text-disabled); }

/* ─── Ranking (linhas) ──────────────────────────────────────────────────── */
.rank { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.rank.bordered .rank-row { padding: 8px 0; border-top: 1px solid var(--border); }
.rank-row .rk { font-family: var(--font-mono); font-size: 11px; color: var(--text-disabled); width: 16px; }
.rank-row .name { flex: 1; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .sub { font-size: 10px; color: var(--text-disabled); }
.rank-row .namebox { width: 118px; flex-shrink: 0; min-width: 0; }
.rank-row .namebox.wide { width: 150px; }
.rank-row .namebox .nm { font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { height: 7px; border-radius: 4px; background: var(--surface-active); overflow: hidden; }
.track.fixed { width: 90px; flex-shrink: 0; }
.track.thick { height: 8px; border-radius: 4px; }
.track > i { display: block; height: 100%; border-radius: inherit; }
.rank-row .track { flex: 1; }
.rank-row .rotas { font-family: var(--font-mono); font-size: 13px; font-weight: 600; width: 48px; text-align: right; color: var(--text-primary); }
.rank-row .delta { font-family: var(--font-mono); font-size: 12px; width: 48px; text-align: right; }
.rank-row .viewn { font-family: var(--font-mono); font-size: 11px; width: 70px; text-align: right; color: var(--text-disabled); }
.delta.up { color: var(--status-positive); } .delta.down { color: var(--status-negative); } .delta.flat { color: var(--text-disabled); }

/* botões de ordenação */
.sortbar { display: flex; align-items: center; gap: 6px; }
.sortbar .lbl { font-size: 11px; color: var(--text-disabled); }
.sortbtn {
  font-family: var(--font-mono); font-size: 11px; padding: 5px 10px; border-radius: var(--radius-md);
  cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
}
.sortbtn.active { background: var(--action-soft); border-color: var(--brand-orange-600); color: var(--brand-orange-300); }

/* ─── Quando (dia da semana + hora) ─────────────────────────────────────── */
.dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 80px; }
.dow .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.dow .col .v { font-family: var(--font-mono); font-size: 9px; color: var(--text-disabled); }
.dow .col.peak .v { color: var(--text-primary); }
.dow .col i { width: 100%; max-width: 30px; border-radius: 4px 4px 2px 2px; background: #2e2e2e; display: block; min-height: 3px; }
.dow .col.peak i { background: var(--action); }
.dow-x { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 6px; }
.dow-x span { font-size: 10px; text-align: center; color: var(--text-disabled); }
.dow-x span.peak { color: var(--text-secondary); font-weight: 700; }
.heat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; margin-top: 14px; }
.heat i { height: 16px; border-radius: 3px; background: var(--action); display: block; }
.heat-x { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; color: var(--text-disabled); margin-top: 5px; }

/* ─── Barras horizontais (canais / cidades / dispositivo) ───────────────── */
.hrow { display: flex; align-items: center; gap: 10px; }
.hrow .lbl { font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .lbl.w130 { width: 130px; } .hrow .lbl.w140 { width: 140px; }
.hrow .track { flex: 1; height: 8px; }
.hrow .track > i { background: var(--action); }
.hrow .track.blue > i { background: var(--status-info); }
.hrow .pct { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-primary); width: 52px; text-align: right; }
.hrow .cityval { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); width: 104px; text-align: right; }
.hrow .cityval b { color: var(--text-primary); }
.note { font-size: 11px; color: var(--text-disabled); line-height: 1.5; margin-top: 2px; }

/* ─── Funil (etapas) ────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 8px; }
.step .line { display: flex; align-items: center; gap: 10px; }
.step .name { width: 92px; font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
.step .track { flex: 1; height: 10px; border-radius: 5px; }
.step .val { font-family: var(--font-mono); font-size: 13px; font-weight: 600; width: 56px; text-align: right; color: var(--text-primary); }
.step .snote { font-size: 11px; color: var(--text-disabled); padding: 4px 0 2px 102px; }

/* ─── Tabelas ───────────────────────────────────────────────────────────── */
.tscroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary); text-align: right; padding: 8px;
}
table.tbl th:first-child { text-align: left; padding-left: 0; }
table.tbl th:last-child { padding-right: 0; }
table.tbl td {
  border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px;
  text-align: right; padding: 9px 8px; color: var(--text-secondary);
}
table.tbl td:first-child { text-align: left; padding-left: 0; font-family: var(--font-body); color: var(--text-primary); }
table.tbl td:last-child { padding-right: 0; }
table.tbl td.strong { font-weight: 600; color: var(--text-primary); }
table.tbl td.pos { color: var(--status-positive); } table.tbl td.neg { color: var(--status-negative); }

/* ─── Insight ───────────────────────────────────────────────────────────── */
.insight {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.insight .chip {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--action-soft); color: var(--brand-orange-300);
}
.insight .body { flex: 1; min-width: 0; }
.insight .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 3px; }
.insight .txt { font-size: 14px; color: var(--text-primary); line-height: 1.5; }
.insight .txt b { font-weight: 600; }

/* ─── Estados vazios ────────────────────────────────────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px; text-align: center; }
.empty .eico {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: var(--radius-lg); background: var(--surface-active); color: var(--text-secondary);
}
.empty .et { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-primary); }
.empty .es { font-size: 13px; color: var(--text-secondary); }
.empty.big { padding: 44px 24px; gap: 16px; grid-column: 1 / -1; }
.empty.big .eico { width: 60px; height: 60px; border-radius: var(--radius-xl); background: var(--action-soft); color: var(--brand-orange-300); }
.empty.big .et { font-size: 20px; letter-spacing: -0.01em; }
.empty.big .es { font-size: 14px; line-height: 1.6; max-width: 440px; }
.utm-box {
  margin-top: 8px; width: 100%; max-width: 440px; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; text-align: left;
}
.utm-box .k { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.utm-box .v { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); line-height: 1.9; }

/* faixa de erro (GA4 fora do ar) */
.errband {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--status-negative-soft); background: rgba(255,107,107,0.08);
  border-radius: var(--radius-md); padding: 12px 14px; font-size: 13px; color: var(--status-negative);
}

/* mapa iframe */
.map-frame { width: 100%; border: 0; display: block; }

/* rodapé */
.foot { grid-column: 1 / -1; text-align: center; font-size: 11px; color: var(--text-disabled); line-height: 1.6; padding: 8px 4px 4px; }

/* suíte destaque (KPI de texto) */
.stat.text .big { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--text-primary); }
.stat.text .small { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.stat.text .cap { display: flex; align-items: center; gap: 8px; }
.stat.text .cap .ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--action-soft); color: var(--brand-orange-300); }
.stat.text .cap .l { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

/* busca de suítes */
.search-wrap { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-input {
  width: 280px; max-width: 100%; height: 40px; padding: 0 12px; font-family: var(--font-body); font-size: 14px;
  color: var(--text-primary); background: var(--surface-input); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.search-input::placeholder { color: var(--text-disabled); }
.search-input:focus { outline: none; box-shadow: var(--focus-shadow); border-color: var(--brand-orange-600); }

/* ─── Skeleton (shimmer ao navegar) ─────────────────────────────────────── */
@keyframes shim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel { display: none; grid-template-columns: 1fr; gap: 16px; }
.skel .cell {
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #1b1b1b 25%, #272727 50%, #1b1b1b 75%);
  background-size: 200% 100%; animation: shim 1.3s linear infinite;
}
body.nav-loading .skel { display: grid; }
body.nav-loading .pages { display: none; }

/* ─── Toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 200; max-width: 340px;
  display: none; align-items: flex-start; gap: 10px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); color: var(--text-primary);
}
.toast.show { display: flex; }
.toast .ic { color: var(--brand-orange-300); }
.toast .tt { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.toast .ts { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ─── Desktop (>= 860px) ────────────────────────────────────────────────── */
@media (min-width: 860px) {
  .topbar-mobile, .filterbar-mobile, .bottom-nav { display: none; }
  .sidebar { display: flex; }
  .topbar-desk { display: flex; }
  .content { padding: 24px; }
  .grid { grid-template-columns: repeat(12, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }

  .sp4 { grid-column: span 4; }
  .sp5 { grid-column: span 5; }
  .sp6 { grid-column: span 6; }
  .sp7 { grid-column: span 7; }
  .sp8 { grid-column: span 8; }

  /* sidebar */
  .sidebar {
    width: var(--sidebar-w); flex-shrink: 0; height: 100%; flex-direction: column;
    padding: 16px; background: var(--bg-raised); border-right: 1px solid var(--border);
  }
  .sidebar .brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 18px; }
  .sidebar .brand img { height: 26px; border-radius: 6px; display: block; }
  .sidebar .brand .bt { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--text-primary); }
  .sidebar nav { display: flex; flex-direction: column; gap: 4px; }
  .sidebar nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md);
    font-size: 14px; color: var(--text-secondary); font-weight: 500;
  }
  .sidebar nav a:hover { background: var(--surface-hover); color: var(--text-primary); }
  .sidebar nav a.active { background: var(--action-soft); color: var(--brand-orange-300); font-weight: 600; }
  .sidebar .foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
  .sidebar .foot .cfg { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); font-size: 14px; color: var(--text-secondary); }
  .sidebar .foot .who { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; margin-top: 8px; border-top: 1px solid var(--border); }
  .sidebar .foot .av { width: 32px; height: 32px; border-radius: 50%; background: var(--action-soft); color: var(--brand-orange-300); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; flex-shrink: 0; }
  .sidebar .foot .nm { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
  .sidebar .foot .rl { font-size: 11px; color: var(--text-secondary); }

  /* topbar desktop */
  .topbar-desk {
    align-items: center; gap: 14px; padding: 0 24px; height: 64px; flex-shrink: 0;
    border-bottom: 1px solid var(--border); background: var(--bg-app);
  }
  .topbar-desk .ttl { min-width: 0; }
  .topbar-desk .ttl .t { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--text-primary); white-space: nowrap; }
  .topbar-desk .ttl .s { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
  .topbar-desk .spacer { flex: 1; }
  .topbar-desk .motel-select { width: 190px; }

  .content .pages > .grid { align-content: start; }
}

@media (min-width: 860px) {
  .insight { flex-direction: row; align-items: center; }
}
