:root{color-scheme:light;--ink: #20242b;--muted: #667085;--line: #d7dde7;--panel: #ffffff;--surface: #f5f7fb;--accent: #0f766e;--accent-strong: #115e59;--brand-blue: #00a0e0;--brand-red: #ff4020;--danger: #b42318;--shadow: 0 18px 50px rgba(31, 41, 55, .12);--page-padding-y: 20px}*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;min-height:100vh;font-family:Inter,Microsoft YaHei,PingFang SC,system-ui,sans-serif;color:var(--ink);background:var(--surface)}a{color:inherit;text-decoration:none}button,select,input{font:inherit}button,select{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}button{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:7px;padding:0 14px;cursor:pointer}button:hover,select:hover{border-color:var(--accent)}button:disabled{cursor:not-allowed;opacity:.56}.primary{border-color:var(--accent);background:var(--accent);color:#fff}.app-shell{width:min(1480px,calc(100vw - 32px));margin:0 auto;padding:var(--page-padding-y) 0;min-height:100dvh;height:100dvh;box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr);gap:var(--page-padding-y);overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-shrink:0}.brand,.nav-tabs{display:flex;align-items:center}.brand{gap:8px;min-height:0;padding:0;border:0;background:transparent;cursor:default}.brand:hover{border-color:transparent}.brand-zero-two{cursor:pointer}.brand-logo{width:30px;height:30px;flex:0 0 30px;object-fit:contain}.brand-wordmark{display:inline-flex;align-items:baseline;gap:5px;line-height:1}.brand-wordmark strong{color:var(--brand-blue);font-size:20px;font-weight:900;letter-spacing:0}.brand-divider{color:#94a3b8;font-size:18px;font-weight:900}.brand-wordmark .brand-zero-two{color:var(--brand-red);font-size:21px}.nav-tabs{gap:8px}.nav-tabs a{display:inline-flex;min-height:40px;align-items:center;gap:7px;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-weight:700}.nav-tabs a.active{border-color:var(--accent);background:#ccfbf1;color:#134e4a}h1,h2,p{margin-top:0}h1{margin-bottom:6px;font-size:clamp(24px,3vw,36px);letter-spacing:0}h2{margin-bottom:14px;font-size:16px;letter-spacing:0}p{color:var(--muted)}.toast-notice,.editor-notice{position:absolute;z-index:15;top:14px;left:50%;width:fit-content;max-width:min(560px,calc(100% - 36px));min-width:272px;display:inline-flex;align-items:center;justify-content:flex-start;gap:12px;padding:12px 18px 12px 14px;border:1px solid rgba(208,213,221,.88);border-radius:8px;background:#fffffff5;box-shadow:0 10px 24px #1f29371a;color:#344054;font-size:16px;font-weight:700;line-height:1.45;text-align:left;transform:translate(-50%);pointer-events:none;animation:toast-in .14s ease-out}.toast-notice:before,.editor-notice:before{width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center;border-radius:999px;background:#eef4ff;color:#2563eb;content:"!";font-size:15px;font-weight:900;line-height:1}.toast-notice.info,.editor-notice.info{border-color:#bfdbfee6;color:#1e3a8a}.toast-notice.info:before,.editor-notice.info:before{background:#dbeafe;color:#2563eb}.toast-notice.success,.editor-notice.success{border-color:#99f6e4e6;color:#134e4a}.toast-notice.success:before,.editor-notice.success:before{background:#ccfbf1;color:#0f766e}.toast-notice.warning,.editor-notice.warning{border-color:#fde68af2;color:#92400e}.toast-notice.warning:before,.editor-notice.warning:before{background:#fef3c7;color:#b45309}.toast-notice.error,.editor-notice.error{border-color:#fb923c61;color:#a14a2a}.toast-notice.error:before,.editor-notice.error:before{background:#fff3e8;color:#d97706}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,-6px)}to{opacity:1;transform:translate(-50%)}}.admin-login-shell,.admin-loading{min-height:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:linear-gradient(135deg,#00a0e014,#ff40200f),var(--panel)}.admin-loading{color:var(--muted);font-size:15px;font-weight:800}.admin-login-card{width:min(360px,calc(100% - 32px));display:grid;gap:12px;padding:20px;border:1px solid rgba(0,160,224,.18);border-radius:8px;background:#fffffff5;box-shadow:0 24px 60px #1f293724}.admin-login-card label{margin-bottom:0}.admin-login-card input{width:100%;min-height:44px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:var(--ink);font-weight:800}.admin-login-card input:focus{border-color:var(--brand-blue);box-shadow:0 0 0 3px #00a0e024;outline:none}.admin-login-card button{width:100%;min-height:44px;border-color:var(--brand-blue);background:var(--brand-blue);font-weight:900}.admin-login-card button:hover{border-color:#0284c7;background:#0284c7}.admin-login-error{padding:9px 10px;border:1px solid rgba(255,64,32,.24);border-radius:8px;background:#ff402012;color:var(--brand-red);font-size:13px;font-weight:800}.workspace{display:grid;grid-template-columns:280px minmax(440px,1fr) 360px;gap:16px;align-items:stretch;height:100%;min-height:0;overflow:hidden;background:var(--surface)}.panel.controls,.editor-area,.right-panel{height:100%;overflow:hidden}.panel,.editor-area,.dashboard-card{border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow)}.panel{overflow:hidden}.panel.controls,.right-panel{overflow-y:auto}.workspace>.panel,.workspace>.editor-area{box-shadow:none}.panel-section{padding:18px;border-bottom:1px solid var(--line)}.panel-section:last-child{border-bottom:0}label{display:grid;gap:7px;margin-bottom:14px;color:var(--muted);font-size:13px;font-weight:700}select{width:100%;min-height:40px;padding:0 10px}.box-select{position:relative}.select-trigger{width:100%;min-height:44px;justify-content:space-between;padding:0 12px 0 13px;border-color:#cfd7e6;background:linear-gradient(180deg,#fff,#f8fafc);color:var(--ink);font-size:16px;font-weight:800}.select-trigger:hover,.select-trigger.open{border-color:var(--accent);background:#fff}.select-trigger.open{box-shadow:0 0 0 3px #0f766e1f}.select-trigger svg{color:var(--accent-strong);transition:transform .16s ease}.select-trigger.open svg{transform:rotate(180deg)}.select-menu{position:absolute;z-index:20;top:calc(100% + 8px);left:0;right:0;display:grid;gap:4px;padding:6px;border:1px solid #cfd7e6;border-radius:8px;background:#fff;box-shadow:0 18px 36px #1f293729}.select-option{width:100%;min-height:52px;justify-content:space-between;padding:8px 10px;border-color:transparent;background:transparent;text-align:left}.select-option:hover{border-color:#ccfbf1;background:#f0fdfa}.select-option.active{border-color:#99f6e4;background:#ccfbf1;color:#134e4a}.select-option span{display:grid;gap:3px}.select-option strong,.select-option small{display:block}.select-option strong{font-size:15px}.select-option small{color:var(--muted);font-size:12px;font-weight:700}.select-option.active small{color:#0f766e}.toggle-row{display:flex;align-items:center;gap:10px;color:var(--ink)}.key-size-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.key-size{min-height:38px;background:#f8fafc;font-weight:800}.key-size.active{border-color:var(--accent);background:#ccfbf1;color:#134e4a;font-weight:800}.lighting-toggle{width:100%;margin-bottom:14px}.lighting-toggle.active{border-color:var(--accent);background:#ccfbf1;color:#134e4a;font-weight:800}.field-group{display:grid;gap:8px;margin-bottom:14px}.field-label{color:var(--muted);font-size:14px;font-weight:700}.color-select{position:relative}.color-trigger{width:100%;min-height:44px;justify-content:space-between;padding:0 12px;border-color:#cfd7e6;background:linear-gradient(180deg,#fff,#f8fafc);font-weight:800}.color-trigger:hover,.color-trigger.open{border-color:var(--accent);background:#fff}.color-trigger.open{box-shadow:0 0 0 3px #0f766e1f}.color-trigger svg{color:var(--accent-strong);transition:transform .16s ease}.color-trigger.open svg{transform:rotate(180deg)}.color-trigger-main{display:inline-flex;min-width:0;align-items:center;gap:9px}.color-trigger-main span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.color-trigger-swatch{width:24px;height:24px;flex:0 0 24px;border:1px solid #98a2b3;border-radius:6px}.color-menu{position:absolute;z-index:22;top:calc(100% + 8px);left:0;right:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:260px;gap:8px;overflow-y:auto;padding:8px;border:1px solid #cfd7e6;border-radius:8px;background:#fff;box-shadow:0 18px 36px #1f293729}.color-option{width:100%;min-width:0;min-height:70px;display:grid;grid-template-rows:auto 1fr;align-content:center;justify-items:center;gap:7px;padding:8px 7px;background:#fff;color:var(--ink);font-size:12px;font-weight:700;line-height:1.25;text-align:center}.color-option.active{border-color:var(--accent);background:#ccfbf1;color:#134e4a}.color-swatch{width:28px;height:28px;flex:none;border:1px solid #98a2b3;border-radius:6px}.color-name{display:-webkit-box;max-width:100%;min-width:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-break:anywhere}.tool-actions,.admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.admin-actions{height:38px;align-items:flex-end;flex-wrap:nowrap;margin-top:0}.admin-actions>button{height:38px;min-height:38px;flex:0 0 auto;align-self:stretch;line-height:1}.key-size-grid+.tool-actions{display:flex;flex-direction:column;gap:10px;margin-top:18px}.tool-action-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tool-action-group+.tool-action-group{padding-top:10px;border-top:1px solid #eef2f7}.tool-action-group.single,.tool-action-group.auto{grid-template-columns:1fr}.tool-action{min-height:38px;padding:0 10px;font-weight:800;white-space:nowrap}.tool-action.danger{border-color:#fda29b;background:#fff5f4;color:var(--danger)}.tool-action.danger:hover:not(:disabled){border-color:var(--danger);background:#fee4e2}.tool-action.secondary{border-color:#cbd5e1;background:#fff;color:#344054}.tool-action.secondary:hover:not(:disabled){border-color:#98a2b3;background:#f1f5f9}.icon-button{width:38px;min-width:38px;padding:0}.quantity-planner{display:grid;gap:14px}.quantity-planner-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.quantity-planner-head h2{margin-bottom:0}.quantity-planner-head strong{min-width:38px;padding:5px 9px;border:1px solid #99f6e4;border-radius:8px;background:#ccfbf1;color:#134e4a;font-size:14px;text-align:center}.quantity-planner-copy{margin-bottom:0;color:var(--muted);font-size:13px;font-weight:700;line-height:1.55}.quantity-grid{display:grid;gap:8px}.quantity-row{grid-template-columns:minmax(58px,1fr) 96px;align-items:center;gap:10px;margin-bottom:0}.quantity-row span{color:var(--ink);font-size:14px;font-weight:900}.quantity-row input{width:100%;min-height:38px;padding:0 10px;border:1px solid #cfd7e6;border-radius:8px;background:#fff;color:var(--ink);font-weight:800}.quantity-row input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #0f766e1f;outline:none}.quantity-actions{display:grid;grid-template-columns:1fr;gap:8px}.submit-panel{display:grid;gap:12px}.submit-panel h2,.submit-panel p{margin-bottom:0}.submit-panel p{color:var(--muted);font-size:13px;font-weight:700;line-height:1.55}.submit-order-button{width:100%;min-height:44px;font-weight:900}.usage-grid{display:grid;grid-template-columns:1fr auto;gap:8px 12px;color:var(--muted);font-size:14px}.usage-grid strong{color:var(--ink)}.editor-area{position:relative;min-width:0;padding:18px;display:flex;flex-direction:column;align-items:center;gap:18px}.draft-restore-card,.order-confirm-card{position:absolute;z-index:16;top:18px;left:50%;display:flex;width:min(520px,calc(100% - 40px));align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid rgba(15,118,110,.18);border-radius:8px;background:#fffffff5;box-shadow:0 18px 45px #1f293724;transform:translate(-50%)}.draft-restore-card strong,.draft-restore-card span,.order-confirm-card strong,.order-confirm-card span{display:block}.draft-restore-card strong,.order-confirm-card strong{color:var(--ink);font-size:15px;font-weight:900}.draft-restore-card span,.order-confirm-card span{margin-top:3px;color:var(--muted);font-size:13px;font-weight:700;line-height:1.4}.order-confirm-card{z-index:18;border-color:#0f766e47;box-shadow:0 20px 48px #1f29372e}.draft-restore-actions,.order-confirm-actions{display:flex;flex:0 0 auto;gap:8px}.draft-restore-actions button,.order-confirm-actions button{min-height:34px;padding:0 12px}.editor-grid-stage{width:100%;min-width:0;min-height:0;flex:1 1 auto;display:grid;place-items:center}.grid-wrap{display:flex;justify-content:center;overflow:hidden;padding:14px;border:1px solid var(--line);border-radius:8px;background:#eef2f7;width:100%;max-width:100%}.grid-viewport{position:relative;flex:0 0 auto}.preset-tray{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--preset-gap, 6px);width:100%;flex:0 0 auto;padding:max(5px,calc(8px * var(--preset-scale, 1)));border:1px dashed #b6c3d6;border-radius:8px;background:#f8fafc}.preset-chip{min-width:max(42px,calc(54px * var(--preset-scale, 1)));min-height:max(44px,calc(54px * var(--preset-scale, 1)));display:grid;grid-template-rows:1fr auto;gap:max(3px,calc(5px * var(--preset-scale, 1)));padding:var(--preset-chip-padding-y, 7px) var(--preset-chip-padding-x, 10px);border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-weight:800;cursor:grab;flex:0 0 auto}.preset-chip:hover{border-color:var(--accent)}.preset-chip:active{cursor:grabbing}.preset-chip.active{border-color:var(--accent);background:#ccfbf1;color:#134e4a}.preset-chip-preview{display:flex;height:var(--preset-preview-height, 56px);min-width:0;align-items:center;justify-content:center;pointer-events:none}.preset-chip-shape{display:block;width:var(--preset-width);height:var(--preset-preview-height, 56px);border:2px solid #0f766e;border-radius:6px;background:linear-gradient(180deg,#d1faf2,#99f6e4);box-shadow:inset 0 -2px #0f766e29}.preset-chip.active .preset-chip-shape{border-color:#115e59;background:linear-gradient(180deg,#ccfbf1,#5eead4)}.preset-chip-label{font-size:max(12px,calc(16px * var(--preset-scale, 1)));line-height:1;pointer-events:none}.grid{position:relative;width:max-content;transform-origin:top left}.cell{position:absolute;width:56px;height:56px;padding:0;border:1px solid #c8d1df;border-radius:6px;background:#fff;pointer-events:none}.row-highlight{position:absolute;left:-4px;width:calc(100% + 8px);height:64px;margin-top:-4px;border:2px solid rgba(255,255,255,.98);border-radius:10px;background:transparent;box-shadow:0 0 0 2px #ffffff94,0 0 22px #fff,0 0 40px #94a3b86b,inset 0 0 18px #ffffff70;pointer-events:none}.keycap{position:absolute;display:grid;place-items:center;border:2px solid #0f766e;border-radius:7px;background:linear-gradient(180deg,#d1faf2,#99f6e4);color:#134e4a;font-weight:900;cursor:grab;-webkit-user-select:none;user-select:none}.keycap:active{cursor:grabbing}.keycap.drag-preview{position:fixed;left:-9999px;top:-9999px;z-index:-1;opacity:.92;pointer-events:none}.keycap.selected{border-color:var(--accent-strong);box-shadow:inset 0 0 0 2px #ffffffe6,0 0 0 2px #0f766e2e,0 10px 22px #0f766e2e;transform:translateY(-1px)}.keycap.invalid{border-color:var(--danger);background:#fee4e2;color:var(--danger)}pre{min-height:520px;overflow:auto;margin:0;padding:14px;border:1px solid var(--line);border-radius:8px;background:#101828;color:#d1fadf;font-size:12px;line-height:1.55}.admin-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid var(--line)}.admin-header p{margin-bottom:0;font-size:13px}.admin-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-title-actions{display:flex;align-items:center;gap:8px}.admin-title-icon-button{width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border-color:#cbd5e1;background:#fff;color:#344054}.admin-title-icon-button:hover{border-color:var(--accent);background:#f0fdfa;color:#134e4a}.admin-title-icon-button.primary-action{border-color:#99f6e4;background:#f0fdfa;color:#134e4a}.mobile-only{display:none}.admin-refresh-button{width:38px;min-width:38px;padding:0}.admin-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;height:100%;min-height:0;overflow:hidden}.admin-sidebar,.admin-main{min-height:0;border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}.admin-sidebar{display:flex;flex-direction:column}.admin-nav{display:grid;gap:6px;padding:12px}.admin-nav-item{width:100%;min-height:42px;justify-content:flex-start;padding:0 12px;border-color:transparent;background:transparent;color:#344054;font-weight:800}.admin-nav-item:hover{border-color:#ccfbf1;background:#f0fdfa}.admin-nav-item.active{border-color:#99f6e4;background:#ccfbf1;color:#134e4a}.admin-main{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow-y:auto}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}.dashboard-card{display:flex;min-height:92px;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 10px 28px #1f293714}.dashboard-card-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid #99f6e4;border-radius:8px;background:#ccfbf1;color:#134e4a}.dashboard-card span:not(.dashboard-card-icon){color:var(--muted);font-size:13px;font-weight:700}.dashboard-card strong{display:block;margin-top:5px;font-size:26px;line-height:1.1}.admin-view{grid-row:3;display:grid;gap:16px;align-content:start;padding:16px}.admin-view.panel{margin:16px;padding:0}.admin-overview-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(420px,1.05fr);gap:16px;align-items:start}.admin-overview-stack{display:grid;gap:16px;align-content:start}.status-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.status-summary article,.material-status-summary article{display:grid;gap:6px;min-height:78px;padding:12px 14px;border:1px solid #edf1f7;border-radius:8px;background:#f8fafc}.status-summary span,.material-status-summary span{color:var(--muted);font-size:13px;font-weight:700}.status-summary strong,.material-status-summary strong{font-size:24px}.material-status-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.material-status-summary article.danger{border-color:#fda29b;background:#fef3f2}.material-status-summary article.warning{border-color:#fedf89;background:#fffcf5}.material-status-summary article.danger strong{color:#b42318}.material-status-summary article.warning strong{color:#b54708}.material-status-summary article:not(.danger):not(.warning) strong{color:#067647}.dashboard-material-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.dashboard-material-note{display:block;margin-top:10px;color:var(--muted);font-size:13px;font-weight:800}.material-alert-chip{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:0 9px;border:1px solid #fedf89;border-radius:999px;background:#fffaeb;color:#b54708;font-size:13px;font-weight:900}.material-alert-chip.danger{border-color:#fda29b;background:#fef3f2;color:#b42318}.latest-order-list{display:grid;gap:0;overflow:hidden;border:1px solid #edf1f7;border-radius:8px;background:#fff}.latest-order{display:grid;grid-template-columns:92px minmax(0,1fr) 150px;width:100%;min-height:56px;align-items:center;gap:12px;padding:10px 14px;border:0;border-bottom:1px solid #edf1f7;border-radius:0;background:#fff;color:var(--ink);text-align:left}.latest-order:last-child{border-bottom:0}.latest-order:hover{background:#f0fdfa}.latest-order-id{min-width:0;color:#134e4a;font-size:14px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.latest-order-meta{display:flex;min-width:0;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-weight:800;overflow:hidden;white-space:nowrap}.latest-order-meta strong{color:var(--ink);font-size:14px;font-weight:900}.latest-order-meta span,.latest-order-time{min-width:0;overflow:hidden;text-overflow:ellipsis}.latest-order-color{display:inline-flex;align-items:center;gap:5px}.latest-order-swatch{width:14px;height:14px;flex:0 0 14px;border:1px solid #98a2b3;border-radius:4px}.latest-order-time{color:var(--muted);font-size:12px;font-weight:800;text-align:right;white-space:nowrap}.overview-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.overview-panel-title h2{margin:0}.overview-panel-title span{color:var(--muted);font-size:12px;font-weight:900}.materials-view{padding:16px}.material-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.material-card{display:grid;gap:16px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}.material-card.insufficient{border-color:#fda29b;background:snow;box-shadow:0 14px 32px #b4231814}.material-card header{display:grid;grid-template-columns:minmax(96px,1fr) 156px;align-items:center;gap:10px}.material-card-title{display:flex;min-width:0;align-items:center;gap:12px}.material-swatch{width:44px;height:44px;flex:0 0 44px;border:1px solid #98a2b3;border-radius:8px}.material-card header strong,.material-card header span{display:block}.material-card header strong{font-size:17px;font-weight:900}.material-tip-wrap{position:relative;display:inline-flex;width:fit-content;margin-top:5px}.material-status.danger{width:fit-content;min-height:22px;padding:3px 8px;border:1px solid #fda29b;border-radius:999px;background:#fef3f2;color:#b42318;font-size:12px;font-weight:900;line-height:1.2}.material-status.danger:hover{border-color:#f97066;background:#fee4e2}.material-shortage-tip{position:absolute;z-index:8;top:calc(100% + 6px);left:0;width:max-content;max-width:160px;opacity:0;pointer-events:none;padding:7px 9px;border:1px solid #fda29b;border-radius:8px;background:#fff;box-shadow:0 12px 26px #b4231829;color:#b42318;font-size:14px;font-weight:900;line-height:1.3;white-space:nowrap;transform:translateY(-2px);transition:opacity .14s ease,transform .14s ease}.material-tip-wrap:hover .material-shortage-tip{opacity:1;transform:translateY(0)}.material-card header span,.material-stats span{color:var(--muted);font-size:12px;font-weight:800}.material-progress{height:10px;overflow:hidden;border-radius:999px;background:#edf1f7}.material-progress-header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;font-weight:800}.material-progress-header span,.material-progress-header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-progress-header strong{color:var(--ink);flex:0 0 auto}.material-progress span{display:block;height:100%;border-radius:inherit;background:var(--accent)}.material-card.insufficient .material-progress{background:#fee4e2}.material-card.insufficient .material-progress span{background:#d92d20}.material-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.material-stats div{position:relative;display:grid;min-width:0;gap:4px;padding:9px 8px;border:1px solid #edf1f7;border-radius:8px;background:#f8fafc}.material-card.insufficient .material-stats div{border-color:#fee4e2;background:#fff7f7}.material-stats span,.material-stats strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-stats strong{font-size:clamp(13px,1.1vw,16px);line-height:1.2}.material-stat-tip{position:absolute;z-index:9;left:0;bottom:calc(100% + 7px);width:max-content;max-width:220px;opacity:0;pointer-events:none;padding:7px 9px;border:1px solid #cfd7e6;border-radius:8px;background:#fff;box-shadow:0 12px 26px #1f293724;color:var(--ink)!important;font-size:13px!important;font-weight:900;line-height:1.3;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;transform:translateY(2px);transition:opacity .14s ease,transform .14s ease}.material-stat-cell:hover .material-stat-tip{opacity:1;transform:translateY(0)}.material-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-top:2px}.material-add-row.compact{width:100%;padding-top:0}.material-add-row input{width:100%;min-height:38px;padding:0 9px;border:1px solid #cfd7e6;border-radius:8px;background:#fff;color:var(--ink);font-weight:800}.material-add-row input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #0f766e1f;outline:none}.material-add-row button{min-height:38px;padding:0 10px;font-weight:800}.material-add-icon-button{width:38px;min-width:38px;height:38px;min-height:38px;padding:0}.material-dialog-backdrop{position:fixed;z-index:50;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:#0f172a52}.material-dialog{width:min(420px,calc(100vw - 48px));display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 24px 60px #1f29373d}.material-dialog .color-menu{z-index:60}.material-dialog .color-select{margin-bottom:0}.material-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.material-dialog header strong,.material-dialog header span{display:block}.material-dialog header strong{font-size:18px;font-weight:900}.material-dialog header span{margin-top:4px;color:var(--muted);font-size:13px;font-weight:700}.material-dialog label{margin-bottom:0}.material-dialog input{width:100%;min-height:40px;padding:0 10px;border:1px solid #cfd7e6;border-radius:8px;font-weight:800}.material-dialog-submit{width:100%}.orders-view{padding:0}.orders-table-wrap{overflow:auto;background:var(--panel)}.admin-search{width:220px;flex:0 1 220px;display:flex;align-items:stretch;align-self:stretch;height:38px;line-height:1}.admin-search input{width:100%;display:block;height:38px;min-height:38px;padding:0 11px;border:1px solid #cfd7e6;border-radius:8px;background:#fff;color:var(--ink);font-weight:800;line-height:normal}.admin-search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #0f766e1f;outline:none}.orders-table{width:100%;min-width:1120px;border-collapse:collapse;color:#344054;font-size:14px}.orders-table th,.orders-table td{padding:12px 14px;border-bottom:1px solid #edf1f7;text-align:left;vertical-align:middle}.orders-table th{background:#f8fafc;color:var(--muted);font-size:12px;font-weight:900}.orders-table tbody tr:hover{background:#f8fafc}.orders-table tbody tr.highlighted{animation:order-row-flash .9s ease-in-out 2}.orders-table tbody tr.highlighted td{border-bottom-color:#99f6e4}@keyframes order-row-flash{0%,to{background:transparent}35%,65%{background:#ccfbf1}}.orders-table tbody tr:last-child td{border-bottom:0}.orders-table strong,.orders-table small{display:block}.orders-table small{margin-top:4px;color:var(--muted);font-size:12px}.orders-table .order-color-line,.orders-table .order-material-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;white-space:nowrap}.orders-table .order-material-line{max-width:280px}.order-material-chip{display:inline-flex;align-items:center;flex:0 0 auto;gap:5px}.order-lighting-badge{display:inline-flex;min-height:28px;align-items:center;padding:0 9px;border:1px solid #e4e7ec;border-radius:999px;background:#f8fafc;color:#667085;font-size:12px;font-weight:900;white-space:nowrap}.order-lighting-badge.active{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.orders-table .order-color-swatch{width:16px;height:16px;flex:0 0 16px;border:1px solid #98a2b3;border-radius:4px}.order-id-button{min-height:32px;padding:0 10px;border-color:#cbd5e1;background:#fff;color:#134e4a;font-size:13px;font-weight:900}.order-id-button:hover{border-color:var(--accent);background:#f0fdfa}.order-action-group{display:flex;align-items:center;gap:6px;white-space:nowrap}.order-icon-button{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-color:#cbd5e1;background:#fff;color:#344054}.order-icon-button:hover{border-color:var(--accent);background:#f0fdfa;color:#134e4a}.order-icon-button.primary-action{border-color:#99f6e4;background:#f0fdfa;color:#134e4a}.order-icon-button.danger-action{border-color:#fecaca;background:#fff;color:#b42318}.order-icon-button.danger-action:hover{border-color:#fda29b;background:#fef2f2}.order-layout-preview{position:relative;box-sizing:content-box;overflow:visible;padding:var(--preview-padding, 10px);border:1px solid #cbd5e1;border-radius:6px;background:#eef2f7}.order-layout-preview.large{border-radius:8px}.order-preview-keycap{position:absolute;box-sizing:border-box;display:grid!important;align-content:center;justify-content:center;place-items:center;padding:2px;border-radius:3px;border:1px solid #0f766e;background:linear-gradient(180deg,#d1faf2,#99f6e4);color:#134e4a;font-size:clamp(14px,2.2vw,22px);font-weight:900;line-height:1;text-align:center;transform:translate(var(--preview-padding, 10px),var(--preview-padding, 10px))}.order-layout-preview.preview-8x10 .order-preview-keycap,.order-layout-preview.preview-10x10 .order-preview-keycap{font-size:clamp(12px,1.8vw,18px)}.order-preview-modal{position:fixed;z-index:50;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:#0f172a52}.order-preview-dialog{width:min(860px,calc(100vw - 48px));display:grid;gap:16px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 24px 60px #1f29373d}.order-delete-dialog{width:min(420px,calc(100vw - 48px));display:grid;gap:18px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 24px 60px #1f29373d}.order-delete-dialog strong,.order-delete-dialog span{display:block}.order-delete-dialog strong{font-size:18px;font-weight:900}.order-delete-dialog span{margin-top:5px;color:var(--muted);font-size:13px;font-weight:700;line-height:1.5}.order-delete-actions{display:flex;justify-content:flex-end;gap:8px}.danger-button{border-color:#b42318;background:#b42318;color:#fff}.danger-button:hover{border-color:#912018;background:#912018}.order-preview-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.order-preview-dialog header strong,.order-preview-dialog header span{display:block}.order-preview-dialog header strong{font-size:18px;font-weight:900}.order-preview-dialog header span{margin-top:4px;color:var(--muted);font-size:13px;font-weight:700}.order-preview-stage{display:grid;place-items:center;overflow:auto;padding:10px;border:1px solid #edf1f7;border-radius:8px;background:#f8fafc}.status-select{position:relative;width:148px}.status-trigger{min-height:38px;padding:0 10px;font-size:14px}.status-trigger.status-not-started,.status-menu .select-option.status-not-started strong{color:#667085}.status-trigger.status-in-progress,.status-menu .select-option.status-in-progress strong{color:#2563eb}.status-trigger.status-completed,.status-menu .select-option.status-completed strong{color:#059669}.status-trigger.status-not-started.open,.status-menu .select-option.status-not-started.active{background:#f8fafc}.status-trigger.status-in-progress.open,.status-menu .select-option.status-in-progress.active{background:#eff6ff}.status-trigger.status-completed.open,.status-menu .select-option.status-completed.active{background:#ecfdf5}.status-menu{position:fixed;z-index:40;right:auto;min-width:148px}.status-menu .select-option{min-height:40px}.orders-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 14px;border-top:1px solid #edf1f7;color:var(--muted);font-size:13px;font-weight:800}.orders-pagination>div{display:flex;gap:8px}.orders-pagination button{min-height:34px;padding:0 12px}.empty-state{padding:28px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);text-align:center}@media(max-width:1180px){.admin-layout{grid-template-columns:220px minmax(0,1fr)}.admin-overview-grid{grid-template-columns:1fr}.latest-order{grid-template-columns:92px minmax(0,1fr) 180px}.material-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:821px)and (max-width:1180px){html,body{overflow-x:auto;overflow-y:hidden}body,.app-shell{min-width:1040px}.workspace{grid-template-columns:260px minmax(420px,1fr) 310px}}@media(max-width:820px){html,body{overflow:auto}.app-shell{width:min(100vw - 20px,760px);padding:14px 0;height:auto;overflow:visible}.topbar,.admin-header{align-items:flex-start;flex-direction:column}.admin-header{gap:8px;padding:10px 12px}.admin-title-row{width:100%;min-width:0;display:flex;align-self:center;align-items:center;justify-content:space-between;gap:8px}.admin-title-actions{gap:6px}.admin-header h1{font-size:20px;line-height:1.15}.admin-actions{grid-column:1 / -1;width:100%;height:auto;display:grid;grid-template-columns:1fr;gap:8px;align-items:stretch}.admin-actions:empty{display:none}.admin-actions>button,.admin-actions .admin-search{width:100%;min-width:0;flex:none}.admin-actions .admin-search{grid-column:1 / -1}.desktop-only{display:none}.mobile-only{display:inline-flex}.admin-title-icon-button{width:34px;min-width:34px;height:34px;min-height:34px;flex:0 0 34px}.admin-search{height:36px;align-self:start}.admin-search input{height:36px;min-height:36px}.workspace,.admin-layout,.dashboard-grid{width:100%;min-width:0;grid-template-columns:1fr;flex:none;overflow:visible}.admin-layout,.admin-main{height:auto}.admin-layout{align-items:start;align-content:start;gap:8px}.admin-main{align-self:start;border-radius:8px;overflow:visible}.admin-sidebar{align-self:start;height:auto;flex:0 0 auto;min-height:0;border:0;border-radius:0;background:transparent;overflow:visible}.admin-nav{display:flex;gap:8px;padding:0 2px 2px;overflow-x:auto;scrollbar-width:none}.admin-nav::-webkit-scrollbar{display:none}.admin-nav-item{flex:0 0 auto;width:auto;min-height:36px;padding:0 12px;border-color:#d0d5dd;background:#fff;white-space:nowrap}.admin-view{padding:12px}.admin-view.panel{margin:12px}.status-summary,.material-status-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.status-summary article,.material-status-summary article{min-height:66px;padding:10px}.status-summary strong,.material-status-summary strong{font-size:21px}.admin-overview-grid,.admin-overview-stack{gap:12px}.dashboard-card{min-height:76px;gap:10px;padding:12px}.dashboard-card-icon{width:36px;height:36px;flex-basis:36px}.dashboard-card strong{font-size:22px}.dashboard-material-list{display:grid;grid-template-columns:1fr}.latest-order{grid-template-columns:1fr;gap:6px;min-height:0;padding:12px}.latest-order-time{text-align:left}.latest-order-meta{flex-wrap:wrap;white-space:normal}.material-card-grid{grid-template-columns:1fr}.materials-view{padding:12px}.material-card{gap:12px;padding:12px}.material-card header{align-items:center;grid-template-columns:minmax(0,1fr) minmax(112px,136px);gap:8px}.material-add-row.compact{width:100%}.material-progress-header{align-items:center;flex-direction:row;gap:8px}.material-progress-header span,.material-progress-header strong{white-space:nowrap}.material-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.orders-view{align-content:start;align-items:start;padding:12px}.orders-table-wrap{width:100%;align-self:start;overflow:visible;background:transparent}.orders-table,.orders-table thead,.orders-table tbody,.orders-table tr,.orders-table td{display:block;width:100%}.orders-table{min-width:0;border-collapse:separate;border-spacing:0;font-size:13px}.orders-table thead{display:none}.orders-table tbody{display:grid;gap:12px}.orders-table tbody tr{overflow:visible;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 10px 24px #1f29370f}.orders-table-wrap>.empty-state{margin:0}.orders-table tbody tr:hover{background:#fff}.orders-table tbody tr.highlighted{animation:order-card-flash .9s ease-in-out 2}.orders-table th,.orders-table td{border-bottom:1px solid #edf1f7}.orders-table td{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:flex-start;gap:10px;padding:10px 12px}.orders-table td[data-label=规格],.orders-table td[data-label=耗材]{grid-template-columns:84px auto minmax(0,1fr);align-items:flex-start}.orders-table td[data-label=规格]:before,.orders-table td[data-label=耗材]:before{grid-column:1}.orders-table td[data-label=规格]>strong,.orders-table td[data-label=耗材]>strong{grid-column:2;grid-row:1;line-height:32px;white-space:nowrap}.orders-table td[data-label=规格]>small,.orders-table td[data-label=耗材]>small{grid-column:3;grid-row:1;align-self:start;margin-top:0;line-height:32px}.orders-table td:before{color:var(--muted);content:attr(data-label);font-size:12px;font-weight:900;line-height:32px}.orders-table tbody tr:last-child td{border-bottom:1px solid #edf1f7}.orders-table tbody tr td:last-child{border-bottom:0}.orders-table .order-color-line,.orders-table .order-material-line{max-width:none;min-width:0;overflow:hidden;flex-wrap:nowrap;text-overflow:ellipsis;white-space:nowrap}.orders-table .order-material-line{display:flex;width:100%;overflow-x:auto;scrollbar-width:none}.orders-table .order-material-line::-webkit-scrollbar{display:none}.orders-table .order-color-line span,.orders-table .order-material-chip span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-select{width:100%}.status-menu{left:auto!important;right:12px;width:min(220px,calc(100vw - 108px))!important;min-width:0}.order-action-group{flex-wrap:wrap;justify-content:flex-start;white-space:normal}.orders-pagination{align-items:stretch;flex-direction:column;padding:12px 0 0;border-top:0;text-align:right}.orders-pagination>div{justify-content:flex-end}.order-preview-modal{align-items:end;place-items:end center;padding:12px}.material-dialog-backdrop{align-items:center;place-items:center;padding:16px}.order-preview-dialog,.order-delete-dialog,.material-dialog{width:100%;max-height:calc(100vh - 24px);overflow:auto;padding:14px}.material-dialog{max-height:calc(100vh - 32px);overflow:visible}.material-dialog .color-menu{max-height:min(320px,calc(100vh - 260px));overflow-y:auto}.order-preview-dialog header,.material-dialog header{align-items:flex-start}.order-preview-stage{justify-content:start;overflow:auto;padding:8px}.panel.controls,.editor-area,.right-panel{height:auto;overflow:visible}.editor-grid-stage{flex:none;width:100%;min-width:0}.grid-wrap{width:100%;max-width:100%;overflow:hidden;padding:10px}.editor-area{min-width:0;padding:12px}@keyframes order-card-flash{0%,to{background:#fff}35%,65%{background:#ccfbf1}}}@media(max-width:520px){.app-shell{width:min(100vw - 12px,760px);padding:8px 0}.admin-header,.admin-view,.materials-view,.orders-view{padding:10px}.admin-actions{grid-template-columns:1fr}.dashboard-grid,.status-summary,.material-status-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.dashboard-card{min-height:48px;display:grid;grid-template-columns:1fr;grid-template-rows:auto auto;align-items:center;justify-items:stretch;gap:3px;padding:5px 8px;border-color:#e4e7ec;background:#f8fafc;box-shadow:none}.dashboard-card-icon{display:none}.dashboard-card span:not(.dashboard-card-icon){grid-column:1;grid-row:1;max-width:100%;color:#667085;font-size:12px;line-height:1.1;text-align:left;white-space:nowrap}.dashboard-card strong{grid-column:1;grid-row:2;max-width:100%;overflow:visible;color:#101828;font-size:clamp(15px,4.3vw,19px);line-height:1.05;text-align:left;white-space:nowrap}.status-summary article,.material-status-summary article{min-height:58px;padding:8px 6px}.status-summary span,.material-status-summary span{font-size:11px}.status-summary strong,.material-status-summary strong{font-size:19px}.dashboard-card{min-height:70px}.panel-section{padding:12px}.latest-order-list{border-radius:8px}.material-swatch{width:38px;height:38px;flex-basis:38px}.orders-table td{grid-template-columns:72px minmax(0,1fr);gap:8px;padding:9px 10px}.orders-table td[data-label=规格],.orders-table td[data-label=耗材]{grid-template-columns:72px auto minmax(0,1fr)}.order-icon-button{width:32px;min-width:32px;height:32px;min-height:32px}.order-delete-actions{display:grid;grid-template-columns:1fr 1fr}}
