:root {
  --ink: #172d40;
  --muted: #667888;
  --cream: #f2f6fa;
  --paper: #fdfefe;
  --green: #123f6b;
  --green-2: #245f96;
  --mint: #c8e0f4;
  --lime: #dceeff;
  --line: #d7e1ea;
  --red: #a33e36;
  --amber: #8a6616;
  --shadow: 0 14px 35px rgba(23, 45, 64, .08);
  --radius: 18px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5edf4;
  --muted: #9eafbd;
  --cream: #0b151e;
  --paper: #12212d;
  --green: #245f96;
  --green-2: #78b8ec;
  --mint: #17364e;
  --lime: #dceeff;
  --line: #2b4051;
  --red: #ef8f86;
  --amber: #e8bd63;
  --shadow: 0 14px 35px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
button, input, select { font: inherit; }
button, .button { touch-action: manipulation; }

.site-header { min-height: 78px; padding: 14px 0; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 49px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--green); color: var(--lime); font: 700 25px Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.main-nav a { padding: 10px 12px; border-radius: 10px; color: #40576b; text-decoration: none; font-size: 14px; font-weight: 650; }
.main-nav a:hover { background: #edf4fa; color: var(--green); }
.main-nav a.active { background: #e3eff9; color: var(--green); }
.main-nav .nav-primary { border: 0; border-radius: 10px; background: var(--green); color: white; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.main-nav .nav-primary:hover { background: var(--green-2); color: white; }
.main-nav .settings-button { width: 42px; min-width: 42px; height: 40px; padding: 0; line-height: 0; }
.settings-button svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-primary { display: block; }
.nav-dropdown > .settings-button { display: flex; align-items: center; justify-content: center; }
.nav-submenu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; display: none; min-width: 205px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.nav-dropdown.open .nav-submenu { display: grid; }
.nav-submenu a { display: flex; align-items: center; min-height: 39px; padding: 9px 11px; color: var(--muted); font-size: 14px; font-weight: 750; white-space: nowrap; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 9px; background: transparent; padding: 8px 12px; }
.header-tools { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.account-dropdown { position: relative; }
.account-menu-toggle { display: flex; align-items: center; gap: 7px; max-width: 190px; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.account-menu-toggle:hover, .account-dropdown.open .account-menu-toggle { border-color: var(--green-2); color: var(--green-2); }
.account-email { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.account-submenu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; display: none; min-width: 205px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.account-dropdown.open .account-submenu { display: grid; }
.account-submenu a, .account-submenu button { width: 100%; min-height: 39px; padding: 9px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 750; text-align: left; text-decoration: none; cursor: pointer; }
.nav-submenu a:hover, .account-submenu a:hover, .account-submenu button:hover { background: #edf4fa; color: var(--green-2); }
.nav-submenu a.active, .account-submenu a.active { background: #e3eff9; color: var(--green); }
.account-submenu form { margin: 3px 0 0; padding-top: 3px; border-top: 1px solid var(--line); }
.logout-button { color: var(--red) !important; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.theme-toggle:hover { border-color: var(--green-2); color: var(--green-2); }
.theme-icon { width: 16px; font-size: 16px; line-height: 1; }
.account-submenu .theme-toggle { justify-content: flex-start; }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 70px; }
.public-header-actions { display: flex; align-items: center; gap: 9px; }

.landing-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); align-items: center; gap: clamp(35px, 6vw, 78px); min-height: 590px; padding: clamp(42px, 7vw, 82px); overflow: hidden; border: 1px solid #c8dcea; border-radius: 30px; background: linear-gradient(135deg, #e8f4fc 0%, #d5eaf9 58%, #c8e0f4 100%); box-shadow: var(--shadow); }
.landing-hero::before { content: ""; position: absolute; top: -170px; right: -130px; width: 430px; height: 430px; border: 85px solid rgba(255,255,255,.31); border-radius: 50%; }
.landing-copy, .landing-preview { position: relative; z-index: 1; }
.landing-copy h1 { max-width: 660px; margin-bottom: 24px; font-size: clamp(50px, 6.4vw, 82px); }
.landing-copy > p { max-width: 590px; margin-bottom: 28px; color: #365975; font-size: clamp(17px, 2vw, 20px); }
.landing-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.landing-actions .button { min-width: 145px; }
.landing-highlights { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 28px; color: #365975; font-size: 12px; font-weight: 750; }
.landing-highlights span::before { content: "✓"; margin-right: 6px; color: var(--green); font-weight: 900; }

.landing-preview { padding: 20px; border: 1px solid rgba(18,63,107,.16); border-radius: 22px; background: rgba(253,254,254,.94); box-shadow: 0 24px 55px rgba(27,67,98,.17); transform: rotate(1deg); }
.preview-topbar { display: flex; align-items: center; gap: 9px; padding-bottom: 16px; border-bottom: 1px solid #dce6ed; font-size: 12px; }
.preview-logo { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: var(--green); color: white; font-family: Georgia, serif; font-size: 17px; font-weight: 700; }
.preview-status { margin-left: auto; padding: 5px 8px; border-radius: 20px; background: #e3eff9; color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.preview-heading { padding: 22px 2px 15px; }
.preview-heading span, .preview-heading strong { display: block; }
.preview-heading span { margin-bottom: 4px; color: var(--green-2); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preview-heading strong { font: 500 23px Georgia, serif; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preview-metrics > div { min-height: 86px; padding: 13px 11px; border: 1px solid #dce6ed; border-radius: 12px; background: white; }
.preview-metrics span, .preview-metrics strong { display: block; }
.preview-metrics span { margin-bottom: 13px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.preview-metrics strong { color: var(--ink); font-size: 11px; }
.preview-metrics .preview-accent { border-color: var(--green); background: var(--green); }
.preview-metrics .preview-accent span, .preview-metrics .preview-accent strong { color: white; }
.preview-list { margin-top: 12px; padding: 2px 14px; border: 1px solid #dce6ed; border-radius: 13px; background: white; }
.preview-list > div { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #e7edf2; }
.preview-list > div:first-child { border-top: 0; }
.preview-list strong, .preview-list small { display: block; }
.preview-list strong { font-size: 11px; }
.preview-list small { color: var(--muted); font-size: 9px; }
.preview-check { display: grid; flex: 0 0 24px; height: 24px; place-items: center; border-radius: 50%; background: #e3eff9; color: var(--green); font-size: 11px; font-weight: 900; }

.landing-section { padding: 92px 0 82px; }
.landing-section-heading { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.landing-section-heading h2 { margin-bottom: 15px; font-size: clamp(34px, 5vw, 50px); }
.landing-section-heading p { color: var(--muted); font-size: 16px; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.landing-feature { min-height: 275px; padding: 30px; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 24px rgba(23,45,64,.04); }
.feature-number { display: grid; width: 42px; height: 42px; margin-bottom: 43px; place-items: center; border-radius: 50%; background: #e3eff9; color: var(--green); font: 700 13px Georgia, serif; }
.landing-feature h3 { font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.landing-feature p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.landing-accountant { display: grid; grid-template-columns: 1fr 310px; align-items: center; gap: clamp(35px, 7vw, 90px); padding: clamp(38px, 6vw, 70px); border-radius: 28px; background: var(--green); color: white; overflow: hidden; }
.landing-accountant h2 { max-width: 650px; margin-bottom: 15px; font-size: clamp(34px, 5vw, 51px); }
.landing-accountant p { max-width: 670px; margin-bottom: 0; color: #d5e8f7; font-size: 16px; }
.landing-accountant .eyebrow { color: #b8daf2; }
.accountant-sheet { padding: 25px; border-radius: 9px; background: white; color: #233b50; box-shadow: 0 18px 40px rgba(0,0,0,.2); transform: rotate(3deg); }
.accountant-sheet span, .accountant-sheet strong, .accountant-sheet b { display: block; }
.accountant-sheet span { color: #607687; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.accountant-sheet strong { margin: 8px 0 25px; color: var(--green); font: 500 24px Georgia, serif; }
.accountant-sheet i { display: block; height: 7px; margin: 9px 0; border-radius: 5px; background: #e1e9ef; }
.accountant-sheet i:nth-of-type(2) { width: 82%; }
.accountant-sheet i:nth-of-type(3) { width: 91%; }
.accountant-sheet b { margin-top: 24px; padding-top: 12px; border-top: 2px solid var(--green); color: var(--green); font-size: 11px; }
.landing-final-cta { max-width: 760px; margin: 90px auto 20px; text-align: center; }
.landing-final-cta h2 { margin-bottom: 14px; font-size: clamp(34px, 5vw, 50px); }
.landing-final-cta p { color: var(--muted); }
.landing-final-cta .landing-actions { justify-content: center; margin-top: 24px; }

.auth-layout { min-height: calc(100vh - 230px); display: grid; place-items: center; padding: 25px 0; }
.auth-panel { width: min(100%, 470px); padding: clamp(27px, 5vw, 45px); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.auth-panel h1 { font-size: clamp(40px, 7vw, 56px); }
.auth-panel > p { color: var(--muted); }
.auth-form { display: grid; gap: 16px; margin-top: 25px; }
.auth-form label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.auth-form label small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-transform: none; }
.auth-form .button { margin-top: 4px; }
.auth-switch { margin: 22px 0 0 !important; font-size: 12px; text-align: center; }
.auth-switch a { color: var(--green-2); font-weight: 800; }
.site-footer { padding: 25px 20px 35px; color: var(--muted); text-align: center; font-size: 13px; }
.site-footer p { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 72px); line-height: .98; font-weight: 500; letter-spacing: -.045em; }
h1 em { color: var(--green-2); font-weight: 400; }
h2 { font-family: Georgia, serif; font-size: 28px; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; margin-bottom: 0; }
h3 { margin-bottom: 8px; font-size: 19px; }
.eyebrow { display: inline-block; margin-bottom: 13px; color: var(--green-2); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.muted { color: var(--muted); }

.hero { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 30px; padding: 45px clamp(25px, 6vw, 74px); border-radius: 28px; background: var(--mint); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; bottom: -180px; border: 70px solid rgba(255,255,255,.28); border-radius: 50%; }
.hero > * { position: relative; z-index: 1; }
.hero p { max-width: 650px; font-size: 17px; color: #365975; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-weight: 750; cursor: pointer; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-2); }
.button-secondary { border-color: #c8d4de; background: rgba(255,255,255,.68); color: var(--green); }
.button-small { min-height: 36px; padding: 7px 13px; font-size: 13px; }
.year-picker { display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; padding: 5px 6px 5px 9px; background: rgba(255,255,255,.72); border: 1px solid rgba(18,63,107,.13); border-radius: 10px; box-shadow: 0 4px 14px rgba(23,45,64,.04); }
.year-picker label { font-size: 10px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.year-picker select { width: auto; min-height: 32px; padding: 4px 24px 4px 7px; margin: 0; background: white; border: 1px solid var(--line); border-radius: 7px; color: var(--green); font-size: 12px; font-weight: 800; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 58px; }
.metric-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 22px; }
.metric-grid-three { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.metric-card { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(23,45,64,.04); }
.metric-card span, .metric-card small { display: block; }
.metric-card span { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.metric-card strong { display: block; margin-bottom: 3px; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 34px); font-weight: 500; }
.metric-card small { color: var(--muted); font-size: 12px; }
.metric-card.metric-accent { background: var(--green); border-color: var(--green); color: white; }
.metric-card.metric-accent span, .metric-card.metric-accent small { color: #cfe2f3; }

.workflow-section { margin-bottom: 55px; }
.section-heading { min-height: 45px; display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading > a, .text-link, .text-button { color: var(--green-2); font-size: 13px; font-weight: 750; }
.text-button { border: 0; background: transparent; cursor: pointer; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.step-card { display: block; min-height: 235px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 40px; border-radius: 50%; background: #e5eff8; color: var(--green); font: 700 13px Georgia, serif; }
.step-card p { min-height: 48px; color: var(--muted); font-size: 14px; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: clamp(20px, 3vw, 30px); margin-bottom: 18px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(24,48,45,.035); }
.panel-accent { border-top: 5px solid var(--green); }
.compact-list > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #e8e9e2; text-decoration: none; }
.compact-list > a:first-child { border-top: 0; }
.compact-list strong, .compact-list small, .transaction-mini-list strong, .transaction-mini-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-list small, .transaction-mini-list small { color: var(--muted); font-size: 11px; }
.file-icon { display: grid; place-items: center; width: 42px; height: 47px; border-radius: 8px; background: #f4ded7; color: #8d3d32; font-size: 10px; font-weight: 850; }
.status { display: inline-block; padding: 5px 8px; border-radius: 20px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status-a_valider { background: #fff0c9; color: var(--amber); }
.status-importe { background: #dcebf7; color: var(--green-2); }
.status-uber_pro { background: #dcebf7; color: var(--green-2); }
.status-bank { background: #e0f0e7; color: #32704f; }
.status-validation { background: #fff0c9; color: var(--amber); }
.status-none { background: #edf1f4; color: var(--muted); }
.status-other { background: #f4ded7; color: var(--red); }
.transaction-mini-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #e8e9e2; }
.transaction-mini-list > div:first-child { border-top: 0; }
.transaction-mini-list b { font-size: 13px; }
.kind-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; }
.kind-income { background: #50a174; }
.kind-expense { background: #df8d5c; }
.empty-state { padding: 20px 0; color: var(--muted); text-align: center; }
.empty-state.large { padding: 45px 20px; }
.empty-state a { color: var(--green-2); font-weight: 750; }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin: 10px 0 32px; }
.page-heading h1 { font-size: clamp(39px, 5vw, 58px); }
.page-heading p { max-width: 700px; color: var(--muted); }
.upload-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; padding: clamp(24px, 5vw, 50px); margin-bottom: 22px; border-radius: 24px; background: var(--green); color: white; }
.upload-copy { display: flex; gap: 18px; align-items: flex-start; }
.upload-copy p { color: #bdd2e4; }
.upload-icon { display: grid; flex: 0 0 60px; height: 68px; place-items: center; border-radius: 12px; background: var(--lime); color: var(--green); font-size: 13px; font-weight: 900; }
.upload-form { display: flex; flex-direction: column; gap: 10px; }
.upload-form .button-primary { background: var(--lime); color: var(--green); }
.file-drop { min-height: 125px; display: grid; place-items: center; align-content: center; border: 1.5px dashed #7d9fbd; border-radius: 14px; background: rgba(255,255,255,.05); cursor: pointer; text-align: center; }
.file-drop input { width: 1px; height: 1px; opacity: 0; position: absolute; }
.file-drop span { color: #aac3d8; font-size: 12px; }
.file-drop.has-file { border-color: var(--lime); background: rgba(220,238,255,.08); }
.report-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 15px; padding: 14px 0; border-top: 1px solid #e8e9e2; }
.report-list article:first-child { border-top: 0; }
.report-name strong, .report-name small { display: block; }
.report-name small { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; align-items: center; gap: 7px; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: transparent; font-size: 20px; cursor: pointer; }
.icon-button.danger { color: var(--red); }

.notice { padding: 17px 20px; margin-bottom: 20px; border-radius: 13px; border: 1px solid; }
.notice p { margin: 4px 0 0; font-size: 13px; }
.notice-warning { border-color: #ddc275; background: #fff8df; color: #604d17; }
.review-list { display: grid; gap: 10px; }
.review-item { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.check-control { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 13px; color: var(--green-2); font-size: 12px; font-weight: 800; }
.review-fields { display: grid; grid-template-columns: 1.3fr 1.3fr .65fr .65fr; gap: 10px; }
.review-fields label, .entry-form label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
input, select { width: 100%; min-height: 43px; padding: 9px 11px; margin-top: 5px; border: 1px solid #cbd6df; border-radius: 9px; background: white; color: var(--ink); }
input:focus, select:focus { outline: 3px solid rgba(36,95,150,.16); border-color: var(--green-2); }
input:disabled { background: #eff3f6; }
.source-line { margin: 11px 0 0; color: var(--muted); font-size: 11px; }
.sticky-actions { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 16px 0; padding: 13px 15px 13px 20px; border-radius: 14px; background: rgba(18,63,107,.96); color: white; box-shadow: var(--shadow); }
.raw-text { margin-top: 30px; }
.raw-text summary { cursor: pointer; font-weight: 750; }
.raw-text pre { max-height: 450px; overflow: auto; padding: 15px; background: #f2f2ec; white-space: pre-wrap; font-size: 11px; }

.form-panel { background: #e6eff7; }
.simple-expense-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.simple-expense-form label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.simple-expense-form .wide { grid-column: span 2; }
.receipt-field input { padding: 7px; background: white; }
.receipt-field small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-transform: none; }
.portion-help { display: block; margin-top: 4px; color: var(--green-2); font-size: 9px; font-weight: 650; text-transform: none; letter-spacing: 0; }
.custom-tax-fields { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.custom-tax-fields[hidden] { display: none; }
.expense-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 12px 14px; border: 1px solid #cad8e4; border-radius: 10px; background: rgba(255,255,255,.65); }
.expense-preview span { color: var(--muted); font-size: 11px; }
.expense-preview span strong { margin-left: 4px; color: var(--ink); }
.expense-preview small { flex-basis: 100%; color: var(--green-2); font-size: 10px; }
.advanced-entry summary { cursor: pointer; color: var(--green-2); font-size: 13px; font-weight: 800; }
.advanced-entry form { margin-top: 18px; }
.receipt-link { display: inline-block; margin-top: 4px; color: var(--green-2); font-size: 10px; font-weight: 800; }
.deposit-table .deposit-amount { color: var(--green); font-size: 14px; }
.deposit-return-tag { margin-top: 5px; color: var(--green-2); font-weight: 750; }
.entry-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.entry-form .wide { grid-column: span 2; }
.form-actions { display: flex; align-items: end; }
.form-actions.wide { grid-column: span 4; }
.filter-pills { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #f1f5f8; }
.filter-pills a { padding: 6px 11px; border-radius: 7px; text-decoration: none; font-size: 12px; font-weight: 700; }
.filter-pills a.active { background: white; color: var(--green); box-shadow: 0 2px 8px rgba(23,45,64,.08); }
.document-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
#documents-enregistres { scroll-margin-top: 18px; }
#journal-transactions { scroll-margin-top: 18px; }
.document-order { display: flex; align-items: center; gap: 6px; }
.document-order label { color: var(--muted); font-size: 10px; font-weight: 750; }
.document-order select { width: auto; min-height: 36px; margin: 0; padding: 5px 28px 5px 9px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 9px 12px; color: var(--muted); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
td { padding: 13px 12px; border-top: 1px solid #e2e8ed; vertical-align: middle; }
td small { display: block; color: var(--muted); font-size: 10px; }
.number { text-align: right; white-space: nowrap; }
.tag { display: inline-block; padding: 2px 5px; margin-left: 5px; border-radius: 5px; background: #f4ded7; color: #8d3d32; font-weight: 800; }
.mileage-form { grid-template-columns: .8fr 1.5fr 1fr 1fr auto; }
.mileage-form .wide { grid-column: auto; }

.report-heading { border-bottom: 2px solid var(--green); padding-bottom: 22px; }
.profile-block { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.profile-block div { padding: 16px; background: var(--paper); }
.profile-block span, .profile-block strong { display: block; }
.profile-block span { margin-bottom: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.report-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.report-summary-grid article { padding: 25px; border-radius: 15px; background: var(--paper); border: 1px solid var(--line); }
.report-summary-grid span, .report-summary-grid small, .report-summary-grid strong { display: block; }
.report-summary-grid span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.report-summary-grid strong { margin: 8px 0 3px; font: 500 30px Georgia, serif; }
.report-summary-grid small { color: var(--muted); font-size: 11px; }
.report-summary-grid .net { background: var(--green); color: white; }
.report-summary-grid .net span, .report-summary-grid .net small { color: #cfe2f3; }
.income-tax-guide { margin: 34px 0 22px; }
.section-intro { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.form-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-guide-panel { min-width: 0; }
.form-guide-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 2px solid var(--green); }
.form-guide-heading h3 { margin: 2px 0 3px; font: 500 29px Georgia, serif; }
.form-guide-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.form-guide-heading .button { flex: 0 0 auto; }
.form-subsection { padding: 14px 15px; margin-top: 16px; border-radius: 11px; background: #edf4fa; }
.form-subsection h4, .form-main-lines-title { margin: 0; font-size: 13px; }
.form-subsection > p { margin: 3px 0 7px; color: var(--muted); font-size: 10px; }
.form-main-lines-title { margin-top: 19px; }
.form-line-list { margin: 8px 0 0; }
.form-line-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 9px 0; border-top: 1px solid #e7e8e1; }
.form-line-list > div:first-child { border-top: 0; }
.form-line-list dt { display: flex; min-width: 0; align-items: flex-start; gap: 9px; }
.form-line-list dt strong, .form-line-list dt small { display: block; }
.form-line-list dt strong { color: var(--ink); font-size: 12px; }
.form-line-list dt small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.form-line-list dd { margin: 0; font-size: 13px; font-weight: 800; white-space: nowrap; }
.form-line-number { display: inline-grid; flex: 0 0 auto; min-width: 42px; min-height: 25px; place-items: center; padding: 3px 6px; border-radius: 7px; background: var(--mint); color: var(--green); font-size: 10px; font-weight: 850; }
.form-line-list .form-line-total { border-top: 2px solid var(--green); }
.form-line-total dd { color: var(--green); }
.form-vehicle-detail { margin-top: 16px; border-top: 1px solid var(--line); }
.form-vehicle-detail summary { padding-top: 14px; color: var(--green-2); cursor: pointer; font-size: 12px; font-weight: 800; }
.form-guide-note { padding: 11px 13px; margin: 16px 0 0; border-radius: 9px; background: #edf4fa; color: var(--muted); font-size: 10px; }
.amount-list { margin: 0; }
.amount-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-top: 1px solid #e7e8e1; }
.amount-list > div:first-child { border-top: 0; }
.amount-list dt { color: var(--muted); }
.amount-list dd { margin: 0; font-weight: 750; white-space: nowrap; }
.amount-list .total { margin-top: 5px; border-top: 2px solid var(--green); color: var(--ink); }
.fine-print { margin: 15px 0 0; color: var(--muted); font-size: 11px; }
.tax-return-panel { margin-top: 24px; border-top: 5px solid var(--green); }
.tax-heading { align-items: center; }
.method-badge { display: inline-flex; padding: 8px 13px; border-radius: 999px; background: var(--mint); color: var(--green); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.tax-assumption { padding: 13px 16px; margin-bottom: 17px; border-radius: 10px; background: #edf4fa; color: #405a70; font-size: 12px; }
.tax-columns { display: grid; grid-template-columns: .75fr 1.2fr 1.2fr; gap: 12px; }
.tax-card { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tax-card h3 { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--green); font-family: Georgia, serif; font-weight: 500; }
.tax-card-title { display: flex; align-items: center; gap: 10px; }
.tax-card-title strong, .tax-card-title small { display: block; }
.tax-card-title small { color: var(--muted); font-size: 11px; }
.line-badge { display: inline-grid; min-width: 34px; height: 26px; place-items: center; padding: 0 7px; border-radius: 7px; background: var(--green); color: white; font-size: 10px; font-weight: 850; }
.tax-line-main { margin: 32px 0 8px; font: 500 clamp(28px, 4vw, 40px) Georgia, serif; color: var(--green); }
.tax-card > p { color: var(--muted); font-size: 11px; }
.tax-lines { margin: 0; }
.tax-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #e8e9e2; }
.tax-lines > div:first-child { border-top: 0; }
.tax-lines dt { display: flex; align-items: center; gap: 8px; color: #40576b; font-size: 12px; }
.tax-lines dd { margin: 0; font-weight: 800; white-space: nowrap; }
.tax-lines .auto { opacity: .58; }
.tax-lines .auto .line-badge { background: #798984; }
.tax-lines .subtotal { margin-top: 5px; padding-top: 11px; border-top: 2px solid var(--green); }
.tax-lines .subtotal dt { font-weight: 800; color: var(--ink); }
.tax-result { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin-top: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--line); gap: 1px; }
.tax-result > div { padding: 17px 20px; background: #f7f9fb; }
.tax-result span, .tax-result strong, .tax-result small { display: block; }
.tax-result span { color: var(--muted); font-size: 11px; font-weight: 700; }
.tax-result strong { margin-top: 5px; font: 500 25px Georgia, serif; }
.tax-result small { color: var(--muted); font-size: 9px; }
.tax-result .tax-balance { background: var(--green); color: white; }
.tax-result .tax-balance.refund { background: #326b99; }
.tax-result .tax-balance span { color: #cfe2f3; }
.tax-settings { padding-top: 15px; margin-top: 13px; border-top: 1px solid var(--line); }
.tax-settings summary { cursor: pointer; color: var(--green-2); font-size: 12px; font-weight: 800; }
.tax-settings form { margin-top: 14px; }
.tax-reference { padding-top: 14px; margin: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.mileage-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mileage-summary div { padding: 7px 18px; border-left: 1px solid var(--line); }
.mileage-summary div:first-child { border-left: 0; }
.mileage-summary span, .mileage-summary strong { display: block; }
.mileage-summary span { color: var(--muted); font-size: 11px; }
.mileage-summary strong { margin-top: 5px; font: 500 25px Georgia, serif; }
.checklist label { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #e7e8e1; }
.checklist label:first-of-type { border-top: 0; }
.checklist input { flex: 0 0 18px; width: 18px; min-height: 18px; margin: 0; accent-color: var(--green); }
.checklist-note { padding: 10px 13px; margin-bottom: 5px; border-radius: 9px; background: #edf4fa; color: var(--muted); font-size: 11px; }
.check-copy { flex: 1; }
.check-copy strong, .check-copy small { display: block; }
.check-copy strong { color: var(--ink); font-size: 13px; }
.check-copy small { color: var(--muted); font-size: 11px; }
.check-progress, .check-status { color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.check-status.ok { color: #32704f; }
.check-status.warning { color: var(--amber); }
.profile-form { grid-template-columns: repeat(3, 1fr); }
.simple-profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.simple-profile-form label, .vehicle-profile-fields label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.simple-profile-form .form-actions { grid-column: 1 / -1; margin-top: 4px; }
.form-divider { grid-column: 1 / -1; margin-top: 8px; padding-top: 17px; border-top: 1px solid var(--line); }
.form-divider span { color: var(--green-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.profile-page-panel { width: 100%; }
.vehicle-profile-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 13px; }
.vehicle-profile .form-actions { margin-top: 22px; }
.vehicle-list { display: grid; gap: 9px; margin-bottom: 18px; }
.vehicle-card { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1fr) auto; align-items: center; gap: 16px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.vehicle-card.active { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.vehicle-card strong, .vehicle-card small { display: block; }
.vehicle-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.vehicle-card span { color: var(--ink); font-size: 12px; font-weight: 750; }
.vehicle-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.vehicle-tabs a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.vehicle-tabs a.active { border-color: var(--green); background: var(--green); color: white; }
.transaction-actions { display: flex; justify-content: flex-end; gap: 6px; }
.transaction-actions form { margin: 0; }
.receipt-edit-options { display: flex; align-items: center; gap: 18px; }
.receipt-edit-options label { display: flex; flex-direction: row; align-items: center; gap: 7px; }
.receipt-edit-options input { width: auto; min-height: auto; }
.report-export-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -8px 0 18px; }
.report-export-actions > span { margin-right: 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.report-builder-form { display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: end; gap: 14px; }
.report-builder-form label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.report-builder-help { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.accountant-package { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.accountant-package h2, .accountant-package p { margin: 2px 0; }
.vehicle-help { padding: 11px 14px; margin-bottom: 14px; border-radius: 9px; background: #edf4fa; color: #405a70; font-size: 11px; }
.vehicle-months input { min-width: 110px; margin: 0; }
.vehicle-months td { vertical-align: middle; }
.vehicle-months td small { color: var(--green-2); }
.month-total, .month-ratio { font-weight: 800; white-space: nowrap; }
.vehicle-save { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line); }
.vehicle-save span { color: var(--muted); font-size: 11px; }
.legal-note { padding: 18px 22px; margin-top: 22px; border: 1px solid #c8dbea; border-radius: 13px; background: #f1f7fb; color: #405a70; font-size: 12px; }
.legal-note p { margin: 4px 0 0; }

.flash-stack { position: fixed; top: 90px; right: 20px; z-index: 50; display: grid; gap: 8px; width: min(390px, calc(100vw - 40px)); }
.flash { padding: 13px 16px; border-radius: 11px; box-shadow: var(--shadow); background: white; border: 1px solid var(--line); font-size: 13px; font-weight: 650; animation: slide-in .25s ease-out; }
.flash-success { border-left: 5px solid #50a174; }
.flash-error { border-left: 5px solid var(--red); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

html[data-theme="dark"] .main-nav a { color: #bcc9d4; }
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active { background: #1b3447; color: var(--green-2); }
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .tax-lines dt,
html[data-theme="dark"] .tax-assumption,
html[data-theme="dark"] .vehicle-help,
html[data-theme="dark"] .legal-note { color: #b4c4d1; }
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .year-picker,
html[data-theme="dark"] .expense-preview { background: rgba(20, 40, 54, .84); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .logout-button { border-color: var(--line); color: var(--green-2); }
html[data-theme="dark"] .account-submenu a:hover,
html[data-theme="dark"] .account-submenu button:hover { background: #1b3447; }
html[data-theme="dark"] .step-number,
html[data-theme="dark"] .main-nav a.active { background: #1c3a50; }
html[data-theme="dark"] .compact-list > a,
html[data-theme="dark"] .transaction-mini-list > div,
html[data-theme="dark"] .report-list article,
html[data-theme="dark"] td,
html[data-theme="dark"] .amount-list > div,
html[data-theme="dark"] .tax-lines > div,
html[data-theme="dark"] .checklist label { border-color: var(--line); }
html[data-theme="dark"] input,
html[data-theme="dark"] select { background: #0d1b25; border-color: #385064; color: var(--ink); }
html[data-theme="dark"] input:disabled { background: #1b2b37; }
html[data-theme="dark"] .raw-text pre,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .filter-pills,
html[data-theme="dark"] .tax-assumption,
html[data-theme="dark"] .checklist-note,
html[data-theme="dark"] .vehicle-help,
html[data-theme="dark"] .legal-note,
html[data-theme="dark"] .form-guide-note,
html[data-theme="dark"] .form-subsection { background: #172d3d; }
html[data-theme="dark"] .form-line-list > div { border-color: var(--line); }
html[data-theme="dark"] .filter-pills a.active,
html[data-theme="dark"] .tax-card,
html[data-theme="dark"] .tax-result > div,
html[data-theme="dark"] .flash { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .file-icon,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .status-other { background: #4a2c2b; color: #ffc0b8; }
html[data-theme="dark"] .status-a_valider,
html[data-theme="dark"] .status-validation { background: #493c20; color: #f2cf82; }
html[data-theme="dark"] .status-importe,
html[data-theme="dark"] .status-uber_pro { background: #193d59; color: #9ed0f5; }
html[data-theme="dark"] .status-bank { background: #193b2d; color: #91d1ae; }
html[data-theme="dark"] .status-none { background: #263642; color: #b5c2cc; }
html[data-theme="dark"] .notice-warning { border-color: #806a32; background: #362f1c; color: #ead79f; }
html[data-theme="dark"] .landing-hero { border-color: var(--line); background: linear-gradient(135deg, #132c40 0%, #173d59 58%, #1e4c6c 100%); }
html[data-theme="dark"] .landing-copy > p,
html[data-theme="dark"] .landing-highlights { color: #bfd4e3; }
html[data-theme="dark"] .landing-preview,
html[data-theme="dark"] .preview-metrics > div,
html[data-theme="dark"] .preview-list { border-color: var(--line); background: var(--paper); }
html[data-theme="dark"] .preview-topbar,
html[data-theme="dark"] .preview-list > div { border-color: var(--line); }
html[data-theme="dark"] .preview-status,
html[data-theme="dark"] .preview-check,
html[data-theme="dark"] .feature-number { background: #173d59; color: #9ed0f5; }

@media (min-width: 1500px) {
  .header-inner { width: min(1580px, calc(100% - 40px)); position: relative; }
  .main-nav { position: absolute; right: calc((100% - 1180px) / 2); margin-left: 0; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 1150px) {
  .header-tools { margin-left: auto; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 70px; left: 15px; right: 15px; padding: 10px; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-dropdown { display: grid; }
  .nav-submenu { position: static; min-width: 0; margin: 4px 0 0 14px; padding: 3px; border: 0; border-left: 2px solid var(--mint); border-radius: 0; box-shadow: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 70px; left: 15px; right: 15px; padding: 10px; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-dropdown { display: grid; }
  .nav-submenu { position: static; min-width: 0; margin: 4px 0 0 14px; padding: 3px; border: 0; border-left: 2px solid var(--mint); border-radius: 0; box-shadow: none; }
  .vehicle-profile-fields { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .upload-panel { grid-template-columns: 1fr; }
  .review-fields, .entry-form { grid-template-columns: 1fr 1fr; }
  .simple-expense-form { grid-template-columns: 1fr 1fr; }
  .custom-tax-fields { grid-column: span 2; }
  .tax-columns { grid-template-columns: 1fr; }
  .form-guide-grid { grid-template-columns: 1fr; }
  .form-actions.wide { grid-column: span 2; }
  .mileage-form { grid-template-columns: 1fr 1fr; }
  .profile-block { grid-template-columns: 1fr 1fr; }
  .report-summary-grid { grid-template-columns: 1fr 1fr; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-preview { width: min(100%, 560px); transform: none; }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-feature { min-height: 0; }
  .feature-number { margin-bottom: 25px; }
  .landing-accountant { grid-template-columns: 1fr 240px; }
}

@media (max-width: 650px) {
  .header-inner { width: calc(100% - 24px); }
  .header-inner { gap: 9px; }
  .header-tools { gap: 7px; }
  .account-menu-toggle { width: 42px; padding: 8px; justify-content: center; }
  .account-menu-toggle .account-email { display: none; }
  .account-menu-toggle::before { content: "@"; font-size: 14px; font-weight: 800; }
  .page-shell { width: min(100% - 24px, 1180px); padding-top: 24px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 30px 23px; }
  .hero .year-picker { justify-self: start; grid-row: 1; }
  .metric-grid, .metric-grid-three, .step-grid, .two-column, .report-summary-grid, .mileage-summary { grid-template-columns: 1fr; }
  .tax-result { grid-template-columns: 1fr; }
  .page-heading { flex-direction: column; }
  .page-heading .year-picker { order: -1; }
  .year-picker { width: 100%; }
  .year-picker label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .year-picker select { min-width: 0; flex: 1 1 auto; }
  .report-list article { grid-template-columns: auto 1fr; }
  .report-list .status, .report-list .row-actions { grid-column: 2; justify-self: start; }
  .review-fields, .entry-form, .profile-form { grid-template-columns: 1fr; }
  .simple-expense-form { grid-template-columns: 1fr; }
  .simple-expense-form .wide, .custom-tax-fields { grid-column: auto; }
  .custom-tax-fields { grid-template-columns: 1fr; }
  .entry-form .wide, .form-actions.wide { grid-column: auto; }
  .mileage-form { grid-template-columns: 1fr; }
  .profile-block { grid-template-columns: 1fr; }
  .simple-profile-form, .vehicle-profile-fields { grid-template-columns: 1fr; }
  .vehicle-card { grid-template-columns: 1fr; align-items: start; }
  .vehicle-card .button { justify-self: start; }
  .vehicle-save { align-items: stretch; flex-direction: column; }
  .profile-block div { border-top: 1px solid var(--line); }
  .mileage-summary div, .mileage-summary div:first-child { border-left: 0; border-top: 1px solid var(--line); }
  .mileage-summary div:first-child { border-top: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .form-guide-heading { flex-direction: column; }
  .document-controls { width: 100%; justify-content: flex-start; }
  .filter-pills { max-width: 100%; overflow-x: auto; }
  .report-builder-form { grid-template-columns: 1fr; }
  .accountant-package { align-items: flex-start; flex-direction: column; }
  .report-export-actions { justify-content: flex-start; flex-wrap: wrap; }
  .brand small { display: none; }
  .public-header-actions .button-secondary { display: none; }
  .landing-hero { min-height: 0; padding: 38px 23px; border-radius: 22px; }
  .landing-copy h1 { font-size: clamp(45px, 14vw, 62px); }
  .landing-actions { align-items: stretch; flex-direction: column; }
  .landing-actions .button { width: 100%; }
  .landing-highlights { align-items: flex-start; flex-direction: column; }
  .landing-preview { padding: 13px; }
  .preview-metrics { grid-template-columns: 1fr; }
  .preview-metrics > div { min-height: 0; }
  .preview-metrics span { margin-bottom: 5px; }
  .landing-section { padding: 65px 0 60px; }
  .landing-accountant { grid-template-columns: 1fr; padding: 38px 24px; border-radius: 22px; }
  .accountant-sheet { width: min(100%, 300px); transform: none; }
  .landing-final-cta { margin-top: 65px; }
}

@media print {
  @page { size: letter; margin: 14mm; }
  html[data-theme="dark"] { --ink: #111; --muted: #555; --cream: white; --paper: white; --line: #ccc; color-scheme: light; }
  body { background: white; color: #111; font-size: 10pt; }
  .no-print, .site-header, .site-footer { display: none !important; }
  .page-shell { width: 100%; padding: 0; }
  .page-heading { margin-top: 0; }
  .page-heading h1 { font-size: 28pt; }
  .panel, .report-summary-grid article, .profile-block { box-shadow: none; break-inside: avoid; }
  .report-columns { grid-template-columns: 1fr 1fr; }
  .checklist input { appearance: none; border: 1px solid #777; }
  .legal-note { break-inside: avoid; }
}
