:root{--bg:#f4f5f0;--panel:#fff;--text:#202a24;--muted:#7a827b;--line:#e6e9e2;--green:#284e3d;--lime:#d7eb9b;--amber:#b87925;--red:#b64c43;--side:#141f19}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:21px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button{border:1px solid var(--line);background:white;color:var(--text);border-radius:10px;padding:11px 15px;font-weight:700;transition:.15s}button:hover{background:#f1f4ed}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#37674f}button.accent{background:var(--lime);color:#213326;border-color:var(--lime)}button.ghost{background:transparent;border-color:transparent;color:inherit}button.danger{color:var(--red)}button.small{padding:7px 10px;font-size:18px}button:disabled{opacity:.45;cursor:not-allowed}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}aside{width:240px;background:var(--side);color:#c1cbbf;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:32px 20px;z-index:10}.brand{display:flex;align-items:center;gap:12px;color:#eef4e9;font-size:25.5px;letter-spacing:2px;font-weight:800}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #69816a;border-radius:13px;color:var(--lime)}.brand-mark svg{width:26px;height:26px}.brand small{display:block;font-size:13.5px;font-weight:500;letter-spacing:3px;color:#8e9d8f;margin-top:4px}.side-caption{font-size:15px;letter-spacing:1.5px;text-transform:uppercase;color:#768776;margin:44px 14px 12px}nav{display:grid;gap:5px}nav button{display:flex;align-items:center;gap:12px;text-align:left;background:none;border:none;color:#a6b4a6;padding:13px 14px;font-size:19.5px}nav button:hover{background:#243329;color:#fff}nav button.active{background:#d7eb9b;color:#243b27}nav button .count{margin-left:auto;font-size:15px;background:#ffffff18;border-radius:5px;padding:2px 6px}nav button.active .count{background:#284e3d18}.sidebar-bottom{margin-top:auto;border-top:1px solid #304033;padding-top:22px;font-size:18px;line-height:1.8;color:#849784}.online{display:inline-block;width:6px;height:6px;background:#c0dc88;border-radius:50%;margin-right:7px}.main{margin-left:240px}header{height:90px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);gap:20px;background:#fcfcf9}.breadcrumb{font-size:18px;color:var(--muted)}.breadcrumb strong{color:#414d43;font-weight:600}.header-controls{display:flex;align-items:center;gap:12px}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#e4eadb;color:#40563c;font-size:18px;font-weight:800}.role-select{border:0;background:transparent;font-weight:700;font-size:18px;max-width:130px}.demo-strip{background:#eaf0de;padding:9px 42px;font-size:16.5px;color:#58704d;display:flex;gap:8px;align-items:center;justify-content:space-between}.demo-strip button{padding:0;border:0;background:none;font-size:16.5px;color:#385334;text-decoration:underline}main{padding:36px 42px 42px;max-width:1590px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px}.eyebrow{font-size:15px;text-transform:uppercase;letter-spacing:2px;color:var(--muted);margin-bottom:9px}h1{font-size:45px;letter-spacing:-1px;line-height:1.2;margin:0;font-weight:800}h2{font-size:24px;letter-spacing:-.3px;margin:0}h3{font-size:21px;margin:0}p{line-height:1.7}.sub{font-size:18px;color:var(--muted);margin-top:9px}.flex{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{border:1px solid var(--line);border-radius:14px;background:white;padding:20px;position:relative}.stat .stat-icon{position:absolute;right:18px;top:18px;color:#9ca790}.stat .label{color:var(--muted);font-size:16.5px}.stat .value{font-size:48px;letter-spacing:-1px;font-weight:800;margin:14px 0 6px}.stat .foot{font-size:15px;color:var(--muted)}.stat.dark{background:var(--green);color:#f5f8ee;border-color:var(--green)}.stat.dark .label,.stat.dark .foot,.stat.dark .stat-icon{color:#bed4bc}.grid-two{display:grid;grid-template-columns:1.65fr 1fr;gap:22px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:15px;overflow:hidden;margin-bottom:22px}.panel-head{padding:21px 23px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-body{padding:23px}.muted{color:var(--muted)}.tiny{font-size:16.5px}.badge{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:700;padding:6px 9px;border-radius:6px;background:#edf0e9;white-space:nowrap;color:#687462}.badge.working{background:#eaf0e2;color:#507139}.badge.review{background:#fff2db;color:#ad752c}.badge.awaiting{background:#eaf0f5;color:#547b9a}.badge.closed{background:#eceeeb;color:#798173}.badge.late{background:#fae8e4;color:var(--red)}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{background:#fafbf7;color:#889080;font-size:15px;text-transform:uppercase;letter-spacing:.7px;font-weight:600;padding:13px 22px;border-bottom:1px solid var(--line)}td{padding:17px 22px;border-bottom:1px solid #eef0ea;font-size:18px}tr:last-child td{border-bottom:0}.table-product{display:flex;align-items:center;gap:12px}.product-icon{width:38px;height:38px;display:grid;place-items:center;background:#f1f3eb;border-radius:10px;color:#667c53}.product-icon svg{width:19px;height:19px}.table-product strong{font-size:18px;font-weight:700}.table-product small{display:block;font-size:15px;color:var(--muted);margin-top:4px}.dot{display:inline-block;width:9px;height:9px;border-radius:3px;vertical-align:middle;margin-right:6px;box-shadow:inset 0 0 0 1px #00000012}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}input,select,textarea{border:1px solid #dce2d7;background:#fff;border-radius:9px;padding:11px 12px;color:var(--text);width:100%;min-width:0}input[type=color]{height:43px;padding:5px}input[type=checkbox]{width:auto}textarea{resize:vertical;min-height:80px}.search{width:260px}.toolbar select{width:auto;max-width:250px}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 22px}.tabs button{font-size:16.5px;border-color:transparent;background:#e9ede3;color:#6f7b66;padding:9px 13px}.tabs button.active{background:var(--green);color:#fff}.activity{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.activity:last-child{border:0}.activity-bullet{width:29px;height:29px;background:#f0f3ea;color:#6d805b;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.activity-bullet svg{width:13px;height:13px}.activity strong{font-size:16.5px;font-weight:700;display:block}.activity p{margin:4px 0;font-size:15px;color:var(--muted)}.time{font-size:13.5px;color:#9ba293}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:25px}.quick-action{display:flex;gap:12px;align-items:center;text-align:left;border:1px solid var(--line);padding:17px;background:#fbfcf7}.quick-action span:first-child{background:#e9efdc;color:#667c46;padding:10px;border-radius:9px}.quick-action strong{font-size:18px;display:block}.quick-action small{display:block;color:var(--muted);font-size:15px;margin-top:4px}.progress{height:5px;border-radius:5px;background:#edf0e8;overflow:hidden;margin-top:10px}.progress i{display:block;background:#91ad6c;height:100%}.task-card{border:1px solid var(--line);border-radius:13px;background:white;padding:21px;margin-bottom:14px}.task-card .task-meta{display:flex;gap:16px;color:var(--muted);font-size:16.5px;margin:15px 0}.task-card .task-meta svg{width:14px;height:14px;margin-right:4px}.task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.task-grid .task-card{margin:0}.empty{padding:45px 20px;text-align:center;color:var(--muted);font-size:18px}.empty svg{display:block;margin:0 auto 12px;width:28px;height:28px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{padding:23px;border:1px solid var(--line);border-radius:14px;background:white}.product-card h3{font-size:24px;margin-top:19px}.pack-chip{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:7px;padding:7px 9px;font-size:15px;margin:4px 4px 4px 0}.product-card .add-pack{margin-top:18px}.warehouse-card{background:white;border:1px solid var(--line);border-radius:14px;padding:23px}.warehouse-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.warehouse-card .big{font-size:45px;font-weight:800;margin:22px 0 4px}.person-row{display:flex;align-items:center;gap:12px}.help-box{padding:16px 18px;background:#eff3e6;border:1px solid #e1e8d4;border-radius:10px;font-size:16.5px;line-height:1.7;color:#637551;margin-bottom:20px}dialog{border:0;padding:0;border-radius:18px;max-width:720px;width:calc(100% - 28px);color:var(--text);box-shadow:0 25px 100px #0004;background:#fff}dialog::backdrop{background:#101e18a8;backdrop-filter:blur(4px)}.modal-head{padding:25px 28px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:30px}.modal-body{padding:24px 28px;max-height:75dvh;overflow:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}label{display:block;font-size:16.5px;font-weight:700;color:#67705f}label input,label select,label textarea{display:block;margin-top:7px;font-weight:500;font-size:19.5px}.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.line-entry{display:grid;grid-template-columns:1.2fr 1fr 80px 32px;gap:8px;margin-top:10px;align-items:end}.line-entry button{padding:10px 7px}.report-entry{padding:14px;background:#f7f9f3;border:1px solid var(--line);border-radius:10px;margin:12px 0;display:grid;grid-template-columns:1fr 85px 32px;gap:9px;align-items:end}.report-entry .address{grid-column:1/-1}.report-entry textarea{min-height:60px}.error{color:var(--red);background:#fcf0ec;border-radius:8px;padding:12px;font-size:18px;margin-top:16px;display:none}.return-row{display:grid;grid-template-columns:1fr 85px;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);font-size:18px}.detail-list{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.report-summary{padding:15px;background:#f5f6ef;border-radius:10px;font-size:18px;line-height:1.8;margin:15px 0}.report-address{border-top:1px solid var(--line);padding:14px 0;font-size:18px}.report-address strong{display:block;margin-bottom:4px}.footer-note{font-size:15px;color:#9aa18f;margin-top:26px;display:flex;justify-content:space-between;gap:15px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#203a2c;color:white;border:1px solid #4e7054;border-radius:10px;padding:13px 22px;font-size:18px;z-index:50;box-shadow:0 8px 30px #0002;display:none;max-width:90vw}.mobile-logo{display:none}.mobile-menu{display:none}.section-space{margin-top:25px}.warning{color:var(--red)}.check-label{display:flex;gap:9px;align-items:flex-start;line-height:1.6}.check-label input{margin-top:3px;flex-shrink:0}.overview-kicker{display:flex;gap:9px;align-items:center;color:#7a876b;font-size:16.5px}.overview-kicker::before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:#91ab70}.person-select{width:130px;padding:7px;font-size:16.5px;background:#fff}.report-count{color:#446938;font-weight:700}.hero-note{background:#e9eedf;border:1px solid #dbe5cc;border-radius:12px;padding:18px;margin-bottom:22px;font-size:18px;line-height:1.7}.hero-note strong{display:block;margin-bottom:3px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:#cad2c3;border-radius:5px}@media(min-width:1550px){main{padding-top:43px}.stats{gap:22px}}@media(max-width:1150px){aside{width:200px;padding:26px 13px}.main{margin-left:200px}main{padding:27px 24px}header{padding:0 24px}.demo-strip{padding:9px 24px}.grid-two{grid-template-columns:1fr}.product-grid,.warehouse-grid{grid-template-columns:repeat(2,1fr)}.quick-action{padding:14px}.quick-action small{display:none}.stats{gap:10px}.stat{padding:16px}.stat .value{font-size:42px}}@media(max-width:760px){aside{display:none;inset:0 auto 0 0;width:240px;box-shadow:30px 0 0 100vw #0006}body.menu-open aside{display:flex}.main{margin-left:0}header{height:auto;min-height:72px;padding:13px 17px;gap:8px;flex-wrap:wrap}.breadcrumb{display:none}.mobile-menu{display:block;padding:7px}.mobile-logo{display:block;font-size:19.5px;letter-spacing:1.8px;font-weight:800}.header-controls{gap:4px;margin-left:auto}.header-controls .avatar{display:none}.person-select{max-width:100px}.role-select{font-size:16.5px;max-width:105px}.demo-strip{padding:9px 17px;font-size:13.5px;align-items:start}.demo-strip button{font-size:13.5px;white-space:nowrap}main{padding:25px 17px 30px}.page-heading{align-items:flex-start;margin-bottom:22px;gap:10px}.page-heading button{font-size:16.5px;padding:10px 12px}h1{font-size:37.5px}.sub{font-size:16.5px}.eyebrow{font-size:13.5px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.stat{border-radius:11px;padding:16px}.stat .value{font-size:42px;margin:12px 0 4px}.stat .label{font-size:15px}.stat .foot{font-size:13.5px}.stat .stat-icon{right:13px;top:13px}.stat .stat-icon svg{width:16px;height:16px}.quick-actions{gap:8px}.quick-action{padding:12px 8px;display:block;text-align:center}.quick-action span:first-child{padding:7px;display:inline-block}.quick-action strong{font-size:15px;margin-top:9px}.quick-action svg{width:18px;height:18px}.panel-head{padding:17px}.panel-body{padding:17px}h2{font-size:21px}.toolbar{align-items:stretch;flex-direction:column}.search{width:100%}.toolbar select{max-width:100%;flex:1}.filters{gap:7px}.task-grid,.product-grid,.warehouse-grid{grid-template-columns:1fr}.task-card{padding:17px}.form-grid{gap:13px}.modal-head{padding:20px}.modal-body{padding:18px;max-height:76dvh}.modal-head h2{font-size:27px}.line-entry{grid-template-columns:1fr 1fr 65px 29px;gap:5px}.line-entry select,.line-entry input{font-size:16.5px;padding:10px 6px}.report-entry{padding:11px;grid-template-columns:1fr 68px 29px}.footer-note{font-size:13.5px}td{padding:14px 17px}th{padding:12px 17px}.hide-mobile{display:none}.task-card .task-meta{gap:10px;flex-wrap:wrap}.form-actions{flex-wrap:wrap}.form-actions button{flex:1}.panel-head .small{font-size:15px}.report-entry .full{grid-column:1/-1}}

.completion-row{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.completion-row:first-child{padding-top:8px}.completion-row strong{font-size:21px}.completion-row .pack-chip{margin:8px 0}.completion-row input{font-size:30px;font-weight:700;text-align:center;padding:12px 8px}.completion-row label{font-size:16.5px}.completion-row .remaining{display:inline-block}@media(max-width:760px){.completion-row{grid-template-columns:minmax(0,1fr) 90px;gap:10px}.completion-row strong{font-size:19.5px}.completion-row .pack-chip{font-size:15px}.completion-row .tiny{font-size:15px}}

.bottom-nav{display:none}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{max-width:390px;width:100%;text-align:center;border:1px solid var(--line);background:white;border-radius:22px;padding:38px 25px}.auth-card .brand-mark{margin:0 auto 22px;background:var(--green);border:0}.auth-card h1{letter-spacing:3px}.auth-error{font-size:18px;color:var(--red);white-space:pre-wrap}.login-button{display:block;background:var(--green);color:white;border-radius:10px;text-decoration:none;padding:15px;margin:25px 0 12px;font-weight:700}.auth-card #retry-login{width:100%}.auth-card .brand-mark{color:var(--lime)}@media(max-width:760px){header{padding-top:max(13px,env(safe-area-inset-top));position:sticky;top:0;z-index:9;background:var(--bg)}main{padding-bottom:calc(95px + env(safe-area-inset-bottom))}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:12;display:flex;justify-content:space-around;background:#fffffff2;backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.bottom-nav button{display:grid;justify-items:center;gap:5px;min-width:60px;background:transparent;border:0;font-size:15px;color:var(--muted);padding:4px 8px}.bottom-nav button.active{color:var(--green);background:transparent}.bottom-nav svg{width:22px;height:22px}aside{padding-top:max(26px,env(safe-area-inset-top));padding-bottom:85px}.header-controls .badge{font-size:15px}.mobile-logo{font-size:16.5px}.modal-body{padding-bottom:max(18px,env(safe-area-inset-bottom))}input,select,textarea{font-size:24px}.line-entry select,.line-entry input{font-size:21px}.stats .stat{min-height:105px}.stats .stat .value{margin-top:17px}.quick-action strong{font-size:16.5px}}
:root{--warehouse-chrome:#101b19}
html,body{min-height:100%;overscroll-behavior-y:none}
body{background:#101b19;isolation:isolate}
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(9,20,17,.8),rgba(9,20,17,.48)),url('/warehouse-cyberpunk.webp') center/cover no-repeat}
.main{min-height:100dvh}
header{background:#101b19ed;color:#e8f4ed;border-bottom-color:#a5d4b729}
.breadcrumb,.breadcrumb strong{color:#bfcec3}
.main .page-heading h1{color:#f0faef;text-shadow:0 2px 12px #0008}
.main .page-heading .eyebrow,.main .page-heading .sub{color:#c2d7ca}
.main>.footer-note,main>.footer-note{color:#d0dfd3}
.panel,.stat,.task-card,.product-card,.warehouse-card,.auth-card{box-shadow:0 10px 35px #0002}
.panel,.stat:not(.dark),.task-card,.product-card,.warehouse-card{background:#f9fcf7f5}
.panel{--panel:#f9fcf7}
.tabs{background:#101b19b3;padding:6px;border-radius:12px;width:fit-content;max-width:100%}
aside{background:#101b19f5;border-right:1px solid #a5d4b729}
.auth-card{background:#f9fcf7f5}
.table-scroll,.modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media(max-width:760px){header{background:#101b19f2}.bottom-nav{background:#101b19f5;border-top-color:#a5d4b729}.bottom-nav button{color:#aabdac}.bottom-nav button.active{color:#d7eb9b}.mobile-logo{color:#e8f4ed}body::before{background-image:linear-gradient(rgba(9,20,17,.35),rgba(9,20,17,.65)),url('/warehouse-mobile.webp');background-position:center top}}

header .mobile-menu{color:#e8f4ed}main>.empty{color:#c2d7ca}

/* 1.0.2: readable mobile forms, keyboard-safe dialogs and translucent home tiles. */
dialog{position:fixed;inset:auto 0 auto 0;top:calc(var(--mdz-visible-top,0px) + var(--mdz-visible-height,100dvh)/2);transform:translateY(-50%);margin:0 auto;width:min(720px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(var(--mdz-visible-height,100dvh) - 24px);overflow:hidden}
#modal-content{display:flex;flex-direction:column;max-height:inherit;min-width:0;min-height:0}
.modal-head{flex:0 0 auto;gap:12px;min-width:0;background:#101b19;color:#f0faef;border-bottom-color:#a5d4b729}
.modal-head h2{flex:1;min-width:0;line-height:1.35;overflow-wrap:anywhere}
.modal-head button{flex-shrink:0;color:#f0faef}
.modal-body{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden}
.modal-body form,.form-grid,.form-grid>*,.line-entry>*{min-width:0;max-width:100%}
.form-grid label{line-height:1.5}
input,select,textarea{line-height:1.5}
.form-actions button{min-width:0;max-width:100%;white-space:normal;line-height:1.4}
.stats .stat,.quick-actions .quick-action{background:rgba(16,35,28,.62);color:#f0faef;border-color:#c5ead63d;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.stats .stat.dark{background:rgba(38,78,59,.68)}
.stats .stat .label,.stats .stat .foot,.stats .stat .stat-icon{color:#d0e1d3}
.stats .stat .stat-icon{opacity:.65}
.quick-actions .quick-action span:first-child{background:#c9e4aa24;color:#d7eb9b}
.quick-actions .quick-action svg{opacity:.7}
.quick-actions .quick-action:hover{background:rgba(38,78,59,.78)}
header{background:#101b19;color:#e8f4ed}
@media(max-width:760px){
 input,select,textarea,label input,label select,label textarea,.line-entry select,.line-entry input{font-size:24px;line-height:1.5}
 input:not([type=checkbox]):not([type=color]),select{min-height:48px;padding-top:11px;padding-bottom:11px}
 .completion-row input{font-size:30px}
 .modal-head{padding:16px 18px}.modal-head h2{font-size:27px}
 .modal-body{padding:18px;padding-bottom:max(18px,env(safe-area-inset-bottom))}
 .line-entry{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 65px 29px}
 .return-row{grid-template-columns:minmax(0,1fr) 85px}
 header{background:#101b19}
}

/* 1.0.3: floating brand and one-line issue summary. */
.meduza-mark{display:block;width:44px;height:44px;flex:0 0 auto;object-fit:contain;filter:drop-shadow(0 2px 10px #0009)}
.brand .meduza-mark{width:44px;height:48px}.brand small{letter-spacing:4px}
.drawer-backdrop,.drawer-close{display:none}
header.app-toolbar{background:none;border:0;box-shadow:none;backdrop-filter:none;position:relative;height:76px}
header.app-toolbar .mobile-logo{display:none}
.issuance-strip{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;margin:0 0 20px;padding:10px 16px;text-align:left;border:1px solid #c5ead63d;border-radius:13px;background:rgba(16,35,28,.72);color:#f0faef;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.issuance-strip:hover{background:rgba(38,78,59,.84)}
.issuance-strip strong{font-size:21px;line-height:1.3}
.strip-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#c9e4aa17;color:#d7eb9b;flex-shrink:0}
.strip-symbol svg{width:18px;height:18px}
.strip-count{display:grid;place-items:center;min-width:26px;height:26px;padding:0 7px;margin-left:auto;background:#d7eb9b;color:#223b2a;border-radius:8px;font-size:18px;flex-shrink:0}
.issuance-strip>svg{width:17px;height:17px;color:#c9dccb}
.overview-journal{margin-top:0}
@media(max-width:760px){
 header.app-toolbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;height:auto;min-height:88px;padding:16px 17px 8px;padding-top:max(16px,env(safe-area-inset-top));color:#f0faef}
 header.app-toolbar .mobile-menu{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #c5ead632;border-radius:13px;background:#0b19165c;color:#eef7e9;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
 header.app-toolbar .mobile-menu svg{width:23px;height:23px}
 header.app-toolbar .mobile-logo{display:flex;align-items:center;justify-content:center;gap:9px;justify-self:center;min-width:0;background:none;border:0;padding:0;color:#f0faef;text-align:left;font-size:27px;letter-spacing:3.5px;font-weight:800;text-shadow:0 2px 10px #000b;border-radius:0}
 header.app-toolbar .mobile-logo .meduza-mark{width:48px;height:56px}
 header.app-toolbar .mobile-logo small{display:block;font-size:13.5px;letter-spacing:4.4px;line-height:1.4;margin-top:5px;color:#d7eb9b}
 header.app-toolbar .header-controls{grid-column:1/-1;justify-content:flex-end;margin:0}
 header.app-toolbar .header-controls .badge,header.app-toolbar .header-controls .avatar{display:none}
 header.app-toolbar .header-controls:empty{display:none}
 header.app-toolbar .header-controls .person-select{max-width:100%;width:auto;background:#101b19db;color:#e8f4ed;border-color:#c5ead63d}
 .app-toolbar+main{padding-top:17px}
 .issuance-strip{min-height:54px;padding:9px 13px;gap:10px;border-radius:12px;margin-bottom:18px}
 .issuance-strip strong{font-size:19.5px}
 .bottom-nav button{flex:1}
 aside{z-index:21;box-shadow:none;padding-top:max(32px,env(safe-area-inset-top));padding-bottom:24px}
 .drawer-close{display:grid;place-items:center;position:absolute;right:7px;top:5px;width:30px;height:30px;padding:5px;color:#c9dccb}
 body.menu-open .drawer-backdrop{display:block;position:fixed;inset:0;z-index:20;background:#0008;border:0;border-radius:0;padding:0;width:100%;height:100%}
}
@media(max-width:350px){header.app-toolbar .mobile-logo{font-size:24px;letter-spacing:2.6px;gap:6px}header.app-toolbar .mobile-logo .meduza-mark{width:40px;height:50px}}

/* 1.0.4: M.D.Z / larger type / gold / direct input rendering. */
:root{--gold:#d6ad5d;--gold-light:#f5dba0;--gold-line:#d6ad5d66;--lime:#ebcd87;--line:#e5dfcd;--muted:#737768}
html{color-scheme:dark}body{font-size:21px}
button{position:relative;isolation:isolate;overflow:hidden;touch-action:manipulation;transition:transform .16s ease,box-shadow .2s ease,border-color .2s ease,background-color .2s ease;box-shadow:inset 0 1px 0 #ffffff2b,0 3px 9px #0002}
button:not(:disabled):active{transform:translateY(2px) scale(.975);box-shadow:inset 0 2px 6px #0004,0 0 16px #d6ad5d25}
button::after{content:'';position:absolute;z-index:0;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at var(--tap-x,50%) var(--tap-y,50%),#ffe8a67a,transparent 65%);opacity:0}
button.tap-flash::after{animation:mdz-tap .5s ease-out}
@keyframes mdz-tap{0%{opacity:.8}100%{opacity:0}}
button:focus-visible,.login-button:focus-visible{outline:2px solid var(--gold-light);outline-offset:4px}
button.primary,.login-button{background:linear-gradient(135deg,#f3dca1,#c99f50 55%,#e3c37c);border:1px solid #f1d89a;color:#17241d;text-shadow:0 1px #fff5;box-shadow:inset 0 1px 0 #fff9,0 4px 14px #0003,0 0 18px #d6ad5d15}
button.primary:hover,.login-button:hover{background:linear-gradient(135deg,#ffeab6,#d6ad5d 55%,#f4d68b);box-shadow:inset 0 1px 0 #fffb,0 6px 18px #0004,0 0 22px #d6ad5d30}
button.accent,nav button.active{background:linear-gradient(135deg,#f2dba0,#d3af65);color:#223326;border-color:#f0d799}
button.ghost,.drawer-backdrop{box-shadow:none}
svg.icon{width:26px;height:26px;stroke-width:2.2;opacity:.5}
.stats .stat .stat-icon{opacity:.325;color:var(--gold-light)}
.stats .stat .stat-icon svg{width:28px;height:28px;opacity:1}
.quick-actions .quick-action svg{width:28px;height:28px;opacity:.35}
.stats .stat,.quick-actions .quick-action{background:rgba(16,35,28,.31);border-color:#e4c77f70;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:inset 0 1px 0 #f6df9b21,0 8px 24px #0003}
.stats .stat.dark{background:rgba(38,78,59,.34)}
.stats .stat .label{padding-right:22px;line-height:1.4;color:#f2ebd9}
.stats .stat .value{color:#f9e6b3;text-shadow:0 1px 8px #0009}
.quick-actions .quick-action span:first-child{background:#d6ad5d21;color:#ffe1a0;box-shadow:inset 0 1px 0 #ffe6a73b}
.quick-actions .quick-action:hover{background:rgba(38,64,44,.49);border-color:#f3dba3}
.strip-symbol{background:#d6ad5d24;color:#f3d694}
.strip-count{background:linear-gradient(135deg,#fae5ad,#d1ad61);color:#1e2c21;min-width:32px;height:32px}
.issuance-strip{border-color:#d6ad5d70;min-height:64px;gap:12px;background:#101f19a8}
.issuance-strip>svg{margin-left:auto;color:var(--gold-light)}
.strip-count+svg{margin-left:0}
.strip-symbol{width:34px;height:34px}.strip-symbol svg{width:23px;height:23px}
.issuance-strip strong{white-space:normal;overflow-wrap:anywhere}
.brand{margin-top:12px}.mdz-wordmark{display:block;width:176px;height:auto;max-width:100%;filter:drop-shadow(0 2px 12px #000a)}
.auth-logo{width:230px;max-width:100%;margin:0 auto 30px}
.sidebar-bottom:has(.online:only-child){border:0;padding-top:0}
.nav-back{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:7px;border:1px solid #e0be7770;border-radius:13px;background:#101b1980;color:#f4d99b}
.nav-back:disabled{opacity:.25}
.modal-head{gap:10px;padding:16px 18px;border-bottom-color:#d6ad5d55}
.modal-head h2{line-height:1.35;font-size:27px;overflow-wrap:anywhere}
.modal-head .modal-back{padding:4px;flex:0 0 auto}
.modal-head svg{opacity:.85;color:#f4d99b}
/* No translated or blurred ancestors around the native text caret. */
dialog{top:calc(var(--mdz-visible-top,0px) + 12px);transform:none;will-change:auto;margin:0 auto;max-height:calc(var(--mdz-visible-height,100dvh) - 24px);background:#fffdf5;color:#202a24;border:1px solid #d6ad5d66}
dialog::backdrop{background:#050e0bc4;backdrop-filter:none;-webkit-backdrop-filter:none}
#modal-content,.modal-body{transform:none;filter:none;backdrop-filter:none;-webkit-backdrop-filter:none;will-change:auto}
.modal-body{padding:20px;max-height:none;line-height:1.55}
input,select,textarea,label input,label select,label textarea,.line-entry select,.line-entry input{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:500;font-style:normal;letter-spacing:normal;word-spacing:normal;line-height:1.5;color:#202a24;background:#fffdf7;caret-color:#8f6421;-webkit-text-fill-color:#202a24;color-scheme:light;text-shadow:none;transform:none;filter:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-color:#cec8b7;box-shadow:inset 0 1px 3px #18291b0a}
input:focus,select:focus,textarea:focus{border-color:#ad8238;outline:2px solid #c59b4d50;outline-offset:2px}
label{color:#585c4b}
.badge.review{background:#f7e9c5;color:#8a601c}
.product-icon,.activity-bullet{background:#e7d8ad66;color:#8c6b31}
.product-icon svg,.activity-bullet svg{opacity:.65}
.progress i{background:#d6ad5d}
.pack-chip{border-color:#d5cdb5}
.empty{color:#c9d0ba}
.panel .empty{color:#737768}
@media(max-width:760px){
 header.app-toolbar{grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;min-height:92px;padding:16px 17px 12px;padding-top:max(16px,env(safe-area-inset-top))}
 header.app-toolbar .nav-back{grid-column:1;grid-row:1}
 header.app-toolbar .mobile-logo{grid-column:2;grid-row:1;justify-self:center;padding:0;width:100%;max-width:200px}
 header.app-toolbar .mobile-logo .mdz-wordmark{width:176px;max-width:100%;height:auto}
 header.app-toolbar .mobile-menu{grid-column:3;grid-row:1;border-color:#e0be7770;color:#f4d99b;background:#101b1980}
 header.app-toolbar .mobile-menu svg,.nav-back svg{opacity:.85;width:26px;height:26px}
 header.app-toolbar .header-controls{grid-row:2;gap:0}
 header.app-toolbar .header-controls:not(:has(select)){display:none}
 .app-toolbar+main{padding-top:10px}
 .page-heading{flex-wrap:wrap;gap:14px;margin-bottom:24px}
 .page-heading>div{min-width:0;flex:1 1 100%}
 .page-heading h1{overflow-wrap:anywhere;line-height:1.2}
 .page-heading button{max-width:100%}
 .stats{gap:12px;margin-bottom:22px}
 .stats .stat{padding:16px;min-height:142px}
 .stat .label{min-height:42px;line-height:1.4}
 .stats .stat .value{font-size:42px;line-height:1.2;margin:12px 0 0}
 .quick-actions{grid-template-columns:1fr;gap:12px;margin-bottom:20px}
 .quick-actions .quick-action{display:flex;align-items:center;text-align:left;gap:16px;padding:13px 16px;min-height:72px}
 .quick-action strong{font-size:16.5px;margin:0;line-height:1.35}
 .quick-action span:first-child{padding:10px;border-radius:12px}
 .issuance-strip{min-height:64px;padding:12px;gap:9px;margin-bottom:16px}
 .issuance-strip strong{font-size:19.5px;line-height:1.3}
 .issuance-strip .strip-symbol{display:none}
 .issuance-strip .strip-count{font-size:18px}
 .issuance-strip>svg{width:22px;height:22px;flex-shrink:0}
 .bottom-nav{padding:10px 10px calc(10px + env(safe-area-inset-bottom));border-top-color:#d6ad5d70}
 .bottom-nav button{font-size:15px;gap:7px;line-height:1.2;padding:5px 3px}
 .bottom-nav svg.icon{width:30px;height:30px}
 .bottom-nav button.active{color:#f4d99b}
 .bottom-nav button.active svg{opacity:.8;filter:drop-shadow(0 0 6px #d6ad5d55)}
 main{padding-bottom:calc(108px + env(safe-area-inset-bottom))}
 .form-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 input,select,textarea,label input,label select,label textarea,.line-entry select,.line-entry input{font-size:24px;line-height:1.5;max-width:100%}
 input:not([type=checkbox]):not([type=color]),select{min-height:66px;padding:13px 14px}
 textarea{min-height:120px}
 input[type=color]{height:60px}
 .completion-row{grid-template-columns:minmax(0,1fr);gap:12px}
 .completion-row input{font-size:30px;width:100%;text-align:left}
 .completion-row label{font-size:16.5px}
 .line-entry{grid-template-columns:minmax(0,1fr) 58px;gap:9px;padding:13px 0;border-bottom:1px solid var(--line)}
 .line-entry .lp,.line-entry .lk{grid-column:1/-1}.line-entry .lq{grid-column:1}
 .line-entry button{grid-column:2;min-height:58px}
 .return-row{grid-template-columns:minmax(0,1fr);gap:10px}
 .return-row input{width:100%}
 .form-actions{gap:12px}.form-actions button{flex:1 1 100%;font-size:21px;padding:13px 16px;min-height:56px}
 .toolbar{flex-wrap:wrap;align-items:stretch}.filters{width:100%}.toolbar select,.search{width:100%;max-width:100%}
 .task-grid,.product-grid,.warehouse-grid{grid-template-columns:minmax(0,1fr)}
 .task-card>.flex,.task-card .task-meta{flex-wrap:wrap;gap:12px}
 .badge{white-space:normal;line-height:1.4}
 .table-scroll th,.table-scroll td{padding:16px;line-height:1.45}
 .tabs{gap:8px}.tabs button{font-size:16.5px;padding:10px 12px}
 nav button{font-size:19.5px;line-height:1.3}
 aside{width:min(310px,90vw);padding-left:18px;padding-right:18px}
 .brand .mdz-wordmark{width:180px}.drawer-close{width:38px;height:38px;top:8px;right:8px}
 .modal-head h2{font-size:27px}.modal-head{padding:16px 14px}.modal-body{padding:18px}
}
@media(prefers-reduced-motion:reduce){button,button::after{transition:none;animation:none!important}button:not(:disabled):active{transform:none}}

/* 1.0.5: left-side menu and compact overview, without shrinking form text. */
@media(max-width:760px){
 header.app-toolbar .mobile-menu{grid-column:1;grid-row:1}
 header.app-toolbar .nav-back{grid-column:3;grid-row:1}
 .overview-shell header.app-toolbar{min-height:68px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:6px}
 .overview-shell header.app-toolbar .mobile-logo .mdz-wordmark{width:184px;max-height:54px;object-fit:contain}
 .overview-main{padding-top:6px;padding-bottom:calc(82px + env(safe-area-inset-bottom))}
 .overview-main .stats{gap:10px;margin-bottom:14px}
 .overview-main .stats .stat{min-height:104px;padding:12px;border-radius:14px}
 .overview-main .stats .stat .label{font-size:14px;line-height:1.3;min-height:36px;padding-right:20px}
 .overview-main .stats .stat .value{font-size:34px;line-height:1.1;margin:5px 0 0}
 .overview-main .stats .stat .stat-icon{right:11px;top:12px}
 .overview-main .stats .stat .stat-icon svg{width:21px;height:21px}
 .overview-main .quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}
 .overview-main .quick-actions .quick-action{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:90px;padding:10px 5px;text-align:center;border-radius:13px}
 .overview-main .quick-actions .quick-action span:first-child{display:grid;place-items:center;padding:7px;border-radius:9px}
 .overview-main .quick-actions .quick-action svg{width:21px;height:21px}
 .overview-main .quick-action strong{font-size:15px;line-height:1.2;overflow-wrap:normal}
 .overview-main .issuance-strip{min-height:48px;padding:9px 12px;gap:8px;margin-bottom:10px}
 .overview-main .issuance-strip strong{font-size:17px;line-height:1.3}
 .overview-main .issuance-strip .strip-count{min-width:26px;height:26px;font-size:15px;border-radius:7px}
 .overview-main .issuance-strip>svg{width:18px;height:18px}
 .overview-main .bottom-nav{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
 .overview-main .bottom-nav button{font-size:14px;gap:5px;padding:4px 3px}
 .overview-main .bottom-nav svg.icon{width:26px;height:26px}
}
@media(max-width:760px) and (max-height:700px){
 .overview-shell header.app-toolbar{min-height:60px;padding-top:max(5px,env(safe-area-inset-top));padding-bottom:4px}
 .overview-shell header.app-toolbar .mobile-logo .mdz-wordmark{max-height:46px;width:172px}
 .overview-main .stats{gap:8px;margin-bottom:10px}
 .overview-main .stats .stat{min-height:88px;padding:9px 11px}
 .overview-main .stats .stat .label{font-size:13.5px;line-height:1.25;min-height:32px}
 .overview-main .stats .stat .value{font-size:30px;margin-top:3px}
 .overview-main .quick-actions{margin-bottom:10px}
 .overview-main .quick-actions .quick-action{min-height:78px;gap:5px;padding:7px 4px}
 .overview-main .quick-actions .quick-action span:first-child{padding:5px}
 .overview-main .quick-actions .quick-action svg{width:20px;height:20px}
 .overview-main .quick-action strong{font-size:14px}
 .overview-main .issuance-strip{min-height:44px;padding-top:7px;padding-bottom:7px;margin-bottom:8px}
 .overview-main .issuance-strip strong{font-size:16px}
}
@media(max-width:350px){.overview-main .quick-action strong{font-size:13.5px}.overview-main .issuance-strip strong{font-size:15.5px}}
