/* ==========================================================================
   resultados.css — página /resultados/ (dashboard clínico 3D).
   Tema escuro por padrão; o claro entra por html[data-theme="light"].
   Os números vêm de src/content/casuistica.json via build-resultados.js.
   ========================================================================== */

:root {
    --rs-bg: #08080a;
    --rs-surface: rgba(255, 255, 255, 0.035);
    --rs-surface-2: rgba(255, 255, 255, 0.065);
    --rs-card: #121215;
    --rs-card-lo: #0a0a0c;
    --rs-fg: #f4f2ee;
    --rs-fg-2: #b8b4ac;
    --rs-fg-3: #8a867e;
    --rs-line: rgba(255, 255, 255, 0.08);
    --rs-line-2: rgba(255, 255, 255, 0.16);
    --rs-brand: #AE0006;
    --rs-brand-hi: #ff4d54;
    --rs-brand-lo: #580003;
    --rs-copper: #E5A885;
    --rs-copper-hi: #ffe3cc;
    --rs-copper-lo: #6e3d22;
    --rs-coral: #e8575b;
    --rs-bone: #DCD9D3;
    --rs-bone-hi: #f6f4f0;
    --rs-bone-lo: #9e998e;
    --rs-slate: #6b6861;
    --rs-ok: #2fb37a;
    --rs-ok-hi: #6ee7b7;
    --rs-ok-lo: #0f5135;
    --rs-warn: #f2b705;
    --rs-warn-hi: #ffd35c;
    --rs-track: rgba(0, 0, 0, 0.65);
    --rs-shadow: 0 28px 56px -26px rgba(0, 0, 0, 0.92);
    --rs-glow: rgba(174, 0, 6, 0.25);
}

html[data-theme="light"] {
    --rs-bg: #EFEDE8;
    --rs-surface: rgba(16, 16, 16, 0.035);
    --rs-surface-2: rgba(16, 16, 16, 0.06);
    --rs-card: #FFFFFF;
    --rs-card-lo: #EAE6DE;
    --rs-fg: #101010;
    --rs-fg-2: #3A3835;
    --rs-fg-3: #5A574F;
    --rs-line: rgba(16, 16, 16, 0.1);
    --rs-line-2: rgba(16, 16, 16, 0.18);
    --rs-bone: #6f6b63;
    --rs-bone-hi: #9e998e;
    --rs-bone-lo: #3d3a35;
    --rs-slate: #8a867e;
    --rs-ok: #1f8f5f;
    --rs-ok-hi: #34d399;
    --rs-ok-lo: #0b462c;
    --rs-warn: #d49a00;
    --rs-warn-hi: #f2b705;
    --rs-track: rgba(16, 16, 16, 0.08);
    --rs-shadow: 0 24px 50px -28px rgba(16, 16, 16, 0.35);
    --rs-glow: rgba(174, 0, 6, 0.12);
}

.rs-page { font-family: 'Inter', system-ui, sans-serif; color: var(--rs-fg); }
.rs-page h1, .rs-page h2, .rs-page h3, .rs-page h4 { font-family: 'Manrope', system-ui, sans-serif; text-wrap: balance; margin: 0; color: var(--rs-fg); }
.rs-section__head p, .rs-method p, .rs-faq p, .rs-legal p { margin: 0; }
.rs-count { font-variant-numeric: tabular-nums; }
.rs-wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- Preloader Clínico EKG 3D ---------- */
.rs-preloader {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 5, 7, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
}
html[data-theme="light"] .rs-preloader {
    background: rgba(239, 237, 232, 0.88);
}
.rs-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.rs-preloader__card {
    width: min(100%, 340px);
    border-radius: 24px;
    padding: 28px 24px 24px;
    background: linear-gradient(160deg, var(--rs-card), var(--rs-card-lo));
    border: 1px solid var(--rs-line-2);
    box-shadow: var(--rs-shadow), 0 8px 0 -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
html[data-theme="light"] .rs-preloader__card {
    box-shadow: var(--rs-shadow), 0 6px 0 -2px #CFCBC2, inset 0 1px 0 #ffffff;
}
.rs-preloader__spinner {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}
.rs-preloader__logo {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 14px rgba(160, 8, 23, 0.45));
}
html[data-theme="light"] .rs-preloader__logo {
    filter: drop-shadow(0 4px 12px rgba(160, 8, 23, 0.22));
}
.rs-preloader__logo-o {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: rs-logo-o-spin 2.2s linear infinite;
}
.rs-preloader__logo-ecg-track {
    opacity: 0.16;
}
html[data-theme="light"] .rs-preloader__logo-ecg-track {
    opacity: 0.14;
}
.rs-preloader__logo-ecg {
    fill: #b8091b;
}
html[data-theme="light"] .rs-preloader__logo-ecg {
    fill: #A00817;
}
.rs-preloader__ecg-stroke {
    stroke-dasharray: 100 100;
    stroke-dashoffset: 100;
    animation: rs-ecg-draw-ltr 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.rs-preloader__ecg-spark {
    stroke-dasharray: 7 100;
    stroke-dashoffset: 7;
    animation: rs-ecg-spark-ltr 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes rs-logo-o-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes rs-ecg-draw-ltr {
    0% { stroke-dashoffset: 100; }
    62% { stroke-dashoffset: 0; }
    76% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}
@keyframes rs-ecg-spark-ltr {
    0% { stroke-dashoffset: 7; opacity: 0; }
    5% { opacity: 1; }
    56% { opacity: 1; }
    62% { stroke-dashoffset: -100; opacity: 0; }
    100% { stroke-dashoffset: -100; opacity: 0; }
}
.rs-preloader__kicker {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rs-fg-3);
}
.rs-preloader__title {
    font-family: 'Manrope', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--rs-fg);
}
.rs-preloader__bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--rs-track);
    overflow: hidden;
    margin-top: 4px;
}
.rs-preloader__bar i {
    display: block;
    height: 100%;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rs-brand), var(--rs-brand-hi));
    animation: rs-bar-sweep 1s ease-in-out infinite alternate;
}
@keyframes rs-bar-sweep {
    0% { transform: translateX(-20%); width: 35%; }
    100% { transform: translateX(130%); width: 55%; }
}

