/* ============================================================
   ModularReports · Página pública do relatório
   Linguagem = componentes reais de src/components/reports/ do
   modulareasy-site (ReportLayout, ReportHero, KpiGrid, SimpleFunnel,
   DataTable, InsightsGrid, ReportSignature). Portado fielmente.
   Cor é temável por agência via --r-primary/--r-secondary.
   ============================================================ */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/rubik-400.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/rubik-500.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/rubik-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
}

/* Vars TAMBÉM em :root: elementos position:fixed (fab, rail, scrim) ficam fora
   do .report e precisam resolver os mesmos tokens (tema do cliente injeta aqui). */
:root {
  --r-primary: #C8102E;
  --r-secondary: #FF6D01;
  --r-font-body: "Rubik", system-ui, sans-serif;
  --r-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

.report {
  --r-primary: #C8102E;
  --r-secondary: #FF6D01;
  --r-tertiary: #34A853;
  --r-bg: #0E0E0F;
  --r-bg-card: #19191B;
  --r-bg-soft: #1A1A1C;
  --r-border: #2A2A2D;
  --r-text: #F4F4F5;
  --r-text-muted: #9CA3AF;
  --r-text-dim: #6B7280;
  --r-font-heading: "Rubik", system-ui, sans-serif;
  --r-font-body: "Rubik", system-ui, sans-serif;
  --r-font-mono: "JetBrains Mono", ui-monospace, monospace;

  background: var(--r-bg);
  background-image:
    radial-gradient(at 0% 0%, color-mix(in srgb, var(--r-primary) 8%, transparent) 0%, transparent 50%),
    radial-gradient(at 100% 100%, color-mix(in srgb, var(--r-secondary) 5%, transparent) 0%, transparent 50%);
  color: var(--r-text);
  font-family: var(--r-font-body);
  padding: 60px 32px 140px;
  min-height: 100vh;
  position: relative;
}
.report * { box-sizing: border-box; }
.report img { max-width: 100%; display: block; }
.report ::selection { background: color-mix(in srgb, var(--r-primary) 40%, transparent); }

@media (max-width: 600px) {
  .report { padding: 32px 16px 100px; }
}

/* ---------- Hero ---------- */
.r-hero {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 80px;
  border-bottom: 1px solid var(--r-border);
}
.r-hero-eyebrow {
  display: inline-block;
  color: var(--r-primary);
  font-family: var(--r-font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.r-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  font-family: var(--r-font-heading);
}
.r-hero-title em { font-style: normal; color: var(--r-primary); }
.r-hero-title strong { color: var(--r-secondary); font-weight: 800; }
.r-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--r-text-muted);
  max-width: 620px;
  margin: 0 0 24px;
}
.r-hero-sub strong { color: var(--r-text); font-weight: 600; }
.r-hero-meta {
  display: flex;
  gap: 24px;
  font-family: var(--r-font-mono);
  font-size: 12px;
  color: var(--r-text-dim);
  flex-wrap: wrap;
}
.r-hero-aside { display: flex; justify-content: center; align-items: flex-start; }
.r-hero-logo { max-width: 200px; width: 100%; height: auto; }
.r-hero-logo-chip {
  width: 84px; height: 84px; border-radius: 16px;
  background: color-mix(in srgb, var(--r-primary) 14%, var(--r-bg-card));
  border: 1px solid color-mix(in srgb, var(--r-primary) 35%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--r-font-heading); font-weight: 800; font-size: 22px;
  color: var(--r-primary); margin-left: auto; flex-shrink: 0;
}

@media (max-width: 1100px) {
  .r-hero { grid-template-columns: 1fr; }
  .r-hero-aside { display: none; }
}

