/* Account skins: surfaces and accents only; shared action gradients own buttons. */
:root { --skin-soft:#e8eee2; --skin-muted:#60705f; --skin-header:#344b40; --skin-header-end:#516650; }
:root[data-skin=ivory] { --locksmith-bg:#f6f5ed;--locksmith-panel:#fffef8;--locksmith-green:#315c46;--locksmith-text:#233a2d;--locksmith-border:#d9dfd1;--skin-soft:#e8eee2;--skin-muted:#60705f;--skin-header:#344b40;--skin-header-end:#516650; }
:root[data-skin=sage] { --locksmith-bg:#edf2e9;--locksmith-panel:#f8fbf5;--locksmith-green:#345b3d;--locksmith-text:#273c2d;--locksmith-border:#ccd7c6;--skin-soft:#dfe9d9;--skin-muted:#5a6c55;--skin-header:#34543d;--skin-header-end:#557257; }
:root[data-skin=ocean] { --locksmith-bg:#edf4fa;--locksmith-panel:#f7fbff;--locksmith-green:#245577;--locksmith-text:#253c4d;--locksmith-border:#ccdbe8;--skin-soft:#dfebf5;--skin-muted:#536d80;--skin-header:#244d69;--skin-header-end:#3d7293; }
:root[data-skin=teal] { --locksmith-bg:#eaf4f2;--locksmith-panel:#f6fcfb;--locksmith-green:#25635f;--locksmith-text:#23433e;--locksmith-border:#c7ddd6;--skin-soft:#d9ebe6;--skin-muted:#506d65;--skin-header:#285953;--skin-header-end:#477c70; }
:root[data-skin=mint] { --locksmith-bg:#edf7ef;--locksmith-panel:#f6fcf8;--locksmith-green:#2d654d;--locksmith-text:#264536;--locksmith-border:#cce2d3;--skin-soft:#deeee3;--skin-muted:#526e5c;--skin-header:#305d47;--skin-header-end:#4d7d63; }
:root[data-skin=lavender] { --locksmith-bg:#f2eef8;--locksmith-panel:#fcf9ff;--locksmith-green:#655082;--locksmith-text:#40334f;--locksmith-border:#ddd3e9;--skin-soft:#e9e0f1;--skin-muted:#6b5d7b;--skin-header:#574367;--skin-header-end:#806497; }
:root[data-skin=rose] { --locksmith-bg:#f8eef0;--locksmith-panel:#fff9fa;--locksmith-green:#874955;--locksmith-text:#50353c;--locksmith-border:#e7d2d7;--skin-soft:#f0e0e4;--skin-muted:#805e66;--skin-header:#75424e;--skin-header-end:#9b6672; }
:root[data-skin=peach] { --locksmith-bg:#faf0e9;--locksmith-panel:#fffaf6;--locksmith-green:#8a5038;--locksmith-text:#503b2e;--locksmith-border:#e8d5c6;--skin-soft:#f3e3d6;--skin-muted:#7b6450;--skin-header:#764b35;--skin-header-end:#956b49; }
:root[data-skin=sand] { --locksmith-bg:#f5f1e5;--locksmith-panel:#fffdf5;--locksmith-green:#796032;--locksmith-text:#483f2b;--locksmith-border:#e0d8bd;--skin-soft:#ece5d0;--skin-muted:#72674b;--skin-header:#66532f;--skin-header-end:#826f44; }
:root[data-skin=slate] { --locksmith-bg:#eef1f5;--locksmith-panel:#fafbfe;--locksmith-green:#485b75;--locksmith-text:#303c4b;--locksmith-border:#d3dbe5;--skin-soft:#e1e7ee;--skin-muted:#606e80;--skin-header:#3d4e64;--skin-header-end:#64758d; }
:root[data-skin=plum] { --locksmith-bg:#f6eef4;--locksmith-panel:#fdf9fc;--locksmith-green:#744566;--locksmith-text:#483344;--locksmith-border:#e3d0df;--skin-soft:#eedeea;--skin-muted:#795e73;--skin-header:#623953;--skin-header-end:#8b5d80; }
:root[data-skin=olive] { --locksmith-bg:#f0f3e7;--locksmith-panel:#fbfcf4;--locksmith-green:#576336;--locksmith-text:#394329;--locksmith-border:#d6dec5;--skin-soft:#e5ebd7;--skin-muted:#657050;--skin-header:#4d5933;--skin-header-end:#6b784a; }
body { background:var(--locksmith-bg);color:var(--locksmith-text); }
body :is(.app-header,.tree-nav,.login-card,.locksmith-panel) { background:var(--locksmith-panel);color:var(--locksmith-text);border-color:var(--locksmith-border); }
body .locksmith-status,body .eyebrow { color:var(--skin-muted); }
body .tree-nav :is(.menu-branch summary,.tree-leaf):is(:hover,:focus-visible),body .tree-leaf.active { background:var(--skin-soft);color:var(--locksmith-green); }
body .entry-screen { --entry-ink:var(--locksmith-text);--entry-muted:var(--skin-muted);--entry-border:var(--locksmith-border);--entry-green:var(--locksmith-green);background:var(--locksmith-bg);color:var(--locksmith-text);border-color:var(--locksmith-border); }
body :is(.entry-screen,.reports-hub,.report-preview-window) > .vfp-title { background:linear-gradient(110deg,var(--skin-header),var(--skin-header-end));color:#fff;border-color:var(--skin-header); }
body :is(.entry-screen,.reports-hub) :is(.vfp-body,.ma-body,.closepo-content,.product-basic,.product-header,.product-page,.account-page,.request-scroll,.specification-header,.approval-body) { background:var(--locksmith-bg);color:var(--locksmith-text); }
body .entry-screen :is(.entry-section,.maintenance-section,.closepo-details,.pf-details,.locksmith-po-terms) { background:var(--locksmith-panel);border-color:var(--locksmith-border); }
body .entry-screen :is(.vfp-label,.closepo-field > label,.entry-field > label,.account-field label,.product-field > label,.bill-header label,.cash-header label,.entry-section h2,.maintenance-section h2) { color:var(--locksmith-text); }
body .entry-screen :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { background:var(--locksmith-panel);color:var(--locksmith-text);border-color:var(--locksmith-border); }
body .entry-screen :is(input[readonly],textarea[readonly],select:disabled) { background:var(--skin-soft);color:var(--locksmith-text); }
body .entry-screen :is(input,select,textarea):focus:not([readonly]) { background:var(--locksmith-panel);border-color:var(--locksmith-green); }
body :is(button,input,select,textarea):focus-visible { outline-color:var(--locksmith-green)!important; }
body .entry-screen :is(.vfp-actions,.vfp-footer,.request-actions,.bill-totals,.cash-totals,.closepo-totals,.pf-totals) { background:var(--skin-soft);border-color:var(--locksmith-border);color:var(--locksmith-text); }
body .entry-screen.compact-entry :is(.ma-body,.closepo-content) > :is(.bill-actions,.cash-actions,.ma-toolbar):first-of-type,
body .entry-screen.compact-entry .ma-body > .bill-heading + .bill-actions { background:var(--locksmith-bg);border-color:var(--locksmith-border); }
body .entry-screen table,body .entry-screen td { background:var(--locksmith-panel);color:var(--locksmith-text); }
body :is(.entry-screen,.reports-hub) th { background:var(--skin-soft);color:var(--locksmith-text);border-color:var(--locksmith-border); }
body .entry-screen tbody tr:hover > td { background:var(--skin-soft); }
body .entry-screen :is(tr.selected,tr.gate-selected) > td { background:var(--skin-soft)!important;color:var(--locksmith-text);box-shadow:inset 0 -2px var(--locksmith-green); }
body .entry-screen .bom-grid-row.selected { background:var(--locksmith-green);color:#fff; }
body .reports-hub :is(.reports-heading h1,.reports-section-heading h2,.report-card-copy) { color:var(--locksmith-text); }
body .reports-hub :is(.reports-eyebrow,.reports-heading p,.reports-section-heading > span) { color:var(--skin-muted); }
/* Preserve the owner-approved blue home for the default; other skins tint it. */
html[data-skin]:not([data-skin=ivory]) body .locksmith-home { background:linear-gradient(160deg,var(--skin-header),var(--skin-header-end) 55%,var(--skin-soft));border-color:var(--locksmith-border); }
html[data-skin]:not([data-skin=ivory]) body :is(.locksmith-home-login,.locksmith-home-clock time) { color:var(--locksmith-text); }
.appearance-panel { max-width:1120px; }
.appearance-panel > p { line-height:1.6; }
.skin-picker { padding:0;border:0;margin:22px 0 18px;min-width:0; }
.skin-picker legend { font-weight:700;margin-bottom:12px; }
.skin-options { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.skin-option { display:grid;grid-template-columns:20px 62px minmax(0,1fr) 16px;align-items:center;gap:10px;min-width:0;padding:14px 12px;border:1px solid var(--locksmith-border);border-radius:12px;background:var(--locksmith-panel);cursor:pointer; }
.skin-option:hover { border-color:var(--locksmith-green); }
.skin-option.selected { border-color:var(--locksmith-green);outline:2px solid var(--locksmith-green);outline-offset:-2px;background:var(--skin-soft); }
.skin-option:focus-within { outline:3px solid var(--locksmith-green);outline-offset:3px; }
.skin-option input { margin:0;width:17px;height:17px;accent-color:var(--locksmith-green); }
.skin-swatch { display:grid;grid-template-columns:16px 1fr;gap:4px;height:44px;background:var(--swatch-surface);border:1px solid #0000001c;border-radius:6px;padding:6px;overflow:hidden; }
.skin-swatch > span { grid-column:1/-1;height:8px;background:var(--swatch-accent);border-radius:2px; }
.skin-swatch i { background:var(--swatch-accent);opacity:.24;border-radius:2px; }
.skin-swatch i:last-child { opacity:.10; }
.skin-name { font-size:14px;font-weight:600;line-height:1.4; }
.skin-selected { color:var(--locksmith-green);font-weight:800; }
.skin-picker:disabled .skin-option { cursor:wait;opacity:.7; }
@media(max-width:1150px) { .skin-options { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .skin-options { grid-template-columns:minmax(0,1fr); }.skin-option { padding:12px; } }

:root{--locksmith-bg:#f6f5ed;--locksmith-panel:#fffef8;--locksmith-green:#315c46;--locksmith-text:#233a2d;--locksmith-border:#d9dfd1;--menu-font:Aptos;--menu-size:14px;--menu-height:40px;--menu-text:var(--locksmith-text);--form-font:"Segoe UI";--form-size:13px;--form-height:28px;--form-text:var(--locksmith-text);--report-font:Aptos;--report-size:12px;--report-height:32px;--report-text:var(--locksmith-text)}
.appearance-panel{padding:24px;background:var(--locksmith-panel);border:1px solid var(--locksmith-border);border-radius:16px;box-shadow:0 8px 28px #203c2310;max-width:1120px}.style-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.style-options fieldset{min-width:0;border:1px solid var(--locksmith-border);border-radius:12px;padding:16px}.style-options legend{font-weight:700;padding:0 6px}.style-options label{display:grid;gap:6px;margin-bottom:12px}.style-options :is(input,select){width:100%;min-height:36px;padding:6px 10px;border:1px solid var(--locksmith-border);border-radius:6px;background:var(--locksmith-panel);color:var(--locksmith-text);font:14px 'Segoe UI',sans-serif}.style-options input[type=color]{padding:3px}.style-options .auto-color{display:flex;align-items:center;font-size:13px}.style-options input[type=checkbox]{width:16px;min-height:16px}.shell-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.shell-actions button{padding:9px 14px}.appearance-help{line-height:1.6}.brand,.brand span{color:var(--locksmith-green)}
body .tree-nav :is(summary,button,.nav-label,small){font-family:var(--menu-font),'Segoe UI',Arial,sans-serif;font-size:var(--menu-size);color:var(--menu-text)}
body .tree-nav :is(.menu-branch summary,.tree-leaf){min-height:var(--menu-height);line-height:1.4}
body .tree-nav :is(.menu-branch summary:is(:hover,:focus-visible),.tree-leaf:not(:disabled):is(:hover,:focus-visible))>span.nav-label{font-size:calc(var(--menu-size) + 1px);font-weight:700}
body :is(.vfp-window,.entry-screen) :is(label,input,select,textarea,.product-field,.vfp-label,.entry-field){font-family:var(--form-font),'Segoe UI',Arial,sans-serif!important;font-size:var(--form-size)!important;color:var(--form-text)}
body :is(.entry-screen,.product-window) :is(input:not([type=checkbox]):not([type=radio]),select){height:var(--form-height);min-height:var(--form-height)}
body .product-window{background:var(--locksmith-panel);border:1px solid var(--locksmith-border);border-radius:14px;box-shadow:0 8px 28px #203c2310}
body .product-window>.vfp-title{background:linear-gradient(110deg,var(--skin-header),var(--skin-header-end));color:white;min-height:42px}
body .product-window :is(.vfp-body,.product-basic,.product-page,.product-header){background:var(--locksmith-bg);color:var(--form-text)}
body .product-window :is(.product-header,.product-main-fields,.product-side-fields,.product-spec-page){border-color:var(--locksmith-border)}
body .product-window .product-tabs{gap:8px;padding:12px;background:var(--skin-soft);border-color:var(--locksmith-border)}
body .product-window .product-field>label{color:var(--form-text);text-shadow:none;line-height:1.45}
body .product-window :is(input,select,textarea){border:1px solid var(--locksmith-border);border-radius:7px;padding:7px 10px;background:var(--locksmith-panel);color:var(--form-text)}
body .product-window :is(input[readonly],textarea[readonly],select:disabled){background:var(--skin-soft)}
body .product-window :is(.vfp-actions,.vfp-footer){background:var(--skin-soft);border-color:var(--locksmith-border)}
body :is(.reports-hub,.report-preview-window) :is(label,table,input,select,.report-card-copy){font-family:var(--report-font),'Segoe UI',Arial,sans-serif;font-size:var(--report-size);color:var(--report-text)}
body .reports-hub :is(td,th){height:var(--report-height)}
body .reports-hub :is(.report-card,.report-section){border-color:var(--locksmith-border)}
@media(max-width:800px){.style-options{grid-template-columns:1fr}.appearance-panel{padding:16px}}

body .workspace>.erp-home[hidden]{display:none!important}
body .tree-nav .shell-actions{display:flex;flex-direction:column;gap:8px;width:100%;padding:0 4px}
body .tree-nav .shell-actions button{width:100%;min-height:var(--menu-height);height:auto;overflow:hidden}
body .tree-nav:not(:hover):not(:focus-within) .shell-actions button{justify-content:center;padding:8px 4px}
html[data-skin]:not([data-skin=ivory]) body .erp-home{background:linear-gradient(160deg,var(--skin-header),var(--skin-header-end) 55%,var(--skin-soft));border-color:var(--locksmith-border)}
body .entry-screen :is(input,select,textarea,label,.vfp-label){color:var(--form-text)!important}

body .tree-nav .shell-actions button:not(:disabled),body .tree-nav .shell-actions button:not(:disabled) .nav-label{color:#fff}


body .master-workbench :is(label,input,table,td,th){font-family:var(--form-font),Arial,sans-serif;font-size:var(--form-size);color:var(--form-text)}body .master-workbench input{min-height:var(--form-height);padding:4px 8px}body .master-workbench td{height:var(--form-height)}
.menu-layout-settings{min-width:0;margin-top:16px;padding:16px;border:1px solid var(--locksmith-border);border-radius:12px;display:flex;flex-wrap:wrap;gap:16px;align-items:center}.menu-layout-settings legend{font-weight:700;padding:0 6px}.menu-layout-settings label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.menu-layout-settings input[type=number]{width:100px;min-height:var(--form-height,28px);padding:4px 8px;border:1px solid var(--locksmith-border);border-radius:6px;background:var(--locksmith-panel);color:var(--locksmith-text);font:inherit}
