:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f7f6f3;--paper:#fff;--ink:#262221;--muted:#6e6662;--line:#eae5e1;--wine:#512b2b;--wine-hover:#663939;--sidebar:#322;--sidebar-accent:#583737;--danger:#9b382f;--radius:12px;color:var(--ink);background:var(--bg);font-synthesis:none;font-family:Geist,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,system-ui,sans-serif}*,:before,:after{box-sizing:border-box}body{margin:0;font-size:1rem;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.52;cursor:not-allowed}a{color:var(--wine);text-underline-offset:3px}:is(button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible){outline-offset:2px;outline:2px solid #a36952}h1,h2,h3,p,dl,dd{margin:0}h1{letter-spacing:-.033em;font-size:clamp(1.7rem,2.5vw,2.2rem);font-weight:740;line-height:1.2}h2{font-size:1.125rem;font-weight:700;line-height:1.3}h3{font-size:.98rem}small{color:var(--muted);font-size:.81rem}.shell{grid-template-columns:224px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--sidebar);color:#f9f3ef;z-index:5;flex-direction:column;height:100vh;padding:26px 16px 18px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:11px;padding:0 9px;display:flex}.brand-mark{color:#532f2e;background:#f2dfd3;border-radius:12px;flex:none;place-items:center;width:41px;height:41px;display:grid}.brand strong{letter-spacing:-.045em;font-size:1.35rem;line-height:1.05;display:block}.brand strong span{color:#d89e86}.brand small{color:#dac4bd;letter-spacing:.06em;margin-top:4px;font-size:.77rem;display:block}.nav-heading{color:#c7aaa2;margin:39px 11px 9px;font-size:.81rem}.sidebar nav{gap:4px;display:grid}.sidebar nav button,.account-trigger{color:#e5d6d2;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:11px;width:100%;padding:11px 12px;font-size:.92rem;display:flex;position:relative}.sidebar nav button:hover,.account-trigger:hover{color:#fff;background:#482e2d}.sidebar nav button.current{background:var(--sidebar-accent);color:#fff7f3;font-weight:650}.sidebar nav button.current:before{content:"";background:#e2aa92;border-radius:2px;width:2px;position:absolute;top:11px;bottom:11px;left:0}.sidebar-foot{margin-top:auto;position:relative}.env-label{color:#ddc5be;align-items:center;gap:8px;padding:12px 10px;font-size:.8rem;display:flex}.env-label span{background:#dca47f;border-radius:50%;width:7px;height:7px}.account-trigger{border:1px solid #674d49;gap:9px;padding:9px}.avatar,.top-avatar{color:#553334;background:#ead2c6;border-radius:50%;flex:none;place-items:center;width:33px;height:33px;font-size:.85rem;font-weight:700;display:grid}.account-info{flex:1;min-width:0;display:grid}.account-info strong{color:#fff7f2;text-overflow:ellipsis;overflow:hidden}.account-info small{color:#dbc1ba;font-size:.77rem}.account-menu{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:9px;width:100%;position:absolute;bottom:63px;overflow:hidden;box-shadow:0 15px 40px #160e0e55}.account-menu button{text-align:left;background:#fff;border:0;justify-content:space-between;align-items:center;gap:7px;width:100%;padding:9px 11px;font-size:.86rem;display:flex}.account-menu button:hover{background:#faf3ef}.workspace{min-width:0}.topbar{background:var(--paper);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;height:62px;padding:0 29px;display:flex}.breadcrumb,.topbar-end{color:var(--muted);align-items:center;gap:11px;font-size:.88rem;display:flex}.breadcrumb strong{color:var(--ink);font-weight:620}.separator{color:#a0958e;margin-inline:1px}.topbar-end{gap:15px}.top-avatar{background:#f1e6e0;width:31px;height:31px}.nav-overlay,.mobile-menu{display:none!important}.content{width:100%;max-width:1760px;margin:0 auto;padding:27px 28px 44px}.page-head{justify-content:space-between;align-items:center;gap:12px 18px;margin-bottom:23px;display:flex}.page-head p{color:var(--muted);margin-top:7px;font-size:.93rem}.head-actions,.inline{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.button{color:var(--ink);white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:8px 13px;font-size:.875rem;font-weight:630;text-decoration:none;display:inline-flex}.button.compact{min-height:32px;padding:5px 9px}.button.primary{background:var(--wine);color:#fff;border-color:var(--wine)}.button.primary:hover:not(:disabled),.button.destructive:hover:not(:disabled){background:var(--wine-hover)}.button.secondary{background:#fff;border-color:#dfd6d1}.button.secondary:hover:not(:disabled),.button.subtle:hover:not(:disabled),.icon-button:hover:not(:disabled),.bare:hover{background:#f8f1ed}.button.selected{color:var(--wine);background:#f8ece5;border-color:#e5c9bc}.button.destructive{background:var(--danger);color:#fff}.button.subtle{color:var(--wine)}.icon-button{color:#675a54;background:0 0;border:0;border-radius:7px;flex:none;place-items:center;width:32px;height:32px;padding:0;display:inline-grid}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:19px;display:grid}.metric,.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}.metric{text-align:left;color:var(--ink);justify-content:space-between;align-items:flex-start;gap:6px;padding:17px 16px;display:flex}.metric:hover{border-color:#d9bdb0}.metric div{gap:5px;display:grid}.metric div span{color:var(--muted);font-size:.9rem}.metric strong{letter-spacing:-.04em;font-variant-numeric:tabular-nums;font-size:1.95rem;font-weight:720;line-height:1.3}.tile{border-radius:9px;flex:none;place-items:center;width:39px;height:39px;display:inline-grid}.tile.small{border-radius:7px;width:30px;height:30px}.tile.chip{color:#855044;background:#f2e8e4}.tile.structure{color:#62597c;background:#ecebf3}.tile.sample{color:#566c53;background:#e8eee7}.tile.strap{color:#88612c;background:#f9eddc}.dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(245px,25%);align-items:start;gap:15px;display:grid}.dashboard-rail{gap:15px;min-width:0;display:grid}.panel{min-width:0}.panel-head{justify-content:space-between;align-items:center;gap:10px;min-height:70px;padding:16px 17px 12px;display:flex}.panel-head p{color:var(--muted);margin-top:4px;font-size:.83rem}.table-controls,.catalog-filter{justify-content:space-between;align-items:center;gap:10px;padding:2px 16px 13px;display:flex}.catalog-filter{margin-bottom:15px;padding:12px 15px}.category-filters{flex:0 auto;align-items:center;gap:7px;min-width:0;max-width:100%;display:flex}.category-filters .choice{flex:0 auto;min-width:106px;max-width:185px}.category-filters .choice select{min-height:36px;padding-block:5px;font-size:.875rem}.subcategory-label{margin-top:3px;display:block}.mobile-subcategory{font-style:normal;display:none}.tabs{gap:3px;min-width:0;display:flex;overflow-x:auto}.tabs button{white-space:nowrap;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:7px;flex:none;padding:6px 8px;font-size:.875rem;font-weight:530}.tabs button:hover{color:var(--ink);background:#faf5f2}.tabs button.active{color:var(--wine);background:#f5ebe6;font-weight:670}.search{min-width:155px;color:var(--muted);border:1px solid #e2dcd8;border-radius:8px;flex:0 230px;align-items:center;gap:6px;padding:0 9px;display:flex}.search input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;padding:7px 0;font-size:.875rem}.search input:focus{outline:0}.search:focus-within{outline-offset:1px;outline:2px solid #a36952}.search svg{flex:none}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.875rem}table th,table td{text-align:left;vertical-align:middle;border-bottom:1px solid #eee9e6;padding:11px 12px}table th{white-space:nowrap;color:#675e5a;background:#f9f7f5;font-weight:620}table td:first-child,table th:first-child{padding-left:16px}table td:last-child,table th:last-child{padding-right:16px}.stock-table{min-width:630px}.stock-table td{padding-top:10px;padding-bottom:10px}.stock-table td:nth-child(2){white-space:nowrap}.stock-table td:last-child{width:36px;padding-left:0}.numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.emph{font-weight:700}.emph.danger{color:var(--danger)}.emph.warn{color:#986521}.numeric small{font-weight:400}.bare{text-align:left;color:inherit;background:0 0;border:0;border-radius:8px;padding:0}.material{align-items:center;gap:9px;min-width:0;display:flex}.material span:last-child{min-width:0;display:grid}.material strong{font-weight:660;line-height:1.32}.material small{color:var(--muted);font-variant-numeric:tabular-nums;margin-top:3px}.status{white-space:nowrap;border-radius:20px;align-items:center;gap:5px;padding:4px 8px;font-size:.8rem;font-weight:560;line-height:1.35;display:inline-flex}.status.good{color:#3c6741;background:#eaf2e9}.status.warn{color:#835523;background:#fbf0de}.status.danger{color:#9b382f;background:#fae9e5}.status.neutral{color:#695a54;background:#f0edeb}.status:before{content:"";background:currentColor;border-radius:50%;width:5px;height:5px}.table-footer{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:9px 16px;font-size:.85rem;display:flex}.pagination{white-space:nowrap;align-items:center;gap:5px;display:flex}.tasks{padding-bottom:9px}.tasks .panel-head,.category-summary .panel-head{border-bottom:1px solid var(--line)}.task{border:0;border-bottom:1px solid var(--line);text-align:left;width:100%;color:var(--ink);background:#fff;align-items:center;gap:7px;padding:9px 11px;display:flex}.task:hover{background:#fbf7f4}.task-name{flex:1;min-width:0;display:grid}.task-name strong{text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;overflow:hidden}.task-name small{margin-top:1px;font-size:.75rem}.task .status{padding-inline:6px;font-size:.74rem}.all-tasks{margin:5px 10px 0}.category-summary{padding-bottom:8px}.category-row{grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:7px 14px;font-size:.88rem;display:grid}.category-row strong{font-weight:660}.category-groups{gap:12px;display:grid}.category-group{overflow:hidden}.category-management-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:9px;padding:13px 15px;display:flex}.category-identity,.category-actions{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.category-identity h2,.category-identity strong{overflow-wrap:anywhere}.category-identity h2{margin-bottom:2px}.category-actions{gap:5px}.category-actions .button{min-width:44px}.danger-text{color:var(--danger)}.subcategory-panel{border-top:1px solid var(--line);background:#faf8f6;padding:8px 14px 9px}.subcategory-head{flex-wrap:wrap;gap:6px}.subcategory-head h3,.subcategory-empty{padding-left:5px}.subcategory-empty{padding-block:4px}.category-child{background:var(--paper);border:1px solid var(--line);border-radius:8px;margin-top:6px;padding:5px 8px}.child-connector{border:0 solid #bcaaa4;border-width:0 0 1px 1px;flex:none;width:10px;height:9px;margin:-5px 0 0 5px}.category-delete-note{margin-top:11px}.empty{min-height:110px;color:var(--muted);align-content:center;justify-items:center;gap:8px;padding:16px;font-size:.9rem;display:grid}.catalog-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:12px;display:grid}.catalog-card{flex-direction:column;gap:10px;min-height:165px;padding:16px;display:flex}.catalog-card p,.catalog-bottom span{color:var(--muted);font-size:.87rem}.catalog-bottom{margin-top:auto;padding-top:8px}.row-between{justify-content:space-between;align-items:center;gap:8px;display:flex}.orders{gap:13px;display:grid}.order-head{border-bottom:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0;background:#fbf8f6;padding:13px 16px}.order-head-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 10px;display:flex}.order-line{padding:12px 15px}.order-line+.order-line{border-top:1px solid var(--line)}.order-summary{grid-template-columns:minmax(170px,1.15fr) minmax(135px,1fr) auto auto;align-items:center;gap:9px;display:grid}.order-quantities{color:var(--muted);flex-wrap:wrap;gap:4px 11px;font-size:.875rem;display:flex}.line-actions{flex-wrap:wrap;gap:6px;display:flex}.line-note,.sample-tags{color:var(--muted);margin:7px 0;font-size:.87rem}.return-note{color:var(--muted);background:#f9f7f5;border-radius:7px;justify-content:space-between;align-items:center;gap:6px;margin-top:6px;padding:7px 9px;font-size:.875rem;display:flex}.sample-tags{flex-wrap:wrap;gap:5px;display:flex}.sample-tags span{color:var(--wine);background:#f3eeeb;border-radius:5px;padding:3px 7px}.modal{width:min(550px,100% - 24px);max-height:calc(100dvh - 30px);color:var(--ink);background:#fff;border:1px solid #e0d5d1;border-radius:13px;padding:0;box-shadow:0 20px 65px #30171445}.modal.wide{width:min(690px,100% - 24px)}.modal::backdrop{background:#27212088}body:has(dialog[open]){overflow:hidden}.modal-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;padding:17px 18px 14px;display:flex}.modal-head h2{font-size:1.25rem}.modal-head p{color:var(--muted);margin-top:6px;font-size:.9rem}.modal-head .icon-button{margin:-3px -4px 0 0}.form-body{gap:13px;padding:16px 18px;display:grid}.modal-foot{z-index:1;border-top:1px solid var(--line);background:#fff;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:12px 18px;display:flex;position:sticky;bottom:0}.field{gap:5px;min-width:0;font-size:.9rem;font-weight:580;display:grid}.field small{font-weight:400}.field input,.field textarea,.choice select{color:var(--ink);background:#fff;border:1px solid #ded6d1;border-radius:7px;width:100%;min-width:0;min-height:41px;padding:8px 10px;font-size:.95rem;font-weight:400}.field input[type=file]{padding:8px}.field textarea{resize:vertical}.choice{min-width:0;display:block;position:relative}.choice select{-webkit-appearance:none;appearance:none;padding-right:27px}.choice svg{color:var(--muted);pointer-events:none;position:absolute;top:calc(50% - 8px);right:8px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;display:grid}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-section{border-top:1px solid var(--line);gap:8px;padding-top:12px;display:grid}.source-form{border:1px solid var(--line);border-radius:8px;gap:10px;padding:9px;display:grid}.source-read{border:1px solid var(--line);border-radius:8px;flex-wrap:wrap;padding:8px 10px}.source-read span:first-child,.unit-row span:nth-child(2){display:grid}.align-end{align-items:end}.check{align-items:center;gap:5px;padding:8px 1px;font-size:.87rem;font-weight:500;display:inline-flex}input[type=checkbox]{accent-color:var(--wine)}.hint{color:var(--muted);font-size:.9rem}.error-box{color:#913326;background:#fbece9;border-radius:8px;align-items:center;gap:8px;padding:10px 12px;font-size:.9rem;display:flex}.content>.error-box{margin-bottom:12px}.error-box .icon-button{margin-left:auto}.error-text{color:var(--danger)}.toast{color:#284e31;z-index:15;background:#f3faf2;border:1px solid #bed1bb;border-radius:9px;align-items:center;gap:8px;padding:11px 14px;display:flex;position:fixed;bottom:20px;right:20px;box-shadow:0 10px 25px #2b24222b}.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;display:grid}.summary-grid div{background:#faf7f5;border-radius:7px;padding:9px;display:grid}.summary-grid strong{font-variant-numeric:tabular-nums}.meta-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;display:grid}.meta-list div{overflow-wrap:anywhere;grid-template-columns:70px 1fr;align-items:center;gap:6px;min-width:0;font-size:.875rem;display:grid}.meta-list dt{color:var(--muted)}.warehouse-value{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.unit-row,.cart-item{border:1px solid var(--line);border-radius:8px;grid-template-columns:auto minmax(95px,1fr) auto auto;align-items:center;gap:8px;padding:7px;display:grid}.cart-item{grid-template-columns:minmax(120px,1fr) 92px auto}.cart-item .icon-button:last-child{grid-column:-2}.unit-row img,.sample-option img{object-fit:cover;border-radius:7px;width:40px;height:40px;display:block}.model-preview{object-fit:contain;background:#f7f4f1;border-radius:8px;width:100%;height:150px}.sample-choice{gap:5px;display:grid}.sample-option{border:1px solid var(--line);border-radius:7px;align-items:center;gap:8px;padding:5px 8px;display:flex}.photo-input,.photo-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.photo-input{justify-items:start;display:grid}.photo-input img{object-fit:contain;border-radius:7px;max-width:100%;height:140px}.file-pick{cursor:pointer;position:relative}.file-pick input{cursor:pointer;opacity:0;width:100%;position:absolute;inset:0}.file-pick:focus-within{outline-offset:2px;outline:2px solid #a36952}.login-page{background:#f2ebe6;place-items:center;min-height:100dvh;padding:15px;display:grid}.login{gap:11px;width:min(390px,100%);padding:21px;display:grid}.login .brand{margin-bottom:5px;padding:0}.login .brand small{color:var(--muted)}.login h1{font-size:1.45rem}.login p{color:var(--muted)}.login-account{justify-content:space-between}.login-account span{color:var(--muted);font-size:.85rem}@media (max-width:1250px){.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px}.dashboard-grid .table-controls{flex-wrap:wrap;justify-content:flex-start}.dashboard-grid .search{flex:1 0 150px}}@media (max-width:1100px){.shell{grid-template-columns:192px minmax(0,1fr)}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-rail{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}@media (max-width:780px){.shell{display:block}.sidebar{visibility:hidden;width:min(235px,80vw);height:100dvh;transition:transform .18s,visibility .18s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.sidebar.open{visibility:visible;transform:translate(0)}.mobile-menu{display:inline-grid!important}.nav-overlay{z-index:4;background:#21191870;border:0;position:fixed;inset:0;display:block!important}.topbar{height:51px;padding:0 12px}.crumb-icon{display:none}.content{padding:16px 12px 30px}.page-head{flex-wrap:wrap;margin-bottom:14px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px}.metric{padding:11px 9px}.metric strong{font-size:1.6rem}.metric .tile{width:33px;height:33px}.metric div span{font-size:.85rem}.order-summary{flex-wrap:wrap;gap:8px;display:flex}.order-summary .material{width:100%}.order-summary .line-actions{margin-left:auto}.table-controls,.catalog-filter{flex-wrap:wrap;justify-content:flex-start}.table-controls .search,.catalog-filter .search{flex:100%}.category-filters{flex-wrap:wrap}.field input,.choice select,.field textarea{font-size:1rem}}@media (max-width:490px){.topbar-end>span:first-child{display:none}.dashboard-rail{grid-template-columns:1fr}.stock-table{min-width:0}.stock-table td,.stock-table th{padding-inline:4px;font-size:.78rem}.stock-table td:first-child,.stock-table th:first-child{padding-left:8px}.stock-table td:nth-child(2),.stock-table th:nth-child(2),.stock-table td:last-child,.stock-table th:last-child{display:none}.stock-table td:nth-last-child(2),.stock-table th:nth-last-child(2){padding-right:7px}.stock-table .material{gap:4px}.stock-table .material .tile{display:none}.stock-table .material small,.stock-table .numeric small{font-size:.72rem}.stock-table .mobile-subcategory{display:inline}.stock-table .status{padding-inline:5px;font-size:.72rem}.stock-table .status:before{display:none}.form-body,.modal-head,.modal-foot{padding-inline:12px}.cart-item{grid-template-columns:minmax(0,1fr) minmax(95px,1fr) 31px}.cart-item .material{grid-column:1/3}.cart-item .icon-button:last-child{grid-area:1/-2}.unit-row{flex-wrap:wrap;display:flex}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.head-actions{gap:5px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.001ms!important}}
