/* Trade — hoja de estilos. Tema oscuro por defecto y claro, ambos mediante variables. */
:root {
  --bg: #0b0f14; --surface: #121821; --surface-2: #19212c; --surface-3: #212b38; --border: #243040; --border-soft: #1b2430;
  --text: #e7ebf1; --text-2: #b4bdca; --muted: #8391a3; --accent: #4c8dff; --accent-weak: rgba(76,141,255,.14); --on-accent: #fff;
  --pos: #2fb67a; --neg: #f0605f; --pos-weak: rgba(47,182,122,.14); --neg-weak: rgba(240,96,95,.14); --warn: #e0a52d;
  --shadow: 0 10px 40px rgba(0,0,0,.5);
  --radius: 8px; --sidebar: 224px; --topbar: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f6f8fa; --surface-3: #eceff3; --border: #dde2e9; --border-soft: #e9edf2;
  --text: #121922; --text-2: #3a4553; --muted: #647184; --accent: #1d5fd1; --accent-weak: rgba(29,95,209,.1); --on-accent: #fff;
  --pos: #0e8a50; --neg: #cf3341; --pos-weak: rgba(14,138,80,.1); --neg-weak: rgba(207,51,65,.1); --warn: #a8710a;
  --shadow: 0 10px 40px rgba(20,30,50,.16);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 20px; } h2 { font-size: 14px; } h3 { font-size: 13px; }
