/* ============================================================
   Atlas · The RouteBook — Mockup v2
   Tokens y componentes extraídos de la guía de estilo del
   prototipo original (build_proto.py / index.html v1).
   ============================================================ */

:root {
  /* Fondos y superficies */
  --bg-canvas: #E4E9EF;
  --bg-screen: #EDF1F6;
  --surface-subtle: #F0F3F7;
  --surface-light: #F7F9FB;
  --glass-card: rgba(255, 255, 255, .8);
  --glass-strong: rgba(255, 255, 255, .92);
  --glass-soft: rgba(255, 255, 255, .75);
  --glass-badge: rgba(255, 255, 255, .7);

  /* Verde de marca */
  --green-deep: #1E5C48;
  --green-mid: #2E7D63;
  --green-hover: #215A48;
  --green-ok: #1F7A5C;
  --green-accent: #4FA987;
  --green-chip-bg: #DCF2E6;
  --green-on-dark: #EAF6F0;

  /* Texto */
  --text-main: #141A21;
  --text-strong: #0F161C;
  --text-secondary: #374151;
  --text-button: #3A4550;
  --text-sidebar: #5A6572;
  --text-chip: #5B6472;
  --text-muted: #6B7583;
  --text-tertiary: #7A8593;
  --text-placeholder: #8A94A1;
  --text-faint: #9AA3AF;

  /* Bordes */
  --border-soft: rgba(20, 26, 33, .07);
  --border-card: rgba(20, 26, 33, .09);
  --border-strong: rgba(20, 26, 33, .12);

  /* Chips semánticos */
  --chip-ok-text: #1F7A5C;      --chip-ok-bg: #DCF2E6;
  --chip-warn-text: #8A6A1F;    --chip-warn-bg: #FBF0D5;
  --chip-crit-text: #B4543A;    --chip-crit-bg: #FDE8DE;
  --chip-info-text: #2C6FA8;    --chip-info-bg: #DFEDFB;
  --chip-neutral-text: #5B6472; --chip-neutral-bg: #EEF0F3;

  /* Acentos */
  --accent-orange: #E08A5B;
  --accent-amber: #D69E4A;
  --accent-red: #C85344;

  /* Sombras */
  --shadow-min: 0 2px 8px rgba(20, 26, 33, .05);
  --shadow-item: 0 2px 10px rgba(20, 26, 33, .06);
  --shadow-card: 0 5px 22px rgba(20, 26, 33, .06);
  --shadow-modal: 0 6px 26px rgba(20, 26, 33, .07);
  --shadow-logo: 0 4px 12px rgba(30, 92, 72, .28);
  --shadow-btn: 0 3px 10px rgba(32, 98, 77, .22);

  /* Radios */
  --r-card: 18px;
  --r-panel: 14px;
  --r-item: 12px;
  --r-input: 11px;
  --r-btn: 10px;
  --r-pill: 999px;

  /* Tipografía */
  --font-ui: 'Manrope', system-ui, sans-serif;
  --font-brand: 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-ui);
  color: var(--text-main);
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-hover); }

/* ---------- Layout general ---------- */

.app {
  display: flex;
  min-height: 100vh;
  position: relative;
  font-variant-numeric: tabular-nums;
}

/* Blobs decorativos de fondo */
.blobs { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(32px); }
.blob.verde     { width: 420px; height: 420px; top: -80px;  left: 30%;  background: radial-gradient(circle, rgba(126,214,178,.5),  rgba(126,214,178,0) 66%); }
.blob.azul      { width: 380px; height: 380px; top: 30%;    right: -60px; background: radial-gradient(circle, rgba(157,190,246,.44), rgba(157,190,246,0) 66%); }
.blob.melocoton { width: 360px; height: 360px; bottom: -60px; left: 12%; background: radial-gradient(circle, rgba(252,205,178,.46), rgba(252,205,178,0) 66%); }
.blob.lila      { width: 320px; height: 320px; bottom: 18%; right: 24%; background: radial-gradient(circle, rgba(197,186,246,.36), rgba(197,186,246,0) 66%); }

/* ---------- Sidebar ---------- */

.sidebar {
  width: 236px;
  flex: none;
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 2;
}

.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.sidebar-logo {
  width: 34px; height: 34px; border-radius: var(--r-input);
  background: linear-gradient(145deg, var(--green-mid), var(--green-deep));
  box-shadow: var(--shadow-logo);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
}
.sidebar-brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.sidebar-brand-sub { font-size: 10.5px; font-weight: 500; color: var(--text-tertiary); letter-spacing: .04em; }

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  height: 40px; padding: 0 12px; border-radius: var(--r-item);
  display: flex; align-items: center; gap: 11px;
  font-size: 13.5px; font-weight: 500; color: var(--text-sidebar);
  cursor: pointer; border: none; background: transparent;
  font-family: var(--font-ui); text-align: left; width: 100%;
}
.nav-item svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.3; fill: none; flex: none; }
.nav-item .nav-label { flex: 1; }
.nav-item:hover { background: rgba(255, 255, 255, .5); }
.nav-item.active {
  background: var(--glass-strong);
  box-shadow: var(--shadow-item);
  color: var(--green-deep);
  font-weight: 600;
}
.nav-badge {
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
  background: var(--glass-badge); border-radius: var(--r-pill); padding: 2px 8px;
}

