:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1d302d; background: #f5f6f3; font-synthesis: none; --primary: #124e48; --muted: #52645e; --line: #cbd5ce; --focus: #096d9a; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, input, summary { min-height: 46px; }
button { cursor: pointer; border-radius: 9px; border: 1px solid transparent; padding: 11px 17px; font-weight: 650; }
button:disabled { cursor: default; background: #e0e6e1; color: #46574e; border-color: #9eada3; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: var(--primary); }
.skip-link { position: absolute; z-index: 10; top: -80px; left: 16px; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.app-shell { display: flex; min-height: 100dvh; }
.sidebar { width: 245px; flex: 0 0 245px; background: #fff; border-right: 1px solid #dfe5df; display: flex; flex-direction: column; padding: 34px 20px 25px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #213e35; font-size: 21px; font-weight: 700; line-height: 1.1; padding: 0 10px; min-height: 52px; }
.brand-icon { display: grid; place-items: center; background: var(--primary); color: white; width: 46px; height: 46px; border-radius: 14px; font-size: 16px; letter-spacing: -1px; }
.brand-second { display: block; font-weight: 450; }
.workspace-label { font-size: 10px; letter-spacing: .1em; color: #52645e; margin: 46px 12px 17px; font-weight: 700; }
nav { display: grid; gap: 7px; }
nav button { background: transparent; text-align: left; padding-left: 14px; color: #52645e; display: flex; align-items: center; gap: 13px; min-height: 49px; }
nav button > span { font-size: 21px; width: 23px; }
nav button.active { background: #e7f0e9; color: #124e48; }
nav button:hover { background: #edf3ee; }
.sidebar-note { margin: auto 12px 0; padding-top: 70px; font-size: 12px; color: var(--muted); }
.sidebar-note > span:last-child { display: block; margin: 9px 0 0 15px; line-height: 1.6; }
.small-dot { display: inline-block; width: 6px; height: 6px; background: #23735b; border-radius: 50%; margin-right: 9px; }
.workspace { min-width: 0; flex: 1; }
.topbar { min-height: 84px; padding: 20px 46px; border-bottom: 1px solid #dfe5df; background: #fff; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
main { max-width: 1360px; margin: auto; padding: 44px 46px 22px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; font-weight: 750; color: #47675b; display: block; }
h1 { font-size: clamp(27px, 2.6vw, 38px); letter-spacing: -.04em; line-height: 1.2; margin: 12px 0; font-weight: 620; }
h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; margin: 9px 0 12px; font-weight: 620; }
h3 { font-size: 16px; margin: 24px 0 12px; }
p { line-height: 1.7; color: var(--muted); }
.page-title { margin-bottom: 31px; }
.page-title > p { margin: 0; font-size: 14px; }
.summary-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.stat-card { border: 1px solid #dce4dc; background: #fff; padding: 22px 23px; border-radius: 12px; min-width: 0; }
.stat-card > span { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; font-weight: 600; font-size: 18px; margin: 13px 0 9px; line-height: 1.4; }
.stat-card small { color: #52645e; font-size: 11px; line-height: 1.5; display: block; }
.stat-card .date-stat { font-size: 16px; }
.query-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(235px, 1fr); gap: 24px; align-items: start; }
.card { background: white; border: 1px solid #dce4dc; padding: 29px; border-radius: 13px; min-width: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 25px; }
.badge { display: inline-flex; align-items: center; border-radius: 100px; background: #e8f0e9; color: #245641; padding: 6px 10px; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.badge.neutral { background: #f2f4f1; color: #52645e; border: 1px solid #dce4dc; }
label { display: block; font-size: 13px; font-weight: 600; margin: 17px 0 9px; }
.required { font-weight: 400; color: #52645e; font-size: 12px; }
input { border: 1px solid #7a8f82; border-radius: 8px; padding: 12px 13px; width: 100%; color: #1d302d; background: #fff; font-size: 16px; }
input[aria-invalid="true"] { border-color: #9c3330; }
input::placeholder { color: #697970; opacity: 1; }
.plate-field { display: flex; border: 1px solid #7a8f82; border-radius: 9px; overflow: visible; max-width: 285px; }
.plate-field > span { display: grid; place-items: center; width: 43px; font-size: 11px; font-weight: 700; color: #124e48; background: #edf3ee; border-radius: 9px 0 0 9px; }
.plate-field input { border: none; border-radius: 0 9px 9px 0; min-width: 0; font-size: 26px; letter-spacing: .07em; font-weight: 600; text-transform: uppercase; padding: 15px; }
.help { font-size: 12px; margin: 10px 0 23px; line-height: 1.7; }
.primary { background: #124e48; color: white; display: inline-flex; gap: 28px; justify-content: space-between; align-items: center; min-height: 48px; }
.primary:hover:not(:disabled) { background: #0d3d37; }
.quiet { color: #124e48; background: transparent; border-color: #a4b6a9; font-size: 12px; }
.quiet:hover:not(:disabled) { background: #e7f0e9; }
.text-button { background: transparent; color: #124e48; padding: 4px; text-decoration: underline; font-size: inherit; }
.full { width: 100%; }
.context-card { border-radius: 13px; background: #e8eee4; padding: 30px; min-width: 0; }
.context-card h2 { font-size: 25px; max-width: 260px; margin-top: 18px; }
.context-card p { font-size: 13px; }
.context-line { border-top: 1px solid #bacabc; margin: 24px 0; }
.login-card { max-width: 460px; margin-bottom: 90px; }
.login-card > p { font-size: 14px; }
.login-symbol { font-size: 28px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: #e8eee4; color: #124e48; margin-bottom: 22px; }
.error { color: #972f2e; font-size: 13px; line-height: 1.6; }
.message { background: #fff0ee; border: 1px solid #d2948a; padding: 15px; border-radius: 9px; }
.success { color: #1e6146; font-size: 14px; }
.result { margin-top: 24px; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
dt { font-size: 12px; color: #52645e; margin-bottom: 8px; }
dd { font-size: 15px; margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.session-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.intro { max-width: 720px; font-size: 15px; }
.divider { border-top: 1px solid #dce4dc; margin: 27px 0; }
summary { cursor: pointer; color: #124e48; font-size: 14px; padding: 13px 0; line-height: 1.5; }
details form { max-width: 650px; padding-bottom: 10px; }
pre { background: #f1f4ef; border: 1px solid #cbd5ce; border-radius: 9px; padding: 18px; overflow: auto; font-size: 12px; line-height: 1.8; color: #243d32; max-height: 380px; }
.endpoint { display: flex; gap: 15px; align-items: center; padding: 14px; background: #edf3ee; border: 1px solid #cbd5ce; border-radius: 9px; margin-top: 25px; overflow-wrap: anywhere; }
.endpoint strong { color: #245641; font-size: 12px; }
.endpoint code { font-size: 14px; min-width: 0; }
footer { display: flex; gap: 10px; color: #52645e; font-size: 11px; margin-top: 44px; border-top: 1px solid #dce4dc; padding-top: 20px; line-height: 1.6; }
.footer-version { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) { .sidebar { width: 215px; flex-basis: 215px; } main { padding: 32px 26px 22px; } .topbar { padding: 18px 26px; } .query-layout { grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr); gap: 16px; } .card, .context-card { padding: 23px; } .summary-grid { gap: 10px; } .stat-card { padding: 18px; } }
@media (max-width: 860px) { .query-layout { grid-template-columns: 1fr; } .context-card { display: none; } .summary-grid { grid-template-columns: 1fr 1fr; } .stat-card:first-child { grid-column: 1 / -1; } .vehicle-grid, .session-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; padding: calc(16px + env(safe-area-inset-top)) 18px 12px; border-right: 0; border-bottom: 1px solid #dfe5df; }
  .brand { font-size: 17px; padding: 0; gap: 10px; }
  .brand-icon { width: 40px; height: 40px; }
  .workspace-label, .sidebar-note { display: none; }
  nav { grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin-top: 16px; }
  nav button { font-size: 11px; gap: 5px; padding: 8px 6px; justify-content: center; min-height: 48px; }
  nav button > span { font-size: 17px; width: auto; }
  .topbar { min-height: 65px; padding: 12px 20px; }
  main { padding: 27px max(18px, env(safe-area-inset-right)) calc(25px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
  h1 { font-size: 29px; }
  .page-title { margin-bottom: 24px; }
  .summary-grid { gap: 10px; margin-bottom: 20px; }
  .stat-card { padding: 17px; }
  .stat-card strong { font-size: 16px; }
  .stat-card .date-stat { font-size: 14px; }
  .card { padding: 22px 19px; }
  .section-heading { gap: 8px; }
  .vehicle-grid, .session-list { grid-template-columns: 1fr; }
  .badge { white-space: normal; }
  .result .section-heading { flex-wrap: wrap; }
  .login-card { margin-bottom: 50px; }
  footer { flex-wrap: wrap; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

[hidden] { display: none !important; }
#top-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 620px) { .topbar { gap: 12px; } #top-actions .quiet { padding: 10px; font-size: 11px; } }

/* Consulta como tarefa principal; administração sob demanda. */
:root { background: #fff; }
.app-shell { display: block; }
.topbar { max-width: 840px; margin: auto; background: transparent; border: 0; min-height: 96px; padding: 22px 32px; gap: 20px; }
.brand { display: block; padding: 0; min-height: 44px; align-content: center; font-size: 18px; line-height: 1.5; font-weight: 650; }
.topbar > .help { margin: 0; }
main { max-width: 840px; padding: 42px 32px 64px; }
h1 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 28px; }
.page-title { margin: 0; }
.login-card { max-width: 420px; margin: 0; }
.query-panel { padding: 0; }
.query-panel label { margin-top: 0; }
.query-controls { display: grid; grid-template-columns: minmax(0, 285px) auto; gap: 12px; max-width: 465px; align-items: stretch; }
.query-controls input { min-width: 0; font-size: 24px; letter-spacing: .08em; text-transform: uppercase; padding: 14px 16px; }
.query-controls .primary { justify-content: center; min-width: 140px; }
.query-panel .help { margin-bottom: 10px; }
.query-panel .error:empty { display: none; }
.health-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.health-actions .quiet { border: 0; background: #f1f4ef; font-size: 13px; }
#health-status { max-width: 520px; margin-top: 12px; }
.card { padding: 0; border: 0; border-radius: 0; }
.result { border-top: 1px solid #cbd5ce; padding-top: 28px; margin-top: 36px; }
.session-status strong, .session-status span { display: block; }
.session-status strong { color: #1d302d; }
.session-status span { font-size: 13px; margin-top: 5px; }
.topbar nav { display: block; margin: 0; }
#options-menu { position: relative; }
#options-menu > summary { padding: 10px 4px 10px 12px; min-width: 76px; font-size: 14px; }
.options-content { position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; background: #fff; border: 1px solid #7a8f82; padding: 8px; width: 220px; border-radius: 10px; box-shadow: 0 8px 24px #1d302d12; }
.options-content button { display: block; width: 100%; min-height: 46px; font-size: 14px; padding: 11px 12px; text-align: left; background: #fff; color: #124e48; }
.options-content button:hover { background: #edf3ee; }
#top-actions { display: block; border-top: 1px solid #cbd5ce; margin-top: 6px; padding-top: 6px; }
@media (max-width: 620px) {
  .topbar { padding: calc(14px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left)); min-height: 80px; }
  main { padding: 32px max(20px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .topbar nav button { justify-content: start; font-size: 14px; }
  h1 { font-size: 26px; }
  .query-controls { grid-template-columns: minmax(0, 1fr); }
  .query-controls .primary { min-height: 50px; }
}