.num, td.r, th.r { font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); } .neg { color: var(--neg); } .muted { color: var(--muted); } .small { font-size: 12px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ── Estructura ─────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.brand svg { flex: none; }
.brand small { display: block; font-weight: 500; letter-spacing: .02em; color: var(--muted); font-size: 11px; margin-top: 1px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 6px; color: var(--text-2); font-weight: 500; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-weak); color: var(--accent); }
.nav .sep { height: 1px; background: var(--border-soft); margin: 10px 4px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border-soft); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; color: var(--text-2); }
.sidebar-foot .who { min-width: 0; flex: 1; }
.sidebar-foot .who b { display: block; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .who span { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar); display: flex; align-items: center; gap: 12px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-soft); }
.topbar .brand-m { display: none; font-weight: 700; letter-spacing: .14em; font-size: 13px; align-items: center; gap: 8px; }
.topbar .spacer { flex: 1; }
.mkt-state { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.on { background: var(--pos); } .dot.ext { background: var(--warn); }
.content { padding: 22px 24px 40px; max-width: 1480px; width: 100%; margin: 0 auto; flex: 1; }
.foot { padding: 16px 24px 24px; color: var(--muted); font-size: 11px; max-width: 1480px; margin: 0 auto; width: 100%; }
.bottomnav { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Componentes ────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); min-height: 46px; }
.card-head h2 { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.card-body { padding: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--neg); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.icon { width: 34px; padding: 0; } .btn.icon.sm { width: 28px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 0; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { font-size: 11px; color: var(--muted); margin-left: 4px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.field .hint { font-size: 11px; color: var(--muted); }
.input, select.input, textarea.input { height: 36px; padding: 0 11px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); width: 100%; outline: none; }
textarea.input { height: auto; padding: 8px 11px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { color: var(--neg); font-size: 12px; min-height: 16px; }

.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.pos { background: var(--pos-weak); color: var(--pos); } .badge.neg { background: var(--neg-weak); color: var(--neg); }
.badge.accent { background: var(--accent-weak); color: var(--accent); } .badge.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.chg { display: inline-block; min-width: 62px; text-align: right; padding: 2px 6px; border-radius: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chg.pos { background: var(--pos-weak); } .chg.neg { background: var(--neg-weak); }

/* Tablas */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none; background: var(--surface); }
.t th[data-sort] { cursor: pointer; } .t th[data-sort]:hover { color: var(--text); }
.t th.sorted::after { content: " ↓"; } .t th.sorted.asc::after { content: " ↑"; }
.t td { padding: 9px 12px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--surface-2); }
.t tr.click { cursor: pointer; }
.t .r { text-align: right; } .t .c { text-align: center; }
.t tfoot td { border-top: 1px solid var(--border); border-bottom: 0; font-weight: 600; }
.t.compact td, .t.compact th { padding: 7px 12px; }
.sym { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sym b { font-weight: 600; } .sym span { font-size: 11.5px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.range52 { width: 90px; height: 4px; background: var(--surface-3); border-radius: 2px; position: relative; display: inline-block; vertical-align: middle; }
.range52 i { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--text); border-radius: 1px; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.empty .btn { margin-top: 14px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; min-width: 0; }
.kpi label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.kpi strong { display: block; font-size: 20px; font-weight: 600; margin-top: 5px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { font-size: 12px; font-variant-numeric: tabular-nums; }

/* Mosaico de índices */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: block; transition: border-color .12s; }
.tile:hover { border-color: var(--accent); }
.tile .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tile .top span { font-size: 12px; color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .px { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.tile .bot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 2px; }
.tile .bot b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Barras horizontales */
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 62px; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.bar-track { height: 14px; position: relative; background: linear-gradient(to right, transparent calc(50% - .5px), var(--border) calc(50% - .5px), var(--border) calc(50% + .5px), transparent calc(50% + .5px)); }
.bar-track i { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; }
.bar-track.abs { background: var(--surface-3); border-radius: 3px; height: 8px; }
.bar-track.abs i { top: 0; bottom: 0; left: 0; background: var(--accent); border-radius: 3px; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Listas de datos clave */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.stat { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.stat span { color: var(--muted); } .stat b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.legend span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.legend b { font-variant-numeric: tabular-nums; font-weight: 600; }
.donut-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }

/* Ficha de valor */
.quote-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.quote-head h1 { font-size: 22px; }
.quote-head .meta { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quote-px { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.quote-px .px { font-size: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.quote-px .cur { font-size: 13px; color: var(--muted); font-weight: 500; }
.quote-px .d { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.chart-box { height: 420px; position: relative; }
.chart-box.sm { height: 300px; } .chart-box.xs { height: 180px; }
.chart-legend { position: absolute; top: 8px; left: 12px; z-index: 3; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; display: flex; gap: 10px; flex-wrap: wrap; }
.chart-legend b { color: var(--text); font-weight: 500; }
.loading { display: grid; place-items: center; padding: 50px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { padding: 26px; text-align: center; color: var(--muted); }
.desc { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.note { font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.news a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--border-soft); }
.news a:last-child { border-bottom: 0; } .news a:hover { background: var(--surface-2); }
.news b { font-weight: 500; display: block; } .news span { font-size: 11.5px; color: var(--muted); }
.heat td { text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; padding: 7px 6px !important; min-width: 54px; }
.heat th { text-align: center !important; padding: 7px 6px !important; }
.target-bar { position: relative; height: 6px; background: var(--surface-3); border-radius: 3px; margin: 30px 6px 34px; }
.target-bar .mark { position: absolute; top: -5px; width: 2px; height: 16px; background: var(--muted); }
.target-bar .mark span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; white-space: nowrap; color: var(--muted); }
.target-bar .mark.up span { bottom: 20px; } .target-bar .mark.down span { top: 20px; }
.target-bar .mark.now { background: var(--accent); width: 3px; } .target-bar .mark.now span { color: var(--accent); font-weight: 600; }
.reco { display: flex; height: 22px; border-radius: 4px; overflow: hidden; }
.reco i { display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; color: #fff; min-width: 0; }

/* Buscador */
.search { position: relative; width: min(440px, 100%); }
.search input { padding-left: 34px; }
.search > svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search kbd { position: absolute; right: 9px; top: 8px; font: 11px var(--font); color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; pointer-events: none; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; max-height: 360px; overflow: auto; padding: 4px; }
.dropdown .opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; cursor: pointer; }
.dropdown .opt.sel, .dropdown .opt:hover { background: var(--surface-2); }
.dropdown .opt b { min-width: 74px; font-weight: 600; } .dropdown .opt span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.dropdown .opt em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.dropdown .none { padding: 12px; color: var(--muted); text-align: center; font-size: 13px; }
.menu { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 70; padding: 4px; min-width: 190px; }
.menu button { display: flex; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 5px; cursor: pointer; gap: 8px; align-items: center; }
.menu button:hover { background: var(--surface-2); } .menu button.danger { color: var(--neg); }

/* Modal y avisos */
.modal-bg { position: fixed; inset: 0; background: rgba(4,8,14,.62); z-index: 100; display: grid; place-items: center; padding: 16px; overflow: auto; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; width: min(520px, 100%); box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); }
.modal-head h2 { font-size: 15px; }
.modal-body { padding: 18px; } .modal-foot { padding: 12px 18px 16px; display: flex; justify-content: flex-end; gap: 8px; }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface-3); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 6px; box-shadow: var(--shadow); max-width: 340px; font-size: 13px; }
.toast.err { border-left-color: var(--neg); } .toast.ok { border-left-color: var(--pos); }

/* ── Acceso ─────────────────────────────────────────────────────────────── */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: linear-gradient(160deg, #0d1520 0%, #0b0f14 60%); border-right: 1px solid var(--border); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: #e7ebf1; position: relative; overflow: hidden; }
.auth-side svg.deco { position: absolute; inset: auto 0 0 0; width: 100%; opacity: .5; }
.auth-side h1 { font-size: 30px; line-height: 1.2; max-width: 420px; position: relative; }
.auth-side p { color: #8f9bad; max-width: 400px; margin-top: 14px; position: relative; }
.auth-side .brand { padding: 0; font-size: 15px; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: min(380px, 100%); }
.auth-card h2 { font-size: 22px; margin-bottom: 6px; } .auth-card > p { color: var(--muted); margin: 0 0 24px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .btn { height: 40px; }
.auth-card .switch { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-card .switch a { color: var(--accent); font-weight: 500; }
.notice { padding: 12px 14px; border-radius: 6px; background: var(--accent-weak); color: var(--text); font-size: 13px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

/* ── Móvil ──────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) { .g-main, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .brand-m { display: flex; }
  .mkt-state, .search kbd { display: none; }
  .search { flex: 1; width: auto; }
  .content { padding: 16px 14px 96px; }
  .foot { padding: 0 14px 96px; margin-top: -76px; }
  .bottomnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); padding: 4px 0; font-weight: 500; }
  .bottomnav a svg { width: 21px; height: 21px; }
  .bottomnav a.active { color: var(--accent); }
  .g2 { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi strong { font-size: 17px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chart-box { height: 320px; } .chart-box.sm { height: 250px; }
  .quote-px .px { font-size: 28px; }
  .t td, .t th { padding: 9px 10px; }
  .sym span { max-width: 130px; }
  .bar-row { grid-template-columns: 112px 1fr 58px; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .donut-wrap .legend { width: 100%; }
  .auth { grid-template-columns: 1fr; } .auth-side { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .toasts { left: 14px; right: 14px; bottom: 84px; } .toast { max-width: none; }
  .modal-bg { align-items: end; padding: 0; } .modal { border-radius: 14px 14px 0 0; width: 100%; padding-bottom: env(safe-area-inset-bottom); }
}
@media (min-width: 901px) { .show-sm { display: none !important; } }
