/* ==========================================================
   Kétogenic — Refonte « carnet »
   Papier, encre, un seul vert olive. Filets fins, pas de dégradés,
   typographie éditoriale. Chargé en dernier : il prime sur le reste.
   ========================================================== */
:root {
  --bg: #f6f3ec;
  --bg-2: #efeadf;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --line: #e3ddd0;
  --border: #e3ddd0;
  --border-strong: #cfc8b8;
  --text: #1c2118;
  --text-2: #4a5045;
  --text-3: #8a8f83;
  --olive: #3f5f2a;
  --olive-soft: #e9eedf;
  --warm: #b5532f;
  /* Une seule couleur d'accent partout */
  --lime: var(--olive); --leaf: var(--olive); --citrus: var(--olive); --berry: var(--olive); --sky: var(--olive);
  --coral: var(--warm); --tomato: var(--warm);
  --r: 12px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 12px; --r-xl: 14px;
  --shadow-lg: 0 18px 40px -24px rgba(28,33,24,.28);
}
body { background: var(--bg); font-size: 16px; }
::selection { background: var(--olive-soft); }

/* ---------- Typo ---------- */
.display, h1.display, h2.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; }
.eyebrow, .label, .side-label, .mission-box small, .mission-read small {
  font-family: var(--font); font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); line-height: 1.3;
}
.sec-t { font-family: var(--font); font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.panel h3, .card h3 { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: -0.01em; }
.panel .panel-sub { color: var(--text-2); font-size: 14px; }
.tiny { color: var(--text-3); }

/* ---------- Surfaces ---------- */
.card, .panel.card, .kpi, .offer, .j-stage, .act-card, .mrec, .bilan-card, .j-strip, .gauge-card, .tile, .qa {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; backdrop-filter: none;
}
.card::before, .card::after, .tile::after, .qa::after, .kpi::after, .offer::before { display: none !important; }
.hello-blobs, .upgrade::after { display: none !important; }
.bilan-hero, .prof-hero, .ob-nums div, .sc-card, .j-stage.done, .ob-offer, .ob-lead, .week-value, .lead-sec, .f14-alert { background: var(--surface) !important; }
.j-stage.done { background: var(--surface) !important; }

/* ---------- Boutons ---------- */
.btn { border-radius: 10px; font-weight: 700; letter-spacing: 0; box-shadow: none; }
.btn-primary { background: var(--text); border-color: var(--text); color: #fff; }
.btn-primary:hover { background: var(--olive); border-color: var(--olive); transform: none; }
.btn-ghost, .btn-line { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover, .btn-line:hover { border-color: var(--text); }
.chip { border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; }
.chip.lime { background: var(--olive-soft); border-color: transparent; color: var(--olive); }
.segmented { border-radius: 10px; background: var(--bg-2); padding: 3px; border: 0; }
.segmented button { border-radius: 8px; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(28,33,24,.12); }
.input, input.input, select.input, textarea.input { border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong); }
.input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); outline: 0; }

/* ---------- Coquille : barre latérale ---------- */
.sidebar { background: var(--bg); border-right: 1px solid var(--line); }
.sidebar .logo { font-family: var(--font-display); font-size: 22px; }
.side-nav { gap: 2px; margin-top: 8px; }
.nav-pill { display: none !important; }
.side-nav button { position: relative; background: transparent !important; box-shadow: none !important; border-radius: 8px; color: var(--text-2); font-weight: 600; padding: 10px 12px; }
.side-nav button:hover { color: var(--text); background: rgba(28,33,24,.04) !important; }
.side-nav button.active { color: var(--text); font-weight: 700; }
.side-nav button.active .ic { color: var(--olive); }
.side-nav button.active::after { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--olive); }
.upgrade { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 6px 0; }
.upgrade b { font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.upgrade p { color: var(--text-2); }
.upgrade .btn { background: var(--text); color: #fff; border-color: var(--text); }
.upgrade .btn.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }

/* ---------- En-tête de page ---------- */
.main { padding-top: 34px; max-width: 1180px; }
.topbar { margin-bottom: 18px; align-items: flex-end; }
.topbar h1 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; }
.topbar .sub { font-size: 15px; color: var(--text-2); }
.streak { background: transparent; border: 1px solid var(--line); border-radius: 8px; box-shadow: none; color: var(--text-2); }
.streak b { color: var(--text); }
.avatar { background: var(--olive); border-radius: 50%; box-shadow: none; }
.back { background: none; border: 0; padding: 0; margin: 0 0 6px; display: block; font: inherit; font-size: 14px; font-weight: 700; color: var(--olive); cursor: pointer; }
/* Aide repliable */
#guide { margin: -6px 0 22px; }
.hint summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--olive); }
.hint summary::-webkit-details-marker { display: none; }
.hint summary::before { content: "?"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; }
.hint[open] summary { margin-bottom: 10px; }
.hint > div { max-width: 640px; padding: 14px 16px; border-left: 2px solid var(--olive); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--text-2); font-size: 14.5px; }
.hint p { margin: 0 0 8px; }
.hint ol { margin: 0; padding-left: 20px; }
.adv-toggle { border-radius: 8px !important; }

