/* Insight Analytics — Demo comercial (plataforma de talleres)
   Paleta y tipografía tomadas del manual de marca real de Insight Analytics.
   Fuentes declaradas por nombre con fallback a fuentes de sistema — sin
   ningún <link> externo, para que la demo funcione sin conexión. */

:root {
  --ink: #1c1c1c;
  --ink-soft: #5a5a5a;
  --ink-faint: #8a8a8a;
  --navy: #0b2545;
  --navy-soft: #16335e;
  --navy-tint: #eef2f7;
  --border: #e4e4e4;
  --border-soft: #eeeeee;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-sunken: #f5f5f5;
  --success: #1f7a52;
  --success-soft: #e7f3ec;
  --warn: #a3690a;
  --warn-soft: #faf1e2;
  --danger: #c64848;
  --danger-soft: #fbeaea;
  --shadow-sm: 0 1px 2px rgba(28, 28, 28, 0.06);
  --shadow-md: 0 8px 28px -12px rgba(11, 37, 69, 0.28);
  --shadow-lg: 0 24px 64px -20px rgba(11, 37, 69, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Space Grotesk', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'SF Mono', monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
p { margin: 0; }
.mono { font-family: var(--font-mono); }

/* ---------- App shell ---------- */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 232px; transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(11,37,69,.35); z-index: 39; display: none; }
  .sidebar-backdrop.show { display: block; }
}

.sidebar {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  gap: 22px;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.sidebar .brand img { height: 30px; width: auto; }
.sidebar .brand .tenant { font-size: 11.5px; color: #b9c4d6; margin-top: 2px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #cdd6e4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.sidebar nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.active { background: #fff; color: var(--navy); }
.sidebar nav a.active svg { opacity: 1; }
.sidebar .spacer { flex: 1; }
.sidebar .new-case {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--navy); border: none; border-radius: var(--radius-sm);
  padding: 11px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.sidebar .new-case:hover { background: #eef2f7; }
.sidebar .foot { font-size: 11px; color: #7f8cab; padding: 0 4px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--border);
  background: var(--bg); position: sticky; top: 0; z-index: 20;
}
.topbar .left { display: flex; align-items: center; gap: 12px; }
.topbar .menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
@media (max-width: 860px) { .topbar .menu-btn { display: block; } }
.topbar h1 { font-size: 19px; }
.topbar .sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.topbar .right { display: flex; align-items: center; gap: 14px; }
.user-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 13px;
}
.user-pill .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy-tint);
  color: var(--navy); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
}

.content { padding: 26px 28px 60px; flex: 1; }
.view { display: none; flex-direction: column; gap: 24px; }
.view.active { display: flex; }

/* ---------- KPI tiles ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1100px) { .kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px;
}
.kpi .n { font-family: var(--font-display); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--ink-faint); line-height: 1.3; }
.kpi.accent { border-color: transparent; background: var(--navy); color: #fff; }
.kpi.accent .l { color: #b9c4d6; }

/* ---------- Section headers ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 17px; }
.section-head .hint { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Dashboard panels ---------- */
.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
}
.panel h3 { font-size: 14.5px; }
.panel .sub { font-size: 12px; color: var(--ink-faint); margin-top: -8px; }

.bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .lbl { width: 150px; flex: none; color: var(--ink-soft); }
.bar-row .track { flex: 1; height: 9px; background: var(--bg-sunken); border-radius: 999px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.bar-row .val { width: 26px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

.list-plain { display: flex; flex-direction: column; gap: 0; }
.list-plain .row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--border-soft);
}
.list-plain .row:first-child { border-top: none; }
.list-plain .row .t { font-size: 13.5px; font-weight: 500; }
.list-plain .row .m { font-size: 12px; color: var(--ink-faint); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
  font-family: var(--font-mono);
}
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.neutral { background: var(--bg-sunken); color: var(--ink-soft); }