.sidebar-footer { margin-top: auto; }
.user-card {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 16px; padding: 12px 12px 10px;
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, #9DBEF6, #7E9BE0);
  color: #fff; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 12.5px; font-weight: 700; }
.user-role { font-size: 11px; color: var(--text-tertiary); }

/* ---------- Contenido ---------- */

.main { flex: 1; position: relative; z-index: 1; min-width: 0; }
.screen { display: none; padding: 26px 30px 40px; }
.screen.active { display: block; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px 24px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-head > div:first-child { flex: 1 1 420px; min-width: 0; }
.page-title { font-size: 30px; font-weight: 700; letter-spacing: -.025em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-sub { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; }
.page-actions { display: flex; gap: 10px; flex: none; flex-wrap: wrap; align-items: center; }

/* ---------- Componentes ---------- */

.card {
  background: var(--glass-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.card-head { padding: 18px 20px 4px; }
.card-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.card-sub { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }
.card-body { padding: 14px 20px 18px; }

.btn {
  font-family: var(--font-ui);
  font-size: 12.5px; font-weight: 600;
  border-radius: var(--r-btn); padding: 8px 14px;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-primary { background: var(--green-deep); color: var(--green-on-dark); border: none; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--green-hover); }
.btn-secondary { background: var(--glass-strong); color: #2E4034; border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: #fff; }

.chip {
  font-size: 11.5px; font-weight: 600;
  border-radius: var(--r-pill); padding: 3px 10px;
  white-space: nowrap; display: inline-block;
}
.chip-ok      { color: var(--chip-ok-text);      background: var(--chip-ok-bg); }
.chip-warn    { color: var(--chip-warn-text);    background: var(--chip-warn-bg); }
.chip-crit    { color: var(--chip-crit-text);    background: var(--chip-crit-bg); }
.chip-info    { color: var(--chip-info-text);    background: var(--chip-info-bg); }
.chip-neutral { color: var(--chip-neutral-text); background: var(--chip-neutral-bg); }

.input {
  font-family: var(--font-ui); font-size: 12.5px;
  border: 1px solid var(--border-strong); border-radius: var(--r-input);
  padding: 8px 12px; background: var(--glass-strong); color: var(--text-main);
  outline: none;
}
.input:focus { border-color: var(--green-mid); }
.input::placeholder { color: var(--text-placeholder); }

/* Tabla dentro de card */
.table-head {
  display: grid; padding: 0 20px 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #8A94A2;
}
.table-row {
  display: grid; align-items: center; padding: 15px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px; cursor: pointer;
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: rgba(255, 255, 255, .55); }

/* ---------- Tracker (creador de propuestas) ---------- */

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 12px; margin-bottom: 16px; }
.stat-card { padding: 14px 16px 12px; }
.stat-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A94A2; }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.stat-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.params-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12px; }
.params-grid dt { color: var(--text-tertiary); }
.params-grid dd { margin: 0; font-weight: 600; text-align: right; }

.tracker-wrap { overflow-x: auto; border-radius: 0 0 var(--r-card) var(--r-card); }
table.tracker { border-collapse: collapse; font-size: 11.5px; white-space: nowrap; width: 100%; }
table.tracker th {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #8A94A2; text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--border-card);
  position: sticky; top: 0; background: var(--surface-light);
}
table.tracker td { padding: 7px 10px; border-bottom: 1px solid var(--border-soft); }
table.tracker tr:last-child td { border-bottom: none; }
table.tracker td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tracker td.edit { background: rgba(251, 240, 213, .45); }
table.tracker td.edit-gray { background: var(--surface-subtle); }
table.tracker tr.row-error td { background: rgba(200, 83, 68, .09); }
table.tracker tr.row-error td:first-child { box-shadow: inset 3px 0 0 var(--accent-red); }
table.tracker tr.row-off td { color: var(--text-faint); }

.legend { display: flex; gap: 16px; align-items: center; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border-strong); vertical-align: -2px; margin-right: 5px; }

.breadcrumb { font-size: 12px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: none; font-family: var(--font-ui); padding: 0; }
.breadcrumb:hover { color: var(--green-deep); }

/* Toggle vista simple / completa */
.view-toggle {
  display: inline-flex; background: var(--surface-subtle);
  border: 1px solid var(--border-soft); border-radius: var(--r-pill);
  padding: 3px; gap: 2px;
}
.view-toggle button {
  border: none; background: transparent; font-family: var(--font-ui);
  font-size: 11.5px; font-weight: 600; padding: 5px 12px;
  border-radius: var(--r-pill); color: var(--text-chip); cursor: pointer;
}
.view-toggle button.active { background: #fff; color: var(--green-deep); box-shadow: var(--shadow-min); }
table.tracker.simple .colfull { display: none; }

/* Autocompletado desde Biblioteca */
.newline-bar {
  border-top: 1px dashed var(--border-strong);
  padding: 14px 20px 18px;
}
.newline-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A94A2; margin-bottom: 8px; }
.ac-input-wrap { display: flex; align-items: center; gap: 10px; }
.ac-panel {
  width: 400px; margin-top: 8px;
  background: #fff; border: 1px solid var(--border-card);
  border-radius: var(--r-panel); box-shadow: var(--shadow-modal); overflow: hidden;
}
.ac-item { padding: 10px 14px; display: flex; gap: 11px; align-items: center; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
.ac-item:hover { background: var(--surface-light); }
.ac-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--green-deep); background: var(--green-chip-bg);
}
.ac-title { font-size: 12.5px; font-weight: 600; }
.ac-meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.ac-foot { padding: 9px 14px; font-size: 10.5px; color: var(--text-tertiary); background: var(--surface-light); }

/* ---------- Stepper del creador ---------- */

.stepper { display: inline-flex; gap: 6px; align-items: center; }
.step-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  border-radius: var(--r-pill); padding: 7px 15px 7px 9px; cursor: pointer;
  background: var(--glass-soft); color: var(--text-button); border: 1px solid rgba(20, 26, 33, .10);
}
.step-pill .step-num {
  width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 26, 33, .08); color: var(--text-chip);
}
.step-pill.active { background: var(--green-deep); color: var(--green-on-dark); border-color: var(--green-deep); }
.step-pill.active .step-num { background: rgba(255, 255, 255, .22); color: #fff; }
.step-arrow { color: var(--text-faint); font-size: 13px; }

/* ---------- Constructor de itinerario (drag & drop) ---------- */

.builder-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }

.lib-panel { position: sticky; top: 20px; }
.lib-hint { font-size: 11.5px; color: var(--text-tertiary); padding: 10px 20px 0; line-height: 1.45; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px 20px 4px; }
.filter-chips .chip { cursor: pointer; border: 1px solid transparent; }
.filter-chips .chip.on { background: var(--green-deep); color: var(--green-on-dark); }
.lib-results { padding: 8px 12px 6px; display: flex; flex-direction: column; gap: 6px; }
.lib-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 1px solid var(--border-soft); border-radius: var(--r-item);
  background: rgba(255, 255, 255, .85); cursor: grab;
}
.lib-item:hover { border-color: var(--green-mid); box-shadow: var(--shadow-min); }
.lib-thumb {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: #fff;
}
.lib-title { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.lib-meta { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.lib-new { padding: 10px 20px 16px; }

.grad-pais      { background: linear-gradient(135deg, #3D5245, #6B8F7A); }
.grad-ciudad    { background: linear-gradient(135deg, #7E9BE0, #9DBEF6); }
.grad-hotel     { background: linear-gradient(135deg, #2E7D63, #4FA987); }
.grad-actividad { background: linear-gradient(135deg, #D69E4A, #E08A5B); }
.grad-ruta      { background: linear-gradient(135deg, #8A94A1, #C4CBD4); }
.grad-barco     { background: linear-gradient(135deg, #2C6FA8, #7EC3D6); }

.day-list { display: flex; flex-direction: column; gap: 12px; }
.day-card { padding: 0 0 6px; }
.day-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 18px 10px;
}
.day-num { font-size: 13.5px; font-weight: 700; }
.day-date { font-size: 11.5px; color: var(--text-tertiary); }
.day-blocks { display: flex; flex-direction: column; gap: 7px; padding: 0 14px 8px; }
.comp-block {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border: 1px solid var(--border-soft); border-radius: var(--r-item);
  background: rgba(255, 255, 255, .9);
}
.comp-handle { color: var(--text-faint); font-size: 13px; letter-spacing: -1px; cursor: grab; flex: none; }
.comp-thumb {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800; letter-spacing: .03em; color: #fff;
}
.comp-title { font-size: 12.5px; font-weight: 600; }
.comp-meta { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.comp-x { margin-left: auto; color: var(--text-faint); cursor: pointer; font-size: 13px; flex: none; padding: 2px 4px; }
.comp-x:hover { color: var(--accent-red); }
.drop-hint {
  border: 1.5px dashed var(--green-mid); border-radius: var(--r-item);
  background: rgba(31, 122, 92, .06);
  padding: 11px 14px; font-size: 11.5px; font-weight: 600; color: var(--green-ok);
  text-align: center;
}

/* ---------- Vista del cliente (propuesta) ---------- */

.client-frame {
  max-width: 880px; margin: 0 auto;
  background: #FAF6EF; border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 26px 64px rgba(28, 27, 24, .18);
  color: #1C1B18;
}
.client-hero {
  background: linear-gradient(160deg, #3D5245, #2E4034 70%);
  color: #FBF8F1; padding: 72px 56px 56px; text-align: center;
}
.client-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #D8C08A; font-family: var(--font-ui); }
.client-title { font-family: var(--font-brand); font-size: 46px; font-weight: 400; line-height: 1.05; margin: 16px 0 10px; }
.client-sub { font-size: 14px; color: #EFE9DC; font-weight: 300; }
.client-rule { width: 44px; height: 1px; background: #B08A3C; margin: 22px auto 0; border: none; }
.client-section { padding: 44px 56px; border-bottom: 1px solid #EAE3D5; }
.client-section-title { font-family: var(--font-brand); font-size: 27px; font-weight: 400; margin: 6px 0 22px; color: #2E4034; }
.client-day { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid #EFE9DC; }
.client-day:last-child { border-bottom: none; }
.client-day-num { font-family: var(--font-brand); font-size: 19px; color: #B08A3C; flex: none; width: 52px; }
.client-day-title { font-size: 13.5px; font-weight: 600; font-family: var(--font-ui); }
.client-day-desc { font-size: 12.5px; color: #6d675c; margin-top: 3px; line-height: 1.5; }
.client-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.client-li { display: flex; gap: 9px; font-size: 12.5px; padding: 5px 0; line-height: 1.45; }
.client-li .tick { color: #3D5245; font-weight: 700; }
.client-li .cross { color: #B08A3C; font-weight: 700; }
.client-price { font-family: var(--font-brand); font-size: 40px; color: #2E4034; }
.client-cta { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.btn-client-primary {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  background: #3D5245; color: #FBF8F1; border: none; border-radius: var(--r-pill);
  padding: 12px 26px; cursor: pointer;
}
.btn-client-secondary {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  background: transparent; color: #3D5245; border: 1px solid #B08A3C; border-radius: var(--r-pill);
  padding: 12px 26px; cursor: pointer;
}
.client-footer { padding: 26px; text-align: center; font-family: var(--font-brand); font-size: 15px; color: #3D5245; letter-spacing: .08em; }

/* Secciones partidas 50/50 estilo lookbook (Safari Portal) */
.cs-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; border-bottom: 1px solid #EAE3D5; }
.cs-photo {
  position: relative; color: #FBF8F1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 30px 34px;
}
.cs-photo .cs-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #EFE9DC; font-family: var(--font-ui); }
.cs-photo .cs-eyebrow::before { content: "— "; color: #D8C08A; }
.cs-photo .cs-title { font-family: var(--font-ui); font-size: 34px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.08; margin-top: 10px; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.cs-photo .cs-loc { font-size: 12px; font-family: var(--font-ui); color: #F6F2E9; }
.cs-photo .cs-loc::before { content: "◦ "; color: #D8C08A; }
.cs-content { padding: 34px 40px 38px; }
.cs-h { font-family: var(--font-ui); font-size: 17px; font-weight: 700; margin: 0 0 2px; color: #1C1B18; }
.cs-sub { font-family: var(--font-brand); font-style: italic; font-size: 16px; color: #6d675c; margin: 0 0 14px; }
.cs-p { font-size: 12.5px; line-height: 1.65; color: #3a362e; margin: 0 0 14px; }

/* Fondos de foto (placeholders) */
.ph-vietnam { background: linear-gradient(160deg, #2E4034 10%, #55705C 55%, #8FA98F); }
.ph-hanoi   { background: linear-gradient(160deg, #4A4238 10%, #8A6A4A 60%, #C9A87C); }
.ph-halong  { background: linear-gradient(160deg, #1E3A44 10%, #2C6FA8 60%, #7EC3D6); }
.ph-hotel   { background: linear-gradient(160deg, #1E5C48 10%, #2E7D63 60%, #7ED6B2); }
.ph-catba   { background: linear-gradient(160deg, #33422E 10%, #5C7A4E 60%, #A8C686); }
.ph-kayak   { background: linear-gradient(160deg, #7A5222 10%, #D69E4A 65%, #F0C987); }
.ph-mapa    { background: linear-gradient(160deg, #37413D 10%, #5C6B62 60%, #9BAA9E); }

/* Galería (carrusel) */
.gallery-strip { display: flex; gap: 8px; margin: 14px 0 4px; align-items: stretch; }
.g-thumb { flex: 1; height: 88px; border-radius: 8px; opacity: .92; }
.g-count { font-size: 10.5px; color: #8C8578; font-family: var(--font-ui); margin-top: 6px; }

/* Fast facts */
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 6px; }
.facts-h { font-family: var(--font-brand); font-style: italic; font-size: 15px; color: #6d675c; margin: 0 0 8px; }
.fact-li { font-size: 12px; line-height: 1.7; color: #3a362e; }
.fact-li::before { content: "• "; color: #B08A3C; }

/* Mapa placeholder */
.map-box { position: relative; border-radius: 12px; height: 240px; background: linear-gradient(145deg, #DCE8E4, #C5D8E8); border: 1px solid #EAE3D5; margin: 14px 0 10px; overflow: hidden; }
.map-pin {
  position: absolute; width: 22px; height: 22px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: #3D5245; border: 2px solid #FAF6EF;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.map-pin span { transform: rotate(45deg); display: block; text-align: center; font-size: 10px; font-weight: 700; color: #FAF6EF; line-height: 18px; font-family: var(--font-ui); }
.key-area { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; padding: 4px 0; color: #3a362e; }
.key-num { font-family: var(--font-brand); color: #B08A3C; font-size: 15px; flex: none; }

/* Herramientas de edición de la propuesta (solo las ve el designer) */
.prop-section { position: relative; }
.section-tools {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  display: flex; gap: 5px; font-family: var(--font-ui);
}
.tool-chip {
  font-size: 10.5px; font-weight: 600; color: var(--text-chip);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 4px 10px; cursor: pointer;
  box-shadow: var(--shadow-min);
}
.tool-chip:hover { color: var(--accent-red); }
.tool-chip.green { color: var(--green-ok); border-color: rgba(30, 92, 72, .35); }
.tool-chip.green:hover { color: var(--green-deep); background: var(--green-chip-bg); }
.tool-chip.static { cursor: default; color: var(--text-tertiary); }
.tool-chip.static:hover { color: var(--text-tertiary); }
.add-section {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px; background: rgba(31, 122, 92, .04);
  border-top: 1.5px dashed rgba(30, 92, 72, .35); border-bottom: 1.5px dashed rgba(30, 92, 72, .35);
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; color: var(--green-ok);
}
.add-section button {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  background: #fff; color: var(--green-deep); border: 1px solid rgba(30, 92, 72, .4);
  border-radius: var(--r-pill); padding: 4px 12px; cursor: pointer;
}

/* ---------- Biblioteca ---------- */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-pill {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 500;
  border-radius: var(--r-pill); padding: 7px 15px; cursor: pointer;
  background: var(--glass-soft); color: var(--text-button); border: 1px solid rgba(20, 26, 33, .10);
  display: inline-flex; align-items: center; gap: 7px;
}
.tab-pill .tab-count { font-size: 11px; font-weight: 600; color: var(--text-tertiary); }
.tab-pill.active { background: #fff; color: var(--green-deep); font-weight: 700; box-shadow: var(--shadow-item); }
.tab-pill.active .tab-count { color: var(--green-mid); }

.lib-toolbar { display: flex; gap: 10px; align-items: center; margin: 4px 0 16px; flex-wrap: wrap; }

.row-avatar {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.row-avatar svg {
  width: 17px; height: 17px; stroke: #fff; stroke-width: 1.6;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.row-name { font-size: 13px; font-weight: 700; }
.row-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Detalle de entidad */
.entity-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.entity-col { display: flex; flex-direction: column; gap: 16px; }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.meta-field { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A94A2; }
.meta-value { font-size: 12.5px; font-weight: 600; }
.meta-value a { font-weight: 600; }

.desc-box {
  border: 1px solid var(--border-soft); border-radius: var(--r-item);
  background: rgba(255, 255, 255, .85);
  padding: 12px 14px; font-size: 12.5px; line-height: 1.6; color: var(--text-secondary);
}

.ai-btn {
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600;
  color: #5B54A8; background: #E9E7FB; border: 1px solid rgba(91, 84, 168, .25);
  border-radius: var(--r-pill); padding: 5px 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.ai-btn:hover { background: #DEDBF7; }

/* Propiedades (tipo Notion) */
.prop-row {
  display: grid; grid-template-columns: 1.2fr .7fr 1.3fr auto;
  gap: 12px; align-items: center;
  padding: 10px 20px; border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.prop-row:last-child { border-bottom: none; }
.prop-name { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.prop-type { font-size: 11px; color: var(--text-tertiary); }
.prop-vis { display: flex; gap: 4px; justify-content: flex-end; }
.vis-chip { font-size: 10px; font-weight: 700; letter-spacing: .03em; border-radius: var(--r-pill); padding: 2px 8px; }
.vis-interna { color: var(--chip-neutral-text); background: var(--chip-neutral-bg); }
.vis-propuesta { color: var(--chip-info-text); background: var(--chip-info-bg); }
.vis-app { color: var(--chip-ok-text); background: var(--chip-ok-bg); }

/* Contactos */
.contact-row {
  display: flex; gap: 12px; align-items: center;
  padding: 11px 20px; border-bottom: 1px solid var(--border-soft); font-size: 12px;
}
.contact-row:last-child { border-bottom: none; }
.contact-main { flex: 1; min-width: 0; }
.contact-name { font-size: 12.5px; font-weight: 700; display: flex; gap: 7px; align-items: center; }
.contact-meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.contact-ways { text-align: right; font-size: 11px; color: var(--text-muted); flex: none; }

/* Opiniones */
.review { padding: 12px 20px; border-bottom: 1px solid var(--border-soft); }
.review:last-child { border-bottom: none; }
.review-quote { font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); font-style: italic; }
.review-meta { font-size: 11px; color: var(--text-muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; }

/* Notas internas */
.note { padding: 10px 20px; border-bottom: 1px solid var(--border-soft); font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.note:last-child { border-bottom: none; }
.note b { color: var(--text-main); }

/* Galería mini en detalle */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; padding: 0 20px 16px; }
.detail-gallery .g-main { height: 148px; border-radius: 12px; }
.detail-gallery .g-side { height: 70px; border-radius: 10px; }
.g-more {
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; color: var(--text-tertiary);
  background: var(--surface-subtle); border-radius: 10px; height: 70px;
}

/* Editor de ficha por bloques */
.group-label {
  padding: 14px 20px 4px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #8A94A2;
  display: flex; gap: 8px; align-items: center;
}
.block-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--r-item);
  background: rgba(255, 255, 255, .85);
}
.block-list-title { font-size: 12.5px; font-weight: 600; }
.block-list-desc { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }

.canvas { background: #FAF6EF; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); color: #1C1B18; }
.canvas-block { position: relative; padding: 26px 34px; border-top: 1px dashed rgba(176, 138, 60, .35); }
.canvas-block:first-child { border-top: none; }
.canvas-hero { position: relative; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 34px; color: #FBF8F1; }

/* Selector de tipo en modales */
.type-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.type-choice {
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  background: #fff; color: var(--text-button); padding: 5px 12px; cursor: pointer;
}
.type-choice.on { background: var(--green-deep); color: var(--green-on-dark); border-color: var(--green-deep); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0; }
.check-row input { accent-color: var(--green-deep); }
.check-row .vis-chip { margin-left: auto; }

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 26, 33, .35);
  backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  width: 460px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid var(--border-card);
  border-radius: var(--r-card); box-shadow: 0 18px 50px rgba(20, 26, 33, .22);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 22px 0;
}
.modal-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.modal-sub { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }
.modal-close {
  border: none; background: var(--surface-subtle); color: var(--text-chip);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  font-size: 12px; line-height: 1; flex: none;
}
.modal-close:hover { color: var(--accent-red); }
.modal-body { padding: 18px 22px 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A94A2; }
.field .input { width: 100%; }
.field-help { font-size: 10.5px; color: var(--text-tertiary); }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 22px 20px;
}

/* Botón de edición pequeño (aparece en cards editables) */
.card-edit-btn {
  border: 1px solid var(--border-strong); background: var(--glass-strong);
  color: var(--text-button); font-family: var(--font-ui);
  font-size: 10.5px; font-weight: 600; border-radius: var(--r-pill);
  padding: 3px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.card-edit-btn:hover { color: var(--green-deep); border-color: var(--green-mid); }

/* Placeholder de sección en construcción */
.placeholder-box {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-card);
  padding: 46px 30px; text-align: center;
  color: var(--text-tertiary); font-size: 13px;
  background: rgba(255, 255, 255, .35);
}
.placeholder-box strong { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }

/* Viajeros en cabecera (enlace al perfil de cliente) */
.client-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; color: var(--text-button);
  background: var(--glass-strong); border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 3px 11px 3px 4px; cursor: pointer;
}
.client-pill:hover { border-color: var(--green-mid); color: var(--green-deep); }

/* ---------- Creador de itinerarios (editor estilo Travefy) ---------- */

.iti-grid { display: grid; grid-template-columns: 250px 1fr 300px; gap: 16px; align-items: start; }

.day-index { position: sticky; top: 20px; }
.day-index-list { padding: 8px 10px 6px; display: flex; flex-direction: column; gap: 4px; }
.day-index-item {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 10px; border-radius: var(--r-item); cursor: pointer;
  border: 1px solid transparent;
}
.day-index-item:hover { background: rgba(255, 255, 255, .55); }
.day-index-item.active { background: var(--glass-strong); box-shadow: var(--shadow-item); border-color: var(--border-soft); }
.dii-handle { color: var(--text-faint); font-size: 12px; letter-spacing: -1px; flex: none; margin-top: 1px; }
.dii-title { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; line-height: 1.3; }
.day-index-item.active .dii-title { color: var(--green-deep); }
.dii-meta { font-size: 10.5px; color: var(--text-tertiary); margin-top: 2px; }
.dii-special { border-bottom: 1px dashed var(--border-strong); margin-bottom: 6px; padding-bottom: 10px; }

.event-card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--border-soft); border-radius: var(--r-panel);
  padding: 14px 16px; display: flex; gap: 13px; align-items: flex-start;
}
.event-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.event-icon svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.event-head { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.event-time {
  font-size: 11px; font-weight: 700; color: var(--green-deep);
  background: var(--green-chip-bg); border-radius: 6px; padding: 2px 7px; flex: none;
}
.event-title { font-size: 13px; font-weight: 700; }
.event-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-top: 4px; }
.event-fields { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; font-size: 11.5px; }
.event-fields .k { color: var(--text-tertiary); margin-right: 4px; }
.event-attach { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.attach-chip {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--text-chip);
  background: var(--surface-subtle); border: 1px solid var(--border-soft);
  border-radius: var(--r-pill); padding: 3px 10px;
}
.attach-chip svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.event-tools { margin-left: auto; display: flex; gap: 6px; color: var(--text-faint); flex: none; font-size: 12px; }
.event-tools span { cursor: pointer; padding: 2px 3px; }
.event-tools span:hover { color: var(--green-deep); }

.day-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.day-heading h2 { font-size: 17px; font-weight: 800; letter-spacing: .04em; margin: 0; }
.day-heading .dh-date { font-size: 12px; color: var(--text-muted); }
.event-list { display: flex; flex-direction: column; gap: 10px; }

.add-event-bar {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-panel);
  padding: 13px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: rgba(255, 255, 255, .35);
}
.add-event-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A94A2; margin-right: 4px; }

/* ---------- Vista del cliente · app en iPhone ---------- */

.phone {
  height: min(88vh, 812px); aspect-ratio: 9 / 19.5; width: auto;
  border-radius: 54px; border: 11px solid #16130F;
  background: #FAF6EF; overflow: hidden; position: relative;
  box-shadow: 0 40px 90px rgba(20, 26, 33, .45);
  flex: none;
}
.phone-island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 112px; height: 28px; border-radius: 20px; background: #16130F; z-index: 20;
}
.phone-screen { height: 100%; overflow-y: auto; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }

.papp { font-family: var(--font-ui); color: #1C1B18; padding-bottom: 74px; }
.papp-hero {
  min-height: 190px; padding: 58px 20px 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #FBF8F1; position: relative;
}
.papp-brand { font-family: var(--font-brand); font-size: 13px; letter-spacing: .16em; color: #EFE9DC; }
.papp-trip { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.papp-dates { font-size: 11.5px; color: #EFE9DC; margin-top: 3px; }

.papp-days {
  display: flex; gap: 6px; padding: 12px 16px; overflow-x: auto;
  background: #FAF6EF; position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid #EAE3D5; scrollbar-width: none;
}
.papp-days::-webkit-scrollbar { display: none; }
.papp-day-pill {
  font-size: 11px; font-weight: 700; white-space: nowrap;
  border-radius: var(--r-pill); padding: 6px 12px;
  background: #F1EBDF; color: #6d675c; flex: none;
}
.papp-day-pill.on { background: #3D5245; color: #FBF8F1; }

.papp-body { padding: 16px; }
.papp-h { font-size: 15px; font-weight: 800; letter-spacing: .03em; margin: 2px 0 1px; }
.papp-sub { font-size: 11px; color: #8C8578; margin-bottom: 12px; }

.papp-card {
  background: #fff; border: 1px solid #EAE3D5; border-radius: 16px;
  padding: 13px 14px; margin-bottom: 10px;
}
.papp-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.papp-time { font-size: 11px; font-weight: 800; color: #3D5245; background: #E4EEE7; border-radius: 6px; padding: 2px 7px; }
.papp-title { font-size: 13px; font-weight: 700; }
.papp-desc { font-size: 11.5px; color: #6d675c; line-height: 1.55; margin-top: 6px; }
.papp-kv { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 7px; font-size: 11px; }
.papp-kv .k { color: #A39A88; margin-right: 3px; }
.papp-chip { font-size: 10px; font-weight: 700; border-radius: var(--r-pill); padding: 2px 8px; }
.papp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #3D5245;
  border: 1px solid #C9BFA8; border-radius: var(--r-pill);
  padding: 5px 12px; background: transparent; font-family: var(--font-ui); cursor: pointer;
}
.papp-sos {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #3D5245; color: #FBF8F1; border-radius: 16px;
  padding: 12px 14px; margin-bottom: 12px; font-size: 11.5px;
}
.papp-photos { display: flex; gap: 6px; margin-top: 9px; }
.papp-photos .g-thumb { height: 58px; border-radius: 10px; }

.papp-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; background: rgba(250, 246, 239, .96); backdrop-filter: blur(8px);
  border-top: 1px solid #EAE3D5; padding: 10px 0 22px; z-index: 15;
}
.papp-nav div { flex: 1; text-align: center; font-size: 9.5px; font-weight: 700; color: #A39A88; }
.papp-nav div.on { color: #3D5245; }
.papp-nav svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 auto 3px; }

/* ---------- Tarjeta de embarque (evento de vuelo) ---------- */

.bpass {
  background: #fff; border: 1px solid var(--border-card);
  border-radius: 13px; overflow: hidden; margin-top: 10px;
  max-width: 560px;
}
.bpass-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--border-soft);
  background: var(--surface-light);
}
.bpass-logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.bpass-airline { font-size: 12px; font-weight: 700; }
.bpass-flight { font-size: 10.5px; color: var(--text-tertiary); }
.bpass-no {
  margin-left: auto; font-size: 12.5px; font-weight: 800;
  letter-spacing: .06em; color: var(--text-main);
}

.bpass-route {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px; padding: 16px 18px 14px;
}
.bpass-iata { font-size: 30px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.bpass-time { font-size: 14px; font-weight: 700; margin-top: 5px; }
.bpass-place { font-size: 10.5px; color: var(--text-tertiary); margin-top: 2px; }
.bpass-to { text-align: right; }
.bpass-mid { text-align: center; color: var(--text-faint); }
.bpass-mid svg { width: 17px; height: 17px; stroke: var(--green-mid); stroke-width: 1.5; fill: none; display: block; margin: 0 auto 3px; }
.bpass-dur { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--text-tertiary); }
.bpass-line { display: block; width: 78px; height: 1px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 4px, transparent 4px 8px); margin: 6px auto 0; }

.bpass-strip {
  display: flex; flex-wrap: wrap; gap: 4px 26px;
  padding: 11px 18px 13px; position: relative;
  border-top: 1px dashed var(--border-strong);
}
.bpass-strip::before, .bpass-strip::after {
  content: ""; position: absolute; top: -8px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--bg-canvas);
}
.bpass-strip::before { left: -8px; }
.bpass-strip::after { right: -8px; }
.bpass-f-label { font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9AA3AF; }
.bpass-f-value { font-size: 12px; font-weight: 700; margin-top: 1px; }
.bpass-link { font-size: 11.5px; font-weight: 700; color: var(--green-mid); margin-left: auto; align-self: center; cursor: pointer; }
.bpass-late { color: var(--chip-warn-text); }
.bpass-old { color: var(--text-faint); font-weight: 500; text-decoration: line-through; margin-right: 5px; }

/* ---------- App del viajero · navegación curada (portada → días → día) ---------- */

.papp[data-papp="portada"] { height: 100%; }
.papp-cover {
  min-height: 100%; height: 100%; display: flex; flex-direction: column;
  justify-content: space-between; padding: 54px 26px 34px;
  color: #FBF8F1; text-align: center; position: relative;
}
.papp-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,30,25,.35), rgba(22,30,25,.05) 40%, rgba(22,30,25,.55));
}
.papp-cover > * { position: relative; z-index: 2; }
.papp-cover-brand { font-family: var(--font-brand); font-size: 15px; letter-spacing: .22em; }
.papp-cover-eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #D8C08A; }
.papp-cover-title { font-family: var(--font-brand); font-size: 40px; font-weight: 400; line-height: 1.05; margin: 12px 0 8px; }
.papp-cover-meta { font-size: 11.5px; color: #EFE9DC; }
.papp-cover-rule { width: 34px; height: 1px; background: #B08A3C; border: none; margin: 18px auto; }
.papp-btn-cream {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  background: #FBF8F1; color: #2E4034; border: none;
  border-radius: var(--r-pill); padding: 12px 26px; cursor: pointer;
}
.papp-cover-help { font-size: 10.5px; color: #EFE9DC; margin-top: 16px; }

.papp-topbar {
  position: sticky; top: 0; z-index: 12;
  background: rgba(250, 246, 239, .97); backdrop-filter: blur(8px);
  border-bottom: 1px solid #EAE3D5;
  padding: 48px 16px 12px; display: flex; align-items: center; gap: 10px;
}
.papp-back { font-size: 11.5px; font-weight: 700; color: #3D5245; cursor: pointer; background: none; border: none; font-family: var(--font-ui); padding: 0; }
.papp-topbar-title { font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }

.papp-day-card {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1px solid #EAE3D5; border-radius: 16px;
  padding: 11px; margin-bottom: 10px; cursor: pointer;
}
.papp-day-card:active { border-color: #B08A3C; }
.papp-day-photo { width: 62px; height: 62px; border-radius: 12px; flex: none; }
.papp-day-num { font-family: var(--font-brand); font-size: 13px; color: #B08A3C; letter-spacing: .06em; }
.papp-day-title { font-size: 12.5px; font-weight: 700; line-height: 1.3; margin-top: 1px; }
.papp-day-meta { font-size: 10.5px; color: #8C8578; margin-top: 3px; }
.papp-day-arrow { margin-left: auto; color: #C9BFA8; font-size: 15px; flex: none; }

.papp-docs-card {
  display: flex; gap: 12px; align-items: center;
  background: #F3EEE3; border: 1px solid #E0D6C0; border-radius: 16px;
  padding: 13px; margin-bottom: 14px; cursor: pointer;
}
.papp-docs-icon {
  width: 38px; height: 38px; border-radius: 11px; flex: none; background: #3D5245;
  display: flex; align-items: center; justify-content: center;
}
.papp-docs-icon svg { width: 18px; height: 18px; stroke: #FBF8F1; stroke-width: 1.6; fill: none; }

.papp-dayhead { padding: 18px 16px 4px; }
.papp-dayhead .n { font-family: var(--font-brand); font-size: 15px; color: #B08A3C; letter-spacing: .08em; }
.papp-dayhead h3 { font-size: 17px; font-weight: 800; letter-spacing: .02em; margin: 3px 0 2px; }
.papp-dayhead .d { font-size: 11px; color: #8C8578; }

/* Tarjeta de embarque dentro de la app */
.papp .bpass { margin: 0 0 10px; max-width: none; border-color: #EAE3D5; }
.papp .bpass-head { background: #FAF6EF; border-color: #EFE9DC; }
.papp .bpass-route { padding: 13px 14px 11px; }
.papp .bpass-iata { font-size: 25px; }
.papp .bpass-time { font-size: 12.5px; }
.papp .bpass-place { font-size: 9.5px; }
.papp .bpass-line { width: 46px; }
.papp .bpass-strip { padding: 10px 14px 12px; gap: 4px 18px; border-top-color: #E0D6C0; }
.papp .bpass-strip::before, .papp .bpass-strip::after { background: #FAF6EF; }
.papp .bpass-f-value { font-size: 11px; }

/* ============================================================
   v3 · Espacio único: el itinerario ES el presupuesto
   ============================================================ */

/* Cabecera editable del viaje */
.trip-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 9px; }
.trip-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--text-button);
  background: var(--glass-strong); border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 4px 11px;
}
.trip-meta .k { color: var(--text-tertiary); font-weight: 500; }

/* Bloque de conceptos (día o general) */
.group-general { border: 1px solid rgba(30, 92, 72, .22); background: rgba(31, 122, 92, .045); }
.group-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 13px 16px 9px;
}
.group-title { font-size: 13px; font-weight: 700; }
.group-date { font-size: 11.5px; color: var(--text-tertiary); }
.group-total { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--green-deep); }
.group-lines { display: flex; flex-direction: column; gap: 7px; padding: 0 12px 11px; }

/* Línea = concepto del itinerario con sus datos económicos */
.line-block {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--r-item);
  background: rgba(255, 255, 255, .92);
}
.line-block.off { opacity: .5; }
.line-block.alert { box-shadow: inset 3px 0 0 var(--accent-red); background: rgba(200, 83, 68, .06); }
.line-handle { color: var(--text-faint); font-size: 12px; letter-spacing: -1px; cursor: grab; flex: none; margin-top: 6px; }
.line-icon {
  width: 32px; height: 32px; border-radius: 9px; flex: none; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800; color: #fff;
}
.line-icon svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.line-main { flex: 1; min-width: 0; }
.line-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.line-title { font-size: 12.5px; font-weight: 700; }
.line-tools { margin-left: auto; display: flex; gap: 5px; color: var(--text-faint); font-size: 11px; flex: none; }
.line-tools span { cursor: pointer; padding: 1px 3px; }
.line-tools span:hover { color: var(--green-deep); }

/* Distintivo de ficha comercial */
.badge-ficha, .badge-noficha {
  font-size: 10px; font-weight: 700; border-radius: var(--r-pill); padding: 2px 8px;
}
.badge-ficha { color: var(--chip-ok-text); background: var(--chip-ok-bg); }
.badge-noficha { color: var(--text-tertiary); background: var(--chip-neutral-bg); }

/* Campos económicos en línea */
.line-eco { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 7px 10px; margin-top: 8px; }
.eco-field { display: flex; flex-direction: column; gap: 2px; }
.eco-label { font-size: 8.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #9AA3AF; }
.eco-input {
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; color: var(--text-main);
  background: rgba(251, 240, 213, .5); border: 1px solid var(--border-soft);
  border-radius: 7px; padding: 4px 8px; width: 74px; outline: none;
}
.eco-input:focus { border-color: var(--green-mid); background: #fff; }
.eco-input.w-sm { width: 46px; }
.eco-input.w-md { width: 96px; }
.eco-calc {
  font-size: 11.5px; font-weight: 700; color: var(--text-main);
  background: var(--surface-subtle); border: 1px solid var(--border-soft);
  border-radius: 7px; padding: 4px 9px; min-width: 74px; text-align: right;
}
.eco-calc.pvp { color: var(--green-deep); background: var(--green-chip-bg); border-color: transparent; }
.eco-sep { width: 1px; align-self: stretch; background: var(--border-soft); margin: 0 2px; }

/* Interruptor Definitivo */
.def-switch {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 10.5px; font-weight: 700; color: var(--text-chip);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 4px 10px; background: var(--glass-strong); white-space: nowrap;
}
.def-switch .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.def-switch.on { color: var(--chip-ok-text); background: var(--chip-ok-bg); border-color: transparent; }
.def-switch.on .dot { background: var(--chip-ok-text); }

/* Zona para soltar */
.drop-zone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-item);
  padding: 10px 14px; font-size: 11.5px; color: var(--text-tertiary); text-align: center;
}
.drop-zone.hot { border-color: var(--green-mid); background: rgba(31, 122, 92, .06); color: var(--green-ok); font-weight: 600; }

/* Resumen de generación de la presentación */
.gen-summary {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px; margin-bottom: 14px;
}
.gen-list { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.gen-item {
  display: flex; gap: 9px; align-items: center; font-size: 11.5px;
  background: var(--surface-light); border: 1px solid var(--border-soft);
  border-radius: var(--r-item); padding: 7px 11px;
}

/* Espacio de trabajo de la presentación: fichas fuera · presentación · buscador */
.prop-workspace { display: grid; grid-template-columns: 290px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.prop-workspace .client-frame { max-width: none; margin: 0; }
.prop-aside { position: sticky; top: 20px; }
.aside-note { padding: 0 20px 16px; font-size: 11px; color: var(--text-tertiary); line-height: 1.5; }
.gen-stat { display: flex; gap: 10px; align-items: baseline; padding: 2px 20px 10px; }
.gen-stat .n { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.gen-stat .n.muted { color: var(--text-tertiary); }
.gen-stat .l { font-size: 11px; color: var(--text-muted); }
.gen-col { display: flex; flex-direction: column; gap: 7px; padding: 0 14px 14px; }
.gen-col .gen-item { display: block; }
.gen-col .gen-item .t { font-weight: 700; font-size: 12px; }
.gen-col .gen-item .s { font-size: 10.5px; color: var(--text-tertiary); margin-top: 2px; }
.gen-col .gen-item .card-edit-btn { margin-top: 7px; }

@media (max-width: 1439px) {
  .prop-workspace { grid-template-columns: 260px minmax(0, 1fr); }
  .prop-workspace > .card:last-child { grid-column: 1 / -1; position: static; }
}
@media (max-width: 1100px) {
  .prop-workspace { grid-template-columns: 1fr; }
  .prop-workspace > .card { position: static; }
}

/* País y ciudades en la cabecera de cada día */
.geo-chips { display: inline-flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.geo-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; color: var(--chip-info-text);
  background: var(--chip-info-bg); border-radius: var(--r-pill); padding: 2px 9px;
}
.geo-chip::before { content: "◦"; opacity: .7; }
.geo-chip.pais { color: var(--green-deep); background: var(--green-chip-bg); }
.geo-add {
  font-size: 10.5px; font-weight: 700; color: var(--text-tertiary);
  border: 1px dashed var(--border-strong); border-radius: var(--r-pill);
  padding: 2px 8px; cursor: pointer; background: transparent;
}
.geo-add:hover { color: var(--green-deep); border-color: var(--green-mid); }

/* Subfiltros (tipos de traslado) */
.subfilter-row {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin: 0 20px 4px; padding: 8px 0 8px 10px;
  border-left: 2px solid var(--green-chip-bg);
}
.subfilter-row .chip { cursor: pointer; }

/* Tercer estado del interruptor: a confirmar */
.def-switch.pend { color: var(--chip-warn-text); background: var(--chip-warn-bg); border-color: transparent; }
.def-switch.pend .dot { background: var(--chip-warn-text); }

/* ============ v4 · Crear viaje y propuesta congelada ============ */

/* Banner de propuesta congelada */
.frozen-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; margin-bottom: 16px;
  background: var(--chip-ok-bg);
  border: 1px solid rgba(31, 122, 92, .22);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-min);
}
.frozen-banner .frozen-lock { font-size: 20px; line-height: 1; }
.frozen-banner .frozen-text { flex: 1; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.frozen-banner .frozen-text strong { color: var(--chip-ok-text); }
.frozen-banner .frozen-hint { display: block; font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

/* Editor de solo lectura al congelar: se puede mirar, no tocar */
.screen.frozen [data-modo-view] { pointer-events: none; user-select: none; opacity: .8; }
.screen.frozen .card-edit-btn { display: none; }

/* Modal «Crear viaje» */
.cv-block { margin-bottom: 14px; }
.cv-block-title {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-tertiary); margin-bottom: 6px;
}
.cv-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; }
.cv-list li + li { margin-top: 3px; }
.cv-note { margin: 0; font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; }
.cv-warn {
  padding: 10px 13px; border-radius: var(--r-item);
  background: var(--chip-warn-bg); color: var(--chip-warn-text);
  font-size: 12px; line-height: 1.5;
}

/* Viajes · estado vacío antes de crear el primer viaje */
.viajes-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 30px 20px; text-align: center;
  font-size: 12.5px; color: var(--text-muted);
}

/* ============ Ingesta de documentos DMC (v4) ============ */

/* Modal de carga */
.dmc-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.dmc-tab {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-soft);
  background: none; font: inherit; font-size: 11.5px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
}
.dmc-tab.active { color: var(--green-deep); background: var(--green-chip-bg); border-color: transparent; }
.dmc-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 30px 20px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-item);
  color: var(--text-tertiary); font-size: 12.5px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dmc-drop:hover { border-color: var(--green-mid); background: rgba(31, 122, 92, .04); color: var(--green-ok); }
.dmc-drop .dmc-drop-icon { font-size: 22px; }
.dmc-drop .dmc-drop-hint { font-size: 11px; color: var(--text-faint); }
.dmc-paste {
  width: 100%; min-height: 130px; resize: vertical;
  padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--r-item);
  font: inherit; font-size: 12px; color: var(--text-secondary); background: var(--bg-input, #FAFAF8);
}
.dmc-file {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border: 1px solid var(--border-soft); border-radius: var(--r-item);
  background: rgba(31, 122, 92, .045);
}
.dmc-file-icon {
  width: 34px; height: 40px; flex: none; border-radius: 5px;
  background: var(--accent-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800; letter-spacing: .05em;
}
.dmc-file-name { font-size: 12.5px; font-weight: 700; }
.dmc-file-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.dmc-detect {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 9px 12px; border-radius: var(--r-item);
  background: var(--chip-info-bg); color: var(--chip-info-text);
  font-size: 12px; line-height: 1.5;
}
.dmc-note { margin: 12px 0 0; font-size: 11.5px; color: var(--text-tertiary); line-height: 1.55; }

/* Progreso del análisis */
.dmc-progress-list { display: flex; flex-direction: column; gap: 9px; padding: 6px 0 4px; }
.dmc-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-faint); }
.dmc-step .dmc-step-dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--border-strong); font-size: 9px;
  display: flex; align-items: center; justify-content: center; color: transparent;
}
.dmc-step.doing { color: var(--text-secondary); font-weight: 600; }
.dmc-step.doing .dmc-step-dot { border-color: var(--green-mid); animation: dmc-pulse 1s ease-in-out infinite; }
.dmc-step.done { color: var(--text-muted); }
.dmc-step.done .dmc-step-dot { border-color: transparent; background: var(--chip-ok-bg); color: var(--chip-ok-text); }
@keyframes dmc-pulse { 50% { box-shadow: 0 0 0 4px rgba(31, 122, 92, .12); } }

/* Pantalla de revisión · tres paneles */
.rev-grid {
  display: grid; grid-template-columns: minmax(320px, 1.05fr) 1.55fr minmax(250px, .85fr);
  gap: 16px; align-items: start;
}
@media (max-width: 1100px) { .rev-grid { grid-template-columns: 1fr; } }

/* Panel del documento original */
.pdf-doc {
  margin: 0 16px 16px; padding: 26px 24px; border: 1px solid var(--border-soft);
  border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(20, 30, 25, .07);
  font-family: Georgia, 'Times New Roman', serif; font-size: 11.5px; line-height: 1.7;
  color: #3A4040; max-height: 640px; overflow-y: auto;
}
.pdf-doc .pdf-letterhead {
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: #1E4D3C; border-bottom: 2px solid #1E4D3C; padding-bottom: 8px; margin-bottom: 4px;
}
.pdf-doc .pdf-letterhead small { display: block; font-size: 8.5px; letter-spacing: .2em; font-weight: 400; color: #8A9490; margin-top: 2px; }
.pdf-doc h4 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 16px 0 5px; color: #1E4D3C; }
.pdf-doc p { margin: 0 0 8px; }
.pdf-doc .pdf-pageno { text-align: center; font-size: 9px; color: #A9B2AD; margin-top: 18px; }
.pdf-hl { border-radius: 2px; padding: 0 2px; transition: background .2s; }
.pdf-hl.active { background: #FFE9A8; box-shadow: 0 0 0 2px #FFE9A8; }

/* Panel de extracción */
.xt-summary {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  padding: 12px 16px; margin: 0 16px 12px; border-radius: var(--r-item);
  background: var(--chip-neutral-bg); font-size: 11.5px; color: var(--text-muted);
}
.xt-summary strong { color: var(--text-secondary); }
.xt-rows { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.xt-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--r-item);
  background: var(--bg-card, #fff);
}
.xt-row.amber { border-color: rgba(178, 125, 8, .35); background: rgba(240, 195, 80, .06); }
.xt-row.red { border-color: rgba(200, 83, 68, .4); background: rgba(200, 83, 68, .05); }
.xt-row.ok-done { border-color: rgba(30, 92, 72, .3); background: rgba(31, 122, 92, .04); }
.sem-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; margin-top: 5px; }
.sem-dot.g { background: var(--chip-ok-text); }
.sem-dot.a { background: var(--chip-warn-text); }
.sem-dot.r { background: var(--accent-red); }
.sem-dot.n { background: var(--text-faint); }
.xt-main { flex: 1; min-width: 0; }
.xt-title { font-size: 12.5px; font-weight: 700; }
.xt-title .conf { font-size: 10.5px; font-weight: 600; color: var(--text-faint); margin-left: 5px; }
.xt-fields { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.6; }
.xt-fields b { color: var(--text-secondary); font-weight: 700; }
.xt-status { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; align-items: center; }
.xt-cite {
  border: none; background: none; padding: 2px 8px; border-radius: 999px;
  font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer;
  color: var(--chip-info-text); background: var(--chip-info-bg);
}
.xt-cite:hover { text-decoration: underline; }
.xt-tick {
  border: 1px solid var(--border-strong); background: #fff; padding: 3px 10px;
  border-radius: 999px; font: inherit; font-size: 11px; font-weight: 700;
  color: var(--text-secondary); cursor: pointer;
}
.xt-tick:hover { border-color: var(--green-mid); color: var(--green-ok); }
.xt-tick.done { border-color: transparent; background: var(--chip-ok-bg); color: var(--chip-ok-text); cursor: default; }
.xt-choice { display: flex; gap: 6px; }
.xt-choice button {
  border: 1px solid rgba(200, 83, 68, .5); background: #fff; padding: 3px 10px;
  border-radius: 999px; font: inherit; font-size: 11px; font-weight: 700;
  color: var(--accent-red); cursor: pointer;
}
.xt-choice button:hover { background: rgba(200, 83, 68, .07); }
.xt-choice button.picked { border-color: transparent; background: var(--chip-ok-bg); color: var(--chip-ok-text); }
.xt-match {
  font-size: 11px; color: var(--text-tertiary);
  padding: 2px 8px; border-radius: 999px; background: var(--chip-neutral-bg);
}

/* Panel de acciones */
.rev-side .cv-list { font-size: 12px; }
.rev-counter { display: flex; gap: 7px; padding: 0 0 4px; }
.rev-counter span {
  flex: 1; text-align: center; padding: 8px 4px; border-radius: var(--r-item);
  font-size: 11px; font-weight: 700; line-height: 1.4;
}
.rev-counter .c-g { color: var(--chip-ok-text); background: var(--chip-ok-bg); }
.rev-counter .c-a { color: var(--chip-warn-text); background: var(--chip-warn-bg); }
.rev-counter .c-r { color: var(--accent-red); background: rgba(200, 83, 68, .1); }
.rev-counter b { display: block; font-size: 17px; }

/* Rastro en el editor tras aceptar */
.badge-origen {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  color: var(--chip-info-text); background: var(--chip-info-bg); cursor: pointer;
}
.dmc-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; margin-bottom: 14px; border-radius: var(--r-card, 10px);
  border: 1px solid rgba(30, 92, 72, .25); background: rgba(31, 122, 92, .06);
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.5;
}
.dmc-banner strong { color: var(--chip-ok-text); }
.dmc-banner .dmc-banner-close {
  margin-left: auto; border: none; background: none; cursor: pointer;
  font-size: 13px; color: var(--text-faint); padding: 2px 6px;
}
.dmc-banner .dmc-banner-close:hover { color: var(--accent-red); }
.screen.frozen #dmc-btn { display: none; }