/* Sous-navigation : onglets soulignés */
.subnav { background: transparent; border-radius: 0; padding: 0; gap: 22px; width: 100%; border-bottom: 1px solid var(--line); margin: 0 0 24px; }
.subnav button { padding: 10px 0; border-radius: 0; background: none !important; box-shadow: none !important; color: var(--text-3); position: relative; }
.subnav button.active { color: var(--text); }
.subnav button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--olive); }

/* ---------- Aujourd'hui ---------- */
.today { gap: 18px; }
.day-head { padding: 4px 0 2px; }
.day-head h2 { font-size: clamp(34px, 4.4vw, 48px); margin: 6px 0 8px; line-height: 1.05; }
.day-msg { margin: 0; max-width: 60ch; color: var(--text-2); font-size: 16px; }
.day-msg b { color: var(--text); }
.gauge-card { width: 100%; display: grid; gap: 12px; padding: 18px 20px; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color 160ms var(--e-out); }
.gauge-card:hover { border-color: var(--border-strong); }
.gc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gc-val b { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; }
.gc-val small { color: var(--text-2); font-size: 14px; }
.gc-bar { height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.gc-bar i { display: block; height: 100%; width: 100%; border-radius: 5px; background: var(--olive); transition: width 600ms var(--e-out); }
.gauge-card.over .gc-val b { color: var(--warm); }
.j-strip { background: var(--surface); padding: 14px 18px; }
.js-steps i { height: 4px; border-radius: 2px; background: var(--bg-2); }
.js-steps i.done, .js-steps i.on { background: var(--olive); }
.js-steps i.on { background: linear-gradient(90deg, var(--olive) 50%, var(--olive-soft) 50%); }
.j-strip em { color: var(--olive); }
.dm.card, .next-step { border-left: 3px solid var(--olive); border-radius: 4px var(--r) var(--r) 4px; padding: 20px 22px; background: var(--surface); }
.dm h3 { font-size: 22px; }
.ns-ic { background: var(--olive-soft); color: var(--olive); border-radius: 12px; width: 48px; height: 48px; }
.dm-day { background: var(--olive-soft) !important; color: var(--olive); border-radius: 12px !important; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-links button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: border-color 160ms var(--e-out), transform 160ms var(--e-out); }
.quick-links button:hover { border-color: var(--border-strong); }
.quick-links button:active { transform: scale(0.97); }
.quick-links .ic-svg { width: 18px; height: 18px; color: var(--olive); }
.today-cols { gap: 18px; }
.check { border-radius: 10px; border: 1px solid transparent; }
.check.done { background: transparent !important; border-color: transparent; }
.check .box { border-radius: 6px; width: 22px; height: 22px; }
.check.done .box { background: var(--olive); border-color: var(--olive); }
.meal-list .ml { border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); }
.empty-mini { border: 1px dashed var(--border-strong); border-radius: 10px; background: transparent; }
.bilan-card, .sc-card { padding: 16px 18px; }
.bc-ic { color: var(--olive); }
.bilan-card i, .sc-card i { color: var(--olive); }

