/* ==========================================================================
   GestIA · Vista de inicio: portada de bienestar, accesos, vacaciones, calendario, solicitudes y equipo
   ========================================================================== */

/* ---------- Portada de bienestar ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); overflow: hidden; }
.hero-main { display: flex; flex-direction: column; gap: 16px; padding: 24px 26px 26px; min-width: 0; }
.hero h2 { margin-top: -6px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; letter-spacing: -.04em; }
.hero .name { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-quote { margin: 0; padding: 16px 18px 18px; border-radius: var(--r-lg); background: var(--tone-soft); box-shadow: inset 4px 0 0 var(--tone); animation: pop .45s var(--spring) .15s both; }
.hero-quote figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-quote-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 750; color: var(--tone-ink); background: var(--surface); }
.hero-quote-tag .i { width: 14px; height: 14px; }
.hero-quote-kicker { font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--tone-ink); }
.hero-quote blockquote { position: relative; margin: 0; padding-left: 34px; }
.hero-quote-mark { position: absolute; left: 0; top: 2px; color: var(--tone); opacity: .55; }
.hero-quote-mark .i { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.hero-quote p { margin: 0; font-size: clamp(16px, 1.45vw, 19px); font-weight: 650; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.hero-pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin: auto 0 0; padding: 0; list-style: none; }
.pulse-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  font: inherit;
  text-align: left;
  color: var(--ink);
  animation: rise .4s var(--ease) .1s both;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
li:nth-child(2) > .pulse-chip, .pulse-chip:nth-child(2) { animation-delay: .18s; }
.pulse-chip > .i:first-child { width: 36px; height: 36px; flex: none; padding: 9px; border-radius: 12px; color: var(--tone-ink); background: var(--tone-soft); }
.pulse-chip span { display: grid; min-width: 0; }
.pulse-chip small { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
/* El nombre completo se lee: hasta dos líneas, y la cuenta regresiva va debajo para no quitarle espacio. */
.pulse-chip strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; font-weight: 750; line-height: 1.3; }
.pulse-count { justify-self: start; margin-top: 5px; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: 750; white-space: nowrap; color: var(--tone-ink); background: var(--tone-soft); }
.pulse-chip.is-action { cursor: pointer; border-color: var(--tone-soft); }
.pulse-chip.is-dewi strong { -webkit-line-clamp: 3; }
.pulse-dewi { --dewi-size: 44px; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tone-soft); }
.pulse-chip.is-action > .i:last-child { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--tone-ink); transition: transform .25s var(--ease); }
.pulse-chip.is-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pulse-chip.is-action:hover > .i:last-child { transform: translateX(3px); }
.pulse-chip.is-action:focus-visible { outline: 3px solid var(--ring-focus); outline-offset: 2px; }
.pulse-chip.is-action:active { transform: scale(.98); }
.hero-photos { position: relative; isolation: isolate; overflow: hidden; min-height: 320px; background: var(--grad-deep); }
.hero-show { position: absolute; inset: 0; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photos { min-height: 220px; order: -1; }
}
@media (max-width: 560px) {
  .hero-main { gap: 14px; padding: 18px 18px 20px; }
  .hero-quote { padding: 14px 14px 16px; }
  .hero-quote blockquote { padding-left: 28px; }
  .hero-pulse { grid-template-columns: 1fr; }
  .hero-photos { min-height: 170px; }
}

/* ---------- Accesos rápidos ---------- */
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font: inherit;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  animation: rise .38s var(--ease) both;
  animation-delay: calc(120ms + var(--i, 0) * 45ms);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.quick-action .icon-tile { flex: none; transition: transform .35s var(--spring); }
