:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f6f5f1;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}#root{min-height:100vh}.shell{color:#20231f;background:#f4f2ec;grid-template-columns:288px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#f7f2e8;background:#213830;flex-direction:column;gap:22px;min-height:100vh;padding:24px;display:flex}.brand,.panel header,.notice,.file-control,.command,.nav button,.small-action,.icon-button{align-items:center;display:flex}.brand{gap:12px;min-height:50px}.brand svg{color:#f2c14e;width:34px;height:34px}.brand strong{font-size:18px;display:block}.brand span,.topbar p,.stat span,.resource-list span{color:#6b746d;font-size:13px}.sidebar .brand span,.sidebar label{color:#cbd5ca}.nav{gap:8px;display:grid}.nav button{color:#f7f2e8;background:0 0;border:1px solid #ffffff1f;justify-content:flex-start;gap:10px;width:100%;min-height:48px;padding:10px 12px}.nav button.active,.nav button:hover{color:#24352f;background:#f7f2e8}.workspace{align-content:start;gap:18px;width:min(100%,1440px);padding:24px;display:grid}.topbar{justify-content:space-between;align-items:center;gap:16px;display:flex}.topbar h1{margin:2px 0 0;font-size:26px;line-height:1.1}.topbar p{text-transform:uppercase;margin:0;font-weight:700}.stats{grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;display:grid}.stat,.panel{background:#fff;border:1px solid #dedbd1;border-radius:8px}.stat{min-height:74px;padding:14px 16px}.stat strong{margin-top:3px;font-size:24px;display:block}.grid{gap:16px;display:grid}.grid.two{grid-template-columns:repeat(2,minmax(360px,1fr));align-items:start}.panel{min-width:0;overflow:hidden}.panel header{border-bottom:1px solid #e8e4d9;gap:10px;min-height:56px;padding:0 18px}.panel header svg{color:#2f6f5e}.panel h2{margin:0;font-size:16px}.form{gap:14px;padding:18px;display:grid}.row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}label{color:#495049;gap:6px;font-size:13px;font-weight:700;display:grid}input,select,textarea{box-sizing:border-box;color:#20231f;width:100%;min-height:46px;font:inherit;background:#fffdfa;border:1px solid #cbc8bd;border-radius:6px;padding:10px 12px;font-size:16px}textarea{resize:vertical}button{min-height:46px;font:inherit;cursor:pointer;touch-action:manipulation;border:0;border-radius:6px;padding:10px 14px;font-weight:700}button:disabled{cursor:not-allowed;opacity:.55}.command{color:#fff;background:#2f6f5e;justify-content:center;gap:8px}.secondary-command{color:#245b4c;background:#fff;border:1px solid #2f6f5e;justify-content:center;align-items:center;gap:8px;display:flex}.secondary-command svg{width:18px;height:18px}.icon-button,.small-action{color:#24352f;background:#fff;border:1px solid #d6d1c5;justify-content:center;width:46px;padding:0}.icon-button svg,.small-action svg,.command svg,.nav svg,.file-control svg,.notice svg{flex:none;width:18px;height:18px}.notice{border-radius:8px;gap:10px;padding:13px 16px;font-weight:700}.notice.success{color:#1d5c49;background:#e7f4ed}.notice.error{color:#9b2f1c;background:#fbe9e5}.resource-list{-webkit-overflow-scrolling:touch;gap:8px;max-height:min(52vh,520px);margin:0;padding:10px;list-style:none;display:grid;overflow:auto}.list-search{align-items:center;gap:8px;padding:12px 12px 0;display:flex}.list-search svg{color:#536158;flex:none;width:18px;height:18px}.list-search input{min-height:42px}.resource-list li{background:#faf8f2;border-radius:6px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:64px;padding:8px;display:grid}.resource-actions{grid-template-columns:repeat(2,46px);gap:6px;display:grid}.resource-list li.selected{outline:2px solid #2f6f5e}.resource-list li.empty{color:#6b746d;padding:18px;display:block}.resource-list li>button:first-child{text-align:left;color:#20231f;background:0 0;gap:5px;min-width:0;min-height:48px;display:grid}.resource-list strong,.resource-list span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-control{cursor:pointer;background:#fbfaf6;border:1px dashed #9fa79f;border-radius:6px;justify-content:center;gap:8px;min-height:54px;position:relative}.file-control input{opacity:0;cursor:pointer;position:absolute;inset:0}.preview{padding:0 18px 18px}.preview img{object-fit:contain;background:#f6f5f1;border:1px solid #dedbd1;border-radius:8px;width:100%;max-height:380px}.opening-workspace{grid-template-columns:minmax(520px,1.1fr) minmax(360px,.9fr);align-items:start;gap:16px;display:grid}.opening-capture,.opening-history{min-width:0}.opening-form{gap:18px}.opening-summary{grid-template-columns:1.6fr 1.2fr .6fr;gap:10px;display:grid}.opening-summary div{background:#f8f5ee;border:1px solid #e0ddd2;border-radius:8px;min-height:68px;padding:12px}.opening-summary span,.opening-card span,.opening-card small,.opening-preview strong{color:#6b746d}.opening-summary span,.opening-card small{font-size:13px;font-weight:700;display:block}.opening-summary strong{text-overflow:ellipsis;white-space:nowrap;margin-top:6px;display:block;overflow:hidden}.opening-main-grid,.opening-meta-grid{gap:12px;display:grid}.opening-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-picker{z-index:2;position:relative}.product-picker-control{position:relative}.product-picker-control svg{color:#526058;pointer-events:none;width:20px;height:20px;position:absolute;top:50%;left:14px;transform:translateY(-50%)}.product-picker-control input{padding-left:46px}.product-picker-results{background:#fffdf8;border:1px solid #c9c6bb;border-radius:8px;gap:4px;max-height:336px;padding:6px;display:grid;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:auto;box-shadow:0 12px 28px #20231f33}.product-picker-results button{color:#20231f;text-align:left;background:0 0;border-radius:5px;min-height:54px;padding:9px 12px}.product-picker-results button:hover,.product-picker-results button:focus-visible,.product-picker-results button.selected{background:#e7f4ed;outline:0}.product-picker-results strong,.product-picker-results span{display:block}.product-picker-results span,.product-picker-empty{color:#6b746d;margin-top:3px;font-size:13px}.product-picker-empty{padding:14px 12px}.opening-meta-grid{grid-template-columns:minmax(0,1fr) minmax(150px,.7fr) minmax(230px,1fr)}.field-with-action{grid-template-columns:minmax(0,1fr) 92px;align-items:end;gap:8px;display:grid}.field-with-action button{color:#245746;background:#f7fbf8;border:1px solid #2f6f5e}.opening-photo-control{min-height:86px;font-size:17px}.opening-photo-control svg{width:24px;height:24px}.camera-capture{background:#1d2d27;border:1px solid #dedbd1;border-radius:8px;overflow:hidden}.camera-preview{aspect-ratio:4/3;object-fit:cover;background:#111;width:100%;display:block}.camera-error{color:#f7f2e8;text-align:center;place-items:center;min-height:160px;margin:0;padding:24px;font-weight:700;display:grid}.camera-actions{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:10px;padding:12px;display:grid}.camera-actions>button:first-child{color:#24352f;background:#fffdf8;border:1px solid #d6d1c5}.photo-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.photo-strip figure{background:#faf8f2;border:1px solid #dedbd1;border-radius:8px;min-width:0;margin:0;overflow:hidden}.photo-strip img{aspect-ratio:4/3;object-fit:cover;width:100%;display:block}.photo-strip figcaption{color:#495049;text-overflow:ellipsis;white-space:nowrap;padding:8px;font-size:12px;font-weight:700;overflow:hidden}.opening-list{-webkit-overflow-scrolling:touch;gap:10px;max-height:54vh;padding:12px;display:grid;overflow:auto}.opening-filters{border-bottom:1px solid #e8e4d9;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;display:grid}.opening-filters label{font-size:12px}.opening-filter-clear{align-self:end}.opening-card{background:#faf8f2;border-radius:8px;grid-template-columns:minmax(0,1fr) 52px;align-items:center;gap:10px;min-height:88px;padding:12px;display:grid}.opening-card.selected{background:#f3fbf7;border:2px solid #2f6f5e}.opening-card.cancelled{opacity:.72;background:#f4f1ed}.opening-card-select{color:#20231f;text-align:left;background:0 0;min-width:0;padding:0;display:block}.opening-card-select strong,.opening-card-select span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.opening-card-select strong{font-size:17px}.opening-card-select span{margin-top:4px;font-size:14px;font-weight:700}.opening-card small{margin-top:7px}.opening-details{border-top:1px solid #e8e4d9;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;display:grid}.opening-details>div{min-width:0}.opening-details span{color:#6b746d;font-size:12px;font-weight:700;display:block}.opening-details strong{overflow-wrap:anywhere;margin-top:3px;font-size:14px;display:block}.opening-details-notes,.opening-cancelled-status,.opening-cancel-action{grid-column:1/-1}.opening-cancelled-status{background:#fbe9e5;border:1px solid #ddb9ae;border-radius:6px;padding:10px}.opening-cancelled-status strong{color:#9b2f1c}.opening-cancel-action{color:#9b2f1c;background:#fff8f5;border:1px solid #b64a37;justify-content:center;align-items:center;gap:8px;min-height:46px;display:inline-flex}.opening-cancel-action svg{width:18px;height:18px}.opening-detail-images{grid-column:1/-1}.opening-detail-images>div{flex-wrap:wrap;gap:8px;margin-top:6px;display:flex}.opening-detail-images button{color:#24352f;background:#fffdf8;border:1px solid #d6d1c5;align-items:center;gap:6px;min-height:38px;padding:8px 10px;display:inline-flex}.opening-detail-images svg{color:#2f6f5e;width:16px;height:16px}.opening-empty{color:#6b746d;padding:18px}.opening-preview{padding-top:6px}.preview-image-button{cursor:zoom-in;background:0 0;border:0;width:100%;padding:0;display:block}.preview-image-button img{display:block}.opening-preview>div{align-items:center;gap:8px;margin-bottom:10px;display:flex}.opening-preview svg{color:#2f6f5e;width:18px;height:18px}.image-modal{z-index:30;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.image-modal-backdrop{background:#111814b8;border:0;position:absolute;inset:0}.image-modal-content{background:#fffdf8;border:1px solid #dedbd1;border-radius:8px;grid-template-rows:auto minmax(0,1fr);width:min(100%,920px);max-height:calc(100vh - 48px);display:grid;position:relative;overflow:hidden;box-shadow:0 24px 80px #0000005c}.cancel-modal-content{background:#fffdf8;border:1px solid #dedbd1;border-radius:8px;gap:16px;width:min(100%,520px);padding:18px;display:grid;position:relative;box-shadow:0 24px 80px #0000005c}.cancel-modal-content header{justify-content:space-between;align-items:center;gap:12px;display:flex}.cancel-modal-content textarea{min-height:110px}.cancel-modal-error{color:#9b2f1c;background:#fbe9e5;border-radius:6px;margin:0;padding:10px 12px;font-weight:700}.cancel-modal-actions{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:10px;display:grid}.cancel-modal-actions>button:first-child{color:#24352f;background:#fffdf8;border:1px solid #d6d1c5}.image-modal-content header{border-bottom:1px solid #dedbd1;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.image-modal-content header strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.image-modal-content img{object-fit:contain;background:#f6f5f1;width:100%;max-height:calc(100vh - 126px)}@media (width<=1180px){.shell{grid-template-columns:1fr}.sidebar{z-index:10;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:14px;min-height:auto;padding:14px 18px;display:grid;position:sticky;top:0;box-shadow:0 8px 24px #20231f2e}.brand{min-height:46px}.brand svg{width:30px;height:30px}.nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.nav button{justify-content:center;min-height:48px}.workspace{width:100%;padding:18px}.topbar{align-items:flex-start}.topbar h1{font-size:24px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.two{grid-template-columns:repeat(2,minmax(330px,1fr))}.opening-workspace{grid-template-columns:minmax(0,1fr)}.opening-history{grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);align-items:start;display:grid}.opening-history header,.opening-filters,.opening-details{grid-column:1/-1}.opening-list{max-height:420px}.opening-preview{padding:12px 12px 12px 0}.image-modal{padding:18px}}@media (width>=821px) and (width<=1180px){.opening-mode .sidebar{grid-template-columns:minmax(210px,auto) minmax(0,1fr);align-items:center}.opening-mode .brand{min-height:52px}.opening-mode .workspace{gap:14px;padding:16px}.opening-mode .topbar h1{font-size:22px}.opening-mode .stat{min-height:62px;padding:10px 14px}.opening-mode .stat strong{font-size:22px}.opening-workspace{gap:14px}.opening-form{gap:16px;padding:16px}.opening-summary div{min-height:76px;padding:14px}.opening-summary strong{font-size:18px}.opening-form label{font-size:15px}.opening-form input,.opening-form select,.opening-form textarea{min-height:56px;font-size:18px}.opening-form textarea{min-height:110px}.opening-photo-control{min-height:110px;font-size:18px}.opening-form .command{min-height:60px;font-size:18px}.opening-form .product-picker-results button{min-height:64px;font-size:17px}.opening-history{grid-template-columns:minmax(0,.85fr) minmax(360px,1fr)}.opening-card{min-height:100px;padding:14px}.opening-card strong{font-size:18px}.opening-preview img{max-height:520px}}@media (width<=820px){.sidebar{grid-template-columns:1fr}.brand{justify-content:center}.grid.two{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-list{max-height:none}.opening-summary,.opening-main-grid,.opening-meta-grid,.opening-history,.opening-filters{grid-template-columns:1fr}.opening-preview{padding:0 12px 12px}.photo-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.image-modal-content{max-height:calc(100vh - 32px)}.image-modal-content img{max-height:calc(100vh - 110px)}.opening-mode .workspace{gap:14px;padding:14px}.opening-mode .topbar h1{font-size:22px}.opening-mode .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.opening-mode .stats .stat:last-child{display:none}.opening-mode .stat{min-height:58px;padding:10px 12px}.opening-mode .stat strong{font-size:22px}.opening-capture header,.opening-history header{min-height:60px}.opening-form{gap:16px;padding:14px}.opening-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.opening-summary div{min-height:72px;padding:12px}.opening-summary div:first-child{grid-column:1/-1}.opening-summary strong{font-size:18px}.opening-form label{font-size:15px}.opening-form input,.opening-form select,.opening-form textarea{min-height:56px;font-size:18px}.opening-form textarea{min-height:112px}.opening-photo-control{min-height:112px;font-size:18px}.opening-form .command{min-height:62px;font-size:18px}.opening-form .product-picker-results{max-height:384px}.opening-form .product-picker-results button{min-height:66px;font-size:18px}.opening-list{max-height:none}.opening-card{min-height:98px;padding:14px}.opening-card strong{font-size:18px}}@media (width<=560px){.workspace,.sidebar{padding:16px}.row,.nav{grid-template-columns:1fr}.topbar h1{font-size:22px}.field-with-action,.photo-strip{grid-template-columns:1fr}}
