/* ============================================================================
   portal.css  -  Portal de Licitaciones (movil-first)
   Estetica inspirada en Stripe / Linear / Airbnb: limpio, cards, jerarquia,
   estados de color claros, microinteracciones y transiciones suaves.
   ============================================================================ */

:root {
    --bg:            #f5f7fb;
    --surface:       #ffffff;
    --surface-2:     #f0f3f9;
    --ink:           #0b1221;
    --ink-2:         #3a455c;
    --muted:         #7a8699;
    --line:          #e6eaf2;
    --brand:         #4f46e5;   /* indigo */
    --brand-600:     #4338ca;
    --brand-700:     #3730a3;
    --brand-soft:    #eef0fe;

    --green:   #16a34a;  --green-bg:  #e7f8ee;
    --amber:   #d97706;  --amber-bg:  #fef3e2;
    --blue:    #2563eb;  --blue-bg:   #e7efff;
    --red:     #dc2626;  --red-bg:    #fdeaea;
    --purple:  #7c3aed;  --purple-bg: #f1eafe;
    --gray:    #64748b;  --gray-bg:   #eef1f6;

    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.06);
    --shadow-lg: 0 10px 40px rgba(16,24,40,.12);
    --topbar-h:  56px;
    --bottomnav-h: 64px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- Top bar */
