/* Approved component choices, 2026-10-01: fields B, buttons B, tabs B,
   cards B, tables A, sidebar A. Loaded last in app and access templates. */
html[data-theme="light"]{
  --wm-component-field:#f8f4eb;
  --wm-component-field-border:#b7afa1;
  --wm-component-field-shadow:0 1px 3px rgba(56,46,33,.04);
  --wm-component-card:var(--wmp-workspace,#f6f1e8);
  --wm-component-border:#c6bdaf;
  --wm-component-line:#d9d3c9;
  --wm-component-button-shadow:0 4px 10px rgba(87,46,34,.1);
  --wmp-control-bg:var(--wm-component-field);
  --wmp-control-bg-hover:#fcf8f0;
  --wmp-control-border:var(--wm-component-field-border);
  --wmp-control-border-hover:#958b7d;
  --wmp-control-radius:5px;
  --wmp-control-shadow:var(--wm-component-field-shadow);
  --wmp-border:var(--wm-component-line);
  --wmp-border-strong:var(--wm-component-border);
  --wmp-line:rgba(83,70,52,.14);
  --wmp-surface:rgba(246,241,232,.97);
  --wmp-surface-2:#eee8de;
  --wmp-surface-solid:#f8f4ed;
  --wmp-shadow-panel:none;
  --wmp-shadow-soft:none;
  --wm-ui-border:var(--wm-component-border);
  --wm-ui-shadow:none;
}
html[data-theme="light"] body.product-private:not(.auth-page){
  --wm-private-panel:rgba(246,241,232,.97);
  --wm-ui-border:var(--wm-component-border);
  --wm-ui-shadow:none;
}

/* Vehicle image actions use the shared soft buttons, without glass layers.
   Opaque controls also stay on their own face during a vehicle-card turn. */
.wm-vehicle-image-actions{
  position:absolute;
  inset:auto 14px 14px;
  z-index:8;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
}
.wm-vehicle-image-actions>.vehicle-image-change-link,
.wm-vehicle-image-actions>.vehicle-image-rights{position:relative;inset:auto;flex:0 0 auto;max-width:100%}
.wm-vd-cover__image-tools>.wm-vehicle-image-actions{position:static}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vehicle-image-control.wm-btn{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:auto!important;
  min-height:44px!important;
  padding:9px 12px!important;
  color:var(--wmp-text)!important;
  -webkit-text-fill-color:var(--wmp-text)!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.3!important;
  letter-spacing:0!important;
  white-space:nowrap;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.vehicle-image-rights>summary.wm-vehicle-image-control::before{content:none!important}
.vehicle-image-rights .vehicle-image-rights__panel{
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* B: warm fields, visible contour, small radius and minimal elevation.
   Exclude controls whose native shape communicates a different interaction. */
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea),
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea){
  background:var(--wm-component-field)!important;
  border:1px solid var(--wm-component-field-border)!important;
  border-radius:5px!important;
  box-shadow:var(--wm-component-field-shadow)!important;
  color:var(--wmp-text,#1c2939)!important;
  -webkit-text-fill-color:var(--wmp-text,#1c2939)!important;
}

/* Extraction hints describe an unread value; they do not make it required. */
html[data-theme="light"][data-accent] body.product-private:not(.auth-page) .mp-main.mp-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea)[data-extraction-missing="true"]{
  border-color:#ac473d!important;
  background:#fbefe8!important;
  box-shadow:0 0 0 1px rgba(172,71,61,.14)!important;
}
html[data-theme="light"][data-accent] body.product-private:not(.auth-page) .mp-main.mp-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea)[data-extraction-missing="true"]:focus-visible{
  box-shadow:0 0 0 3px rgba(172,71,61,.18)!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-extraction-missing-hint{
  display:block;
  margin:0;
  color:#943b32!important;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea):focus-visible,
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea):focus-visible{
  border-color:var(--wmp-accent,#785515)!important;
  outline:0!important;
  box-shadow:0 0 0 3px rgba(var(--wmp-accent-rgb,120,85,21),.17)!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea):is(:disabled,[readonly]),
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea):is(:disabled,[readonly]){
  background:#e8e2d8!important;
  color:#62676b!important;
  -webkit-text-fill-color:#62676b!important;
  box-shadow:none!important;
  opacity:1;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea):is([aria-invalid="true"],:user-invalid),
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.field,.flow-field,.feedback-field):has(.errorlist:not([hidden]):not(:empty)) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea),
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea):is([aria-invalid="true"],:user-invalid),
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-form>div:has(.errorlist:not([hidden]):not(:empty)) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea){
  border-color:#b13f35!important;
  background:#fcf1e9!important;
}
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):is(:autofill,:-webkit-autofill){
  -webkit-text-fill-color:#1c2939!important;
  box-shadow:0 0 0 1000px var(--wm-component-field) inset,var(--wm-component-field-shadow)!important;
}
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):is(:autofill,:-webkit-autofill):focus-visible{
  box-shadow:0 0 0 1000px var(--wm-component-field) inset,0 0 0 3px rgba(var(--wmp-accent-rgb,120,85,21),.17)!important;
}

