:root{color:#17202a;background:#f5f7f8;font-family:Microsoft YaHei,PingFang SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}button,.file-button{border:1px solid #cbd5dc;border-radius:6px;background:#fff;color:#17202a;min-height:36px;padding:7px 12px;cursor:pointer}button:hover,.file-button:hover{border-color:#8796a1}button:disabled{cursor:not-allowed;opacity:.48}.primary{border-color:#1f7a5c;background:#1f7a5c;color:#fff}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(420px,100%);background:#fff;border:1px solid #dde4e8;border-radius:8px;padding:24px}.auth-card h1{margin-bottom:8px}.auth-card p{color:#64727d;margin-bottom:18px}.auth-card .primary{width:100%;margin-top:8px}.auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:14px}.auth-tabs button{min-height:34px;padding:6px 8px;font-size:13px}.auth-tabs button.active{border-color:#1f7a5c;background:#eef7f3;color:#1f664e;font-weight:600}.code-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px;align-items:end}.code-row .field{margin-bottom:0}.code-row button{margin-bottom:10px}.app-shell{min-height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr)}.admin-shell{min-height:100vh;padding:24px;display:grid;gap:16px}.admin-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px}.admin-topbar p{color:#64727d;margin-top:6px}.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;border:1px solid #cbd5dc;border-radius:6px;background:#fff;color:#17202a;text-decoration:none}.button-link:hover{border-color:#8796a1}.admin-stats{grid-template-columns:repeat(6,minmax(120px,1fr))}.admin-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:14px;align-items:start}.admin-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-table{max-height:520px}.admin-table.small{max-height:320px}.admin-customer-list{max-height:520px;overflow:auto}.admin-customer-card{border:1px solid #dde4e8;border-radius:8px;background:#fff;overflow:hidden}.admin-customer-open{width:100%;border:0;border-radius:0;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px;text-align:left}.admin-customer-open:hover{background:#f7faf9}.admin-customer-open span{color:#6a7882;font-size:13px}.admin-price-table{max-height:min(620px,calc(100vh - 230px))}.admin-price-table table{min-width:760px}.admin-price-modal{grid-template-rows:auto minmax(0,1fr) auto}.sidebar{position:sticky;top:0;height:100vh;background:#17202a;color:#fff;padding:18px 14px;display:flex;flex-direction:column;gap:18px}.brand{display:grid;gap:5px;padding:4px 4px 12px;border-bottom:1px solid rgba(255,255,255,.12)}.brand strong{font-size:18px;line-height:1.3}.brand span{color:#b8c2ca;font-size:13px}.nav{display:grid;gap:8px}.nav-item,.logout{width:100%;border-color:transparent;background:transparent;color:#dbe3e8;text-align:left}.nav-item:hover,.logout:hover,.nav-item.active{border-color:#ffffff14;background:#ffffff1a;color:#fff}.logout{margin-top:auto}.page{min-width:0;padding:24px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}h1,h2,p{margin:0}h1{font-size:28px;line-height:1.25}h2{font-size:17px;line-height:1.35}.page-head p{color:#64727d;margin-top:6px}.actions,.inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.backup-actions{margin-top:12px}.user-pill{display:inline-flex;align-items:center;min-height:36px;padding:0 10px;border:1px solid #dde4e8;border-radius:6px;background:#eef5f2;color:#42515b;font-size:13px}.file-button{display:inline-flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.file-button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.stats{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(120px,1fr));gap:10px;margin-bottom:14px}.stats.compact{grid-template-columns:repeat(3,minmax(120px,1fr))}.stats div{background:#fff;border:1px solid #dde4e8;border-radius:8px;padding:14px;min-width:0}.stats span{display:block;font-size:20px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stats strong{display:block;color:#6a7882;font-size:13px;font-weight:500;margin-top:5px}.alert{border:1px solid #d48b7a;background:#fff4f1;color:#943b2c;border-radius:8px;padding:12px 14px;margin-bottom:14px}.input-error{border-color:#d0503f!important;background:#fff8f6!important;box-shadow:0 0 0 3px #d0503f1f}.field-error{color:#b83f31;font-size:13px;font-weight:600}.notice{border:1px solid #87b9a7;background:#f0faf5;color:#1f664e;border-radius:8px;padding:12px 14px;margin-bottom:14px}.layout{display:grid;grid-template-columns:minmax(360px,430px) minmax(0,1fr);gap:14px;align-items:start}.home-grid{display:grid;gap:14px}.intro-panel{display:grid;gap:10px}.intro-panel p{color:#4a5862;line-height:1.8}.panel{background:#fff;border:1px solid #dde4e8;border-radius:8px;padding:16px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-head span{color:#6a7882;font-size:13px}.field{display:grid;gap:6px;color:#4a5862;font-size:13px;margin-bottom:10px}.field-title{color:#4a5862;font-size:13px}.inline-hint{margin-top:0}select,input[type=number],input[type=text],input[type=password],input:not([type]){width:100%;border:1px solid #cbd5dc;border-radius:6px;min-height:36px;padding:7px 9px;background:#fff;color:#17202a}.price-table{border:1px solid #dde4e8;border-radius:8px;overflow:hidden;margin-top:14px}.price-row{display:grid;grid-template-columns:1fr 88px 118px;gap:8px;align-items:center;min-height:46px;padding:8px 10px;border-top:1px solid #edf1f3}.price-row:first-child{border-top:0}.price-row.header{background:#eef5f2;color:#42515b;font-size:13px;min-height:38px}.empty{color:#6a7882;background:#f7f9fa;border:1px dashed #cbd5dc;border-radius:8px;padding:14px}.empty.large{min-height:320px;display:grid;place-items:center}.table-wrap{overflow:auto;max-height:calc(100vh - 260px);border:1px solid #dde4e8;border-radius:8px}table{width:100%;border-collapse:collapse;min-width:860px;font-size:13px}th,td{padding:9px 10px;border-bottom:1px solid #edf1f3;text-align:left;white-space:nowrap}th{position:sticky;top:0;background:#eef5f2;color:#42515b;z-index:0}tbody tr:hover{background:#f7faf8}tbody tr.bad{background:#fff8f2}.hint{color:#6a7882;font-size:13px;margin-top:10px}.customer-toolbar{margin-bottom:12px}.search-field{max-width:360px}.customer-list{display:grid;gap:8px}.surcharge-list{display:grid;gap:10px}.surcharge-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid #dde4e8;border-radius:8px;padding:12px;background:#fff}.surcharge-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.surcharge-info strong{min-width:120px}.surcharge-info span{color:#4a5862;font-size:13px}.customer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;border:1px solid #dde4e8;border-radius:8px;padding:8px 10px 8px 14px;background:#fff}.customer-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.switch{position:relative;display:inline-flex;align-items:center;gap:8px;width:86px;min-height:34px;border-radius:999px;padding:3px 10px;border:1px solid #cbd5dc;background:#eef1f3;color:#5a6670;transition:background .18s ease,border-color .18s ease,color .18s ease}.switch span{position:absolute;top:4px;left:4px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #17202a33;transition:transform .18s ease}.switch strong{position:relative;z-index:1;width:100%;font-size:13px;font-weight:600;text-align:right}.switch.on{border-color:#1f7a5c;background:#1f7a5c;color:#fff}.switch.on span{transform:translate(50px)}.switch.on strong{text-align:left}.switch.off{border-color:#c3cbd1;background:#e8edf0;color:#687681}.switch.off:hover{border-color:#b05a50;color:#943b2c}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#17202a85;display:grid;place-items:center;padding:24px}.modal{width:min(1180px,100%);max-height:min(840px,calc(100vh - 48px));background:#fff;border-radius:8px;border:1px solid #dde4e8;padding:16px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px}.copy-modal{width:min(520px,100%);background:#fff;border-radius:8px;border:1px solid #dde4e8;padding:16px;display:grid;gap:12px}.surcharge-modal{width:min(760px,100%)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.customer-checks{max-height:170px;overflow:auto;border:1px solid #dde4e8;border-radius:8px;padding:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 10px}.customer-checks label,.check-line{display:flex;align-items:center;gap:6px;color:#4a5862;font-size:13px}textarea{width:100%;min-height:72px;resize:vertical;border:1px solid #cbd5dc;border-radius:6px;padding:7px 9px;font:inherit}.modal-head,.modal-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-head p{color:#6a7882;margin-top:4px}.modal-actions{justify-content:flex-end}.price-grid-wrap{overflow:auto;border:1px solid #dde4e8;border-radius:8px}.price-grid{min-width:980px}.price-grid th:first-child{left:0;z-index:2}.price-grid tbody th{position:sticky;left:0;background:#fff;z-index:0}.price-grid input{min-width:104px;height:32px}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.page{padding:14px 10px 24px}.page-head{align-items:stretch;flex-direction:column}.actions{width:100%}.actions>*{flex:1}.stats,.layout,.stats.compact{grid-template-columns:1fr}.admin-topbar{align-items:stretch;flex-direction:column}.admin-stats,.admin-grid,.admin-grid.two{grid-template-columns:1fr}.price-row{grid-template-columns:1fr 82px 100px}.modal-backdrop{padding:10px}.modal{max-height:calc(100vh - 20px)}}
