:root{font-family:Segoe UI,system-ui,sans-serif;color:#20312f;background:#f4f6f5;font-size:15px;--green:#166855;--line:#dde5e1;--muted:#6d7f79}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit;padding:10px 14px;font-weight:600}button:hover{background:#edf4ef}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#0b5142}.quiet{background:transparent;border:0;text-align:left;color:var(--muted);padding:7px 0}.danger{color:#ac4135}input,textarea,select{width:100%;border:1px solid #ccd7d1;border-radius:8px;padding:11px;background:white;color:#20312f}input:focus,textarea:focus,button:focus-visible,select:focus{outline:2px solid #45a18b;outline-offset:2px}textarea{resize:vertical;min-height:180px;line-height:1.6}label{display:block;font-weight:600;margin-bottom:16px}label input,label textarea,label select{display:block;margin-top:7px;font-weight:400}small,.subtitle{color:var(--muted)}[hidden]{display:none!important}.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:2px}.mark{display:grid;place-items:center;background:var(--green);color:white;width:36px;height:36px;border-radius:10px;font-size:20px;letter-spacing:0}#workspace{display:grid;grid-template-columns:235px 1fr;min-height:100vh}aside{background:white;border-right:1px solid var(--line);padding:30px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}aside .eyebrow{margin-top:42px;font-size:10px}nav{display:grid;gap:7px}nav button{display:flex;justify-content:space-between;border:0;text-align:left;padding:13px 10px;background:transparent;font-weight:500}nav button.active{background:#e5f1eb;color:#12654f;font-weight:700}nav b{border-radius:5px;font-size:12px;background:#f1f3f2;padding:1px 6px}.aside-foot{margin-top:auto;padding-top:30px;display:grid;font-size:13px}.online{color:#227c60;font-size:12px}main{padding:36px 44px;min-width:0;max-width:1600px;width:100%;margin:auto}header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:10px 0 30px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.6px;color:#7a8e85;margin:0 0 10px}h1{font-size:34px;letter-spacing:-1.1px;margin:0 0 10px;font-weight:650}.subtitle{margin:0;font-size:14px}.toolbar{display:flex;justify-content:space-between;gap:18px;margin-bottom:22px}.date-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.date-tools input{width:155px}.toolbar>input{max-width:310px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:24px}.stat{background:white;padding:18px 22px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:space-between;color:var(--muted)}.stat strong{font-size:30px;color:#20312f;font-weight:600}.list-heading{display:flex;justify-content:space-between;margin:16px 0;color:var(--muted);font-size:12px}#orders{display:grid;gap:12px}.card{background:white;border:1px solid var(--line);border-radius:12px;display:grid;grid-template-columns:65px 1fr;gap:16px;padding:20px}.card.changed{border-left:4px solid #dc8c25;background:#fffdfa}.rank{color:#84958d;font-size:28px;font-weight:300}.rank input{font-size:22px;padding:6px;text-align:center;width:58px}.card-top{display:flex;justify-content:space-between;align-items:start;gap:15px}.card h2{font-size:18px;margin:2px 0 4px;line-height:1.4}.meta{color:var(--muted);font-size:12px}.body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:15px 0}.badge{display:inline-block;font-size:11px;padding:5px 9px;border-radius:6px;background:#edf3f0;color:#526b60;font-weight:700}.badge.orange{background:#fff0d6;color:#976015}.badge.blue{background:#e7f0ff;color:#3b628d}.actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.actions button{font-size:12px;padding:8px 11px}.actions .detail{margin-right:auto}.missing-note{background:#fff2dc;border-radius:6px;padding:10px 12px;color:#885c20;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.empty{padding:65px;text-align:center;border:1px dashed #c9d6ce;border-radius:15px;background:#f9fbfa}.empty b{display:block;font-size:22px;margin-bottom:10px}#demo{background:#fff0d5;color:#8a621b;padding:10px 15px;border-radius:7px;font-size:12px;margin-bottom:22px}#auth{min-height:100vh;display:grid;place-items:center;background:linear-gradient(130deg,#e1ebe4,#f8f6ef)}.auth-card{background:white;border:1px solid var(--line);padding:45px;border-radius:18px;width:min(480px,95vw);box-shadow:0 16px 50px #173a2610}.auth-card h1{font-size:28px;margin-top:32px}.auth-card form{margin:25px 0}.auth-card button{width:100%}dialog{border:1px solid var(--line);border-radius:16px;max-width:760px;width:94vw;padding:26px;max-height:90vh;color:inherit}dialog::backdrop{background:#122c2866;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{margin:0;font-size:23px}.cols{display:grid;grid-template-columns:1fr 1fr;gap:14px}.checkbox{display:flex;gap:9px;align-items:center;font-weight:400}.checkbox input{width:auto;margin:0}.error{color:#ae4033;font-weight:500}.hint{font-size:12px;color:var(--muted)}.history{border-top:1px solid var(--line);padding:15px 0}.history summary{cursor:pointer;font-weight:600}.history pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 Segoe UI;background:#f1f4f2;padding:12px;border-radius:6px}.comment{border-left:3px solid #b1cfc1;padding:9px 14px;margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere}.section-title{margin:28px 0 14px;font-size:18px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;background:#173c31;color:white;border-radius:9px;padding:14px 22px;box-shadow:0 4px 20px #0002;display:none;max-width:90vw}.user-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}@media(max-width:1050px){main{padding:24px}#workspace{grid-template-columns:200px 1fr}aside{padding:24px 15px}.toolbar{flex-direction:column}.toolbar>input{max-width:none}.stats{gap:8px}.stat{padding:13px}.list-heading span:last-child{display:none}}@media(max-width:700px){#workspace{display:block}aside{height:auto;position:static;padding:16px;border:0}.brand{font-size:14px}aside .eyebrow{display:none}nav{display:flex;overflow-x:auto;margin-top:16px}nav button{white-space:nowrap;gap:8px}.aside-foot{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 0;padding:0;align-items:center}.aside-foot p{margin:0}main{padding:18px}header{align-items:flex-start;flex-direction:column;margin-top:0}h1{font-size:28px}.stats{grid-template-columns:1fr 1fr 1fr}.stat{display:block;font-size:11px}.stat strong{display:block;font-size:24px}.card{padding:14px;grid-template-columns:42px 1fr;gap:10px}.rank input{width:42px;font-size:18px;padding:4px}.card-top{flex-wrap:wrap;gap:7px}.actions{justify-content:flex-start}.cols{grid-template-columns:1fr}.empty{padding:35px}.auth-card{padding:28px}}

header{display:grid;grid-template-columns:auto 1fr auto;margin-bottom:16px}header h1{margin:0}header .date-tools{justify-content:center}header #add{white-space:nowrap}.toolbar{justify-content:flex-end;margin-bottom:10px}main{max-width:1900px;margin:0 auto}.order-lines{display:grid;gap:4px;margin:16px 0 8px}.order-line{display:flex;align-items:flex-start;gap:10px;text-align:left;width:100%;border:1px solid transparent;padding:8px 10px;font-size:16px;font-weight:500;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.order-line>span:nth-child(2){min-width:0;flex:1}.order-line.selected,.order-line.shortage{background:#fff0d6;border-color:#dfa33b;color:#734a0e}.order-line.selected{box-shadow:inset 3px 0 #d28a16}.order-line b{font-size:12px}.order-line:disabled{opacity:1;cursor:default}.line-check{color:#8a9b91}.people{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:12px;color:#6d7f79;margin:12px 0}.change-alert{padding:10px 12px;border-radius:6px;background:#ffe8bc;color:#794c09;font-size:13px;font-weight:600}.card{padding:18px}.actions{margin-top:12px}@media(max-width:1250px){header{grid-template-columns:1fr auto}header .date-tools{grid-row:2;grid-column:1/-1;justify-content:flex-start}}@media(max-width:700px){header{display:flex;align-items:stretch}header .date-tools{justify-content:flex-start}.order-line{font-size:15px}.people{display:grid}}

.card.planned{background:#e4f4e8;border-color:#78b98b}.card.changed{background:#fff3d8;border:2px solid #d59927;border-left:6px solid #d59927}.card.planned.changed{background:#e4f4e8;border-left:6px solid #d59927}.change-alert{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:12px 0;background:#ffe4a8}.change-alert small{color:#785416}.ack-visible{background:#805000;color:white;border-color:#805000;flex-shrink:0}.ack-visible:hover{background:#623b00}.plan-label{color:#24683b;font-weight:700;margin:12px 0}.card.planned .order-line:not(.selected):not(.shortage){background:transparent}@media(max-width:900px){.change-alert{align-items:flex-start;flex-direction:column}.ack-visible{width:100%}}

:root{color:#191919;background:#f5f5f5;--green:#171717;--line:#dedede;--muted:#707070}.brand{display:block;letter-spacing:0}.brand img{display:block;width:100%;height:auto}.auth-card .brand{max-width:320px}aside{background:#fff}nav button.active{background:#eaeaea;color:#111}nav b{background:#f2f2f2}.primary:hover{background:#363636}button:hover{background:#eee}.primary:hover{color:white}input,textarea,select{color:#171717;border-color:#ccc}input:focus,textarea:focus,button:focus-visible,select:focus{outline-color:#555}#auth{background:#f2f2f2}.online{color:#555}.eyebrow,.meta{color:#6b6b6b}.badge{background:#ededed;color:#444}#toast{background:#171717}.empty{background:#fafafa;border-color:#ccc}.history pre{background:#f4f4f4}.comment{border-color:#888}.card.planned{background:#e4f4e8}.card.changed{background:#fff3d8}.card.planned.changed{background:#e4f4e8}#change-lock{width:min(1000px,96vw);max-height:94vh;padding:0;border:2px solid #d59927;border-radius:14px}#change-lock::backdrop{background:#000c;backdrop-filter:blur(4px)}.lock-heading{padding:24px 28px;background:#fff0cd}.lock-heading h2{margin:0;font-size:26px}.lock-heading p:last-child{margin-bottom:0}.lock-diffs{padding:8px 28px 20px;max-height:55vh;overflow:auto}.lock-event{border-bottom:1px solid #ddd;padding:12px 0}.lock-event h3{font-size:15px;margin-bottom:8px}.diff-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.diff-pair>div{background:#f5f5f5;padding:12px;border-radius:8px;min-width:0}.diff-pair>div:last-child{background:#fff0cd}.lock-diffs pre{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.6 Segoe UI;margin:6px 0}.lock-footer{padding:16px 28px 24px;border-top:1px solid #ddd;background:white}.lock-footer button{width:100%;padding:16px}.lock-footer .error:empty{display:none}@media(max-width:700px){aside .brand{max-width:210px}.diff-pair{grid-template-columns:1fr}.lock-heading,.lock-diffs,.lock-footer{padding-left:16px;padding-right:16px}}

.brand{overflow:visible;flex-shrink:0}.brand img{clip-path:none;margin:0;width:100%;height:auto;object-fit:contain;filter:none}
.order-line.selected,.order-line.shortage{background:#ffe5e5!important;border-color:#dc6767;color:#9e2020}.order-line.selected{box-shadow:inset 3px 0 #c52b2b}.order-line.selected .line-check,.order-line.shortage .line-check{color:#b12222}.missing-note{background:#ffe5e5;color:#9e2020}.order-line b{white-space:normal}
#change-lock{border-color:#4389d4}.lock-heading,.diff-pair>div:last-child{background:#e2efff}.lock-heading .eyebrow{color:#235a96}.lock-footer .primary{background:#205fa6;border-color:#205fa6}.lock-footer .primary:hover{background:#184d88}

#shortages{background:#fff4f4;border:1px solid #e8bbbb;border-radius:12px;padding:18px 22px;margin:12px 0 22px}#shortages h2{font-size:18px;margin:0;color:#982b2b}#shortages ul{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}#shortages li{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #ecd3d3;padding-top:8px;overflow-wrap:anywhere}#shortages strong{white-space:nowrap;color:#982b2b}.shipping{border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin:12px 0;padding:12px 0}.shipping h3{margin:0 0 10px;font-size:13px}.shipping-options{display:flex;flex-wrap:wrap;gap:12px 24px}.ship-unit>span{display:block;font-size:12px;margin-bottom:5px}.ship-unit>div{display:flex;align-items:center;gap:6px}.ship-unit button{min-width:44px;min-height:44px;padding:5px;font-size:22px;touch-action:manipulation}.ship-unit output{min-width:32px;text-align:center;font-size:18px;font-weight:700}.ship-save{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}.ship-save span{font-size:12px;color:#666}

#workspace{grid-template-columns:210px minmax(0,1fr) 320px}main{padding:24px;max-width:none}header{grid-template-columns:1fr auto}header .date-tools{grid-row:2;grid-column:1/-1;justify-content:flex-start}header #add{grid-column:2;grid-row:1}h1{font-size:29px}.card{padding:15px;gap:12px;grid-template-columns:54px minmax(0,1fr)}.rank input{width:48px}.order-line{padding:6px 8px}.ship-unit button{min-width:40px;min-height:40px}.shipping-options{gap:10px 14px}#team-chat{position:sticky;top:0;height:100vh;background:white;border-left:1px solid #ddd;display:flex;flex-direction:column;min-width:0}.chat-head{padding:24px 18px 14px;border-bottom:1px solid #ddd}.chat-head h2{font-size:20px;margin:0 0 6px}.chat-head p{font-size:12px;color:#777;margin:0}#chat-scroll{flex:1;overflow:auto;min-height:120px;padding:14px}#chat-messages{display:grid;gap:12px}.chat-message{background:#f2f2f2;border-radius:10px;padding:12px;min-width:0}.chat-message.mine{background:#e8eef4}.chat-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin-top:6px;font-size:14px}#chat-form{padding:14px;border-top:1px solid #ddd}#chat-form label{font-size:12px;margin:0 0 8px}#chat-text{min-height:95px;max-height:180px;font-size:14px}#chat-form .primary{width:100%;margin-top:8px}#chat-error:empty{display:none}#chat-older{width:100%;margin-bottom:12px;font-size:12px}#chat-new{margin:0 14px 8px;font-size:12px}@media(min-width:1650px){#workspace{grid-template-columns:220px minmax(0,1fr) 350px}main{padding:28px 32px}header{grid-template-columns:auto 1fr auto}header .date-tools{grid-row:1;grid-column:2;justify-content:center}header #add{grid-column:3}}@media(max-width:1150px){#workspace{grid-template-columns:190px minmax(0,1fr)}#team-chat{grid-column:2;position:static;height:520px;border:1px solid #ddd;margin:0 24px 24px;border-radius:12px;overflow:hidden}aside{grid-row:1 / span 2}main{padding:20px}.card{grid-template-columns:44px minmax(0,1fr)}.rank input{width:42px}}@media(max-width:700px){#workspace{display:block}main{padding:16px}#team-chat{margin:0 16px 16px;height:500px}header{display:flex}header #add{align-self:flex-start}}

#due-reminders{border:1px solid #e6cc89;background:#fff9e9;border-radius:12px;padding:16px;margin-bottom:20px}#due-reminders h2{font-size:18px;margin:0}.due-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 0;border-top:1px solid #e6d9bb}.due-row span{font-size:13px}.due-badge{background:#fff1c6;color:#745000;padding:9px 12px;border-radius:6px;margin-top:12px;font-weight:650;font-size:13px}.due-row.overdue{color:#9e3030}.due-badge.overdue{color:#9e3030;background:#ffe8e8}

.return-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff0f0;border:1px solid #e8bbbb;border-radius:8px;padding:14px;font:inherit;color:#982b2b}