/* B: softer buttons. Existing primary, danger and toggled colors keep meaning. */
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.btn,.button,.wm-btn,.wm-vd-action,.wm-source-button,.quick-choice,.wm-control--primary),
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-card .wm-access-submit,
html[data-theme="light"] body.wm-public-landing .wm-btn{
  border-radius:11px!important;
  box-shadow:var(--wm-component-button-shadow)!important;
  text-shadow:none!important;
  min-height:44px;
  transition:background-color 140ms,box-shadow 140ms;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.btn,.button,.wm-btn,.wm-vd-action,.wm-source-button):where(:not(.primary):not(.is-primary):not(.wm-btn--primary):not(.wm-vd-action--primary):not(.wm-source-primary):not(.danger):not(.wm-btn--danger):not(.wm-vd-action--danger):not([aria-pressed="true"]):not(:disabled):not([aria-disabled="true"]):not([aria-selected="true"]):not([aria-current])),
html[data-theme="light"] body.wm-public-landing .wm-btn:where(:not(.primary):not(.is-primary):not(.wm-btn--primary):not(.wm-vd-action--primary):not(.wm-source-primary):not(.danger):not(.wm-btn--danger):not(.wm-vd-action--danger):not([aria-pressed="true"]):not(:disabled):not([aria-disabled="true"]):not([aria-selected="true"]):not([aria-current])){
  background:var(--wm-graphite-sheen) #f8f4ed!important;
  border-color:#ccc3b6!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(button,.btn,.button,.wm-btn,.wm-vd-action,.wm-source-button):is(:disabled,[aria-disabled="true"]),
html[data-theme="light"] body.wm-public-landing .wm-btn:is(:disabled,[aria-disabled="true"]),
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-card .wm-access-submit:is(:disabled,[aria-disabled="true"]){
  background:#e4ded4!important;
  border-color:#d3ccbf!important;
  color:#62676b!important;
  -webkit-text-fill-color:#62676b!important;
  box-shadow:none!important;
  cursor:not-allowed;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main input::file-selector-button{
  border-radius:9px;
  border-color:#ccc3b6;
  background:#f8f4ed;
  box-shadow:var(--wm-component-button-shadow);
}

/* B: framed area tabs, including costs, dossier, receipts and account access. */
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-source-tabs,.wm-vd-register,.workspace-tabs,.section-jumpbar,.wm-receipt-filters,.cost-ledger-tabs),
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-card .wm-access-tabs{
  gap:4px!important;
  padding:4px!important;
  border:1px solid #d3cbbf!important;
  border-radius:7px!important;
  background:var(--wm-graphite-sheen) #ebe5da!important;
  box-shadow:none!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-source-tabs,.wm-vd-register,.workspace-tabs,.section-jumpbar,.wm-receipt-filters,.cost-ledger-tabs)>:is(a,button),
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-card .wm-access-tabs>a{
  min-height:44px!important;
  border:1px solid transparent!important;
  border-radius:4px!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:10px 14px!important;
  color:var(--wmp-muted,#526175)!important;
  text-shadow:none!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-source-tabs,.wm-vd-register,.workspace-tabs,.section-jumpbar,.wm-receipt-filters,.cost-ledger-tabs)>:is(a,button):is(.is-active,.is-current,[aria-selected="true"],[aria-current="page"],[aria-current="true"]),
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-card .wm-access-tabs>a[aria-current]{
  background:var(--wmp-accent-soft)!important;
  border-color:var(--wmp-accent-line)!important;
  box-shadow:0 2px 5px rgba(63,49,36,.08)!important;
  color:var(--wmp-accent,#785515)!important;
  -webkit-text-fill-color:currentColor!important;
}

/* B: defined, flat cards. Rows and form labels retain their existing layout. */
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-private-page-head,.wm-glass-head,.wm-source-header,.panel,.wm-panel,.wm-doc-card,.dashboard-glass,.workflow-card,.workflow-assist-card,.vehicle-card,.vehicle-wizard-step,.invoice-card,.invoice-detail-card,.invoice-review-card,.wm-vd-file,.wm-vd-tab-panel,.wm-vd-page-card,.wm-receipt-file,.wm-capture-flow,.wm-capture-context,.wm-capture-entry-links>a,.wm-due-filter,.wm-due-list,.wm-cost-history,.cost-ledger-panel,.cost-ledger-summary,.cost-ledger-book,.cost-ledger-mix,.cost-ledger-year,.cost-ledger-sheet,.wm-cost-notes,.wm-cost-insights>div,.admin-status-card,.admin-access-card,.admin-priority-card,.admin-role-card,.admin-management-card,.admin-rank-card,.admin-compact-card,.profile-card,.feedback-shell,.feedback-panel,.feedback-context-card,.wm-feedback-form,.wm-feedback-filter,.wm-feedback-item,.wm-start-assistant,.wm-source-toolbar,.wm-source-workspace,.wm-source-card),
html[data-theme="light"] body.wm-public-landing .panel,
html[data-theme="light"] body.auth-page.wm-access-page .wm-access-card{
  background:var(--wm-graphite-sheen) var(--wm-private-panel,var(--wm-component-card))!important;
  border:1px solid var(--wm-component-border)!important;
  border-radius:6px!important;
  box-shadow:none!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-card[aria-current]{
  background:#f7eae2!important;
  border-color:var(--wmp-accent)!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-page{
  --source-panel:var(--wm-private-panel);
  --source-border:var(--wm-component-border);
  --ledger-border:var(--wm-component-border);
}
/* A receipt heading is part of its parent sheet, rather than a nested card. */
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-receipt-file>.wm-private-page-head{
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid var(--wm-component-line)!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* A: open rows and fine separators, also on lists that render as ledger tables. */
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(table,.wm-source-list,.wm-history-list,.cost-ledger-table),
html[data-theme="light"] body.wm-public-landing table{
  font-variant-numeric:tabular-nums;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main table :is(th,td),
html[data-theme="light"] body.wm-public-landing table :is(th,td){
  border-bottom-color:var(--wm-component-line)!important;
  background:transparent;
  box-shadow:none;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main table tbody tr:nth-child(even),
html[data-theme="light"] body.wm-public-landing table tbody tr:nth-child(even){background:transparent!important;}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main table tbody tr:hover,
html[data-theme="light"] body.wm-public-landing table tbody tr:hover{background:rgba(var(--wmp-accent-rgb,120,85,21),.035)!important;}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-source-row,.wm-history-row,.cost-ledger-row){
  background:transparent!important;
  border-bottom-color:var(--wm-component-line)!important;
  box-shadow:none!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-source-row,.wm-history-row,.cost-ledger-row):hover{
  background:rgba(var(--wmp-accent-rgb,120,85,21),.035)!important;
}

/* Animate the rail and its grid track together without changing an inherited
   custom property on every descendant for every frame. */
@media (min-width:901px) {
  body.product-private:not(.wm-mobile-shell) .mp-app {
    --wm-sidebar-folded-width:62px;
    --wm-sidebar-width:154px;
    --wm-sidebar-fold:240ms cubic-bezier(.25,.8,.25,1);
    transition:none!important;
  }
  body.product-private.sidebar-collapsed .mp-app { --wm-sidebar-width:var(--wm-sidebar-folded-width); }
  body.product-private:not(.wm-page-leaving) .mp-app > .mp-main { transition-property:opacity,transform!important; }
  #wm-primary-sidebar.wm-sidebar-satin { transition:none!important; }
}
@media (min-width:901px) and (prefers-reduced-motion:no-preference) {
  html:not([data-motion="reduced"],[data-motion="off"],[data-reduced-motion="true"]) body.product-private .mp-app[data-sidebar-motion] {
    transition:grid-template-columns var(--wm-sidebar-fold)!important;
  }
  html:not([data-motion="reduced"],[data-motion="off"],[data-reduced-motion="true"]) .mp-app[data-sidebar-motion] > #wm-primary-sidebar {
    transition:width var(--wm-sidebar-fold)!important;
  }
}

#wm-primary-sidebar.wm-sidebar-satin {
  --wm-menu-width:154px;
  --wm-menu-head:43px;
  --wm-menu-footer-limit:6rem;
  --wm-wordmark-foot:6px;
  isolation:isolate; container-type:inline-size;
  display:flex;
  flex-direction:column;
  width:var(--wm-sidebar-width)!important;
  min-width:0!important;
  gap:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:linear-gradient(110deg,#faf7f0,#f1ebe1 72%,#eee7dd)!important;
  border:0!important;
  box-shadow:inset -1px 0 rgba(91,73,46,.32),3px 0 10px -5px rgba(57,46,31,.28)!important;
}
#wm-primary-sidebar .wm-sidebar-panel {
  position:relative; isolation:isolate; display:flex; flex-direction:column;
  flex:0 1 auto; padding:9px 9px 0;
  /* On very tall, narrow rails, extend the photograph to keep the original
     letters in proportion from the legal links down to the foot of the rail. */
  min-height:max(0px,calc(100% - (100cqw - 12px) * 783 / 262 - var(--wm-wordmark-foot)));
}
.wm-sidebar-art {
  position:absolute; inset:0; z-index:-1;
  overflow:hidden; pointer-events:none;
}
.wm-sidebar-gears {
  position:absolute; inset:0;
  width:100%; height:100%; max-width:none;
  object-fit:cover; object-position:64% 66%;
  filter:sepia(.18);
}
.wm-sidebar-art::before {
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(0deg,#f2ece2,rgba(242,236,226,.45) 42px,transparent 90px),
             linear-gradient(90deg,rgba(249,246,239,.70),rgba(249,246,239,.59) 68%,rgba(242,236,226,.24));
}
.wm-sidebar-art::after {
  content:""; position:absolute; inset:0 0 0 auto; width:1px; background:rgba(78,63,43,.32);
}
#wm-primary-sidebar .wm-sidebar-brand-panel {
  position:relative; flex:1 0 min(25dvh,140px);
  background:linear-gradient(180deg,#f2ece2,transparent 45px),
             linear-gradient(105deg,#f9f6ef,#f2ede4 62%,#e9e1d4);
  box-shadow:inset -1px 0 rgba(91,73,46,.26);
}
#wm-primary-sidebar .wm-sidebar-wordmark {
  position:absolute; top:0; left:50%;
  display:block!important; transform:translateX(-50%)!important;
  height:calc(100% - var(--wm-wordmark-foot))!important;
  container-type:size;
  width:auto!important; min-width:0!important; max-width:none!important; aspect-ratio:262 / 783;
  margin:0!important; padding:0!important; border:0;
  background:transparent; box-shadow:none; pointer-events:auto;
}
#wm-primary-sidebar .wm-sidebar-wordmark > .wm-brand-logo {
  /* Rotate the whole approved lockup bottom-to-top, including its headlamps. */
  position:absolute; inset:0 auto auto 0;
  display:block!important; width:100cqh; height:100cqw; max-width:none;
  transform-origin:0 0; transform:rotate(-90deg) translateX(-100%);
  /* The sidebar panel is ivory in both application themes. */
  --wm-brand-metal-edge:#1c2939; --wm-brand-metal-mid:#697781; --wm-brand-metal-soft:#354353;
}

#wm-primary-sidebar :is(.mp-sidebar-head,.mp-nav,.mp-sidebar-bottom) {
  position:relative; z-index:1; min-width:0;
}
#wm-primary-sidebar .mp-sidebar-head {
  display:flex!important; flex:0 0 auto!important; align-items:center; justify-content:flex-start!important; gap:8px!important;
  min-height:var(--wm-menu-head)!important; height:var(--wm-menu-head)!important; margin:0 0 17px!important;
  padding:1px 0 7px 3px!important; border:0!important; border-bottom:1px solid #c6bdaf9e!important;
  border-radius:0; background:transparent; box-shadow:none!important; pointer-events:none;
}
.wm-sidebar-heading { font-size:12px; font-weight:650; color:#475466; }
#wm-primary-sidebar .mp-sidebar-toggle {
  position:static!important; display:grid!important; place-items:center;
  width:32px!important; min-width:32px!important; height:32px!important; min-height:32px!important;
  padding:0!important; margin:0!important; border:1px solid #c6bdaf!important;
  border-radius:7px!important; background:#f7f3ec!important; box-shadow:none!important; color:#344252;
  transform:none!important; pointer-events:auto; cursor:pointer;
}
#wm-primary-sidebar .mp-sidebar-toggle:hover { background:#ebe4d8!important; border-color:#9c907d!important; }
#wm-primary-sidebar :is(.mp-sidebar-toggle,.wm-sidebar-wordmark):focus-visible {
  outline:2px solid var(--wmp-accent)!important; outline-offset:2px;
}
#wm-primary-sidebar .mp-sidebar-toggle:focus-visible { outline-offset:-2px!important; }
#wm-primary-sidebar .mp-nav {
  display:flex!important; flex-flow:column nowrap!important; flex:0 1 auto!important; gap:5px!important;
  min-height:0; margin:0!important; padding:0!important; overflow-x:hidden!important; overflow-y:auto!important;
  overscroll-behavior:contain; scrollbar-width:thin;
}
#wm-primary-sidebar .mp-nav > * { flex:none; }
#wm-primary-sidebar :is(.mp-nav-group--logout,.mp-nav-form) {
  display:block!important; width:100%!important; padding:0!important; margin:0!important; border:0!important;
}
#wm-primary-sidebar .wm-private-nav-more {
  display:block; margin:0!important; padding:0!important; border:0; background:transparent;
}
#wm-primary-sidebar :is(.mp-nav-main,.wm-private-nav-more summary,.wm-private-nav-more a) {
  display:flex!important; align-items:center!important; justify-content:flex-start!important; gap:9px!important;
  box-sizing:border-box; width:100%!important; min-width:0!important; max-width:none!important;
  height:auto!important; min-height:37px!important; max-height:none!important; margin:0!important; padding:7px 9px!important;
  border:1px solid transparent!important; border-radius:6px!important; box-shadow:none!important;
  background:linear-gradient(90deg,rgba(249,246,237,.60),rgba(249,246,237,.52) 78%,rgba(249,246,237,.20))!important;
  color:#24303d!important; list-style:none; line-height:1.25; font-size:13px!important; font-weight:550!important;
}
#wm-primary-sidebar .wm-private-nav-more a {
  font-size:12px!important; white-space:normal; overflow-wrap:anywhere; text-align:left!important;
}
#wm-primary-sidebar .mp-nav .mp-nav-label {
  display:block!important; flex:none; min-width:0; width:auto!important; max-width:none!important;
  white-space:nowrap; color:inherit!important; font:inherit!important; text-shadow:0 1px #faf7f1a6!important;
}
#wm-primary-sidebar .wm-private-nav-more a .mp-nav-label {
  width:calc(var(--wm-menu-width) - 66px)!important; white-space:normal; text-align:left;
}
#wm-primary-sidebar :is(.mp-nav-group,.mp-nav-main)::before,
#wm-primary-sidebar .wm-private-nav-more summary::before { content:none!important; }
#wm-primary-sidebar .wm-private-nav-more summary::-webkit-details-marker { display:none; }
#wm-primary-sidebar .wm-sidebar-chevron {
  width:14px; height:14px; margin-left:auto;
}
#wm-primary-sidebar .wm-private-nav-more[open] .wm-sidebar-chevron { transform:rotate(180deg); }
#wm-primary-sidebar .wm-nav-count {
  padding:1px 4px; border-radius:4px; background:#f2eadb; font-size:10px; font-variant-numeric:tabular-nums;
}
#wm-primary-sidebar .mp-nav-icon {
  display:grid; place-items:center; flex:0 0 18px!important;
  width:18px!important; min-width:18px!important; height:18px!important; margin:0!important; padding:0!important;
  background:transparent!important; border:0!important; box-shadow:none!important; color:inherit!important;
}
#wm-primary-sidebar .mp-nav-icon svg,
#wm-primary-sidebar .wm-private-nav-more a > svg { width:18px!important; height:18px!important; flex-shrink:0; }
#wm-primary-sidebar :is(.mp-nav-main,.wm-private-nav-more a)[aria-current="page"] {
  color:#1c2939!important; font-weight:715!important;
  border-color:color-mix(in srgb,var(--wmp-accent) 55%,#dbd3c2)!important;
  background:linear-gradient(108deg,color-mix(in srgb,var(--wmp-accent) 23%,#f6efdf) 0%,#f8f1e0da)!important;
  box-shadow:inset 2px 0 var(--wmp-accent)!important;
}
#wm-primary-sidebar [aria-current="page"] :is(.mp-nav-icon,svg) { color:var(--wmp-accent)!important; }
#wm-primary-sidebar :is(.mp-nav-main,.wm-private-nav-more summary,.wm-private-nav-more a):hover:not([aria-current="page"]) {
  background:#e7dfcfaf!important;
}
#wm-primary-sidebar .mp-sidebar-bottom {
  flex:0 0 auto; display:grid!important; gap:3px!important; margin:auto 0 0!important; padding:10px 3px 0!important;
  width:calc(var(--wm-menu-width) - 18px); max-height:var(--wm-menu-footer-limit); overflow:hidden;
  border:0; box-shadow:none; color:#475466; pointer-events:none;
}
#wm-primary-sidebar .wm-sidebar-version { font-size:9px; font-variant-numeric:tabular-nums; }
#wm-primary-sidebar .mp-legal-links {
  display:flex!important; flex-wrap:wrap; justify-content:flex-start; gap:3px 7px; padding:0;
  background:transparent; border:0; box-shadow:none;
}
#wm-primary-sidebar .mp-legal-links a { color:#354353; font-size:10px; text-decoration:underline; pointer-events:auto; }

