/* System .68 - Classic warm light.
 * Source authority: 192.168.1.184 / G:\NeginAI\desktop-zip-20261008\neginai\classic.
 * Paint-only layer loaded after adapter.css. Existing workflows, map priorities,
 * product media, layout geometry and business states remain owned by Classic.
 */
html.web-road-theme:root {
  color-scheme: light;
  --road-bg: #F6F5F0;
  --road-deep: #EEEDE5;
  --road-surface: #FAF9F5;
  --road-card: #FFFFFF;
  --road-raised: #FFFFFF;
  --road-line: #D8DDD2;
  --road-line-soft: #E8EBE2;
  --road-gold: #D2AE48;
  --road-gold-high: #755710;
  --road-gold-dim: #755710;
  --road-text: #242821;
  --road-muted: #5F665B;
  --road-danger: #B42318;
  --warm-success: #17765A;
  --warm-success-wash: #EAF5EF;
  --warm-warning: #8C5A08;
  --warm-warning-wash: #FFF3D6;
  --warm-error-wash: #FFF0ED;
  --warm-selected: #F5EDD4;
  --warm-hover: #FAF5E6;
  --warm-on-gold: #24200F;
  --warm-gold-gradient: linear-gradient(135deg,#E1C46F,#D2AE48);
  --warm-shadow: 0 4px 14px rgba(43,49,34,.06);
  --warm-shadow-raised: 0 12px 32px rgba(43,49,34,.10);
  --brand-ink: var(--road-text);
  --brand-canvas: var(--road-bg);
  --brand-panel: var(--road-card);
  --brand-gold: var(--road-gold);
  --brand-gold-light: var(--road-gold-high);
  --brand-gold-soft: var(--warm-selected);
  --sidebar: var(--road-surface);
  --hover: var(--warm-hover);
  --line: var(--road-line);
  --muted: var(--road-muted);
  --green: var(--warm-success);
  --danger: var(--road-danger);
  --panel: var(--road-card);
  --text: var(--road-text);
}
html.web-road-theme:root :is(body,.app-shell,.main-panel,.messages,.composer-area,
  .notifications-panel,.organization-structure-panel,.seller-workspace-panel,
  .customer-profile-panel,.seller-route-map-panel,.schema-catalog-panel,
  .classic-daily-panel,.route-day-saved-requests,.previsit-panel) {
  background: var(--road-bg)!important;
  color: var(--road-text)!important;
}
html.web-road-theme:root .main-panel {
  background: radial-gradient(ellipse at 88% 0,rgba(210,174,72,.09),transparent 35%),var(--road-bg)!important;
}
html.web-road-theme:root :is(.main-header,.panel-header,.sidebar,
  .sidebar-top,.sidebar-footer,.conversation-scroll,.route-map-sidebar,
  .route-map-sidebar>header,.route-map-stops,.route-day-action-rail,
  .previsit-list-sticky-controls,.previsit-order-common,.previsit-visit-rail-panel) {
  background: var(--road-surface)!important;
  color: var(--road-text)!important;
  border-color: var(--road-line)!important;
  box-shadow: var(--warm-shadow)!important;
}
html.web-road-theme:root :is(.sidebar-brand,.conversation-search,.conversation-menu,
  .attachment-menu,.composer,.suggestions button,.notification-card,.organization-card,
  .schema-domain,.schema-detail-panel,.schema-table-card,.schema-catalog-search,
  .seller-route-card,.seller-brand-list,.seller-open-invoice-customer,
  .seller-open-invoice-card,.customer-profile-card,.customer-profile-section,
  .customer-profile-location-capture,.account-profile-grid span,
  .route-day-saved-requests>header,.route-day-saved-request-list>article,
  .previsit-cart-header,.previsit-order-workspace,.previsit-intelligence-panel,.previsit-order-assistant,
  .previsit-order-conditions,.previsit-order-conditions-inline .previsit-context-grid,
  .previsit-customer-profile-form,.previsit-list-product,.previsit-grouped-product,
  .previsit-product-card,.previsit-preview-result,.previsit-prizes,.previsit-restrictions,.previsit-rules,
  .previsit-rules-empty,.previsit-rules article,.previsit-credit-control,
  .previsit-policy-summary,.previsit-rail-status,.previsit-invoice-scroll,
  .previsit-saved-invoice,.previsit-saved-invoice-scroll,.previsit-empty-state,
  .classic-daily-panel article) {
  background: var(--road-card)!important;
  color: var(--road-text)!important;
  border-color: var(--road-line)!important;
  box-shadow: var(--warm-shadow)!important;
}
/* Priority borders and map marker palettes are intentionally not redefined. */
html.web-road-theme:root .seller-customer-card {
  background: var(--road-card)!important;
  color: var(--road-text)!important;
  box-shadow: var(--warm-shadow)!important;
}
html.web-road-theme:root :is(.seller-route-summary,.seller-open-invoice-summary,
  .seller-route-customer-list,.seller-open-invoice-list,.customer-profile-hero,
  .previsit-context-grid,.previsit-order-control-bar,.previsit-order-context-summary>span,
  .previsit-order-mode-switch,.previsit-catalog-quickbar,.previsit-list-unit-row,
  .previsit-product-stepper,.previsit-list-prices>span,.previsit-grouped-prices>span,
  .previsit-preview-result>header,.previsit-preview-result .previsit-totals,
  .previsit-credit-control>div span,.previsit-policy-chips span,
  .previsit-rules article footer,.route-day-saved-request-list dl>div,
  .schema-domain>header,.schema-detail-tags span,.schema-columns b,
  .classic-map-customer-dialog dl>div,.previsit-saved-invoice table,.previsit-saved-invoice tbody tr,
  .previsit-saved-invoice thead th,.previsit-saved-invoice tfoot th,
  .previsit-saved-invoice tfoot td,.previsit-saved-invoice tbody tr:nth-child(even)) {
  background: var(--road-surface)!important;
  color: var(--road-text)!important;
  border-color: var(--road-line)!important;
}
html.web-road-theme:root :is(.side-nav button,.sidebar-option,
  .classic-work-position>summary,.profile-row,.conversation-item,.conversation-more,
  .main-header .assistant-title,.header-icon,.composer-icon,.text-button,
  .seller-route-map-mode,.classic-daily-panel button,.classic-map-customer-dialog button,
  .previsit-list-view-actions>button,.previsit-order-control-bar button,
  .previsit-order-mode-switch button,.previsit-catalog-quickbar button,
  .previsit-visit-drawer-head button,.previsit-visit-menu-toggle,
  .route-day-menu-toggle,.route-day-action-rail>button,
  .customer-profile-actions .dialog-secondary) {
  color: var(--road-text)!important;
}
html.web-road-theme:root :is(.profile-copy small,.conversation-group h2,
  .conversation-loading,.conversation-empty,.classic-work-actions p,
  .panel-header p,.connection-status,.welcome>p,.suggestions span,
  .notification-card p,.notification-card time,.notifications-empty,.organization-empty,
  .schema-table-copy small,.schema-table-meta,.schema-catalog-empty,.schema-detail-loading,
  .schema-detail-panel small,.schema-detail-panel>p,.schema-columns small,
  .seller-route-copy small,.seller-customer-card small,.seller-open-invoice-summary small,
  .seller-open-invoice-meta em,.customer-profile-card small,.customer-profile-section header small,
  .customer-profile-hero p,.customer-profile-hero small,.customer-profile-form label,
  .route-map-stop small,.route-day-action-rail>header small,.route-day-action-note,
  .previsit-cart-header .previsit-customer-header-copy>p,
  .previsit-cart-header .previsit-customer-header-meta small,
  .previsit-order-context-summary small,.previsit-list-product-copy>small,
  .previsit-list-prices small,.previsit-grouped-prices small,.previsit-list-unit-row>span,
  .previsit-preview-result>header span,.previsit-credit-control>header span,
  .previsit-credit-control>p,.previsit-credit-control dt,.previsit-rules>small,
  .previsit-prizes p,.previsit-restrictions p,
  .previsit-visit-rail nav button>small,.previsit-visit-identity small,
  .previsit-saved-invoice dt,.previsit-saved-invoice td:first-child small,
  .previsit-location-picker-shell>footer small) {
  color: var(--road-muted)!important;
}
html.web-road-theme:root :is(.welcome h1,.notifications-empty h3,
  .customer-profile-hero h3,.customer-profile-card b,.seller-route-summary strong,
  .seller-customer-card strong,.seller-open-invoice-card strong,.route-map-stop strong,
  .previsit-list-product-copy strong,.previsit-grouped-product>header strong,
  .previsit-grouped-prices b,.previsit-list-prices b,.previsit-list-unit-row>span b,
  .previsit-credit-control dd,.previsit-credit-control>div b,
  .previsit-preview-result .previsit-totals b,.previsit-visit-identity strong,
  .previsit-visit-rail nav button>b,.previsit-saved-invoice dd) {
  color: var(--road-text)!important;
}
/* Fields use explicit light surfaces; native checkboxes keep their own geometry. */
html.web-road-theme:root :is(.sidebar,.main-panel,.previsit-panel,.classic-daily-panel,dialog,
  .previsit-table-overlay.is-grouped-catalog,.classic-map-customer-dialog)
  :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background: var(--road-card)!important;
  color: var(--road-text)!important;
  border-color: var(--road-line)!important;
  caret-color: var(--road-text);
}
html.web-road-theme:root :is(input,textarea)::placeholder {
  color: var(--road-muted)!important;
  opacity: 1;
}
html.web-road-theme:root :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):disabled,
html.web-road-theme:root .previsit-customer-profile-form label.is-readonly :is(input,select,textarea) {
  background: var(--road-deep)!important;
  color: var(--road-muted)!important;
  border-color: var(--road-line-soft)!important;
}
html.web-road-theme:root :is(input[type="checkbox"],input[type="radio"]) {
  accent-color: var(--road-gold-high);
}
html.web-road-theme:root :is(.side-nav button,.sidebar-option,.profile-row,
  .conversation-item,.conversation-more,.header-icon,.composer-icon,
  .schema-table-card,.seller-route-summary,.seller-open-invoice-summary,
  .classic-work-position>summary,.classic-work-actions>button,
  .previsit-visit-rail nav button,.route-day-action-rail>button):hover {
  background: var(--warm-hover)!important;
  color: var(--road-text)!important;
}
html.web-road-theme:root :is(.conversation-item.active,.notification-card.selected,
  .notification-card.unread,.classic-work-position[open]>summary,
  .previsit-order-mode-switch button.is-active,.previsit-order-control-bar button.is-active,
  .previsit-list-view-actions>button.is-active,.previsit-catalog-quickbar button.is-active,
  .previsit-list-product.is-in-cart,.previsit-grouped-product.is-in-cart,
  .previsit-visit-rail nav button.is-active,.route-day-action-rail>button.is-active) {
  background: var(--warm-selected)!important;
  color: var(--road-gold-high)!important;
  border-color: var(--road-gold)!important;
  box-shadow: inset -3px 0 var(--road-gold)!important;
}
html.web-road-theme:root :is(.nav-icon,.profile-avatar,.assistant-avatar,
  .seller-route-mark,.seller-brand-chip,.catalog-count,.schema-table-icon,
  .schema-domain header span,.previsit-eyebrow,.previsit-identity-mark,
  .previsit-visit-rail nav button>span,.route-day-action-badge.is-ready,
  .previsit-customer-code,.previsit-cart-header .previsit-customer-header-meta>span) {
  background: var(--warm-selected)!important;
  color: var(--road-gold-high)!important;
  border-color: var(--road-gold)!important;
  text-shadow: none!important;
  box-shadow: none!important;
}
html.web-road-theme:root :is(.seller-customer-balances b,.seller-open-invoice-meta b,
  .seller-open-invoice-card b,.previsit-credit-control>header strong,
  .previsit-credit-control summary,.previsit-order-conditions>header strong,
  .previsit-order-assistant strong,.previsit-product-stepper output,
  .previsit-location-picker-shell>header small,.route-day-saved-requests>header strong,
  .route-day-saved-request-list article header>b) {
  color: var(--road-gold-high)!important;
}
/* Only identifiable primary actions receive a filled gold surface. */
html.web-road-theme:root :is(.new-chat,#sendBtn:not(:disabled),#loginForm>button,
  .install-help button,.previsit-preview-button,.previsit-order-assistant>button,
  #completePrevisitOrder,.seller-route-map-button.is-day-route,
  .previsit-location-picker-shell>footer button:not(.dialog-secondary)) {
  background: var(--warm-gold-gradient)!important;
  color: var(--warm-on-gold)!important;
  border-color: var(--road-gold)!important;
  box-shadow: var(--warm-shadow)!important;
}
html.web-road-theme:root :is(.new-chat>span:first-child,.new-chat kbd) {
  color: var(--warm-on-gold)!important;
}
html.web-road-theme:root :is(.previsit-list-unit-row button,.previsit-product-stepper button,
  .previsit-visit-menu-toggle,.route-day-menu-toggle,.previsit-floating-voice,
  .classic-daily-panel button,.classic-map-customer-dialog button,
  .previsit-order-control-bar button,.previsit-catalog-quickbar button,
  .previsit-catalog-filter-panel>#previsitTableMode,
  .previsit-visit-drawer-head button,.previsit-location-picker-shell>header button,
  .previsit-location-picker-shell>footer button.dialog-secondary,
  .customer-profile-actions button.dialog-secondary) {
  background: var(--road-surface)!important;
  color: var(--road-gold-high)!important;
  border-color: var(--road-line)!important;
  box-shadow: none!important;
}
html.web-road-theme:root :is(.previsit-list-unit-row button,.previsit-product-stepper button,
  .previsit-floating-voice):disabled {
  background: var(--road-deep)!important;
  color: var(--road-muted)!important;
}
html.web-road-theme:root :is(dialog,.previsit-outcome-dialog,.previsit-outcome-dialog form,
  .previsit-location-picker-dialog,.previsit-location-picker-shell>header,
  .previsit-location-picker-shell>footer,.classic-map-customer-dialog,
  .conversation-menu,.attachment-menu) {
  background: var(--road-card)!important;
  color: var(--road-text)!important;
  border-color: var(--road-line)!important;
  box-shadow: var(--warm-shadow-raised)!important;
}
html.web-road-theme:root :is(dialog p,dialog label,.classic-map-customer-dialog dd) {
  color: var(--road-muted)!important;
}
html.web-road-theme:root dialog::backdrop {
  background: rgba(36,40,33,.36)!important;
}
html.web-road-theme:root :is(dialog form>.dialog-secondary,.previsit-outcome-actions .dialog-secondary) {
  background: var(--road-surface)!important;
  color: var(--road-text)!important;
  border-color: var(--road-line)!important;
}
html.web-road-theme:root #loginForm .remember-device { color: var(--road-text)!important; }
html.web-road-theme:root #loginForm .remember-device input { accent-color: var(--road-gold-high); }
html.web-road-theme:root :is(.message-table-wrap,.message-table-wrap th,
  .previsit-invoice-head,.previsit-invoice-totals,.previsit-invoice-totals.is-official,
  .previsit-list-heading,.previsit-catalog-filter-panel,.previsit-mobile-dock,
  .previsit-dock-cart,.previsit-dock-cart.is-active,.previsit-mobile-dock .previsit-dock-cart,
  .previsit-table-overlay.is-grouped-catalog,.previsit-table-overlay.is-grouped-catalog .previsit-table-seller) {
  background: var(--road-surface)!important;
  color: var(--road-text)!important;
  border-color: var(--road-line)!important;
  box-shadow: var(--warm-shadow)!important;
}
html.web-road-theme:root :is(.message-table-wrap th,.message-table-wrap td,
  .previsit-saved-invoice th,.previsit-saved-invoice td,.schema-columns,.schema-columns>div) {
  border-color: var(--road-line)!important;
}
html.web-road-theme:root .user .message {
  background: var(--warm-selected)!important;
  color: var(--road-text)!important;
  border-color: var(--road-line)!important;
}
html.web-road-theme:root :is(.previsit-invoice-head small,.previsit-table-seller>header>strong) {
  color: var(--road-muted)!important;
}
/* Tabletop product artwork remains white; catalog chrome shares the warm palette. */
html.web-road-theme:root .previsit-table-overlay.is-grouped-catalog :is(
  .previsit-grouped-product,.previsit-grouped-prices>span,.previsit-list-unit-row) {
  background: var(--road-card)!important;
  color: var(--road-text)!important;
  border-color: var(--road-line)!important;
}
html.web-road-theme:root .previsit-table-overlay.is-grouped-catalog :is(
  .previsit-grouped-product.is-in-cart,.previsit-grouped-prices>span.is-base) {
  background: var(--warm-selected)!important;
  color: var(--road-gold-high)!important;
}
html.web-road-theme:root .previsit-table-overlay.is-grouped-catalog :is(
  .previsit-grouped-product>header strong,.previsit-grouped-prices b,.previsit-list-unit-row>span b) {
  color: var(--road-text)!important;
}
html.web-road-theme:root .previsit-table-overlay.is-grouped-catalog :is(
  .previsit-grouped-prices small,.previsit-grouped-product>header i) { color: var(--road-muted)!important; }
html.web-road-theme:root .previsit-table-overlay.is-grouped-catalog .previsit-list-unit-row button {
  background: var(--warm-selected)!important;
  color: var(--road-gold-high)!important;
}
/* Completed route statuses keep Classic's original shared visited meaning.
 * Their original status/priority borders remain untouched by this layer.
 */
html.web-road-theme:root .route-map-stop:is(.route-status-order,.route-status-no_order,.route-status-no_visit) {
  background: var(--warm-selected)!important;
  color: var(--road-text)!important;
}
html.web-road-theme:root .route-map-stop .route-customer-resolution {
  background: var(--warm-selected)!important;
  color: var(--road-gold-high)!important;
}
html.web-road-theme:root .route-map-stop .route-customer-person { color:var(--road-text)!important; }
html.web-road-theme:root .route-map-stop .route-customer-address { color:var(--road-muted)!important; }
/* State roles retain distinct, readable colors instead of being turned gold. */
html.web-road-theme:root :is(.previsit-requirement-banner.is-complete,
  .previsit-rules article.is-applied,.previsit-saved-invoice tbody tr.is-gift,
  .previsit-list-product-copy>div b.is-stocked,.previsit-grouped-product>header i.is-stocked) {
  background: var(--warm-success-wash)!important;
  color: var(--warm-success)!important;
  border-color: var(--warm-success)!important;
}
html.web-road-theme:root :is(.previsit-requirement-banner,.previsit-rail-status.is-blocked,
  .customer-profile-draft-badge) {
  background: var(--warm-warning-wash)!important;
  color: var(--warm-warning)!important;
  border-color: var(--warm-warning)!important;
}
html.web-road-theme:root :is(.previsit-credit-control.is-blocked,.previsit-credit-warning,
  .previsit-policy-summary.is-blocked,.previsit-policy-summary.is-blocked .previsit-policy-chips span,
  .previsit-credit-control>div .is-deficit,.customer-profile-alert) {
  background: var(--warm-error-wash)!important;
  color: var(--road-danger)!important;
  border-color: var(--road-danger)!important;
}
html.web-road-theme:root :is(.login-error,#loginError,.customer-profile-card.is-warning b,
  .previsit-credit-control.is-blocked>header strong,.previsit-credit-warning span) {
  color: var(--road-danger)!important;
}
html.web-road-theme:root .previsit-requirement-banner.is-complete {
  background: var(--warm-success-wash)!important;
  color: var(--warm-success)!important;
  border-color: var(--warm-success)!important;
}
html.web-road-theme:root :is(a,button,input,textarea,select,summary):focus-visible {
  outline: 2px solid var(--road-gold-high)!important;
  outline-offset: 3px;
}
html.web-road-theme:root .composer:focus-within {
  border-color: var(--road-gold-high)!important;
  box-shadow: 0 0 0 2px rgba(117,87,16,.12)!important;
}
/* Readability repairs are restricted to flowing labels, never map markers or table geometry. */
@media (pointer:coarse), (max-width:600px) {
  html.web-road-theme:root :is(.previsit-list-product-copy>small,.previsit-list-prices small,
    .previsit-grouped-prices small,.previsit-grouped-product>header small,
    .previsit-order-context-summary small,.previsit-list-filter-selects>label,
    .previsit-credit-control dt,.previsit-policy-summary p,
    .schema-table-copy small,.schema-table-meta,.schema-detail-panel small,
    .schema-columns small,.classic-daily-panel article small,.classic-work-actions p) {
    font-size: 12px!important;
  }
  html.web-road-theme:root :is(.side-nav button,.sidebar-option,
    .classic-work-position>summary,.classic-work-actions>button,.classic-daily-panel button,
    #loginForm>button,.previsit-order-control-bar button,.previsit-catalog-quickbar button,
    .previsit-list-view-actions>button,.previsit-visit-drawer-head button,
    .previsit-location-picker-shell>footer button,.classic-map-customer-dialog button) {
    min-height: 44px!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  html.web-road-theme:root :is(.side-nav button,.sidebar-option,.conversation-item,
    .sidebar,.previsit-visit-rail-panel,
    .route-day-action-rail,.new-chat,.previsit-list-product) {
    transition: none!important;
    animation: none!important;
  }
  html.web-road-theme:root .classic-work-position>summary::after { transition:none!important; }
}

/* Essential catalog labels override legacy compact-mode selectors at every width. */
html.web-road-theme:root #schemaCatalogPanel :is(.schema-table-copy small,.schema-table-meta){font-size:12px!important}
html.web-road-theme:root #previsitPanel #previsitListProducts :is(.previsit-list-product-copy>small,.previsit-list-prices small){font-size:12px!important}


/* Catalog filter rows and floating totals use the approved light materials. */
html.web-road-theme:root #previsitPanel :is(.previsit-list-hierarchy,#previsitListBrands,#previsitListGroups){background:var(--road-surface)!important;color:var(--road-muted)!important;border-color:var(--road-line)!important}
html.web-road-theme:root #previsitPanel :is([data-previsit-list-brand],[data-previsit-list-group]){background:var(--road-card)!important;color:var(--road-text)!important;border-color:var(--road-line)!important}
html.web-road-theme:root #previsitPanel :is([data-previsit-list-brand],[data-previsit-list-group]).is-active{background:var(--warm-selected)!important;color:var(--road-gold-high)!important;border-color:var(--road-gold)!important}
html.web-road-theme:root #previsitPanel .previsit-mobile-dock .previsit-dock-cart{background:var(--road-card)!important;color:var(--road-text)!important;border-color:var(--road-line)!important;box-shadow:var(--warm-shadow-raised)!important}
html.web-road-theme:root #previsitPanel :is(#previsitDockTotal,.previsit-dock-metrics strong,.previsit-dock-metrics small,.previsit-dock-metrics span){color:var(--road-text)!important}
html.web-road-theme:root #previsitPanel #previsitDockCount{color:var(--road-gold-high)!important}
