/* tracking-delta — sistema visual minimalista (oscuro por defecto, claro opcional) */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e6e9ee;
  --border: #e3e6eb;
  --text: #0d1117;
  --text-2: #3d4654;
  --muted: #6b7584;
  --up: #0f9d63;
  --up-soft: rgba(15, 157, 99, .12);
  --down: #d93f3f;
  --down-soft: rgba(217, 63, 63, .11);
  --accent: #2a78d6;
  --pill-on-bg: #0d1117;
  --pill-on-text: #ffffff;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b0d; --surface: #131518; --surface-2: #1b1e23; --surface-3: #252930; --border: #23272d;
    --text: #f2f4f7; --text-2: #c7cdd6; --muted: #8b93a1; --up: #2fd18a; --up-soft: rgba(47, 209, 138, .13);
    --down: #ff6464; --down-soft: rgba(255, 100, 100, .13); --accent: #3987e5; --pill-on-bg: #f2f4f7;
    --pill-on-text: #0a0b0d; --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0b0d; --surface: #131518; --surface-2: #1b1e23; --surface-3: #252930; --border: #23272d;
  --text: #f2f4f7; --text-2: #c7cdd6; --muted: #8b93a1; --up: #2fd18a; --up-soft: rgba(47, 209, 138, .13);
  --down: #ff6464; --down-soft: rgba(255, 100, 100, .13); --accent: #3987e5; --pill-on-bg: #f2f4f7;
  --pill-on-text: #0a0b0d; --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum", "cv11"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- cabecera y navegación ---------- */
.topnav {
  position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border);
}
.topnav .in { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand .logo { width: 30px; height: 30px; border-radius: 10px; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 15px; }
.tabs-nav { display: flex; gap: 4px; margin-left: 12px; }
.tabs-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.tabs-nav a:hover { color: var(--text); background: var(--surface-2); }
.tabs-nav a.on { color: var(--text); background: var(--surface-2); }
.tabs-nav svg, .bottomnav svg { width: 18px; height: 18px; }
.topnav .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.bottomnav { display: none; }

main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: 30px; letter-spacing: -.02em; margin: 2px 0 0; font-weight: 700; }
h2 { font-size: 19px; letter-spacing: -.01em; margin: 0; font-weight: 650; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sub { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }

/* ---------- superficies ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g-21 { grid-template-columns: 2fr 1fr; }

/* ---------- pills, chips, segmentados ---------- */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); border: 1px solid transparent; white-space: nowrap; }
.pill:hover { color: var(--text); }
.pill.on { background: var(--pill-on-bg); color: var(--pill-on-text); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { padding: 6px 14px; border-radius: 999px; font-size: 13px; border: 1px solid var(--border); color: var(--text-2); }
.chip:hover { border-color: var(--muted); }
.chip.on { border-color: var(--text); color: var(--text); background: var(--surface-2); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--pill-on-bg); color: var(--pill-on-text); }