@media (min-width:901px) {
  /* Size the artwork from the folded rail and the navigation's natural height.
     The legal links share the navigation track and retain their own space
     below its scrollable part when the rail opens. */
  #wm-primary-sidebar .wm-sidebar-panel {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr);
    min-height:max(0px,calc(100% - (var(--wm-sidebar-folded-width) - 12px) * 783 / 262 - var(--wm-wordmark-foot)));
  }
  #wm-primary-sidebar :is(.mp-nav,.mp-sidebar-bottom) { grid-area:2 / 1; }
  #wm-primary-sidebar .mp-nav {
    align-self:start;
    max-height:max(0px,calc(100% - var(--wm-menu-footer-limit)));
  }
  #wm-primary-sidebar .mp-sidebar-bottom { align-self:end; }
  .sidebar-collapsed #wm-primary-sidebar .mp-nav { max-height:100%; }
  #wm-primary-sidebar :is(.wm-sidebar-heading,.mp-nav-label,.wm-sidebar-chevron,.wm-nav-count) {
    transition:opacity 100ms ease,visibility 100ms!important;
  }
  #wm-primary-sidebar .mp-sidebar-bottom {
    transition:opacity 110ms ease,max-height 230ms ease,padding 230ms ease,visibility 110ms!important;
  }
  .sidebar-collapsed #wm-primary-sidebar :is(.wm-sidebar-heading,.mp-nav-label,.wm-sidebar-chevron,.wm-nav-count,.mp-sidebar-bottom) {
    opacity:0!important; visibility:hidden!important;
  }
  .sidebar-collapsed #wm-primary-sidebar .mp-sidebar-bottom { max-height:0; padding-top:0!important; }
  .sidebar-collapsed #wm-primary-sidebar :is(.mp-nav-main,.wm-private-nav-more summary,.wm-private-nav-more a):not([aria-current="page"]) {
    background:radial-gradient(ellipse 16px 15px at 18px center,#f6f1e8db,transparent)!important;
  }
}
@media (max-width:900px) {
  #wm-primary-sidebar.wm-sidebar-satin {
    --wm-menu-width:min(190px,calc(100vw - 48px)); width:var(--wm-menu-width)!important;
    transition:transform 210ms cubic-bezier(.25,.8,.25,1)!important;
  }
}
@media (max-width:900px), (pointer:coarse) {
  #wm-primary-sidebar.wm-sidebar-satin { --wm-menu-head:54px; }
  #wm-primary-sidebar :is(.mp-nav-main,.wm-private-nav-more summary,.wm-private-nav-more a),
  #wm-primary-sidebar .mp-sidebar-toggle { min-height:44px!important; }
  #wm-primary-sidebar .mp-sidebar-toggle { min-width:44px!important; }
}
@media (prefers-reduced-motion:reduce) {
  #wm-primary-sidebar.wm-sidebar-satin,
  #wm-primary-sidebar :is(.wm-sidebar-heading,.mp-nav-label,.wm-sidebar-chevron,.wm-nav-count,.mp-sidebar-bottom) {
    transition:none!important;
  }
}
html:is([data-motion="reduced"],[data-motion="off"],[data-reduced-motion="true"]) #wm-primary-sidebar,
html:is([data-motion="reduced"],[data-motion="off"],[data-reduced-motion="true"]) #wm-primary-sidebar :is(.wm-sidebar-heading,.mp-nav-label,.wm-sidebar-chevron,.wm-nav-count,.mp-sidebar-bottom) {
  transition:none!important;
}

/* Shared illustration placements from the approved Kontur & Akzent preview. */
.wm-empty-art{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;flex-shrink:0;color:#24303d;}
.wm-empty-state>.wm-icon--illustration{display:block;margin:0 auto 14px;color:#24303d;}
.wm-empty-state:has(>.wm-icon--illustration){text-align:center;}
.wm-upload-result-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:8px;color:#24303d;}
.vehicle-image-fallback__icon{display:grid;place-items:center;}
.wm-receipt-chip{display:inline-flex;align-items:center;gap:8px;}
body.product-private .guide-start-button::before{content:none!important;display:none!important;}
body.product-private .wm-review-task__icon{width:44px;height:44px;flex-basis:44px;border:0;background:transparent;color:#24303d;}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-capture-entry-links{
  gap:12px;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-capture-entry-links>a{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:12px;
  min-height:132px;
  padding:20px!important;
  border-radius:9px!important;
  background:#faf7f1!important;
  box-shadow:0 3px 7px rgba(61,45,24,.06)!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-capture-entry-links>a:hover{
  border-color:var(--wmp-accent)!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-capture-entry-links .wm-capture-icon{
  color:#24303d!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-capture-entry-links strong{font-size:16px!important;}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-capture-entry-links small{font-size:13px;margin-top:5px;}
@media(max-width:520px){
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-capture-entry-links>a{min-height:104px;flex-direction:row;justify-content:flex-start;align-items:center;gap:16px;}
}
@media(max-width:760px){
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-source-tabs,.wm-vd-register,.workspace-tabs,.section-jumpbar,.wm-receipt-filters,.cost-ledger-tabs)>:is(a,button){padding:10px 12px!important;}
}
@media(max-width:900px){
  body.product-private.mobile-nav-open .wm-mobile-nav-button{visibility:hidden!important;}
  body.product-private .mp-app>.wm-mobile-nav-scrim{border:0!important;border-radius:0!important;box-shadow:none!important;}
}
@media(prefers-reduced-motion:reduce){
  html[data-theme="light"] body.product-private .mp-main :is(button,.btn,.button,input,select,textarea){transition:none!important;}
}

/* V1.0.358: the service book uses the selected BBBBAA components. */
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-vd-cover,.v11-vehicle-slide){
  border:1px solid var(--wm-component-border)!important;
  border-radius:6px!important;
  box-shadow:none!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-cover{
  display:block!important;
  min-height:0!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-cover__content{
  width:100%;
  max-width:1020px;
  min-height:0;
  padding:24px 24px 12px;
  gap:14px;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-title{
  max-width:100%;
  margin:0;
  font-size:clamp(1.65rem,2.5vw,2.25rem);
  line-height:1.18;
  overflow-wrap:anywhere;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-stats{
  margin:0;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-actions>a{
  min-height:44px;
  white-space:normal;
  text-align:center;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-cover__image-tools{
  position:relative;
  inset:auto;
  max-width:none;
  margin:0 24px 16px;
  justify-content:flex-end;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .dashboard-active-navigator{
  min-height:0;
  grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .dashboard-active-copy{
  padding:24px;
  gap:12px;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .dashboard-active-copy h2{
  max-width:100%;
  font-size:clamp(1.6rem,2.4vw,2.2rem);
  line-height:1.2;
  overflow-wrap:anywhere;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.dashboard-active-media,.dashboard-active-media img){
  min-height:180px;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .v11-slide-body h2{
  max-width:100%!important;
  font-size:clamp(1.7rem,2.7vw,2.5rem)!important;
  line-height:1.16!important;
  overflow-wrap:anywhere;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .v11-slide-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-vd-receipt-row,.wm-vd-timeline .wm-timeline-item){
  border-bottom-color:var(--wm-component-line);
}
@media(max-width:900px){
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .dashboard-active-navigator{
    grid-template-columns:minmax(0,1fr);
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .dashboard-active-media{
    order:1;
    height:160px;
    min-height:160px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .dashboard-active-media img{
    min-height:160px;
    height:160px;
  }
}
@media(max-width:520px){
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-cover__content{
    padding:18px 16px 12px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-cover__image-tools{
    margin-inline:16px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-actions>a{
    flex:1 1 100%;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .v11-slide-actions{
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* Garage cards stay in document flow; every vehicle remains visible without JS. */
.wm-garage-stage{padding:4px 0 32px;min-width:0;}
.wm-garage-collection{display:grid;gap:20px;min-width:0;}
.wm-garage-card{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);min-width:0;overflow:hidden;}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-garage-card .v11-slide-image{
  position:relative;
  min-height:280px!important;
  height:auto!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-garage-card .v11-slide-image img{
  position:absolute;
  inset:0;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  object-fit:cover;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-garage-card .v11-slide-body{
  min-width:0;
  padding:24px!important;
  gap:14px!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-garage-card .v11-slide-actions :is(a,button){
  white-space:normal;
  overflow-wrap:anywhere;
  min-width:0;
}
@media(max-width:900px){
  .wm-garage-card{grid-template-columns:minmax(0,1fr);}
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-garage-card .v11-slide-image{
    min-height:220px!important;
    height:220px!important;
  }
  /* Cover the interval before deferred JavaScript applies inert as well. */
  body:not(.mobile-nav-open):not(.auth-page) .mp-app .mp-sidebar{visibility:hidden!important;}
}
@media(max-width:520px){
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-garage-card .v11-slide-body{padding:18px 16px!important;}
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-garage-card .v11-slide-metrics{grid-template-columns:minmax(0,1fr)!important;}
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-garage-card .v11-slide-metrics div{border-right:0!important;}
}

/* Existing shared headers and cards in short, task-oriented upload screens. */
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-compact-head{
  padding:20px 24px!important;
  min-height:0!important;
  margin-bottom:16px!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-compact-head .page-title{
  max-width:none!important;
  font-size:clamp(1.65rem,2.8vw,2rem)!important;
  line-height:1.2!important;
  overflow-wrap:anywhere;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .registration-scan-card{
  grid-template-columns:minmax(0,1fr)!important;
  gap:16px!important;
}
html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .vehicle-image-select-page :is(.vehicle-image-candidates,.vehicle-image-select-grid){
  scroll-margin-top:72px;
}
.wm-collection-filter{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin:0 0 18px;padding:16px;}
.wm-collection-filter .wm-field{min-width:0;}
.wm-collection-filter .wm-field label{display:block;margin-bottom:6px;}
.wm-collection-filter-actions{display:flex;flex-wrap:wrap;align-items:end;gap:8px;}
@media(max-width:720px){
  .wm-collection-filter{grid-template-columns:minmax(0,1fr);}
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-compact-head{padding:18px 16px!important;}
}

/* Public pages use the same selected controls; only their layout is separate. */
html[data-theme="light"] body.wm-public-landing .wm-btn{
  padding:11px 22px;
  font-size:15px;
  font-weight:650;
  line-height:1.4;
  white-space:normal;
  text-align:center;
}
html[data-theme="light"] body.wm-public-landing .wm-btn--sm{padding:9px 17px;font-size:14px;}
@media(prefers-reduced-motion:reduce){html[data-theme="light"] body.wm-public-landing .wm-btn{transition:none!important;}}
@media(forced-colors:active){html[data-theme="light"] body.wm-public-landing .wm-btn--primary{color:ButtonText!important;-webkit-text-fill-color:ButtonText!important;background:ButtonFace!important;border-color:ButtonText!important;}}

/* Compact mobile composition of the same selected dossier and cost components. */
@media(max-width:700px){
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-topline{
    grid-template-columns:minmax(0,1fr);
    gap:4px;
    margin-bottom:8px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-topline__actions{
    display:flex;
    justify-content:space-between;
    gap:8px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-vd-topline__back,.wm-vd-topline__link){
    min-height:44px;
    width:auto;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-cover__content{
    padding:16px 16px 12px;
    gap:10px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-title{
    font-size:clamp(1.45rem,5vw,1.8rem);
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-actions>a{
    min-height:44px;
    padding:8px!important;
    overflow-wrap:anywhere;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-stat{
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    justify-content:space-between;
    gap:4px 8px;
    padding:8px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-stat dt{
    margin:0;
    font-size:.75rem;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-stat dd{
    margin:0;
    font-size:.875rem;
    overflow-wrap:anywhere;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-vd-cover__image-tools{
    margin:0 16px 12px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-page{
    gap:12px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main :is(.wm-source-header,.wm-source-toolbar){
    padding:14px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-page h1{
    font-size:24px!important;
    margin:4px 0 8px!important;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-vehicle{
    font-size:14px;
    overflow-wrap:anywhere;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-top:12px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-tabs>a{
    min-height:44px;
    padding:8px 4px!important;
    font-size:13px;
    line-height:1.3;
    overflow-wrap:anywhere;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-toolbar{
    gap:12px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-filter{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-filter>label,
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-period[open]{
    grid-column:1/-1;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-filter>.wm-source-button{
    grid-column:2;
    align-self:end;
    margin-top:0;
    min-height:44px;
  }
  html[data-theme="light"] body.product-private:not(.auth-page) .mp-main.mp-main .wm-source-actions{
    width:100%;
    gap:8px;
    padding-top:0;
  }
}
