:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17302d;
  background: #edf3f1;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px; background: #0d3531; color: #dbeae7; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; }
.brand span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #ddf373; color: #17302d; font-weight: 900; }
.sidebar nav { display: grid; gap: 8px; margin-top: 46px; }
.sidebar a { color: #a9c7c1; text-decoration: none; padding: 12px 14px; border-radius: 10px; }
.sidebar a:hover, .sidebar a.active { color: white; background: rgba(255,255,255,.09); }
.sidebar-note { margin-top: auto; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; font-size: 12px; line-height: 1.6; }
main { width: 100%; max-width: 1580px; margin: 0 auto; padding: 32px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: 23px; }
h3 { margin: 22px 0 14px; font-size: 15px; }
.eyebrow { color: #5d7772; font-size: 11px; font-weight: 800; letter-spacing: .14em; margin-bottom: 7px; }
.status { display: inline-flex; align-items: center; gap: 8px; border-radius: 30px; background: white; padding: 10px 14px; box-shadow: 0 8px 28px rgba(22,52,48,.06); font-size: 13px; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #32b76c; box-shadow: 0 0 0 5px #dff5e8; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.cards article, .panel { background: rgba(255,255,255,.92); border: 1px solid #dfe9e6; border-radius: 19px; box-shadow: 0 14px 40px rgba(20,50,45,.055); }
.cards article { padding: 20px; }
.cards span, .cards small { display: block; color: #67807b; }
.cards strong { display: block; margin: 8px 0; font-size: 30px; letter-spacing: -.03em; }
.cards small { font-size: 12px; }
.panel { margin-top: 18px; padding: 22px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pill { background: #edf4f2; color: #58706b; border-radius: 30px; padding: 8px 12px; font-size: 12px; }
.territory-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.territory-card { padding: 16px; border: 1px solid #e1ebe8; border-radius: 14px; }
.territory-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.risk { padding: 5px 8px; border-radius: 20px; background: #eef5ef; color: #4e7457; font-size: 10px; white-space: nowrap; }
.risk.high { background: #fff0e9; color: #9a472b; }
.territory-card label { display: flex; justify-content: space-between; margin: 11px 0 6px; font-size: 11px; color: #68807b; }
.meter { height: 7px; border-radius: 8px; background: #edf1ef; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: #e39b52; }
.meter.governance i { background: #3d9688; }
.workspace { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(340px,.8fr); gap: 18px; }
.simulator, .result-panel { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.field, .range-field, .number-field { display: grid; gap: 7px; color: #5f7772; font-size: 12px; }
.field input, .number-field select { width: 100%; border: 1px solid #dbe6e3; border-radius: 10px; background: #f9fbfa; padding: 11px 12px; color: #17302d; outline: none; }
.field input:focus, .number-field select:focus { border-color: #3a9587; box-shadow: 0 0 0 3px rgba(58,149,135,.12); }
.sliders { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 24px; }
.range-field span { display: flex; justify-content: space-between; }
.range-field input { accent-color: #0b7569; }
button { margin-top: 22px; border: 0; border-radius: 12px; padding: 13px 18px; background: #0b6d63; color: white; font-weight: 800; cursor: pointer; }
button:hover { background: #085e56; }
button:disabled { opacity: .6; cursor: wait; }
.empty-state { min-height: 330px; display: grid; place-items: center; text-align: center; padding: 30px; border: 1px dashed #ccdcd8; border-radius: 14px; color: #78908b; line-height: 1.6; }
.result-content { display: grid; gap: 18px; }
.result-hero { padding: 22px; border-radius: 15px; background: #0d403a; color: white; }
.result-hero span, .result-hero small { display: block; color: #bbd5d0; }
.result-hero strong { display: block; margin: 8px 0; font-size: 44px; }
dl { display: grid; gap: 9px; margin: 0; }
dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #e4ecea; }
dt { color: #6d827e; font-size: 12px; } dd { margin: 0; font-weight: 800; }
.source, .warning, .disclaimer { margin: 0; font-size: 11px; line-height: 1.5; }
.warning, .alert { background: #fff3e8; color: #8b4d29; border: 1px solid #f4d9c4; border-radius: 10px; padding: 11px 13px; }
.disclaimer { color: #7b8f8b; }
.alert { margin-bottom: 16px; }
@media (max-width: 1100px) { .cards, .territory-grid { grid-template-columns: repeat(2,1fr); } .workspace { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .app-shell { display:block; } .sidebar { position: static; width: 100%; height: auto; padding: 17px; } .sidebar nav { display:flex; overflow:auto; margin-top:18px; } .sidebar-note { display:none; } main { padding:18px; } .topbar { align-items:flex-start; gap:15px; } .status { display:none; } .cards, .territory-grid, .form-grid, .sliders { grid-template-columns:1fr; } }

.principle-banner { margin-bottom: 18px; padding: 15px 18px; border-radius: 14px; background: #dff2eb; border: 1px solid #c5e3d8; color: #285c52; line-height: 1.5; font-size: 13px; }
.cards.six { grid-template-columns: repeat(3, minmax(0,1fr)); }
.funding-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.funding-card { display: grid; gap: 8px; padding: 16px; border: 1px solid #e1ebe8; border-radius: 14px; }
.funding-card > span { text-transform: uppercase; color: #708782; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.funding-card small { color: #617873; }
.funding-card label { display: flex; justify-content: space-between; color: #68807b; font-size: 11px; margin-top: 8px; }
fieldset { margin: 18px 0 0; padding: 18px; border: 1px solid #dce8e5; border-radius: 15px; }
legend { padding: 0 8px; color: #285c54; font-size: 13px; font-weight: 900; }
.sliders.compact { margin-top: 16px; }
.consent { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px; border-radius: 11px; background: #f1f7f5; font-size: 12px; font-weight: 700; }
.consent input { width: 17px; height: 17px; accent-color: #0b7569; }
.privacy-note { margin: 10px 0 0; color: #718681; font-size: 11px; line-height: 1.5; }
.recommendation { padding: 14px; border-radius: 12px; background: #eef6cf; color: #3f5b19; font-size: 13px; font-weight: 800; line-height: 1.4; }
.network-status { padding: 12px; border-radius: 11px; background: #edf5f3; color: #496b65; font-size: 12px; }
.review-score { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-radius: 13px; background: #e8f2ef; }
.review-score span { color: #55736d; font-size: 12px; }
.review-score strong { font-size: 27px; }
.review-flag { padding: 12px; border-radius: 10px; background: #e8f5eb; color: #356646; font-size: 12px; font-weight: 900; text-align: center; }
.review-flag.high { background: #fff0e9; color: #94442a; }
.empty-state.small { min-height: 150px; }
@media (max-width: 1250px) { .cards.six { grid-template-columns: repeat(2, 1fr); } .funding-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) { .cards.six, .funding-grid { grid-template-columns: 1fr; } fieldset { padding: 14px; } }

/* Plataforma de piloto participativo e causal v0.8.2 */
.pilot-suite { margin-top: 18px; }
.pilot-intro { color: #5f7772; line-height: 1.65; max-width: 980px; }
.maturity-ladder { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.maturity-card { min-height: 160px; display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid #dfe9e6; border-radius: 15px; background: #f8fbfa; }
.maturity-card > span { width: max-content; padding: 5px 8px; border-radius: 20px; background: #e8f1ee; color: #57716b; font-size: 10px; font-weight: 900; }
.maturity-card strong { font-size: 15px; }
.maturity-card small { color: #6c817d; line-height: 1.45; }
.maturity-card b { margin-top: auto; color: #8a5a2d; font-size: 10px; text-transform: uppercase; }
.maturity-card.atendido { border-color: #a9d7c8; background: #f0faf6; }
.maturity-card.atendido b { color: #28705a; }
.maturity-card.em_implementacao { border-color: #e7c98c; background: #fffaf0; }
.pilot-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.pilot-kpis article { padding: 15px; border-radius: 13px; background: #0f413b; color: white; }
.pilot-kpis span { display: block; color: #b9d3ce; font-size: 11px; }
.pilot-kpis strong { display: block; margin-top: 7px; font-size: 18px; text-transform: capitalize; }
.workstream-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.workstream-grid article { display: grid; gap: 10px; min-height: 145px; padding: 15px; border: 1px solid #e0e9e7; border-radius: 14px; }
.workstream-grid article > div { display: flex; align-items: center; justify-content: space-between; }
.workstream-grid article > div > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #e7f1ee; color: #285e54; font-weight: 900; }
.workstream-grid small { color: #6a817c; line-height: 1.5; }
.work-status { border-radius: 20px; padding: 5px 7px; background: #edf2f0; color: #6a7e7a; font-size: 9px; text-transform: uppercase; }
.work-status.implementado { background: #e2f5e9; color: #2e7047; }
.work-status.implementado_parcialmente, .work-status.implementado_para_piloto { background: #fff1d9; color: #855d21; }
.package-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.package-grid article { display: grid; gap: 10px; padding: 17px; border: 1px solid #dfe9e6; border-radius: 15px; background: linear-gradient(145deg, #ffffff, #f3f8f6); }
.package-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #0d5149; color: #fff; font-weight: 900; }
.package-grid p { margin: 0; color: #4e6c66; font-size: 12px; line-height: 1.55; }
.package-grid small { color: #70847f; line-height: 1.45; }
.pilot-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.readiness-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.readiness-grid article { padding: 13px; border: 1px solid #e1e9e7; border-radius: 12px; }
.readiness-grid article > span { display: block; color: #6e827e; font-size: 10px; text-transform: capitalize; }
.readiness-grid article > strong { display: block; margin: 5px 0 8px; font-size: 20px; }
.gate-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.gate { border-radius: 20px; padding: 7px 10px; font-size: 10px; text-transform: capitalize; }
.gate.ok { background: #e3f4e8; color: #2f6942; }
.gate.fail { background: #fde9e2; color: #94452c; }
.failure-list { margin: 12px 0 0; padding-left: 20px; color: #8d4d32; font-size: 11px; line-height: 1.6; }
.theory-list { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.theory-list article { display: grid; grid-template-columns: 35px 1fr; gap: 5px 10px; padding: 12px; border: 1px solid #e2ebe9; border-radius: 11px; }
.theory-list article b { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #edf5f3; color: #315e56; }
.theory-list article span { font-size: 11px; font-weight: 800; line-height: 1.4; }
.theory-list article small { color: #6b807c; line-height: 1.4; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.inline-form input { border: 1px solid #d8e4e1; border-radius: 11px; padding: 11px 12px; background: #fafcfb; }
.inline-form button { margin: 0; padding: 10px 13px; font-size: 11px; }
.protocol-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.protocol-grid article { min-height: 105px; padding: 15px; border-radius: 13px; background: #f1f7f5; }
.protocol-grid span { display: block; color: #6a807b; font-size: 10px; }
.protocol-grid strong { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; }
.criteria-table { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid #dee8e5; border-radius: 12px; background: #dee8e5; }
.criteria-table div { display: flex; justify-content: space-between; gap: 8px; padding: 11px; background: white; }
.criteria-table span { color: #6a807c; font-size: 10px; text-transform: capitalize; }
.criteria-table b { font-size: 11px; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.lab-actions button { margin: 0; font-size: 11px; }
.lab-actions button:nth-child(2) { background: #3b6d91; }
.lab-actions button:nth-child(3) { background: #9a5c35; }
.lab-actions button:nth-child(4) { background: #66528f; }
.lab-results { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.lab-results article { min-height: 140px; display: grid; align-content: start; gap: 8px; padding: 15px; border: 1px solid #dfe9e6; border-radius: 14px; }
.lab-results span { color: #6a807c; font-size: 10px; text-transform: uppercase; font-weight: 800; }
.lab-results strong { font-size: 13px; line-height: 1.45; }
.lab-results small { color: #738783; line-height: 1.5; }
@media (max-width: 1250px) {
  .maturity-ladder { grid-template-columns: repeat(3, 1fr); }
  .workstream-grid { grid-template-columns: repeat(2, 1fr); }
  .package-grid, .protocol-grid, .lab-results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pilot-two-columns { grid-template-columns: 1fr; }
  .pilot-kpis, .criteria-table { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .maturity-ladder, .workstream-grid, .package-grid, .pilot-kpis, .protocol-grid, .criteria-table, .lab-results, .readiness-grid { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
}

.sidebar a.platform-link { background: #ddf373; color: #17302d; font-weight: 900; margin-bottom: 8px; }
.sidebar a.platform-link:hover { background: #e8f89b; }

/* ========================================================================== 
   Plataforma operacional v0.8.3
   ========================================================================== */
:root {
  --op-bg: #f2f6f4;
  --op-surface: #ffffff;
  --op-surface-soft: #f7faf8;
  --op-ink: #17231f;
  --op-muted: #687871;
  --op-line: #dce6e1;
  --op-primary: #0d6b57;
  --op-primary-dark: #084b3e;
  --op-primary-soft: #e2f3ed;
  --op-danger: #a73535;
  --op-warning: #a66a0d;
  --chart-0: #0d6b57;
  --chart-1: #3182bd;
  --chart-2: #e09a35;
  --chart-3: #7757a8;
  --chart-4: #3a9a8a;
  --chart-5: #c85b5b;
}
body { background: var(--op-bg); color: var(--op-ink); }
button, input, select, textarea { font: inherit; }
.operational-shell { grid-template-columns: 282px minmax(0,1fr); background: var(--op-bg); }
.operational-sidebar {
  width: 282px; padding: 18px 13px; overflow-y: auto; background: linear-gradient(180deg,#073f35,#0b5b4b 55%,#073f35);
  z-index: 80; box-shadow: 8px 0 30px rgba(9,48,40,.08);
}
.operational-brand { padding: 5px 8px 17px; font-size: 18px; }
.operational-brand span { background: white; color: var(--op-primary); }
.operational-brand div { display: grid; gap: 2px; }
.operational-brand small { color: rgba(255,255,255,.62); font-size: 10px; }
.nav-group-title { margin: 17px 9px 6px; color: rgba(255,255,255,.46); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.nav-button {
  width: 100%; display: flex; gap: 10px; align-items: center; border: 0; border-radius: 10px; padding: 9px 11px; margin: 2px 0;
  color: rgba(255,255,255,.82); background: transparent; text-align: left; font-size: 12px; cursor: pointer; transition: .16s ease;
}
.nav-button i { width: 22px; display: inline-grid; place-items: center; font-style: normal; font-size: 14px; }
.nav-button:hover { background: rgba(255,255,255,.09); color: white; transform: translateX(2px); }
.nav-button.active { background: white; color: var(--op-primary); font-weight: 850; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.operational-note { margin: 22px 6px 6px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.07); }
.operational-note b { color: #c7f2e2; }
.operational-main { min-width: 0; width: auto; max-width: none; margin: 0; padding: 0; }
.operational-topbar {
  min-height: 78px; position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 28px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--op-line); backdrop-filter: blur(14px);
}
.operational-topbar h1 { margin: 0; font-size: clamp(22px,3vw,30px); }
.operational-topbar .eyebrow { margin-bottom: 3px; }
.connection { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; border: 1px solid var(--op-line); background: white; }
.connection i { width: 8px; height: 8px; border-radius: 50%; }
.connection.online { color: var(--op-primary); }
.connection.online i { background: #24a66f; box-shadow: 0 0 0 4px #dcf4e9; }
.connection.offline { color: var(--op-danger); }
.connection.offline i { background: #c54d4d; box-shadow: 0 0 0 4px #f9e4e4; }
.mobile-toggle { display: none; border: 0; border-radius: 10px; background: var(--op-primary-soft); color: var(--op-primary); padding: 9px 11px; font-weight: 900; }
.operational-content { width: 100%; max-width: 1800px; padding: 25px 28px 48px; margin: 0 auto; }
.notice-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 13px 16px; margin-bottom: 17px; border: 1px solid #bfdfd3; border-radius: 13px; background: #eaf7f2; color: #174c3f; }
.notice-banner strong { font-size: 12px; }
.notice-banner span { color: #527069; font-size: 11px; }
.notice-banner em { font-style: normal; font-size: 10px; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.metric-card { min-height: 127px; display: grid; align-content: start; gap: 6px; padding: 17px; border: 1px solid var(--op-line); border-radius: 16px; background: white; text-align: left; cursor: pointer; box-shadow: 0 12px 32px rgba(20,58,45,.05); transition: .16s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: #a9d4c5; box-shadow: 0 16px 38px rgba(20,58,45,.09); }
.metric-card span { color: var(--op-muted); font-size: 11px; }
.metric-card strong { font-size: 24px; letter-spacing: -.03em; }
.metric-card small { color: var(--op-muted); font-size: 10px; line-height: 1.4; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.chart-card { min-width: 0; min-height: 330px; padding: 18px; border: 1px solid var(--op-line); border-radius: 17px; background: white; box-shadow: 0 12px 32px rgba(20,58,45,.05); }
.chart-card.wide { grid-column: span 2; }
.chart-card > div:first-child h3 { margin: 0; font-size: 15px; }
.chart-card > div:first-child p { margin: 4px 0 14px; color: var(--op-muted); font-size: 10px; }
.bar-chart { display: grid; gap: 12px; padding-top: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(95px,160px) 1fr 58px; gap: 10px; align-items: center; font-size: 10px; }
.bar-row > div { height: 11px; overflow: hidden; border-radius: 999px; background: #e9f0ed; }
.bar-row > div i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--op-primary),#2baa83); }
.bar-row b { text-align: right; font-size: 10px; }
.donut-layout { min-height: 225px; display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 20px; }
.donut { width: 172px; height: 172px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.donut::after { content: ''; position: absolute; inset: 28px; border-radius: 50%; background: white; }
.donut span { position: relative; z-index: 2; display: grid; text-align: center; }
.donut span b { font-size: 20px; }
.donut span small { color: var(--op-muted); font-size: 9px; }
.donut-legend { display: grid; gap: 9px; }
.donut-legend > div { display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; font-size: 10px; }
.donut-legend i { width: 8px; height: 8px; border-radius: 50%; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 8px; font-size: 9px; color: var(--op-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 11px; height: 4px; border-radius: 999px; }
.series-0 { background: var(--chart-0); }
.series-1 { background: var(--chart-1); }
.series-2 { background: var(--chart-2); }
.series-3 { background: var(--chart-3); }
.grouped-chart { height: 260px; display: grid; grid-template-rows: auto 1fr; }
.grouped-columns { min-width: 0; display: flex; align-items: stretch; gap: 18px; padding: 15px 10px 0; border-bottom: 1px solid var(--op-line); }
.group-column { min-width: 60px; flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 7px; align-items: end; }
.column-bars { height: 100%; display: flex; gap: 4px; align-items: end; justify-content: center; }
.column-bars i { width: min(25px,28%); min-height: 2px; border-radius: 5px 5px 0 0; }
.group-column > span { min-height: 27px; color: var(--op-muted); font-size: 9px; text-align: center; line-height: 1.25; }
.line-chart { width: 100%; overflow: hidden; }
.line-chart svg { width: 100%; min-height: 220px; overflow: visible; }
.line-chart .grid-line { stroke: #e5ece9; stroke-width: 1; }
.line-chart .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.series-stroke-0 { stroke: var(--chart-0); }
.series-stroke-1 { stroke: var(--chart-1); }
.series-fill-0 { fill: var(--chart-0); }
.series-fill-1 { fill: var(--chart-1); }
.line-chart text { fill: var(--op-muted); font-size: 9px; }
.quick-actions { margin-top: 15px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.quick-actions h2 { margin: 0; font-size: 16px; }
.quick-actions p { margin: 4px 0 0; color: var(--op-muted); font-size: 10px; }
.quick-actions > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.quick-actions button { border: 1px solid var(--op-line); background: var(--op-surface-soft); color: var(--op-primary-dark); border-radius: 9px; padding: 8px 10px; font-size: 10px; font-weight: 750; }
.page-intro { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 16px; }
.page-intro.compact { margin-bottom: 8px; }
.page-intro h2 { margin: 0; font-size: 23px; }
.page-intro p:last-child { max-width: 850px; margin: 6px 0 0; color: var(--op-muted); font-size: 12px; line-height: 1.5; }
.primary-button, .secondary-button { border: 0; border-radius: 10px; padding: 10px 13px; font-size: 11px; font-weight: 850; cursor: pointer; }
.primary-button { color: white; background: var(--op-primary); box-shadow: 0 7px 17px rgba(13,107,87,.18); }
.primary-button:hover { background: var(--op-primary-dark); }
.secondary-button { color: var(--op-primary); background: var(--op-primary-soft); border: 1px solid #c7e2d8; }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: not-allowed; }
.resource-panel { margin-top: 0; padding: 15px; }
.resource-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.resource-toolbar > div { display: flex; align-items: center; gap: 8px; color: var(--op-muted); font-size: 10px; }
.resource-toolbar select { border: 1px solid var(--op-line); border-radius: 8px; padding: 8px; background: white; color: var(--op-ink); }
.table-search { width: min(480px,50%); display: flex; align-items: center; gap: 8px; border: 1px solid var(--op-line); border-radius: 10px; padding: 8px 10px; background: var(--op-surface-soft); }
.table-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--op-ink); font-size: 11px; }
.data-table-wrap { width: 100%; overflow: auto; border: 1px solid var(--op-line); border-radius: 12px; }
.data-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.data-table th { padding: 10px 11px; background: #f0f6f3; color: #5f716a; border-bottom: 1px solid var(--op-line); font-size: 9px; font-weight: 900; text-align: left; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.data-table td { max-width: 260px; padding: 10px 11px; border-bottom: 1px solid var(--op-line); font-size: 10px; vertical-align: middle; line-height: 1.4; }
.data-table tbody tr:hover { background: #fbfdfc; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 5px; white-space: nowrap; }
.row-actions button { border: 1px solid var(--op-line); border-radius: 7px; padding: 5px 7px; background: white; color: var(--op-primary); font-size: 9px; cursor: pointer; }
.row-actions button:hover { background: var(--op-primary-soft); }
.row-actions .danger-link { color: var(--op-danger); }
.status-badge, .boolean { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; background: #edf3f1; color: #4e655e; white-space: nowrap; }
.status-ativa, .status-vendas, .status-aprovado, .status-aberta, .status-paga, .status-concluida, .status-verificada, .boolean.yes { background: #e2f5ed; color: #096447; }
.status-critica, .status-confirmado, .status-divergente, .status-cancelada, .status-inabilitada, .boolean.no { background: #fae8e8; color: #9b3333; }
.status-alta, .status-carencia, .status-pendente, .status-em-analise, .status-em-análise { background: #fff2db; color: #8a5b0c; }
.status-transicao, .status-revisao-humana, .status-human-review { background: #e8eff8; color: #315f91; }
.empty-table { padding: 38px; color: var(--op-muted); text-align: center; }
.pagination { display: flex; justify-content: flex-end; gap: 9px; align-items: center; padding-top: 12px; color: var(--op-muted); font-size: 10px; }
.pagination button { width: 30px; height: 30px; border: 1px solid var(--op-line); border-radius: 8px; background: white; cursor: pointer; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 22px; background: rgba(7,29,24,.58); backdrop-filter: blur(4px); }
.modal-card { width: min(1050px,96vw); max-height: 92vh; overflow: auto; padding: 20px; border: 1px solid rgba(255,255,255,.5); border-radius: 18px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; gap: 15px; align-items: start; padding-bottom: 14px; margin-bottom: 15px; border-bottom: 1px solid var(--op-line); }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-head > button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #edf3f1; color: var(--op-ink); font-size: 21px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.form-field { display: grid; align-content: start; gap: 6px; }
.form-field.wide { grid-column: span 3; }
.form-field > span { color: #4f625b; font-size: 10px; font-weight: 850; }
.form-field > span b { margin-left: 3px; color: var(--op-danger); }
.form-field input:not([type=checkbox]), .form-field select, .form-field textarea { width: 100%; min-height: 40px; border: 1px solid var(--op-line); border-radius: 9px; padding: 9px 10px; background: white; color: var(--op-ink); outline: 0; font-size: 11px; }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #6bb49d; box-shadow: 0 0 0 3px #e7f4ef; }
.checkbox-field { display: flex; align-items: center; align-content: center; flex-direction: row; gap: 8px; padding-top: 23px; }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--op-primary); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--op-line); }
.details-modal { width: min(900px,96vw); }
.details-modal dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--op-line); border-radius: 12px; background: var(--op-line); }
.details-modal dl > div { min-width: 0; padding: 10px; background: white; }
.details-modal dt { color: var(--op-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.details-modal dd { margin: 5px 0 0; font-size: 11px; overflow-wrap: anywhere; }
.details-modal pre, .routes-panel pre { max-height: 300px; overflow: auto; padding: 12px; border-radius: 10px; background: #10231f; color: #cbe8dd; font-size: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 300; max-width: 430px; padding: 12px 16px; border-radius: 11px; color: white; background: #254c43; box-shadow: 0 14px 40px rgba(0,0,0,.22); font-size: 11px; }
.toast.success { background: var(--op-primary); }
.toast.error { background: var(--op-danger); }
.toast.info { background: #315f91; }
.state-panel { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--op-muted); text-align: center; }
.state-panel p { margin: 0; font-size: 11px; }
.state-panel.error strong { color: var(--op-danger); }
.spinner { width: 28px; height: 28px; border: 3px solid #dbe8e3; border-top-color: var(--op-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.report-highlights { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.report-highlights article { padding: 15px; border: 1px solid var(--op-line); border-radius: 14px; background: white; }
.report-highlights span { color: var(--op-muted); font-size: 10px; }
.report-highlights strong { display: block; margin-top: 7px; font-size: 20px; }
.csv-panel { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 0; }
.csv-panel h2 { margin: 0; font-size: 16px; }
.csv-panel p { margin: 4px 0 0; color: var(--op-muted); font-size: 10px; }
.csv-panel > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.csv-panel a { padding: 8px 10px; border: 1px solid #c8e2d8; border-radius: 8px; color: var(--op-primary); background: var(--op-primary-soft); text-decoration: none; font-size: 10px; font-weight: 800; }
.report-grid { margin-top: 15px; }
.routes-panel { margin-top: 0; }
.route-list { margin-top: 18px; }
.route-list h3 { margin-bottom: 8px; }
.route-list article { display: grid; grid-template-columns: 48px 48px minmax(280px,1fr) 180px; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--op-line); font-size: 10px; }
.route-list article code { overflow-wrap: anywhere; color: var(--op-primary-dark); }
.route-list article small { color: var(--op-muted); }
.method { display: inline-flex; justify-content: center; padding: 4px 6px; border-radius: 6px; font-size: 8px; font-weight: 900; }
.method.get { color: #285f8d; background: #e6f0f8; }
.method.post { color: #0c684c; background: #e1f4ec; }
.mobile-backdrop { display: none; }

@media (max-width: 1350px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-field.wide { grid-column: span 2; }
  .report-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .operational-shell { display: block; }
  .operational-sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-105%); transition: .2s ease; }
  .operational-sidebar.open { transform: translateX(0); }
  .mobile-toggle { display: inline-block; }
  .mobile-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(5,25,21,.38); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .chart-card.wide { grid-column: auto; }
  .operational-content { padding: 20px; }
  .notice-banner { grid-template-columns: 1fr; }
  .csv-panel, .quick-actions { align-items: flex-start; flex-direction: column; }
  .csv-panel > div:last-child, .quick-actions > div:last-child { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .operational-topbar { padding: 12px 15px; }
  .operational-topbar h1 { font-size: 19px; }
  .connection { display: none; }
  .operational-content { padding: 15px 12px 38px; }
  .metric-grid, .report-highlights { grid-template-columns: 1fr; }
  .page-intro { align-items: stretch; flex-direction: column; }
  .resource-toolbar { align-items: stretch; flex-direction: column; }
  .resource-toolbar > div { justify-content: space-between; }
  .table-search { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.wide { grid-column: auto; }
  .modal-backdrop { padding: 8px; }
  .modal-card { padding: 15px; border-radius: 14px; }
  .details-modal dl { grid-template-columns: 1fr; }
  .donut-layout { grid-template-columns: 1fr; justify-items: center; }
  .donut-legend { width: 100%; }
  .route-list article { grid-template-columns: 45px 45px 1fr; }
  .route-list article small { display: none; }
}