/* ---------- Cabeçalho da página ---------- */
.rs-hero { padding-block: 16px 52px; position: relative; }
.rs-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rs-fg-3); margin-bottom: 16px; }
.rs-kicker::before { content: ""; width: 22px; height: 1px; background: var(--rs-brand); }
.rs-hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 300; letter-spacing: -.025em; line-height: 1.05; max-width: 18ch; }
.rs-hero h1 b { font-weight: 800; }
.rs-lede { color: var(--rs-fg-2); font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; max-width: 64ch; margin-top: 18px; }
.rs-updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--rs-fg-3); }
.rs-updated i { width: 7px; height: 7px; border-radius: 50%; background: var(--rs-ok); box-shadow: 0 0 10px var(--rs-ok); }

/* ---------- Barra de Controles Táteis 3D (Ref 2 + Concured video) ---------- */
.rs-cockpit-bar {
    margin-top: 30px;
    border-radius: 20px;
    padding: 16px 20px;
    background: linear-gradient(165deg, rgba(28, 28, 32, 0.88), rgba(12, 12, 15, 0.95));
    border: 1px solid var(--rs-line-2);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 22px 44px -22px rgba(0, 0, 0, 0.92),
        0 7px 0 -1px #09090b,
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}
html[data-theme="light"] .rs-cockpit-bar {
    background: linear-gradient(165deg, #FFFFFF, #EAE6DE);
    border-color: rgba(16, 16, 16, 0.12);
    border-top-color: #ffffff;
    box-shadow:
        0 20px 40px -24px rgba(16, 16, 16, 0.32),
        0 6px 0 -1px #CFCBC2,
        inset 0 1px 0 #ffffff;
}
.rs-cockpit-bar__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.rs-cockpit-bar__led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: none;
    background: radial-gradient(circle at 35% 35%, #ff8a8e, var(--rs-brand) 65%, #3a0002 100%);
    box-shadow: 0 0 12px var(--rs-brand), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.rs-cockpit-bar__kicker {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rs-copper);
}
html[data-theme="light"] .rs-cockpit-bar__kicker { color: var(--rs-brand); }
.rs-cockpit-bar__status {
    font-size: 13px;
    color: var(--rs-fg-2);
    margin: 2px 0 0;
}
.rs-tactile-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
@media (max-width: 640px) {
    .rs-tactile-group { width: 100%; }
    .rs-tactile-btn { flex: 1 1 auto; justify-content: space-between; }
}
.rs-tactile-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #232329 0%, #141418 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.22);
    color: var(--rs-fg-2);
    font: 600 13px 'Manrope', sans-serif;
    box-shadow:
        0 10px 18px -10px rgba(0, 0, 0, 0.9),
        0 4px 0 #09090b,
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.2s ease, border-color 0.2s ease;
}
html[data-theme="light"] .rs-tactile-btn {
    background: linear-gradient(180deg, #FFFFFF 0%, #ECE9E2 100%);
    border-color: rgba(16, 16, 16, 0.12);
    border-top-color: #ffffff;
    box-shadow:
        0 10px 18px -12px rgba(16, 16, 16, 0.35),
        0 4px 0 #C9C4BA,
        inset 0 1px 0 #ffffff;
}
.rs-tactile-btn:hover {
    color: var(--rs-fg);
    border-color: rgba(174, 0, 6, 0.45);
}
.rs-tactile-btn:active,
.rs-tactile-btn.is-active {
    transform: translateY(2px);
    color: #ffffff;
    background: linear-gradient(180deg, #d41118 0%, var(--rs-brand) 65%, #690004 100%);
    border-color: rgba(255, 138, 142, 0.55);
    box-shadow:
        0 12px 24px -8px rgba(174, 0, 6, 0.8),
        0 2px 0 #3d0002,
        inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
html[data-theme="light"] .rs-tactile-btn.is-active {
    color: #ffffff;
    background: linear-gradient(180deg, #d41118 0%, var(--rs-brand) 65%, #690004 100%);
    box-shadow:
        0 12px 24px -8px rgba(174, 0, 6, 0.55),
        0 2px 0 #4d0003,
        inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.rs-tactile-btn__knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3f3f46, #18181b 75%);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.rs-tactile-btn__knob i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #71717a;
    transition: background 0.2s, box-shadow 0.2s;
}
.rs-tactile-btn.is-active .rs-tactile-btn__knob i {
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
}
.rs-tactile-btn__badge {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: inherit;
}
html[data-theme="light"] .rs-tactile-btn:not(.is-active) .rs-tactile-btn__badge {
    background: rgba(16, 16, 16, 0.08);
}

/* ---------- Arcos de círculo 3D (Topo) ---------- */
.rs-dials {
    --rs-dial-hub-1: #2a2a30;
    --rs-dial-hub-2: #0e0e11;
    --dial-scale: 1.3143px;
    display: grid;
    grid-template-columns: auto repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 30px 18px;
    margin-top: 34px;
}
html[data-theme="light"] .rs-dials {
    --rs-dial-hub-1: #FFFFFF;
    --rs-dial-hub-2: #E9E5DD;
}
/* Principal (cirurgias MICS) à esquerda ocupando as duas linhas; os outros quatro em 2 × 2 ao lado */
.rs-dial--main { grid-row: 1 / span 2; width: calc(var(--vb) * var(--dial-scale)); max-width: 100%; margin-right: 12px; }
@media (max-width: 900px) {
    .rs-dials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-dial--main { grid-column: 1 / -1; grid-row: auto; justify-self: center; margin-right: 0; }
}
@media (max-width: 560px) {
    .rs-dials { --dial-scale: 1.0571px; gap: 26px 14px; }
}
.rs-dial { --vb: 140; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
/* Largura = unidades do viewBox × escala comum, para que a espessura dos arcos seja igual em todos os discos */
.rs-dial__disc {
    position: relative;
    flex: none;
    width: min(100%, calc(var(--vb) * var(--dial-scale)));
    aspect-ratio: 1 / 1;
    transform: translateY(14px) scale(.94);
    opacity: 0;
    transition: transform .85s cubic-bezier(.2, .7, .2, 1), opacity .6s;
}
.rs-dials.in .rs-dial__disc { transform: none; opacity: 1; }
.rs-dial:nth-child(2) .rs-dial__disc { transition-delay: 70ms; }
.rs-dial:nth-child(3) .rs-dial__disc { transition-delay: 140ms; }
.rs-dial:nth-child(4) .rs-dial__disc { transition-delay: 210ms; }
.rs-dial:nth-child(5) .rs-dial__disc { transition-delay: 280ms; }

.rs-dial__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .42)) drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
}
html[data-theme="light"] .rs-dial__svg {
    filter: drop-shadow(0 18px 24px rgba(58, 40, 30, .14)) drop-shadow(0 4px 7px rgba(58, 40, 30, .09));
}
.rs-dial__lift { flood-color: #000; flood-opacity: .5; }
html[data-theme="light"] .rs-dial__lift { flood-color: #3a2a20; flood-opacity: .2; }
.rs-dial__track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 12; }
html[data-theme="light"] .rs-dial__track { stroke: rgba(16, 16, 16, .07); }
.rs-dial__arc { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray 1.2s cubic-bezier(.2, .7, .2, 1) 160ms; }
.rs-dial { --lap-t: .38s; }
.rs-dial[data-dial="ano"] { --lap-t: .65s; }
.rs-dial__lap {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dasharray var(--lap-t) linear calc(160ms + var(--k) * var(--lap-t)), opacity .3s ease;
}
.rs-dial__lap.is-empty { opacity: 0; }
/* Na entrada, os quatro discos laterais esperam o principal terminar (--main-t vem do build) */
.rs-dials.is-intro .rs-dial:not(.rs-dial--main) .rs-dial__arc { transition-delay: var(--main-t); }
.rs-dials.is-intro .rs-dial:not(.rs-dial--main) .rs-dial__lap { transition-delay: calc(var(--main-t) + var(--k) * var(--lap-t)); }
.rs-dials:not(.in) .rs-dial__arc,
.rs-dials:not(.in) .rs-dial__lap { stroke-dasharray: 0 2000 !important; }
.rs-dial__gloss { fill: none; stroke-width: 12; opacity: .75; pointer-events: none; }
html[data-theme="light"] .rs-dial__gloss { opacity: 1; }
.rs-dial__ticks { fill: none; stroke: var(--rs-line-2); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.01 5.63; }
.rs-dial__hub { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
html[data-theme="light"] .rs-dial__hub { stroke: #FFFFFF; }

.rs-dial__v {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 2.5vw, 34px);
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--rs-fg);
    pointer-events: none;
}
.rs-dial__v > span { display: inline-flex; align-items: baseline; gap: 2px; }
.rs-dial__v small { font-size: .42em; font-weight: 600; letter-spacing: 0; color: var(--rs-fg-2); }
.rs-dial__l { margin-top: 18px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: var(--rs-fg); line-height: 1.25; }
.rs-dial__s { margin-top: 5px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--rs-fg-3); line-height: 1.4; }
.rs-dial--main .rs-dial__v { font-size: clamp(38px, 4.6vw, 60px); }
.rs-dial--main .rs-dial__l { font-size: 18px; }
.rs-dial--main .rs-dial__s { font-size: 12px; }

/* ---------- Seções e Painéis Bento 3D ---------- */
.rs-section { padding-block: 60px; border-top: 1px solid var(--rs-line); }
.rs-section__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 34px; }
@media (max-width: 860px) { .rs-section__head { grid-template-columns: 1fr; } }
.rs-section h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.rs-section__head p { color: var(--rs-fg-2); font-size: 15.5px; line-height: 1.6; max-width: 58ch; }
.rs-note { font-size: 13px; color: var(--rs-fg-3); line-height: 1.55; margin-top: 22px; max-width: 80ch; }
.rs-note--full { max-width: none; }

.rs-panel {
    position: relative;
    border-radius: 24px;
    padding: 28px clamp(16px, 3vw, 36px) 30px;
    background: linear-gradient(165deg, rgba(24, 24, 28, 0.85), rgba(11, 11, 14, 0.94));
    border: 1px solid var(--rs-line);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--rs-shadow), 0 8px 0 -2px #08080a, inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .rs-panel {
    background: linear-gradient(165deg, #FFFFFF, #EAE6DE);
    border-color: rgba(16, 16, 16, 0.1);
    border-top-color: #ffffff;
    box-shadow: var(--rs-shadow), 0 7px 0 -2px #CFCBC2, inset 0 1px 0 #ffffff;
}
.rs-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(60% 40% at 50% 0%, var(--rs-glow), transparent 70%);
    opacity: .6;
}

