
*{box-sizing:border-box}body{margin:0;background:#eef1ed;color:#233b33;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible{outline:3px solid #e0ac4e;outline-offset:2px}button:disabled{opacity:.4;cursor:default}.app{max-width:480px;min-height:100dvh;background:#fafbf8;margin:auto;position:relative}header{padding:22px 22px 15px;display:flex;align-items:center;justify-content:space-between}header strong{font-size:18px}header span{font-size:12px;color:#819086}.icon{border:0;background:none;min-width:44px;min-height:44px;font-size:20px}.product{margin:0 20px;background:white;border:1px solid #e4e9e1;border-radius:14px;width:calc(100% - 40px);text-align:left;display:flex;align-items:center;padding:14px;gap:12px}.swatch{width:42px;height:42px;border-radius:8px;background:repeating-linear-gradient(0deg,transparent 0 10px,#f4f2e9 10px 12px),repeating-linear-gradient(90deg,#aab99f 0 10px,#f4f2e9 10px 12px)}.product strong{display:block;font-size:15px}.product small{color:#829084;font-size:12px}.product .arrow{margin-left:auto}.steps{display:flex;justify-content:space-between;margin:24px 24px 0;position:relative}.steps button{border:0;background:none;font-size:13px;color:#9ba69d;padding:0 0 12px;min-width:70px}.steps .active{color:#16765d;border-bottom:3px solid #16765d;font-weight:600}main{padding:22px 20px 130px}h1{font-size:23px;margin:0 0 5px;letter-spacing:-.5px}p{margin:0;color:#839085;font-size:13px}.heading{margin-bottom:22px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.photo{padding:0;border:0;border-radius:10px;background:#e8ebe2;position:relative;overflow:hidden;aspect-ratio:1;min-width:0}.photo img{width:100%;height:100%;object-fit:cover;display:block}.photo.chosen{outline:3px solid #16765d;outline-offset:-3px}.tick{position:absolute;right:6px;top:6px;background:#fffD;border-radius:50%;width:22px;height:22px;font-size:12px;line-height:22px}.chosen .tick{background:#16765d;color:white}.name{position:absolute;bottom:0;left:0;right:0;padding:4px;background:#ffffffdf;font-size:11px}.add{background:#edf4ed;border:1px dashed #a9bdab;color:#16765d;font-size:30px;display:flex;flex-direction:column;align-items:center;justify-content:center}.add small{font-size:12px}.empty{border:1px dashed #b5c6b6;border-radius:16px;text-align:center;padding:52px 15px;background:#f0f5ed;cursor:pointer;width:100%}.empty b{font-size:35px;display:block;color:#16765d;font-weight:400}.empty span{font-size:15px;display:block;color:#16765d;margin-top:12px}.plain{border:0;background:none;color:#16765d;padding:12px 0;min-height:44px;font-size:13px}.meta{display:flex;justify-content:space-between;align-items:center;margin-top:14px;color:#839085;font-size:12px}.notice{background:#fff3df;color:#9a6826;border-radius:10px;padding:12px 14px;margin-bottom:16px;font-size:13px}.good{background:#e9f3e9;color:#16765d}.row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e7ebe3;padding:15px 0}.row .bubble{background:#e9f1e7;color:#16765d;border-radius:50%;width:26px;height:26px;text-align:center;line-height:26px;font-size:13px}.row.missing .bubble{background:#fff0d7;color:#a26c20}.row .count{margin-left:auto;font-size:12px;color:#839085}.row small{display:block;font-size:12px;color:#839085}.foot{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;padding:12px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #e4e9e0;background:#fafbf8f5;backdrop-filter:blur(10px);z-index:4}.foot p{text-align:center;font-size:12px;margin-bottom:9px}.primary{width:100%;background:#16765d;color:#fff;border:0;border-radius:12px;padding:14px;font-weight:600;min-height:50px}.actions{display:flex;gap:10px}.secondary{background:white;border:1px solid #dce4d8;border-radius:12px;padding:12px;min-width:75px}.sheet{width:min(480px,100%);max-width:100%;max-height:80dvh;border:0;border-radius:22px 22px 0 0;padding:0;margin:auto auto 0;color:#233b33;background:#fff}.sheet::backdrop{background:#142c2766}.sheethead{position:sticky;top:0;background:white;display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #edf0e9}.sheetbody{padding:0 20px 25px}.choice{width:100%;text-align:left;padding:14px 5px;min-height:50px;border:0;border-bottom:1px solid #edf0e9;background:white;display:flex;gap:14px;align-items:center}.choice b{background:#edf4ea;color:#16765d;border-radius:7px;padding:4px 9px;font-size:13px}.choice span{font-size:14px}.choice small{display:block;font-size:12px;color:#839085}.toast{position:fixed;left:50%;top:20px;transform:translateX(-50%);max-width:90%;background:#243e34;color:white;border-radius:10px;padding:12px 18px;z-index:20;font-size:13px;display:none}.check{margin:30px auto 20px;text-align:center;font-size:48px;color:#16765d}.hidden{display:none!important}input[type=checkbox]{accent-color:#16765d}label.setting{display:flex;align-items:center;justify-content:space-between;min-height:52px}.subtle{font-size:12px;color:#839085} @media(min-width:600px){.app{box-shadow:0 0 40px #243e3409}.sheet{margin:auto;border-radius:22px}}
.actions .secondary{flex-shrink:0;white-space:nowrap}.product strong{overflow-wrap:anywhere}.sheetbody p{line-height:1.7}

#account{padding:0 20px;font-size:13px}#account span{overflow-wrap:anywhere}#loginForm .setting,#passwordForm .setting,#userCreate .setting,.userForm .setting{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}#loginForm input,#passwordForm input,#userCreate input,.userForm input:not([type=checkbox]){width:100%;min-width:0;border:1px solid #dce4d8;border-radius:8px;padding:10px}select{font:inherit;max-width:100%;padding:8px}.userForm{padding:20px 0;border-bottom:1px solid #dce4d8}

#orderCreate .setting,#factoryCreate .setting,#bindOrder .setting,#create .setting{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}#orderCreate input,#factoryCreate input,#bindOrder input,#create input{width:100%;min-width:0;border:1px solid #dce4d8;border-radius:8px;padding:10px}.choice{overflow-wrap:anywhere}.setting select{min-width:0;max-width:100%}

.archiveRecord{border-bottom:1px solid #ddd;padding:12px 0}.sheetbody pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.sheetbody input,.sheetbody select{max-width:100%;min-width:0}.archivedPhoto{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:#eee;color:#666;font-size:12px}
.purchaseCard{border-bottom:1px solid #ddd;padding:12px 0}.purchaseFields{display:grid;grid-template-columns:80px minmax(0,1fr);gap:6px;font-size:13px}.purchaseFields dt{color:#68736f}.purchaseFields dd{margin:0;overflow-wrap:anywhere}.purchaseReference{max-width:100%;width:150px;max-height:160px;object-fit:contain;margin:8px 4px 8px 0}

#account [aria-current="page"]{font-weight:700;text-decoration:underline;text-underline-offset:5px}.downloadLink{display:block;text-align:center;text-decoration:none;margin-bottom:12px}

.foot:empty{display:none}

.homeChoices{display:grid;gap:18px;padding-top:20px}.homeChoice{display:flex;align-items:center;gap:20px;text-align:left;border:1px solid #dce4d8;border-radius:16px;background:white;padding:28px 22px;color:#233b33;font-size:20px;font-weight:600;min-height:100px}.homeChoice span{font-size:14px;color:#16765d}.homeChoice:disabled{opacity:.45}

.app.progressWide{max-width:1440px}.progressTop,.progressFilters,.calendarToolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.progressTop h1{flex:1}.progressFilters input{min-width:160px;flex:1;padding:10px;border:1px solid #dce4d8;border-radius:8px}.progressLayout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,1fr);gap:22px;margin-top:20px}.progressTable{overflow-x:auto}.progressTable table{border-collapse:collapse;width:100%;font-size:13px}.progressTable th,.progressTable td{text-align:left;padding:12px 8px;border-bottom:1px solid #dce4d8;vertical-align:top}.progressTable small,.archiveRecord small{display:block;color:#69796f;margin-top:6px}.progressCalendar{background:white;border:1px solid #dce4d8;padding:12px;border-radius:14px;min-width:0}.calendarGrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekday{text-align:center;padding:8px;font-size:12px}.calendarDay{border:1px solid #edf0e9;min-height:100px;min-width:0;padding:3px}.calendarDate{background:none;border:0;min-height:30px;width:100%;text-align:left;cursor:pointer}.calendarEvent{display:block;text-align:left;font-size:11px;width:100%;overflow-wrap:anywhere;border:0;border-radius:4px;margin:3px 0;padding:4px;cursor:pointer}.calendarEvent.pending{background:#e9f1ff;color:#234a83}.calendarEvent.done{background:#e7f3e8;color:#176336}.late{color:#a22f22}.calendarEvent.late{background:#ffebe4}.today{outline:2px solid #16765d;outline-offset:-2px}.selectedProgress{background:#fff6d8}.progressMobileTabs{display:none}#progressEdit .setting,#shipmentCreate .setting,#progressOrder .setting{gap:10px;flex-wrap:wrap;padding:7px 0}#progressEdit input:not([type=checkbox]),#progressEdit textarea,#progressOrder input,#shipmentCreate input{padding:8px;border:1px solid #dce4d8;border-radius:7px;max-width:100%}.shipmentFinish{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:850px){.progressLayout{display:block}.progressCalendar{display:none}.progressLayout.showCalendar .progressCalendar{display:block}.progressLayout.showCalendar .progressList{display:none}.progressMobileTabs{display:flex;gap:10px;margin-top:15px}.progressMobileTabs button{padding:10px 24px;border:1px solid #dce4d8;border-radius:8px;background:white}.calendarDay{min-height:80px}.progressFilters select{max-width:48%}.calendarToolbar .secondary{min-width:40px}}

.calendarCount{display:none}@media(max-width:850px){.calendarEvent{display:none}.calendarCount{display:block;font-size:10px;color:#16765d}.calendarDay{min-height:62px}.calendarDate{min-height:54px}.progressTop h1{flex-basis:100%}.calendarGrid{font-size:12px}}
:root{--ink:#203c37;--muted:#5c716b;--line:#dce6e1;--green:#12644f}.app{max-width:760px;background:#fff;box-shadow:0 12px 60px #213e3310;color:var(--ink)}
body{background:#f0f4f2;color:#203c37;font-size:16px}
header{padding:26px 32px 12px}header strong{display:flex;align-items:center;gap:12px;font-size:18px}.brandMark{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#12644f;color:#fff;font-size:12px;letter-spacing:1px}
#account{padding:0 32px;justify-content:flex-end;border-bottom:1px solid var(--line);padding-bottom:12px}#account .plain{padding:8px 14px;border-radius:8px;color:#425c53}#account .plain:hover{background:#eef5f1}
main{padding:28px 32px 140px}h1{font-size:26px;line-height:1.35;letter-spacing:0}h3{font-size:17px;margin-top:28px}p,.subtle,.meta,.row small,.row .count,.choice small{color:var(--muted)}.heading p{margin-top:8px}
.primary{background:var(--green);border-radius:10px}.secondary{border-color:var(--line);border-radius:10px}.primary,.secondary,.homeChoice,.choice{transition:background .18s,border-color .18s,box-shadow .18s}.primary:hover:not(:disabled){background:#0c503f}.secondary:hover:not(:disabled),.choice:hover:not(:disabled){background:#f0f6f3}.plain{color:var(--green);min-height:44px}a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #ba8533;outline-offset:3px}
.product{margin:4px 32px;width:calc(100% - 64px);border-color:var(--line);background:#f7faf8}.product small{color:var(--muted)}.steps{margin:24px 32px 0;gap:8px}.steps button{flex:1;min-height:44px;color:var(--muted);background:#f3f6f4;border-radius:8px 8px 0 0;padding:10px}.steps .active{background:#e5f2eb;color:var(--green);border-color:var(--green)}
.foot{max-width:760px;padding-left:32px;padding-right:32px;background:#fffffff5}.sheet{width:min(640px,100%)}.sheethead{padding:16px 24px}.sheetbody{padding:16px 24px 28px}.choice{padding:16px 8px;min-height:64px}.setting{gap:12px}input:not([type=checkbox]),select,textarea{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);min-height:44px}input[type=checkbox]{width:20px;height:20px;flex-shrink:0}summary{cursor:pointer;padding:16px 0}
#purchaseUpload{margin-top:28px;padding:28px;border:1px dashed #92b4a4;border-radius:16px;background:#f5faf7}#purchaseUpload .setting{display:block;margin-bottom:24px}#purchaseUpload input{width:100%;max-width:100%;padding:12px;background:#fff}input::file-selector-button{font:inherit;border:0;border-radius:6px;padding:10px 14px;background:#e3eee8;color:#203c37;margin-right:14px;cursor:pointer}
.homeView{max-width:1080px;background:#fcfdfc}.homeView main{padding-top:52px}.homeHeading{margin-bottom:32px}.eyebrow{font-size:13px;letter-spacing:2px;color:var(--muted);display:block;margin-bottom:12px}.homeHeading h1{font-size:32px;font-weight:600}.homeChoices{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0}.homeChoice{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:28px;padding:26px;min-height:228px;border-color:var(--line);border-radius:16px;box-shadow:0 4px 12px #243e3404}.homeChoice:hover:not(:disabled){background:#f5faf7;border-color:#6c9f87;box-shadow:0 8px 24px #243e3410}.homeChoice .homeIcon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;background:#e8f2ec;color:var(--green);border-radius:12px}.homeIcon svg{width:26px;height:26px}.homeText strong{display:block;color:var(--ink);font-size:20px;font-weight:600}.homeText small{display:block;color:var(--muted);font-size:13px;margin-top:10px;font-weight:400}.homeChoice .homeArrow{position:absolute;top:28px;right:24px;font-size:22px;color:#607d6f}.homeChoice:disabled{opacity:.6}
.loginView{max-width:520px}.loginView #account{display:none!important}.loginView main{padding-top:40px}.loginView .heading{margin-bottom:26px}.loginView #loginForm input[type=checkbox]{width:20px}.loginView #loginForm .primary{margin-top:24px}.loginView #loginForm .setting:has(input[type=checkbox]){flex-wrap:nowrap;font-size:14px;margin-top:12px}.loginView #loginForm input:not([type=checkbox]){padding:13px}
@media(max-width:640px){header{padding:20px 20px 8px}#account{padding:0 12px 8px}main{padding:24px 20px 130px}.homeView main{padding-top:28px}.homeHeading{margin-bottom:24px}.homeHeading h1{font-size:26px}.homeChoices{grid-template-columns:1fr;gap:14px}.homeChoice{min-height:112px;flex-direction:row;align-items:center;padding:20px;gap:16px}.homeText strong{font-size:18px}.homeText small{margin-top:5px}.homeChoice .homeArrow{position:static;margin-left:auto;font-size:20px}.homeChoice .homeIcon{width:44px;height:44px;flex-shrink:0}.product{margin:4px 20px;width:calc(100% - 40px)}.steps{margin:22px 20px 0}.foot{padding-left:20px;padding-right:20px}#purchaseUpload{padding:20px}.sheetbody{padding:12px 20px 24px}.sheethead{padding:12px 20px}h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
/* Approved blue/orange workbench, shared desktop and mobile layout. */
:root{--brand:#0077b5;--brand-dark:#005c91;--green:#0077b5;--line:#c9deee;--bg:#f5f9fc;--ink:#17212b}
body{background:#f5f9fc;color:#17212b} .app{max-width:1200px;background:white;margin:24px auto;border:1px solid #c9deee;border-radius:16px;padding:28px}
header{border-bottom:1px solid #c9deee;padding-bottom:18px}header strong{display:flex;align-items:center;gap:12px}.brandLogo{display:inline-block;flex:none;width:46px;height:44px;background:url('/logo.png') -38px 0/120px auto no-repeat}
.primary,.homeIcon{background:#0077b5;color:white}.primary:hover{background:#005c91}.plain,a{color:#0077b5}.secondary{border-color:#0077b5;color:#0077b5;background:white}.homeChoice{border-color:#c9deee}.homeArrow{color:#0077b5}
#account{justify-content:flex-end}.purchaseCard{border:1px solid #c9deee;border-radius:12px;padding:18px;margin:14px 0;overflow-wrap:anywhere}.purchaseCard summary{cursor:pointer;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.purchaseCard>button{float:none}.purchaseReference{width:100px;max-height:100px;object-fit:contain}.purchaseFields{display:grid;grid-template-columns:140px 1fr;gap:0;border:1px solid #dbe8f2;border-radius:8px}.purchaseFields dt,.purchaseFields dd{margin:0;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere}.purchaseFields dt{background:#f0f6fc}.longField{border:1px solid #c9deee;border-radius:8px;margin:14px 0;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere}.longField>strong{display:inline-block;margin-bottom:12px}.longField>button{float:right}.barcode{font-family:ui-monospace,monospace;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.8}.uploadDrop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:170px;border:1px dashed #0077b5;background:#f4f9ff;border-radius:12px;margin:24px 0;padding:22px}.uploadDrop input{max-width:100%}.difference{padding:12px 0;border-bottom:1px solid #dbe8f2;white-space:pre-wrap;overflow-wrap:anywhere}.difference>div{padding:10px}.changed{background:#fff1dd}.status{padding:5px 12px;border-radius:20px;background:#edf5fb}.classifications{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.classifications details{padding:14px;border:1px solid #c9deee;border-radius:8px}.classifications button{margin:8px 4px 0 0}.missing{background:#fff3df;color:#8c4c00}.good{background:#eaf4fc}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}textarea{width:100%;padding:12px;border:1px solid #c9deee;border-radius:8px}audio{max-width:100%}[hidden]{display:none!important}.sheet{max-width:960px;width:calc(100% - 32px)}
@media(max-width:650px){.app{margin:0;border:0;border-radius:0;padding:16px}header strong{font-size:20px}.brandLogo{width:38px;height:38px;background-size:104px auto;background-position:-33px 0}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchaseFields{grid-template-columns:100px 1fr}.purchaseCard summary{display:block}.purchaseCard summary span{display:block;margin-top:8px}.longField{padding:12px}.actions{flex-wrap:wrap}.actions input,.actions select{min-width:0;max-width:100%}.sheet{width:100%;max-height:95dvh}.classifications details{padding:8px}h1{font-size:26px}}
.foot{position:static!important;width:100%;max-width:none;padding:20px 0;margin-top:20px;transform:none!important;left:auto!important;bottom:auto!important}.homeChoice .homeIcon{background:#edf5fc;color:#0077b5}.steps button.active{background:#e9f4ff;color:#0077b5;border-color:#0077b5}.product{background:#f6faff}.swatch{display:none}.homeChoice span{color:inherit}.factoryIdentifiers{display:flex;gap:24px;margin:22px 0;flex-wrap:wrap}.factoryIdentifiers label{flex:1;display:flex;align-items:center;gap:12px}.factoryIdentifiers button{flex:1}header strong{font-size:26px}#main{padding-bottom:0}.app.homeView{min-height:80vh}#toast{background:#183f5b}.classifications summary{font-weight:600;cursor:pointer}.classifications button{font-size:15px}.classifications details{background:white}
@media(max-width:650px){.factoryIdentifiers{display:block}.factoryIdentifiers label{margin:12px 0}header strong{font-size:22px}.foot .actions{display:flex;flex-wrap:nowrap}.foot .actions>*{flex:1}}
.actions>.primary,.actions>.secondary{flex:1}.difference{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}.difference strong{padding:10px}.homeView .homeChoices{padding-top:30px}.purchaseCard>summary{font-weight:600;font-size:18px}.longField strong{font-size:17px}.notice{line-height:1.65}pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:650px){.difference{display:block}.actions{flex-wrap:nowrap}.actions>*{min-width:0}.classifications button{padding:10px 6px}.homeChoice{padding:22px}}

/* Compact classification, desktop sidebar and mobile bottom panel. */
.classificationWorkspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start;padding-bottom:20px}.photoPartition{min-width:0}.photoTabs{display:flex;gap:8px;margin-bottom:16px}.photoTabs button{border:1px solid var(--line);background:white;padding:10px 16px;border-radius:8px;color:var(--ink)}.photoTabs [aria-selected="true"]{background:#e9f4ff;border-color:var(--brand);color:var(--brand)}.classificationPanel{position:sticky;top:16px;background:white;border:1px solid var(--line);border-radius:12px;padding:12px}.selectionBar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:8px}.selectionBar strong{margin-right:auto}.classRow{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;padding:9px 0;align-items:start}.classRow>strong{padding-top:10px;font-size:14px}.classRow button{padding:9px 10px;margin:2px;font-size:14px;min-height:40px}.otherPackaging{margin:8px 2px}.otherPackaging summary{cursor:pointer;color:var(--brand);padding:8px 0}.otherPackaging>div{display:flex;flex-wrap:wrap}.mobileClassify{display:none}.photoPartition .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.emptyPhotos{padding:30px 8px;color:#526677}.photoPartition .name{white-space:normal;line-height:1.5}
@media(max-width:850px){.classificationWorkspace{grid-template-columns:1fr;padding-bottom:112px}.classificationPanel{position:fixed;bottom:0;top:auto;left:0;right:0;z-index:20;border-radius:14px 14px 0 0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -3px 15px #163b5614}.mobileClassify{display:inline-block}.compactClasses{display:none;max-height:48dvh;overflow-y:auto}.classificationPanel.expanded .compactClasses{display:block}.selectionBar{border-bottom:0}.classificationPanel #undoClassify{padding:6px}.photoPartition .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app:has(.classificationWorkspace){padding-bottom:110px}.classRow button{min-height:44px}}

.selectionBar button{width:auto;flex:none;padding:8px 12px;min-height:42px}.selectionBar{flex-wrap:nowrap}.selectionBar strong{white-space:nowrap}.classRow button{width:auto}.classificationPanel.expanded{max-height:80dvh;overflow-y:auto}

.categoryButtons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 0}.categoryButtons .categoryButton{width:100%;margin:0;padding:12px 9px;text-align:left;white-space:normal;min-height:98px}.categoryButton strong{display:block;font-size:16px}.categoryButton small{display:block;margin-top:6px;line-height:1.5;font-size:12px;color:#536d80}.categoryButton:disabled small{color:#8293a0}.categoryReview details{border-bottom:1px solid var(--line);padding:16px 4px}.categoryReview summary{display:flex;justify-content:space-between;cursor:pointer}.categoryReview p{color:#536d80;line-height:1.6;margin:12px 0 0}
@media(max-width:850px){.categoryButtons{display:none}.classificationPanel.expanded .categoryButtons{display:grid}.categoryButtons .categoryButton{min-height:90px}.categoryButton:disabled{opacity:.6}}

.orderProductPicker{display:grid;gap:8px;margin:14px 0 22px}.orderProductPicker .product{margin:0;width:100%;text-align:left;padding:12px 16px}.orderProductPicker small{display:block;margin:0 0 5px;color:#597386}.orderProductPicker strong{display:block}.orderProductPicker #productPick{margin-left:20px;width:calc(100% - 20px)}

.productChoice{display:flex;align-items:center;gap:16px;text-align:left;width:100%}.productChoiceImage,.productChoicePlaceholder{width:76px;height:76px;flex:none;border:1px solid var(--line);border-radius:8px;background:#f5f9fc;object-fit:contain}.productChoicePlaceholder{display:flex;align-items:center;justify-content:center;font-size:12px;color:#64798a}.productChoiceText{flex:1;min-width:0;overflow-wrap:anywhere}.productChoiceText strong{font-size:18px}.productChoiceText small{display:block;margin-top:6px}@media(max-width:650px){.productChoice{gap:12px}.productChoiceImage,.productChoicePlaceholder{width:64px;height:64px}}

/* Shared desktop/mobile review: consistent grouping and accessible spacing. */
.orderProductPicker #productPick{margin-left:0;width:100%}
.chevron{display:inline-block;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);vertical-align:3px;margin-left:12px;flex:none}
.orderChoiceRow{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.orderChoiceRow .choice,.orderChoiceRow strong{flex:1;min-width:0;border:0;overflow-wrap:anywhere}
.orderChoiceRow>.secondary{flex:none;white-space:nowrap}
.invitationLink{display:block;margin:16px 0}.invitationLink input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px}
.invitationActions{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap}
.categoryReview{margin-bottom:20px}.categoryReview summary{align-items:center;gap:16px}
.categoryReview summary span{text-align:right}.categoryReview+#notesBtn{margin:0 0 16px}
.factoryIdentifiers+.actions{margin-bottom:24px}.classificationWorkspace{margin-top:16px;margin-bottom:24px}
.factoryIdentifiers #choose:disabled{opacity:1;color:var(--ink);background:var(--bg);border-color:var(--line)}
#factoryReview{margin-top:20px}#history{margin-left:8px}
.categoryButtons{grid-auto-rows:1fr}.categoryButton small{font-size:12px;line-height:1.5}
.purchaseCard>.status{display:inline-block;margin:8px 10px 4px 0}.purchaseCard>p{margin-top:8px}
#planSearch{width:100%;margin:0 0 16px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px}
#planList .choice{justify-content:space-between;gap:16px;font-weight:600}#planList small{font-weight:400;flex-shrink:0}
.setting small{display:block;margin-top:6px}.row>button{flex-shrink:0}.row>span{min-width:0;overflow-wrap:anywhere}
.noteEditor{display:flex;flex-direction:column;gap:18px;margin:16px 0}.noteTextField{display:block}.noteTextField textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit}
.noteRecording{display:flex;flex-direction:column;gap:12px}.noteRecording audio{max-width:100%}#saveNote{margin-bottom:20px}
.sheethead{z-index:5}.primary{background:#087cba}.chosen .tick{background:#087cba}input[type=checkbox]{accent-color:#087cba}
@media(max-width:850px){
  .noteRecording{order:-1}.noteRecording #recordNote{background:#087cba;color:white;border-color:#087cba;flex:1}
  .purchaseReference{float:none!important}.purchaseFields{clear:both;grid-template-columns:76px minmax(0,1fr)}
  .purchaseFields dd{white-space:pre-wrap}.longField{clear:both}
  #planList .choice{align-items:flex-start;flex-direction:column;gap:4px}#planList small{font-size:12px}
  .heading #purchaseImport{width:auto;min-width:110px;flex:none}.heading:has(#purchaseImport){display:flex;align-items:center;gap:12px}
  .categoryReview details{padding:16px 8px}.categoryReview summary{font-size:14px}
  .app:has(.classificationPanel) main{padding-bottom:20px}
  .classificationWorkspace{padding-bottom:20px}
  .classificationPanel{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .sheetbody{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .orderChoiceRow{gap:8px}.orderChoiceRow>.secondary{padding:10px;font-size:13px}
}

/* Keep the current plan and product visible without large selectors during review. */
.orderProductPicker.compactIdentity{display:flex;align-items:center;gap:0;margin:8px 0 0;padding:8px 12px;background:var(--bg);border:1px solid var(--line);border-radius:8px}
.orderProductPicker.compactIdentity .product{display:flex;align-items:center;justify-content:flex-start;flex:1;min-width:0;width:auto;margin:0;padding:4px 8px;min-height:36px;border:0;border-radius:0;background:transparent;text-align:left}
.orderProductPicker.compactIdentity .product>span:first-child{min-width:0;flex:1}
.orderProductPicker.compactIdentity .product strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.orderProductPicker.compactIdentity .product small,.orderProductPicker.compactIdentity .arrow{display:none}
.orderProductPicker.compactIdentity #productBtn::after{content:'/';margin-left:10px;color:var(--muted);font-weight:400}
.orderProductPicker.compactIdentity+.steps{margin-top:16px}

.planStatusTabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;margin:0 0 16px;background:#f0f5f8;border-radius:10px}
.planStatusTabs>button{width:100%;min-width:0;min-height:44px;margin:0;padding:10px 4px;border:0;border-radius:7px;font-size:14px;line-height:1.4;white-space:nowrap}
.planStatusTabs>.primary{background:#087cba;color:#fff}
.planStatusTabs>.plain{background:transparent;color:#536b76}

/* Responsive audit: readable text, contained actions and long product details. */
p,.notice,.subtle,.meta,.plain,.row small,.row .count,.choice small,.product small,.homeText small,
.name,.add small,.foot p,.categoryButton small,.productChoicePlaceholder,.sheetbody pre,
.purchaseFields,.planStatusTabs>button,.categoryReview summary{font-size:14px}
small{font-size:14px}input,select,textarea{font:inherit}
.heading:has(#purchaseImport){display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.heading #purchaseImport{width:auto;min-width:110px;flex:none}
.purchaseCard,.longField{display:flow-root}
.purchaseCard>button{max-width:100%;white-space:normal;margin-top:10px}
.planStateCard{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
.planStateCard>p,.planStateCard>button{margin:0}
.planItem>summary{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:8px 0}
.planItemIdentity{display:flex;gap:12px 24px;align-items:baseline;flex-wrap:wrap;min-width:0}
.planItemIdentity>strong{font-size:18px}.planItemIdentity>span{font-size:16px;font-weight:400;color:var(--muted)}
.planItemSpec{font-size:14px;font-weight:400;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
#planList .choice{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
#planList small{font-size:14px;white-space:nowrap}
.actions{flex-wrap:wrap;align-items:center}.actions>*{min-width:0;max-width:100%}
.actions .secondary{white-space:normal}.actions input,.actions select{padding:10px 12px}
#itemSearch{flex:1;min-width:min(220px,100%)}
.row{flex-wrap:wrap}.row>span{flex:1;min-width:min(180px,100%)}
.meta{gap:8px 16px;flex-wrap:wrap}.meta .plain{flex-shrink:0}
label.setting{gap:12px;flex-wrap:wrap;padding:8px 0}
label.setting>span{min-width:0;overflow-wrap:anywhere;flex:1}
label.setting>select{max-width:100%;min-width:0}
#noteBatch{flex:1;min-width:min(240px,100%)}
.selectionBar{flex-wrap:wrap}.photoTabs{flex-wrap:wrap}
.product>span:first-child{min-width:0}.product .arrow{flex-shrink:0}
.sheethead{gap:12px}.sheethead strong{min-width:0;overflow-wrap:anywhere}.sheethead .icon{flex-shrink:0}
.categoryReview summary{flex-wrap:wrap}.categoryReview summary span{text-align:left}
.purchaseFields{grid-template-columns:140px minmax(0,1fr)}
@media(max-width:650px){
 .app{padding:12px}main{padding-left:12px;padding-right:12px}header{padding-left:12px;padding-right:12px}
 .planItem>summary span{margin-top:0}.planItemIdentity{display:flex}
 .planStateCard>button{width:100%}.purchaseFields{grid-template-columns:84px minmax(0,1fr)}
 .purchaseFields dt,.purchaseFields dd{padding:10px 8px}
 .foot .actions{flex-wrap:wrap}.foot .actions>*{min-width:120px}
 .orderChoiceRow>.secondary{font-size:14px;white-space:normal}
 .steps{margin-left:12px;margin-right:12px}.steps button{min-width:0;font-size:14px;padding:10px 4px}
 .row>small{flex-basis:100%}.product strong{font-size:16px}
}

.steps button,.orderChoiceRow>.secondary{font-size:14px}

/* Keep selectors, workflow tabs, content and footer on the same content edges. */
.orderProductPicker{margin-left:32px;margin-right:32px}
.orderProductPicker.compactIdentity{margin-left:32px;margin-right:32px}
.foot{padding-left:32px;padding-right:32px}
@media(max-width:650px){
 .orderProductPicker,.orderProductPicker.compactIdentity{margin-left:12px;margin-right:12px}
 .foot{padding-left:12px;padding-right:12px}
}

.photoTile{position:relative;min-width:0}.photoTile>.photo{width:100%;display:block}
.removePhoto{position:absolute;top:4px;left:4px;z-index:2;width:36px;height:36px;min-width:36px;border:1px solid #c9deee;border-radius:50%;background:#fffffff2;color:#243746;font-size:26px;line-height:1;box-shadow:0 1px 5px #0002}
.removePhoto:disabled{pointer-events:none}.uploadHelp{margin:0 0 16px;line-height:1.6}
@media(pointer:coarse){.removePhoto{width:44px;height:44px}}

.planAdminActions{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:flex-end}.dangerAction{color:#a12a23;border-color:#bd635e}.planAdminActions .dangerAction{max-width:100%;white-space:normal}
.siteLegal{text-align:center;padding:20px 12px;font-size:14px;line-height:1.6;color:#526773}
.siteLegal a{color:inherit;display:inline-block;padding:8px 4px;overflow-wrap:anywhere}

#recycleDrop{padding:1rem;border:2px dashed #5783a5;border-radius:.6rem} [data-recycled]{min-width:0;overflow-wrap:anywhere} [data-recycled] img{width:100%;height:8rem;object-fit:contain} [data-recycled] small{display:block} #recycleOrder,#recycleProduct{display:block;width:100%;margin-bottom:.7rem}

.recycleControls,.recycleControls label{display:flex;align-items:center;gap:.75rem}.recycleControls{justify-content:space-between;margin-bottom:1rem}.recycleGrid [data-recycled]{position:relative;display:block;border:2px solid transparent;padding:.25rem}.recycleGrid [data-recycled]:has(:checked){border-color:#2478b5}.recycleGrid input,.recycleControls input{width:1.2rem;height:1.2rem}.recycleGrid input{position:absolute;top:.35rem;left:.35rem}.recycleActions{margin-top:1rem}.recycleActions select{max-width:100%}

.planFactoryHeading,.downloadBatchRow{display:flex;align-items:center;justify-content:space-between;gap:12px}
.planFactoryHeading{margin-top:1rem}
.downloadBatchRow label{display:flex;align-items:center;gap:12px;min-height:44px}
.downloadBatchRow input{width:auto}
.downloadBatchRow small{display:block}
#orderQuery{width:100%;margin-bottom:.75rem}
.planFactoryGroup[hidden],.orderChoiceRow[hidden],#restoreTarget[hidden]{display:none}
@media(max-width:700px){
 .removePhoto,.compactIdentity .product{min-height:44px;min-width:44px}
 .recycleActions{position:sticky;bottom:0;background:white;padding:.75rem 0;z-index:1}
}