.quick-text { display: grid; min-width: 0; }
.quick-text strong { font-size: 13.5px; font-weight: 750; line-height: 1.25; }
.quick-text small { overflow: hidden; font-size: 12px; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.quick-action:hover { transform: translateY(-3px); border-color: var(--tone-soft); box-shadow: var(--shadow-md); }
.quick-action:hover .icon-tile { transform: rotate(-8deg) scale(1.08); }
.quick-action:active { transform: scale(.98); }
.quick-action:focus-visible { outline: 3px solid var(--ring-focus); outline-offset: 2px; }
@media (min-width: 1680px) { .quick-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick-action { padding: 12px; gap: 10px; }
  .quick-text small { display: none; }
}

.balance { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); overflow: hidden; }
.balance-main { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; min-width: 0; }
.balance-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.balance-figure { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; }
.balance-figure strong { font-size: clamp(64px, 6.6vw, 88px); font-weight: 800; letter-spacing: -.055em; line-height: .9; color: var(--navy-800); }
.balance-figure .unit { font-size: 24px; font-weight: 750; color: var(--ink-2); }
.balance-figure .hint { flex-basis: 100%; margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.balance-unlock { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); background: var(--green-50); }
.balance-unlock .i { width: 16px; height: 16px; flex: none; color: var(--green-500); }
.balance-unlock b { color: var(--ink); }
.balance-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.legend-card {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.legend-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.legend-card .swatch { width: 12px; height: 12px; margin-top: 6px; flex: none; border-radius: 4px; }
.legend-card b { display: block; font-size: 14.5px; font-weight: 750; }
.legend-card .num { display: block; margin-bottom: 1px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.legend-card small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.legend-expired { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.legend-expired .swatch { display: inline-block; width: 8px; height: 8px; margin: 0 6px 0 0; border-radius: 2px; }
.legend-expired.is-below { display: none; }
.legend-card.is-hold { background: #fffaf0; border-color: #fde7b8; }
.balance-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
/* Recomendación de programar vacaciones al llegar al tope de días acumulados: ámbar, cálida y sin alarma. */
.balance-advice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  border-radius: var(--r-md);
  color: var(--tone-ink);
  background: var(--tone-soft);
  box-shadow: inset 4px 0 0 var(--tone);
  animation: pop .4s var(--spring) .25s both;
  transition: transform .25s var(--ease);
}
.balance-advice:hover { transform: translateY(-1px); }
.balance-advice .icon-tile { width: 34px; height: 34px; border-radius: 10px; color: var(--tone-ink); background: var(--surface); }
.balance-advice .icon-tile .i { width: 18px; height: 18px; }
.balance-advice p { margin: 0; font-size: 13px; line-height: 1.45; }
.balance-advice b { font-weight: 800; }

@media (max-width: 1000px) {
  .balance { grid-template-columns: 1fr; }
}

/* «Tus vacaciones» compacta y la solicitud en curso, apiladas junto al calendario */
.home-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.home-stack > .card:last-child { flex: 1; }
.balance.is-compact { display: flex; flex-direction: column; }
.balance.is-compact .balance-main { flex: 1; gap: 12px; padding: 18px 20px 20px; }
.balance.is-compact .card-title h3 { font-size: 16px; }
.balance.is-compact .balance-figure strong { font-size: clamp(48px, 4.4vw, 64px); }
.balance.is-compact .balance-figure .unit { font-size: 18px; }
.balance.is-compact .balance-legend { grid-template-columns: 1fr; gap: 8px; }
.balance.is-compact .legend-card { align-items: flex-start; padding: 9px 12px; }
.balance.is-compact .legend-card b { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.balance.is-compact .legend-card .num { display: inline; margin: 0; font-size: 18px; }
.balance.is-compact .balance-actions .btn { flex: 1 1 0; }
/* Celular: cifra, recuadros en una fila y botones lado a lado; el detalle largo queda en la barra. */
@media (max-width: 560px) {
  .balance-main { gap: 12px; padding: 18px 18px 20px; }
  .balance-figure strong { font-size: clamp(48px, 14vw, 60px); }
  .balance-figure .unit { font-size: 20px; }
  .balance-figure .hint { margin-top: 6px; font-size: 12.5px; }
  .balance-figure .hint.is-optional, .legend-card .legend-detail, .legend-card .legend-expired { display: none; }
  .balance-legend { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .legend-card { gap: 6px; padding: 9px 8px 10px 10px; border-radius: 12px; }
  .legend-card .swatch { width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; }
  .legend-card b { font-size: 11.5px; line-height: 1.3; color: var(--ink-2); }
  .legend-card .num { font-size: 19px; color: var(--ink); }
  .legend-expired.is-below { display: block; margin-top: -4px; }
  .balance-advice { gap: 10px; padding: 9px 12px 9px 10px; }
  .balance-advice .icon-tile { display: none; }
  .balance-advice p { font-size: 12.5px; }
  .balance-actions { flex-wrap: nowrap; gap: 8px; padding-top: 0; }
  .balance-actions .btn { --h: 44px; flex: 1 1 0; min-width: 0; padding: 0 12px; }
  .balance-actions .wide-only { display: none; }
}

/* Solicitud en curso */
.pending-body { display: grid; gap: 20px; }
.pending-range { display: flex; align-items: center; gap: 14px; }
.pending-range strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.pending-range span { font-size: 13px; color: var(--ink-3); }
.stepper { position: relative; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; margin: 0; padding: 0; list-style: none; }
.stepper li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.stepper li::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper li.done::before { background: var(--green-500); }
.stepper li.current::before { background: linear-gradient(90deg, var(--green-500), var(--amber-500)); }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 50%; color: var(--ink-4); background: #fff; border: 2px solid var(--line); }
.step-dot .i { width: 16px; height: 16px; stroke-width: 2.5; }
.stepper .done .step-dot { color: #fff; background: var(--green-500); border-color: var(--green-500); }
.stepper .current { color: var(--ink); }
.stepper .current .step-dot { --pulse: rgba(245, 158, 11, .5); color: #fff; background: var(--amber-500); border-color: var(--amber-500); }
.stepper .current .step-dot .i { animation: flip 3s ease-in-out infinite; }
.stepper small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.pending-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: var(--surface-2); }
.pending-note .i { width: 17px; height: 17px; margin-top: 1px; color: var(--blue-600); }

/* Calendario */
.cal-nav { display: flex; gap: 2px; }
.cal-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cal-month { min-width: 0; }
.cal-title { margin-bottom: 8px; text-align: center; font-size: 14px; font-weight: 750; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 3px; }
.cal-dow { padding: 4px 0; text-align: center; font-size: 11px; font-weight: 750; color: var(--ink-4); }
.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cal-day.weekend { color: var(--ink-3); }
.cal-day.today { color: var(--blue-700); font-weight: 800; box-shadow: inset 0 0 0 2px var(--blue-200); }
.cal-day.mark { border-radius: 0; }
.cal-day.mark-pending { background: var(--amber-100); color: var(--amber-800); }
.cal-day.mark-approved { background: var(--green-100); color: var(--green-700); }
.cal-day.mark-manager { background: var(--manager-away); color: var(--manager-away-ink); }
.cal-day.mark-start { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.cal-day.mark-end { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.today-ring { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--blue-200); }
.swatch-manager { background: var(--violet-500); }
.cal-legend .flag { width: 15px; height: 10px; border-radius: 2px; }

/* Feriados: banderas en la esquina del día y, si es del país de la persona, el número en coral */
.cal-flags { position: absolute; top: 3px; right: 3px; display: flex; gap: 1px; pointer-events: none; }
.cal-flags .flag { width: 9px; height: 6px; border-radius: 1.5px; vertical-align: top; }
.cal-day.holiday-own { color: var(--holiday-own); font-weight: 800; }
.cal-day.holiday-own:not(.mark, .in-range, .preview, .range-start, .range-end, .busy-pending, .busy-approved) { background: var(--holiday-own-soft); }
.cal-note { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-md); font-size: 13px; line-height: 1.45; color: var(--ink-2); background: var(--violet-50); }
.cal-note .icon-tile { width: 30px; height: 30px; border-radius: 10px; flex: none; }
.cal-note b { color: var(--ink); }
.cal-holidays { margin-top: 12px; }
.cal-holidays .eyebrow { margin: 0 0 8px; }
.cal-holidays ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cal-holidays li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; font-size: 13px; color: var(--ink-2); transition: background-color .15s var(--ease); }
.cal-holidays li:hover { background: var(--surface-2); }
.cal-holidays li.is-own { color: var(--ink); font-weight: 650; }
.cal-holiday-date { display: grid; place-items: center; width: 38px; flex: none; line-height: 1.05; }
.cal-holiday-date b { font-size: 15px; font-weight: 800; color: var(--ink); }
.cal-holidays li.is-own .cal-holiday-date b { color: var(--holiday-own); }
.cal-holiday-date small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--ink-3); }
.cal-holidays-empty { margin: 0; font-size: 12.5px; color: var(--ink-3); }
button.cal-day { width: 100%; transition: background-color .15s, color .15s, box-shadow .2s; }
button.cal-day:hover:not(:disabled) { background: var(--blue-100); color: var(--blue-700); }
button.cal-day:disabled { color: var(--ink-4); cursor: not-allowed; }
.cal-day.busy-pending { color: #8f5600 !important; background: repeating-linear-gradient(135deg, #fde7b8 0 3px, #fff7e6 3px 7px); }
.cal-day.busy-approved { color: #0b7349 !important; background: repeating-linear-gradient(135deg, #c6eedb 0 3px, #effaf5 3px 7px); }
.cal-day.in-range { border-radius: 0; background: var(--blue-100); color: var(--blue-700); }
.cal-day.preview { border-radius: 0; background: var(--blue-50); color: var(--blue-700); }
.cal-day.range-start, .cal-day.range-end { z-index: 1; color: #fff !important; font-weight: 800; background: var(--blue-600) !important; box-shadow: 0 8px 16px -8px rgba(47, 91, 234, .8); }
.cal-day.range-start { border-radius: 10px 0 0 10px; }
.cal-day.range-end { border-radius: 0 10px 10px 0; }
.cal-day.range-start.range-end, .cal-day.range-single { border-radius: 10px; }
@media (max-width: 680px) {
  .cal-wrap { grid-template-columns: 1fr; }
  .cal-wrap .cal-month + .cal-month { display: none; }
}

/* Ficha laboral */
.facts { display: grid; gap: 2px; padding: 12px 12px 14px; }
.fact { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background-color .15s; }
.fact:hover { background: var(--surface-2); }
.fact .icon-tile { width: 36px; height: 36px; border-radius: 11px; }
.fact .icon-tile .i { width: 17px; height: 17px; }
.fact-text { flex: 1; min-width: 0; }
.fact-text span { display: block; font-size: 12px; color: var(--ink-3); }
.fact-text strong { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
.fact-text strong small { font-size: 12px; font-weight: 600; color: var(--ink-3); }

/* Bloque de equipo */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-head h2 { margin-top: 3px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.review-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line-soft); transition: background-color .15s; }
.review-item:hover { background: var(--surface-2); }
.review-item.leaving, .req-row.leaving { animation: leave .45s var(--ease) forwards; pointer-events: none; }
@keyframes leave { to { opacity: 0; transform: translateX(28px); } }
.review-main { min-width: 0; }
.review-main strong { display: block; font-size: 14px; font-weight: 700; }
.review-main small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.review-actions { display: flex; gap: 6px; }
@media (max-width: 560px) {
  .review-item { grid-template-columns: auto minmax(0, 1fr); }
  .review-actions { grid-column: 1 / -1; }
  .review-actions .btn { flex: 1; }
}
.countries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 22px 22px; }
.country { display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--surface-2); transition: transform .25s var(--ease), box-shadow .25s; }
.country:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.country-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 750; }
.country-big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.country-big small { margin-left: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.country-rows { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.country-rows div { display: flex; justify-content: space-between; gap: 8px; }
.country-rows b { color: var(--ink); font-variant-numeric: tabular-nums; }
.country-rows span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 440px) { .countries { grid-template-columns: 1fr; } }

.bars { display: grid; gap: 8px; padding: 16px 22px 20px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 180px) minmax(0, 1fr); align-items: center; gap: 14px; padding: 4px 0; }
.bar-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bar-area { min-width: 0; padding-right: 92px; }
.bar-scale { position: relative; height: 18px; }
.bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transition: width .45s var(--ease); }
.bar .meter { height: 100%; border-radius: 0 4px 4px 0; background: transparent; }
.bar .meter-seg:first-child { border-radius: 0; }
.bar-row .meter-seg { transition: width .45s var(--ease), opacity .2s var(--ease); }
.bars-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 22px 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.bars-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bar-value { position: absolute; top: 50%; left: calc(var(--w) + 8px); transform: translateY(-50%); font-size: 12.5px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; animation: fade .5s ease .7s both; }
.bar-value small { font-weight: 600; color: var(--ink-3); }
.bars:hover .bar-row:not(:hover) .meter-seg { opacity: .55; }
.bar-row:hover .bar-label { color: var(--ink); }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr; gap: 4px; } }

.rank { width: 22px; flex: none; text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-4); }
.days-cell { flex: none; text-align: right; }
.days-cell strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.days-cell small { font-size: 11.5px; color: var(--ink-3); }
.top-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px 22px 22px; }
.top-card { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; border-radius: 16px; text-align: center; border: 1px solid var(--line-soft); background: var(--surface-2); transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.top-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.top-card strong { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
.top-card .days-cell { text-align: center; }
@media (max-width: 900px) { .top-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