/* ---------- números ---------- */
.hero-value { font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.hero-value small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.delta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; font-weight: 600; }
.delta-line > .num { white-space: nowrap; }
.badge { white-space: nowrap; display: inline-block; padding: 2px 8px; border-radius: 7px; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.badge.up { background: var(--up-soft); color: var(--up); }
.badge.down { background: var(--down-soft); color: var(--down); }
.badge.flat { background: var(--surface-2); color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }

/* ---------- listas tipo Delta ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--surface-2); }
.row .main { flex: 1; min-width: 0; }
.row .t1 { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t2 { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { text-align: right; }
.row .end .t1 { font-variant-numeric: tabular-nums; }
.row .end .t2 { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
/* Iconos de activo: recuadro redondeado. Con logo, la imagen ya trae su fondo (blanco u oscuro según el
   dibujo); sin logo, iniciales sobre un tono propio del ticker (--h), legible en claro y en oscuro. */
.logo-img { --h: 220; width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  overflow: hidden; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: hsl(var(--h) 70% 50% / .14); color: hsl(var(--h) 65% 36%);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 60% 40% / .18); }
.logo-img.has-img { background: #fff; box-shadow: 0 0 0 1px var(--border); }
.logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-img.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 13px; }
:root[data-theme="dark"] .logo-img:not(.has-img) { background: hsl(var(--h) 60% 55% / .16); color: hsl(var(--h) 80% 74%);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 70% 70% / .16); }
:root[data-theme="dark"] .logo-img.has-img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- KPIs ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stats.kpi5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 96px; }
.stat .k { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.stat .k .lbl { overflow: hidden; text-overflow: ellipsis; }
.stat .v { font-size: 22px; font-weight: 650; margin-top: 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat .h { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
.kv div > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.kv div b { font-weight: 650; font-size: 17px; font-variant-numeric: tabular-nums; }

/* tooltip de ayuda */
.info { position: relative; display: inline-flex; }
.info > button { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; }
.info > button:hover { color: var(--text); border-color: var(--muted); }
/* La ayuda se coloca con JS (position: fixed) para no quedar recortada ni heredar estilos de la tarjeta. */
.info .tip { display: none; position: fixed; z-index: 100; width: 280px; max-width: calc(100vw - 24px); padding: 14px 16px;
  border-radius: 14px; background: var(--surface-3); color: var(--text); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left;
  white-space: normal; overflow-wrap: break-word; box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.info .tip b { display: block; margin-bottom: 4px; font-weight: 650; }
.info.open .tip { display: block; }
.info.open > button { color: var(--text); border-color: var(--text); }

/* ---------- gráficos ---------- */
.chart { position: relative; height: 320px; }
.chart.sm { height: 240px; }
.chart.tall { height: 400px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend i.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; height: 2px; }
/* Rendimiento vs índices: alturas fijas para que cambiar de vista no mueva nada */
.seg-group { display: inline-flex; align-items: center; gap: 6px; }
.bench-sel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; }
.ret-head > div { min-height: 76px; }
.ret-head .line2 { min-height: 1.45em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toggle-chip { border: 1px solid var(--border); background: var(--surface); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.toggle-chip[aria-pressed="false"] { opacity: .45; }
.toggle-chip i { width: 10px; height: 10px; border-radius: 50%; }

/* movers */
.movers { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; justify-content: space-evenly; gap: 12px; align-items: end; min-height: 260px; padding-top: 8px; }
.mover { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); }
.mover .val { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mover .bar { width: 46px; border-radius: 10px 10px 4px 4px; min-height: 6px; transition: height .4s ease; }
.mover .bar.up { background: linear-gradient(180deg, var(--up), color-mix(in srgb, var(--up) 15%, transparent)); }
.mover .bar.down { background: linear-gradient(180deg, var(--down), color-mix(in srgb, var(--down) 15%, transparent)); }
.mover .sym { font-size: 13px; font-weight: 650; }
.mover:hover .bar { filter: brightness(1.15); }

/* heatmap mensual */
.heat { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: separate; border-spacing: 4px; font-size: 12.5px; }
.heat col.yc { width: 52px; }
.heat col.tc { width: 84px; }
.heat th { color: var(--muted); font-weight: 500; padding: 4px; text-align: center; }
.heat th:first-child { text-align: left; }
.heat td { text-align: center; height: 36px; padding: 0 2px; border-radius: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.heat td.y { text-align: left; color: var(--muted); font-weight: 600; background: none; }
.heat td.tot { font-weight: 700; }

/* ---------- tablas ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tbl th:first-child, .tbl td:first-child, .tbl .l { text-align: left; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }
/* Operaciones: tabla sin scroll horizontal */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search-box { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; max-width: 380px; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); }
.search-box input { border: 0; background: none; outline: none; flex: 1; min-width: 0; color: var(--text); }
table.ops { table-layout: fixed; }
table.ops td, table.ops th { white-space: normal; vertical-align: middle; padding: 10px 12px; }
table.ops td .muted { font-size: 12.5px; }
table.ops col.c-date { width: 112px; } table.ops col.c-type { width: 104px; } table.ops col.c-qp { width: 170px; }
table.ops col.c-tot { width: 132px; } table.ops col.c-port { width: 104px; } table.ops col.c-act { width: 100px; }
.asset-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ellip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.acts { text-align: right; white-space: nowrap; }
table.ops td:first-child { white-space: nowrap; }
td.acts form { display: inline; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 13px; display: inline-grid; }
.icon-btn.danger { color: var(--down); }

/* ---------- controles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 550; font-size: 14px; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { opacity: .9; }
.btn.go { background: var(--up); border-color: var(--up); color: #fff; }
.btn.block { width: 100%; padding: 14px; font-size: 15px; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; }
.link.danger { color: var(--down); }
select.sel { appearance: none; border: 1px solid var(--border); background: var(--surface); padding: 8px 34px 8px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b93a1' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.field { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.field .ctl { display: flex; align-items: center; gap: 10px; }
.field input, .field select, .field textarea { flex: 1; border: 0; background: none; padding: 2px 0; font-size: 17px; outline: none; min-width: 0; }
.field select.inline { flex: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.field input::placeholder { color: var(--muted); opacity: .7; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
label.lb { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.in { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
textarea.in { min-height: 140px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.in:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--up); }
.switch input:checked + span::after { transform: translateX(20px); }
.typeseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.typeseg label { border: 1.5px solid var(--border); border-radius: 12px; padding: 11px; text-align: center; font-weight: 600; cursor: pointer; color: var(--muted); }
.typeseg input { display: none; }
.typeseg input:checked + label.buy { border-color: var(--up); color: var(--text); background: var(--up-soft); }
.typeseg input:checked + label.sell { border-color: var(--down); color: var(--text); background: var(--down-soft); }
.typeseg input:checked + label.dividend { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
details.more summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "− "; }

/* búsqueda */
.search-wrap { position: relative; }
.suggest { position: absolute; z-index: 40; top: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-top: 6px; max-height: 320px; overflow: auto; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.suggest div { padding: 10px 14px; cursor: pointer; font-size: 14px; }
.suggest div:hover { background: var(--surface-2); }
.suggest small { color: var(--muted); }

/* ---------- modal ---------- */
dialog.sheet { border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
dialog.sheet::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 8px; }
.sheet-body { padding: 8px 22px 22px; }

/* ---------- pestañas de contenido ---------- */
.ctabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin: 24px 0 20px; }
.ctabs a { padding: 12px 2px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ctabs a.on { color: var(--text); border-color: var(--text); }

/* tarjetas de transacción */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.txcard { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; background: var(--surface); }
.txcard .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.txcard .hd .act { margin-left: auto; display: flex; gap: 14px; font-size: 13px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 650; border: 1px solid; }
.tag.buy { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); background: var(--up-soft); }
.tag.sell { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); background: var(--down-soft); }
.tag.dividend, .tag.cash { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.txcard .kv { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

.msg { padding: 12px 16px; border-radius: 14px; background: var(--surface-2); margin-bottom: 18px; font-size: 14px; }
.msg.err { background: var(--down-soft); color: var(--text); }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.cash-row { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.cash-row .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.login { max-width: 380px; margin: 14vh auto; }
.desc { color: var(--text-2); max-height: 7.5em; overflow: hidden; line-height: 1.55; }
.desc.open { max-height: none; }
.skeleton { color: transparent !important; background: var(--surface-2); border-radius: 6px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

@media (max-width: 960px) {
  .g2, .g3, .g-21 { grid-template-columns: 1fr; }
  .stats.kpi5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  /* carteras y filtros en una sola fila deslizable, como en las apps */
  .pills, .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .pills::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
  .pill, .chip { flex: none; }
  .hide-sm, table.ops col.c-qp, table.ops col.c-port { display: none; }
  table.ops col.c-date { width: 84px; } table.ops col.c-type { width: 86px; } table.ops col.c-tot { width: 104px; } table.ops col.c-act { width: 44px; }
  td.acts form { display: none; }
  table.ops td, table.ops th { padding: 9px 6px; }
  .stats.kpi5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs-nav { display: none; }
  .topnav .in { padding: 10px 16px; }
  main { padding: 18px 16px 110px; }
  .hero-value { font-size: 40px; }
  h1 { font-size: 25px; }
  .row { padding: 12px 14px; }
  .bottomnav {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; justify-content: space-around;
    padding: 6px; border-radius: 26px; border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px);
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 7px 10px; border-radius: 20px; flex: 1; }
  .bottomnav a.on { color: var(--text); background: var(--surface-2); }
  .movers { grid-auto-columns: 52px; gap: 4px; justify-content: space-between; overflow-x: auto; }
  .mover .bar { width: 34px; }
  .mover .val { font-size: 11px; }
}