/* ---------- KPI grid ---------- */
.r-kpi-grid {
  max-width: 1200px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.r-kpi {
  background: var(--r-bg-card);
  border: 1px solid var(--r-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r-kpi-label { font-family: var(--r-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--r-text-dim); }
.r-kpi-value { font-size: clamp(18px, 2vw, 26px); font-weight: 700; line-height: 1; color: var(--r-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-kpi-foot { font-size: 12px; color: var(--r-text-muted); }

@media (max-width: 1100px) { .r-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .r-kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .r-kpi { padding: 16px; }
  .r-kpi-value { font-size: 20px; }
}

/* ---------- Block generic ---------- */
.r-block { max-width: 1200px; margin: 100px auto; }
.r-block-head { margin-bottom: 40px; }
.r-block-eyebrow {
  display: inline-block; color: var(--r-primary);
  font-family: var(--r-font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.r-block-eyebrow.accent { color: var(--r-secondary); }
.r-block-title {
  font-size: clamp(26px, 3.5vw, 40px); line-height: 1.1; font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 16px; color: var(--r-text);
  font-family: var(--r-font-heading);
}
.r-block-sub { font-size: 17px; line-height: 1.6; color: var(--r-text-muted); max-width: 820px; margin: 0 0 16px; }
.r-block-sub strong { color: var(--r-text); font-weight: 600; }

@media (max-width: 1100px) { .r-block { margin: 60px auto; } }

/* ---------- Funil (destaque) ---------- */
.r-highlight {
  background: linear-gradient(180deg, color-mix(in srgb, var(--r-primary) 6%, transparent), transparent);
  border: 1px solid color-mix(in srgb, var(--r-primary) 22%, transparent);
  border-radius: 24px;
  padding: 60px 48px;
}
.r-funnel { display: grid; gap: 8px; align-items: stretch; margin: 24px 0 32px; grid-auto-flow: column; }
.r-funnel-cols-4 { grid-auto-flow: unset; }
@media (min-width: 1101px) { .r-funnel-cols-4 { grid-template-columns: repeat(4, 1fr); } }
.r-funnel-step {
  background: var(--r-bg-card); border: 1px solid var(--r-border); border-left: 3px solid var(--r-primary);
  border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; position: relative; min-width: 150px;
}
.r-funnel-num { position: absolute; top: 8px; right: 12px; font-family: var(--r-font-mono); font-size: 11px; color: var(--r-text-dim); }
.r-funnel-stat { font-size: 26px; font-weight: 800; color: var(--r-text); line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.r-funnel-label { font-size: 12px; line-height: 1.4; color: var(--r-text-muted); }
.r-funnel-sub { font-family: var(--r-font-mono); font-size: 11px; color: var(--r-text-dim); margin-top: auto; }
.r-funnel-arrow { color: var(--r-text-dim); align-self: center; font-size: 20px; font-weight: 300; }

.r-funnel-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 8px; padding: 24px 0; border-top: 1px solid var(--r-border); border-bottom: 1px solid var(--r-border);
}
.r-funnel-summary > div { display: flex; flex-direction: column; gap: 4px; }
.r-funnel-summary span { font-family: var(--r-font-mono); font-size: 11px; color: var(--r-text-dim); text-transform: uppercase; }
.r-funnel-summary strong { font-size: 24px; color: var(--r-text); font-variant-numeric: tabular-nums; }
.r-funnel-summary em { font-style: normal; font-size: 11px; color: var(--r-text-muted); }

@media (max-width: 1100px) {
  .r-highlight { padding: 32px 24px; }
  .r-funnel { grid-auto-flow: row; }
  .r-funnel-arrow { display: none; }
  .r-funnel-summary { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .r-highlight { padding: 28px 18px; border-radius: 16px; }
  .r-funnel-step { padding: 16px; }
  .r-funnel-stat { font-size: 22px; }
}

/* ---------- Tabela ---------- */
.r-table-wrap {
  margin-top: 16px; overflow-x: auto; border-radius: 12px;
  background: var(--r-bg-card); -webkit-overflow-scrolling: touch;
}
.r-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.r-table th, .r-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--r-border); }
.r-table th {
  background: var(--r-bg-soft); font-family: var(--r-font-mono); font-size: 11px;
  text-transform: uppercase; color: var(--r-text-dim); letter-spacing: 0.05em; font-weight: 500;
}
.r-table tr:last-child td { border-bottom: none; }
.r-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.r-pill { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Criativos / anúncios ---------- */
.r-creatives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.r-creative-card { background: var(--r-bg-card); border: 1px solid var(--r-border); border-radius: 14px; overflow: hidden; }
.r-creative-thumb {
  aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--r-primary) 22%, var(--r-bg-soft)), color-mix(in srgb, var(--r-secondary) 18%, var(--r-bg-soft)));
  color: color-mix(in srgb, var(--r-text) 55%, transparent);
}
.r-creative-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.r-creative-body .name { font-size: 13px; font-weight: 600; color: var(--r-text); }
.r-creative-body .stat { font-family: var(--r-font-mono); font-size: 11px; color: var(--r-text-dim); }
@media (max-width: 700px) { .r-creatives { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .r-creatives { grid-template-columns: 1fr; } }

/* ---------- Insights ---------- */
.r-insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.r-insight-card {
  background: var(--r-bg-card); border: 1px solid var(--r-border); border-left: 3px solid var(--r-secondary);
  border-radius: 14px; padding: 24px;
}
.r-insight-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--r-text); font-family: var(--r-font-heading); }
.r-insight-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--r-text-muted); }
@media (max-width: 1100px) { .r-insight-grid { grid-template-columns: 1fr; } }

/* ---------- Assinatura ---------- */
.r-signature {
  max-width: 1200px; margin: 80px auto 0; padding: 32px 0; border-top: 1px solid var(--r-border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.r-signature > div { display: flex; flex-direction: column; gap: 4px; }
.r-signature span { font-family: var(--r-font-mono); font-size: 11px; color: var(--r-text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.r-signature strong { font-size: 22px; color: var(--r-text); font-weight: 700; }
.r-sig-meta { text-align: right; }
.r-watermark {
  max-width: 1200px; margin: 16px auto 0; text-align: center; font-family: var(--r-font-mono);
  font-size: 10px; color: var(--r-text-dim); opacity: .5; letter-spacing: 0.05em;
}
@media (max-width: 600px) {
  .r-signature { flex-direction: column; align-items: flex-start; }
  .r-sig-meta { text-align: left; }
}

/* ---------- Topbar do relatório (inspirado no cluster de facilitação do Miro) ---------- */
.r-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 65;
  height: 52px; padding: 0 16px;
  display: flex; align-items: center; gap: 12px;
  background: rgb(14 14 15 / 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid #2A2A2D;
  font-family: var(--r-font-body); color: #F4F4F5;
  box-sizing: border-box;
}
.r-topbar * { box-sizing: border-box; }
.r-tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.r-tb-logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--r-primary);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.r-tb-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.r-tb-title b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-tb-title span { font-size: 10.5px; color: #9CA3AF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-tb-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.r-tb-people { display: flex; align-items: center; margin-right: 2px; }
.r-tb-people .a {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #0E0E0F;
  color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.r-tb-people .a + .a { margin-left: -8px; }
.r-tb-btn {
  height: 34px; padding: 0 12px; border-radius: 8px;
  background: transparent; border: 1px solid #2A2A2D; color: #E7E5E4;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--r-font-body); font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.r-tb-btn:hover { background: #1c1c1f; }
.r-tb-btn.primary { background: var(--r-primary); border-color: var(--r-primary); color: #fff; font-weight: 600; }
.r-tb-btn.primary:hover { filter: brightness(1.12); }
.r-tb-btn .count { background: rgb(255 255 255 / 0.18); border-radius: 999px; padding: 0 7px; font-size: 10.5px; line-height: 17px; }
.r-tb-user {
  width: 30px; height: 30px; border-radius: 50%; background: var(--r-primary); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  margin-left: 2px;
}
@media (max-width: 900px) {
  .r-tb-btn .lbl { display: none; }
  .r-tb-btn { padding: 0 10px; }
  .r-tb-people { display: none; }
}

/* ---------- Modo apresentação ---------- */
body.presenting .r-topbar,
body.presenting .r-comment-pin,
body.presenting .mock-map-fab { display: none !important; }
.r-presenter {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(80px);
  z-index: 80; height: 46px; padding: 0 10px; border-radius: 999px;
  background: rgb(20 20 22 / 0.92); backdrop-filter: blur(8px);
  border: 1px solid #2A2A2D; color: #E7E5E4;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--r-font-body); font-size: 12.5px;
  opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.5);
}
body.presenting .r-presenter { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.r-presenter button {
  height: 34px; min-width: 34px; padding: 0 8px; border-radius: 999px;
  background: transparent; border: none; color: #E7E5E4; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-size: 12.5px;
}
.r-presenter button:hover { background: #2A2A2D; }
.r-presenter .pos { font-family: var(--r-font-mono); font-size: 11px; color: #9CA3AF; padding: 0 6px; }
.r-presenter .sep { width: 1px; height: 20px; background: #2A2A2D; margin: 0 4px; }

.r-comment-pin {
  position: absolute; top: -10px; right: -10px; z-index: 5;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--r-secondary); color: #10100f;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--r-font-mono); font-size: 11px; font-weight: 700;
  border: 2px solid var(--r-bg); cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
  transition: transform .15s ease;
}
.r-comment-pin:hover { transform: scale(1.12); }
.r-anchor { position: relative; transition: outline-color .15s ease, background-color .15s ease; outline: 2px solid transparent; outline-offset: 10px; }
.r-anchor.has-comment.pin-active {
  outline-color: color-mix(in srgb, var(--r-secondary) 70%, transparent);
  background: color-mix(in srgb, var(--r-secondary) 5%, transparent);
}

/* Drawer estilo carrinho: fechado por padrão, desliza sobre a página com scrim */
.r-comment-scrim {
  position: fixed; inset: 0; background: rgb(0 0 0 / 0.45);
  opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 60;
}
.r-comment-scrim.show { opacity: 1; pointer-events: auto; }

/* Painel claro estilo Google Docs — contraste proposital contra o relatório escuro */
.r-comment-rail {
  position: fixed; top: 0; right: 0; bottom: 0; width: 336px;
  background: #ffffff; border-left: 1px solid #e7e5e4;
  display: flex; flex-direction: column; z-index: 70;
  transform: translateX(100%); transition: transform .22s ease;
  font-family: "Rubik", system-ui, sans-serif; color: #1c1917;
  box-shadow: -12px 0 32px rgb(0 0 0 / 0.28);
}
.r-comment-rail.open { transform: translateX(0); }
.r-comment-rail, .r-comment-rail * { box-sizing: border-box; }
.r-comment-rail-head {
  padding: 18px 18px 14px; border-bottom: 1px solid #e7e5e4;
  display: flex; align-items: center; justify-content: space-between;
}
.r-comment-rail-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: #1c1917; }
.r-comment-rail-close {
  width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent; color: #78716c;
  display: flex; align-items: center; justify-content: center;
}
.r-comment-rail-close:hover { background: #f5f5f4; }
/* ---------- Gate de comentário (deslogado) ---------- */
.r-comment-gate { margin: 14px 14px 4px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 16px 14px; }
.r-comment-gate-icon { width: 30px; height: 30px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.r-comment-gate-title { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: #1c1917; line-height: 1.4; }
.r-comment-gate input[type="email"] { width: 100%; height: 34px; border: 1px solid #d6d3d1; border-radius: 6px; padding: 0 10px; font-size: 12px; color: #44403c; background: #fff; font-family: "Rubik", system-ui, sans-serif; box-sizing: border-box; }
.r-comment-gate-btn { width: 100%; margin-top: 8px; height: 34px; border: none; border-radius: 6px; background: var(--r-primary); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: "Rubik", system-ui, sans-serif; }
.r-comment-gate-btn:hover { filter: brightness(1.08); }
.r-comment-gate-hint { margin: 8px 0 0; font-size: 10.5px; color: #78716c; }
.r-comment-gate-link { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--r-primary); text-decoration: underline; background: none; border: none; padding: 0; cursor: pointer; }
.r-comment-list-label { padding: 14px 14px 2px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #a8a29e; font-weight: 700; }

.r-comment-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.r-comment {
  background: #ffffff; border: 1px solid #e7e5e4; border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 1px 2px rgb(15 24 37 / 0.05);
  cursor: pointer;
}
.r-comment:hover { border-color: var(--r-primary); }
.r-comment.resolved { opacity: .6; }
.r-comment-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.r-comment-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--r-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; flex-shrink: 0;
}
.r-comment-name { font-size: 12.5px; font-weight: 600; color: #1c1917; }
.r-comment-time { font-size: 10.5px; color: #a8a29e; margin-left: auto; font-weight: 500; }
.r-comment-quote {
  font-size: 11.5px; color: #78716c; background: #f5f5f4; border-left: 2px solid var(--r-secondary);
  padding: 5px 8px; margin: 0 0 8px; font-style: italic; border-radius: 0 4px 4px 0;
}
.r-comment-body { font-size: 13px; line-height: 1.5; color: #292524; margin: 0 0 10px; }
.r-comment-actions { display: flex; gap: 14px; }
.r-comment-actions button {
  background: none; border: none; color: var(--r-primary); font-size: 11.5px; font-weight: 600;
  font-family: var(--r-font-body); padding: 0; cursor: pointer;
}
.r-comment-actions button:hover { text-decoration: underline; }
.r-comment-rail-new { padding: 14px; border-top: 1px solid #e7e5e4; background: #fafaf9; }
.r-comment-rail-new textarea {
  width: 100%; min-height: 60px; resize: vertical; background: #ffffff; border: 1px solid #d6d3d1;
  border-radius: 8px; color: #1c1917; font-family: var(--r-font-body); font-size: 12.5px; padding: 8px 10px;
}
.r-comment-rail-new textarea::placeholder { color: #a8a29e; }
.r-comment-rail-new .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.r-comment-rail-new .hint { font-size: 10.5px; color: #a8a29e; }
.r-comment-rail-new button.send {
  background: var(--r-primary); color: #fff; border: none; border-radius: 6px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer;
}

.r-private-note {
  max-width: 1200px; margin: 40px auto 0; text-align: center;
  font-family: var(--r-font-mono); font-size: 10.5px; color: var(--r-text-dim); letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .r-comment-rail { width: 100%; top: auto; height: 72vh; border-left: none; border-top: 1px solid #e7e5e4; border-radius: 16px 16px 0 0; transform: translateY(100%); }
  .r-comment-rail.open { transform: translateY(0); }
}
/* Drawer aberto esconde o FAB do mapa do mockup (o X ou o scrim fecham) */
body:has(.r-comment-rail.open) .mock-map-fab { display: none !important; }
