:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,PingFang SC,Helvetica Neue,sans-serif;color:#242830;background:#f6f7f9;font-synthesis:none;font-size:13px;--bg:#f6f7f9;--surface:#fff;--sidebar:#fbfcfd;--line:#e9ebef;--text:#242830;--muted:#8b919d;--subtle:#f5f6f8;--accent:#236957;--accent-soft:#edf5f1;--amber:#a47b37;--amber-soft:#fbf5e9;--shadow:0 8px 40px #1e293b0b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button{transition:background .15s,border-color .15s,opacity .15s}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:2px solid #649c88;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #649c8838;border-color:#649c88}input,textarea,select{min-width:0;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px 12px;width:100%;transition:border-color .15s}input::placeholder,textarea::placeholder{color:#a4a8b1}textarea{resize:vertical;line-height:1.7}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-.8px;font-weight:650;line-height:1.45}h2{font-size:15px;font-weight:600}h3{font-size:14px;font-weight:600}small{font-size:11px}b,strong{font-weight:600}.muted{color:var(--muted)}.green-text{color:var(--accent)}.amber-text{color:var(--amber)}.mono{font-family:SFMono-Regular,Consolas,monospace;font-size:11px;letter-spacing:.4px}.tabular,.stat-number{font-variant-numeric:tabular-nums}.app{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:var(--sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:32px 18px 16px;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding:0 6px}.brand-mark{background:var(--accent);color:#fff;border-radius:10px;width:35px;height:35px;display:grid;place-items:center}.brand strong{font-size:16px;letter-spacing:-.5px;white-space:nowrap}.brand span{display:block;font-size:10px;color:var(--muted);font-weight:400;letter-spacing:1.2px;margin-top:5px}.workspace-label{display:flex;justify-content:space-between;color:#a0a6af;font-size:10px;letter-spacing:1px;padding:0 12px;margin:43px 0 14px}.workspace-label span{font-size:8px;letter-spacing:1.5px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;background:none;border:none;color:#747c87;border-radius:8px;padding:12px 13px;text-align:left;margin-bottom:6px;font-size:12px}.nav-item:hover{background:var(--subtle)}.nav-item.active{color:var(--accent);background:var(--accent-soft);font-weight:600}.nav-item b{margin-left:auto;font-size:10px;padding:2px 6px;background:#fff9;border-radius:4px}.sidebar-bottom{margin-top:auto}.local-card{padding:16px 12px;background:var(--subtle);border:1px solid var(--line);border-radius:9px;margin:25px 6px 18px}.local-card>div{display:flex;align-items:center;gap:7px;font-size:11px}.local-card p{font-size:10px;color:var(--muted);margin:9px 0}.local-card>span{font-size:9px;letter-spacing:.6px;color:var(--muted)}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#55977c;flex-shrink:0}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:19px 7px 0;margin-top:11px}.profile strong{font-size:11px;display:block}.profile small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.avatar{width:30px;height:30px;border-radius:50%;background:#e7ebe8;color:#4c6258;display:grid;place-items:center;font-weight:600}.profile .icon-button{margin-left:auto}.main-shell{margin-left:220px;width:calc(100% - 220px);display:flex;flex-direction:column;min-height:100vh}.topbar{height:65px;flex-shrink:0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:var(--surface)}.breadcrumb{display:flex;align-items:center;gap:13px;font-size:11px;color:var(--muted)}.breadcrumb strong{font-weight:450;color:var(--text)}.topbar-actions{display:flex;gap:25px;align-items:center}.search-box{display:flex;align-items:center;color:var(--muted);gap:8px}.search-box input{width:190px;padding:6px 0;border:0;background:none;font-size:11px}.search-box kbd{font-family:inherit;font-size:9px;background:var(--subtle);border:1px solid var(--line);padding:2px 5px;border-radius:4px}.saved-state{color:var(--muted);font-size:10px;display:flex;align-items:center;gap:6px;white-space:nowrap}.main-shell main{padding:34px 36px 24px;max-width:1640px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#929aa6;font-weight:500;display:block;margin-bottom:8px}.eyebrow span{color:#b6bbc5;margin-left:5px}.page-heading p{font-size:12px;color:var(--muted);margin-top:8px}.heading-actions{display:flex;gap:10px;align-items:center}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:9px 13px;border:1px solid var(--line);background:var(--surface);border-radius:7px;font-size:11px;font-weight:500;white-space:nowrap;line-height:1.4}.button:hover{background:var(--subtle);border-color:#cbd1d7}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button.primary:hover{background:#185442}.button.soft,.button.done{background:var(--accent-soft);border-color:transparent;color:var(--accent)}.button.danger{color:#b76262}.icon-button{border:0;background:transparent;border-radius:6px;padding:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}.icon-button:hover{background:var(--subtle)}.icon-button.danger{color:#b76262}.text-button{background:none;border:none;padding:0;color:var(--accent);font-size:11px;display:inline-flex;align-items:center;gap:6px}.text-button:hover{opacity:.7}.text-link{display:block;font-size:11px;color:var(--accent);margin-top:6px}.welcome-line{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);margin:1px 0 19px}.welcome-line>div{display:flex;align-items:center;gap:7px;color:#727e78}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:21px 20px;display:flex;flex-direction:column;min-width:0}.stat-label{font-size:11px;color:#7f8793;display:flex;align-items:center;justify-content:space-between}.stat-label svg{color:#9da8a0}.stat-number{font-size:28px;font-weight:550;letter-spacing:-1px;display:block;margin:19px 0 14px;white-space:nowrap}.stat-caption{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:3px;line-height:1.5}.stat-caption.green-text{color:var(--accent)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:21px 23px 0}.panel-heading h2{font-size:13px}.dashboard-mid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;margin-bottom:32px}.chart-legend{display:flex;align-items:center;gap:13px;font-size:9px;color:var(--muted)}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:6px;height:6px;border-radius:2px}.income{background:#5c947f}.purchase{background:#d2ddd7}.chart{display:flex;padding:27px 25px 0 23px;height:201px;gap:20px}.chart-axis{font-size:8px;color:var(--muted);display:flex;flex-direction:column;justify-content:space-between;white-space:nowrap;padding-bottom:24px}.chart-bars{display:flex;position:relative;flex:1;gap:8%;justify-content:space-around}.grid-lines{position:absolute;top:0;right:0;bottom:24px;left:0;display:flex;justify-content:space-between;flex-direction:column}.grid-lines i{display:block;border-top:1px dashed var(--line);width:100%}.chart-month{z-index:1;display:flex;flex-direction:column;width:9%;gap:9px;align-items:center;justify-content:flex-end}.bar-pair{display:flex;align-items:flex-end;gap:5px;height:100%;width:100%;justify-content:center}.bar{width:20px;min-height:2px;border-radius:3px 3px 0 0;transition:height .3s}.chart-month>span{font-size:9px;color:var(--muted);height:16px;white-space:nowrap}.chart-foot{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:13px 23px;font-size:9px;color:var(--muted);margin-top:20px}.work-summary .work-number{font-size:38px;letter-spacing:-1px;font-weight:550;padding:20px 23px 0}.work-number span{font-size:11px;color:var(--muted);margin-left:10px;font-weight:400;letter-spacing:0}.work-summary>p{font-size:10px;color:var(--muted);padding:6px 23px 17px}.summary-lines{border-top:1px solid var(--line);margin:0 23px;padding:10px 0}.summary-lines>div{display:flex;justify-content:space-between;font-size:10px;margin:9px 0}.summary-lines>div>span{color:var(--muted);display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;display:inline-block}.dot.amber{background:#c6a165}.dot.green{background:#5c947f}.dot.gray{background:#adb6c2}.work-summary>.button{width:calc(100% - 46px);margin:0 23px 18px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.section-title h2{font-size:15px;display:flex;gap:8px;align-items:center}.count{background:#e9edf0;color:#7e8793;border-radius:4px;font-size:9px;padding:3px 6px}.section-title p{color:var(--muted);font-size:10px;margin-top:7px}.order-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.order-card{display:block;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:18px 19px 0;overflow:hidden;min-width:0}.order-card:hover{border-color:#aabcb2;box-shadow:var(--shadow)}.order-card-top{display:flex;align-items:center;justify-content:space-between;gap:5px}.order-card-top>.mono{font-size:9px;color:#8d97a4}.pill{font-size:9px;font-weight:450;padding:4px 7px;display:inline-flex;align-items:center;gap:4px;background:var(--subtle);color:#86909d;border-radius:5px;white-space:nowrap}.status-dot{width:4px;height:4px;border-radius:50%;background:currentColor}.pill.green{background:var(--accent-soft);color:var(--accent)}.pill.amber{background:var(--amber-soft);color:var(--amber)}.order-card-title{display:flex;justify-content:space-between;align-items:baseline;margin:17px 0}.order-card-title h3{font-size:15px;letter-spacing:-.3px}.order-card-title strong{font-size:15px;font-variant-numeric:tabular-nums}.order-items{min-height:45px}.order-items>div{display:flex;justify-content:space-between;font-size:10px;margin:9px 0;gap:6px;line-height:1.5}.order-items>div>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-items .muted{white-space:nowrap;font-size:9px}.order-items b{font-weight:450;margin-left:7px}.order-note{background:#faf7f1;color:#9b845d;border-radius:5px;padding:9px 10px;font-size:9px;line-height:1.6;min-height:32px;white-space:pre-wrap;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:13px 0 15px}.order-note.quiet{background:var(--subtle);color:#9ba1ad}.order-card-foot{display:flex;justify-content:space-between;font-size:9px;color:#939ba6;border-top:1px solid var(--line);padding:13px 0}.order-card-foot>span{display:flex;gap:7px;align-items:center}.order-card-foot i{width:2px;height:2px;border-radius:50%;background:#bbb}.progress-text{color:var(--accent);font-size:10px}.progress-track{height:3px;background:var(--subtle);margin:0 -19px}.progress-track>div{height:100%;background:#639a82}.bottom-note{display:flex;justify-content:space-between;color:#a0a7b0;font-size:9px;gap:14px;margin-top:24px}.bottom-note>span{display:flex;gap:5px;align-items:center}.app-footer{margin:10px 36px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:8px;color:#a5adb8;letter-spacing:.5px;padding:19px 0 22px}.app-footer>span:first-child{letter-spacing:1.5px}.section-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:14px}.tabs{background:#eef0f3;padding:3px;display:inline-flex;border-radius:7px;gap:2px}.tabs button{background:none;border:none;color:#9198a3;padding:7px 13px;font-size:10px;border-radius:5px;display:flex;gap:6px;align-items:center;white-space:nowrap}.tabs button.active{background:var(--surface);box-shadow:0 1px 4px #00000008;color:var(--text);font-weight:550}.toolbar-right{display:flex;align-items:center;gap:17px}.checkbox{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.checkbox input{width:13px;height:13px;accent-color:var(--accent)}.production-intro{display:flex;align-items:center;gap:9px;font-size:10px;color:#6c7b72;margin:24px 0}.production-intro>.muted{margin-left:auto;font-size:9px}.production-groups{display:grid;gap:18px}.production-group-head{padding:19px 21px;display:flex;align-items:center;gap:18px}.production-group-head>div{display:flex;align-items:center;gap:15px}.production-group-head>div>.mono{color:var(--muted);font-size:10px}.production-group-head h3{font-size:14px}.production-group-head>.text-button{margin-left:auto}.production-note{padding:10px 21px;color:var(--amber);background:var(--amber-soft);border-top:1px solid #a47b370a;font-size:11px;line-height:1.6;white-space:pre-wrap}.production-row{padding:19px 21px;display:flex;align-items:center;gap:27px;border-top:1px solid var(--line)}.unit-code{width:108px;flex-shrink:0}.unit-code>.mono{display:block;font-size:15px;font-weight:600;letter-spacing:1px;color:var(--accent)}.unit-code small{font-size:8px;display:block;color:var(--muted);margin-top:6px;letter-spacing:1px}.production-product{flex:1}.production-product strong{font-size:13px;display:block}.production-product>span{display:block;font-size:10px;color:var(--muted);margin-top:6px}.production-product>small{display:block;margin-top:7px}.spec-link{border:0;background:none;color:var(--muted);font-size:10px;white-space:nowrap}.production-row.complete{background:var(--subtle)}.production-row.complete .unit-code>.mono{color:var(--muted)}.focus-mode .main-shell{margin-left:0;width:100%}.focus-mode main{max-width:none}.empty{text-align:center;padding:62px 24px;color:var(--muted);background:var(--surface);border-radius:10px}.empty-icon{width:46px;height:46px;background:var(--subtle);border:1px solid var(--line);display:grid;place-items:center;border-radius:12px;margin:0 auto 17px;color:#81978b}.empty h3{color:var(--text);font-size:16px;margin-bottom:10px}.empty p{font-size:12px;line-height:1.8;margin-bottom:20px}.onboarding{display:flex;align-items:center;justify-content:center;gap:15px;color:var(--muted);font-size:11px;margin-top:24px}.demo-banner{background:var(--accent-soft);border:1px solid #bad3c744;border-radius:7px;padding:11px 14px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--accent)}.demo-banner>span{display:flex;gap:7px;align-items:center}.demo-banner button{border:0;background:none;display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap;color:var(--accent)}.error-banner{display:flex;align-items:center;gap:12px;padding:12px;background:#fff0f0;color:#ad5d5d;border-radius:8px;margin-bottom:18px}.quick-add{position:relative}.menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:39}.dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:40;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 30px #0001;border-radius:9px;padding:5px;width:185px}.dropdown button{display:flex;align-items:center;justify-content:space-between;background:none;border:0;width:100%;text-align:left;padding:12px 10px;font-size:12px;border-radius:5px}.dropdown button:hover{background:var(--subtle)}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product-card{text-align:left;padding:0;transition:border-color .15s}.product-card:hover{border-color:#aabcb2}.product-visual{height:178px;background:linear-gradient(140deg,#f0f3f0,#e8eeea);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.product-connector{position:absolute;top:14px;right:14px;background:#fff8;color:#718077;padding:4px 7px;border-radius:4px;font-size:9px;letter-spacing:.6px}.battery-art{position:relative;transform:rotate(-9deg);width:154px;height:90px;filter:drop-shadow(0 12px 10px #203a2325)}.battery-block{position:relative;background:linear-gradient(110deg,#4b5d52,#283b2f);border-radius:7px 11px 10px 7px;box-shadow:inset -11px 0 #182d2580,inset 0 2px #91a58d55;display:flex;flex-direction:column;justify-content:center;padding:15px 17px;gap:5px;width:100%;height:100%;color:#e9eee8;border:1px solid #24372b}.battery-block>span{font-size:6px;letter-spacing:1.4px;opacity:.7}.battery-block>strong{font-size:25px;letter-spacing:1px;line-height:1.2}.battery-block>small{font-size:6px;opacity:.7}.color-1 .battery-block{background:linear-gradient(110deg,#8b918f,#555d5a)}.color-2 .battery-block{background:linear-gradient(110deg,#556570,#2e3d47)}.battery-wires{position:absolute;top:18px;right:-34px;width:47px;height:35px;border-top:3px solid #a06053;border-right:3px solid #a06053;border-bottom:3px solid #333d37;border-radius:0 18px 12px 0}.battery-wires:after{content:"";position:absolute;right:-9px;top:9px;width:13px;height:20px;background:#b6a060;border:2px solid #d6c18a;border-radius:2px}.product-body{padding:23px 21px 0}.product-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.product-heading h3{font-size:14px}.product-heading svg{color:var(--muted);flex-shrink:0}.product-body>p{font-size:10px;color:var(--muted);margin-top:8px}.product-price{display:flex;gap:10px;align-items:baseline;margin:23px 0}.product-price strong{font-size:22px;letter-spacing:-.5px}.product-price>span{font-size:9px;color:var(--muted)}.product-foot{border-top:1px solid var(--line);padding:15px 0;display:flex;justify-content:space-between;font-size:9px;color:var(--muted);gap:10px}.product-foot>span{display:flex;align-items:center;gap:5px}.inventory-summary{display:flex;align-items:center;justify-content:space-between;background:var(--surface);border:1px solid var(--line);padding:22px 23px;border-radius:10px;margin-bottom:25px;gap:18px;font-size:11px;color:var(--muted)}.inventory-summary>div{display:flex;gap:12px;align-items:center}.inventory-summary strong{color:var(--text);margin:0 5px;font-size:16px}.notice{display:flex;gap:8px;align-items:center;background:var(--subtle);padding:12px 14px;border-radius:7px;color:var(--muted);font-size:11px;line-height:1.8;margin:14px 0 20px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{padding:16px 23px;background:var(--subtle);color:var(--muted);font-size:10px;font-weight:450}td{padding:19px 23px;border-top:1px solid var(--line);font-size:11px}td small{display:block;color:var(--muted);font-size:9px;margin-top:7px}td strong{font-weight:550}.finance-stats .stat-number{font-size:25px}.finance-toolbar{align-items:center}.date-range{display:flex;align-items:center;gap:8px;color:var(--muted)}.date-range input{font-size:10px;padding:6px 8px;width:130px}.finance-actions{display:flex;align-items:center;justify-content:space-between;margin:25px 0 15px;gap:18px}.finance-actions>.muted{font-size:10px;line-height:1.8}.overlay,.drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#15241c33;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:100;display:flex;align-items:center;justify-content:center;padding:22px}.modal{background:var(--surface);border:1px solid var(--line);width:490px;max-width:100%;max-height:90vh;border-radius:14px;box-shadow:0 20px 90px #12201925;overflow:auto}.modal.wide{width:700px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);padding:25px 27px;position:sticky;top:0;background:var(--surface);z-index:2}.modal-head h2{font-size:18px;letter-spacing:-.4px}.modal-head p{font-size:11px;color:var(--muted);margin-top:8px}.form-body{padding:24px 27px;display:flex;flex-direction:column;gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid.three{grid-template-columns:1fr 1fr 1fr}.field{display:flex;flex-direction:column;gap:8px;font-size:11px}.field>span{color:#7f8793;font-weight:450}.field small{font-size:10px;color:var(--muted);line-height:1.7}.form-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:7px}.form-section-head h3{font-size:12px}.item-edit,.recipe-edit{padding:17px;background:var(--subtle);border:1px solid var(--line);border-radius:9px}.item-select{display:flex;gap:12px;align-items:center;margin-bottom:15px}.item-select>.field{flex:1}.item-select>.icon-button{margin-top:20px}.modal-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:19px 27px;position:sticky;bottom:0;background:var(--surface);z-index:1;gap:12px}.modal-foot small{color:var(--muted);display:block;font-size:10px;margin-bottom:5px}.modal-foot strong{font-size:21px;letter-spacing:-.5px}.modal-foot>.muted{font-size:10px}.error-text{font-size:12px;color:#b46262;line-height:1.8;background:#b462620c;padding:9px 12px;border-radius:6px}.snapshot-edit{margin-top:17px;font-size:11px;color:var(--muted)}summary{cursor:pointer;font-size:11px;line-height:1.8}.snapshot-edit p{font-size:10px;margin:10px 0}.snapshot-row{display:flex;align-items:center;gap:10px;font-size:10px;margin:7px 0}.snapshot-row span{width:70px;flex-shrink:0}.snapshot-row input{padding:7px;font-size:10px}.snapshot-row input:last-child{width:70px}.snapshot-edit textarea{font-size:11px;margin-top:8px}.recipe-editor{display:flex;flex-direction:column;gap:13px}.recipe-edit-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.recipe-edit-title>.eyebrow{margin:0}.recipe-edit>.field{margin-top:15px}.upload{display:inline-flex;font-size:11px;cursor:pointer;border:1px dashed #c3cbc6;padding:12px 15px;border-radius:7px;color:var(--accent);width:fit-content}.upload input{display:none}.photo-field>small{display:block;font-size:9px;color:var(--muted);margin-top:9px}.photo-grid{display:flex;gap:8px;flex-wrap:wrap}.photo{position:relative;width:75px;height:75px;margin-bottom:12px}.photo img,.detail-photo{width:75px;height:75px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}.photo>button{position:absolute;top:3px;right:3px;border:none;border-radius:3px;padding:2px;background:#fff;color:#888;display:flex}.photo-grid.tiny img{width:36px;height:36px;object-fit:cover;margin-top:8px;border-radius:4px}.drawer-overlay{padding:0;justify-content:flex-end;background:#15241c22}.drawer{width:540px;max-width:95vw;height:100%;background:var(--surface);display:flex;flex-direction:column;box-shadow:-10px 0 60px #12201915}.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:28px;border-bottom:1px solid var(--line)}.drawer-head h2{font-family:monospace;font-size:21px}.drawer-head .eyebrow{margin-bottom:6px}.drawer-content{padding:26px 28px;overflow-y:auto;flex:1}.detail-customer{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.detail-customer h2{font-size:23px}.drawer-content>.muted{font-size:11px}.detail-money{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);background:var(--subtle);border-radius:8px;padding:19px 22px;margin:23px 0;gap:12px}.detail-money span{font-size:10px;color:var(--muted);display:block;margin-bottom:8px}.detail-money strong{font-size:23px;letter-spacing:-.5px}.custom-note{background:var(--amber-soft);padding:16px 18px;border:1px solid #b28c4020;border-radius:8px;color:var(--amber);margin-bottom:22px}.custom-note>span{font-size:10px;font-weight:600}.custom-note p{font-size:12px;line-height:1.8;white-space:pre-wrap;margin-top:7px}.detail-item{border-bottom:1px solid var(--line);padding:12px 0 22px;margin-bottom:16px}.detail-item>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.detail-item>div:first-child span{font-size:10px;color:var(--muted)}.detail-item details{margin-top:14px;font-size:11px;line-height:1.8;color:var(--muted);background:var(--subtle);padding:10px 13px;border-radius:6px}.detail-item details p{margin:10px 0;white-space:pre-wrap}.recipe-mini{margin:8px 0;border-bottom:1px solid var(--line);padding-bottom:8px}.recipe-mini>b{display:block;color:var(--text);font-size:10px}.recipe-mini>span{font-size:10px}.unit-list{margin-top:17px}.unit-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px dashed var(--line);padding:10px 0}.unit-row>.mono{font-size:13px;color:var(--accent)}.unit-row .button{font-size:10px;padding:7px 9px}.detail-section{margin-top:24px}.detail-section h3{font-size:12px}.detail-section p{font-size:10px;line-height:1.8;margin:9px 0 13px}.inline-form{display:flex;gap:8px}.list-line{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}.list-line strong{color:var(--text)}.detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin:24px 0 8px}.drawer-foot{display:flex;justify-content:space-between;align-items:center;padding:20px 28px;border-top:1px solid var(--line)}.drawer-foot span{font-size:11px;color:var(--muted)}.settings-body{gap:0}.settings-body>section{padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid var(--line)}.settings-body>section:last-child{border:0;margin:0;padding:0}.settings-body h3{font-size:12px;margin-bottom:10px}.settings-body p{font-size:11px;color:var(--muted);line-height:1.8;margin:7px 0 16px}.settings-buttons{display:flex;gap:10px}.settings-row{display:flex;align-items:center;justify-content:space-between;margin-top:15px;font-size:11px;color:var(--muted)}.shortcuts>span{display:flex;justify-content:space-between;font-size:10px;margin-top:13px;color:var(--muted)}.shortcuts kbd{font-family:inherit;font-size:9px}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%);padding:13px 20px;border:1px solid #b7c9bf;background:var(--surface);color:var(--accent);border-radius:9px;z-index:200;box-shadow:0 5px 30px #0001;display:flex;align-items:center;gap:10px;font-size:12px;max-width:90vw}.toast.error{color:#b76262;border-color:#b7626255}.loading{min-height:400px;display:flex;justify-content:center;align-items:center;gap:12px;color:var(--muted)}.spinner{width:17px;height:17px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.search-results{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:23px}.search-results h2{margin-bottom:15px}.search-results>button{display:flex;align-items:center;gap:12px;width:100%;padding:16px 5px;border:none;background:none;text-align:left;border-top:1px solid var(--line)}.search-results>button>span{flex:1;font-size:12px}.search-results small{display:block;font-size:10px;color:var(--muted);margin-top:7px}.density-compact .order-card{padding-top:13px}.density-compact .order-card-title{margin:12px 0}.density-compact .order-note{margin:8px 0}.density-compact .production-row{padding-top:12px;padding-bottom:12px}.density-compact td{padding-top:13px;padding-bottom:13px}.density-compact .main-shell main{padding-top:25px}.cancelled{opacity:.65}[data-theme=dark]{--bg:#161b1a;--surface:#202624;--sidebar:#1b201f;--line:#2e3733;--text:#e5eae7;--muted:#8b9a91;--subtle:#252d29;--accent:#86bba0;--accent-soft:#2b3c32;--amber:#cfb279;--amber-soft:#373123;color:var(--text);background:var(--bg)}[data-theme=dark] .button.primary{background:#4d8469;border-color:#4d8469;color:#fff}[data-theme=dark] .brand-mark{background:#4d8469}[data-theme=dark] .order-note{background:var(--amber-soft);color:var(--amber)}[data-theme=dark] .order-note.quiet{background:var(--subtle);color:var(--muted)}[data-theme=dark] .tabs{background:#111714}[data-theme=dark] .nav-item b{background:#17231c}[data-theme=dark] .product-visual{background:linear-gradient(140deg,#2c3930,#28302b)}[data-theme=dark] .product-connector{background:#26342ca0;color:#99ac9f}[data-theme=dark] .count{background:var(--subtle)}[data-theme=dark] .purchase{background:#46584c}[data-theme=dark] .avatar{background:#334038;color:#a7c1af}[data-theme=dark] .error-banner{background:#3b2828}[data-theme=dark] .field>span{color:#a0aca4}@media(min-width:1600px){.order-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-mid{grid-template-columns:1fr 330px}.stat-number{font-size:32px}.chart{height:220px}}@media(max-width:1200px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.brand strong{font-size:14px}.main-shell{margin-left:190px;width:calc(100% - 190px)}.main-shell main{padding:28px 25px}.topbar{padding:0 25px}.order-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-number{font-size:23px}.stat-card{padding:18px 16px}.stat-caption{font-size:8px}.dashboard-mid{grid-template-columns:minmax(0,1fr) 255px}.finance-toolbar{flex-wrap:wrap}.production-row{gap:20px}.production-intro>.muted{display:none}}@media(max-width:900px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-caption{font-size:9px}.dashboard-mid{grid-template-columns:1fr}.work-summary{display:none}.topbar-actions{gap:13px}.search-box input{width:135px}.search-box kbd{display:none}.heading-actions>.button{display:none}.inventory-summary{flex-wrap:wrap}.production-row{flex-wrap:wrap;gap:15px}.production-row>.button{margin-left:auto}.spec-link{display:none}.production-group-head{gap:8px}.production-group-head>div{flex-wrap:wrap;gap:6px}.production-group-head>.pill{margin-left:auto}.toolbar-right{gap:9px}.chart-legend small{display:none}.breadcrumb>span:first-child,.breadcrumb>span:nth-child(2){display:none}}@media(max-width:660px){.sidebar{position:relative;width:100%;height:auto;padding:17px 15px 10px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 3px}.brand strong{font-size:16px}.workspace-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:5px;margin-top:18px}.nav-item{white-space:nowrap;margin:0;padding:10px;gap:6px;font-size:11px}.nav-item svg{width:14px}.nav-item b{display:none}.app{display:block}.main-shell{margin-left:0;width:100%}.topbar{height:49px;padding:0 18px}.topbar-actions{flex:1;justify-content:flex-end}.saved-state{display:none}.main-shell main{padding:23px 17px}.page-heading{margin-bottom:21px}.page-heading h1{font-size:24px}.page-heading p{font-size:10px;line-height:1.6}.page-heading .eyebrow{font-size:7px}.order-grid,.product-grid{grid-template-columns:1fr}.stat-card{padding:16px}.stat-number{font-size:23px;margin:15px 0 11px}.stats-grid{gap:10px}.stat-caption{font-size:8px;line-height:1.7}.welcome-line{font-size:9px}.welcome-line>span{font-size:8px}.demo-banner{align-items:flex-start}.demo-banner>span{display:block;font-size:9px;line-height:1.8}.demo-banner>span>svg{display:none}.demo-banner button{font-size:9px}.section-toolbar{flex-wrap:wrap}.tabs button{font-size:9px;padding:7px 9px}.production-intro{font-size:9px}.production-group-head>.text-button{display:none}.production-row{padding:16px}.unit-code{width:90px}.unit-code>.mono{font-size:13px}.production-product strong{font-size:11px}.production-product>span{font-size:9px}.toolbar-right{width:100%;justify-content:space-between}.bottom-note{font-size:8px;line-height:1.8}.bottom-note>span:last-child{display:none}.app-footer{margin:12px 17px 0}.app-footer>span:nth-child(2){display:none}.modal{max-height:94vh;border-radius:11px}.overlay{padding:10px}.modal-head{padding:20px}.form-body{padding:20px;gap:16px}.modal-foot{padding:17px 20px}.form-grid.three{gap:8px}.form-grid{gap:13px}.item-edit,.recipe-edit{padding:13px}.field{font-size:10px}.modal-foot>.muted{font-size:9px}.drawer{max-width:100vw;width:100%}.drawer-content{padding:23px}.finance-actions{align-items:flex-start}.date-range input{width:120px}.finance-stats .stat-number{font-size:21px}.inventory-summary{padding:17px}.inventory-summary>div:last-child{font-size:9px}.onboarding{font-size:10px;flex-direction:column}.search-box input{width:185px}.brand-mark{width:33px;height:33px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media(max-width:660px){.production-product{min-width:150px}.production-row>.button{margin-top:3px}.mobile-settings{display:inline-flex!important}}.mobile-settings{display:none}.display-url{word-break:break-all;font-family:monospace;line-height:1.9;font-size:11px}.order-display{max-width:1420px;margin:0 auto}.display-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.display-brand{display:flex;gap:13px;align-items:center;color:var(--accent)}.display-brand>div>h1{font-size:25px;color:var(--text)}.display-brand>div>span{font-size:9px;letter-spacing:2px;color:var(--muted);display:block;margin-top:5px}.display-clock{text-align:right}.display-clock strong{font-size:34px;font-weight:500;letter-spacing:-1px;display:block;font-variant-numeric:tabular-nums}.display-clock small{color:var(--muted);display:block;margin-top:4px}.display-summary{display:flex;align-items:center;gap:22px;font-size:12px;color:var(--muted);padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px;flex-wrap:wrap}.display-summary>span{display:flex;align-items:center;gap:7px}.display-summary strong{color:var(--text);font-size:17px}.display-summary>span:last-child{margin-left:auto;font-size:10px}.display-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.display-order{display:block;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:23px 24px 0;overflow:hidden;min-width:0}.display-order:hover{border-color:#aabcb2}.display-order-top{display:flex;justify-content:space-between;align-items:center}.display-order-top>.mono{font-size:12px;color:var(--muted)}.display-order-top .pill{font-size:11px}.display-customer{display:flex;justify-content:space-between;align-items:baseline;margin:22px 0}.display-customer h2{font-size:25px;letter-spacing:-.4px;overflow-wrap:anywhere}.display-customer>span{font-size:11px;color:var(--muted);white-space:nowrap;margin-left:15px}.display-items>div{padding:14px 0;border-top:1px solid var(--line)}.display-items>div>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.display-items strong{font-size:16px;line-height:1.6;overflow-wrap:anywhere}.display-plug{background:var(--accent-soft);color:var(--accent);border-radius:5px;padding:5px 9px;font-size:12px;white-space:nowrap}.display-items>div>div:nth-child(2){display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin:7px 0 13px}.display-items b{color:var(--text);font-size:14px}.display-unit-codes{display:flex;gap:7px;flex-wrap:wrap}.display-unit-codes>span{display:inline-flex;align-items:center;font-size:10px;letter-spacing:.3px;border:1px solid var(--line);border-radius:4px;padding:5px 7px;color:var(--muted);background:var(--subtle);font-family:monospace}.display-unit-codes>span.finished{color:var(--accent);background:var(--accent-soft);border-color:transparent}.display-note{padding:15px 17px;border-radius:7px;background:var(--amber-soft);color:var(--amber);margin:11px 0 19px}.display-note>span{font-size:10px;font-weight:550}.display-note>p{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px}.display-note.quiet{color:var(--muted);background:var(--subtle)}.display-card-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:15px 0;font-size:12px;color:var(--muted)}.display-card-bottom>span:last-child{display:flex;align-items:center;gap:5px;color:var(--accent);font-size:11px}.display-order .progress-track{margin:0 -24px;height:4px}.display-pagination{display:flex;gap:12px;justify-content:center;align-items:center;padding:24px 0;font-size:12px;color:var(--muted)}.display-pagination .button{min-height:40px}.display-controls{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:18px 0;gap:10px}.display-controls>div{display:flex;gap:9px;flex-wrap:wrap}.display-controls .button{min-height:40px}.display-tip{font-size:10px;text-align:center;color:var(--muted);margin-bottom:10px;line-height:1.8}.display-detail section{border-top:1px solid var(--line);padding-top:21px}.display-detail h3{display:flex;align-items:center;gap:8px;font-size:16px;line-height:1.6}.display-detail section>.muted{font-size:12px;margin:10px 0 14px;line-height:1.8}.display-detail .recipe-mini{font-size:12px;padding:12px 0}.display-detail .recipe-mini>b,.display-detail .recipe-mini>span{font-size:12px}.display-build-note{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:15px 0}.display-detail .custom-note p{font-size:15px}.display-detail .custom-note{margin-bottom:0}.display-detail .custom-note span{font-size:12px}@media(max-width:660px){.order-display{padding-bottom:env(safe-area-inset-bottom)}.display-header{margin-bottom:18px}.display-brand>div>h1{font-size:22px}.display-clock strong{font-size:31px}.display-clock small{font-size:10px}.display-summary{gap:11px 20px;padding:14px 0;margin-bottom:18px}.display-summary>span{font-size:11px}.display-summary>span:last-child{width:100%;margin:0;font-size:10px}.display-grid{grid-template-columns:1fr}.display-order{padding:20px 18px 0}.display-customer{margin:18px 0}.display-customer h2{font-size:26px}.display-items strong{font-size:16px}.display-items>div>div:first-child{align-items:flex-start}.display-plug{font-size:12px;padding:6px 8px}.display-note{padding:14px}.display-note>p{font-size:15px}.display-order .progress-track{margin:0 -18px}.display-unit-codes>span{font-size:11px;min-height:30px}.display-card-bottom{font-size:12px}.display-controls .button{padding:10px;font-size:11px}.display-detail .form-body{padding:20px}.form-body input,.form-body textarea,.form-body select,.inline-form input,.search-box input{font-size:16px}.form-body .button,.modal-foot .button,.drawer .button{min-height:42px}.field>span{font-size:12px}.drawer-head{padding:20px}.drawer-head h2{font-size:20px}.detail-customer h2{font-size:25px}.detail-item>div:first-child{align-items:flex-start;flex-direction:column;gap:7px}.detail-item>div:first-child h3{font-size:16px}.detail-item>div:first-child span{font-size:12px}.custom-note p{font-size:14px}.custom-note>span{font-size:11px}.drawer-content>div,.detail-section p{font-size:12px}.detail-item summary{font-size:13px}.order-card{padding:20px 19px 0}.order-card-title h3{font-size:19px}.order-card-title strong{font-size:17px}.order-items>div{font-size:13px}.order-items .muted{font-size:11px}.order-note{font-size:12px;line-height:1.8;padding:12px}.order-card-foot{font-size:11px}.order-card-top>.mono{font-size:11px}.order-card-top .pill{font-size:11px}.sidebar{padding-top:max(17px,env(safe-area-inset-top))}.main-shell main{padding-top:22px}.overlay{padding:8px}.modal{max-height:calc(100dvh - 16px)}.drawer{max-height:100dvh}.modal-foot{padding-bottom:max(17px,env(safe-area-inset-bottom))}}.login-shell{min-height:100dvh;display:grid;place-items:center;padding:24px;background:var(--bg)}.login-panel{width:420px;max-width:100%;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:38px 32px;box-shadow:var(--shadow)}.login-panel>.brand-mark{margin-bottom:27px;width:46px;height:46px}.login-panel h1{font-size:26px}.login-panel>p{margin:13px 0 27px;color:var(--muted);font-size:12px;line-height:1.8}.login-panel form{display:flex;flex-direction:column;gap:18px}.login-panel input{font-size:16px;min-height:46px}.login-panel form .button{width:100%;font-size:13px;min-height:45px}.login-panel>small{display:block;margin-top:28px;color:var(--muted);font-size:10px;line-height:1.8}.cloud-logout{position:fixed;right:12px;bottom:12px;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);z-index:40}.order-display{max-width:960px}.display-header{margin-bottom:10px}.display-brand>div>h1{font-size:20px}.display-clock strong{font-size:27px}.display-summary{padding:10px 0;margin-bottom:12px;gap:8px 16px}.display-summary strong{font-size:14px}.display-grid{grid-template-columns:1fr;gap:10px}.display-order{padding:13px 16px 0;border-radius:10px}.display-order-heading{display:flex;align-items:center;gap:10px}.display-order-heading h2{font-size:19px;overflow-wrap:anywhere;flex:1;line-height:1.35}.display-order-heading .pill{font-size:10px;white-space:nowrap}.display-date{font-size:10px;color:var(--muted);white-space:nowrap}.display-order-meta{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:5px 0 9px}.display-compact-items{display:grid;gap:6px;border-top:1px solid var(--line);padding-top:9px}.display-compact-items>div{display:flex;align-items:center;gap:8px;min-width:0}.display-compact-items strong{flex:1;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.display-compact-items b{font-size:14px;white-space:nowrap}.display-compact-items .display-plug{font-size:10px;padding:3px 6px}.display-compact-note{font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--amber);background:var(--amber-soft);border-radius:5px;padding:6px 8px;margin-top:8px}.display-compact-foot{display:flex;justify-content:space-between;gap:6px;align-items:center;padding:8px 0;color:var(--muted)}.display-compact-foot .mono{font-size:9px}.display-compact-foot>span:last-child{display:flex;gap:3px;align-items:center;font-size:10px;color:var(--accent);white-space:nowrap}.display-order .progress-track{margin:0 -16px;height:3px}.display-pagination{padding:12px 0;gap:9px}.display-controls{padding:10px 0}.display-tip{font-size:9px;margin:4px 0}.display-clock small{font-size:10px}@media(max-width:660px){.focus-mode .main-shell main{padding:14px 12px 8px}.display-header{gap:10px;margin-bottom:8px}.display-brand{gap:8px}.display-brand>div>h1{font-size:18px}.display-brand>div>span{font-size:8px;margin-top:2px}.display-clock strong{font-size:25px}.display-summary>span:last-child{width:auto;margin-left:auto;font-size:9px}.display-summary{gap:6px 10px;margin-bottom:10px;padding:8px 0}.display-summary>span{font-size:10px;gap:4px}.display-order{padding:11px 12px 0}.display-order-heading h2{font-size:18px}.display-order .progress-track{margin:0 -12px}.display-order-heading{gap:7px}.display-controls .button{padding:8px 7px;font-size:10px}.display-controls>div{gap:5px}.display-controls{gap:5px}.display-pagination .button{min-height:36px}.display-tip{display:none}}
