html[data-theme="dark"]{
  color-scheme:dark;
  --white:#1c2027;
  --ink:#f3f5f7;
  --muted:#aeb5c0;
  --soft:#292e37;
  --line:#3a414c;
  --disabled:#606772;
  --shadow-modal:0 24px 80px #0008;
}
html[data-theme="dark"] body{background:#111318;color:var(--ink)}
html[data-theme="dark"] .eyebrow{color:#ff6873}
html[data-theme="dark"] .card{border-color:var(--line);background:var(--white);box-shadow:0 8px 30px #0002}
html[data-theme="dark"] .text-link{color:#d1d6de;text-decoration-color:#777f8b}
html[data-theme="dark"] .text-link:hover{color:#ff6974;text-decoration-color:#ff6974}
html[data-theme="dark"] .button:not(.button--secondary):not(.button--quiet),
html[data-theme="dark"] .avatar,
html[data-theme="dark"] .timeline li.done .timeline-marker,
html[data-theme="dark"] .consent input:checked+.check-box,
html[data-theme="dark"] .date-shortcuts button[aria-pressed="true"],
html[data-theme="dark"] .calendar-days button[aria-pressed="true"]{color:#fff}
html[data-theme="dark"] .button--secondary,
html[data-theme="dark"] .button--quiet{border-color:#69727e;background:#252b34;color:#f3f5f7}
html[data-theme="dark"] .button--secondary:hover,
html[data-theme="dark"] .button--quiet:hover{border-color:#ff5e6a;background:#303641;color:#fff}
html[data-theme="dark"] .button:disabled{color:#d5d8de}
html[data-theme="dark"] .icon-box,
html[data-theme="dark"] .status-badge,
html[data-theme="dark"] .icon-button{background:#42282e;color:#ff737d}
html[data-theme="dark"] .status-badge{color:#ff737d}
html[data-theme="dark"] .icon-button:hover{background:#5a3037}
html[data-theme="dark"] .manager-photo{background:#323943;color:#fff}
html[data-theme="dark"] .quick-action{background:var(--white);color:var(--ink)}
html[data-theme="dark"] .quick-action:hover{border-color:#ff626d}
html[data-theme="dark"] .quick-action:nth-child(2){background:#302329;border-color:#6b343d}
html[data-theme="dark"] .quick-action .icon-box{background:#292e37;color:#fff}
html[data-theme="dark"] .quick-action:nth-child(2) .icon-box{background:#d80c1e}
html[data-theme="dark"] .service-card{background:var(--white)}
html[data-theme="dark"] .home-activity{border-color:var(--line);background:var(--white)}
html[data-theme="dark"] .home-focus{border:1px solid var(--line);background:#21262e}
html[data-theme="dark"] .auto-card{border:1px solid var(--line);background:#1c2027}
@media(hover:hover){html[data-theme="dark"] .home-activity-item:hover{background:#282d36}}
html[data-theme="dark"] .home-activity-arrow{color:#aeb5c0}
html[data-theme="dark"] .page-intro-note,
html[data-theme="dark"] .section-head p{color:var(--muted)}
html[data-theme="dark"] .profile-identity .avatar{color:#fff}
html[data-theme="dark"] .profile-count{color:#ff6974}
html[data-theme="dark"] .request-public-note,
html[data-theme="dark"] .request-events{color:#c2c8d0}
html[data-theme="dark"] .request-status[data-status="scheduled"]{background:#173c2c;color:#7be0ad}
html[data-theme="dark"] .request-status[data-status="cancelled"]{background:#47252b;color:#ff9099}
html[data-theme="dark"] .appointment-confirmed{color:#7be0ad!important}
html[data-theme="dark"] .service-history-entry{border-color:var(--line)}
html[data-theme="dark"] .service-history-heading span{color:var(--muted)}
html[data-theme="dark"] .plate{border-color:var(--line)}
html[data-theme="dark"] .vehicle-image{background:#282d35}
html[data-theme="dark"] .vehicle-image::after{border-color:var(--line)}

html[data-theme="dark"] .journey-card,
html[data-theme="dark"] .completed-orders{border-color:var(--line);background:var(--white);box-shadow:0 12px 30px #0003}
html[data-theme="dark"] .journey-steps li{border-color:#4a515d}
html[data-theme="dark"] .journey-steps li span,
html[data-theme="dark"] .journey-steps strong{color:#afb6c1}
html[data-theme="dark"] .journey-steps .passed{border-color:#acb2bd}
html[data-theme="dark"] .journey-steps .passed strong{color:#e1e4e9}
html[data-theme="dark"] .journey-steps .is-current{border-color:#f34552}
html[data-theme="dark"] .journey-steps .is-current strong,
html[data-theme="dark"] .journey-steps .is-current span{color:#ff7882}
html[data-theme="dark"] .manager-update,
html[data-theme="dark"] .arrival-card,
html[data-theme="dark"] .finance-grid>div{border-color:var(--line);background:#22272f}
html[data-theme="dark"] .arrival-card{background:#2a3039}
html[data-theme="dark"] .manager-update small,
html[data-theme="dark"] .arrival-card p:not(.eyebrow),
html[data-theme="dark"] .finance-title>p:not(.eyebrow),
html[data-theme="dark"] .finance-grid span,
html[data-theme="dark"] .order-specs dt,
html[data-theme="dark"] .vehicle-full dt,
html[data-theme="dark"] .order-history time,
html[data-theme="dark"] .order-history>p,
html[data-theme="dark"] .journey-compact-footer{color:var(--muted)}
html[data-theme="dark"] .finance-grid .finance-balance{background:#40252d;border-color:#713741}
html[data-theme="dark"] .finance-balance strong{color:#ff7d87}
html[data-theme="dark"] .order-specs,
html[data-theme="dark"] .order-history,
html[data-theme="dark"] .order-history li{border-color:var(--line)}
html[data-theme="dark"] .order-specs summary span,
html[data-theme="dark"] .order-history summary span{color:#abb2bd}

html[data-theme="dark"] label{color:var(--ink)}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{border-color:var(--line);background:#242a33;color:var(--ink)}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#a6aeb9}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{border-color:#ff6974;box-shadow:0 0 0 3px #e3061326}
html[data-theme="dark"] .date-shortcuts button,
html[data-theme="dark"] .calendar-header button,
html[data-theme="dark"] .calendar-days button{border-color:var(--line);background:#292f38;color:var(--ink)}
html[data-theme="dark"] .calendar-days button:disabled,
html[data-theme="dark"] .calendar-header button:disabled{background:transparent;color:#868f9b}
html[data-theme="dark"] .date-shortcuts button[aria-pressed="true"],
html[data-theme="dark"] .calendar-days button[aria-pressed="true"]{border-color:var(--red);background:var(--red)}
html[data-theme="dark"] .modal-dialog,
html[data-theme="dark"] .more-sheet,
html[data-theme="dark"] .password-dialog,
html[data-theme="dark"] .cabinet-confirm{border-color:var(--line);background:#1c2027;color:var(--ink)}
html[data-theme="dark"] .consent a{color:#f0f1f3}
html[data-theme="dark"] .check-box{border-color:#777f8b;background:#242a33}
html[data-theme="dark"] .dialog-actions [data-cancel]{background:#353c46;color:#f3f5f7}
html[data-theme="dark"] .notice{border-color:#704049;border-left-color:#ff6974;background:#37252b;color:#ffc3c8}
html[data-theme="dark"] .notice.success{border-color:#38644f;border-left-color:#6bd59c;background:#203b2d;color:#b8f3cf}
html[data-theme="dark"] input.file-picker{border-color:#6d7683;background:#262c35}
html[data-theme="dark"] .file-selection,
html[data-theme="dark"] .photo-upload-progress,
html[data-theme="dark"] .photo-position{color:var(--muted)}

html[data-theme="dark"] .sale-status{border-color:var(--line);background:#303640}
html[data-theme="dark"] .sale-price small,
html[data-theme="dark"] .sale-metrics span,
html[data-theme="dark"] .sale-metrics small,
html[data-theme="dark"] .sale-chart-caption span,
html[data-theme="dark"] .sale-chart-day time,
html[data-theme="dark"] .sale-chart-empty p,
html[data-theme="dark"] .sale-caveat,
html[data-theme="dark"] .sale-sync,
html[data-theme="dark"] .sale-event time,
html[data-theme="dark"] .sale-source-time{color:var(--muted)}
html[data-theme="dark"] .sale-period button{border-color:var(--line);background:#242a33;color:var(--ink)}
html[data-theme="dark"] .sale-period button[aria-pressed="true"]{border-color:#ff6974;background:#5b2933;color:#fff}
html[data-theme="dark"] .sale-metrics>div,
html[data-theme="dark"] .sale-chart,
html[data-theme="dark"] .sale-sync,
html[data-theme="dark"] .sale-event,
html[data-theme="dark"] .sale-table td,
html[data-theme="dark"] .sale-table th{border-color:var(--line)}
html[data-theme="dark"] .sale-chart-empty{border-color:#68717d}
html[data-theme="dark"] .sale-select select{border-color:var(--line);background:#242a33;color:var(--ink)}

html[data-theme="dark"] .garage-dialog{background:#1c2027;color:var(--ink)}
html[data-theme="dark"] .garage-close{background:#303741;color:#fff}
html[data-theme="dark"] .garage-gallery figcaption{color:var(--muted)}
html[data-theme="dark"] .garage-dialog.vehicle-sheet{background:#111318}
html[data-theme="dark"] .vehicle-sheet .garage-close{background:#303741;color:#fff}
html[data-theme="dark"] .vehicle-sheet-content>section{border-color:var(--line);background:#1c2027}
html[data-theme="dark"] .vehicle-life time{color:var(--muted)}
html[data-theme="dark"] .document-viewer{background:#111318;color:var(--ink)}
html[data-theme="dark"] .document-viewer header{border-color:var(--line);background:#1c2027}
html[data-theme="dark"] .document-fallback,
html[data-theme="dark"] .pdf-text{color:var(--muted)}
html[data-theme="dark"] .pdf-controls{background:#1c2027}
html[data-theme="dark"] .pdf-controls button{border-color:var(--line);background:#303741;color:var(--ink)}
html[data-theme="dark"] .pdf-paper{background:#111318}

html[data-theme="dark"] .auth-screen{background:radial-gradient(circle at 15% 10%,#252b35 0,#171b22 42%,#0e1116 100%)}
html[data-theme="dark"] .auth-shell{border-color:#3b424c;background:#1c2027;box-shadow:0 30px 100px #0009}
html[data-theme="dark"] .auth-form-panel{background:#1c2027}
html[data-theme="dark"] .auth-form-panel .logo-frame{border-radius:9px;background:#f8f8f9}
html[data-theme="dark"] .auth-form input,
html[data-theme="dark"] .otp-code-cell{border-color:var(--line);background:#262c35;color:var(--ink)}
html[data-theme="dark"] .otp-code-cell.is-filled{background:#303640}
html[data-theme="dark"] .otp-code-grid.is-success .otp-code-cell{background:#493038}
html[data-theme="dark"] .auth-status,
html[data-theme="dark"] .auth-security-note{color:var(--muted)}
html[data-theme="dark"] .auth-security-note .icon{color:#d9dde3}
html[data-theme="dark"] .auth-password-toggle{color:#c6ccd5}
html[data-theme="dark"] .auth-password-toggle:hover{background:#303741;color:#fff}
html[data-theme="dark"] .auth-visual,
html[data-theme="dark"] .auth-visual h1{color:#fff}

@media(max-width:860px){
  html[data-theme="dark"] .site-header{border-color:var(--line);background:#1c2027}
  html[data-theme="dark"] .site-header .logo-frame{border-radius:8px;background:#f8f8f9}
  html[data-theme="dark"] .mobile-nav{border-color:#3a414c;background:#1d2025}
}
@media(max-width:760px){html[data-theme="dark"] .auth-screen{background:#111318}}
@media(prefers-reduced-motion:no-preference){
  body,.card,.auth-form-panel,.journey-card,.home-activity,.modal-dialog,.theme-toggle{transition:background-color .25s ease,color .25s ease,border-color .25s ease}
}