/* ---------- Torres de vidro Ano a Ano ---------- */
.rs-tanks { position: relative; }
.rs-tanks__hud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 14px;
}
.rs-tanks__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rs-copper);
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rs-line);
}
html[data-theme="light"] .rs-tanks__badge {
    color: var(--rs-brand);
    background: rgba(174, 0, 6, 0.06);
}
.rs-tanks__badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rs-brand-hi);
    box-shadow: 0 0 8px var(--rs-brand);
}
.rs-tanks__hint {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--rs-fg-3);
}
.rs-tanks__stage {
    --w: clamp(40px, 5vw, 60px);
    --dx: 14px;
    --dy: 9px;
    --H: 210px;
    --B: 62px;
    --t: 1.2s;
    --step: .55s;
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 26px clamp(6px, 1.4vw, 16px);
    align-items: start;
    justify-items: center;
    padding: 36px 14px 18px;
    border-radius: 18px;
    background: radial-gradient(ellipse 80% 70% at 50% 25%, rgba(174, 0, 6, 0.12), rgba(5, 5, 7, 0.72) 75%);
    border: 1px solid var(--rs-line);
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.75);
}
html[data-theme="light"] .rs-tanks__stage {
    background: radial-gradient(ellipse 80% 70% at 50% 25%, rgba(255, 255, 255, 0.9), #E4E1DC 80%);
    box-shadow: inset 0 2px 6px rgba(16, 16, 16, 0.12);
}
@media (max-width: 760px) {
    .rs-tanks__stage { --w: 46px; --dx: 10px; --dy: 6px; --H: 150px; --B: 54px; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 28px 10px 16px; }
}

/* Faces da torre: o elemento é a frente; ::before é a lateral direita e ::after é o topo. */
.rs-tank__glass::before, .rs-tank__liquid::before, .rs-tank__base::before {
    content: "";
    position: absolute;
    left: 100%;
    bottom: 0;
    width: var(--dx);
    height: 100%;
    transform-origin: left bottom;
    transform: skewY(calc(-1 * atan2(var(--dy), var(--dx))));
}
.rs-tank__glass::after, .rs-tank__liquid::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 100%;
    height: var(--dy);
    transform-origin: left bottom;
    transform: skewX(calc(-1 * atan2(var(--dx), var(--dy))));
}

.rs-tank { display: flex; flex-direction: column; align-items: center; min-width: 0; transition: opacity .35s ease, filter .35s ease; }
.rs-tank.is-dimmed { opacity: .3; filter: saturate(.4); }
.rs-tank__col {
    position: relative;
    isolation: isolate;
    width: calc(var(--w) + var(--dx));
    padding-top: var(--dy);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.rs-tank__col::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -10%;
    right: -6%;
    bottom: -12px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
    filter: blur(3px);
}
html[data-theme="light"] .rs-tank__col::after { background: radial-gradient(closest-side, rgba(58, 40, 30, .26), rgba(58, 40, 30, 0)); }
@media (hover: hover) {
    .rs-tank:hover .rs-tank__col { transform: translateY(-4px); }
}

.rs-tank__glass {
    position: relative;
    width: var(--w);
    height: var(--H);
    background: linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04) 60%, rgba(255, 255, 255, .08));
}
.rs-tank__glass::before { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); }
.rs-tank__glass::after { background: linear-gradient(90deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .16)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
html[data-theme="light"] .rs-tank__glass { background: linear-gradient(90deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .28) 60%, rgba(255, 255, 255, .45)); }
html[data-theme="light"] .rs-tank__glass::before { background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22)); }
html[data-theme="light"] .rs-tank__glass::after { background: linear-gradient(90deg, #FFFFFF, rgba(255, 255, 255, .78)); box-shadow: inset 0 0 0 1px rgba(16, 16, 16, .05); }

.rs-tank__liquid {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    opacity: .94;
    background: linear-gradient(90deg, color-mix(in srgb, var(--c) 68%, #fff) 0%, var(--c) 40%, color-mix(in srgb, var(--c) 80%, #000) 100%);
    /* Mola: sobe, passa um pouco do nível e assenta, como água enchendo o copo */
    transition: height var(--t) cubic-bezier(.34, 1.35, .64, 1) calc(.25s + var(--i) * var(--step));
    transition: height var(--t) linear(0, .1 6%, .36 13%, .7 22%, .95 31%, 1.05 38%, 1.04 44%, .99 53%, .975 60%, .99 70%, 1.005 82%, 1) calc(.25s + var(--i) * var(--step));
}
.rs-tank__liquid::before { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #000), color-mix(in srgb, var(--c) 52%, #000)); }
.rs-tank__liquid::after { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 52%, #fff), color-mix(in srgb, var(--c) 74%, #fff)); }
.rs-tanks.in .rs-tank__liquid { height: calc(var(--f) * 100%); }

.rs-tank__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, .34) 13%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, .16) 85%, rgba(255, 255, 255, 0) 92%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 1px 0 0 rgba(255, 255, 255, .32);
}
html[data-theme="light"] .rs-tank__shine {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, .7) 13%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, .35) 85%, rgba(255, 255, 255, 0) 92%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 0 0 2px rgba(16, 16, 16, .04);
}

.rs-tank__base {
    position: relative;
    width: var(--w);
    height: var(--B);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: linear-gradient(180deg, #F4F2EE, #D9D5CD);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, .08);
}
.rs-tank__base::before { background: linear-gradient(180deg, #BDB8AE, #9E998E); }
html[data-theme="light"] .rs-tank__base { background: linear-gradient(180deg, #FFFFFF, #EEEBE5); }
html[data-theme="light"] .rs-tank__base::before { background: linear-gradient(180deg, #D8D3C9, #C3BDB2); }
.rs-tank__v { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(15px, 1.7vw, 21px); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.rs-tank__base small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; color: #5A574F; }
.rs-tank__ano { margin-top: 18px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: clamp(11px, 1.3vw, 13px); color: var(--rs-fg-2); text-align: center; line-height: 1.2; }
.rs-tank__ano small { display: block; font-size: 9.5px; color: var(--rs-fg-3); letter-spacing: .06em; text-transform: uppercase; }
.rs-legend { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--rs-fg-2); }
.rs-legend b { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--rs-fg); font-size: 18px; margin-right: 4px; }

/* ---------- Cabeçalho fixo do painel: título centrado na maior legenda; legendas empilhadas no mesmo espaço ---------- */
.rs-section__head--center { align-items: center; }
.rs-intro-stack { display: grid; }
.rs-intro-stack > p { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.rs-intro-stack > p.is-active { opacity: 1; visibility: visible; }

/* Giro 3D dos cards ao trocar de aba (casuistica.js, flipCards) */
.rs-flip { transform-origin: 50% 50%; backface-visibility: hidden; transition: transform .34s cubic-bezier(.2, .7, .3, 1); }
.rs-flip.is-flip-out { transform: perspective(1600px) rotateY(90deg); transition-timing-function: cubic-bezier(.6, 0, .9, .5); }
.rs-flip.is-flip-start { transform: perspective(1600px) rotateY(-90deg); transition: none; }
.rs-groups.is-empty .rs-group__track i { width: 0 !important; transition: none !important; }

/* ---------- Painel Flutuante de Vidro com Borda Neon Rim-Light (Ref 3 "Alerts") ---------- */
.rs-explorer {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
@media (max-width: 920px) { .rs-explorer { grid-template-columns: 1fr; } }

.rs-rim-card {
    position: relative;
    border-radius: 24px;
    padding: 26px clamp(18px, 3vw, 32px);
    background: linear-gradient(155deg, rgba(30, 30, 36, 0.86) 0%, rgba(12, 12, 16, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow:
        0 32px 64px -26px rgba(0, 0, 0, 0.95),
        0 8px 0 -2px #09090b,
        -6px 0 28px -8px rgba(174, 0, 6, 0.55),
        inset 0 1px 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}
html[data-theme="light"] .rs-rim-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 233, 226, 0.96) 100%);
    border-color: rgba(16, 16, 16, 0.12);
    border-top-color: #ffffff;
    box-shadow:
        0 28px 56px -26px rgba(16, 16, 16, 0.35),
        0 7px 0 -2px #CFCBC2,
        -6px 0 24px -10px rgba(174, 0, 6, 0.35),
        inset 0 1px 0 #ffffff;
}
/* Borda lateral neon estilo Ref 3 */
.rs-rim-card__edge {
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, #ff4d54 0%, #AE0006 55%, #580003 100%);
    box-shadow: 0 0 16px rgba(255, 77, 84, 0.8);
}

/* Faixa do recorte ativo: espelha o período escolhido nos controles do topo. */
.rs-rim-period {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, #d41118 0%, var(--rs-brand) 65%, #690004 100%);
    box-shadow: 0 12px 24px -12px rgba(174, 0, 6, .8), inset 0 1px 1px rgba(255, 255, 255, .35);
}
.rs-rim-period__led {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    animation: rs-led-pulse 1.8s ease-in-out infinite;
}
@keyframes rs-led-pulse { 50% { opacity: .35; } }
.rs-rim-period__k { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.rs-rim-period__label { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; }
.rs-rim-period__n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .28); }
.rs-rim-period__go { margin-left: auto; font: 600 12px 'Manrope', sans-serif; color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.rs-rim-period.is-flash { animation: rs-period-flash 1s ease-out; }
@keyframes rs-period-flash {
    0% { transform: scale(1.02); box-shadow: 0 0 0 0 rgba(255, 77, 84, .8), 0 12px 24px -12px rgba(174, 0, 6, .8), inset 0 1px 1px rgba(255, 255, 255, .35); }
    100% { transform: none; box-shadow: 0 0 0 14px rgba(255, 77, 84, 0), 0 12px 24px -12px rgba(174, 0, 6, .8), inset 0 1px 1px rgba(255, 255, 255, .35); }
}
.rs-cockpit-bar { scroll-margin-top: 96px; }

.rs-rim-card__head {
    display: grid;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rs-line);
}
.rs-rim-card__kicker {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rs-copper);
    margin-bottom: 4px;
}
html[data-theme="light"] .rs-rim-card__kicker { color: var(--rs-brand); }
.rs-rim-card__title {
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 700;
}
.rs-rim-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rs-rim-tab {
    appearance: none;
    padding: 7px 14px;
    border-radius: 999px;
    font: 600 12.5px 'Manrope', sans-serif;
    color: var(--rs-fg-2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rs-line-2);
    cursor: pointer;
    transition: all 0.2s ease;
}
html[data-theme="light"] .rs-rim-tab {
    background: rgba(16, 16, 16, 0.04);
}
.rs-rim-tab.is-active {
    color: #ffffff;
    background: linear-gradient(180deg, var(--rs-brand-hi), var(--rs-brand));
    border-color: transparent;
    box-shadow: 0 6px 14px -4px rgba(174, 0, 6, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
html[data-theme="light"] .rs-rim-tab.is-active {
    color: #ffffff;
    background: linear-gradient(180deg, #2a2a2a, #101010);
    border-color: transparent;
    box-shadow: 0 6px 14px -6px rgba(16, 16, 16, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.rs-rim-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.rs-rim-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid var(--rs-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .rs-rim-item {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 12px -6px rgba(16, 16, 16, 0.12);
}
.rs-rim-item__badge {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.rs-rim-item__badge--brand { background: linear-gradient(145deg, #d4141b, var(--rs-brand) 60%, #7a0004); }
.rs-rim-item__badge--graphite { background: linear-gradient(145deg, #7a7a7a, #5a5a5a); }
.rs-rim-item__badge--wash { background: linear-gradient(145deg, #f6c9cb, #e9a3a6); color: #5e0003; }
.rs-rim-item__badge--black { background: linear-gradient(145deg, #3a3a3a, #000000); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.3); }

/* Hospital onde a equipe deixou de operar */
.rs-closed-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    font: 600 9.5px/1.3 'JetBrains Mono', ui-monospace, monospace;
    font-style: normal;
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: 2px;
    color: #ffffff;
    background: #474747;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.rs-rim-item.is-closed { border-style: dashed; border-color: var(--rs-line-2); }
.rs-rim-item.is-closed .rs-rim-item__bar i { background: repeating-linear-gradient(135deg, #8a8a8a 0 6px, #686868 6px 12px); box-shadow: none; }
.rs-rim-item__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.rs-rim-item__row strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--rs-fg);
}
.rs-rim-item__val {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--rs-fg);
    white-space: nowrap;
}
.rs-rim-item__val small {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--rs-fg-3);
}
.rs-rim-item__sub {
    font-size: 12px;
    color: var(--rs-fg-3);
    margin: 2px 0 0;
}
.rs-rim-item__bar {
    margin-top: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--rs-track);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
/* Barras de dados: cor da paleta em --bar (build-resultados.js, paletaRampa); no escuro, contorno
   claro para os tons mais escuros não sumirem no trilho */
.rs-rim-item__bar i,
.rs-group__track i {
    background: var(--bar, var(--rs-brand));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
html[data-theme="light"] .rs-rim-item__bar i,
html[data-theme="light"] .rs-group__track i { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.rs-rim-item__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rs-explorer-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
@media (min-width: 921px) and (min-height: 860px) {
    .rs-explorer-aside { position: sticky; top: 96px; }
}

/* Total por grupos: barras horizontais em % dos pacientes do recorte */
.rs-groups__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.rs-group__row { display: flex; align-items: baseline; gap: 8px; }
.rs-group__row span { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--rs-fg); }
.rs-group__row b { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; color: var(--rs-fg); }
.rs-group__row small { min-width: 4ch; text-align: right; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--rs-fg-3); }
.rs-group__track {
    margin-top: 6px;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--rs-track);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
}
html[data-theme="light"] .rs-group__track { box-shadow: inset 0 1px 3px rgba(16, 16, 16, .14); }
.rs-group__track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width .5s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .5s);
}
.rs-explorer.in .rs-group__track i { width: var(--w); }
.rs-groups__note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rs-line); font-size: 12px; line-height: 1.5; color: var(--rs-fg-3); }
.rs-explorer-aside__card {
    width: 100%;
    border-radius: 24px;
    padding: 22px clamp(18px, 2.4vw, 26px);
    background: linear-gradient(160deg, #171316 0%, #0b0a0c 100%);
    border: 1px solid var(--rs-line-2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--rs-shadow), 0 8px 0 -2px #09090b, inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}
html[data-theme="light"] .rs-explorer-aside__card {
    background: linear-gradient(160deg, #FFFFFF 0%, #EAE6DE 100%);
    border-color: rgba(16, 16, 16, 0.12);
    border-top-color: #ffffff;
    box-shadow: var(--rs-shadow), 0 7px 0 -2px #CFCBC2, inset 0 1px 0 #ffffff;
}
.rs-explorer-aside__kicker {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rs-brand-hi);
}
html[data-theme="light"] .rs-explorer-aside__kicker { color: var(--rs-brand); }
.rs-explorer-aside__big {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 4.4vw, 54px);
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--rs-fg);
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.rs-explorer-aside__big small {
    font-size: 15px;
    font-weight: 600;
    color: var(--rs-fg-3);
    letter-spacing: 0;
}
.rs-explorer-aside__card h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 12px;
}
.rs-explorer-aside__card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--rs-fg-2);
    margin-top: 8px;
}
.rs-explorer-aside__card:not(.rs-groups) h4 { min-height: 2.5em; }
.rs-explorer-aside__card:not(.rs-groups) p { min-height: 6.4em; }
.rs-explorer-aside__dials {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--rs-line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.rs-mini-dial {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Anel do mostrador: trilho inteiro em vermelho lavado, preenchimento em vermelho Cardio Assist até --p%. */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.rs-mini-dial__ring {
    --wash: #5a2326;
    --hub-1: #242429;
    --hub-2: #0e0e11;
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 14px;
    background: conic-gradient(var(--fill, var(--rs-brand)) calc(var(--p) * 1%), var(--wash) 0);
    box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.8);
    transition: --p .8s cubic-bezier(.2, .7, .2, 1);
}
.rs-mini-dial__ring::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--hub-1), var(--hub-2) 75%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
}
.rs-mini-dial__ring b { position: relative; }
html[data-theme="light"] .rs-mini-dial__ring {
    --wash: #F2C6C8;
    --hub-1: #FFFFFF;
    --hub-2: #E4E1DC;
    box-shadow: 0 6px 12px -6px rgba(16, 16, 16, 0.25);
}
html[data-theme="light"] .rs-mini-dial__ring::before { box-shadow: inset 0 1px 2px rgba(16, 16, 16, 0.12); }
.rs-mini-dial small {
    font-size: 12px;
    line-height: 1.3;
    color: var(--rs-fg-2);
}

/* ---------- Mostradores em Arco 3D + Knobs Táteis (Refs 1 e 2) ---------- */
.rs-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .rs-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rs-gauges { grid-template-columns: 1fr; } }
.rs-gauge {
    position: relative;
    border-radius: 22px;
    padding: 20px 20px 18px;
    background: linear-gradient(165deg, rgba(26, 26, 30, 0.88), rgba(11, 11, 14, 0.96));
    border: 1px solid var(--rs-line);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--rs-shadow), 0 7px 0 -2px #09090b, inset 0 1px 0 rgba(255, 255, 255, .08);
    text-align: center;
    min-width: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .rs-gauge:hover {
        transform: translateY(-3px);
        border-color: rgba(174, 0, 6, 0.35);
    }
}
html[data-theme="light"] .rs-gauge {
    background: linear-gradient(165deg, #FFFFFF, #EAE6DE);
    border-color: rgba(16, 16, 16, 0.1);
    border-top-color: #ffffff;
    box-shadow: var(--rs-shadow), 0 6px 0 -2px #CFCBC2, inset 0 1px 0 #ffffff;
}
/* Cor do desfecho frente à literatura: verde acima, amarelo semelhante, vermelho abaixo da média mundial */
.rs-tone-ok { --tone: var(--rs-ok); --tone-hi: var(--rs-ok-hi); --tone-glow: rgba(47, 179, 122, .5); }
.rs-tone-warn { --tone: var(--rs-warn); --tone-hi: var(--rs-warn-hi); --tone-glow: rgba(242, 183, 5, .45); }
.rs-tone-bad { --tone: var(--rs-brand); --tone-hi: var(--rs-brand-hi); --tone-glow: rgba(174, 0, 6, .6); }
.rs-gauge svg { width: min(100%, 220px); height: auto; display: block; margin: 8px auto 0; overflow: visible; }
.rs-gauge__shadow { fill: none; stroke: rgba(0, 0, 0, .58); stroke-width: 14; stroke-linecap: round; filter: blur(3px); }
html[data-theme="light"] .rs-gauge__shadow { stroke: rgba(16, 16, 16, .2); }
.rs-gauge__base { fill: none; stroke: var(--rs-track); stroke-width: 12; stroke-linecap: round; }
.rs-gauge__track-inner { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 3; stroke-dasharray: 3 4; stroke-linecap: round; }
html[data-theme="light"] .rs-gauge__track-inner { stroke: rgba(16, 16, 16, 0.12); }
.rs-gauge__fill { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray 1.2s cubic-bezier(.2, .7, .2, 1); }
.rs-gauge:not(.in) .rs-gauge__fill { stroke-dasharray: 0 400 !important; }
.rs-gauge__fill { stroke: var(--tone, var(--rs-brand)); filter: drop-shadow(0 4px 8px var(--tone-glow, transparent)); }
.rs-gauge__ref-mark { stroke: var(--rs-fg); stroke-width: 2.5; stroke-linecap: round; }
.rs-gauge__ref { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--rs-fg-2); }
.rs-gauge__ref i { flex: none; width: 2.5px; height: 10px; border-radius: 2px; background: var(--rs-fg); transform: translateY(1px); }
.rs-gauge__fonte { font-weight: 600; color: var(--rs-fg); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@media (hover: hover) {
    .rs-gauge__fonte:hover { color: var(--rs-brand-hi); }
    html[data-theme="light"] .rs-gauge__fonte:hover { color: var(--rs-brand); }
}
.rs-gauge__fonte:focus-visible { outline: 2px solid var(--rs-brand); outline-offset: 2px; border-radius: 2px; }
.rs-gauge__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.rs-gauge__list li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; font-size: 13px; color: var(--rs-fg); }
.rs-gauge__list li i { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 6px var(--tone-glow); }
.rs-gauge__list li b { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; text-align: right; }
.rs-gauge__list li small { grid-column: 2 / -1; font-size: 11px; color: var(--rs-fg-3); }
.rs-gauge--multi .rs-gauge__l { margin-top: 4px; }
.rs-tone-chip { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 2px; background: var(--tone); vertical-align: 0; }
.rs-gauge__gloss { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2.5; stroke-dasharray: 34 400; stroke-dashoffset: -14; pointer-events: none; }
.rs-gauge__v { margin-top: -36px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1; display: flex; justify-content: center; align-items: baseline; gap: 3px; position: relative; }
.rs-gauge__v small { font-size: 15px; font-weight: 600; color: var(--rs-fg-2); }
.rs-gauge__l { margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.rs-gauge__d { margin-top: 6px; font-size: 12px; color: var(--rs-fg-3); line-height: 1.45; }
/* ---------- Origem ---------- */
.rs-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.rs-chip { display: inline-flex; align-items: baseline; gap: 8px; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; background: linear-gradient(180deg, var(--rs-surface-2), var(--rs-surface)); border: 1px solid var(--rs-line-2); box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); color: var(--rs-fg); }
html[data-theme="light"] .rs-chip { background: linear-gradient(180deg, #FFFFFF, #E4E1DC); box-shadow: 0 6px 14px -10px rgba(16, 16, 16, .35), inset 0 1px 0 #ffffff; }
.rs-chip b { font: 500 12px 'JetBrains Mono', ui-monospace, monospace; color: var(--rs-fg-3); }
.rs-chip--hi { background: linear-gradient(180deg, var(--rs-brand-hi), var(--rs-brand)); color: #fff; border-color: transparent; box-shadow: 0 10px 18px -10px rgba(174, 0, 6, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.rs-chip--hi b { color: rgba(255, 255, 255, .85); }
html[data-theme="light"] .rs-chip--hi { background: linear-gradient(180deg, #2a2a2a, #101010); color: #ffffff; border-color: transparent; box-shadow: 0 10px 18px -10px rgba(16, 16, 16, .6), inset 0 1px 0 rgba(255, 255, 255, .18); }
.rs-chip--more { border-style: dashed; color: var(--rs-fg-2); }
.rs-states { margin-top: 20px; font-size: 13.5px; color: var(--rs-fg-2); }
.rs-states span { font: 500 12.5px 'JetBrains Mono', ui-monospace, monospace; color: var(--rs-fg); border-bottom: 1px solid var(--rs-line-2); margin-right: 10px; }

/* ---------- Tabela (SEO) ---------- */
/* Tabela fechada em 4 linhas; abre com view transition (casuistica.js, toggleTable) */
.rs-table-card { position: relative; }
.rs-table-card.is-collapsed .rs-table tbody tr:nth-child(n + 5) { display: none; }
.rs-table-card.is-collapsed .rs-table-wrap { position: relative; cursor: pointer; }
.rs-table-card.is-collapsed .rs-table-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 64px;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0), rgba(8, 8, 10, .92));
    pointer-events: none;
}
html[data-theme="light"] .rs-table-card.is-collapsed .rs-table-wrap::after { background: linear-gradient(180deg, rgba(239, 237, 232, 0), rgba(239, 237, 232, .95)); }
.rs-table-toggle {
    display: flex;
    margin: 14px auto 0;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--rs-line-2);
    background: var(--rs-surface-2);
    color: var(--rs-fg);
    font: 600 13px 'Manrope', sans-serif;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
@media (hover: hover) {
    .rs-table-toggle:hover { border-color: rgba(174, 0, 6, .45); }
}
.rs-table-toggle:focus-visible { outline: 2px solid var(--rs-brand); outline-offset: 2px; }
/* Acordeão: cada linha nova se desdobra de cima para baixo, uma após a outra (--r e tempos em casuistica.js) */
.rs-table-card.is-unfolding .rs-table tbody tr:nth-child(n + 5) {
    transform-origin: top center;
    animation: rs-row-unfold .38s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--r, 0) * 45ms);
}
@keyframes rs-row-unfold {
    from { opacity: 0; transform: perspective(700px) rotateX(-85deg); }
    to { opacity: 1; transform: none; }
}
/* Mola ao final: a tabela estica um pouco e assenta */
.rs-table-card.is-spring .rs-table-wrap { transform-origin: top center; animation: rs-table-spring .7s ease-out; }
@keyframes rs-table-spring {
    0% { transform: scaleY(1); }
    28% { transform: scaleY(1.022); }
    52% { transform: scaleY(.992); }
    74% { transform: scaleY(1.005); }
    100% { transform: scaleY(1); }
}
.rs-table-wrap { overflow-x: auto; border: 1px solid var(--rs-line); border-radius: 18px; background: rgba(0, 0, 0, 0.25); }
html[data-theme="light"] .rs-table-wrap { background: rgba(255, 255, 255, 0.65); }
.rs-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 540px; }
.rs-table caption { text-align: left; padding: 16px 18px 10px; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; color: var(--rs-fg); }
.rs-table th, .rs-table td { padding: 11px 18px; border-top: 1px solid var(--rs-line); text-align: left; vertical-align: top; }
.rs-table thead th { font: 500 11px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--rs-fg-3); background: var(--rs-surface); }
.rs-table tbody th { font-weight: 500; color: var(--rs-fg); }
.rs-table td { color: var(--rs-fg-2); font-variant-numeric: tabular-nums; }
.rs-table td:nth-child(2) { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--rs-fg); white-space: nowrap; }

/* ---------- Método + FAQ ---------- */
.rs-method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .rs-method { grid-template-columns: 1fr; } }
.rs-method div { border-top: 1px solid var(--rs-line-2); padding-top: 16px; }
.rs-method h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.rs-method p { font-size: 14px; color: var(--rs-fg-2); line-height: 1.6; }
.rs-faq { display: grid; gap: 10px; }
.rs-faq details { border: 1px solid var(--rs-line); border-radius: 14px; background: var(--rs-surface); }
html[data-theme="light"] .rs-faq details { background: rgba(255, 255, 255, 0.65); }
.rs-faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.rs-faq summary::-webkit-details-marker { display: none; }
.rs-faq summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--rs-fg-3); flex: none; transition: transform .25s; }
.rs-faq details[open] summary::after { transform: rotate(45deg); }
.rs-faq details p { padding: 0 20px 18px; font-size: 14.5px; color: var(--rs-fg-2); line-height: 1.6; max-width: 80ch; }

/* ---------- Rodapé legal da casuística ---------- */
.rs-legal { font-size: 12.5px; color: var(--rs-fg-3); line-height: 1.65; display: grid; gap: 8px; }
.rs-legal b { color: var(--rs-fg-2); font-weight: 500; }

/* ---------- Finalização: suporte ao paciente + ações + aviso (mesmo padrão do fim do blog) ---------- */
.rs-suporte { position: relative; overflow: hidden; max-width: 56rem; margin: 0 auto; padding: clamp(32px, 6vw, 64px); text-align: center; }
.rs-suporte::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(174, 0, 6, .05) 0%, transparent 80%); pointer-events: none; }
.rs-suporte__inner { position: relative; z-index: 1; max-width: 42rem; margin: 0 auto; }
.rs-suporte__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .4);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3);
    font: 500 12px 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #d4d4d8;
}
.rs-suporte__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--rs-brand); box-shadow: 0 0 8px var(--rs-brand); animation: rs-led-pulse 1.8s ease-in-out infinite; }
html[data-theme="light"] .rs-suporte__badge { border-color: rgba(16, 16, 16, .12); background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 2px rgba(16, 16, 16, .08); color: #3A3835; }
.rs-suporte__icon { width: 48px; height: 48px; margin: 0 auto 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--rs-brand); background: rgba(174, 0, 6, .1); border: 1px solid rgba(174, 0, 6, .2); }
.rs-suporte h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; margin-bottom: 16px; }
.rs-suporte p { margin: 0 0 32px; font-size: 15px; line-height: 1.65; color: var(--rs-fg-2); }
.rs-suporte__acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.rs-suporte__wa { width: 18px; height: 18px; object-fit: contain; opacity: .6; transition: opacity .2s ease; }
.ghost-cta:hover .rs-suporte__wa, .ghost-cta:focus-visible .rs-suporte__wa { opacity: 1; }
.rs-suporte__tel { position: relative; padding: 6px 0; font: 600 12px 'Manrope', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--rs-fg-2); text-decoration: none; transition: color .2s ease; }
.rs-suporte__tel::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--rs-brand); transition: width .3s ease; }
@media (hover: hover) {
    .rs-suporte__tel:hover { color: var(--rs-fg); }
    .rs-suporte__tel:hover::after { width: 100%; }
}
.rs-suporte__tel:focus-visible { color: var(--rs-fg); }
.rs-suporte__tel:focus-visible::after { width: 100%; }
.rs-fim__acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 64px; }
.shiny-cta.rs-fim__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-size: 12px; }
@media (max-width: 640px) { .rs-fim__acoes .rs-fim__btn { width: 100%; } }
.rs-fim__aviso { max-width: 56rem; margin: 40px auto 0; padding: 20px; display: flex; align-items: center; gap: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .05); background: rgba(255, 255, 255, .02); }
html[data-theme="light"] .rs-fim__aviso { border-color: rgba(16, 16, 16, .08); background: rgba(255, 255, 255, .55); }
.rs-fim__aviso-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--rs-brand); background: rgba(174, 0, 6, .15); border: 1px solid rgba(174, 0, 6, .35); }
.rs-fim__aviso p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--rs-fg-3); }

@media (prefers-reduced-motion: reduce) {
    .rs-dial__disc, .rs-dial__arc, .rs-dial__lap, .rs-tank__liquid, .rs-gauge__fill { transition: none !important; }
    .rs-dial__disc { transform: none; opacity: 1; }
    .rs-dials:not(.in) .rs-dial__arc, .rs-dials:not(.in) .rs-dial__lap { stroke-dasharray: revert-layer !important; }
    .rs-tank__liquid { height: calc(var(--f) * 100%); }
    .rs-rim-period__led, .rs-rim-period.is-flash { animation: none; }
    .rs-mini-dial__ring, .rs-group__track i, .rs-flip, .rs-intro-stack > p { transition: none; }
    .rs-group__track i { width: var(--w); }
    .rs-gauge:not(.in) .rs-gauge__fill { stroke-dasharray: revert-layer !important; }
}