/* ---------- Parcours ---------- */
.j-track { gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.j-stage { border: 0; border-radius: 0; border-right: 1px solid var(--line); padding: 22px 18px; opacity: 1 !important; box-shadow: none !important; }
.j-stage:last-child { border-right: 0; }
.j-stage.on { background: #fbfaf5 !important; box-shadow: inset 0 3px 0 var(--olive) !important; }
.j-stage.next .j-head b, .j-stage.next p { color: var(--text-3); }
.j-ic { border-radius: 50%; width: 34px; height: 34px; background: var(--bg-2); }
.j-stage.on .j-ic, .j-stage.done .j-ic { background: var(--olive); }
.j-todo .box { border-radius: 5px; }
.j-todo.ok .box { background: var(--olive); border-color: var(--olive); }
.j-book { background: var(--olive-soft); color: var(--olive); border-radius: 10px; }
.prog-start .ps-photo img { filter: saturate(.9); }

/* ---------- Tuiles & listes ---------- */
.tiles { gap: 0 !important; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.tile { border: 0 !important; border-radius: 0 !important; border-bottom: 1px solid var(--line) !important; display: grid !important; grid-template-columns: auto 1fr auto; column-gap: 14px; align-items: center; padding: 16px 18px !important; }
.tile:nth-child(odd) { border-right: 1px solid var(--line) !important; }
.tile b { margin: 0 !important; font-size: 17px !important; }
.tile > span:not(.tile-ic) { grid-column: 2; font-size: 13.5px !important; }
.tile .tile-ic { grid-row: span 2; width: 38px !important; height: 38px !important; border-radius: 50% !important; background: var(--olive-soft) !important; color: var(--olive) !important; }
.tile .tile-go { grid-column: 3; grid-row: 1 / span 2; color: var(--text-3); font-style: normal; }
.tile:hover { transform: none !important; box-shadow: none !important; background: #fbfaf5; }
.tile:hover .tile-ic { transform: none !important; }

/* ---------- Progrès / bilan / score ---------- */
.bilan-kpis > div, .sc-kpis div, .ob-nums div { background: var(--bg) !important; border: 0; border-top: 0 !important; border-radius: 10px; }
.bilan-kpis b, .ob-nums b, .sc-kpis b { color: var(--text) !important; font-family: var(--font-display); font-weight: 400; }
.sc-ring { --c: var(--olive) !important; }
.sc-ring b { font-family: var(--font-display); font-weight: 400; color: var(--text) !important; }
.sc-pill { border-radius: 8px; }
.g { background: var(--olive) !important; } .o { background: #c08a2c !important; } .r { background: var(--warm) !important; }
.sc-part .bar i { background: var(--olive); }
.f14-d { border-radius: 8px; }
.f14-d.sel { background: var(--text); }
.f14-d.today { border-color: var(--olive); }
.f14-score b { color: var(--text); font-family: var(--font-display); font-weight: 400; }
.mrec { border-radius: var(--r); }
.mrec-img em { background: var(--text); border-radius: 6px; }

/* ---------- Recettes ---------- */
.rc-photo { border-radius: 10px; }
.rc-type { border-radius: 6px; background: rgba(255,255,255,.95); }
.food { border-radius: 10px !important; background: var(--surface) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.food:hover { border-color: var(--border-strong) !important; transform: none !important; }
.grade { font-weight: 700; }
.food-ic { border-radius: 10px; background: color-mix(in srgb, var(--t) 10%, #fff); }

/* ---------- Offres ---------- */
.offer { padding: 24px 22px; }
.offer.best { border: 1.5px solid var(--text); box-shadow: none; }
.offer-stamp { background: var(--text); border-radius: 6px; animation: none; }
.offer-price b { color: var(--text) !important; font-family: var(--font-display); font-weight: 400; }
.offer li::before { background: var(--olive-soft) !important; color: var(--olive) !important; }
.offer.mine { outline: 2px solid var(--olive-soft); }
.week-value, .ebook-row { border: 1px solid var(--line); }
.wv span .ic-svg { color: var(--olive); }

/* ---------- Onboarding & modales ---------- */
.overlay { background: rgba(28,33,24,.45); backdrop-filter: blur(3px); }
.modal { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(28,33,24,.5); background: var(--surface); }
.steps-dots i { height: 3px; border-radius: 2px; background: var(--bg-2); }
.steps-dots i.on { background: var(--olive); }
.choice { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.choice:hover { border-color: var(--border-strong); }
.choice.active { border-color: var(--olive); background: #fbfaf5; transform: none; box-shadow: inset 0 0 0 1px var(--olive); }
.choice .ci { background: var(--bg-2); color: var(--text-2); border-radius: 50%; }
.choice.active .ci { background: var(--olive); color: #fff; }
.ob-offer { border: 1.5px solid var(--text); border-radius: var(--r); }
.ob-badge { background: var(--text); border-radius: 6px; }
.ob-lead { border: 1px dashed var(--border-strong); border-radius: var(--r); }
.ob-spin circle { stroke: var(--olive); }
.toast { border-radius: 10px; background: var(--text); color: #fff; box-shadow: 0 14px 30px -18px rgba(28,33,24,.6); }
.toast-ic { background: rgba(255,255,255,.14); }

/* ---------- Guide offert ---------- */
.g-cover { background: var(--olive); border-radius: 4px 12px 12px 4px; }
.g-read h3 span { background: var(--olive); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .sidebar { background: rgba(255,255,255,.97) !important; border-top: 1px solid var(--line); border-right: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  .side-nav { justify-content: space-around; }
  .side-nav button { flex: 1 1 0; font-size: 11px; padding: 8px 4px; font-weight: 700; }
  .side-nav button.active::after { left: 30%; right: 30%; top: 0; bottom: auto; width: auto; height: 2px; }
  .main { padding-top: 20px; }
  .tiles { grid-template-columns: 1fr !important; }
  .tile:nth-child(odd) { border-right: 0 !important; }
  .j-track { border: 0; background: transparent; gap: 10px; }
  .j-stage { border: 1px solid var(--line) !important; border-radius: var(--r) !important; }
  .subnav { gap: 18px; }
}
@media (max-width: 520px) {
  .day-head h2 { font-size: 34px; }
  .topbar h1 { font-size: 28px; }
  .quick-links button { flex: 1 1 auto; justify-content: center; }
}

/* Ajustements */
.dm-day b, .dm-day span { color: var(--olive) !important; }
body.on-dashboard .topbar > div:first-child { visibility: hidden; }
body.on-dashboard #guide { display: none; }
body.on-dashboard .topbar { margin-bottom: -40px; position: relative; z-index: 2; }
.dash-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-pair .bilan-card { height: 100%; }
.check { background: transparent; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; padding: 12px 2px; }
.check:last-child { border-bottom: 0 !important; }
.checklist { gap: 0 !important; }
@media (max-width: 700px) { .dash-pair { grid-template-columns: 1fr; } }
.j-head { align-items: flex-start; }
.j-lock { font-size: 0; gap: 0; padding: 4px; border-radius: 50%; background: var(--bg-2); color: var(--text-3); }
.j-stage.on { box-shadow: inset 0 3px 0 var(--olive) !important; }
.rc-type { color: var(--text) !important; font-size: 11.5px; letter-spacing: .04em; }
.offer ul { align-content: start; gap: 9px; }
.offers-intro h2 { font-size: 24px; }
@media (max-width: 520px) {
  .dm.card { grid-template-columns: 1fr !important; }
  .dm-day { display: none !important; }
  .dm h3 { font-size: 21px; }
}

/* ===== Outils intégrés ===== */
.tool-frame { display: block; width: 100%; min-height: 70vh; border: 0; background: transparent; }
.subnav button .ic-svg { display: inline-block; vertical-align: -1px; margin-left: 5px; opacity: .55; }

/* Hub « Aujourd'hui » */
.hub-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.hub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.hub-head h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.hub-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hub-row { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; cursor: pointer; transition: background 160ms var(--e-out); }
.hub-row:last-child { border-bottom: 0; }
.hub-row:hover { background: #fbfaf5; }
.hub-row:active { background: var(--bg-2); }
.hr-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); }
.hr-txt b { display: block; font-size: 15.5px; }
.hr-txt small { color: var(--text-2); font-size: 13.5px; }
.hub-row i { font-style: normal; color: var(--text-3); }
.hr-lock { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); color: var(--text-3); }

/* Paywall des simulateurs */
.paywall { max-width: 680px; padding: 30px 28px; display: grid; gap: 12px; }
.paywall h2 { margin: 0; font-size: clamp(28px, 4vw, 36px); }
.paywall .lead { margin: 0; color: var(--text-2); }
.pw-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); }
.pw-list { list-style: none; padding: 0; margin: 8px 0; border-top: 1px solid var(--line); }
.pw-list li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; }
.pw-list li .ic-svg { color: var(--olive); }
.pw-list li b { color: var(--text); }
.pw-list li.on { color: var(--text); }
.pw-price { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.pw-price b { color: var(--text); }
.pw-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 900px) { .hub-wrap { grid-template-columns: 1fr; } }

/* ===== Récap quotidien ===== */
.recap { display: grid; gap: 14px; }
.dash-sec { margin: 14px 0 -4px; }
.rc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; }
.rc-day, .rc-todo { padding: 20px 22px; display: grid; gap: 14px; align-content: start; }
.rc-day-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.rc-day h3 { margin: 6px 0 4px; font-size: 22px; }
.rc-day p { margin: 0; color: var(--text-2); font-size: 14.5px; max-width: 34ch; }
.rc-ring { --p: 0; flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #fff 80%, transparent 81%), conic-gradient(var(--olive) calc(var(--p) * 1%), var(--bg-2) 0); }
.rc-ring b { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; display: grid; place-items: center; color: var(--text); }
.rc-ring small { font-size: 11px; color: var(--text-3); }
.rc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.rc-week span { display: grid; gap: 2px; text-align: center; border-radius: 8px; padding: 6px 0; font-weight: 700; font-size: 13px; color: #fff; min-height: 44px; align-content: center; }
.rc-week span small { font-size: 10.5px; font-weight: 600; text-transform: capitalize; opacity: .85; }
.rc-week .e { background: var(--bg-2); color: var(--text-3); }
.rc-week .g { background: var(--olive); } .rc-week .o { background: #c08a2c; } .rc-week .r { background: var(--warm); }
.rc-day .btn { justify-self: start; }
.rc-todo-top { display: flex; justify-content: space-between; align-items: baseline; }
.rc-todo-top b { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.rc-bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; margin-top: -6px; }
.rc-bar i { display: block; height: 100%; background: var(--olive); border-radius: 3px; transition: width 500ms var(--e-out); }
.rc-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-top: 1px solid var(--line); padding: 11px 0; cursor: pointer; }
.rc-item .box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-strong); }
.rc-item .box .ic-svg { opacity: 0; }
.rc-item.done .box { background: var(--olive); border-color: var(--olive); }
.rc-item.done .box .ic-svg { opacity: 1; }
.rc-item.done b { color: var(--text-3); text-decoration: line-through; }
.rc-item b { display: block; font-size: 15px; }
.rc-item em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-left: 4px; }
.rc-item small { color: var(--text-2); font-size: 13.5px; }
.rc-item i { font-style: normal; color: var(--text-3); }
.rc-item:hover i { color: var(--olive); }
.rc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rc-tile { display: grid; gap: 6px; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color 160ms var(--e-out); }
.rc-tile:hover { border-color: var(--border-strong); }
.rc-val { display: flex; align-items: baseline; gap: 5px; min-height: 36px; color: var(--text-3); }
.rc-val b { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--text); }
.rc-val .rc-empty { color: var(--text-3); }
.rc-val small { color: var(--text-2); font-size: 13px; }
.rc-foot { font-size: 12.5px; color: var(--text-2); }
.rc-tile.good .rc-foot, .rc-tile.ok .rc-foot { color: var(--olive); font-weight: 700; }
.rc-tile.warn .rc-foot { color: #a8741c; font-weight: 700; }
.rc-tile.lk { background: #fbfaf5; }
@media (max-width: 900px) { .rc-grid { grid-template-columns: 1fr; } .rc-tiles { grid-template-columns: 1fr 1fr; } }
