/* Orellana · antes del Sí — Modo oscuro «Forest Floor»
 * Cero CDN, cero fuentes externas, cero rojo.
 */

:root {
  --bg-floor: #0B0A07;
  --bg-surface: #14120D;
  --bg-elevated: #1C1913;
  --bg-hover: #25221A;
  --moss-dark: #3B4930;
  --moss: #556746;
  --moss-light: #A8B59A;
  --cream: #F6F2EB;
  --cream-muted: #C9C3B8;
  --cream-dim: #8E897E;
  --teal: #5EEAD4;
  --ochre: #E0A95B;
  --ochre-bg: rgba(224, 169, 91, 0.14);
  --ochre-border: rgba(224, 169, 91, 0.42);
  --moss-bg: rgba(85, 103, 70, 0.22);
  --moss-border: rgba(168, 181, 154, 0.28);
  --teal-bg: rgba(94, 234, 212, 0.12);
  --teal-border: rgba(94, 234, 212, 0.36);
  --border-subtle: rgba(168, 181, 154, 0.16);
  --border-strong: rgba(168, 181, 154, 0.32);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sidebar-w: 248px;
  --topbar-h: 48px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-floor);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

button, input, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Barra superior fija */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: rgba(11, 10, 7, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 100;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--cream);
  white-space: nowrap;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  flex-shrink: 0;
}

.rotulo-pill {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--moss-light);
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-switch {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 2px;
}

.route-btn {
  border: none;
  background: transparent;
  color: var(--cream-dim);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.route-btn.active {
  background: var(--moss);
  color: var(--cream);
  font-weight: 600;
}

.step-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--moss-light);
  white-space: nowrap;
}

/* Layout principal */
.app-shell {
  display: flex;
  min-height: 100vh;
  padding-top: var(--topbar-h);
}

/* Barra lateral fija (desktop) */
.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 16px 12px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 80;
}

.workspace-badge {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.workspace-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--cream);
}

.workspace-sub {
  font-size: 12px;
  color: var(--moss-light);
  margin-top: 2px;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  padding: 0 10px 6px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--cream-muted);
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--cream);
}

.nav-item.active {
  background: var(--moss-bg);
  border-color: var(--moss-border);
  color: var(--cream);
  font-weight: 600;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ochre-bg);
  border: 1px solid var(--ochre-border);
  color: var(--ochre);
}

.screen-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 4px;
}

.screen-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 4px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--cream-muted);
  text-align: center;
}

.screen-pill:hover {
  border-color: var(--moss-light);
  color: var(--cream);
}

.screen-pill.active {
  background: var(--moss);
  border-color: var(--moss-light);
  color: var(--cream);
  font-weight: 700;
}

/* Contenido principal */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  padding: 28px 32px 110px;
  max-width: calc(1040px + var(--sidebar-w));
}

.view-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Encabezados de pantalla */
.view-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.view-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--moss-light);
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.view-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.view-subtitle {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--cream-muted);
}

/* Avatar + Voz de Orellana */
.orellana-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--moss-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.orellana-banner.estado-firme {
  border-color: var(--ochre-border);
  background: linear-gradient(135deg, rgba(224, 169, 91, 0.07), var(--bg-surface) 60%);
}

.orellana-banner.estado-atenta {
  border-color: var(--teal-border);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.06), var(--bg-surface) 60%);
}

.orellana-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #141911;
  border: 1px solid var(--moss-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.orellana-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
}

.orellana-avatar.full-hero {
  width: 144px;
  height: 192px;
  border-radius: 22px;
}

.orellana-avatar.full-banner {
  width: 108px;
  height: 144px;
  border-radius: 18px;
}

.orellana-avatar.full-hero img,
.orellana-avatar.full-banner img {
  object-fit: contain;
  object-position: 50% 50%;
}

.orellana-avatar svg {
  width: 82%;
  height: 82%;
}

.orellana-voice-meta {
  font-size: 11.5px;
  color: var(--moss-light);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.orellana-quote {
  margin: 0;
  font-size: 15.5px;
  color: var(--cream);
  line-height: 1.45;
}

/* Etiquetas de estado: SIEMPRE texto + icono + color */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-cuadra {
  background: var(--moss-bg);
  border: 1px solid var(--moss-border);
  color: var(--moss-light);
}

.status-revisar {
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  color: var(--teal);
}

.status-retenido {
  background: var(--ochre-bg);
  border: 1px solid var(--ochre-border);
  color: var(--ochre);
}

/* Chips «De dónde salió» */
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--moss-light);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.source-chip:hover {
  border-color: var(--teal);
  color: var(--cream);
  background: var(--bg-hover);
}

.source-chip .signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* Tarjetas */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.card-cream {
  background: var(--cream);
  color: #1A1814;
  border: 1px solid #D8D1C4;
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--moss);
  border-color: var(--moss-light);
  color: var(--cream);
}

.btn-primary:hover {
  background: #647953;
}

.btn-cream {
  background: var(--cream);
  color: #14120D;
  border-color: var(--cream);
}

.btn-cream:hover {
  background: #EAE4D9;
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--cream);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--moss-light);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--cream-muted);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--cream);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Botón fijo «Siguiente paso» */
.next-step-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: #14120D;
  border: 2px solid var(--moss-light);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s, background 0.15s;
}

.next-step-fab:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
}

.next-step-hint {
  font-weight: 500;
  font-size: 12px;
  color: #4A5640;
}

/* Portada V0 */
.hero-v0 {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  padding: 36px 28px;
  background: radial-gradient(circle at top, rgba(85, 103, 70, 0.22), var(--bg-surface) 65%);
  border: 1px solid var(--moss-border);
  border-radius: var(--radius-lg);
}

