:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-alt: #ececea;
  --surface-dark: #111111;
  --text: #151515;
  --muted: #73736e;
  --line: #deded9;
  --accent: #111111;
  --accent-soft: #e8e8e4;
  --success: #16623d;
  --warning: #8a5700;
  --danger: #a32626;
  --shadow: 0 18px 42px rgba(0, 0, 0, .10);
  --radius-xl: 24px;
  --radius: 17px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; color: var(--text); }
body { display: flex; justify-content: center; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(17,17,17,.18); outline-offset: 2px; }

.app-shell { width: 100%; max-width: 760px; min-height: 100vh; padding-bottom: 92px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 11px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(245,245,243,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(222,222,217,.78);
}
.brand-button { border: 0; background: white; width: 58px; height: 48px; border-radius: 14px; padding: 8px; display: grid; place-items: center; box-shadow: 0 5px 18px rgba(0,0,0,.06); }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.page-heading { min-width: 0; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .15em; }
h1 { margin: 0; font-size: 23px; line-height: 1.05; letter-spacing: -.025em; }
.content { padding: 17px 15px 30px; }

.bottom-nav {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: 760px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.nav-item { border: 0; background: transparent; color: var(--muted); padding: 7px 4px; border-radius: 13px; display: grid; gap: 3px; justify-items: center; font-size: 10px; font-weight: 800; }
.nav-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: white; background: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 5px 18px rgba(0,0,0,.035); }
.card + .card { margin-top: 12px; }
.hero { position: relative; overflow: hidden; background: var(--surface-dark); color: white; border: 0; padding: 22px; min-height: 190px; }
.hero::after { content: "A"; position: absolute; right: -18px; bottom: -56px; font-family: Georgia, serif; font-size: 190px; font-weight: 400; color: rgba(255,255,255,.045); transform: rotate(-4deg); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .muted { color: rgba(255,255,255,.66); }
.hero-kicker { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.hero-date { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.68); text-transform: capitalize; }
.hero-number { font-size: 52px; line-height: .95; font-weight: 850; margin: 18px 0 5px; letter-spacing: -.055em; }
.hero-label { font-size: 13px; color: rgba(255,255,255,.67); }
.next-card { margin-top: 16px; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); }
.next-card strong { display: block; font-size: 15px; margin-bottom: 3px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.stat { min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.stat-value { font-size: 31px; font-weight: 850; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 2px 10px; }
.section-header h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }

.primary-button, .secondary-button, .danger-button, .icon-button {
  border: 0; border-radius: var(--radius-sm); padding: 11px 14px; font-weight: 820; min-height: 44px;
}
.primary-button { background: var(--accent); color: white; }
.primary-button:active { transform: translateY(1px); }
.secondary-button { background: var(--surface-alt); color: var(--text); }
.danger-button { background: #f6dfdf; color: var(--danger); }
.icon-button { background: var(--surface); border: 1px solid var(--line); padding: 9px 12px; }
.install-button { white-space: nowrap; font-size: 12px; min-height: 38px; }
.full { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .secondary-button { background: white; color: var(--text); }

.appointment-list, .client-list, .service-list, .team-list { display: grid; gap: 9px; }
.appointment, .client-row, .service-row, .team-row {
  display: flex; align-items: center; gap: 12px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
}
.appointment { transition: transform .14s ease, box-shadow .14s ease; }
.appointment:active { transform: scale(.99); }
.time-pill { min-width: 61px; text-align: center; padding: 9px 7px; border-radius: 11px; background: var(--surface-dark); color: white; font-weight: 850; font-size: 13px; }
.flex-1 { flex: 1; min-width: 0; }
.title-line { font-weight: 820; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.status { font-size: 10px; font-weight: 850; padding: 5px 8px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.status.confirmed { background: #dff1e8; color: var(--success); }
.status.pending { background: #fff0d4; color: var(--warning); }
.status.completed { background: #e6e6e3; color: #4a4a47; }
.status.cancelled { background: #f6dfdf; color: var(--danger); }
.status.no_show { background: #ece3f6; color: #694190; }

.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.toolbar input { flex: 1; }
.date-controls { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; margin-bottom: 10px; }
.date-label { text-align: center; font-weight: 850; font-size: 14px; text-transform: capitalize; }
.filter-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 11px 0; }

input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 12px; min-height: 45px;
}
input::placeholder, textarea::placeholder { color: #9a9a94; }
textarea { min-height: 104px; resize: vertical; }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 820; color: #383835; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-help { font-size: 11px; color: var(--muted); margin-top: -4px; }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-dark); color: white; display: grid; place-items: center; font-weight: 900; flex: 0 0 auto; }
.avatar.large { width: 72px; height: 72px; font-size: 23px; }
.client-header { display: flex; gap: 14px; align-items: center; }
.client-card-button { border: 0; text-align: left; width: 100%; color: inherit; }
.cut-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.cut-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.cut-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--surface-alt); }
.cut-placeholder { aspect-ratio: 1/1; display: grid; place-items: center; background: var(--surface-dark); color: white; font-size: 33px; }
.cut-body { padding: 12px; }
.cut-body p { white-space: pre-wrap; }

.notice { padding: 12px 14px; border-radius: 14px; background: #f0f0ed; border: 1px solid #dcdcd7; color: #555550; font-size: 12px; margin-bottom: 12px; }
.notice strong { color: var(--text); }
.warning-box { padding: 12px 14px; border-radius: 14px; background: #fff4dc; border: 1px solid #edd497; color: #765600; font-size: 12px; }
.empty { padding: 29px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.45); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.52); display: flex; align-items: flex-end; justify-content: center; }
.modal { width: 100%; max-width: 760px; max-height: 93vh; overflow: auto; background: var(--bg); border-radius: 25px 25px 0 0; padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
.modal-header { position: sticky; top: -18px; background: rgba(245,245,243,.96); backdrop-filter: blur(12px); padding: 6px 0 14px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.modal-header h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.close-button { width: 39px; height: 39px; border-radius: 50%; border: 0; background: var(--surface-alt); font-size: 20px; }

.toast { position: fixed; left: 50%; bottom: 98px; transform: translate(-50%, 20px); background: #111; color: white; padding: 11px 14px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 80; font-size: 12px; font-weight: 820; box-shadow: var(--shadow); white-space: nowrap; max-width: calc(100vw - 28px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.list-button { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 820; color: var(--text); }
.list-button + .list-button { margin-top: 9px; }
.list-button .list-sub { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 650; }
.settings-logo { width: 150px; max-height: 70px; object-fit: contain; display: block; margin-bottom: 16px; }
.version-card { text-align: center; color: var(--muted); font-size: 11px; margin-top: 18px; }

@media (min-width: 640px) {
  .content { padding-left: 22px; padding-right: 22px; }
  .cut-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .modal { border-radius: 24px; margin-bottom: 18px; max-height: 88vh; }
  .modal-backdrop { align-items: center; padding: 18px; }
}

@media (max-width: 390px) {
  .grid-2, .form-grid.two { grid-template-columns: 1fr; }
  .cut-grid { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: 56px 1fr auto; padding-left: 12px; padding-right: 12px; }
  .brand-button { width: 52px; height: 45px; }
  .content { padding-left: 12px; padding-right: 12px; }
  .status { display: none; }
}

/* Astro Barber Staff v0.3 */
.topbar { grid-template-columns: 64px 1fr auto auto; }
.profile-button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-dark); color: white; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; letter-spacing: .02em; padding: 0;
}
.auth-root { width: 100%; min-height: 100vh; }
.auth-root[hidden] { display: none; }
.login-shell {
  min-height: 100vh; width: 100%; display: grid; place-items: center;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 15% 10%, rgba(0,0,0,.08), transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(0,0,0,.06), transparent 28%),
    var(--bg);
}
.login-card {
  width: min(100%, 430px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; padding: 28px 22px; box-shadow: var(--shadow);
}
.login-logo { width: 185px; height: 80px; object-fit: contain; display: block; margin: 0 auto 24px; }
.login-card h1 { font-size: 30px; margin-bottom: 10px; }
.login-copy { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 20px; }
.login-error { background: #f6dfdf; color: var(--danger); border: 1px solid #ecc3c3; border-radius: 12px; padding: 11px 12px; font-size: 12px; font-weight: 750; margin-bottom: 12px; }
.login-help { margin-top: 16px; padding: 12px; border-radius: 13px; background: var(--surface-alt); color: var(--muted); font-size: 11px; line-height: 1.5; }
.login-help code { background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 2px 5px; }
.account-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.account-preview span { padding: 5px 8px; background: #f6f6f4; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.user-welcome { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.user-welcome > div { display: grid; gap: 2px; }
.user-welcome strong { font-size: 17px; }
.role-chip { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 6px 9px; border-radius: 999px; background: #e9e9e5; color: #51514d; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.role-chip.admin { background: #111; color: #fff; }
.segment-control { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: var(--surface-alt); border-radius: 14px; margin-bottom: 11px; }
.segment-control button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 850; }
.segment-control button.active { background: var(--surface); color: var(--text); box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.archived-row { opacity: .72; }
.title-with-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.audit-inline { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.permission-card { display: grid; gap: 5px; padding: 15px; border-radius: 15px; background: #f0f0ed; border: 1px solid var(--line); margin: 9px 0; }
.permission-card strong { font-size: 13px; }
.permission-card span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.logout-list { margin-top: 14px !important; color: var(--danger); }
.profile-card { display: grid; justify-items: center; text-align: center; gap: 10px; }
.profile-card h2 { margin: 0; }
.profile-avatar { width: 82px; height: 82px; font-size: 26px; }
.profile-data { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.profile-data span { color: var(--muted); }
.activity-list { display: grid; gap: 9px; }
.activity-row { display: flex; align-items: flex-start; gap: 11px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 12px; line-height: 1.45; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-dark); margin-top: 5px; flex: 0 0 auto; }

@media (max-width: 390px) {
  .topbar { grid-template-columns: 52px 1fr auto; }
  .install-button { display: none !important; }
  .profile-button { width: 39px; height: 39px; }
  .login-card { padding: 24px 18px; border-radius: 24px; }
}

/* Astro Barber Staff v0.5 · horarios y disponibilidad */
.agenda-actions { margin-top: 10px; }
.flex-action { flex: 1 1 180px; }
.availability-summary, .schedule-list, .block-list { display: grid; gap: 9px; }
.availability-card, .schedule-card, .block-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px; color: var(--text); text-align: left;
}
.availability-card span, .schedule-card span, .block-row span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; line-height: 1.35; }
.small-avatar { width: 39px; height: 39px; font-size: 11px; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot-button { min-height: 45px; border-radius: 12px; border: 1px solid var(--line); font-weight: 850; font-size: 12px; }
.slot-button.available { background: var(--surface); color: var(--success); border-color: #b9d8c8; }
.slot-button.occupied { background: var(--surface-dark); color: white; border-color: var(--surface-dark); }
.slot-button.blocked { background: #f2e4e4; color: var(--danger); border-color: #e3c3c3; opacity: .78; cursor: not-allowed; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; margin: -2px 1px 10px; }
.slot-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot.available { background: #4a936d; }
.legend-dot.occupied { background: #111; }
.legend-dot.blocked { background: #b75b5b; }
.block-date { min-width: 78px; padding-right: 10px; border-right: 1px solid var(--line); }
.block-date strong { text-transform: capitalize; }
.small-close { width: 34px; height: 34px; font-size: 18px; flex: 0 0 auto; }
.field-title { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 820; color: #383835; }
.day-selector { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day-check { display: block; }
.day-check input { position: absolute; opacity: 0; pointer-events: none; }
.day-check span { min-height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 900; }
.day-check input:checked + span { background: var(--surface-dark); color: white; border-color: var(--surface-dark); }

@media (max-width: 390px) {
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day-selector { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* Astro Barber Staff v0.7 · estadísticas */
.statistics-toolbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: end;
  margin: 12px 0;
}
.month-picker { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.month-picker input { min-height: 42px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 8px 11px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.statistics-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; background: var(--surface-dark); color: white; }
.statistics-hero h2 { margin: 4px 0 5px; font-size: 25px; text-transform: capitalize; letter-spacing: -.03em; }
.statistics-hero p { margin: 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.45; }
.statistics-hero .eyebrow { color: rgba(255,255,255,.54); }
.statistics-hero .secondary-button { background: white; color: #111; border-color: white; flex: 0 0 auto; }
.statistics-hero .secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.statistics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 11px 0; }
.metric-card { min-width: 0; display: grid; gap: 7px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(0,0,0,.035); }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.metric-card > strong { font-size: clamp(22px, 6vw, 31px); line-height: 1; letter-spacing: -.045em; overflow: hidden; text-overflow: ellipsis; }
.metric-trend { width: fit-content; max-width: 100%; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-trend.good { background: #e3f2e9; color: var(--success); }
.metric-trend.bad { background: #f5e3e3; color: var(--danger); }
.metric-trend.neutral { background: var(--surface-alt); color: var(--muted); }
.statistics-section { margin-top: 11px; }
.statistics-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.statistics-section-heading h2 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.02em; }
.statistics-section-heading span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.statistics-section-heading > strong { font-size: 24px; letter-spacing: -.04em; }
.status-breakdown, .ranking-list, .simple-ranking, .demand-list, .frequent-list { display: grid; gap: 11px; }
.status-breakdown-row { display: grid; gap: 6px; }
.status-breakdown-label, .ranking-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.status-breakdown-label span, .ranking-title span { color: var(--muted); }
.statistics-track { width: 100%; height: 8px; overflow: hidden; background: var(--surface-alt); border-radius: 999px; }
.statistics-fill { display: block; min-width: 0; height: 100%; border-radius: inherit; background: #111; }
.statistics-fill.completed { background: var(--success); }
.statistics-fill.confirmed { background: #404040; }
.statistics-fill.cancelled { background: var(--danger); }
.statistics-fill.no-show { background: var(--warning); }
.statistics-fill.barber { background: #111; }
.statistics-fill.service { background: #50504d; }
.statistics-note { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.45; }
.ranking-row { display: flex; align-items: center; gap: 10px; }
.ranking-number, .simple-rank { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--surface-alt); color: var(--muted); font-size: 9px; font-weight: 900; }
.ranking-content { min-width: 0; display: grid; gap: 7px; }
.ranking-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 9px; }
.simple-ranking-row { display: flex; align-items: center; gap: 10px; }
.simple-ranking-row .flex-1 { min-width: 0; display: grid; gap: 6px; }
.statistics-columns { display: grid; grid-template-columns: 1fr; gap: 11px; }
.demand-row { display: grid; grid-template-columns: minmax(115px, .8fr) 1.2fr; gap: 10px; align-items: center; }
.demand-row > div:first-child { display: grid; gap: 2px; }
.demand-row strong { text-transform: capitalize; font-size: 11px; }
.demand-row span { color: var(--muted); font-size: 9px; }
.mini-demand-track { height: 7px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.mini-demand-track span { display: block; height: 100%; background: #111; border-radius: inherit; }
.frequent-row { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; color: var(--text); text-align: left; }
.frequent-row .flex-1 { display: grid; gap: 2px; }
.frequent-row strong { font-size: 11px; }
.frequent-row .flex-1 span { color: var(--muted); font-size: 9px; }
.statistics-footer { margin-top: 11px; }

@media (min-width: 640px) {
  .statistics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .statistics-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .statistics-hero { align-items: stretch; flex-direction: column; }
  .statistics-hero .secondary-button { width: 100%; }
  .metric-card { padding: 13px; }
  .metric-card > strong { font-size: 23px; }
  .ranking-meta { gap: 5px 8px; }
}