.app-topbar {
    position: sticky; top: 0; z-index: 40;
    height: var(--topbar-h);
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.app-topbar__inner {
    max-width: 960px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
}
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.app-brand__dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.app-brand__name { font-size: 15px; letter-spacing: -.01em; }
.app-user { display: flex; align-items: center; gap: 12px; }
.app-user__name { font-size: 13px; color: var(--muted); max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user__logout { color: var(--ink-2); font-size: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.app-user__logout:hover { background: var(--surface-2); text-decoration: none; }

/* ----------------------------------------------------------------- Layout */
.app-main {
    max-width: 960px; margin: 0 auto;
    padding: 20px 16px 24px;
}
body.has-bottomnav .app-main { padding-bottom: calc(var(--bottomnav-h) + 24px + env(safe-area-inset-bottom)); }

.page-head { margin: 4px 0 18px; }
.page-head__eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600); }
.page-head__title { margin: 2px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.page-head__sub { margin: 0; color: var(--muted); font-size: 14px; }

.section { margin-top: 26px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section__title { font-size: 16px; font-weight: 700; margin: 0; }
.section__link { font-size: 13px; font-weight: 600; }

/* ----------------------------------------------------------------- KPIs */
.kpi-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-card {
    display: block; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
    color: var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
    position: relative; overflow: hidden;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.kpi-card:active { transform: translateY(0) scale(.99); }
.kpi-card__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; margin-bottom: 10px; }
.kpi-card__num { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.kpi-card__label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi-card--green  .kpi-card__icon { background: var(--green-bg);  color: var(--green); }
.kpi-card--blue   .kpi-card__icon { background: var(--blue-bg);   color: var(--blue); }
.kpi-card--amber  .kpi-card__icon { background: var(--amber-bg);  color: var(--amber); }
.kpi-card--purple .kpi-card__icon { background: var(--purple-bg); color: var(--purple); }

/* ----------------------------------------------------------------- Alert strip */
.alert-strip {
    margin-top: 16px; display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border: 1px solid #e3e0ff; border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 13.5px; color: var(--ink-2);
}
.alert-strip i { color: var(--brand-600); font-size: 16px; }
.alert-strip a { margin-left: auto; font-weight: 700; }

/* ----------------------------------------------------------------- Cards (licitaciones) */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.lcard {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
    animation: cardIn .4s var(--ease) both;
}
.lcard--link { display: block; color: var(--ink); }
.lcard--link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.lcard--purple { border-color: #e4d8fb; background: linear-gradient(180deg, #fdfbff, #fff); }

.lcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.lcard__route { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.lcard__city { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard__city:last-child { text-align: right; }
.lcard__arrow { color: var(--brand); flex: 0 0 auto; }
.lcard__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: var(--ink-2); font-size: 13px; }
.lcard__meta i { color: var(--muted); }
.lcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lcard__notes { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 9px 11px; }
.lcard__quoted { margin-top: 12px; font-size: 13.5px; color: var(--blue); background: var(--blue-bg); border-radius: 10px; padding: 9px 11px; }
.lcard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lcard__quote-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.lcard__price { font-size: 18px; font-weight: 800; color: var(--ink); }
.lcard__alt { font-size: 13.5px; color: var(--amber); font-weight: 600; }
.lcard__ts { font-size: 12px; color: var(--muted); }

@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- Badges & chips */
.badge-pill {
    display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; line-height: 1.2; white-space: nowrap;
}
.b-green  { background: var(--green-bg);  color: var(--green); }
.b-amber  { background: var(--amber-bg);  color: var(--amber); }
.b-blue   { background: var(--blue-bg);   color: var(--blue); }
.b-red    { background: var(--red-bg);    color: var(--red); }
.b-purple { background: var(--purple-bg); color: var(--purple); }
.b-gray   { background: var(--gray-bg);   color: var(--gray); }

.time-chip { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.t-green { color: var(--green); background: var(--green-bg); }
.t-amber { color: var(--amber); background: var(--amber-bg); }
.t-red   { color: var(--red);   background: var(--red-bg); }

.chip-compat   { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 4px 10px; border-radius: 999px; }
.chip-incompat { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--gray);  background: var(--gray-bg);  padding: 4px 10px; border-radius: 999px; }
.chip-part     { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--brand-700); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.ver-chip      { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; color: var(--purple); background: var(--purple-bg); padding: 2px 8px; border-radius: 999px; }

/* ----------------------------------------------------------------- Buttons */
.btn { font-weight: 600; border-radius: 12px; transition: transform .12s var(--ease), box-shadow .16s var(--ease), background .16s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 4px 14px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-soft { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.btn-soft:hover { background: #e7ebf3; color: var(--ink); }
.btn-lg { padding: 13px 20px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block-mobile { width: 100%; }
@media (min-width: 560px) { .btn-block-mobile { width: auto; } }

/* ----------------------------------------------------------------- Empty / states */
.empty {
    text-align: center; padding: 40px 20px; color: var(--muted);
    background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty i { font-size: 34px; color: #c3cbd9; display: block; margin-bottom: 10px; }
.empty p { margin: 0; font-size: 14px; }

.state-inline { text-align: center; padding: 40px 20px; }
.state-inline i { font-size: 40px; color: var(--brand); }
.state-inline h2 { margin: 12px 0 6px; font-size: 20px; }
.state-inline p { color: var(--muted); margin-bottom: 18px; }
.state-inline--muted i { color: var(--muted); }

.back-link { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.back-link:hover { text-decoration: none; color: var(--ink); }

/* ----------------------------------------------------------------- Detail (cotizar) */
.detail-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.detail-head__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-route__pt { display: flex; align-items: center; gap: 12px; }
.detail-route__pt small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.detail-route__pt strong { font-size: 16px; }
.detail-route__line { width: 2px; height: 20px; background: var(--line); margin: 4px 0 4px 5px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.dot--o { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.dot--d { background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }

.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 560px) { .detail-grid { grid-template-columns: repeat(3, 1fr); } }
.detail-item { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.detail-item i { font-size: 18px; color: var(--brand); }
.detail-item small { display: block; font-size: 11px; color: var(--muted); }
.detail-item strong { font-size: 14px; }
.detail-item--ok { background: var(--green-bg); border-color: #c8edd6; }
.detail-item--ok i { color: var(--green); }
.detail-notes { margin-top: 14px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; color: var(--ink-2); }

/* ----------------------------------------------------------------- Quote form */
.quote-form { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.quote-form__title { font-size: 17px; font-weight: 800; margin: 0 0 16px; }

.mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 14px; margin-bottom: 18px; }
.mode-switch__btn { border: 0; background: transparent; padding: 10px 6px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .16s var(--ease); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mode-switch__btn i { font-size: 16px; }
.mode-switch__btn.is-active { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow); }

.field-block { margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin: 7px 0 0; }

.price-input { display: flex; align-items: center; background: var(--surface-2); border: 2px solid var(--line); border-radius: 14px; padding: 6px 14px; transition: border-color .16s, background .16s; }
.price-input:focus-within { border-color: var(--brand); background: #fff; }
.price-input__cur { font-size: 18px; font-weight: 800; color: var(--muted); }
.price-input__field { flex: 1; border: 0; background: transparent; font-size: 30px; font-weight: 800; padding: 8px 6px; outline: none; color: var(--ink); width: 100%; letter-spacing: -.02em; }

.form-control { border-radius: 12px; border: 2px solid var(--line); padding: 12px 14px; font-size: 15px; }
.form-control:focus { border-color: var(--brand); box-shadow: none; }

/* ----------------------------------------------------------------- Bottom nav */
.bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-around; align-items: stretch;
}
.bottomnav__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600;
    text-decoration: none; transition: color .16s; position: relative;
}
.bottomnav__item i { font-size: 20px; transition: transform .18s var(--ease); }
.bottomnav__item.is-active { color: var(--brand-600); }
.bottomnav__item.is-active i { transform: translateY(-1px) scale(1.08); }
.bottomnav__item.is-active::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.bottomnav__item:hover { text-decoration: none; color: var(--brand-600); }

/* ----------------------------------------------------------------- Toasts */
.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottomnav-h) + 16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
body:not(.has-bottomnav) .toast-stack { bottom: 20px; }
.toast-msg {
    pointer-events: auto; display: flex; align-items: center; gap: 10px;
    background: var(--ink); color: #fff; padding: 12px 15px; border-radius: 14px;
    box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500;
    animation: toastIn .3s var(--ease) both;
}
.toast-msg.is-out { animation: toastOut .25s var(--ease) forwards; }
.toast-msg i { font-size: 17px; }
.toast-msg--ok    { background: #0f5132; }
.toast-msg--ok i  { color: #6ee7a8; }
.toast-msg--err   { background: #842029; }
.toast-msg--err i { color: #ffb4ba; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ----------------------------------------------------------------- Skeletons */
.skeleton-list { display: flex; flex-direction: column; gap: 12px; }
.skeleton-row { height: 64px; border-radius: var(--radius-sm); background: linear-gradient(100deg, #eef1f6 30%, #f6f8fc 50%, #eef1f6 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ----------------------------------------------------------------- Config matrix */
.save-hint { min-height: 22px; font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 6px; transition: opacity .2s; opacity: 0; }
.save-hint.show { opacity: 1; }

.cfg-matrix-wrap { display: none; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 680px) { .cfg-matrix-wrap:not([hidden]) { display: block !important; } .cfg-cards { display: none !important; } }
.cfg-matrix { width: 100%; border-collapse: collapse; }
.cfg-matrix th, .cfg-matrix td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.cfg-matrix thead th { background: var(--surface-2); font-size: 13px; position: sticky; top: var(--topbar-h); }
.cfg-matrix__corner { text-align: left !important; }
.cfg-th { display: inline-flex; align-items: center; color: var(--ink-2); }
.cfg-origin { text-align: left !important; }
.cfg-origin strong { display: block; font-size: 14px; }
.cfg-origin small { color: var(--muted); font-size: 12px; }

.cfg-check { display: inline-block; cursor: pointer; }
.cfg-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.cfg-check__box { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); color: transparent; transition: all .16s var(--ease); }
.cfg-check input:checked + .cfg-check__box { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.05); }
.cfg-check__box i { font-size: 17px; }
.cfg-check input:focus-visible + .cfg-check__box { box-shadow: 0 0 0 4px var(--brand-soft); }

/* Movil: cards con switches */
.cfg-cards { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 680px) { .cfg-cards { display: none; } }
.cfg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cfg-card__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cfg-card__head i { font-size: 18px; color: var(--brand); }
.cfg-card__head strong { display: block; font-size: 15px; }
.cfg-card__head small { color: var(--muted); font-size: 12.5px; }
.cfg-card__body { padding: 6px 16px 10px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row__label { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }

.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { display: inline-block; width: 50px; height: 30px; border-radius: 999px; background: #d3dae6; position: relative; transition: background .2s var(--ease); }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px var(--brand-soft); }
.js-cfg.is-saving + * { opacity: .6; }

/* ----------------------------------------------------------------- Screens (acceso / estados) */
.screen-center { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 80% at 50% -10%, #eef2ff 0%, var(--bg) 60%); }
.welcome { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px 26px; box-shadow: var(--shadow-lg); max-width: 380px; width: 100%; }
.welcome__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.welcome__check { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green); font-size: 36px; animation: pop .5s var(--ease) both; }
.welcome__title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.welcome__hello { font-size: 15px; color: var(--ink-2); margin: 0 0 4px; }
.welcome__sub { font-size: 14px; color: var(--muted); margin: 0 0 22px; }

.state-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 26px; box-shadow: var(--shadow-lg); max-width: 380px; width: 100%; }
.state-card__icon { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; }
.state-card__title { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.state-card__msg { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.state-card--error  .state-card__icon { background: var(--red-bg);   color: var(--red); }
.state-card--warn   .state-card__icon { background: var(--amber-bg); color: var(--amber); }
.state-card--ok     .state-card__icon { background: var(--green-bg); color: var(--green); }

.animate-pop { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* History modal items */
.hist-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist-item:last-child { border-bottom: 0; }
.hist-ver { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--purple-bg); color: var(--purple); }
.hist-body { flex: 1; }
.hist-body strong { font-size: 15px; }
.hist-body small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
