/* Palette names/colors follow the current Windows ThemeService; web preferences are separate. */
[data-web-theme]{--surface:#fff;--page:#f3f6fa;--ink:#23324a;--muted:#6b7a90;--line:#ccd6e2;--soft:#f7f9fc;--accent:#236e72;--accent-ink:#fff;color:var(--ink);background:var(--page)}
[data-web-theme="dark"]{--surface:#192a3d;--page:#101c2a;--ink:#edf3fa;--muted:#b6c7d9;--line:#466078;--soft:#22364b;--accent:#236e72}
[data-web-theme="ocean"]{--page:#f0f5fc;--ink:#1b2f4c;--muted:#596f8d;--line:#c8d7ed;--soft:#f5f8fe;--accent:#214f92}
[data-web-theme="modern-light"]{--page:#f1f5f6;--ink:#162b3c;--muted:#617481;--line:#d7e2e7;--soft:#f6f9fa;--accent:linear-gradient(135deg,#0a9b8b,#087e7b)}
[data-web-theme="modern-dark"]{--surface:#18202b;--page:#0c121c;--ink:#f1f4f9;--muted:#adb9cb;--line:#344151;--soft:#202a38;--accent:linear-gradient(135deg,#f9c44c,#e89e20);--accent-ink:#18202b}
body[data-web-theme] .workspace,body[data-web-theme] .content{background:var(--page);color:var(--ink)}
[data-web-theme] .product-card,[data-web-theme] header,[data-web-theme] dialog,[data-web-theme] .checkout-product-tile,[data-web-theme] .summary-card{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-web-theme] input,[data-web-theme] select,[data-web-theme] textarea{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-web-theme] .primary{background:var(--accent);color:var(--accent-ink)}
[data-web-theme] .secondary,[data-web-theme] th,[data-web-theme] .checkout-right,[data-web-theme] .checkout-scope,[data-web-theme] .checkout-tile-search,[data-web-theme] .checkout-categories{background:var(--soft);color:var(--ink);border-color:var(--line)}
[data-web-theme] td{border-color:var(--line)}[data-web-theme] .price,[data-web-theme] h1,[data-web-theme] h2{color:var(--ink)}
[data-web-theme] .checkout-categories button{background:var(--surface);color:var(--ink);border-color:var(--line)}[data-web-theme] .checkout-categories button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
[data-web-theme] .checkout-actions .secondary{background:var(--soft);color:var(--ink);border-color:var(--line)}
body[data-web-theme] #checkout-view #checkout-basket td,body[data-web-theme] #checkout-view #checkout-basket td strong{font-size:var(--basket-size,16px);font-weight:var(--basket-weight,400)}
[data-web-theme] .checkout-product-name{font-size:var(--product-size,14px);font-weight:var(--product-weight,600);line-height:1.25;min-height:2.5em}
[data-web-theme] .checkout-product-price{font-size:var(--product-size,14px)}
[data-web-theme] .checkout-tiles{grid-template-columns:repeat(auto-fill,minmax(min(var(--tile-width,119px),100%),1fr))}
[data-web-theme] .checkout-product-tile{min-height:var(--tile-height,138px)}
[data-web-theme] .checkout-actions .checkout-action{font-size:var(--payment-font,16px);min-height:var(--payment-height,64px)}
.hide-checkout-categories .checkout-categories{display:none}.hide-checkout-tiles .checkout-right,.hide-checkout-tiles .appearance-preview-products{display:none}.hide-checkout-tiles .checkout-main{grid-template-columns:1fr}.hide-checkout-credit #checkout-pay-credit,.appearance-preview.hide-checkout-credit .pay-credit{display:none}
.plain-payment-colors .checkout-money{background:var(--soft);color:var(--ink);border-color:var(--line)}
.checkout-right>.checkout-categories{grid-row:1}.checkout-right>#checkout-tiles-status{grid-row:2}.checkout-right>.checkout-tiles{grid-row:3}.checkout-right>#checkout-more-products{grid-row:4}.checkout-right>#checkout-add-favorite{grid-row:5}.hide-checkout-categories .checkout-right{grid-template-rows:0 auto minmax(0,1fr) auto auto}
[data-web-theme] .checkout-product-picture{height:max(32px,calc(var(--tile-height,138px) - var(--product-size,14px)*3.8 - 30px))}
[data-web-theme]{--accent-text:#18746c;--sidebar:#102438;--sidebar-selected:#205b62}[data-web-theme="dark"]{--accent-text:#75e1c2}[data-web-theme="ocean"]{--accent-text:#245ba6;--sidebar:#112644;--sidebar-selected:#214f79}[data-web-theme="modern-light"]{--accent-text:#087968;--sidebar:#102536;--sidebar-selected:#087f77}[data-web-theme="modern-dark"]{--accent-text:#ffd06b;--sidebar:#101722;--sidebar-selected:#47371a}
body[data-web-theme] .sidebar{background:var(--sidebar)}body[data-web-theme] .module-group-button.module-active{background:var(--sidebar-selected)}[data-web-theme] .checkout-scope button[aria-pressed=true]{color:var(--accent-text);border-color:var(--accent-text)}
body[data-web-theme="modern-light"] .app-shell,body[data-web-theme="modern-dark"] .app-shell{grid-template-columns:232px minmax(0,1fr)}@media(max-width:620px){body[data-web-theme="modern-light"] .app-shell,body[data-web-theme="modern-dark"] .app-shell{display:block}}
body[data-web-theme] .app-shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}@media(max-width:620px){body[data-web-theme] .app-shell.sidebar-collapsed{display:block}}
.appearance-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,1.3fr);gap:24px;align-items:start}.appearance-preview{padding:12px;border-radius:14px;border:1px solid var(--line);overflow:auto}.appearance-preview .preview-panel{padding:12px}.appearance-preview-products{padding:10px;display:grid;grid-template-columns:var(--tile-width,119px);margin-bottom:12px}.appearance-preview-basket td{font-size:var(--basket-size,16px);font-weight:var(--basket-weight,400)}.appearance-preview .checkout-money{padding:8px;min-height:80px}.appearance-preview .checkout-money p{font-size:10px}.appearance-preview .checkout-money strong{font-size:19px}.appearance-preview .checkout-categories{grid-template-rows:auto}.appearance-preview .checkout-actions button{min-width:0;flex:1}#appearance-sliders>div{margin:10px 0 20px}#appearance-sliders output{font-weight:700;float:right}#appearance-sliders input{width:100%;padding:0}.appearance-preview-basket{margin-bottom:12px}.appearance-layout .form-grid{padding:16px}.appearance-layout .row-actions{padding:0 16px 16px}
body[data-web-theme="modern-light"] .sidebar,body[data-web-theme="modern-dark"] .sidebar{margin:14px 0 14px 14px;height:calc(100vh - 28px);border-radius:22px}
@media(max-width:1100px){.appearance-layout{grid-template-columns:1fr}.appearance-preview{max-width:100%}}@media(max-width:620px){body[data-web-theme="modern-light"] .sidebar,body[data-web-theme="modern-dark"] .sidebar{margin:0;height:auto;border-radius:0}}
