/* Shared light surfaces for account, customer and administration panels. */
:is(.auth-page,.simple-auth-page,.role-select-page,.dashboard-page,.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page,.printing-panel,.cart-page,.checkout-page) {
 --bg:#f5f2ed; --surface:#fff; --text:#302920; --heading-color:#302920; --muted:#71675c; --green:#956623; --accent:#956623; --green-soft:#f3eadc;
 background:#f5f2ed; color:#302920; min-width:0;
}
:is(.auth-page,.simple-auth-page,.role-select-page,.dashboard-page,.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page,.printing-panel,.cart-page,.checkout-page) :is(h1,h2,h3,h4,label) {color:#302920!important;}
:is(.auth-page,.simple-auth-page,.role-select-page,.dashboard-page,.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page,.printing-panel,.cart-page,.checkout-page) :is(p,small,.form-note,.auth-switch,.empty-state) {color:#71675c!important;}
:is(.auth-page,.simple-auth-page,.role-select-page,.dashboard-page,.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page,.printing-panel,.cart-page,.checkout-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) {background:#fff!important;color:#302920!important;border-color:#cfc5b8!important;max-width:100%;font-size:16px;}
:is(.auth-page,.simple-auth-page,.dashboard-page,.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page) :is(input,textarea)::placeholder {color:#84786a!important;opacity:1;}
:is(.admin-form-card,.form-page-card,.dashboard-panel,.simple-auth-card,.auth-card,.role-choice-card,.customer-order-card,.cart-summary,.checkout-summary,.checkout-card,.feedback-admin-card) {background:#fff!important;color:#302920;border:1px solid #e0d8cc;border-radius:18px;box-shadow:0 8px 28px #49352108;min-width:0;}
.auth-page {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:stretch;}
.auth-visual {background:linear-gradient(145deg,#f0e3ce,#fbf7f0)!important;padding:48px 32px;}
.auth-visual::after {background:radial-gradient(circle,#e7d1af55,transparent 65%);}
.auth-visual-content h1 {text-shadow:none;}
.auth-visual-content p {color:#625440;}
.auth-visual .eyebrow,.auth-page .role-badge {color:#80551f;}
.role-large-icon,.simple-auth-icon {background:#f3eadc!important;color:#80551f;box-shadow:none;}
.auth-panel {padding:40px clamp(20px,4vw,56px);min-width:0;}
.auth-card {padding:32px;width:min(100%,560px);}
.auth-card.wide-card {width:min(100%,760px);}
.auth-card-head {margin-bottom:28px;}
.auth-card-head h2 {font-size:clamp(25px,3vw,32px);line-height:1.5;}
.auth-form {gap:22px;}
.field-group {min-width:0;gap:8px;}
.input-shell {position:relative;min-width:0;}
.input-shell > :is(i,.local-icon) {position:absolute;right:16px;left:auto;top:26px;transform:translateY(-50%);width:18px;height:18px;line-height:1;color:#88775d;pointer-events:none;margin:0;}
.input-shell input {height:52px;padding-right:46px;padding-left:16px;}
.input-shell.has-password-toggle input {padding-left:52px;}
.input-shell .password-toggle {top:26px;left:8px;width:40px;height:40px;color:#72624b;}
.input-shell :is(input,textarea):focus {outline:2px solid #b48a48;outline-offset:2px;}
.auth-register-panel {margin-top:28px;padding:22px;background:#faf7f1!important;border:1px solid #e5d9c5;border-radius:14px;display:grid;gap:12px;text-align:center;}
.auth-register-panel p {margin:0;line-height:1.9;}
.auth-register-actions {display:flex;margin:0;}
.auth-register-actions a {width:100%;justify-content:center;min-height:48px;}
.auth-unified-login {display:block;margin:0;color:#80551f;}
.auth-switch {margin-top:24px;line-height:2;}
.auth-page .form-note {background:#f8f5ef;border-color:#e0d8cc;}
.auth-page :is(.submit-btn,.primary-action),.simple-auth-page .submit-btn {background:#956623!important;color:#fff!important;justify-content:center;min-height:50px;box-shadow:none;}
.auth-page :is(.submit-btn,.primary-action):hover,.simple-auth-page .submit-btn:hover {background:#77501b!important;transform:none;}
.auth-page .form-alert,.auth-page .field-error {color:#a12828!important;}
.role-choice-card {min-height:230px;gap:16px;}
.role-choice-card > .local-icon {width:32px;height:32px;color:#80551f;}
.dashboard-sidebar {background:#fff!important;border-color:#e0d8cc;padding:24px 16px;}
.dashboard-sidebar :is(a,h3,span) {color:#554635!important;}
.dashboard-profile {border-color:#e0d8cc;}
.dashboard-menu a {min-width:0;}
.dashboard-menu a:hover,.dashboard-menu a.active {background:#efe3cf!important;color:#68481d!important;}
.dashboard-menu .local-icon {flex:0 0 20px;width:20px;height:20px;}
.dashboard-menu .admin-nav-local-icon {filter:none!important;}
.dashboard-content {min-width:0;padding:32px;}
.dashboard-topbar {padding:24px;border-radius:16px;flex-wrap:wrap;}
:is(.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page) {padding:36px clamp(16px,4vw,56px);max-width:1440px;margin-inline:auto;width:100%;}
:is(.admin-page-head,.admin-products-head,.panel-heading,.form-actions,.printing-actions) {gap:16px;flex-wrap:wrap;}
:is(.admin-form-card,.form-page-card,.dashboard-panel) {padding:24px;}
:is(.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page) :is(.form-grid,.form-group,.field-group) {min-width:0;}
:is(.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page) :is(table,th,td) {background:#fff;color:#42382c;border-color:#e0d8cc;}
:is(.table-wrap,.table-responsive,.payment-table-wrap,.inventory-table-wrap) {max-width:100%;overflow-x:auto;}
:is(.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page) .form-control {padding-inline:14px;}
:is(.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page) textarea.form-control {height:auto;min-height:120px;padding-block:12px;}
@media(max-width:1000px){
 .auth-page {grid-template-columns:1fr;}.auth-visual {min-height:0;padding:30px 24px;}.auth-visual-content h1{font-size:30px;}.auth-visual .role-large-icon{display:none;}.auth-panel{padding:28px 20px;}
 .dashboard-page{grid-template-columns:1fr;}.dashboard-sidebar{padding:18px;}.dashboard-menu{display:flex;flex-wrap:wrap;min-width:0;overflow:visible;}.dashboard-menu a{flex:1 1 180px;}.dashboard-profile{padding:0 0 16px;}.dashboard-content{padding:24px;}
}
@media(max-width:600px){
 .auth-panel{padding:20px 12px;}.auth-card{padding:24px 18px;}.auth-visual{padding:24px 18px;}.auth-visual-content h1{font-size:26px;}.auth-visual-content p{font-size:14px;}.auth-card-head{margin-bottom:22px;}
 .form-grid.two-cols,.role-choice-grid{grid-template-columns:1fr;}.auth-register-panel{padding:18px;margin-top:24px;}.auth-register-actions a{white-space:normal;}
 .dashboard-content{padding:16px 12px;}.dashboard-topbar{padding:20px;}.dashboard-menu a{flex-basis:140px;padding:12px;font-size:12px;}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 :is(.admin-form-card,.form-page-card,.dashboard-panel){padding:18px;}.admin-page-head{align-items:stretch;}.admin-page-head>*{min-width:0;max-width:100%;}.simple-auth-page,.role-select-page{padding:28px 12px;}.simple-auth-card{padding:24px 18px;}
 .form-actions>*{max-width:100%;}.printing-panel{padding:20px 16px;}.printing-actions{align-items:stretch;}.printing-actions>a{white-space:normal;}
}
.auth-visual-content {background:rgba(255,250,242,.94);border:1px solid #e8dcc8;border-radius:20px;padding:28px;box-shadow:0 8px 32px #3029200d;}
.auth-visual-content .eyebrow {color:#80551f;}
@media(max-width:600px){.auth-visual-content{padding:20px;}.auth-visual-content h1{margin:8px 0;}.auth-visual-content p{line-height:1.9;}}
:is(.upload-field,.size-rule-card,.size-measure-row,.admin-color-choice,.shipping-method-admin-row,.shipping-method-admin-state,.inventory-card,.inventory-actions form,.kscoin-mini-stats>div,.admin-product-search,.admin-products-table-wrap,.product-filter-picker>div,.product-filter-picker>div label) {background:#faf7f1!important;color:#42382c;border-color:#ded3c3;}
:is(.size-measure-row>b,.size-rule-card-head,.kscoin-mini-stats span,.inventory-threshold,.upload-field label,.upload-field small) {color:#71604a!important;}
.admin-products-table-wrap {overflow-x:auto;max-width:100%;}
:is(.admin-product-form-page,.admin-products-page,.admin-page) input[type=file] {height:auto;min-height:52px;padding:8px!important;}
@media(max-width:600px){.inventory-inline-fields{grid-template-columns:minmax(0,1fr);}.size-measure-row>span{grid-template-columns:repeat(2,minmax(0,1fr));}}
:is(.auth-page,.simple-auth-page,.dashboard-page,.admin-page,.admin-manage-page,.admin-products-page,.admin-product-form-page,.printing-panel) input:is([type=checkbox],[type=radio]) {width:18px!important;height:18px!important;min-width:18px;min-height:18px;padding:0!important;flex:0 0 18px;background:#fff!important;color:#42382c!important;accent-color:#956623;box-shadow:none;border-radius:4px;}
.measurement-toggle-grid>label {background:#faf7f1!important;color:#514636;border-color:#ded3c3;display:flex;align-items:center;gap:10px;}
