:root {
  --ink: #151b17;
  --muted: #68706a;
  --line: #e5e9e6;
  --surface: #ffffff;
  --canvas: #f5f7f5;
  --green: #25c76f;
  --green-dark: #0d9b50;
  --green-soft: #dff8e9;
  --amber: #f3a936;
  --blue: #4e8deb;
  --red: #d94f58;
  --shadow: 0 12px 40px rgba(21, 27, 23, .07);
  --color-primary: var(--green);
  --color-primary-dark: var(--green-dark);
  --color-success: #168a4c;
  --color-warning: #b56e08;
  --color-danger: var(--red);
  --color-background: var(--canvas);
  --color-surface: var(--surface);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-border: var(--line);
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(21, 27, 23, .06);
  --shadow-card: 0 10px 30px rgba(21, 27, 23, .065);
  --control-height: 48px;
  --tap-target: 44px;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: var(--radius-sm); color: #fff; background: var(--ink); font-size: 14px; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
html { color-scheme: light; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--ink); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(37,199,111,.42); outline-offset: 3px; }
button { min-height: var(--tap-target); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.page-shell { max-width: 1280px; min-height: 100vh; margin: 0 auto; padding: 0 34px; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { min-height: var(--tap-target); display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--green); font: 800 20px/1 'Segoe UI', sans-serif; transform: rotate(-4deg); }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font: 800 16px/1.25 'Segoe UI', sans-serif; letter-spacing: -.3px; }
.brand small, .car-chip small { color: var(--muted); font-size: 10px; }
.nav-actions, .car-chip { display: flex; align-items: center; gap: 12px; }
.car-chip { border-right: 1px solid var(--line); padding-right: 18px; }
.car-chip > span:last-child { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; }
.car-icon, .form-icon { width: 31px; height: 31px; border-radius: 9px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-size: 11px; }
.button { min-height: var(--control-height); border: 0; border-radius: var(--radius-md); padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #082314; background: var(--green); box-shadow: 0 7px 20px rgba(37, 199, 111, .22); }
.button-primary:hover { background: #21d475; }
.button-secondary { color: #08713f; background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(13,155,80,.2); }
.button-secondary:hover { background: #d2f4e0; }
.button-small { font-size: 13px; padding: 10px 15px; }
.button-ghost { background: #f0f3f1; color: #4c554f; }
.button:active { transform: scale(.985); }
.button-full { width: 100%; margin-top: 4px; }
footer { color: #929993; text-align: center; font-size: 11px; padding: 42px 0 26px; }
.system-help-launcher { position: fixed; z-index: 45; right: max(22px,env(safe-area-inset-right)); bottom: max(22px,env(safe-area-inset-bottom)); min-height: 48px; padding: 8px 17px 8px 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; color: #fff; background: #111814; box-shadow: 0 14px 34px rgba(10,16,12,.28); font-size: 12px; font-weight: 800; line-height: 1.2; cursor: pointer; transition: transform .2s ease,box-shadow .2s ease; }
.system-help-launcher:hover { transform: translateY(-2px); box-shadow: 0 17px 38px rgba(10,16,12,.33); }
.system-help-launcher-icon { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; display: grid; place-items: center; color: #082314; background: var(--green); font-size: 16px; font-weight: 900; }
.system-help-launcher-compact { display: none; }
.system-help-overlay { position: fixed; z-index: 80; inset: 0; }
.system-help-overlay[hidden],.system-help-launcher[hidden] { display: none !important; }
.system-help-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7,14,10,.6); backdrop-filter: blur(3px); cursor: pointer; }
.system-help-drawer { position: absolute; top: 0; right: 0; width: min(720px,calc(100vw - 28px)); height: 100%; max-height: 100dvh; display: flex; flex-direction: column; color: var(--ink); background: #fff; border-radius: 20px 0 0 20px; box-shadow: -24px 0 70px rgba(7,14,10,.24); overflow: hidden; }
.system-help-drawer-heading { padding: 22px clamp(20px,4vw,34px) 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: #fbfdfb; }
.system-help-drawer-heading h2 { margin: 5px 0 3px; font-size: clamp(22px,3vw,28px); }
.system-help-drawer-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.system-help-drawer-heading > button { width: 44px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; color: #4e5751; background: #edf1ee; font-size: 24px; cursor: pointer; }
.system-help-drawer-scroll { min-height: 0; padding: 0 clamp(20px,4vw,34px) max(24px,env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
body.system-help-open { overflow: hidden; }
.system-help-content { display: grid; gap: 25px; padding: 25px 0; }
.system-help-page { max-width: 940px; margin: 0 auto; padding: clamp(22px,4vw,40px); }
.system-help-page .system-help-content { padding: 0; }
.system-help-guidance { padding: 16px 18px; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; border: 1px solid #bce7ce; border-radius: 14px; background: #f0fbf5; }
.system-help-guidance > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--green-dark); font-weight: 900; }
.system-help-guidance strong { font-size: 12px; }.system-help-guidance p { margin: 3px 0 0; color: #395146; font-size: 12px; line-height: 1.5; }
.system-help-section { min-width: 0; }
.system-help-section-heading { margin-bottom: 13px; }.system-help-section-heading h3 { margin: 4px 0 0; font-size: 18px; }
.system-help-quick-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; list-style: none; }
.system-help-quick-steps li { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 9px; background: #fbfcfb; }
.system-help-quick-steps li > span { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; color: #08713f; background: var(--green-soft); font-size: 11px; font-weight: 900; }
.system-help-quick-steps strong,.system-help-quick-steps small { display: block; }.system-help-quick-steps strong { font-size: 12px; }.system-help-quick-steps small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.system-help-journey { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; list-style: none; }
.system-help-journey li { min-width: 0; padding: 16px; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; border: 1px solid var(--line); border-radius: 13px; }
.system-help-step-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #08713f; background: var(--green-soft); font-size: 12px; font-weight: 900; }
.system-help-journey h4 { margin: 1px 0 5px; font-size: 13px; }.system-help-journey p { margin: 0 0 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }.system-help-journey a { min-height: 44px; display: inline-flex; align-items: center; color: #08713f; font-size: 11px; font-weight: 850; }
.system-help-checklist { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 13px; list-style: none; overflow: hidden; }
.system-help-checklist li { min-height: 58px; padding: 9px 12px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); }.system-help-checklist li:first-child { border-top: 0; }
.system-help-check { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }.is-complete .system-help-check { color: #fff; background: var(--green-dark); }.is-pending .system-help-check { color: #6d746f; background: #e9edeb; }
.system-help-checklist strong,.system-help-checklist small { display: block; }.system-help-checklist strong { font-size: 12px; }.system-help-checklist small { margin-top: 2px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }.system-help-checklist a { min-height: 44px; padding: 7px 9px; display: inline-flex; align-items: center; color: #08713f; font-size: 10px; font-weight: 850; text-align: right; }
.system-help-faq { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }.system-help-faq-item + .system-help-faq-item { border-top: 1px solid var(--line); }.system-help-faq-item h4 { margin: 0; }.system-help-faq-item button { width: 100%; min-height: 50px; padding: 10px 13px; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 800; text-align: left; cursor: pointer; }.system-help-faq-item button:hover { background: #f7f9f7; }.system-help-faq-item [data-help-accordion-panel] { padding: 0 13px 13px; }.system-help-faq-item [data-help-accordion-panel][hidden] { display: none; }.system-help-faq-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.system-help-privacy { margin: 0; padding: 13px 15px; border-radius: 11px; color: #286347; background: var(--green-soft); font-size: 10px; font-weight: 700; line-height: 1.5; }
.system-help-auto-option { margin-top: 3px; min-height: 48px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; cursor: pointer; }.system-help-auto-option input { width: 18px; height: 18px; accent-color: var(--green-dark); }

.flash-stack { position: fixed; z-index: 20; top: 18px; left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 30px)); }
.flash { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 8px; padding: 13px 15px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }
.flash-success { color: #086036; background: #e4f8ed; border: 1px solid #bdebcf; }
.flash-error { color: #8e2630; background: #fdebed; border: 1px solid #f4c7cb; }
.flash button { width: var(--tap-target); min-width: var(--tap-target); border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; padding: 48px 0 30px; }
.page-heading.compact { padding: 15px 0 24px; }
.eyebrow { color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
h1, h2, p { margin-top: 0; }
h1 { font: 800 34px/1.15 'Segoe UI', sans-serif; letter-spacing: -1.3px; margin: 7px 0 8px; }
h2 { font: 750 17px/1.3 'Segoe UI', sans-serif; letter-spacing: -.35px; margin-bottom: 3px; }
.page-heading p, .panel-heading p, .section-heading p, .form-heading p { color: var(--muted); margin: 0; font-size: 13px; }
.period-picker { display: flex; gap: 3px; padding: 4px; background: #e9edea; border-radius: 11px; }
.period-picker a { min-height: var(--tap-target); display: inline-flex; align-items: center; justify-content: center; color: #717a74; border-radius: 8px; padding: 7px 12px; font-size: 14px; font-weight: 700; }
.period-picker a.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(21,27,23,.08); }
.dashboard-filters { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.month-picker { display: flex; align-items: center; gap: 6px; padding: 4px; background: #e9edea; border-radius: 11px; }
.month-picker label { margin: 0 2px 0 7px; color: #717a74; font-size: 10px; }
.month-picker select { width: auto; min-width: 112px; margin: 0; padding: 7px 28px 7px 9px; border: 0; border-radius: 8px; background: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 2px 8px rgba(21,27,23,.06); }
.month-picker select[name="year"] { min-width: 76px; }
.month-picker button { min-width: var(--tap-target); min-height: var(--tap-target); border: 0; border-radius: 8px; padding: 7px 10px; color: #082314; background: var(--green); font-size: 14px; font-weight: 800; cursor: pointer; }
.panel { background: var(--surface); border: 1px solid rgba(224, 229, 225, .9); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { min-height: 126px; padding: 18px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.kpi-featured { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 12px 30px rgba(21, 27, 23, .17); }
.kpi-label { color: var(--muted); font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kpi-featured .kpi-label, .kpi-featured small { color: #abb5ae; }
.kpi-icon { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; color: var(--green); background: rgba(37, 199, 111, .12); font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.dot.green { background: var(--green); }.dot.amber { background: var(--amber); }.dot.blue { background: var(--blue); }
.kpi strong { font: 800 22px/1.12 'Segoe UI', sans-serif; letter-spacing: -.8px; margin: 10px 0 3px; }
.kpi small { color: #909791; font-size: 9px; }
.kpi-line { height: 3px; background: #303a33; border-radius: 4px; margin-top: 12px; overflow: hidden; }
.kpi-line span { height: 100%; display: block; background: var(--green); border-radius: inherit; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .72fr); gap: 12px; }
.chart-panel, .efficiency-panel { padding: 22px; min-height: 320px; }
.panel-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.legend { display: flex; gap: 15px; color: #858d87; font-size: 9px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 6px; height: 6px; border-radius: 2px; }.legend .gross { background: #1e2821; }.legend .fuel { background: var(--amber); }.legend .net { background: var(--green); }
.daily-results-panel { min-width: 0; }
.daily-result-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; }
.daily-result-card { min-width: 0; padding: 14px 12px 12px; display: flex; flex-direction: column; border: 1px solid #e8ece9; border-radius: 14px; background: #fafbfa; }
.daily-result-card > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #e8ece9; }
.daily-result-card > header strong { font-size: 12px; }.daily-result-card > header span { color: #8b938d; font-size: 8px; }
.result-donut { --donut-size: 102px; width: var(--donut-size); height: var(--donut-size); margin: 15px auto 13px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--amber) 0 calc(var(--fuel-share) * 1%), var(--green) calc(var(--fuel-share) * 1%) 100%); position: relative; box-shadow: 0 7px 18px rgba(21,27,23,.08); }
.result-donut::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #eef1ef; }
.result-donut > div { z-index: 1; max-width: 78px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.result-donut small { color: #8a928c; font-size: 8px; }.result-donut strong { font-size: 12px; letter-spacing: -.25px; }
.result-breakdown { padding: 9px 0; border-top: 1px solid #e8ece9; border-bottom: 1px solid #e8ece9; }
.result-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 0; font-size: 8px; }
.result-breakdown span { display: flex; align-items: center; gap: 5px; color: #7b847e; }.result-breakdown i { width: 6px; height: 6px; border-radius: 2px; }.result-breakdown i.fuel { background: var(--amber); }.result-breakdown i.net { background: var(--green); }
.result-breakdown strong { font-size: 9px; }.result-breakdown > div:last-child strong { color: var(--green-dark); }
.daily-performance { margin: 9px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.daily-performance > div { min-width: 0; padding: 6px; border-radius: 7px; background: #f0f3f1; display: flex; flex-direction: column; gap: 2px; }
.daily-performance span { color: #8a928c; font-size: 7px; }.daily-performance strong { overflow: hidden; color: #4d5650; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.day-rating { min-height: 74px; margin-top: auto; padding: 9px 7px; border-radius: 9px; background: #edf1ee; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.day-rating b { font-size: 10px; }.day-rating span { color: #727b75; font-size: 8px; line-height: 1.35; }
.rating-weak b { color: var(--red); }.rating-regular b { color: #b4761f; }.rating-good b { color: #487b62; }.rating-great b, .rating-excellent b { color: var(--green-dark); }
.efficiency-panel { display: flex; flex-direction: column; align-self: start; }
.gauge { width: 128px; height: 128px; margin: 15px auto 13px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--value) * 1%), #edf1ee 0); position: relative; display: grid; place-items: center; }
.gauge::after { content: ''; position: absolute; inset: 11px; background: white; border-radius: 50%; }
.gauge > div { z-index: 1; display: flex; flex-direction: column; align-items: center; }.gauge strong { font: 800 26px/1 'Segoe UI', sans-serif; }.gauge span { color: var(--muted); font-size: 9px; margin-top: 4px; }
.efficiency-list { border-top: 1px solid var(--line); padding-top: 7px; }
.efficiency-list > div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 10px; }.efficiency-list span { color: var(--muted); }.efficiency-list strong { font-size: 10px; }

.entries-section { margin-top: 34px; }
.dashboard-history-list { display: none; }
.section-heading { align-items: flex-end; margin-bottom: 12px; }.section-heading h2 { margin-bottom: 1px; }.section-heading a { color: var(--green-dark); font-size: 11px; font-weight: 700; }
.table-wrap { overflow-x: auto; box-shadow: none; }
table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
th { color: #929a94; text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; padding: 13px 18px; background: #fafbfa; }
td { padding: 15px 18px; border-top: 1px solid #edf0ee; color: #4c554f; }
td strong { color: var(--ink); } td small { display: block; color: #a0a6a2; max-width: 130px; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
td.cost { color: #a56c1d; }.net-value { color: var(--green-dark); font-weight: 700; }.net-value.negative { color: var(--red); }
td.per-km { color: #386b53; font-weight: 700; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }.row-actions a { color: #69716c; font-weight: 600; }.row-actions form { margin: 0; }.row-actions button { border: 0; background: #f2f4f2; color: #9aa09c; border-radius: 6px; cursor: pointer; }

.table-wrap-plain { margin-top: 16px; border: 0; box-shadow: none; }
.panel-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: center; font-size: 12px; }
.panel-empty a { color: var(--green-dark); font-size: 11px; font-weight: 800; }
.empty-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.setup-wrap { max-width: 920px; min-height: calc(100vh - 170px); margin: 0 auto; display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 90px; }
.setup-copy h1 { font-size: 40px; max-width: 440px; }.setup-copy > p { color: var(--muted); line-height: 1.65; max-width: 450px; font-size: 14px; }
.mini-preview { display: flex; align-items: center; gap: 12px; margin-top: 30px; }.mini-preview > div { display: flex; flex-direction: column; font-size: 12px; }.mini-preview small { color: var(--muted); margin-top: 3px; }.pulse-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); position: relative; }.pulse-dot::after { content: ''; width: 9px; height: 9px; background: var(--green); border-radius: 50%; position: absolute; inset: 0; margin: auto; box-shadow: 0 0 0 5px rgba(37,199,111,.13); }
.setup-form, .entry-form { padding: 28px; }
.form-heading { display: flex; gap: 12px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }.form-heading h2 { margin: 0; }
label { display: block; color: #3c443f; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.optional { color: #a3aaa5; font-weight: 500; margin-left: 4px; }
input, textarea, select { width: 100%; min-height: var(--control-height); border: 1px solid #dce2de; background: #fbfcfb; border-radius: var(--radius-md); padding: 12px 13px; color: var(--ink); font-size: 16px; line-height: 1.35; outline: 0; margin-top: 7px; transition: .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(37,199,111,.1); }
textarea { resize: vertical; }
.form-page { width: min(740px, 100%); margin: 0 auto; padding-top: 30px; }.back-link { min-height: var(--tap-target); display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 700; }
.entry-form { padding: 30px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }.form-grid-top { padding-bottom: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }.entry-form label small { display: block; color: #7a847d; font-weight: 400; font-size: 13px; line-height: 1.45; margin-top: 6px; }
.input-unit { display: flex; align-items: center; margin-top: 7px; border: 1px solid #dce2de; background: #fbfcfb; border-radius: 10px; overflow: hidden; }.input-unit:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37,199,111,.1); background: #fff; }.input-unit input { border: 0; box-shadow: none; margin: 0; background: transparent; }.input-unit span { color: #737d76; font-size: 14px; padding-left: 12px; white-space: nowrap; }.input-unit.unit-right span { padding: 0 12px 0 0; }
.duration-field { min-width: 0; margin: 0; padding: 0; border: 0; }.duration-field legend { margin-bottom: 7px; color: #3f4a43; font-size: 14px; font-weight: 750; }.duration-inputs { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: 8px; }.duration-input { min-width: 0; }.duration-input > label { margin: 0; color: var(--muted); font-size: 11px; }.duration-inputs .input-unit { margin-top: 5px; }.duration-separator { padding-bottom: 15px; color: #6f7a72; font-size: 20px; font-weight: 800; }.duration-field > small { display: block; margin-top: 6px; color: #7a847d; font-size: 13px; line-height: 1.45; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 20px; }
.text-import { margin-bottom: 14px; padding: 24px; }.text-import h2 { margin: 5px 0; }.text-import p,.import-preview { color: var(--muted); font-size: 14px; line-height: 1.55; }.text-import textarea { min-height: 96px; }.text-import .form-actions { padding-top: 12px; }.import-preview:not(:empty) { margin-top: 12px; padding: 11px 13px; border-radius: 9px; color: #286347; background: var(--green-soft); }
.field-errors { margin: 7px 0 0; padding: 0; list-style: none; }
.field-errors li { padding: 7px 9px; border-left: 3px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #922d35; background: #fff1f2; font-size: 14px; font-weight: 650; line-height: 1.35; }

.empty-state { text-align: center; max-width: 650px; margin: 35px auto; padding: 55px 30px; }.empty-state h2 { font-size: 23px; margin: 9px 0; }.empty-state p { color: var(--muted); font-size: 13px; max-width: 430px; line-height: 1.55; margin: 0 auto 24px; }
.empty-visual { width: 125px; height: 92px; margin: 0 auto 22px; display: flex; align-items: flex-end; justify-content: center; gap: 7px; position: relative; }.empty-visual span { position: absolute; top: 0; left: 3px; color: var(--green-dark); font: 700 11px 'Segoe UI'; background: var(--green-soft); border-radius: 50%; width: 35px; height: 35px; display: grid; place-items: center; }.empty-visual i { width: 19px; border-radius: 5px 5px 2px 2px; background: #dce3de; }.empty-visual i:nth-of-type(1) { height: 27px; }.empty-visual i:nth-of-type(2) { height: 50px; background: var(--green); }.empty-visual i:nth-of-type(3) { height: 72px; background: #263029; }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }.dashboard-grid { grid-template-columns: 1fr; }.efficiency-panel { min-height: auto; }.setup-wrap { gap: 35px; grid-template-columns: 1fr 360px; }.setup-copy h1 { font-size: 32px; }
}
@media (max-width: 650px) {
  .page-shell { padding: 0 17px; }.topbar { height: 72px; }.brand small, .car-chip { display: none; }.dashboard-heading { align-items: flex-start; flex-direction: column; gap: 20px; padding-top: 33px; }.dashboard-filters, .period-picker, .month-picker { width: 100%; }.period-picker a { flex: 1; text-align: center; }.month-picker label:not(.sr-only) { display: none; }.month-picker select { min-width: 0; flex: 1; }.kpi-grid { grid-template-columns: 1fr; }.kpi { min-height: 120px; }.chart-panel { padding: 18px 12px; }.legend { display: none; }.daily-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.setup-wrap { display: flex; flex-direction: column; justify-content: center; gap: 25px; padding: 45px 0; }.setup-copy { text-align: center; }.setup-copy h1 { font-size: 31px; }.mini-preview { justify-content: center; text-align: left; }.setup-form { width: 100%; }.form-grid { grid-template-columns: 1fr; }.field-date { width: 100%; }.entry-form { padding: 20px; }.form-actions { flex-direction: column-reverse; }.form-actions .button { width: 100%; } h1 { font-size: 29px; }.nav-actions .button { font-size: 0; }.nav-actions .button::after { content: '+'; font-size: 18px; }.table-wrap { border-radius: 12px; }
}

@media (max-width: 650px) {
  .dashboard-heading { gap: 16px; }
  .dashboard-heading h1 { margin-bottom: 6px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { min-height: 104px; padding: 14px; }
  .kpi-primary { grid-column: 1 / -1; min-height: 128px; padding: 20px; }
  .kpi strong { margin-top: 7px; font-size: clamp(18px, 5.4vw, 22px); overflow-wrap: anywhere; }
  .kpi-primary strong { font-size: clamp(28px, 9vw, 36px); }
  .kpi-label { font-size: 12px; line-height: 1.3; }
  .kpi small { font-size: 12px; line-height: 1.35; }
  .chart-panel, .efficiency-panel { min-height: 0; padding: 18px; }
  .daily-result-grid { grid-template-columns: 1fr; }
  .daily-result-card { padding: 16px; }
  .daily-result-card > header strong, .result-donut strong { font-size: 16px; }
  .daily-result-card > header span, .result-donut small, .result-breakdown > div, .result-breakdown strong, .daily-performance span, .daily-performance strong, .day-rating span { font-size: 12px; }
  .day-rating b { font-size: 14px; }
  .efficiency-list > div, .efficiency-list strong { font-size: 14px; }
  .gauge span { font-size: 12px; }
  .entries-section { margin-top: 26px; }
  .section-heading { align-items: center; }
  .section-heading a { min-height: var(--tap-target); display: inline-flex; align-items: center; font-size: 14px; }
  .dashboard-history-table { display: none; }
  .dashboard-history-list { display: grid; gap: 10px; }
  .history-card { padding: 16px; }
  .history-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
  .history-card > header div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .history-card > header strong { font-size: 16px; }
  .history-card > header small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .history-card > header b { flex: 0 0 auto; font-size: 17px; }
  .history-card dl { margin: 14px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .history-card dl div { min-width: 0; padding: 9px 10px; border-radius: var(--radius-sm); background: #f4f7f5; }
  .history-card dt { color: var(--muted); font-size: 12px; }
  .history-card dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 800; }
  .history-card > footer { padding: 10px 0 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-size: 14px; }
  .history-card > footer a, .history-card > footer button { min-height: var(--tap-target); padding: 0 8px; border: 0; display: inline-flex; align-items: center; color: var(--green-dark); background: transparent; font-size: 14px; font-weight: 800; }
  .history-card > footer form { margin: 0; }
  .history-card > footer button { color: var(--red); }
}
@media (max-width: 390px) { .daily-result-grid { grid-template-columns: 1fr; } }

/* Calculadora de custo veicular */
.cost-vehicle-picker { padding: 16px 20px; margin-bottom: 16px; }.cost-vehicle-picker label { max-width: 420px; margin: 0; }
.cost-active-card { padding: 26px; }.cost-active-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.cost-active-title h2 { margin: 4px 0 0; }
.cost-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 22px; }.cost-summary-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9f7; }.cost-summary-grid small,.cost-summary-grid em { display: block; color: var(--muted); font-size: 12px; }.cost-summary-grid strong { display: block; margin-top: 8px; font-size: 25px; }.cost-summary-grid strong span { font-size: 12px; }.cost-summary-grid .cost-total { color: #fff; background: var(--ink); }.cost-summary-grid .cost-total small { color: #b8c4bc; }.cost-zero-note { padding: 12px 14px; color: #075d35; border-radius: 10px; background: var(--green-soft); font-weight: 700; }.cost-updated { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.cost-mode-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 18px 0; }.cost-mode-card { min-height: 154px; padding: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; text-align: left; cursor: pointer; }.cost-mode-card > span { width: 29px; height: 29px; display: grid; place-items: center; color: #08653a; border-radius: 50%; background: var(--green-soft); font-weight: 900; }.cost-mode-card strong { margin: 18px 0 7px; font-size: 17px; }.cost-mode-card small { color: var(--muted); line-height: 1.5; }.cost-mode-featured { border-color: rgba(22,199,111,.55); box-shadow: 0 12px 28px rgba(9,85,48,.08); }
.cost-workspace { padding: 28px; scroll-margin-top: 84px; }.cost-workspace[hidden] { display: none; }.fuel-only-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 20px 0; }.fuel-only-preview span { padding: 15px; border-radius: 12px; background: #f1f5f2; }.fuel-only-preview b { display: block; margin-top: 5px; }
.calculator-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.calculator-heading h2 { margin: 5px 0 0; }.calculator-heading > span { color: var(--green-dark); font-weight: 800; }.cost-progress { height: 6px; margin: 20px 0 28px; overflow: hidden; border-radius: 9px; background: #e5ebe7; }.cost-progress i { width: 33.333%; height: 100%; display: block; border-radius: inherit; background: var(--green); transition: width .2s ease; }.cost-calculator fieldset { margin: 0; padding: 0; border: 0; }.cost-calculator legend { margin-bottom: 20px; font-size: 23px; font-weight: 850; }.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }.cost-field-group { margin-bottom: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }.cost-field-group h3 { margin: 0 0 4px; }.cost-field-group h3 small { color: var(--muted); font-size: 11px; font-weight: 500; }.cost-field-group p { margin-top: 0; color: var(--muted); font-size: 13px; }.cost-calculator details { margin: 15px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }.cost-calculator summary { cursor: pointer; font-weight: 750; }.calculator-actions { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; }.history-suggestions { margin: 14px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.rental-included { margin: 14px 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.calculator-result { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }.calculator-result > dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.calculator-result > dl div { padding: 12px; border-radius: 10px; background: #f3f6f4; }.calculator-result dt { color: var(--muted); font-size: 12px; }.calculator-result dd { margin: 5px 0 0; font-weight: 800; }.result-totals { margin: 18px 0; padding: 18px; color: #fff; border-radius: 14px; background: var(--ink); }.result-totals p { margin: 7px 0; display: flex; justify-content: space-between; gap: 12px; }.result-choice-form { display: grid; gap: 10px; }.result-choice-form > label:not(.check-label) { min-height: 48px; padding: 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; }.result-choice-form .input-unit { max-width: 300px; }
.cost-history { margin-top: 18px; padding: 22px; }.cost-history > summary { cursor: pointer; font-size: 18px; font-weight: 850; }.history-list { margin-top: 18px; display: grid; gap: 10px; }.history-list > article { padding: 15px; border: 1px solid var(--line); border-radius: 12px; }.history-list article > div:first-child { display: flex; justify-content: space-between; gap: 10px; }.history-list span,.history-list time,.history-list small { color: var(--muted); font-size: 12px; }.history-list time,.history-list small { display: block; margin-top: 5px; }
@media (max-width: 900px) { .cost-summary-grid,.cost-mode-grid { grid-template-columns: 1fr; }.cost-mode-card { min-height: auto; }.fuel-only-preview,.calculator-result > dl { grid-template-columns: 1fr; }.form-grid.three { grid-template-columns: 1fr; }.cost-workspace { padding: 20px 16px; }.calculator-actions .button { flex: 1; }.history-suggestions .button { width: 100%; white-space: normal; }.rental-included { grid-template-columns: 1fr; } }

/* Extensões SaaS: autenticação, conta e administração */
.nav-actions > a:not(.button):not(.account-chip) { color: var(--muted); font-size: 11px; font-weight: 700; }
.account-chip { max-width: 150px; padding: 9px 12px; overflow: hidden; border-radius: 9px; background: #eef2ef; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.login-page { background: #f3f6f4; }
.login-page .page-shell { max-width: 1240px; }
.login-page .topbar { height: 78px; }
.login-page .brand { gap: 13px; }
.login-page .brand-mark { width: 43px; height: 43px; border-radius: 13px; font-size: 22px; }
.login-page .brand strong { font-size: 17px; }
.login-page .brand small { margin-top: 2px; font-size: 11px; }
.login-page footer { padding-top: 26px; }

.login-experience { min-height: calc(100vh - 142px); padding: 48px 0 18px; display: grid; grid-template-columns: minmax(0,1fr) 420px; grid-template-areas: "intro action" "benefits action" "demo action"; column-gap: 62px; row-gap: 24px; align-items: start; }
.login-intro { grid-area: intro; max-width: 680px; }
.login-intro h1 { max-width: 660px; margin: 13px 0 17px; font-size: clamp(42px,4.6vw,58px); line-height: 1.02; letter-spacing: -2.8px; }
.login-intro h1 span { color: #1f7e4b; }
.login-intro > p { max-width: 630px; margin: 0; color: #555f58; font-size: 17px; line-height: 1.65; }
.login-value-note { max-width: 630px; margin-top: 17px; padding: 10px 13px; border: 1px solid #cde8d8; border-radius: 11px; display: flex; align-items: center; gap: 10px; color: #3d5145; background: #f1faf5; font-size: 13px; line-height: 1.45; }
.login-value-icon { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; display: grid; place-items: center; color: #075c34; background: #d9f3e4; font-size: 13px; font-weight: 900; }
.login-value-note strong { color: #08713f; font-size: 14px; font-weight: 850; white-space: nowrap; }
.login-benefits { grid-area: benefits; max-width: 690px; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; list-style: none; }
.login-benefits li { min-width: 0; padding: 12px 10px; display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid #dbe1dd; }
.login-benefits li > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #08713f; background: var(--green-soft); font-size: 14px; font-weight: 900; }
.login-benefits div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.login-benefits strong { font-size: 13px; }
.login-benefits small { color: var(--muted); font-size: 11px; line-height: 1.45; }

.product-demo { grid-area: demo; max-width: 700px; margin: 0; padding: 24px; overflow: hidden; border: 1px solid #202c25; border-radius: 20px; color: #f5f8f6; background: #121a15; box-shadow: 0 20px 48px rgba(21,27,23,.13); }
.demo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.demo-kicker,.demo-chart header small { color: #6fe5a3; font-size: 10px; font-weight: 900; letter-spacing: 1.15px; }
.demo-heading h2 { max-width: 400px; margin: 5px 0 0; font-size: 19px; line-height: 1.25; }
.demo-disclaimer { padding: 6px 9px; border: 1px solid #3b4a41; border-radius: 999px; color: #bcc7c0; font-size: 10px; font-weight: 800; white-space: nowrap; }
.demo-result { margin-top: 22px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.demo-main-metric,.demo-rate { min-width: 0; padding: 15px; border: 1px solid #2a372f; border-radius: 13px; background: #19231d; }
.demo-main-metric { border-color: rgba(37,199,111,.42); background: #17291f; }
.demo-main-metric small,.demo-rate small,.demo-equation small { color: #9eaaa2; font-size: 10px; }
.demo-main-metric strong,.demo-rate strong { margin: 4px 0 2px; display: block; font-size: 25px; letter-spacing: -.7px; }
.demo-main-metric strong { color: #6fe5a3; font-size: 30px; }
.demo-main-metric span,.demo-rate span { color: #9eaaa2; font-size: 10px; }
.demo-more { margin-top: 12px; }
.demo-more > summary { display: none; }
.demo-more:not([open]) > :not(summary) { display: flex; }
.demo-equation { padding: 12px 4px; display: flex; align-items: center; justify-content: space-between; gap: 7px; border-bottom: 1px solid #2a372f; }
.demo-equation div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.demo-equation > span { color: #68756d; font-size: 13px; }
.demo-equation strong { font-size: 12px; white-space: nowrap; }
.demo-equation .is-result strong { color: #6fe5a3; }
.demo-details { margin: 0; padding: 11px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.demo-details div { padding: 7px 9px; border-radius: 8px; background: #19231d; }
.demo-details dt { color: #909d95; font-size: 9px; }
.demo-details dd { margin: 3px 0 0; font-size: 12px; font-weight: 850; }
.demo-details dd small { margin-top: 2px; display: block; color: #909d95; font-size: 8px; font-weight: 650; line-height: 1.3; }
.demo-cost-note { margin: 0 0 10px; color: #8f9c94; font-size: 9px; line-height: 1.45; }
.demo-chart { margin-top: 2px; padding-top: 13px; border-top: 1px solid #2a372f; }
.demo-chart header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.demo-chart h3 { margin: 2px 0 0; font-size: 15px; }
.demo-chart header > span { padding: 5px 7px; border-radius: 7px; color: #b7c2ba; background: #202c25; font-size: 9px; font-weight: 750; }
.demo-chart ol { height: 120px; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; list-style: none; }
.chart-slot { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 5px; text-align: center; }
.chart-slot strong { color: #aeb9b2; font-size: 9px; white-space: nowrap; }
.chart-slot small { color: #8d9991; font-size: 8px; white-space: nowrap; }
.chart-bar { min-height: 0; display: flex; align-items: flex-end; border-radius: 6px 6px 2px 2px; background: #1b261f; overflow: hidden; }
.chart-bar i { width: 100%; border-radius: 6px 6px 2px 2px; background: #425047; }
.slot-1 i { height: 87%; }.slot-2 i { height: 91%; }.slot-3 i { height: 81%; }.slot-4 i { height: 100%; }.slot-5 i { height: 96%; }
.chart-slot.is-best strong,.chart-slot.is-best small { color: #6fe5a3; }.chart-slot.is-best i { background: var(--green); }
.demo-chart > p { margin: 9px 0 0; color: #7f8d84; font-size: 9px; }
.demo-goal { margin-top: 14px; }
.demo-goal > div:first-child { display: flex; justify-content: space-between; gap: 15px; color: #aeb9b2; font-size: 10px; }
.demo-goal > div:first-child > span { display: flex; flex-direction: column; gap: 1px; }.demo-goal > div:first-child small { color: #7f8d84; font-size: 8px; }
.demo-goal strong { color: #e6ece8; }
.goal-track { height: 7px; margin-top: 7px; border-radius: 999px; background: #2a372f; overflow: hidden; }
.goal-track span { width: 82.4%; height: 100%; display: block; border-radius: inherit; background: var(--green); }
.demo-meta .goal-track span { width: 41.4%; }
.demo-goal-status { margin-top: 6px; display: flex; justify-content: space-between; gap: 12px; color: #8f9c94; font-size: 9px; }

@media (min-width: 521px) {
  .product-demo { padding: 29px; }
  .demo-kicker,.demo-chart header small,.demo-disclaimer { font-size: 11px; }
  .demo-heading h2 { font-size: 22px; }
  .demo-main-metric,.demo-rate { padding: 18px; }
  .demo-main-metric small,.demo-rate small,.demo-equation small { font-size: 12px; }
  .demo-main-metric strong { font-size: 34px; }.demo-rate strong { font-size: 28px; }
  .demo-main-metric span,.demo-rate span { font-size: 11px; }
  .demo-equation { padding: 16px 5px; }.demo-equation strong { font-size: 14px; }
  .demo-details { padding: 14px 0; }.demo-details div { padding: 10px 12px; }
  .demo-details dt { font-size: 11px; }.demo-details dd { font-size: 15px; }.demo-details dd small { font-size: 10px; }
  .demo-cost-note,.demo-chart > p { font-size: 11px; }
  .demo-chart h3 { font-size: 17px; }.demo-chart header > span { font-size: 10px; }
  .chart-slot strong { font-size: 11px; }.chart-slot small { font-size: 10px; }
  .demo-goal > div:first-child { font-size: 12px; }.demo-goal > div:first-child small { font-size: 10px; }
  .demo-goal-status { font-size: 11px; }.goal-track { height: 8px; }
}

.login-action { grid-area: action; width: 100%; align-self: center; }
.auth-card { width: 100%; padding: 28px; border-color: #dbe3dd; border-radius: 18px; box-shadow: 0 14px 38px rgba(21,27,23,.075); }
.auth-card-heading h2 { margin: 8px 0 5px; font-size: 27px; line-height: 1.15; letter-spacing: -.7px; }
.auth-card-heading p { max-width: 34ch; margin: 0 0 19px; color: #626d66; font-size: 14px; line-height: 1.5; }
.auth-admin-trigger { min-height: 0; margin: 0; padding: 0; border: 0; display: block; background: transparent; font-family: inherit; cursor: default; }
.auth-admin-trigger:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 4px; border-radius: 2px; }
.auth-flash-stack { margin-bottom: 16px; }
.auth-flash-stack .flash { margin: 0 0 8px; box-shadow: none; font-size: 13px; }
.provider-list { display: grid; gap: 10px; }
.provider-button { width: 100%; min-height: 52px; padding: 10px 13px; display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid #d5ddd7; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 800; transition: border-color .18s ease,background-color .18s ease,box-shadow .18s ease; }
.provider-button:not([aria-disabled=true]):hover { border-color: #aab8af; background: #fbfcfb; box-shadow: 0 5px 14px rgba(21,27,23,.06); }
.provider-button:not([aria-disabled=true]):focus-visible { outline: 3px solid rgba(37,199,111,.28); outline-offset: 2px; border-color: var(--green-dark); }
.provider-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #273029; background: #f0f3f1; font-weight: 900; text-align: center; }
.provider-label { text-align: left; }
.provider-button > small { padding: 4px 6px; border-radius: 6px; color: #68716b; background: #eef1ef; font-size: 9px; font-weight: 850; white-space: nowrap; }
.provider-button.apple:not([aria-disabled=true]) { color: #fff; border-color: #111; background: #111; }
.provider-button[aria-disabled=true] { color: #69736d; border-color: #d8dfda; background: #f3f6f4; cursor: not-allowed; }
.provider-button[aria-disabled=true] .provider-icon { color: #7a817d; background: #e5e9e6; }
.auth-divider { margin: 15px 0; display: flex; align-items: center; gap: 10px; color: #7a847e; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.auth-divider::before,.auth-divider::after { height: 1px; flex: 1; content: ""; background: #e0e5e1; }
.provider-button.local-user { color: #075d36; border-color: #b9d9c7; background: #f2fbf6; }
.provider-button.local-user .provider-icon { color: #075d36; background: #dff5e8; }
.local-auth-page { padding-inline: 4px; }
.local-auth-card { border-color: #d9e5dd; box-shadow: 0 16px 42px rgba(21,27,23,.08); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 78px; }
.password-field button { min-height: 38px; padding: 0 10px; position: absolute; top: 50%; right: 5px; transform: translateY(-50%); border: 0; border-radius: 7px; color: var(--green-dark); background: #edf8f1; font-size: 12px; font-weight: 800; cursor: pointer; }
.password-field button:focus-visible { outline: 3px solid rgba(37,199,111,.28); outline-offset: 1px; }
.password-guidance { margin: -8px 0 18px; padding: 11px 12px; border-left: 3px solid var(--green); border-radius: 7px; color: #536159; background: #f2f8f4; font-size: 12px; line-height: 1.5; }
.auth-signup-prompt,.auth-secondary-links { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.auth-signup-prompt a,.auth-secondary-links a { color: var(--green-dark); font-weight: 800; }
.legal-check { align-items: flex-start; font-size: 13px; line-height: 1.45; }
.verification-code-input { min-height: 60px; font-size: 28px; font-weight: 850; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.verification-resend { margin-top: 12px; text-align: center; }
.verification-resend p { color: var(--muted); font-size: 12px; }
.dev-code-note { margin: 0 0 16px; padding: 11px; border: 1px dashed #b28400; border-radius: 8px; color: #6e5200; background: #fff8df; font-size: 12px; text-align: center; }
.admin-access { margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-access > div { display: flex; align-items: center; gap: 10px; }
.admin-lock { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: #57615b; background: #eef1ef; font-weight: 900; }
.admin-access > div > div { display: flex; flex-direction: column; }.admin-access strong { font-size: 12px; }.admin-access small { color: var(--muted); font-size: 10px; }
.admin-access > a { min-height: 44px; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; color: #4f5953; font-size: 13px; font-weight: 800; }
.admin-access > a:hover { color: #08713f; }
.legal-copy { margin: 15px 0 0; color: #707a74; font-size: 11px; line-height: 1.55; text-align: center; }
.legal-copy span { color: #4d5751; text-decoration: underline; text-decoration-color: #bac2bd; text-underline-offset: 2px; }
.auth-trust-note { margin: 11px 0 0; color: #68716b; font-size: 11px; text-align: center; }
.auth-trust-note span { color: #08713f; font-weight: 900; }
.center-page { min-height: calc(100vh - 170px); margin: 0 auto; padding: 55px 0; display: flex; flex-direction: column; justify-content: center; }.center-page.narrow { max-width: 460px; }.center-page.medium { max-width: 620px; }.form-card { width: 100%; padding: 34px; }.form-card h1 { font-size: 28px; }.form-card > p { margin-bottom: 25px; color: var(--muted); font-size: 14px; line-height: 1.6; }.check-label { min-height: var(--tap-target); display: flex; align-items: center; gap: 10px; }.check-label input { width: 20px; min-height: 20px; height: 20px; margin: 0; }
.secret-box { margin: 20px 0; padding: 17px; border-radius: 11px; background: #eff8f2; }.secret-box small { display: block; color: var(--green-dark); margin-bottom: 7px; }.secret-box code,.break-code { overflow-wrap: anywhere; font-size: 12px; }.form-card details { margin-bottom: 22px; color: var(--muted); font-size: 11px; }.form-card details code { display: block; padding-top: 10px; }
.recovery-grid { margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.recovery-grid code { padding: 10px; border: 1px dashed #b9c3bc; border-radius: 8px; background: #fafbfa; text-align: center; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 14px; }.vehicle-card { padding: 22px; display: flex; align-items: center; gap: 15px; }.vehicle-card.active-card { border-color: rgba(37,199,111,.55); box-shadow: 0 12px 40px rgba(37,199,111,.1); }.vehicle-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--green-dark); background: var(--green-soft); }.grow { flex: 1; min-width: 0; }.grow > small { color: var(--green-dark); font-size: 8px; font-weight: 800; letter-spacing: 1px; }.grow h2 { margin: 4px 0; }.grow p { margin: 0; color: var(--muted); font-size: 10px; }.card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }.card-actions a,.card-actions button { border: 0; color: var(--green-dark); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.card-actions button.danger-action { color: var(--red); }
.card-actions a,.card-actions button { min-height: var(--tap-target); padding: 0 8px; display: inline-flex; align-items: center; }
.cost-config-panel { padding: 24px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.settings-card { padding: 25px; }.settings-card h2 { padding-bottom: 13px; border-bottom: 1px solid var(--line); }.settings-card dl { margin: 0; }.settings-card dl div,.setting-row { padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #edf0ee; }.settings-card dt,.setting-row small { color: var(--muted); font-size: 13px; }.settings-card dd { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; text-align: right; }.setting-row > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }.setting-row strong { font-size: 14px; }.setting-row button,.link-buttons a { min-height: var(--tap-target); border: 0; display: inline-flex; align-items: center; color: var(--green-dark); background: transparent; font-size: 14px; font-weight: 700; cursor: pointer; }.link-buttons { padding-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; }.status-pill { padding: 5px 8px; border-radius: 999px; color: #08713f; background: var(--green-soft); font-size: 11px; font-weight: 800; text-transform: uppercase; }.status-pill.muted { color: #626b65; background: #eee; }.danger-link { min-height: var(--tap-target); margin-top: 18px; display: inline-flex; align-items: center; color: var(--red); font-size: 14px; }.logout-footer { margin-top: 25px; text-align: center; }.logout-footer button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }.button-danger { color: #fff; background: var(--red); }.eyebrow.danger { color: var(--red); }.danger-card { border-color: #f2c7ca; }
.admin-metrics { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }.admin-metrics article { min-height: 105px; padding: 18px; display: flex; flex-direction: column; justify-content: center; }.admin-metrics small { color: var(--muted); font-size: 13px; }.admin-metrics strong { margin-top: 8px; font-size: 25px; }.audit-panel { margin-top: 16px; padding: 24px; }.audit-list { margin-top: 14px; }.audit-list div { padding: 12px 0; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); font-size: 14px; }.audit-list span { color: var(--muted); text-align: right; }.filter-bar { margin-bottom: 14px; padding: 12px; display: flex; gap: 8px; }.filter-bar input,.filter-bar select { margin: 0; }.filter-bar input { flex: 1; }.filter-bar select { width: 200px; }.admin-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }.admin-actions form { display: flex; gap: 4px; }.admin-actions select { width: 116px; min-height: var(--tap-target); margin: 0; padding: 6px; font-size: 14px; }.admin-actions button,.admin-actions a { min-height: var(--tap-target); padding: 0 10px; border: 0; border-radius: 6px; display: inline-flex; align-items: center; color: var(--green-dark); background: var(--green-soft); font-size: 14px; font-weight: 750; cursor: pointer; }
.admin-heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.complimentary-toggle { min-height: 72px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; display: flex !important; align-items: flex-start; gap: 12px; background: #f8faf9; cursor: pointer; }
.complimentary-toggle input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--green-dark); }
.complimentary-toggle span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.complimentary-toggle strong { color: var(--ink); font-size: 14px; }
.complimentary-toggle small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.status-pill.complimentary-active { color: #08713f; background: var(--green-soft); }
.admin-user-list { display: none; }
.error-page { min-height: calc(100vh - 170px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.error-page > strong { color: var(--green); font-size: 80px; line-height: 1; letter-spacing: -5px; }.error-page h1 { margin-top: 14px; }.error-page p { color: var(--muted); }
.responsive-table { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }.summary-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 10px; }.summary-grid article { min-height: 105px; padding: 18px; display: flex; flex-direction: column; justify-content: center; }.summary-grid small { color: var(--muted); }.summary-grid strong { margin-top: 8px; font-size: 25px; }.billing-grid > .panel { padding: 24px; }.billing-grid form + form { margin-top: 8px; }.billing-grid .panel > p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.billing-grid .button { width: 100%; }
.billing-checkout-form { margin-top: 16px; display: grid; gap: 8px; }
.billing-coupon-field { margin-bottom: 4px; color: var(--ink); font-size: 12px; font-weight: 750; }
.billing-coupon-field small { margin-left: 5px; color: var(--muted); font-weight: 500; }
.billing-coupon-field input { width: 100%; min-height: 44px; margin-top: 6px; text-transform: uppercase; }
.partner-panel { scroll-margin-top: 92px; }
.partner-metrics { margin-top: 16px; }
.partner-coupon-form { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; }
.partner-coupon-list { margin-top: 16px; }
.partner-coupon-list td form { display: flex; align-items: center; gap: 7px; }
.partner-coupon-list td form input[type="password"] { width: 150px; min-height: 38px; }
.financial-history { margin-top: 16px; padding: 24px; }
.financial-history-list { display: none; }
.complimentary-card { border-color: rgba(37,199,111,.55); background: linear-gradient(135deg,#fff,#effbf4); }.access-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 8px; }.access-summary div { padding: 12px; border-radius: 9px; background: rgba(255,255,255,.8); }.access-summary dt { color: var(--muted); font-size: 9px; }.access-summary dd { margin: 4px 0 0; font-size: 11px; font-weight: 750; }.grant-history { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }.grant-history summary { cursor: pointer; }

@media (max-width: 1050px) { .login-experience { grid-template-columns: minmax(0,1fr) 390px; column-gap: 34px; }.login-intro h1 { font-size: 45px; }.admin-metrics { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 800px) {
  .login-page .page-shell { max-width: 700px; }
  .login-experience { min-height: 0; padding: 34px 0 12px; grid-template-columns: 1fr; grid-template-areas: "intro" "action" "demo" "benefits"; gap: 26px; }
  .login-intro { max-width: 620px; }
  .login-intro h1 { max-width: 600px; font-size: 40px; letter-spacing: -1.8px; }
  .login-action { width: min(480px,100%); margin: 0 auto; }
  .product-demo { width: min(620px,100%); margin: 0 auto; }
  .login-benefits { width: min(620px,100%); margin: 0 auto; }
  .settings-grid { grid-template-columns: 1fr; }.nav-actions > a:not(.button):not(.account-chip),.account-chip { display: none; }.admin-metrics { grid-template-columns: 1fr 1fr; }.filter-bar { flex-direction: column; }.filter-bar select { width: 100%; }
}
@media (max-width: 520px) {
  .login-page .page-shell { padding: 0 16px; }
  .login-page .topbar { height: 70px; }.login-page .brand-mark { width: 40px; height: 40px; }.login-page .brand small { max-width: 230px; font-size: 10px; }
  .login-experience { padding-top: 27px; gap: 22px; }
  .login-intro .eyebrow { font-size: 10px; }.login-intro h1 { margin: 9px 0 12px; font-size: clamp(32px,9vw,38px); line-height: 1.06; letter-spacing: -1.5px; }.login-intro > p { font-size: 15px; line-height: 1.55; }
  .login-value-note { margin-top: 13px; padding: 9px 11px; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.42; }
  .login-value-note strong { font-size: 13px; white-space: normal; }
  .auth-card { padding: 21px 19px; }.auth-card-heading h2 { font-size: 24px; }.auth-card-heading p { margin-bottom: 17px; }
  .provider-button { min-height: 54px; font-size: 13px; }.provider-button > small { font-size: 8px; }
  .product-demo { padding: 19px; border-radius: 17px; }.demo-heading { align-items: flex-start; }.demo-heading h2 { font-size: 17px; }.demo-disclaimer { font-size: 9px; }
  .demo-result { grid-template-columns: 1fr 1fr; }.demo-main-metric,.demo-rate { padding: 12px; }.demo-main-metric strong { font-size: 25px; }.demo-rate strong { font-size: 20px; }
  .demo-more { margin: 13px 0; border-top: 1px solid #2a372f; border-bottom: 1px solid #2a372f; }.demo-more > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #bdc7c0; font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }.demo-more > summary::-webkit-details-marker { display: none; }.demo-more:not([open]) > :not(summary) { display: none; }.demo-more[open] > summary span { transform: rotate(45deg); }
  .demo-equation { display: grid; grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); overflow: visible; }.demo-equation div { min-width: 0; }.demo-equation div:nth-of-type(1) { grid-area: 1 / 1; }.demo-equation > span:nth-of-type(1) { grid-area: 1 / 2; }.demo-equation div:nth-of-type(2) { grid-area: 1 / 3; }.demo-equation > span:nth-of-type(2) { grid-area: 2 / 2; }.demo-equation div:nth-of-type(3) { grid-area: 2 / 3; }.demo-equation > span { align-self: center; text-align: center; }.demo-details { grid-template-columns: 1fr 1fr 1fr; }.demo-chart ol { height: 112px; }.chart-slot strong,.chart-slot small { font-size: 9px; }
  .demo-goal { margin-top: 12px; }
  .login-benefits { grid-template-columns: 1fr; gap: 0; }.login-benefits li { padding: 12px 3px; }.login-benefits small { font-size: 12px; }
  .legal-copy { font-size: 12px; }.login-page footer { padding: 24px 8px max(22px,env(safe-area-inset-bottom)); line-height: 1.5; }
  .recovery-grid { grid-template-columns: 1fr; }.admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.card-grid { grid-template-columns: 1fr; }.vehicle-card { align-items: flex-start; }.form-card { padding: 24px; }
  .admin-heading-actions { width: 100%; }.admin-heading-actions .button { flex: 1; }
}

/* Navegação de conta e estrutura mobile da FASE 1 */
[hidden] { display: none !important; }
.account-menu { position: relative; }
.account-menu-trigger { max-width: 230px; border: 0; display: flex; align-items: center; gap: 8px; color: var(--ink); cursor: pointer; }
.account-menu-trigger > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #082314; background: var(--green); font-size: 11px; font-weight: 900; }
.account-menu-panel { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: 285px; max-height: min(680px, calc(100vh - 110px)); padding: 8px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 22px 55px rgba(21,27,23,.2); }
.menu-user { padding: 12px 11px; display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid var(--line); }
.menu-user strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.menu-user small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-panel > a,.account-menu-panel form button { width: 100%; min-height: 40px; padding: 9px 11px; border: 0; border-radius: 8px; display: flex; align-items: center; color: #3f4842; background: transparent; font: 700 10px 'Segoe UI',system-ui,sans-serif; text-align: left; cursor: pointer; }
.account-menu-panel > a:hover,.account-menu-panel form button:hover { color: var(--green-dark); background: var(--green-soft); }
.account-menu-panel form { margin: 0; }.account-menu-panel form button { color: var(--red); }
.menu-divider { height: 1px; margin: 6px 5px; background: var(--line); }
.menu-label { padding: 8px 11px 4px; display: block; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.structure-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.structure-card { min-height: 180px; padding: 24px; }.structure-card > span { color: var(--green-dark); font-size: 12px; font-weight: 900; }.structure-card h2 { margin: 24px 0 8px; }.structure-card p,.phase-notice p { color: var(--muted); font-size: 14px; line-height: 1.65; }.structure-card a { min-height: var(--tap-target); display: inline-flex; align-items: center; color: var(--green-dark); font-size: 14px; font-weight: 800; }

.settings-card dd a { min-width: var(--tap-target); min-height: var(--tap-target); padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.phase-notice { min-height: 220px; padding: 30px; display: grid; place-items: center; text-align: center; }.phase-notice > div { max-width: 600px; }.phase-notice .status-pill { display: inline-flex; }.phase-notice h2 { margin: 12px 0 6px; }
.mobile-bottom-nav,.mobile-menu-overlay { display: none; }

@media (max-width: 900px) { .structure-grid { grid-template-columns: 1fr; }.structure-card { min-height: auto; }.structure-card h2 { margin-top: 12px; } }
@media (max-width: 750px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } body.menu-open { overflow: hidden; }
  .page-shell { padding-right: max(17px, env(safe-area-inset-right)); padding-left: max(17px, env(safe-area-inset-left)); }
  .topbar { position: sticky; z-index: 30; top: 0; height: 64px; background: rgba(245,247,245,.94); backdrop-filter: blur(14px); }
  main { scroll-margin-top: 74px; }
  .nav-actions > .button { display: none; }
  .mobile-bottom-nav { position: fixed; z-index: 35; right: 0; bottom: 0; left: 0; min-height: 70px; padding: 7px max(8px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(21,27,23,.12); background: rgba(255,255,255,.97); box-shadow: 0 -10px 30px rgba(21,27,23,.08); backdrop-filter: blur(12px); }
  .mobile-bottom-nav a,.mobile-bottom-nav button { min-width: 0; min-height: 54px; padding: 5px; border: 0; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #707972; background: transparent; cursor: pointer; }
  .mobile-bottom-nav span { font-size: 19px; line-height: 1; }.mobile-bottom-nav small { font-size: 12px; font-weight: 800; }
  .mobile-bottom-nav [aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }
  .mobile-bottom-nav .mobile-register { margin-top: -17px; color: #082314; background: var(--green); box-shadow: 0 8px 24px rgba(37,199,111,.3); }
  .mobile-bottom-nav .mobile-register span { font-size: 26px; }
  .mobile-menu-overlay { position: fixed; z-index: 50; inset: 0; display: block; }
  .mobile-menu-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(10,16,12,.55); }
  .mobile-menu-panel { position: absolute; right: 0; bottom: 0; left: 0; max-height: min(82vh,760px); padding: 18px 17px max(18px,env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -24px 65px rgba(10,16,12,.25); }
  .mobile-menu-panel header { padding: 4px 2px 16px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }.mobile-menu-panel header div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }.mobile-menu-panel header strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }.mobile-menu-panel header small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.mobile-menu-panel header button { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--muted); background: #f0f3f1; font-size: 20px; cursor: pointer; }
  .mobile-menu-links { padding-top: 8px; }.mobile-menu-links > a,.mobile-menu-links form button { width: 100%; min-height: 48px; padding: 12px 10px; border: 0; border-bottom: 1px solid #edf0ee; display: flex; align-items: center; color: #3f4842; background: transparent; font: 750 12px 'Segoe UI',system-ui,sans-serif; text-align: left; cursor: pointer; }.mobile-menu-links form { margin: 0; }.mobile-menu-links form button { color: var(--red); }
  footer { padding: 32px 0 12px; font-size: 12px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; padding-top: 32px; }.page-heading > .button { width: 100%; }.billing-grid { grid-template-columns: 1fr; }.text-import { padding: 18px; }
  .audit-list div { align-items: flex-start; flex-direction: column; gap: 4px; }.audit-list span { text-align: left; }
  .admin-user-table { display: none; }.admin-user-list { display: grid; gap: 10px; }.admin-user-card { padding: 16px; }.admin-user-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.admin-user-card > header div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }.admin-user-card > header strong { overflow-wrap: anywhere; font-size: 16px; }.admin-user-card > header small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.admin-user-card dl { margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.admin-user-card dl div { padding: 9px; border-radius: var(--radius-sm); background: #f4f7f5; }.admin-user-card dt { color: var(--muted); font-size: 12px; }.admin-user-card dd { margin: 3px 0 0; font-size: 14px; font-weight: 800; }.admin-user-card .admin-actions { padding-top: 12px; border-top: 1px solid var(--line); }.admin-user-card .admin-actions form { min-width: 100%; display: grid; grid-template-columns: 1fr auto; }.admin-user-card .admin-actions select { width: 100%; }.admin-user-card .admin-actions a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Relatórios */
.report-heading { align-items: flex-end; }.export-actions { display: flex; gap: 8px; }.export-actions button:disabled { opacity: .55; cursor: not-allowed; }
.report-filters { margin-bottom: 12px; padding: 0; overflow: hidden; }.report-filters summary { min-height: var(--tap-target); padding: 17px 20px; color: #4b544e; font-size: 14px; font-weight: 800; cursor: pointer; }.report-filters form { padding: 4px 20px 20px; }.filter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.filter-grid label { margin: 0; color: var(--muted); font-size: 14px; }.filter-grid input,.filter-grid select { margin-top: 6px; }.filter-actions { padding-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }
.filter-chips { margin: 12px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }.filter-chips span { padding: 6px 9px; border-radius: 999px; color: #526058; background: #eaf0ec; font-size: 12px; font-weight: 750; }
.report-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 10px; }.report-kpis .kpi { min-height: 115px; }
.grouped-summary { margin-top: 16px; padding: 22px; }.grouped-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 8px; }.grouped-grid article { padding: 14px; display: flex; flex-direction: column; gap: 5px; border-radius: 10px; background: #f4f7f5; }.grouped-grid strong { font-size: 10px; }.grouped-grid span { color: var(--muted); font-size: 8px; }.grouped-grid b { color: var(--green-dark); font-size: 10px; }
.report-table { max-height: 70vh; }.report-table th { position: sticky; top: 0; z-index: 1; background: #f6f8f7; }.notes-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }.report-mobile-list { display: none; }
@media (max-width: 900px) { .filter-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .report-heading { align-items: flex-start; }.export-actions { width: 100%; }.export-actions .button { flex: 1; padding: 11px 8px; }.filter-grid { grid-template-columns: 1fr; }.filter-actions .button { flex: 1; }.report-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }.report-kpis .kpi:first-child { grid-column: 1 / -1; }.report-table { display: none; }.report-mobile-list { display: grid; gap: 10px; }.report-record-card { padding: 17px; }.report-record-card header { display: flex; justify-content: space-between; gap: 12px; }.report-record-card header > div { display: flex; flex-direction: column; gap: 4px; }.report-record-card header strong { font-size: 16px; }.report-record-card header span { color: var(--muted); font-size: 12px; }.report-record-card header > b { color: var(--green-dark); font-size: 16px; }.report-record-card dl { margin: 15px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.report-record-card dl div { padding: 9px; border-radius: 8px; background: #f4f7f5; }.report-record-card dt { color: var(--muted); font-size: 12px; }.report-record-card dd { margin: 3px 0 0; font-size: 14px; font-weight: 800; }.report-record-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }.grouped-grid strong,.grouped-grid b { font-size: 14px; }.grouped-grid span { font-size: 12px; }.financial-history-table { display: none; }.financial-history-list { display: grid; }.financial-history-list article { padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }.financial-history-list article > div { display: flex; flex-direction: column; gap: 4px; }.financial-history-list article > div:last-child { align-items: flex-end; }.financial-history-list strong,.financial-history-list b { font-size: 14px; }.financial-history-list small { color: var(--muted); font-size: 12px; }.empty-inline { margin: 12px 0 0; color: var(--muted); font-size: 14px; } }

/* Central administrativa segura */
.admin-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 24px; align-items: start; padding: 24px 0 54px; }
.admin-sidebar { position: sticky; top: 88px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 3px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-sidebar a { min-height: 43px; padding: 10px 12px; border-radius: 9px; display: flex; align-items: center; color: #4e5952; font-size: 13px; font-weight: 750; }
.admin-sidebar a:hover,.admin-sidebar a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }
.admin-workspace { min-width: 0; }
.breadcrumbs { margin: 0 0 14px; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.breadcrumbs > *:not(:last-child)::after { content: '/'; margin-left: 8px; color: #a8b0ab; }
.breadcrumbs b { color: #354039; }
.admin-heading { margin-bottom: 16px; }
.admin-alert { margin: 0 0 14px; padding: 13px 15px; border: 1px solid #cce8d8; border-radius: 10px; color: #245b3d; background: #f0faf4; font-size: 13px; line-height: 1.45; }
.admin-alert.protected { border-color: #f0dca4; color: #664d0a; background: #fff9e8; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.admin-kpi-grid.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-kpi { min-height: 104px; padding: 17px; display: flex; flex-direction: column; justify-content: center; }
a.admin-kpi:hover { border-color: #9fd7b7; transform: translateY(-1px); }
.admin-kpi small,.admin-kpi-grid.compact article small { color: var(--muted); font-size: 12px; }
.admin-kpi strong,.admin-kpi-grid.compact article strong { margin-top: 7px; color: #18251d; font-size: 25px; }
.admin-kpi-grid.compact article { padding: 15px; border-radius: 10px; display: flex; flex-direction: column; background: #f4f7f5; }
.admin-grid-2,.admin-grid-3 { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.admin-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-section { margin-top: 14px; padding: 22px; scroll-margin-top: 90px; }
.admin-section h2 { margin: 0 0 6px; font-size: 19px; }
.admin-section h3 { margin: 0 0 6px; font-size: 15px; }
.admin-section p { line-height: 1.5; }
.admin-definition { margin: 12px 0 18px; }
.admin-definition div { padding: 10px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.admin-definition dt { color: var(--muted); font-size: 12px; }.admin-definition dd { margin: 0; max-width: 62%; font-size: 13px; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.admin-filters { margin-bottom: 12px; padding: 14px; display: grid; grid-template-columns: minmax(220px,2fr) repeat(6,minmax(120px,1fr)) auto; gap: 9px; align-items: end; }
.admin-filters.compact { grid-template-columns: 2fr 1fr 2fr auto; }
.admin-filters label,.admin-form-grid label { min-width: 0; color: var(--muted); font-size: 11px; font-weight: 750; }
.admin-filters input,.admin-filters select,.admin-form-grid input,.admin-form-grid select,.admin-form-grid textarea,.risk-card input { width: 100%; min-height: 44px; margin: 5px 0 0; }
.admin-result-count { margin: 8px 2px 12px; color: var(--muted); font-size: 13px; }
.admin-directory td:first-child strong,.admin-directory td:first-child small { display: block; }.admin-directory td:first-child small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.admin-directory td { vertical-align: middle; font-size: 12px; }
.admin-mobile-directory { display: none; }
.pagination { min-height: 50px; margin-top: 15px; display: flex; justify-content: center; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.pagination a { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; display: inline-flex; align-items: center; color: var(--green-dark); background: #fff; font-weight: 750; }
.admin-tabs { position: sticky; z-index: 4; top: 72px; margin: 0 -2px 14px; padding: 7px; overflow-x: auto; display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.admin-tabs a { min-height: 38px; padding: 9px 11px; border-radius: 7px; display: inline-flex; align-items: center; color: #536058; font-size: 12px; font-weight: 750; white-space: nowrap; }.admin-tabs a:hover { color: var(--green-dark); background: var(--green-soft); }
.admin-form-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: end; }
.admin-form-grid .span-2 { grid-column: 1 / -1; }
.session-list article { padding: 13px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
.session-list article > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }.session-list small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }.session-list form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.risk-card { padding: 16px; border: 1px solid #f0cacc; border-radius: 11px; background: #fffafa; }.risk-card p { color: var(--muted); font-size: 12px; }.risk-card > * + * { margin-top: 8px; }
.timeline { margin-top: 16px; }.timeline article { padding: 13px 0; border-top: 1px solid var(--line); }.timeline article strong,.timeline article span { display: block; }.timeline article span { margin-top: 3px; color: var(--muted); font-size: 11px; }.timeline article p { margin: 7px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-list span { display: flex; flex-direction: column; gap: 3px; }.audit-list small { color: var(--muted); font-size: 11px; }.audit-list time { color: var(--muted); font-size: 12px; text-align: right; }.audit-list.detailed > div > span:last-child { align-items: flex-end; }
.system-heading { padding: 22px 0 20px; align-items: flex-end; gap: 24px; }
.system-heading-copy { max-width: 680px; }
.system-heading-copy h1 { margin: 7px 0 8px; }
.system-heading-copy > p { max-width: 670px; font-size: 14px; line-height: 1.55; }
.system-security-note { margin-top: 8px !important; color: #4e5d54 !important; }
.system-security-note span { color: #08713f; font-weight: 900; }
.system-heading-actions { min-width: 245px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.system-overall,.system-updated { min-height: 30px; padding: 6px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.system-overall i,.system-status-badge i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; display: inline-block; background: currentColor; box-shadow: 0 0 0 2px rgba(255,255,255,.72); }
.system-updated { color: #53645a; background: #eef3f0; font-weight: 700; }
.system-refresh { min-height: 44px; padding: 10px 14px; }
.system-refresh[aria-busy=true] { opacity: .68; pointer-events: none; cursor: wait; }
.system-refresh[aria-busy=true] > span:first-child { animation: system-refresh-spin .75s linear infinite; }
.system-section-heading { margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.system-section-heading h2 { margin: 4px 0 0; font-size: 19px; }
.system-section-heading > p { margin: 0; color: var(--muted); font-size: 12px; }
.system-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.system-metric { min-height: 112px; padding: 16px; position: relative; overflow: hidden; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 12px; }
.system-metric::before { content: ''; width: 4px; position: absolute; inset: 16px auto 16px 0; border-radius: 0 4px 4px 0; background: var(--green); }
.system-metric-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #08713f; background: var(--green-soft); font-size: 13px; font-weight: 900; }
.system-metric > div { min-width: 0; display: flex; flex-direction: column; }
.system-metric small { color: #5f6b64; font-size: 12px; font-weight: 750; }
.system-metric strong { margin: 5px 0 2px; font-size: 29px; line-height: 1.1; letter-spacing: -.7px; }
.system-metric span { color: #8a938d; font-size: 10px; }
.system-components { margin-top: 18px; padding: 24px; }
.health-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.health-card { min-height: 112px; padding: 16px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 12px; background: #fbfcfb; }
.health-card header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.health-card header > strong { min-width: 0; color: #27332b; font-size: 14px; overflow-wrap: anywhere; }
.health-card p { margin: 10px 0 0; color: #68736c; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.system-status-badge { min-height: 28px; padding: 5px 8px; border: 1px solid currentColor; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 850; line-height: 1.15; white-space: nowrap; }
.system-state--healthy { color: #08713f; border-color: #a9dec0; background: #effaf4; }
.system-state--warning { color: #7b5900; border-color: #ead48f; background: #fff9e7; }
.system-state--danger { color: #a52f38; border-color: #edbdc1; background: #fff2f3; }
.system-state--disabled { color: #626c66; border-color: #d5dbd7; background: #f2f4f3; }
.system-state--info { color: #315f7b; border-color: #b9d4e4; background: #f0f7fb; }
.system-state--neutral { color: #56635b; border-color: #d8dfda; background: #f7f9f8; }
.health-card.system-state--healthy p,.health-card.system-state--warning p,.health-card.system-state--danger p,.health-card.system-state--disabled p,.health-card.system-state--info p,.health-card.system-state--neutral p { color: #68736c; }
.health-card.system-state--healthy,.health-card.system-state--warning,.health-card.system-state--danger,.health-card.system-state--disabled,.health-card.system-state--info,.health-card.system-state--neutral { border-color: var(--line); background: #fff; }
.health-card.system-state--healthy { border-left-color: #168a4c; }.health-card.system-state--warning { border-left-color: #c28a00; }.health-card.system-state--danger { border-left-color: #c33e47; }.health-card.system-state--disabled { border-left-color: #7b8580; }.health-card.system-state--info { border-left-color: #4f86a7; }.health-card.system-state--neutral { border-left-color: #7d8981; }
.system-state--healthy .system-status-badge { background: #e7f8ee; }.system-state--warning .system-status-badge { background: #fff4cd; }.system-state--danger .system-status-badge { background: #ffe5e7; }.system-state--disabled .system-status-badge { background: #e9edeb; }.system-state--info .system-status-badge { background: #e3f1f8; }.system-state--neutral .system-status-badge { background: #edf1ee; }
.system-operation-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 14px; }
.system-safe-operation { min-height: 100%; padding: 24px; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 15px; }
.system-safe-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #08713f; background: var(--green-soft); font-size: 18px; font-weight: 900; }
.system-safe-operation h2 { margin: 5px 0 8px; }
.system-safe-operation p { margin: 0; color: #626e67; font-size: 13px; }
.system-safe-operation ul { margin: 15px 0 17px; padding-left: 18px; color: #556159; font-size: 12px; line-height: 1.65; }
.system-safe-operation > div > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.system-safe-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.system-safe-actions > small { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.system-additional { padding: 24px; }
.system-additional dl { margin: 0; display: grid; gap: 8px; }
.system-info-row { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.system-info-row dt { min-width: 0; }
.system-info-row dt strong,.system-info-row dt small { display: block; }
.system-info-row dt strong { color: #354139; font-size: 12px; }
.system-info-row dt small { margin-top: 3px; color: #748078; font-size: 10px; line-height: 1.4; }
.system-info-row dd { margin: 0; min-width: 0; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.system-technical-value { max-width: 260px; padding: 5px 7px; border-radius: 6px; color: #48564d; background: #edf1ee; font: 700 10px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap: anywhere; white-space: normal; text-align: right; }
.system-info-row.system-state--healthy,.system-info-row.system-state--warning,.system-info-row.system-state--danger,.system-info-row.system-state--disabled,.system-info-row.system-state--info,.system-info-row.system-state--neutral { background: #fbfcfb; }
.danger-zone { border-color: #efbfc3; background: #fffafa; }.muted-copy { color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { a.admin-kpi { transition: none; } }
@keyframes system-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .system-refresh[aria-busy=true] > span:first-child { animation: none; } }
@media (max-width: 1100px) { .admin-layout { grid-template-columns: 1fr; }.admin-sidebar { position: static; display: flex; overflow-x: auto; }.admin-sidebar a { white-space: nowrap; }.admin-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.admin-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }.admin-search { grid-column: span 2; }.system-operation-layout { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .system-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) { .admin-layout { padding-top: 15px; }.admin-sidebar { margin: 0 -17px; padding: 8px 17px; border-width: 1px 0; border-radius: 0; box-shadow: none; }.admin-heading { align-items: flex-start; }.admin-heading > .button { width: 100%; }.admin-kpi-grid,.admin-kpi-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }.admin-grid-2,.admin-grid-3 { grid-template-columns: 1fr; }.admin-filters,.admin-filters.compact { grid-template-columns: 1fr 1fr; }.admin-search { grid-column: 1 / -1; }.admin-filters .button { grid-column: 1 / -1; }.admin-directory { display: none; }.admin-mobile-directory { display: grid; gap: 10px; }.admin-mobile-directory .button { width: 100%; }.admin-form-grid { grid-template-columns: 1fr; }.admin-form-grid .span-2 { grid-column: auto; }.admin-tabs { top: 0; }.admin-section { padding: 17px; }.health-grid { grid-template-columns: 1fr; }.session-list article { grid-template-columns: 1fr auto; }.audit-list.detailed > div > span:last-child { align-items: flex-start; }.audit-list time { text-align: left; }.system-heading { padding-top: 12px; }.system-heading-actions { width: 100%; min-width: 0; align-items: stretch; }.system-overall,.system-updated { align-self: flex-start; }.system-refresh { width: 100%; }.system-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }.system-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.system-metric { min-height: 105px; padding: 13px; grid-template-columns: 34px minmax(0,1fr); gap: 9px; }.system-metric-icon { width: 34px; height: 34px; }.system-metric strong { font-size: 25px; }.system-components { padding: 17px; }.health-card { min-height: 0; }.system-safe-operation { padding: 18px; grid-template-columns: 36px minmax(0,1fr); gap: 12px; }.system-safe-icon { width: 36px; height: 36px; }.system-additional { padding: 18px; } }
@media (max-width: 430px) { .system-info-row { align-items: flex-start; flex-direction: column; }.system-info-row dd { width: 100%; align-items: flex-start; }.system-info-row .system-status-badge { max-width: 100%; white-space: normal; }.system-technical-value { max-width: 100%; text-align: left; }.health-card header { align-items: flex-start; }.health-card .system-status-badge { flex: 0 0 auto; }.system-safe-operation { grid-template-columns: 1fr; }.system-safe-actions .button { width: 100%; } }

/* Pre-operation checklist */
.preflight-workspace { max-width: 1240px; }
.preflight-header { padding: 22px 0 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.preflight-header h1 { margin: 5px 0 8px; }
.preflight-header p { max-width: 690px; margin: 0; color: var(--muted); }
.preflight-header-actions { min-width: 245px; display: grid; justify-items: end; gap: 10px; }
.preflight-header-actions form { margin: 0; }
.preflight-last-check { color: var(--muted); font-size: 11px; text-align: right; }
.preflight-last-check time { display: block; color: var(--ink); font-weight: 750; }
.preflight-safety { margin: 0 0 16px; color: #42604e; font-size: 11px; overflow-wrap: anywhere; }
.preflight-safety span { color: var(--green-dark); font-weight: 900; }
.preflight-overview { margin-bottom: 14px; padding: 24px; display: grid; grid-template-columns: minmax(180px,.65fr) minmax(280px,1.35fr) minmax(250px,.9fr); align-items: center; gap: 28px; border-left: 5px solid #d6ded9; }
.preflight-overview.system-state--danger { border-left-color: #b32632; }
.preflight-overview.system-state--warning { border-left-color: #c98a00; }
.preflight-overview.system-state--info { border-left-color: #337eaa; }
.preflight-overview.system-state--healthy { border-left-color: var(--green); }
.preflight-score { display: grid; }
.preflight-score > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.preflight-score > strong { margin: 2px 0 8px; font-size: clamp(36px,5vw,54px); letter-spacing: -.05em; line-height: 1; }
.preflight-score > small { margin-top: 7px; color: var(--muted); font-size: 9px; }
.preflight-progress { width: 100%; height: 8px; overflow: hidden; border-radius: 99px; background: #dfe7e2; }
.preflight-progress span { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.preflight-verdict { min-width: 0; }
.preflight-verdict-label { display: inline-flex; align-items: center; gap: 7px; color: #8e1e28; font-size: 16px; font-weight: 900; text-transform: uppercase; }
.preflight-verdict-label i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.system-state--warning .preflight-verdict-label { color: #805a00; }
.system-state--info .preflight-verdict-label { color: #286889; }
.system-state--healthy .preflight-verdict-label { color: #08713f; }
.preflight-verdict p { max-width: 520px; margin: 8px 0; color: #4e5c53; font-size: 13px; }
.preflight-verdict > strong { font-size: 12px; }
.preflight-counts { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.preflight-counts div { padding: 10px 11px; border-radius: 9px; background: #f1f5f2; }
.preflight-counts dt { color: var(--muted); font-size: 9px; }
.preflight-counts dd { margin: 3px 0 0; font-size: 19px; font-weight: 900; }
.preflight-next-actions { margin: 0 0 14px; padding: 17px 20px; border: 1px solid #d9e3dd; border-radius: var(--radius); display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 20px; background: #f8fbf9; }
.preflight-next-actions h2 { margin: 3px 0 0; font-size: 17px; }
.preflight-next-actions ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; list-style: none; counter-reset: action; }
.preflight-next-actions li { min-width: 0; counter-increment: action; }
.preflight-next-actions a { min-height: 58px; padding: 10px; border-radius: 9px; display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--ink); background: #fff; box-shadow: 0 2px 10px rgb(23 38 29 / 6%); }
.preflight-next-actions a::before { content: counter(action); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green-dark); font-size: 10px; font-weight: 900; }
.preflight-next-actions a span,.preflight-next-actions a small { grid-column: 2; overflow-wrap: anywhere; }
.preflight-next-actions a span { font-size: 11px; font-weight: 800; }
.preflight-next-actions a small { color: var(--green-dark); font-size: 9px; font-weight: 800; }
.preflight-blockers { margin-bottom: 14px; padding: 20px; }
.preflight-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.preflight-section-heading h2 { margin: 3px 0 0; }
.preflight-section-heading > p { margin: 0; color: var(--muted); font-size: 11px; }
.preflight-blocker-count { padding: 5px 9px; border-radius: 999px; color: #8e1e28; background: #ffe8ea; font-size: 10px; font-weight: 850; }
.preflight-blockers ul { margin: 14px 0 0; padding: 0; list-style: none; }
.preflight-blockers li { padding: 11px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 100px minmax(0,1fr) auto; align-items: center; gap: 14px; }
.preflight-blockers li p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.preflight-blockers li > a { color: var(--green-dark); font-size: 11px; font-weight: 800; }
.preflight-no-blockers { margin: 14px 0 0; color: #4e5d54; font-size: 12px; }
.preflight-no-blockers span { margin-right: 7px; color: var(--green-dark); font-weight: 900; }
.preflight-controls { margin-bottom: 20px; padding: 16px 18px; }
.preflight-control-top { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.preflight-search { width: min(480px,100%); color: #455149; font-size: 11px; font-weight: 800; }
.preflight-search input { width: 100%; margin-top: 6px; }
.preflight-expand-actions { display: flex; gap: 5px; }
.preflight-filter-buttons { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.preflight-filter { min-height: 36px; padding: 7px 11px; border: 1px solid #d7ded9; border-radius: 999px; color: #526058; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.preflight-filter.is-active,.preflight-filter[aria-pressed="true"] { color: #fff; border-color: var(--green-dark); background: var(--green-dark); }
.preflight-filter-result { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.preflight-catalog > .preflight-section-heading { margin-bottom: 10px; }
.preflight-category { margin: 9px 0; overflow: hidden; }
.preflight-category.has-blockers { border-left: 3px solid #b32632; }
.preflight-category.is-partial { border-left: 3px solid #d7a52f; }
.preflight-category.is-complete { border-left: 3px solid #8fcfaa; }
.preflight-category > h3 { margin: 0; }
.preflight-category-toggle { width: 100%; min-height: 72px; padding: 14px 18px; border: 0; display: grid; grid-template-columns: minmax(190px,.8fr) minmax(260px,1.2fr) auto 24px; align-items: center; gap: 15px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.preflight-category-title { font-size: 15px; font-weight: 900; }
.preflight-category-summary { color: #56635b; font-size: 10px; font-weight: 750; }
.preflight-category-toggle time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.preflight-chevron { color: var(--green-dark); font-size: 20px; transition: transform .18s ease; }
.preflight-category-toggle[aria-expanded="true"] .preflight-chevron { transform: rotate(180deg); }
.preflight-category-content { border-top: 1px solid var(--line); }
.preflight-email-test { margin: 14px 18px 4px; padding: 12px; border-radius: 10px; display: grid; grid-template-columns: minmax(220px,1fr) auto; align-items: end; gap: 10px; background: var(--green-soft); }
.preflight-email-test label { font-size: 10px; font-weight: 800; }
.preflight-email-test input { width: 100%; margin-top: 5px; }
.preflight-email-test small { grid-column: 1 / -1; color: var(--muted); }
.preflight-item { border-bottom: 1px solid var(--line); }
.preflight-item:last-child { border-bottom: 0; }
.preflight-item-main { min-height: 88px; padding: 15px 18px; display: grid; grid-template-columns: minmax(250px,1fr) minmax(240px,auto) auto; align-items: center; gap: 16px; }
.preflight-item-copy { min-width: 0; }
.preflight-item-copy h4 { margin: 0; font-size: 13px; }
.preflight-item-copy p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.preflight-item-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.preflight-state,.preflight-priority { min-height: 26px; padding: 4px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.preflight-state i { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #67746c; font-size: 9px; font-style: normal; }
.preflight-state--complete { color: #08713f; background: #e5f7ec; }
.preflight-state--pending { color: #765500; background: #fff1bd; }
.preflight-state--blocked,.preflight-state--error { color: #991f2a; background: #ffe5e7; }
.preflight-state--checking { color: #286889; background: #e3f2fa; }
.preflight-state--not_applicable { color: #626c66; background: #ebefed; }
.preflight-state--complete i { background: #08713f; }
.preflight-state--pending i { background: #9b7100; }
.preflight-state--blocked i,.preflight-state--error i { background: #a3232d; }
.preflight-state--checking i { background: #337eaa; }
.preflight-priority { color: #59655e; background: #eef2ef; }
.preflight-priority--critical { color: #8e1e28; background: #ffe8ea; }
.preflight-priority--high { color: #795700; background: #fff4cc; }
.preflight-item-actions { display: flex; justify-content: flex-end; gap: 5px; }
.preflight-item-actions .button { min-height: 38px; padding: 7px 10px; font-size: 10px; }
.preflight-item-details { padding: 17px 18px 20px; background: #f8faf9; }
.preflight-item-details dl { margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.preflight-item-details dl div { min-width: 0; padding: 10px; border-radius: 8px; background: #fff; }
.preflight-item-details dt { color: var(--muted); font-size: 9px; font-weight: 750; }
.preflight-item-details dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 10px; line-height: 1.45; }
.preflight-remediation,.preflight-evidence { margin: 12px 0 0; padding: 11px; border-left: 3px solid var(--green); color: #47554c; background: #fff; font-size: 10px; }
.preflight-evidence { border-left-color: #7d9185; display: grid; gap: 4px; }
.preflight-evidence p { margin: 0; }
.preflight-manual-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preflight-manual-form label,.preflight-revoke-form label { font-size: 10px; font-weight: 800; }
.preflight-manual-form textarea,.preflight-manual-form input,.preflight-revoke-form input { width: 100%; margin-top: 5px; }
.preflight-manual-form textarea { min-height: 72px; resize: vertical; }
.preflight-manual-form > div { grid-column: 1 / -1; display: flex; gap: 7px; flex-wrap: wrap; }
.preflight-revoke-form { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px; }
.preflight-category-empty { padding: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.preflight-category[hidden],.preflight-item[hidden] { display: none; }
.preflight-history { margin-top: 20px; padding: 17px; }
.preflight-history > summary { cursor: pointer; font-size: 12px; font-weight: 850; }
@media (max-width: 980px) { .preflight-overview { grid-template-columns: 180px 1fr; }.preflight-counts { grid-column: 1 / -1; grid-template-columns: repeat(4,1fr); }.preflight-next-actions { grid-template-columns: 1fr; }.preflight-item-main { grid-template-columns: 1fr auto; }.preflight-item-actions { grid-column: 1 / -1; justify-content: flex-start; }.preflight-category-toggle { grid-template-columns: minmax(170px,.8fr) 1fr 22px; }.preflight-category-toggle time { display: none; } }
@media (max-width: 720px) { .preflight-body .topbar .account-menu { display: none; }.preflight-page .admin-sidebar { scrollbar-width: none; }.preflight-page .admin-sidebar::-webkit-scrollbar { display: none; }.preflight-header { flex-direction: column; }.preflight-header-actions { width: 100%; min-width: 0; justify-items: stretch; }.preflight-last-check { text-align: left; }.preflight-header-actions .button { width: 100%; }.preflight-overview { padding: 18px; grid-template-columns: 1fr; gap: 18px; }.preflight-counts { grid-column: auto; grid-template-columns: repeat(2,1fr); }.preflight-next-actions ol { grid-template-columns: 1fr; }.preflight-blockers li { grid-template-columns: 1fr; gap: 6px; }.preflight-control-top { align-items: stretch; flex-direction: column; }.preflight-search { width: 100%; }.preflight-expand-actions .button { flex: 1; }.preflight-filter-buttons { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }.preflight-filter { flex: 1 1 auto; }.preflight-category-toggle { min-height: 82px; padding: 13px; grid-template-columns: 1fr 24px; gap: 5px 10px; }.preflight-category-summary { grid-column: 1; }.preflight-chevron { grid-column: 2; grid-row: 1 / 3; }.preflight-item-main { padding: 14px 13px; grid-template-columns: 1fr; gap: 10px; }.preflight-item-actions { grid-column: auto; }.preflight-item-actions .button { flex: 1; text-align: center; }.preflight-item-details { padding: 14px 13px 17px; }.preflight-item-details dl { grid-template-columns: 1fr; }.preflight-manual-form { grid-template-columns: 1fr; }.preflight-manual-form > div { grid-column: auto; }.preflight-email-test { margin: 12px; grid-template-columns: 1fr; }.preflight-email-test small { grid-column: auto; } }
@media (max-width: 390px) { .preflight-workspace { min-width: 0; }.preflight-overview,.preflight-blockers,.preflight-controls { padding: 14px; }.preflight-counts dd { font-size: 17px; }.preflight-section-heading { align-items: flex-start; flex-direction: column; }.preflight-expand-actions { width: 100%; flex-direction: column; }.preflight-item-badges,.preflight-item-actions,.preflight-manual-form > div { align-items: stretch; flex-direction: column; }.preflight-state,.preflight-priority { white-space: normal; }.preflight-item-actions .button,.preflight-manual-form .button { width: 100%; }.preflight-revoke-form { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .preflight-chevron { transition: none; } }

/* Calculadora de custos 2.0: divulgação progressiva e resultados orientados a decisões. */
.cost-page-heading { align-items: flex-end; }
.cost-page-heading p { max-width: 720px; }
.cost-vehicle-picker { display: grid; grid-template-columns: auto minmax(220px,420px); align-items: center; gap: 14px; }
.cost-vehicle-picker label { color: var(--muted); font-size: 12px; font-weight: 800; }
.cost-vehicle-picker select { margin: 0; }
.cost-active-card,.cost-compare,.cost-configurator { margin-bottom: 18px; }
.cost-hero-summary { margin-top: 22px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 14px; }
.cost-hero-primary { min-height: 166px; padding: 24px; color: #fff; border-radius: 16px; background: linear-gradient(145deg,#0d2117,#142e21); }
.cost-hero-primary small,.cost-hero-primary p { color: #b9c9bf; }
.cost-hero-primary strong { margin-top: 12px; display: block; color: #70e8a9; font-size: clamp(34px,5vw,50px); letter-spacing: -.04em; }
.cost-hero-primary strong span { font-size: 14px; letter-spacing: 0; }
.cost-hero-primary p { max-width: 490px; margin: 10px 0 0; font-size: 12px; }
.cost-hero-summary dl { margin: 0; display: grid; gap: 10px; }
.cost-hero-summary dl div { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9f7; }
.cost-hero-summary dt { color: var(--muted); font-size: 11px; }
.cost-hero-summary dd { margin: 8px 0 0; font-size: 20px; font-weight: 850; }
.cost-legacy-note { padding: 12px 14px; color: #6a4d00; border: 1px solid #eed792; border-radius: 10px; background: #fff9e7; font-size: 12px; }
.cost-compare { padding: 24px; }
.cost-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cost-section-heading h2,.cost-section-heading h3 { margin: 4px 0 5px; }
.cost-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.cost-observed-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.cost-observed-grid > div { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.cost-observed-grid small,.cost-observed-grid strong { display: block; }
.cost-observed-grid small { color: var(--muted); font-size: 11px; }
.cost-observed-grid strong { margin-top: 7px; }
.cost-inline-details { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.cost-inline-details summary { cursor: pointer; font-size: 12px; font-weight: 800; }
.cost-inline-details form { margin-top: 12px; align-items: end; }
.cost-configurator { padding: clamp(20px,4vw,34px); }
.cost-unsaved { padding: 7px 10px; color: #755300; border-radius: 999px; background: #fff3ca; font-size: 11px; font-weight: 800; }
.cost-presets { margin: 20px 0; padding: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; border-radius: 12px; background: #f3f7f4; }
.cost-presets span { margin: 0 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
.cost-presets button { min-height: 36px; padding: 7px 11px; color: #31503e; border: 1px solid #cfddd4; border-radius: 9px; background: #fff; cursor: pointer; font-weight: 750; }
.cost-presets button[aria-pressed=true] { color: #075d35; border-color: #5ac68b; background: var(--green-soft); }
.cost-main-form { display: grid; gap: 18px; }
.cost-form-section { margin: 0; padding: 22px 0 4px; border: 0; border-top: 1px solid var(--line); }
.cost-form-section legend { margin-bottom: 7px; font-size: 20px; font-weight: 850; }
.cost-form-section legend span { width: 30px; height: 30px; margin-right: 7px; display: inline-grid; place-items: center; color: #08713f; border-radius: 50%; background: var(--green-soft); font-size: 13px; }
.cost-section-help { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.cost-main-form label,.custom-cost-row label { min-width: 0; color: #455249; font-size: 12px; font-weight: 750; }
.cost-main-form label > input,.cost-main-form label > select,.cost-main-form label > textarea { width: 100%; margin-top: 7px; }
.cost-main-form label > small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.form-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.cost-goal-section { padding-bottom: 12px; }
.cost-advanced { border: 1px solid #dce5df; border-radius: 15px; background: #fbfcfb; overflow: clip; }
.cost-advanced > summary { min-height: 74px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.cost-advanced > summary::-webkit-details-marker { display: none; }
.cost-advanced > summary span strong,.cost-advanced > summary span small { display: block; }
.cost-advanced > summary span small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.cost-advanced > summary b { color: var(--green-dark); font-size: 22px; transition: transform .18s ease; }
.cost-advanced[open] > summary b { transform: rotate(45deg); }
.cost-advanced-body { padding: 4px 19px 22px; display: grid; gap: 16px; }
.cost-detail-group { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.cost-detail-group h3 { margin: 0 0 13px; }
.cost-detail-group h3 small { color: var(--muted); font-size: 11px; }
.cost-detail-group > p { margin: -7px 0 15px; color: var(--muted); font-size: 11px; }
.custom-cost-row { padding: 14px 0; display: grid; grid-template-columns: 1.3fr .7fr 1fr 1fr; gap: 10px; align-items: end; border-top: 1px solid var(--line); }
.custom-cost-row:first-child { margin-top: 12px; }
.custom-cost-row input,.custom-cost-row select { width: 100%; margin-top: 6px; }
.custom-cost-row .custom-note { grid-column: 1 / -2; }
.custom-remove { min-height: 43px; }
.cost-noscript { padding: 12px; color: #654b00; background: #fff7dc; border-radius: 10px; }
.cost-form-actions { padding-top: 5px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cost-form-actions p { margin: 0; color: var(--muted); font-size: 11px; }
.cost-result { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.cost-result-hero { padding: clamp(22px,4vw,34px); color: #fff; border-radius: 18px; background: linear-gradient(145deg,#0c1d14,#123523); }
.cost-result-hero h2 { margin: 7px 0; }
.cost-result-hero > strong { display: block; color: #6ce7a5; font-size: clamp(40px,7vw,64px); letter-spacing: -.05em; }
.cost-result-hero > strong span { font-size: 15px; letter-spacing: 0; }
.cost-result-hero p { max-width: 670px; margin-bottom: 0; color: #b9c8bf; font-size: 12px; }
.cost-result-kpis { margin: 12px 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.cost-result-kpis article { min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.cost-result-kpis small,.cost-result-kpis strong { display: block; }
.cost-result-kpis small { color: var(--muted); font-size: 10px; }
.cost-result-kpis strong { margin-top: 10px; font-size: 18px; }
.cost-category-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.cost-category-summary > div { padding: 13px; border-radius: 11px; background: #f2f5f3; }
.cost-category-summary span,.cost-category-summary strong { display: block; }
.cost-category-summary span { color: var(--muted); font-size: 10px; }
.cost-category-summary strong { margin-top: 6px; font-size: 13px; }
.cost-category-summary .reserve { background: #eef5ff; }
.cost-cash-note,.cost-missing { padding: 14px; border-radius: 11px; font-size: 11px; line-height: 1.55; }
.cost-cash-note { color: #27455d; background: #edf6fd; }
.cost-profit-line { margin: 13px 0; padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #bce4ce; border-radius: 12px; background: #f2fbf6; }
.cost-profit-line span { color: var(--muted); font-size: 11px; }
.cost-result-details { margin: 14px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.cost-result-details > summary { cursor: pointer; font-weight: 800; }
.cost-composition { margin-top: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cost-composition section { padding: 14px; border-radius: 11px; background: #f7f9f7; }
.cost-composition h3 { margin: 0 0 10px; font-size: 14px; }
.cost-composition dl { margin: 0; display: grid; gap: 7px; }
.cost-composition dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.cost-composition dd { margin: 0; text-align: right; font-weight: 750; }
.cost-result-details > p { color: var(--muted); font-size: 11px; }
.cost-missing { color: #674d00; background: #fff8de; }
.cost-missing ul { margin-bottom: 0; }
.cost-save-result { margin-top: 16px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #afe1c4; border-radius: 14px; background: #f1fbf5; }
.cost-save-result p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.cost-alternatives { margin-top: 18px; padding: 20px; }
.cost-alternatives > summary { cursor: pointer; font-size: 15px; font-weight: 850; }
.cost-alternative-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cost-alternative-grid form { padding: 17px; border: 1px solid var(--line); border-radius: 12px; }
.cost-alternative-grid h3 { margin-top: 0; }
.cost-alternative-grid p { color: var(--muted); font-size: 11px; }
.cost-alternative-grid label { display: block; margin: 12px 0; font-size: 11px; font-weight: 750; }

@media (max-width: 900px) {
  .cost-hero-summary { grid-template-columns: 1fr; }
  .cost-observed-grid,.cost-result-kpis,.cost-category-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .custom-cost-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .custom-cost-row .custom-note { grid-column: 1 / 2; }
  .cost-composition { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cost-page-heading { align-items: flex-start; }
  .cost-page-heading .button { width: 100%; }
  .cost-vehicle-picker { grid-template-columns: 1fr; }
  .cost-active-card,.cost-compare,.cost-configurator { margin-right: -4px; margin-left: -4px; border-radius: 14px; }
  .cost-active-card { padding: 19px; }
  .cost-active-title,.cost-section-heading { flex-direction: column; }
  .cost-hero-primary { min-height: 145px; padding: 19px; }
  .cost-hero-primary strong { font-size: 36px; }
  .cost-compare,.cost-configurator { padding: 18px 15px; }
  .cost-compare .period-picker { width: 100%; overflow-x: auto; }
  .cost-observed-grid,.cost-result-kpis,.cost-category-summary,.form-grid.four,.cost-alternative-grid { grid-template-columns: 1fr; }
  .cost-presets { align-items: stretch; }
  .cost-presets span { width: 100%; }
  .cost-presets button { flex: 1; }
  .history-suggestions .button { width: 100%; }
  .cost-detail-group { padding: 15px 12px; }
  .custom-cost-row { grid-template-columns: 1fr; }
  .custom-cost-row .custom-note { grid-column: auto; }
  .cost-form-actions,.cost-save-result,.cost-profit-line { align-items: stretch; flex-direction: column; }
  .cost-form-actions .button,.cost-save-result .button { width: 100%; }
  .cost-result-hero { padding: 22px 17px; }
  .cost-result-hero > strong { font-size: 40px; }
  .cost-composition dl div { align-items: flex-start; flex-direction: column; }
  .cost-composition dd { text-align: left; }
}
.distance-source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.choice-card { min-height: 84px; padding: 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; cursor: pointer; }
.choice-card:has(input:checked) { border-color: #55bd84; background: var(--green-soft); box-shadow: 0 0 0 2px rgb(85 189 132 / 12%); }
.choice-card.is-disabled { opacity: .58; cursor: not-allowed; }
.choice-card input { margin-top: 3px; accent-color: var(--green-dark); }
.choice-card strong,.choice-card small { display: block; }
.choice-card small { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.distance-manual { margin-top: 14px; }
.fuel-source-card { margin-top: 17px; padding: 18px; display: grid; grid-template-columns: minmax(180px,.55fr) 1.4fr auto; align-items: center; gap: 18px; border: 1px solid #a9dfc1; border-radius: 14px; background: #f1fbf5; }
.fuel-source-card.is-empty { border-color: #e5d7a6; background: #fffaf0; }
.fuel-source-card h3 { margin: 5px 0 0; font-size: 23px; }
.fuel-source-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.fuel-source-card > a:not(.button) { color: var(--green-dark); font-size: 11px; font-weight: 800; white-space: nowrap; }
.maintenance-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.maintenance-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.maintenance-card > .form-grid,.maintenance-card > label + .form-grid { margin-top: 14px; grid-template-columns: 1fr; }
.switch-label { display: flex; align-items: center; gap: 9px; }
.switch-label input { width: 18px; height: 18px; accent-color: var(--green-dark); }
.filter-detail-list { margin-top: 13px; padding: 15px; border: 1px solid #dce5df; border-radius: 13px; background: #f8faf8; }
.filter-detail-list > p { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.filter-detail-row { padding: 11px 0; display: grid; grid-template-columns: 1fr 1fr 1fr .75fr; align-items: end; gap: 10px; border-top: 1px solid var(--line); }
.filter-detail-row > strong { align-self: center; }
.filter-detail-row input,.filter-detail-row select { width: 100%; margin-top: 5px; }
.cost-warning { margin: 14px 0; padding: 14px; color: #6a4d00; border: 1px solid #ead48e; border-radius: 11px; background: #fff9e7; font-size: 11px; }
.cost-warning ul { margin-bottom: 0; }

.goal-page-heading form { margin: 0; }
.goal-welcome { padding: clamp(22px,4vw,36px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.goal-welcome h2,.goal-welcome p { margin: 0; }
.goal-welcome p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.goal-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--green-dark); border-radius: 14px; background: var(--green-soft); font-size: 28px; }
.goal-layout { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(340px,1.2fr); gap: 16px; }
.goal-config,.goal-progress-card { padding: clamp(21px,3vw,30px); }
.goal-config h2,.goal-progress-card h2 { margin: 5px 0 18px; }
.goal-form { display: grid; gap: 15px; }
.goal-form label { font-size: 12px; font-weight: 750; }
.goal-form label > select { width: 100%; margin-top: 7px; }
.goal-form .form-help { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.goal-progress-card { color: #fff; background: linear-gradient(145deg,#0c1d14,#123523); }
.goal-progress-card .eyebrow { color: #68e4a1; }
.goal-progress-values { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.goal-progress-values strong { color: #6ce7a5; font-size: clamp(32px,5vw,48px); letter-spacing: -.04em; }
.goal-progress-values span { color: #b9c8bf; }
.goal-progress-track { height: 9px; margin: 16px 0; border-radius: 999px; background: rgb(255 255 255 / 14%); overflow: hidden; }
.goal-progress-track span { height: 100%; display: block; border-radius: inherit; background: #43d889; }
.goal-progress-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.goal-progress-card dl div { padding: 12px; border-radius: 10px; background: rgb(255 255 255 / 7%); }
.goal-progress-card dt { color: #aebdb4; font-size: 10px; }
.goal-progress-card dd { margin: 5px 0 0; font-weight: 800; }
.goal-estimate-note { color: #aebdb4; font-size: 10px; line-height: 1.5; }
.dashboard-goal { margin-bottom: 16px; padding: 20px 24px; display: grid; grid-template-columns: 1fr minmax(280px,.75fr); align-items: center; gap: 24px; border-color: #b8e3ca; background: #f3fbf6; }
.dashboard-goal h2 { margin: 5px 0; }
.dashboard-goal h2 small { color: var(--muted); font-size: 15px; }
.dashboard-goal p,.dashboard-goal-progress small { margin: 0; color: var(--muted); font-size: 10px; }
.dashboard-goal-progress strong { font-size: 12px; }
.dashboard-goal .goal-progress-track { margin: 8px 0; background: #d8e9df; }
.dashboard-goal-daily { margin-top: 13px; padding-top: 12px; border-top: 1px solid #cfe5d7; }
.dashboard-goal-daily-heading { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-goal-daily-heading > span { color: #526159; font-size: 10px; font-weight: 800; }
.goal-day-mode { padding: 3px; display: inline-flex; gap: 2px; border-radius: 9px; background: #dfeae3; }
.goal-day-mode button { min-height: 32px; padding: 5px 9px; border: 0; border-radius: 7px; color: #5b6860; background: transparent; font-size: 9px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.goal-day-mode button[aria-pressed="true"] { color: #075f35; background: #fff; box-shadow: 0 2px 7px rgba(21,27,23,.09); }
.dashboard-goal-daily [data-goal-day-result] { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 8px; }
.dashboard-goal-daily [data-goal-day-result][hidden] { display: none; }
.dashboard-goal-daily [data-goal-day-result] > strong { color: #08713f; font-size: 18px; }
.dashboard-goal-daily [data-goal-day-result] > small { line-height: 1.4; }

@media (max-width: 900px) {
  .distance-source-grid,.maintenance-card-grid { grid-template-columns: 1fr; }
  .fuel-source-card { grid-template-columns: 1fr; }
  .filter-detail-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .goal-layout { grid-template-columns: 1fr; }
  .dashboard-goal { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .filter-detail-row { grid-template-columns: 1fr; }
  .goal-welcome { grid-template-columns: 1fr; }
  .goal-welcome .button,.goal-form .button { width: 100%; }
  .goal-progress-card dl { grid-template-columns: 1fr; }
  .dashboard-goal { padding: 17px; }
  .dashboard-goal-daily-heading { align-items: flex-start; flex-direction: column; }
  .goal-day-mode { width: 100%; }.goal-day-mode button { flex: 1; }
  .dashboard-goal-daily [data-goal-day-result] { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .cost-advanced > summary b { transition: none; } }

@media (max-width: 750px) {
  .system-help-launcher { right: max(12px,env(safe-area-inset-right)); bottom: calc(82px + env(safe-area-inset-bottom)); min-height: 46px; padding: 7px 13px 7px 8px; }
  .system-help-launcher-full { display: none; }.system-help-launcher-compact { display: inline; }
  .system-help-launcher-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .system-help-drawer { width: 100%; max-height: 100dvh; border-radius: 0; }
  .system-help-drawer-heading { padding: 17px 16px 14px; }.system-help-drawer-heading h2 { font-size: 22px; }
  .system-help-drawer-scroll { padding-right: 16px; padding-left: 16px; }
  .system-help-quick-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .system-help-journey { grid-template-columns: 1fr; }
  .system-help-page-heading { padding-top: 28px; }
  .system-help-page { margin-right: -4px; margin-left: -4px; padding: 20px 16px; }
}
@media (max-width: 390px) {
  .system-help-quick-steps { grid-template-columns: 1fr; }
  .system-help-checklist li { grid-template-columns: 30px minmax(0,1fr); }
  .system-help-checklist a { grid-column: 2; justify-self: start; padding-right: 0; padding-left: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .system-help-launcher { transition: none; } }