.hero-v0 .orellana-avatar {
  margin: 0 auto 18px;
}

.hero-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 14px auto 0;
  max-width: 580px;
  font-size: 16.5px;
  color: var(--cream-muted);
  line-height: 1.55;
}

.hero-meta {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--moss-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
}

.hero-stat-label {
  font-size: 11.5px;
  color: var(--moss-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-stat-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  margin-top: 3px;
}

/* Bandeja V4a */
.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inbox-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.15s, background 0.15s;
}

.inbox-card.clickable {
  cursor: pointer;
}

.inbox-card.clickable:hover {
  border-color: var(--moss-light);
  background: var(--bg-elevated);
}

.inbox-card.priority {
  border-color: var(--ochre-border);
  background: linear-gradient(90deg, rgba(224, 169, 91, 0.08), var(--bg-surface) 45%);
}

.agent-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--moss-light);
}

.inbox-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--cream);
  margin: 4px 0 2px;
}

.inbox-meta {
  font-size: 13px;
  color: var(--cream-muted);
}

.mono {
  font-family: var(--font-mono);
}

/* Expediente V4b — Los 5 bloques */
.expediente-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exp-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.exp-block.block-nocuadra {
  border-color: var(--ochre-border);
}

.exp-block.block-consta {
  border-color: var(--moss-border);
}

.exp-block.block-decide {
  border-color: var(--teal-border);
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.06), var(--bg-surface) 60%);
}

.exp-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.exp-block-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--moss-light);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.exp-item.highlighted {
  border-color: var(--teal-border);
  background: rgba(94, 234, 212, 0.06);
}

.exp-item-text {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 14px;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.signal-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ochre);
  margin-right: 6px;
}

/* Vista lado a lado: Certificado vs Contrato (S1-5) */
.compare-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #12100C;
  border: 1px solid var(--ochre-border);
}

.compare-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.doc-sheet {
  background: var(--cream);
  color: #1B1914;
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid #CFC8B8;
  min-width: 0;
  overflow-x: auto;
  overflow-wrap: anywhere;
}

.doc-sheet-head {
  background: #2C3539;
  color: var(--cream);
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.doc-sheet-head.contract-head {
  background: var(--moss-dark);
}

.doc-sheet-head .doc-diff {
  background: #E0A95B;
  color: #14120D;
  border-bottom: none;
  padding: 1px 5px;
}

.doc-sheet-head .doc-ok {
  background: #A8B59A;
  color: #14120D;
  border-bottom: none;
  padding: 1px 5px;
}

.doc-diff {
  background: rgba(224, 169, 91, 0.34);
  border-bottom: 2px solid #9B6B22;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
  color: #1B1914;
}

.doc-ok {
  background: rgba(85, 103, 70, 0.2);
  border-bottom: 2px solid #556746;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
  color: #1B1914;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 12.5px;
}

.doc-table th, .doc-table td {
  border: 1px solid #D3CCB9;
  padding: 6px 8px;
  text-align: left;
}

.doc-table th {
  background: #ECE6DA;
  font-weight: 600;
  width: 40%;
}

/* Tablas oscuras */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th, .data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--moss-light);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.num {
  text-align: right;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Chat / Entrevista / Hilos WhatsApp */
.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--cream);
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: var(--moss-dark);
  border: 1px solid var(--moss-border);
  color: var(--cream);
}

.chat-sender {
  font-size: 11.5px;
  color: var(--moss-light);
  margin-bottom: 3px;
  font-weight: 600;
}

.chat-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--cream-dim);
  margin-top: 4px;
  text-align: right;
}

/* Grid de tarjetas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Pestañas (V8) */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.tab-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--cream-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
}

.tab-btn.active {
  background: var(--moss);
  border-color: var(--moss-light);
  color: var(--cream);
}

/* Guion de llamada V4c */
.call-script-box {
  background: var(--bg-elevated);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--cream);
  margin: 12px 0;
}

.summary-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--moss-bg);
  border: 1px solid var(--moss-light);
  margin-top: 14px;
}

/* Modal de evidencia («De dónde salió») */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 3, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 780px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--moss-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Barra inferior móvil */
.mobile-nav {
  display: none;
}

/* Responsive (móvil 390px y tablets) */
@media (max-width: 900px) {
  .compare-grid,
  .grid-2,
  .grid-3,
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 16px 12px 136px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .view-container,
  .expediente-grid,
  .exp-block,
  .card,
  .compare-panel {
    max-width: 100%;
    min-width: 0;
  }

  .source-chip {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }

  .topbar {
    padding: 0 10px;
    gap: 6px;
  }

  .rotulo-pill {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  .route-btn {
    font-size: 10.5px;
    padding: 3px 7px;
  }

  .step-counter {
    display: none;
  }

  .brand-mark span:last-child {
    display: none;
  }

  .hero-v0 {
    padding: 24px 16px;
    margin-top: 8px;
  }

  .hero-title {
    font-size: 24px;
  }

  .view-title {
    font-size: 20px;
  }

  .orellana-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .orellana-avatar.full-hero {
    width: 120px;
    height: 160px;
  }

  .orellana-avatar.full-banner {
    width: 90px;
    height: 120px;
  }

  .next-step-fab {
    right: 12px;
    bottom: 66px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .next-step-hint {
    display: none;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: rgba(20, 18, 13, 0.98);
    border-top: 1px solid var(--border-strong);
    z-index: 98;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
  }

  .mobile-nav-btn {
    background: transparent;
    border: none;
    color: var(--cream-dim);
    font-size: 10.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    border-radius: 8px;
  }

  .mobile-nav-btn.active {
    color: var(--teal);
    font-weight: 700;
  }
}
