:root{--navy:#10354f;--ink:#102536;--muted:#506879;--line:#dce5ea;--orange:#d85720}
*{box-sizing:border-box}body{margin:0;background:#f6f9fa;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.55}
.analysis-container{width:min(1110px,calc(100% - 28px));margin:auto}
.analysis-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.98);border-bottom:1px solid var(--line);box-shadow:0 2px 15px #10354f0d}
.header-row{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px}.back-link{font-weight:750;color:#195b83}.analysis-version{font-size:12px;color:var(--muted);font-weight:700}
.intro{padding:32px 0 14px}.intro h1{font-size:clamp(28px,5vw,43px);letter-spacing:-.03em;line-height:1.12;margin:5px 0 12px}.intro p:last-child{max-width:820px;color:var(--muted)}.eyebrow{color:var(--orange);font-size:11px;font-weight:850;letter-spacing:.13em;margin:0}
.analysis-section{margin:22px 0;background:#fff;border:1px solid var(--line);box-shadow:0 8px 26px #10354f0b;border-radius:16px;padding:23px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.section-head h2{margin:3px 0 0;font-size:23px}.section-head>span{font-size:12px;color:var(--muted)}.filters{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0}
.filters label{display:flex;flex-direction:column;gap:5px;flex:1 1 180px;font-size:13px;font-weight:750}.filters select{min-height:44px;border:1px solid #bacbd6;border-radius:10px;padding:9px 12px;font:inherit;background:white;color:var(--ink);width:100%}
.note{font-size:13px;line-height:1.6;color:var(--muted);margin:10px 0 17px}.table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid #eef1f4;vertical-align:top}th{background:#edf3f7;color:#23495e;font-size:11px;letter-spacing:.03em}tbody tr:last-child td{border:0}td strong{font-weight:800}.subtle{font-size:11px;color:var(--muted);display:block;margin-top:2px}.price-kg{font-weight:900;color:#126044;white-space:nowrap}.no-results{padding:18px;color:var(--muted)}
.audit-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin:18px 0}.audit-cards div{border:1px solid var(--line);border-radius:12px;background:#f9fcfd;padding:13px}.audit-cards span{font-size:11px;color:var(--muted);display:block}.audit-cards strong{display:block;font-size:24px;color:var(--navy);margin:2px 0}
.chart-message{margin:10px 0 16px;color:var(--muted);font-size:13px;min-height:30px}#trendChart{display:block;width:100%;max-height:320px;margin:4px auto 16px;background:#fcfeff;border:1px solid var(--line);border-radius:12px}#trendChart[hidden]{display:none}#trendChart text{font:12px system-ui,sans-serif;fill:#496373}#trendChart .grid{stroke:#d5e1e8;stroke-width:1}#trendChart .line{fill:none;stroke:#16795d;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}#trendChart .point{fill:#16795d;stroke:#fff;stroke-width:2}
footer{padding:18px 0 42px;color:var(--muted);font-size:12px}a{color:#195b83}
@media(max-width:600px){.header-row{min-height:56px;font-size:14px}.intro{padding-top:22px}.analysis-section{padding:15px;margin:14px 0}.section-head h2{font-size:20px}.filters{gap:10px}.filters label{flex:1 1 42%}th,td{padding:10px 9px;font-size:12px}table{min-width:600px}.audit-cards{grid-template-columns:repeat(2,1fr)}}

/* A evolução é complementar ao comparador principal: evita tabelas duplicadas. */
.analysis-comparison-link{margin:22px 0 0;padding:14px 16px;background:#eef6f8;border:1px solid var(--line);border-radius:12px;font-size:14px}
.analysis-comparison-link a,.intro a{color:#155a79;font-weight:800;text-underline-offset:3px}
.chart-message{line-height:1.6}
.chart-message:not(:empty){padding:18px;background:#f7fafb;border:1px solid var(--line);border-radius:12px}
#trendTableWrap[hidden]{display:none!important}
