/* Revision 05 — a complete dark palette, with the supplied product pixels and logos untouched. */
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{
  color-scheme:dark;
  --blue:#8ec9ff;
  --text:#edf3fb;
  --muted:#a5b5c9;
  --line:#303c52;
  --pale:#141b2b;
  --white:#191f30;
  --theme-page:#0f1321;
  --theme-surface:#191f30;
  --theme-raised:#202b3f;
}
html[data-theme="dark"] body{background:var(--theme-page);color:var(--text)}
html[data-theme="dark"] ::selection{background:#35557b;color:#fff}
html[data-theme="dark"] :focus-visible{outline-color:#8ec9ff}
html[data-theme="dark"] h2{color:#edf3fb}
html[data-theme="dark"] .skip-link{background:#eaf4fc;color:#0b1b2d}
html[data-theme="dark"] .text-link:hover{color:#fff}
html[data-theme="dark"] .button-orange{color:#00213e}
html[data-theme="dark"] .button-orange:hover{background:#ff8951;box-shadow:0 5px 20px #ff671f26}
html[data-theme="dark"] .button-quiet{color:#edf3fb}
html[data-theme="dark"] .button-quiet:hover{background:#243248}
html[data-theme="dark"] .button-border{background:#192b41;border-color:#425a76;color:#d7eafd}
html[data-theme="dark"] .button-border:hover{background:#243b54}
html[data-theme="dark"] .pill.blue{background:#203650;color:#a5d7ff}

/* The exact brand artwork remains on a quiet white plate; no logo recolouring. */
html[data-theme="dark"] .brand{background:#fff;border-radius:7px;padding:8px 10px}
html[data-theme="dark"] .contact-brand img{background:#fff;mix-blend-mode:normal;border-radius:5px;padding:4px 6px}
html[data-theme="dark"] .site-header{background:#101522f5;border-bottom-color:#2c394e}
html[data-theme="dark"] .site-header.has-scrolled{box-shadow:0 5px 26px #00000026}
html[data-theme="dark"] .main-nav>a{color:#bbcadc}
html[data-theme="dark"] .main-nav>a:hover{color:#a9d8ff}
html[data-theme="dark"] .menu-toggle span{background:#d5e7f7}
html[data-theme="dark"] .hero{background:radial-gradient(ellipse at 76% 42%,#18314b55,transparent 65%),#111827}
html[data-theme="dark"] .hero h1{color:#f1f6fc}
html[data-theme="dark"] .hero h1>span{color:#8ec9ff}
html[data-theme="dark"] .hero-checks{color:#b3c3d7}
html[data-theme="dark"] .motion-art{color:#82b6e4;--paper-fill:#152338}

/* Four-step process: the native diagram receives its own dark surfaces and data contrast. */
html[data-theme="dark"] .accounting-process{background:#0f1321}
html[data-theme="dark"] .process-steps::before{background:#3d4b60}
html[data-theme="dark"] .process-step-number{background:#0f1321;border-color:#526780;color:#b1c8dd}
html[data-theme="dark"] .process-step h3{color:#edf3fb}
html[data-theme="dark"] .process-step>p{color:#aabbd0}
html[data-theme="dark"] .process-step.is-current h3{color:#a0d3fc}
html[data-theme="dark"] .process-step.is-current .process-step-number{background:#ff671f;border-color:#ff671f;color:#00213e;box-shadow:0 0 0 7px #ff671f14}
html[data-theme="dark"] .process-step.is-complete .process-step-number{background:#192e45;border-color:#527a9c;color:#b0dcff}
html[data-theme="dark"] .process-running .process-benefit{opacity:calc(.7 + var(--process-reveal,1)*.3)}
html[data-theme="dark"] .process-stage-backdrop{background:radial-gradient(ellipse at 54% 50%,#2847645c 0%,#16243833 47%,transparent 73%)}
html[data-theme="dark"] .process-orbit{border-color:#6487a33b}
html[data-theme="dark"] .process-orbit::before{border-color:#6085a440}
html[data-theme="dark"] .process-orbit::after{border-color:#362a26;background:#eab28d}
html[data-theme="dark"] .process-ghost-sheet{fill:#172131;stroke:#688099;opacity:.5}
html[data-theme="dark"] .process-ghost-ledger{fill:#172131;stroke:#688099;opacity:.5}
html[data-theme="dark"] .process-workbench{background:#191f30;border-color:#3c4d66;box-shadow:0 28px 70px #00000038,0 3px 10px #00000018}
html[data-theme="dark"] .process-browserbar{background:#141b2b;border-color:#34435a}
html[data-theme="dark"] .process-browserbar strong{color:#deebf7}
html[data-theme="dark"] .process-browserbar>span{color:#a9bdd0}
html[data-theme="dark"] .process-location{color:#9eb4c9}
html[data-theme="dark"] .process-location>span:first-child{color:#bedcf2}
html[data-theme="dark"] .process-location>i{background:#7794ae}
html[data-theme="dark"] .process-screen h3{color:#f0f6fc}
html[data-theme="dark"] .process-screen-subtitle{color:#adbed2}
html[data-theme="dark"] .process-select-row{background:#141b2b;border-color:#34465e}
html[data-theme="dark"] .process-select-icon{background:#243852;color:#a1d4fc}
html[data-theme="dark"] .process-select-row small{color:#a6bacd}
html[data-theme="dark"] .process-select-row strong{color:#deedf9}
html[data-theme="dark"] .process-select-row>b{background:#183b32;color:#a2e0c7}
html[data-theme="dark"] .process-screen-note{color:#adc1d5}
html[data-theme="dark"] .process-screen-tag{background:#223651;border-color:#456380;color:#b0dbff}
html[data-theme="dark"] .process-document-head{color:#b0c7dc}
html[data-theme="dark"] .process-document-head strong{color:#d7eafb}
html[data-theme="dark"] .process-document-table{border-color:#3b4c63}
html[data-theme="dark"] .process-document-table>div>b{color:#d9eafd}
html[data-theme="dark"] .process-document-table .process-table-label{background:#151d2c;color:#a6bdd2;border-color:#334359}
html[data-theme="dark"] .process-document-table .process-table-label>b{color:#a6bdd2}
html[data-theme="dark"] .process-document-total{background:#20314a}
html[data-theme="dark"] .process-document-total>span{color:#c0d7eb}
html[data-theme="dark"] .process-document-total>strong{color:#a1d4ff}
html[data-theme="dark"] .process-donut circle{stroke:#29364b}
html[data-theme="dark"] .process-donut .process-donut-balance{stroke:#ffb284}
html[data-theme="dark"] .process-donut .process-donut-paid{stroke:#7bc5f4}
html[data-theme="dark"] .process-donut>div{color:#acbfd2}
html[data-theme="dark"] .process-donut strong{color:#e2effb}
html[data-theme="dark"] .process-money-rows>div{border-color:#3b4c63}
html[data-theme="dark"] .process-money-rows>div>span{color:#bacddf}
html[data-theme="dark"] .process-money-rows i{background:#7bc5f4}
html[data-theme="dark"] .process-money-rows b{color:#d2ebff}
html[data-theme="dark"] .process-money-rows>div:last-child b{color:#ffc19a}
html[data-theme="dark"] .process-account-note{border-color:#3b4c63;color:#adbed2}
html[data-theme="dark"] .process-account-note>svg{stroke:#9fc9e9}
html[data-theme="dark"] .process-account-note>strong{color:#c2dcee}
html[data-theme="dark"] .process-report-filter{color:#b0c6da}
html[data-theme="dark"] .process-report-filter svg{stroke:#a0c6e4}
html[data-theme="dark"] .process-report-row>div{color:#b4cadd}
html[data-theme="dark"] .process-report-row b{color:#e0effb}
html[data-theme="dark"] .process-report-row>span{background:#2b3a50}
html[data-theme="dark"] .process-report-row i{background:#7ab9e5}
html[data-theme="dark"] .process-report-row:nth-child(2) i{background:#b1d6ee}
html[data-theme="dark"] .process-report-row:last-child i{background:#ffb284}
html[data-theme="dark"] .process-report-tools{color:#bed4e6}
html[data-theme="dark"] .process-report-tools>span{background:#1c2c42;border-color:#425b75}
html[data-theme="dark"] .process-statusbar{background:#131b2a;border-color:#3b4b62}
html[data-theme="dark"] .process-statusbar>b{background:#43546b}
html[data-theme="dark"] .process-status-item{color:#a8bed2}
html[data-theme="dark"] .process-status-item>i{border-color:#536c85}
html[data-theme="dark"] .process-status-item.is-active{color:#b0dcff}
html[data-theme="dark"] .process-status-item.is-active>i{background:#4a2b1e;border-color:#b57149;color:#ffd2b6}
html[data-theme="dark"] .process-status-item.is-done{color:#bedcf2}
html[data-theme="dark"] .process-status-item.is-done>i{background:#203650;border-color:#527c9e}
html[data-theme="dark"] .process-caption{color:#a0b6cb}
html[data-theme="dark"] .process-caption i{border-color:#9bb7cf}
html[data-theme="dark"] .process-caption .process-step-count{color:#b0d7f4}
html[data-theme="dark"] .process-inline{background:#171f30;border-color:#3b4e65}
html[data-theme="dark"] .process-inline-row{color:#b0c5d9}
html[data-theme="dark"] .process-inline-row>strong{color:#d9edff}
html[data-theme="dark"] .process-inline-row+.process-inline-row{border-color:#35485e}
html[data-theme="dark"] .process-inline-document{background:#251f21;border-left-color:#f2a978}
html[data-theme="dark"] .process-inline-document .process-inline-row>strong{color:#ffd0af}
html[data-theme="dark"] .process-inline-pill{color:#a8ddc4}
html[data-theme="dark"] .process-inline-track{background:#30425a}
html[data-theme="dark"] .process-inline-track>i{background:#8cc2ea}
html[data-theme="dark"] .process-inline-track>i+i{background:#ffba8b}
html[data-theme="dark"] .process-inline-report>div:last-child{color:#aabfd2}
html[data-theme="dark"] .process-inline-report strong{color:#d5eafb}
html[data-theme="dark"] .process-mobile-caption{color:#a0b5ca}

/* The physical invoice stays white; the related account and report adopt the interface theme. */
html[data-theme="dark"] .accounting-journey{background:#0c1726}
html[data-theme="dark"] .journey-heading .eyebrow{color:#b8d5ec}
html[data-theme="dark"] .journey-heading>p{color:#b8ccde}
html[data-theme="dark"] .journey-board-label{color:#a4bfd5}
html[data-theme="dark"] .journey-paper-fold{background:linear-gradient(45deg,#e4edf4 49%,#0c1726 50%)}
html[data-theme="dark"] .journey-ledger{background:#182335;border-color:#4c657e;color:#e4eff8}
html[data-theme="dark"] .journey-ledger-header{border-color:#3b4e65}
html[data-theme="dark"] .journey-card-icon{background:#233b56;color:#b2ddff}
html[data-theme="dark"] .journey-ledger-header small{color:#b4cbdc}
html[data-theme="dark"] .journey-ledger-dots{color:#a5bfd3}
html[data-theme="dark"] .journey-ledger-table-label{color:#b0c7da}
html[data-theme="dark"] .journey-ledger-row{border-color:#3b4e65}
html[data-theme="dark"] .journey-ledger-row-highlight{color:#b2ddff}
html[data-theme="dark"] .journey-ledger-foot{color:#b0c8da}
html[data-theme="dark"] .journey-ledger-foot>svg{stroke:#9bd7b4}
html[data-theme="dark"] .journey-report{background:#192337;border-color:#506078;color:#e4eff8}
html[data-theme="dark"] .journey-report-top{color:#b8cede}
html[data-theme="dark"] .journey-report-total strong{color:#a4d7ff}
html[data-theme="dark"] .journey-report-total>span{background:#3e2c26;color:#ffcfaf}
html[data-theme="dark"] .journey-chart-grid{stroke:#40536a}
html[data-theme="dark"] .journey-report-bars rect{fill:#557d9d}
html[data-theme="dark"] .journey-report-bars rect:last-child{fill:#ffb284}
html[data-theme="dark"] .journey-chart-line{stroke:#9ad4ff}
html[data-theme="dark"] .journey-chart-end{stroke:#192337}
html[data-theme="dark"] .journey-report-axis{color:#b4c7da}
html[data-theme="dark"] .journey-object-caption{color:#c0d5e6}
html[data-theme="dark"] .journey-record-thread{color:#a8c3d9}
html[data-theme="dark"] .journey-record-thread>span:first-child{border-color:#52728e}
html[data-theme="dark"] .journey-chapters>li{border-color:#425d76}
html[data-theme="dark"] .journey-chapters p{color:#adc4d8}
html[data-theme="dark"] .journey-bottom>span{color:#a4bed3}

/* Sales, FAQ and contact sections share the same elevated surfaces. */
html[data-theme="dark"] .package-card{background:#191f30;border-color:#3d4e66;border-top-color:#609dcb;box-shadow:0 18px 44px #0000001f}
html[data-theme="dark"] .package-note>.icon{background:#193b32;color:#a5dbc5}
html[data-theme="dark"] .package-disclaimer{color:#a4b7ca}
html[data-theme="dark"] .faq-section{background:#141b2b;border-color:#303e53}
html[data-theme="dark"] .faq-list summary{color:#e5eef8}
html[data-theme="dark"] .faq-list summary:hover{color:#b7dfff}
html[data-theme="dark"] .contact-form{background:#161e2e;border-color:#3b4b63;box-shadow:0 18px 44px #0000001a}
html[data-theme="dark"] .contact-form label{color:#d3e1ee}
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea{background:#0e1624;border-color:#46566e;color:#e9f2fb}
html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder{color:#a1b2c5}
html[data-theme="dark"] .contact-form input:hover,
html[data-theme="dark"] .contact-form select:hover,
html[data-theme="dark"] .contact-form textarea:hover{border-color:#7293b2}
html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form select:focus,
html[data-theme="dark"] .contact-form textarea:focus{border-color:#8ec9ff}
html[data-theme="dark"] .contact-form select option{background:#141b2b;color:#e9f2fb}
html[data-theme="dark"] .message-label>span{color:#a8bace}
html[data-theme="dark"] .contact-form .form-note{color:#a5b8ce}
html[data-theme="dark"] .contact-brand{color:#acbfd1}
html[data-theme="dark"] .site-footer{background:#0c111d;border-color:#344259}
html[data-theme="dark"] .footer-top>div,
html[data-theme="dark"] .footer-top button{color:#beccde}
html[data-theme="dark"] .footer-top>div>a:hover,
html[data-theme="dark"] .footer-top button:hover{color:#fff}
html[data-theme="dark"] .footer-bottom{color:#a4b7cc;border-color:#303d52}
html[data-theme="dark"] .motion-toggle:disabled{color:#9fb3c9}

/* Native dialogs and form affordances remain readable in the selected theme. */
html[data-theme="dark"] .dialog{background:#192133;border-color:#4a5e77;color:#edf3fb;box-shadow:0 22px 100px #00000080}
html[data-theme="dark"] .dialog::backdrop{background:#030810c2}
html[data-theme="dark"] .dialog-close{background:#2b3c52;color:#e9f2fb}
html[data-theme="dark"] .dialog-symbol{background:#263e5b;color:#b3dcff}
html[data-theme="dark"] .dialog pre{background:#101827;border-color:#40546c;color:#d5e5f3}

@media(max-width:760px){
  html[data-theme="dark"] .main-nav{background:#141b2b;border-color:#35465c;box-shadow:0 14px 25px #00000033}
  html[data-theme="dark"] .main-nav>a{border-bottom-color:#34445b}
}
