:root {
  --ink: #303b40;
  --muted: #59666e;
  --line: #dce2e6;
  --paper: #f3f5f7;
  --accent: #fce8ea;
  --brand: #be1e2d;
  --slate: #344e5c;
  --green: #36745f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 'Raleway', system-ui, sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
header { background: var(--brand); color: #fff; }
.header-inner, main, .footer-inner { width: 100%; max-width: 1200px; margin: auto; padding-right: 32px; padding-left: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-top: 16px; padding-bottom: 16px; }
.brand { color: #fff; font-size: 15px; font-weight: 900; letter-spacing: 1px; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--brand); background: #fff; padding: 4px 5px; }
.brand span { border-left: 1px solid #ffffff70; margin-left: 16px; padding-left: 16px; font-weight: 400; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 0; }
nav a:hover { text-decoration: underline; }
header :focus-visible { outline-color: #fff; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; background: #fff; padding: 12px 20px; border-radius: 4px; }
.skip-link:focus { top: 10px; }
.intro { padding: 32px 0 22px; }
.eyebrow { color: var(--slate); font-size: 11px; font-weight: 900; letter-spacing: 1.1px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(27px, 3.2vw, 38px); font-weight: 600; letter-spacing: -1.1px; margin: 10px 0 10px; }
h1 em { color: var(--brand); font-style: normal; }
h2 { font-size: 25px; letter-spacing: -.6px; font-weight: 600; margin: 6px 0; }
h3 { font-size: 20px; letter-spacing: -.3px; font-weight: 600; margin: 0; }
p { color: var(--muted); }
.intro > p { margin: 8px 0 12px; max-width: 72ch; }
.stamp { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); flex-shrink: 0; }
.team-message { margin: 0 0 22px; padding: 16px 20px; border: 1px solid #d4e0e7; border-left: 3px solid var(--slate); border-radius: 6px; background: #eaf0f3; }
.team-message h2 { margin: 0 0 6px; color: var(--slate); font-size: 15px; font-weight: 600; letter-spacing: 0; text-wrap: wrap; }
.team-message p { max-width: 110ch; margin: 6px 0; font-size: 14px; line-height: 1.6; }
.team-message details { padding: 8px 0 0; border: 0; font-size: 13px; }
.team-message summary { color: var(--slate); }
.team-message details p { margin-top: 12px; }
section { min-width: 0; }
label { display: block; font-size: 13px; font-weight: 600; }
select, input { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1px solid #87959f; border-radius: 5px; color: var(--ink); background: #fff; font: inherit; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23344e5c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input::placeholder { color: #67747c; opacity: 1; }
button { min-height: 46px; border: 1px solid transparent; border-radius: 5px; padding: 10px 18px; color: #fff; background: var(--brand); cursor: pointer; font: 600 14px 'Raleway', system-ui, sans-serif; }
button:hover { filter: brightness(.94); }
button:disabled { opacity: .55; cursor: default; }
.lookup { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: center; padding: 24px 28px; margin: 0 0 32px; border-radius: 8px; background: var(--slate); color: #fff; }
.lookup h2 { color: #fff; font-size: 23px; }
.lookup p { color: #e2e9ed; font-size: 14px; margin: 6px 0 0; }
.lookup form { display: flex; gap: 10px; align-items: end; }
.lookup label { flex: 1; min-width: 0; }
.lookup button { white-space: nowrap; }
.lookup button span { margin-left: 8px; }
.lookup .lookup-help { grid-column: 1/-1; font-size: 12px; margin-top: 10px; }
#answer { grid-column: 1/-1; display: grid; gap: 12px; }
#answer:empty { display: none; }
#answer:not(:empty) { margin-top: 16px; }
.result { border: 1px solid #81949e; border-radius: 6px; padding: 16px; }
.result h3 { color: #fff; font-size: 17px; margin: 0 0 8px; }
.result p { margin: 6px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 18px; }
.totalqueue { display: flex; align-items: center; flex-shrink: 0; gap: 12px; margin: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.totalqueue strong { font-size: 32px; font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.totalqueue span { font-size: 12px; line-height: 1.4; }
.view-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 16px 24px; margin: 0 0 16px; }
#kindChoice { width: 280px; max-width: 100%; }
.show-all-control { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; font-size: 13px; font-weight: 400; cursor: pointer; }
.show-all-control input { appearance: none; position: relative; width: 38px; height: 22px; min-height: 22px; margin: 0; padding: 0; border: 1px solid #71818c; border-radius: 20px; background: #d4dce1; cursor: pointer; }
.show-all-control input::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 2px; left: 2px; box-shadow: 0 1px 2px #0003; }
.show-all-control input:checked { background: var(--brand); border-color: var(--brand); }
.show-all-control input:checked::after { left: 18px; }
.dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard.single-view { grid-template-columns: minmax(0, 1fr); }
.gaugecard { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #fff; }
.cardhead { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.gaugecard .cardhead { min-height: 52px; }
.card-kicker { flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 4px 8px; background: #f1f4f6; color: var(--muted); border-radius: 4px; }
.forecast { padding: 16px 0 20px; }
.forecast-main { display: flex; align-items: center; gap: 20px; }
.gaugewrap { flex: 0 0 112px; }
.gaugewrap svg { width: 100%; height: auto; display: block; }
.tick { font: 22px system-ui; fill: var(--muted); }
[data-field="needle"] { transition: transform .7s; }
.gaugevalue { min-width: 0; }
.gaugevalue > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.gaugevalue > strong { display: block; font-size: 42px; font-weight: 600; line-height: 1.2; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; margin: 4px 0; }
.gaugevalue .deadline-context { font-size: 14px; color: var(--ink); }
.deadline-context b { font-weight: 600; }
.cardload { border-top: 1px solid var(--line); padding-top: 18px; margin-top: auto; }
.loadheading h4 { font-size: 13px; color: var(--muted); font-weight: 400; margin: 0 0 8px; }
.loadstatus { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.loadstatus > span { font-size: 12px; }
.loadstatus[data-level="0"] { color: var(--green); }
.loadstatus[data-level="1"] { color: #8a620e; }
.loadstatus[data-level="2"] { color: #ab3c35; }
.loadstatus[data-level="3"] { color: var(--muted); }
.load-description { font-size: 12px; line-height: 1.5; margin: 8px 0 14px; min-height: 36px; }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.single-view .gaugecard { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 24px 28px; }
.single-view .cardhead { grid-column: 1/-1; min-height: 0; margin-bottom: 16px; }
.single-view .forecast { display: flex; align-items: center; padding: 0; }
.single-view .forecast-main { gap: 24px; }
.single-view .gaugewrap { flex-basis: 160px; }
.single-view .gaugevalue > strong { font-size: 48px; }
.single-view .gaugevalue > span { font-size: 13px; }
.single-view .gaugevalue .deadline-context { font-size: 16px; }
.single-view .cardload { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 28px; margin-top: 0; }
.single-view .load-description { min-height: 0; }
.indicator-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; max-width: 90ch; }
.performance-summary { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; margin: 32px 0; }
.performance-summary h2 { font-size: 24px; }
.text-link { font-size: 13px; font-weight: 600; }
.performance-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rate-metric > span { display: block; color: var(--muted); font-size: 14px; }
.rate-metric > strong { display: block; font-size: 36px; font-weight: 600; letter-spacing: -1px; margin: 3px 0 8px; font-variant-numeric: tabular-nums; }
.rate-track { height: 6px; border-radius: 4px; background: #edf1f3; overflow: hidden; }
.rate-track span { display: block; width: 0; height: 100%; background: var(--green); }
.expected .rate-track span { background: #8296a2; }
#performance-number { font-size: 13px; margin: 14px 0 0; }
.comparison-details { font-size: 12px; border-top: 0; padding: 12px 0 0; }
.comparison-details p { max-width: 90ch; }
.method { margin: 40px 0; }
.method > h2 { font-size: 27px; }
.lead { max-width: 76ch; margin: 10px 0 22px; }
details { border-top: 1px solid var(--line); padding: 16px 0; font-size: 14px; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
summary::marker { color: var(--slate); }
details > p { max-width: 80ch; margin: 12px 0; }
.methodgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin: 24px 0 8px; max-width: 960px; }
.methodgrid article > span { font-size: 12px; color: var(--muted); }
.methodgrid h3 { font-size: 16px; margin: 6px 0; }
.methodgrid p { font-size: 14px; margin: 8px 0; }
.small { font-size: 12px; line-height: 1.6; }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 28px; color: var(--muted); font-size: 12px; }
.noscript-note { max-width: 1136px; margin: 24px auto; padding: 16px; border: 1px solid var(--line); }
/* The optional daily history retains its existing controls and horizontal scroll. */
.history { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin: 28px 0; }
.history .cardhead p, .scrollhint { font-size: 12px; }
.selector { min-width: 175px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 20px 0; font-size: 12px; }
.legend span { display: flex; gap: 7px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.chartscroll { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 12px; }
.dailyrow { width: max-content; min-width: 100%; border-top: 1px solid var(--line); padding-top: 14px; }
.dailyrow h3 { position: sticky; left: 0; width: fit-content; max-width: 85vw; background: #fff; margin: 0 0 8px; font-size: 14px; }
.dailyrow svg { display: block; }
.dailyrow circle { cursor: help; }
.dailyrow .dailyaxis { position: sticky; left: 0; margin-top: -165px; background: #fff; pointer-events: none; }
#dailyTable { max-height: 420px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px; }
@media (max-width: 1100px) {
  .dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-view .gaugewrap { flex-basis: 128px; }
}
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .lookup { grid-template-columns: 1fr; gap: 12px; }
  .lookup .lookup-help { margin-top: 0; }
  .section-heading { flex-wrap: wrap; }
  .single-view .gaugecard { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .single-view .cardhead { margin-bottom: 0; }
  .single-view .forecast-main { width: 100%; gap: 24px; }
  .single-view .cardload { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .single-view .gaugewrap { flex-basis: 160px; }
}
@media (max-width: 560px) {
  .header-inner, main, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding-top: 14px; padding-bottom: 12px; }
  nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 20px; }
  nav a { font-size: 12px; min-height: 36px; display: inline-flex; align-items: center; }
  .intro { padding: 26px 0 20px; }
  h1 { letter-spacing: -.7px; }
  .intro > p { font-size: 15px; }
  h2 { font-size: 23px; }
  .lookup { padding: 20px; margin-bottom: 28px; }
  .lookup h2 { font-size: 22px; }
  .lookup form { flex-wrap: wrap; }
  .lookup label { flex-basis: 100%; }
  .lookup button { width: 100%; }
  .totalqueue { border-left: 0; padding-left: 0; }
  .totalqueue br { display: none; }
  .totalqueue strong { font-size: 28px; }
  .view-controls { gap: 8px; }
  #kindChoice { width: 100%; }
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .gaugecard, .single-view .gaugecard { padding: 20px; }
  .single-view .gaugewrap { flex-basis: 112px; }
  .single-view .forecast-main { gap: 16px; }
  .single-view .gaugevalue > strong { font-size: 42px; }
  .single-view .gaugevalue > span { font-size: 12px; }
  .single-view .gaugevalue .deadline-context { font-size: 14px; }
  .cardhead { flex-wrap: wrap; }
  .gaugecard .cardhead { min-height: 0; }
  .card-kicker { display: none; }
  .performance-summary { padding: 20px; }
  .performance-summary h2 { font-size: 23px; }
  .performance-rates { gap: 20px; }
  .rate-metric > span { font-size: 12px; }
  .rate-metric > strong { font-size: 30px; }
  .methodgrid { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { align-items: start; flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  .header-inner, main, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .gaugewrap, .single-view .gaugewrap { flex-basis: 88px; }
  .forecast-main, .single-view .forecast-main { gap: 12px; }
  .gaugecard, .single-view .gaugecard { padding: 16px; }
  .performance-rates { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-field="needle"] { transition: none; }
}

/* Previsão e fila compartilham alinhamento, margens e altura. */
.indicators-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr); gap:24px; align-items:stretch; }
.forecast-panel { min-width:0; display:flex; flex-direction:column; padding:24px 28px; background:#fff; border:1px solid var(--line); border-radius:8px; }
.forecast-panel .view-controls { margin:0; padding-bottom:20px; border-bottom:1px solid var(--line); gap:12px 20px; align-items:end; }
.forecast-panel #kindChoice { width:230px; flex:1 1 200px; }
.forecast-panel .show-all-control { font-size:12px; }
.indicators-layout .dashboard.single-view { flex:1; display:flex; flex-direction:column; }
.indicators-layout .single-view .gaugecard { flex:1; display:flex; flex-direction:column; padding:24px 0 4px; border:0; background:transparent; }
.indicators-layout .single-view .cardhead { margin-bottom:20px; min-height:0; }
.indicators-layout .single-view .forecast { flex:1; display:flex; align-items:center; justify-content:center; padding:8px 0 20px; }
.indicators-layout .single-view .forecast-main { width:100%; justify-content:center; gap:24px; }
.indicators-layout .single-view .gaugewrap { flex:0 1 210px; min-width:110px; }
.indicators-layout .single-view .gaugevalue > strong { font-size:56px; }
.queue-summary { min-width:0; background:#fff; border:1px solid var(--line); border-radius:8px; padding:24px 28px; }
.queue-summary h3 { font-size:18px; }
.queue-total { display:flex; align-items:baseline; gap:12px; margin:20px 0 24px; }
.queue-total strong { font-size:56px; line-height:1; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; }
.queue-total span { font-size:14px; }
.queue-summary table { table-layout:fixed; }
.queue-summary th, .queue-summary td { padding:11px 0; }
.queue-summary thead th { font-size:11px; color:var(--muted); font-weight:600; }
.queue-summary thead th:last-child { width:90px; }
.queue-summary tbody th { font-weight:400; }
.queue-summary td, .queue-summary thead th:last-child { text-align:right; padding-left:12px; font-variant-numeric:tabular-nums; }
.queue-summary td { font-weight:600; }
.queue-summary tbody tr:last-child > * { border-bottom:0; }
.indicators-layout:has(#showAll:checked) { grid-template-columns:minmax(0,1fr); }
.forecast-panel:has(#showAll:checked) .dashboard { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:20px; }
.forecast-panel:has(#showAll:checked) .gaugecard { padding:16px; }
@media (max-width:1000px) {
 .indicators-layout { grid-template-columns:minmax(0,1fr); }
 .indicators-layout .single-view .forecast { padding:16px 0; }
 .forecast-panel:has(#showAll:checked) .dashboard { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
 .forecast-panel, .queue-summary { padding:20px; }
 .forecast-panel .view-controls { gap:8px; padding-bottom:16px; }
 .forecast-panel #kindChoice { flex-basis:100%; width:100%; }
 .indicators-layout .single-view .cardhead { margin-bottom:8px; }
 .indicators-layout .single-view .forecast-main { gap:16px; }
 .indicators-layout .single-view .gaugewrap { flex-basis:130px; min-width:80px; }
 .indicators-layout .single-view .gaugevalue > strong { font-size:42px; }
 .forecast-panel:has(#showAll:checked) .dashboard { grid-template-columns:minmax(0,1fr); }
 .queue-total { margin:16px 0 20px; }
}