/* ---------- Pipeline board ---------- */
.board-wrap { overflow-x: auto; padding-bottom: 6px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 12px; }
.stage-col {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; min-height: 200px; overflow: hidden;
}
.stage-col .head {
  padding: 13px 14px 11px; border-bottom: 1px solid var(--border-soft); cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
}
.stage-col .head:hover { background: var(--bg-soft); }
.stage-col .head .top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stage-col .head .name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.stage-col .head .count { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--navy); }
.stage-col .head .alert { font-size: 11px; color: var(--danger); font-weight: 500; }
.stage-col .cards { display: flex; flex-direction: column; gap: 8px; padding: 10px; flex: 1; }
.case-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 5px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.case-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.case-card .id { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.case-card .veh { font-size: 13px; font-weight: 600; }
.case-card .plate { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.case-card .cli { font-size: 12px; color: var(--ink-soft); }
.case-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.case-card .days { font-size: 10.5px; color: var(--ink-faint); }

/* ---------- Aseguradoras ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .ins-grid { grid-template-columns: 1fr; } }
.ins-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ins-card .head { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.ins-card .head h3 { font-size: 15.5px; }
.ins-card .head .ruc { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; }
.ins-card .head .n { text-align: right; }
.ins-card .head .n .num { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--navy); }
.ins-card .head .n .lbl { font-size: 10.5px; color: var(--ink-faint); }
.ins-card .contacts { border-top: 1px solid var(--border-soft); padding: 6px 18px 14px; display: none; flex-direction: column; gap: 10px; }
.ins-card.open .contacts { display: flex; }
.ins-card .contact { display: flex; flex-direction: column; padding-top: 10px; }
.ins-card .contact .name { font-size: 13.5px; font-weight: 600; }
.ins-card .contact .role { font-size: 11.5px; color: var(--ink-faint); }
.ins-card .contact .line { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.chevron { transition: transform .15s ease; }
.ins-card.open .chevron { transform: rotate(180deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg);
  color: var(--ink); font-size: 13.5px; font-weight: 600; padding: 9px 15px; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-soft); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-sunken); }
.btn.danger-o { color: var(--danger); border-color: var(--danger-soft); }
.btn.danger-o:hover { background: var(--danger-soft); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }

/* ---------- Slide-over ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11,37,69,.38); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw);
  background: var(--bg); z-index: 51; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer .d-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.drawer .d-head .titles h2 { font-size: 17px; }
.drawer .d-head .titles .sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.drawer .d-close { background: none; border: none; cursor: pointer; color: var(--ink-faint); padding: 4px; }
.drawer .d-body { padding: 20px 22px 40px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 18px; }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv .k { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .03em; font-family: var(--font-mono); }
.kv .v { font-size: 13.5px; font-weight: 500; }

/* Sin `overflow: hidden` a propósito: dentro de un contenedor flex-column
   (`.d-body`), un hijo flex con `overflow` distinto de `visible` calcula su
   tamaño mínimo automático como cero en vez de basarse en el contenido — la
   tarjeta colapsaba a unos pocos píxeles de alto aunque tuviera texto real
   adentro. El recorte de esquinas se resuelve redondeando `.cb-head`
   directamente, no recortando el contenedor. */
.case-block { border: 1px solid var(--border); border-radius: var(--radius); }
.case-block .cb-head {
  padding: 12px 16px; background: var(--bg-soft); display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.case-block .cb-head .t { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.case-block .cb-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.case-block.locked { opacity: .5; }
.case-block.locked .cb-body { display: none; }
.case-block.current { border-color: var(--navy); }
.case-block.current .cb-head { background: var(--navy-tint); }

.step-num {
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; flex: none;
}
.step-num.done { background: var(--success-soft); color: var(--success); }
.step-num.now { background: var(--navy); color: #fff; }
.step-num.todo { background: var(--bg-sunken); color: var(--ink-faint); }

.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 7px 10px; border-radius: 8px; background: var(--bg-soft); }
.check-row .box {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; font-weight: 700;
  cursor: pointer;
}
.check-row .box.done { background: var(--success); border-color: var(--success); }
.check-row .box.mid { background: var(--warn); border-color: var(--warn); }
.check-row.done .label { text-decoration: none; color: var(--ink); }
.check-row .label { flex: 1; }
.check-row select { border: 1px solid var(--border); border-radius: 6px; font-size: 12px; padding: 3px 6px; background: #fff; font-family: var(--font-body); }

.gate-msg {
  display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; padding: 10px 12px;
  border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-weight: 500;
}
.gate-msg.ok { background: var(--success-soft); color: var(--success); }

.timeline { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 16px 1fr; gap: 12px; }
.tl-row .dotcol { display: flex; flex-direction: column; align-items: center; }
.tl-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); margin-top: 4px; flex: none; }
.tl-row .line { width: 1.5px; flex: 1; background: var(--border); margin-top: 2px; }
.tl-row:last-child .line { display: none; }
.tl-row .txt { padding-bottom: 16px; }
.tl-row .txt .t { font-size: 13px; font-weight: 500; }
.tl-row .txt .d { font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }

.quote-doc { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.quote-doc .qhead { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.quote-doc table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.quote-doc th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.quote-doc td { padding: 7px 4px; border-bottom: 1px solid var(--border-soft); }
.quote-doc tfoot td { border-bottom: none; font-weight: 700; padding-top: 10px; }
.validity-strip { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--navy-tint); border-radius: 8px; font-size: 12.5px; }
.validity-strip .k { color: var(--navy); font-weight: 600; }

.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Modal (wizard, whatsapp) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(11,37,69,.42); z-index: 60; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: var(--bg); border-radius: 16px; width: 100%; max-width: 620px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 760px; }
.modal .m-head { padding: 20px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.modal .m-head h2 { font-size: 18px; }
.modal .m-close { background: none; border: none; cursor: pointer; color: var(--ink-faint); padding: 4px; }
.modal .m-body { padding: 18px 24px 4px; overflow-y: auto; flex: 1; }
.modal .m-foot { padding: 16px 24px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border-soft); margin-top: 12px; }

.steps-track { display: flex; gap: 4px; padding: 0 24px; margin-top: 14px; }
.steps-track .seg { flex: 1; height: 3px; border-radius: 999px; background: var(--border); }
.steps-track .seg.done { background: var(--navy); }
.step-label { font-size: 11.5px; color: var(--ink-faint); padding: 8px 24px 0; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .03em; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 13.5px;
  font-family: var(--font-body); background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 64px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.pick-item { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick-item:hover { border-color: var(--navy); }
.pick-item.selected { border-color: var(--navy); background: var(--navy-tint); }
.pick-item .t { font-size: 13.5px; font-weight: 600; }
.pick-item .s { font-size: 11.5px; color: var(--ink-faint); }

.wa-preview { background: #dcf3e5; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; color: #1a3d2a; }
.wa-to { font-size: 12px; color: var(--ink-faint); margin-bottom: 8px; }

.dropzone { border: 1.5px dashed var(--border); border-radius: 10px; padding: 26px; text-align: center; color: var(--ink-faint); font-size: 12.5px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.photo-thumb { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--bg-sunken), var(--border)); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ok-dot { width: 8px; height: 8px; border-radius: 50%; background: #5cc499; }

/* ---------- Valoración post-entrega ---------- */
.rating-block { display: flex; flex-direction: column; gap: 4px; }
.stars-input { display: flex; gap: 4px; font-size: 26px; line-height: 1; }
.stars-input .star { cursor: pointer; color: var(--border); transition: color .12s ease; user-select: none; }
.stars-input .star:hover, .stars-input .star.sel { color: #e0a324; }
.stars-readonly { font-size: 22px; line-height: 1; color: #e0a324; letter-spacing: 2px; }
.rating-block textarea {
  width: 100%; margin-top: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; padding: 9px 11px;
  resize: vertical; min-height: 56px;
}

/* ---------- Modo presentación ---------- */
body.presentation-mode .app { grid-template-columns: 1fr; }
body.presentation-mode .sidebar { display: none; }
body.presentation-mode .content { padding-bottom: 118px; }
/* La barra inferior ya tiene su propia ✕ para salir — evita el botón duplicado en el header, que además desborda en mobile. */
body.presentation-mode #btnPresentMode { display: none; }
.present-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--navy); color: #fff; padding: 14px 24px; align-items: center;
  justify-content: space-between; gap: 18px; box-shadow: var(--shadow-lg);
}
.present-bar.show { display: flex; }
.present-bar .p-exit { background: none; border: none; color: #b9c4d6; font-size: 16px; cursor: pointer; padding: 4px 8px; flex: none; }
.present-bar .p-exit:hover { color: #fff; }
.present-bar .p-info { flex: 1; min-width: 0; }
.present-bar .p-step { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #8fa3c4; }
.present-bar .p-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-top: 1px; }
.present-bar .p-caption { font-size: 12px; color: #c3cee0; margin-top: 2px; }
.present-bar .p-nav { display: flex; gap: 8px; flex: none; }
.present-bar .p-nav .btn { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.present-bar .p-nav .btn:hover { background: rgba(255,255,255,.1); }
.present-bar .p-nav .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }
.present-bar .p-nav .btn.primary:hover { background: #eef2f7; }
.present-bar .p-nav .btn[disabled] { opacity: .35; cursor: not-allowed; }
@media (max-width: 700px) {
  .present-bar { flex-wrap: wrap; padding: 12px 16px; }
  .present-bar .p-nav { width: 100%; justify-content: flex-end; }
}

/* ---------- misc ---------- */
.empty-hint { font-size: 12px; color: var(--ink-faint); text-align: center; padding: 18px 8px; }
.divider { height: 1px; background: var(--border-soft); border: none; margin: 2px 0; }
.helper { font-size: 12px; color: var(--ink-faint); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }
