/* SMITHSMM V34 — GLOBAL READABILITY / LIGHT+DARK AUDIT
   Last stylesheet on Admin and Member pages. Appearance only. No financial or API logic. */
html[data-smith-theme="light"]{color-scheme:light;--a34-bg:#f4f7fb;--a34-surface:#fff;--a34-surface2:#eef3fa;--a34-ink:#0f223d;--a34-secondary:#334862;--a34-muted:#4e617b;--a34-link:#155ab6;--a34-line:#c7d3e2;--a34-icon:#385473;--a34-active:#e7f0ff;--a34-blue:#1664ca;--a34-danger:#a52b3d;--a34-success:#126447;--a34-focus:#1e65c7}
html[data-smith-theme="dark"]{color-scheme:dark;--a34-bg:#111a28;--a34-surface:#1c2b3e;--a34-surface2:#273a51;--a34-ink:#f4f8ff;--a34-secondary:#d4e0ef;--a34-muted:#bfcee2;--a34-link:#a5ceff;--a34-line:#455a72;--a34-icon:#c4d8ed;--a34-active:#274466;--a34-blue:#6db1ff;--a34-danger:#ffb9c3;--a34-success:#a3efc9;--a34-focus:#91c5ff}
html[data-smith-theme] body.smm-v31{--text:var(--a34-ink);--muted:var(--a34-muted);--line:var(--a34-line);--b25-text:var(--a34-ink);--b25-muted:var(--a34-muted);--b25-line:var(--a34-line);--b25-head:var(--a34-surface2);--b25-card:var(--a34-surface);--b25-field:var(--a34-surface);--b25-blue:var(--a34-link);--v31-readable-strong:var(--a34-ink);--v31-readable-secondary:var(--a34-secondary);--v31-readable-link:var(--a34-link);--v31-readable-icon:var(--a34-icon);--v31-border:var(--a34-line)}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-main,.main,.workspace,.panel,.v31-card,.v28-card,.b25-card,.b25-kpi,.order-main){color:var(--a34-ink)!important}
/* shared typography: headings, field labels, hint and ordinary anchor inside surface */
html[data-smith-theme] body.smm-v31 :is(.smm-admin-main,.main) :is(h1,h2,h3,h4,h5,legend,.panel-title,.section-head,.smp-step h2,.smp-select-label,.smm-comment-service-title strong,.b25-card-head h2){color:var(--a34-ink)!important;opacity:1!important}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-main,.main) :is(.muted,.small.muted,.help-text,.hint,.form-hint,.description,.subtext,.text-muted,.smp-step small,.panel-body>small,.panel-body>.small,.b25-helper,.v31-card small,.v31-card p,.small-muted){color:var(--a34-muted)!important;opacity:1!important}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-main,.main) :is(label,.smp-step label,.v31-card label,.b25-field-label){color:var(--a34-ink)!important;opacity:1!important}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-main,.main) :is(a:not(.btn):not(.b25-primary):not(.smm-admin-menu a),.text-link){color:var(--a34-link)}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-main,.main) :is(.panel,.v31-card,.b25-card,.accordion,.smp-summary){border-color:var(--a34-line)!important}
/* navigation: do not reduce opacity in light mode; maintain active indication */
html[data-smith-theme] body.smm-v31 :is(.sidebar,.smm-admin-sidebar) :is(.ui-icon,.smm22-ico,.smm-admin-menu-icon,.smm-admin-menu-icon svg,.v21-admin-more svg,.smp-nav svg,.nav svg){color:var(--a34-icon)!important;stroke:currentColor!important;opacity:1!important;filter:none!important}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-menu a,.smp-nav>a,.nav>a,.v22-nav-secondary a,.v22-nav-secondary summary,.v21-admin-more summary){color:var(--a34-secondary)!important;opacity:1!important}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-menu a.is-current,.smp-nav>a.active,.nav>a.active){color:var(--a34-link)!important;background:var(--a34-active)!important}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-menu a.is-current,.smp-nav>a.active,.nav>a.active) :is(svg,.ui-icon,.smm-admin-menu-icon){color:var(--a34-link)!important}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-menu-caption,.smm-admin-search-label,.smp-nav-caption,.smm-admin-footer,.sidebar-footer,.smm-admin-brand small,.brand small){color:var(--a34-muted)!important;opacity:1!important}
html[data-smith-theme] body.smm-v31 :is(.smm-admin-topbar,.topbar) :is(.ui-icon,.smm22-ico,.v31-collapse-button,.smm-user-single-toggle){color:var(--a34-icon)!important;stroke:currentColor!important;opacity:1!important}
/* order page: original V22 hard-coded dark-theme pale-blue summary on white */
html[data-smith-theme] body.customer-panel.smm-v31 :is(.v22-order-filter,.v22-other-services){background:var(--a34-surface)!important;border:1px solid var(--a34-line)!important;border-radius:12px!important;box-shadow:none!important}
html[data-smith-theme] body.customer-panel.smm-v31 :is(.v22-order-filter>summary,.v22-other-services>summary){background:var(--a34-surface2)!important;color:var(--a34-ink)!important;opacity:1!important;border-radius:11px!important;font-weight:750!important;min-height:46px!important}
html[data-smith-theme] body.customer-panel.smm-v31 :is(.v22-order-filter>summary,.v22-other-services>summary) :is(span,small,.ui-icon,.smm22-ico,svg){color:var(--a34-secondary)!important;stroke:currentColor!important;opacity:1!important;filter:none!important}
html[data-smith-theme] body.customer-panel.smm-v31 .v22-order-filter>summary>span{color:var(--a34-link)!important;font-weight:700!important;font-size:11px!important}
html[data-smith-theme] body.customer-panel.smm-v31 :is(.v22-order-filter-inner,.v22-other-services .smp-service-list){background:var(--a34-surface)!important;border-color:var(--a34-line)!important}
html[data-smith-theme] body.customer-panel.smm-v31 :is(.v22-order-filter,.v22-other-services) >summary:hover{background:var(--a34-active)!important}
html[data-smith-theme] body.customer-panel.smm-v31 :is(.smp-step small,.smp-service-choice,.smp-service-id,.smp-service-choice strong,.smp-select-label,.order-modes .btn:not(.primary),.quote small,.quote span,.panel-rules p,.panel-rules li,.order-info .muted){color:var(--a34-secondary)!important;opacity:1!important}
html[data-smith-theme] body.customer-panel.smm-v31 :is(.smp-service-choice,.smp-service-choice strong,.smp-service-list,.smp-select-label select){border-color:var(--a34-line)!important}
html[data-smith-theme] body.customer-panel.smm-v31 .smp-step>span:has(svg){color:var(--a34-link)!important}
html[data-smith-theme] body.customer-panel.smm-v31 .order-modes .btn:not(.primary){color:var(--a34-secondary)!important;background:var(--a34-surface)!important;border:1px solid var(--a34-line)!important}
html[data-smith-theme] body.customer-panel.smm-v31 .order-modes .btn:not(.primary):hover{background:var(--a34-active)!important;color:var(--a34-link)!important}
/* Brand filter buttons must not dim labels/icons on unselected states */
html[data-smith-theme] body.customer-panel.smm-v31 :is(.smp-platform-tab,.smp-platform-chip,.smp-platform-item,.platform-pill,.platform-button,.platform-tab,.smp-platform-picker button,.smp-platform-list button,.filter-platform button){color:var(--a34-secondary)!important;opacity:1!important;border-color:var(--a34-line)!important}
html[data-smith-theme] body.customer-panel.smm-v31 :is(.smp-platform-tab,.smp-platform-chip,.smp-platform-item,.platform-pill,.platform-button,.platform-tab) :is(small,span){color:inherit!important;opacity:1!important}
/* inputs, placeholders, dropdown options in both modes */
html[data-smith-theme] body.smm-v31 :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=file]),select,textarea){color:var(--a34-ink)!important;background:var(--a34-surface)!important;border-color:var(--a34-line)!important;opacity:1!important}
html[data-smith-theme] body.smm-v31 :is(input,textarea)::placeholder{color:var(--a34-muted)!important;opacity:1!important}
html[data-smith-theme] body.smm-v31 select option{background:var(--a34-surface)!important;color:var(--a34-ink)!important}
html[data-smith-theme] body.smm-v31 :is(input,select,textarea,button,summary,a):focus-visible{outline:3px solid var(--a34-focus)!important;outline-offset:2px!important}
/* table and service catalog: readable IDs, statuses, actions and rows */
html[data-smith-theme] body.smm-v31 :is(.table-scroll table,.b25-table,.aprice-table,.smm-auto-table,.v27-table,.smm-admin-main table,.main table){color:var(--a34-ink)!important}
html[data-smith-theme] body.smm-v31 :is(.table-scroll th,.b25-table th,.aprice-table th,.smm-auto-table th,.v27-table th,.smm-admin-main th,.main th){color:var(--a34-secondary)!important;background:var(--a34-surface2)!important;opacity:1!important;border-color:var(--a34-line)!important}
html[data-smith-theme] body.smm-v31 :is(.table-scroll td,.b25-table td,.aprice-table td,.smm-auto-table td,.v27-table td,.smm-admin-main td,.main td){color:var(--a34-ink)!important;opacity:1!important;border-color:var(--a34-line)!important}
html[data-smith-theme] body.smm-v31 :is(.table-scroll td small,.aprice-muted,.aprice-unit,.smm-auto-table small,.b25-table td small,.smm-comment-service-status,.smm-comment-service-title small){color:var(--a34-muted)!important;opacity:1!important}
html[data-smith-theme] body.smm-v31 .aprice-table .aprice-publication.is-visible{color:var(--a34-link)!important;background:var(--a34-active)!important}
html[data-smith-theme] body.smm-v31 .aprice-table .aprice-publication.is-hidden{color:var(--a34-muted)!important;background:var(--a34-surface2)!important}
/* override page-local dark backgrounds on independent Admin modules */
html[data-smith-theme] body.smm-v31 :is(.smm-auto-metric,.ab-stat,.ab-form){background:var(--a34-surface2)!important;color:var(--a34-ink)!important;border:1px solid var(--a34-line)!important}
html[data-smith-theme] body.smm-v31 :is(.smm-auto-metric small,.ab-stat small,.ab-hint,.smm-auto-table small,.smm-security-card p){color:var(--a34-muted)!important;opacity:1!important}
html[data-smith-theme] body.smm-v31 :is(.smm-auto-metric strong,.ab-stat strong,.smm-security-field){color:var(--a34-ink)!important}
html[data-smith-theme] body.smm-v31 .smm-auto-code{background:var(--a34-surface2)!important;color:var(--a34-ink)!important;border-color:var(--a34-line)!important}
html[data-smith-theme="light"] body.smm-v31 .smm-auto-warn{color:#915200!important}
html[data-smith-theme="dark"] body.smm-v31 .smm-auto-warn{color:#ffd58c!important}
html[data-smith-theme="light"] body.smm-v31 .smm-auto-ok{color:#126447!important}
html[data-smith-theme="dark"] body.smm-v31 .smm-auto-ok{color:#a3efc9!important}
html[data-smith-theme="light"] body.smm-v31 .smm-security-notice{background:#e9f6ef!important;color:#125a3a!important;border-color:#91c8a6!important}
html[data-smith-theme="light"] body.smm-v31 .smm-security-error{background:#fff0f2!important;color:#922e3e!important;border-color:#e0a2ac!important}
html[data-smith-theme] body.smm-v31 :is(.v31-bank-card,.v31-alert,.v31-image-field,.v28-help,.v28-stat){background:var(--a34-surface2)!important;color:var(--a34-ink)!important;border-color:var(--a34-line)!important}
/* order totals, buttons and status badges preserve distinct purpose */
html[data-smith-theme] body.smm-v31 :is(.v33-summary-total,.v33-summary-total>span,.v33-summary-total>strong){color:#fff!important}
html[data-smith-theme] body.smm-v31 :is(.btn.primary,.b25-primary,.v33-order-button){background:#155fc8!important;color:#fff!important}
html[data-smith-theme] body.smm-v31 :is(.btn.subtle,.btn.outline,.btn.secondary){color:var(--a34-secondary)!important;background:var(--a34-surface)!important;border:1px solid var(--a34-line)!important}
html[data-smith-theme] body.smm-v31 :is(.btn.subtle,.btn.outline,.btn.secondary):hover:not(:disabled){color:var(--a34-link)!important;background:var(--a34-active)!important}
html[data-smith-theme] body.smm-v31 :is(button:disabled,input:disabled,select:disabled){cursor:not-allowed}
html[data-smith-theme] body.smm-v31 :is(.v27-bad,.red,.notice.error){color:var(--a34-danger)!important}
html[data-smith-theme] body.smm-v31 :is(.v27-good,.green,.notice.success){color:var(--a34-success)!important}
/* Preserve visible scroll/focus cues; reduced motion preference is respected by V31. */
@media(max-width:600px){html[data-smith-theme] body.smm-v31 .v22-order-filter>summary>span{font-size:10px!important}html[data-smith-theme] body.smm-v31 :is(.v22-order-filter>summary,.v22-other-services>summary){gap:8px!important;flex-wrap:wrap}}

/* V34.1 — FIX: Auth/Login/Register brand contrast on the navy gradient.
   The global light theme colors are for white surfaces; the left auth panel
   stays dark blue in BOTH themes. Keep text white and accessible there only.
   This rule is intentionally scoped: does not alter sidebar/admin branding. */
html[data-smith-theme] body.customer-panel.smm-v31 .auth-layout .auth-intro .brand,
html[data-smith-theme] body.customer-panel.smm-v31 .auth-layout .auth-intro .brand strong {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
}
html[data-smith-theme] body.customer-panel.smm-v31 .auth-layout .auth-intro .brand small {
  color:#edf3ff !important;
  -webkit-text-fill-color:#edf3ff !important;
  opacity:1 !important;
}
