:root{--pink:#ca6193;--light:#fff0f7;--ink:#3c2e39;--grey:#897a84;--border:#f0dfe9;--bg:#fff9fc;--green:#31795b;--red:#b8485f}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 system-ui,-apple-system,'Microsoft YaHei','PingFang SC',sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--pink)}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{padding:24px 16px;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:18px}.brand{display:flex;align-items:center;gap:11px;padding:7px 5px 17px}.brand strong{font-size:16px}.brand small{display:block;color:var(--grey);font-size:11px}.logo{width:40px;height:40px;background:#f9dfeb;border-radius:13px;display:grid;place-items:center;color:var(--pink);font-size:27px}nav#menu{display:grid;gap:4px}.nav{border:0;background:transparent;border-radius:11px;padding:12px;text-align:left;color:#695965}.nav.active,.nav:hover{background:var(--light);color:#a73f70}.sidebar-footer{font-size:12px;color:var(--grey);margin-top:auto;padding:14px;background:var(--bg);border-radius:12px;overflow-wrap:anywhere}main{width:100%;max-width:1250px;margin:0 auto;padding:28px 34px 70px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}h1{font-size:25px;margin:0}h2{font-size:17px;margin:0}.eyebrow{color:var(--grey);font-size:12px}.topaction,.buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.btn{padding:9px 14px;border:1px solid var(--border);border-radius:10px;color:#765369;background:#fff;white-space:nowrap}.btn.primary{background:var(--pink);border-color:var(--pink);color:#fff}.btn.danger{color:var(--red)}.state{color:var(--green);font-size:12px}.notice{padding:13px 16px;border:1px solid #f3dbbc;background:#fff7ed;border-radius:12px;color:#775e46;font-size:12px;margin-bottom:18px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.metric,.card{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 5px 26px rgba(139,61,98,.045)}.metric{padding:18px}.metric .label{color:var(--grey);font-size:12px}.metric .value{font-size:23px;font-weight:760;margin:5px 0}.metric small{color:var(--grey);font-size:11px}.card{padding:20px}.card-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:10px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;min-width:660px;text-align:left}th,td{padding:11px 9px;border-bottom:1px solid #f6eaf0}th{background:#fff8fb;color:#957688;font-weight:600}td.number,th.number{text-align:right;font-variant-numeric:tabular-nums}.subtle{color:var(--grey);font-size:12px}.danger{color:var(--red)}.ok{color:var(--green)}.empty{padding:35px;text-align:center;color:var(--grey)}.pill{display:inline-block;background:var(--light);border-radius:99px;padding:3px 9px;color:#a84978;font-size:11px}.rows{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rows>div{background:#fff9fc;border:1px solid var(--border);padding:16px;border-radius:12px}.itemtitle{font-size:12px;color:var(--grey)}.itemvalue{font-weight:750;font-size:20px}.listline{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--border)}.listline:last-child{border:0}.hint{padding:12px;color:#907280;font-size:12px}dialog{border:1px solid var(--border);border-radius:17px;width:min(460px,94vw);padding:22px;box-shadow:0 24px 75px #43213030}dialog::backdrop{background:#38203068}.modalhead,.modalactions{display:flex;justify-content:space-between;align-items:center;gap:10px}.modalhead{margin-bottom:20px}.close{background:transparent;border:0;font-size:20px;color:var(--grey)}.fields{display:grid;gap:12px}label.field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#786574}input,select{border:1px solid #e7d6e0;border-radius:9px;padding:10px 12px;color:var(--ink);background:#fff;width:100%}input[type=checkbox]{width:auto}.modalactions{margin-top:21px;justify-content:flex-end}.toast{display:none;position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:12px 17px;background:#4c3844;color:#fff;border-radius:10px;max-width:90vw;z-index:100}.mobilebar{display:none}.smallbtn{padding:5px 9px;border:1px solid #f0d5e3;border-radius:8px;background:#fff;color:var(--pink);font-size:12px}.controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.controls label{max-width:280px}code{background:#faf0f5;padding:3px 5px;border-radius:4px}@media(max-width:850px){.layout{display:block}.sidebar{display:none}main{padding:21px 14px 93px}h1{font-size:22px}header{align-items:flex-start}.state{display:none}.metrics{grid-template-columns:repeat(2,1fr);gap:9px}.metric{padding:13px}.metric .value{font-size:18px}.card{padding:13px}.card-title{align-items:flex-start;flex-direction:column}.mobilebar{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--border);justify-content:space-around;padding:9px 2px calc(9px + env(safe-area-inset-bottom));z-index:10}.mobilebar button{border:0;background:transparent;color:#8a7984;display:grid;gap:2px;font-size:10px;min-width:43px}.mobilebar button.active{color:var(--pink)}.mobilebar b{font-size:17px}.rows{grid-template-columns:1fr}.topaction .btn{padding:6px 10px}}

/* Barcode scanning: phone camera, USB/Bluetooth scanner or manual code */
.scan-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:16px}.scan-box{padding:18px;border:1px solid var(--border);border-radius:14px;background:#fffafd}.scan-box h3{font-size:15px;margin:0 0 10px}.scan-status{min-height:42px;margin:12px 0;padding:10px 12px;background:#fff;border:1px dashed var(--border);border-radius:9px}.scan-status.good{border-color:#a4d5b9;color:var(--green)}.scan-status.bad{border-color:#edb4c1;color:var(--red)}.scan-video{width:100%;border-radius:12px;background:#302830;max-height:280px;object-fit:cover;margin-top:10px}.scan-panel{display:grid;gap:10px}.scan-entry{display:flex;gap:8px;align-items:end}.scan-entry .field{flex:1}.scan-result{background:#fff;border:1px solid var(--border);padding:13px;border-radius:10px}.scan-result strong{font-size:16px}.scan-extra{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.scan-extra .field{min-width:0}.scan-controls{display:flex;gap:8px;flex-wrap:wrap}.scan-warning{background:#fff6e9;border-radius:10px;padding:12px;color:#806449;font-size:12px;margin-top:12px}.barcode-svg{width:100%;max-width:480px;height:auto;display:block;margin:auto}.printed-label{text-align:center;padding:18px;background:#fff;border:1px solid var(--border)}.printed-label h3{margin:8px 0}.scan-box small{color:var(--grey)}@media(max-width:850px){.scan-grid{grid-template-columns:1fr}.scan-box{padding:13px}.scan-entry{flex-wrap:wrap}.scan-entry .field{min-width:170px}.scan-extra{grid-template-columns:1fr 1fr}.scan-controls .btn{flex:1}.scan-video{max-height:260px}}

@media(max-width:850px){.mobilebar{justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;gap:2px}.mobilebar button{flex:0 0 61px;min-width:61px}}

/* V1.6 label templates: print-only fixed 40x30 mm; never print product names. */
.tt-print-label{box-sizing:border-box;width:100%;height:100%;background:white;color:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1mm;overflow:hidden;break-after:page;page-break-after:always;font-family:system-ui,'Microsoft YaHei',sans-serif}
.tt-print-label strong{font-size:9pt;line-height:1.25}.tt-print-label svg{display:block;height:17mm!important;max-height:17mm;width:calc(100% - 4mm)!important;max-width:100%!important}
#label-count{max-width:120px}


/* V1.7 soft peach theme */
:root{--pink:#d4568c;--light:#ffedf4;--ink:#543443;--grey:#866877;--border:#f3d4e1;--bg:#fff8fa}
body{background:radial-gradient(ellipse at 90% 0,#ffe0eb 0,transparent 42%),#fff9fa}.sidebar{background:linear-gradient(180deg,#fff0f6,#fffafc);border-right:1px solid #f4d7e2}.brand{border-bottom:1px dashed #efc2d5}.logo{background:#ffe0eb;box-shadow:0 3px 12px #f0bdd066;border-radius:16px}.brand small{margin-top:4px}.nav.active{background:#fbd5e5;font-weight:650;color:#9b355f}.card,.metric{border-radius:20px;box-shadow:0 6px 22px #bd68860b;border-color:#f0d9e3}.metric{border-top:3px solid #f1b5ce}.metric .value{color:#aa3e70}.notice{background:#fff1f6;border-radius:14px;color:#8d4161}.btn{min-height:42px;border-radius:12px}.btn.primary{background:linear-gradient(135deg,#df70a0,#c84f83);box-shadow:0 3px 8px #d88cab30}.state{background:#eef8f1;padding:6px 10px;border-radius:20px}.card-title{padding-bottom:18px;border-bottom:1px dashed #f0d4e0;margin-bottom:18px}.welcome{padding:22px 24px;margin-bottom:22px;background:linear-gradient(110deg,#ffe1ed,#fff2ed);border:1px solid white;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.welcome h2{font-size:23px;color:#ac3f70}.welcome p{margin:6px 0;color:#87586c}.welcome .peach{font-size:56px}.mobilebar{background:#fff5fa}input,select{min-height:42px} @media(max-width:700px){main{padding:18px 14px 95px}.welcome{padding:16px}.welcome h2{font-size:20px}.welcome .peach{font-size:38px}.topaction{justify-content:flex-end}.state{font-size:11px}.buttons{width:100%}.metric .value{font-size:24px}}


/* V1.7.1 unified peach bunny application */
:root{--pink:#cd4e88;--light:#fff0f7;--ink:#533745;--grey:#846473;--border:#f3d6e3;--bg:#fff9fb}
[hidden]{display:none!important}body{background:radial-gradient(circle at 85% 0,#ffe6ef,transparent 40%),#fff9fb}.layout{grid-template-columns:238px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:linear-gradient(165deg,#fff5fa,#fff0f5);padding:22px 16px;border-right:1px solid #f2cddb}.brand{gap:8px}.brand .logo{width:58px;height:58px;box-shadow:none;background:none;border-radius:18px}.brand strong{font-size:18px;letter-spacing:1px;color:#9b3b66}.brand small{font-size:10px}.sidebar-footer{background:#fffcfe;border:1px dashed #ebc6d6}.nav{min-height:43px;padding:10px 13px;color:#805d70;transition:background .15s}.nav.active{background:#f9d6e6;border:1px solid #efbdd2;box-shadow:0 3px 8px #edbfd930;color:#a23768}.nav:hover{background:#fbe4ef}main{max-width:1440px;padding:24px 30px 50px}.page-heading{display:flex;align-items:center;gap:12px}.header-logo{width:48px;height:48px}.eyebrow{font-size:11px;letter-spacing:2px}h1{font-size:25px;letter-spacing:1px}.notice{border-style:dashed;font-size:12px;margin-bottom:18px;background:#fffdf9}.welcome{position:relative;overflow:hidden;min-height:235px;background:linear-gradient(110deg,#ffe4ef 0%,#fff0f5 55%,#ffe5ed 100%);border:2px solid #fff;box-shadow:0 8px 28px #ca7fa416;padding:24px 34px;border-radius:28px}.hero-copy{z-index:1}.ribbon{display:inline-block;color:#b04a78;background:#fff6fb;border:1px solid #edc6d8;border-radius:20px;padding:4px 12px;font-size:11px;letter-spacing:1px}.welcome h2{font-size:29px;line-height:1.45;margin:10px 0 7px;color:#9b3b68}.welcome p{font-size:13px;line-height:1.8}.hero-actions{display:flex;gap:9px;margin-top:17px}.hero-art{position:relative;align-self:stretch;min-width:235px;display:flex;flex-direction:column;align-items:center;justify-content:center}.hero-art img{width:180px;filter:drop-shadow(0 10px 12px #df9ab94d);transform:rotate(5deg)}.hero-caption{font-size:11px;color:#ab6685;background:#ffffffb5;border-radius:20px;padding:4px 14px;margin-top:5px}.spark{position:absolute;color:#da7ca4;font-size:35px}.spark.one{top:10%;left:0}.spark.two{bottom:20%;right:0}.metrics{gap:15px;margin-bottom:22px}.metric{padding:20px;border-radius:20px;background:#fffdfd;border:1px solid #f2d8e3;border-top:3px solid #eeb6d0;box-shadow:0 5px 15px #c97aa00a}.metric .label{color:#856477}.metric .value{font-size:28px;color:#ae4272;margin:8px 0}.card{padding:23px;border-radius:22px;background:#fffdfef5;box-shadow:0 6px 24px #be759b09}.section-intro{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.section-intro h2{font-size:23px;margin:10px 0 6px;color:#9d3e69}.section-intro p{margin:5px 0;color:var(--grey);font-size:13px}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px}.search-label{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:#fff7fb;padding:0 14px;border-radius:14px;flex:1;max-width:440px}.search-label input{width:100%;border:0;background:transparent;padding:10px 0;outline-offset:3px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:19px}.product-card{border:1px solid #eed5e1;border-radius:20px;background:#fff;overflow:hidden;min-width:0;transition:box-shadow .15s}.product-card:hover{box-shadow:0 8px 20px #db95b226}.product-card.is-favorite{border-color:#df9dbb}.product-art{height:136px;background:radial-gradient(circle at center,#fff9fc,#ffe8f1);position:relative;display:flex;align-items:center;justify-content:center}.product-card:nth-child(3n+2) .product-art{background:radial-gradient(circle,#fffaff,#f1e6f7)}.product-card:nth-child(3n+3) .product-art{background:radial-gradient(circle,#fffdf8,#ffede2)}.product-art img{width:105px;opacity:.92}.category{position:absolute;left:12px;top:12px;font-size:10px;padding:3px 9px;background:#fffc;border-radius:20px;color:#a65c7b}.heart-button{position:absolute;right:12px;top:12px;background:#fff;border:1px solid #f3c7db;border-radius:50%;width:32px;height:32px;color:#cb4c82;font-size:21px}.product-info{padding:16px}.product-info h3{margin:0 0 4px;font-size:16px;overflow-wrap:anywhere}.product-info small{color:#967486;font-size:11px}.product-stats{display:flex;justify-content:space-between;gap:6px;margin:15px 0;color:#8b6c7c;font-size:12px}.product-stats b{display:block;color:#a94275;font-size:18px;margin-top:3px}.product-actions{display:flex;flex-wrap:wrap;gap:7px}.product-actions .btn{flex:1;font-size:12px;padding:7px 10px;min-height:37px}.code-line{border:1px dashed #efd1df;background:#fffbfd;border-radius:8px;padding:7px;margin-bottom:12px;font:11px monospace;color:#927183;overflow-wrap:anywhere}.stock-low{color:#b24a61;font-size:11px;margin:10px 0 0}.import-steps{display:flex;gap:12px;margin:20px 0}.import-steps span{flex:1;background:#ffeff6;border:1px solid #f4d2e3;color:#aa4777;border-radius:14px;padding:13px;text-align:center;font-size:12px}.import-config,.mapping-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.import-config>.field{min-width:230px;flex:1}.file-picker{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:2px dashed #e3abc4;background:#fff7fb;border-radius:15px;padding:18px;cursor:pointer;flex:2;color:#ac4f7a}.file-picker small{font-size:11px;color:#967285;overflow-wrap:anywhere}.mapping-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;padding:18px;border:1px solid #f0d7e2;border-radius:15px;margin:15px 0}.check-note{display:flex;align-items:center;gap:8px;color:#994065;margin:14px 0}.check-note input{min-height:0}.preview-summary{display:flex;gap:20px;flex-wrap:wrap;margin:20px 0 12px;padding:15px;background:#fff1f7;border-radius:12px}.controls{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.import-history{margin-top:22px;padding:16px;background:#fff7fa;border-radius:14px}.import-history summary{cursor:pointer;color:#9e4970}.finance-grid{max-width:750px}.finance-notice{padding:18px;border-radius:15px;background:#fff2f7;color:#954469;margin:20px 0}.finance-notice p{font-size:12px}.boot{position:fixed;inset:0;background:radial-gradient(circle at center,#fff7fb,#ffe1ed);z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center}.boot img{width:160px;filter:drop-shadow(0 15px 25px #e6a8c14d)}.boot h1{font-size:32px;color:#bd477c;letter-spacing:4px;margin:5px}.boot p{color:#ad6a89;margin:0 0 20px}.boot span{color:#835c71;font-size:13px;max-width:450px}.btn:disabled{opacity:.5;cursor:not-allowed}input,select{accent-color:#cb4e88}table th{background:#fff0f6;color:#9b5778;font-size:12px}table td{vertical-align:middle}dialog{border:1px solid #e8bfd3;border-radius:22px;box-shadow:0 18px 70px #70405230}dialog::backdrop{background:#68415455;backdrop-filter:blur(3px)}.mobilebar button.active{color:#b23f78;background:#fce0ed;border-radius:12px}.boot-retry{margin:10px}
@media(max-width:1050px){.layout{grid-template-columns:208px minmax(0,1fr)}main{padding:22px}.brand strong{font-size:15px}.hero-art{min-width:165px}.hero-art img{width:150px}.welcome{padding:24px}.welcome h2{font-size:25px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}}
@media(max-width:760px){.layout{display:block}.sidebar{display:none}.mobilebar{display:flex!important;position:fixed;bottom:0;left:0;right:0;z-index:50;overflow-x:auto;background:#fff7fbf5;border-top:1px solid #eebed5;gap:4px;padding:8px 8px max(8px,env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.mobilebar button{flex:0 0 68px;border:0;background:transparent;font-size:10px;padding:7px 4px;color:#85667b;min-height:45px}.mobilebar b{display:block;font-size:18px}main{padding:16px 13px 110px}header{gap:8px;align-items:flex-start}.page-heading{gap:5px}.header-logo{width:34px;height:34px}h1{font-size:19px}.eyebrow{font-size:9px;letter-spacing:0}.topaction{gap:5px;max-width:158px}.topaction .btn{font-size:11px;padding:6px 9px;min-height:32px}.topaction .state{font-size:10px;padding:3px 8px}.notice{font-size:10px;padding:9px 11px;line-height:1.7}.welcome{min-height:205px;padding:18px 17px;border-radius:22px;gap:5px}.welcome h2{font-size:22px}.welcome p{font-size:10px}.ribbon{font-size:9px;padding:3px 9px}.hero-art{min-width:110px}.hero-art img{width:110px}.hero-caption{font-size:8px;padding:3px 5px}.spark{font-size:23px}.hero-actions{gap:5px}.hero-actions .btn{font-size:10px;padding:7px 9px;min-height:34px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:13px}.metric .value{font-size:23px}.metric small{font-size:10px}.card{padding:16px 12px}.card-title{flex-wrap:wrap;gap:10px}.card-title .buttons{width:100%;gap:6px}.card-title .btn{font-size:11px;padding:7px 10px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-art{height:103px}.product-art img{width:82px}.product-info{padding:10px}.product-info h3{font-size:13px}.product-stats{font-size:10px;gap:3px}.product-stats b{font-size:16px}.product-actions .btn{font-size:10px;padding:5px;min-height:34px}.category{font-size:8px;left:7px;top:8px;padding:3px 6px}.heart-button{right:7px;top:8px;width:28px;height:28px}.code-line{font-size:9px}.section-intro{align-items:flex-start;flex-direction:column}.section-intro h2{font-size:20px}.section-intro p{font-size:12px}.import-steps{gap:5px}.import-steps span{padding:10px 4px;font-size:10px}.import-config{gap:10px}.import-config>.field,.file-picker{flex:1 1 100%}.mapping-grid{grid-template-columns:1fr;padding:13px}.preview-summary{gap:10px;font-size:12px}.rows{grid-template-columns:1fr}.boot img{width:135px}.boot h1{font-size:27px}dialog{max-width:calc(100vw - 22px);padding:16px}.toolbar .field{min-width:0}.finance-notice{padding:12px;font-size:12px}}
@media(max-width:370px){.hero-art{display:none}.product-grid{grid-template-columns:1fr}.product-art{height:120px}}

@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#printable-label{display:flex;flex-direction:column;align-items:center;gap:12px;max-height:65vh;overflow:auto;padding:12px;background:#fff3f8;border-radius:12px}#printable-label .tt-print-label{flex:0 0 auto;width:40mm;height:30mm;min-height:30mm;border:1px dashed #e1b4c9;border-radius:5px;padding:1mm}#label-dialog{min-width:min(430px,90vw)}


/* 桃桃星梦馆视觉升级：严格参照店主指定的抱桃小吉祥物与粉色首页参考图。
   保留原有表单、库存操作、扫码与打印的行为；财务数据由现有API计算。 */
:root{--pink:#f58bb4;--pink-strong:#e9518a;--light:#fff0f6;--ink:#503247;--grey:#998493;--border:#f8deea;--bg:#fff8fc;--green:#15986a;--red:#d64c69}
html{scroll-behavior:smooth}body{background:radial-gradient(circle at 12% 1%,#ffd7e8 0,transparent 23%),radial-gradient(circle at 76% 0%,#fff1f8 0,transparent 40%),linear-gradient(125deg,#fff4fa 0%,#fffafd 50%,#ffeefa 100%);font-family:ui-rounded,'Microsoft YaHei','PingFang SC','Noto Sans SC',system-ui,sans-serif;color:var(--ink);min-height:100vh}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.38;background-image:radial-gradient(circle,#fff 1.7px,transparent 2px),radial-gradient(circle,#ffbfda 1.1px,transparent 1.5px);background-size:115px 121px,163px 172px;background-position:5px 17px,35px 85px}
.layout{grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;overscroll-behavior:contain;border-right:1px solid #fff;background:linear-gradient(150deg,#fff9fc 0%,#fff2f8 55%,#ffeaf5 100%);box-shadow:8px 0 30px rgba(221,95,144,.07);padding:16px 13px;gap:10px}.sidebar::-webkit-scrollbar{width:5px}.sidebar::-webkit-scrollbar-thumb{background:#f3c5db;border-radius:8px}
.brand{gap:12px;padding:5px 5px 20px;min-height:80px}.brand-icon{width:55px;height:55px;flex:none;border:3px solid #fff;border-radius:18px;box-shadow:0 7px 15px #f5a7c752;object-fit:cover}.brand strong{font-size:18px;color:#c52963;letter-spacing:.3px;white-space:nowrap}.brand small{font-size:13px;color:#bf577f;font-weight:650;margin-top:2px}.brand-heart{color:#ff94ba}
nav#menu{display:grid;gap:4px}.nav{display:flex;gap:12px;align-items:center;min-height:43px;text-align:left;border:1px solid transparent;background:transparent;border-radius:15px;padding:10px 13px;color:#67465c;font-size:13px;font-weight:640;transition:background .15s,color .15s,transform .15s}.nav:hover{background:#ffe5f0;color:#d73879;transform:translateX(2px)}.nav.active{background:linear-gradient(105deg,#ffd3e4,#ffe9f3);color:#db3476;border-color:#fff;box-shadow:0 3px 11px #efb1cc51}.nav-svg{width:19px;height:19px;flex:none}.nav .nav-chevron{margin-left:auto;color:#bfa1b1;font-size:16px}.nav.active .nav-svg{filter:drop-shadow(0 2px 2px #ee9bbe88)}
.sidebar-bottom{text-align:center;margin-top:auto;padding:18px 10px 3px;position:relative;min-height:152px;display:grid;justify-items:center;align-content:center;background:radial-gradient(ellipse at 50% 50%,#ffd9e9 0%,#fff0f700 75%)}.sidebar-bottom img{width:99px;height:99px;object-fit:cover;border-radius:37px;box-shadow:0 10px 28px #e899b53b}.sidebar-bottom p{color:#cb6b91;font-size:12px;line-height:1.8;margin:7px 0}.sidebar-footer{margin-top:3px;background:#fff7fb;border:2px solid #fff;box-shadow:0 3px 15px #edacc945;text-align:center;padding:11px 7px;border-radius:16px;color:#bd7498}.footer-brand{font-weight:750;color:#d75188;display:block;margin-bottom:4px}.sidebar-footer small{font-size:10px;display:block;line-height:1.45}
main{max-width:1600px;margin:0 auto;width:100%;padding:17px 24px 60px}.topbar{height:67px;display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:15px;gap:20px}.global-search{display:flex;align-items:center;gap:10px;max-width:540px;width:45%;border:2px solid #fff;border-radius:32px;background:rgba(255,255,255,.72);box-shadow:0 4px 18px #e9a9c433;padding:8px 17px}.global-search:focus-within{box-shadow:0 0 0 3px #ffd7e7}.global-search span{font-size:25px;line-height:1;color:#e5679b}.global-search input{background:none;border:0;box-shadow:none;padding:4px 0;font-size:13px;min-width:0;outline:none;color:#663d56}.global-search input:focus{outline:none}.topaction{gap:12px;justify-content:flex-end}.top-avatar{display:flex;align-items:center;gap:8px;border-radius:24px;background:#fffafde8;border:1px solid #fff;padding:4px 10px;box-shadow:0 4px 15px #e9a3c233;font-size:12px;font-weight:750;color:#7b4965}.top-avatar img{width:36px;height:36px;object-fit:cover;border-radius:50%}.top-avatar small{display:block;color:#eb4d8d;font-size:10px;font-weight:650}.state{color:#ca7d9c}.topaction .btn{border-radius:19px;background:#fff9fd;font-size:12px}.mobile-logo{display:none}
.hero{position:relative;isolation:isolate;min-height:165px;display:flex;align-items:center;overflow:hidden;border-radius:24px;border:2px solid #fff;background:linear-gradient(108deg,#fffafbda 1%,#ffe7f1e8 56%,#ffcada 100%);box-shadow:0 10px 30px #e6a6c12f;margin-bottom:16px}.hero[hidden]{display:none}.hero::before{content:"♡　✧　♡　　　　✦　　　　　♡";position:absolute;inset:0;color:#ffabc9;font-size:26px;letter-spacing:16px;opacity:.68;z-index:-1;white-space:nowrap;transform:translate(15px,3px)}.hero-copy{padding:27px 18px 28px 36px;position:relative;z-index:1;max-width:60%}.hero-copy .eyebrow{font-size:12px;color:#d585ab;letter-spacing:1px}.hero-copy h1{font-size:clamp(22px,2.4vw,34px);line-height:1.35;letter-spacing:.4px;font-weight:800;color:#ab2459;margin:7px 0}.hero-copy p{margin:7px 0;color:#896c7d;font-size:13px}.soft-heart{color:#ff7fac}.hero-art{position:absolute;right:18%;top:-9px;height:186px;width:238px;display:grid;place-items:center}.hero-art img{height:163px;width:163px;object-fit:cover;border-radius:45px;transform:rotate(-4deg);box-shadow:0 10px 30px #ee92b658;border:3px solid #fff}.hero-art .hero-star{position:absolute;left:-25px;top:34px;color:#f6ba52;font-size:31px}.hero-message{position:absolute;top:28px;left:-42px;color:#ef80a9;font-size:12px;line-height:1.2;font-style:italic;transform:rotate(-12deg)}.hero-date{align-self:stretch;margin-left:auto;z-index:1;width:190px;padding:32px 16px 14px;background:#fff8f7a8;border-left:1px solid #fff;text-align:center;color:#aa7b93;font-size:11px}.hero-date p{background:#fff6faaa;color:#e26698;border-radius:12px;padding:12px 4px;line-height:1.65;font-size:12px}
.page-heading{display:flex;align-items:center;justify-content:space-between;padding:2px 3px 12px}.page-heading h1{font-size:25px;color:#ab2459;font-weight:800}.page-sparkle{color:#ef7fa5;font-size:22px}.dashboard-view .page-heading{display:none}.eyebrow{color:#b7849d}.notice{background:#fff8ec;border:1px solid #ffeed0;color:#987c60;border-radius:13px;padding:10px 14px;margin-bottom:15px;font-size:11px;box-shadow:0 2px 8px #ecd8b32a}
.metrics{gap:11px;margin-bottom:16px}.metric{position:relative;overflow:hidden;min-height:113px;border-radius:20px;padding:18px 14px 14px 81px;background:linear-gradient(125deg,#fff5f9,#ffe6f1);box-shadow:0 6px 21px #e89db62b;border:1px solid #fff}.metric:nth-child(2){background:linear-gradient(125deg,#fffafa,#fff0da)}.metric:nth-child(3){background:linear-gradient(125deg,#fcf9ff,#eee8ff)}.metric:nth-child(4){background:linear-gradient(125deg,#f6fffb,#dffff0)}.metric::before{content:"♡";position:absolute;left:13px;top:22px;width:51px;height:51px;border-radius:15px;background:#fbd7e7;display:grid;place-items:center;font-size:28px;color:#e8518d}.metric:nth-child(2)::before{content:"⇢";background:#ffead6;color:#ea9948}.metric:nth-child(3)::before{content:"▢";background:#e7dfff;color:#9064da}.metric:nth-child(4)::before{content:"¥";background:#d0f7e6;color:#37ac83;font-weight:800}.metric .label{color:#be5b89;font-size:12px;white-space:nowrap}.metric:nth-child(2) .label{color:#a77c52}.metric:nth-child(3) .label{color:#8471ae}.metric:nth-child(4) .label{color:#578f75}.metric .value{font-size:clamp(18px,1.75vw,25px);margin:3px 0;color:#40263a;font-weight:850;white-space:nowrap}.metric small{color:#ad94a3;font-size:10px;display:block}.metric::after{content:"♥";position:absolute;right:11px;top:8px;color:#fab4d0;font-size:15px;opacity:.8}.metric:nth-child(2)::after{color:#ffd09b}.metric:nth-child(3)::after{content:"✦";color:#a5a1ef}.metric:nth-child(4)::after{content:"✦";color:#91ddc5}
.card{border:1px solid #fff;border-radius:22px;box-shadow:0 7px 27px #e9aec24f;background:#fffdfef2;padding:22px}.card-title h2{color:#a73b70}.dashboard-sheet{padding:0;background:transparent;box-shadow:none;border:0}.dashboard-sheet>.card-title{display:none}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(230px,.9fr) minmax(225px,.93fr);gap:14px}.dash-panel{border:1px solid #fff;border-radius:22px;box-shadow:0 8px 27px #e9afc13c;padding:16px;background:#fffdfef0;min-width:0}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:28px;margin-bottom:11px}.panel-title h3{margin:0;color:#673d55;font-size:15px;font-weight:800}.tiny-tag{color:#a97f9a;background:#fff6fb;border:1px solid #f7e1e9;border-radius:16px;padding:4px 11px;font-size:10px}.text-action{border:0;background:transparent;color:#b77b9b;font-size:11px;padding:5px 0;white-space:nowrap}.text-action:hover{color:#db3f7c;text-decoration:underline}.sales-chart{display:block;width:100%;height:auto;min-height:150px;max-height:290px}.chart-axis{font-size:12px;fill:#a0879b}.dash-panel .subtle{font-size:10px;margin:5px 0 0}.hot-row{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #fcf0f6}.hot-row:last-child{border-bottom:0}.hot-rank{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;flex:none;background:#f5e1ed;color:#a17c92;font-weight:750;font-size:11px}.hot-rank.r1{background:#fc80aa;color:#fff}.hot-rank.r2{background:#d5b0d8;color:#fff}.hot-rank.r3{background:#ffc2b1;color:#fff}.hot-thumbnail{width:34px;height:34px;border-radius:11px;background:#fff0f7;color:#ef7eac;display:grid;place-items:center;flex:none}.hot-thumbnail .nav-svg{width:17px;height:17px}.hot-description{flex:1;min-width:0}.hot-description strong{font-size:12px;color:#6c4a60;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hot-description small{color:#e75c96;font-size:10px}.hot-count{font-size:10px;white-space:nowrap;color:#a48ca0}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.quick-action{border:0;border-radius:14px;background:transparent;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 2px;color:#745369;font-size:10px;cursor:pointer;transition:transform .15s,background .15s}.quick-action:hover{background:#fff2f8;transform:translateY(-2px)}.quick-icon{width:43px;height:43px;display:grid;place-items:center;background:#ffe6f0;border-radius:14px;color:#e74d8a}.quick-icon .nav-svg{width:22px;height:22px}.quick-action:nth-child(2) .quick-icon,.quick-action:nth-child(5) .quick-icon{background:#e6f3ff;color:#5e9ccd}.quick-action:nth-child(3) .quick-icon,.quick-action:nth-child(6) .quick-icon{background:#fff0db;color:#ef925c}.quick-action:nth-child(4) .quick-icon,.quick-action:nth-child(8) .quick-icon{background:#f0e5ff;color:#aa78d4}.quick-action:nth-child(7) .quick-icon{background:#e2f8ef;color:#53af82}.cute-message{font-size:12px;border:1px solid #fff;background:linear-gradient(90deg,#ffdce9,#fff0f6);border-radius:13px;text-align:center;margin-top:12px;padding:11px 2px;color:#d34883;font-weight:750}.orders-panel{grid-column:span 2}.task-panel{grid-column:span 1}.orders-panel table{min-width:380px}.orders-panel td,.orders-panel th{font-size:11px;padding:11px 8px}.orders-panel th{background:#fff3f8}.orders-panel .table-wrap{max-height:290px}.orders-panel .pill{color:#d04783;background:#ffeaf3}.orders-panel .pill.success{color:#32856d;background:#e3faee}.print-prompt{display:flex;align-items:center;gap:12px;padding:15px 5px}.print-prompt>img{width:74px;height:74px;object-fit:cover;border-radius:19px;flex:none;box-shadow:0 7px 18px #eeb0ce4d}.print-prompt strong{font-size:13px;color:#a73b70}.print-prompt p{font-size:11px;color:#a58399}.print-prompt .btn{padding:7px 12px;font-size:11px}
.btn{border-radius:13px;border-color:#f3d5e3;color:#a2527e;background:#fff9fc;font-weight:650;transition:background .13s,transform .13s}.btn:hover,.smallbtn:hover{background:#ffe8f2;transform:translateY(-1px)}.btn.primary{background:linear-gradient(130deg,#fb86b5,#e95390);border-color:#ed72a4;color:#fff;box-shadow:0 5px 12px #ed8cb74a}.btn.primary:hover{background:#e64d89}.smallbtn{border-radius:9px}.pill{border:1px solid #ffe3ee;background:#fff0f7}.table-wrap{border-radius:13px}.rows>div,.scan-box{background:#fffafb;border-color:#ffe2ee;border-radius:17px}th{background:#fff1f7;color:#af7191}th,td{border-bottom-color:#f9eaf1}input,select{border-color:#f3d4e3;border-radius:12px;background:#fffdfd}input:focus-visible,select:focus-visible,button:focus-visible{outline:3px solid #f9a3c7;outline-offset:2px}.notice,.scan-warning{line-height:1.6}.state{white-space:nowrap}.search-hit{background:#ffe7f3}.toast{background:#8b4869;border:1px solid #ffc4dd;border-radius:13px;box-shadow:0 12px 32px #85446144}dialog{border:2px solid #fff5fa;border-radius:25px;background:#fffafe}dialog::backdrop{background:#46273f85}
@media(min-width:1500px){main{padding:20px 32px 70px}.hero{min-height:176px}.hero-copy{padding-top:35px;padding-bottom:35px}}
@media(max-width:1220px) and (min-width:851px){.layout{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding:13px 9px}.brand strong{font-size:15px}.brand-icon{width:47px;height:47px}.nav{font-size:12px;gap:8px}.hero-date{display:none}.hero-art{right:0}.hero-copy{max-width:65%}.dashboard-grid{grid-template-columns:1.25fr 1fr}.shortcuts-panel{grid-column:span 2}.orders-panel{grid-column:1}.task-panel{grid-column:2}.metrics{grid-template-columns:repeat(2,1fr)}.metric .value{font-size:23px}}
@media(max-width:850px){.layout{display:block}.sidebar{display:none}main{padding:12px 12px 108px}.topbar{height:auto;min-height:49px;align-items:center;gap:8px;margin-bottom:13px}.mobile-logo{display:flex;align-items:center;gap:6px;color:#c03875;font-weight:800;font-size:12px;white-space:nowrap}.mobile-logo img{width:34px;height:34px;object-fit:cover;border-radius:11px}.global-search{max-width:none;flex:1;width:30%;min-width:0;padding:6px 9px}.global-search span{font-size:18px}.global-search input{font-size:11px}.topaction{gap:4px}.topaction .btn{padding:7px 9px;border-radius:12px;font-size:12px}.top-avatar,.topaction .state{display:none}.hero{min-height:149px;border-radius:20px}.hero-copy{padding:17px 12px 20px 16px;max-width:75%}.hero-copy h1{font-size:19px}.hero-copy p{font-size:11px;max-width:220px;line-height:1.6}.hero-copy .eyebrow{font-size:9px}.hero-art{right:-28px;top:5px;width:120px;height:139px}.hero-art img{width:111px;height:111px;border-radius:31px}.hero-star,.hero-message,.hero-date{display:none!important}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{padding:11px 9px 10px 51px;min-height:98px;border-radius:16px}.metric::before{width:32px;height:32px;left:10px;top:22px;border-radius:11px;font-size:19px}.metric .label{font-size:10px;white-space:normal}.metric .value{font-size:17px;letter-spacing:-.5px}.metric small{font-size:9px;line-height:1.25}.metric::after{font-size:11px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.dash-panel{padding:12px;border-radius:17px}.trend-panel,.hot-panel,.shortcuts-panel,.orders-panel,.task-panel{grid-column:1}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.quick-action{font-size:10px;padding:7px 0}.quick-icon{width:45px;height:45px}.hot-row{padding:10px 0}.panel-title h3{font-size:14px}.dashboard-view #content .table-wrap{overflow:auto}.page-heading h1{font-size:21px}.card{padding:13px;border-radius:17px}.mobilebar{background:rgba(255,249,253,.97);box-shadow:0 -7px 24px #edb0c955;border-top:2px solid #fff;justify-content:flex-start;overflow-x:auto;gap:1px;scrollbar-width:thin;padding:7px 3px calc(8px + env(safe-area-inset-bottom))}.mobilebar button{color:#a98097;min-width:61px;flex:0 0 61px;font-size:9px;gap:3px}.mobilebar button.active{color:#df4281}.mobilebar button .nav-svg{width:22px;height:22px;justify-self:center}.mobilebar b{display:none}.notice{font-size:10px;padding:10px;margin-bottom:11px}.scan-grid{gap:10px}.print-prompt>img{width:62px;height:62px}}
@media(max-width:380px){.mobile-logo span{display:none}.hero-copy{max-width:79%}.hero-copy h1{font-size:17px}.hero-art img{width:90px;height:90px}.hero-art{right:-31px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* Lightweight branded loading splash. Dismissed regardless of network outcome. */
.startup-splash{position:fixed;z-index:500;inset:0;background:linear-gradient(135deg,#fff0f6,#ffd9e9);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#ba5484;font-weight:750;font-size:14px}.startup-splash img{width:min(300px,75vw);height:auto;max-height:64vh;object-fit:contain;border-radius:28px;box-shadow:0 14px 40px #de98b06e}.startup-splash[hidden]{display:none!important}

/* Merge compatibility: retained V1.7.1 controls and splash */
.hero.welcome{padding:0}.hero .hero-art{min-width:0}.startup-splash button{margin-top:8px}.global-search input{width:100%}.product-art img{border-radius:24px}.hero .hero-copy{min-width:0}.dashboard-sheet .card-title{display:none}
@media(max-width:700px){.hero.welcome{display:flex;padding:0}.hero .hero-copy{padding:22px 16px}.hero .hero-art{min-width:0} .topaction #quick-pack{display:none}}

/* Mobile navigation and product editing: retain the original pink artwork. */
.mobile-all{display:grid;gap:2px;text-align:center;font-size:11px;color:#b44c7c;min-width:0;flex:1}.mobile-all select{width:100%;min-width:0;padding:4px;font-size:12px;min-height:32px}
.image-editor{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.image-editor img{width:90px;height:90px;object-fit:contain;border-radius:14px}.image-editor small{width:100%}.product-actions{display:flex;flex-wrap:wrap}.product-actions .btn{white-space:normal}.product-art img{object-fit:contain}.toolbar{flex-wrap:wrap}dialog{max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}.modalactions{position:sticky;bottom:-16px;background:#fffafe;padding:12px 0}.hero-art,.hero-star{pointer-events:none}
@media(max-width:850px){.mobilebar{overflow:visible;display:flex!important}.mobilebar button{flex:1;min-width:0;min-height:48px;font-size:10px;padding:5px 1px}.mobile-all{flex:1.25}.mobilebar{padding-bottom:calc(8px + env(safe-area-inset-bottom))}main{padding-bottom:calc(110px + env(safe-area-inset-bottom))}input,select,textarea{font-size:16px}.global-search input{font-size:16px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-actions .btn{min-height:44px;flex:1 1 100%;font-size:12px}dialog{width:calc(100vw - 20px);max-width:none}.toast{bottom:calc(95px + env(safe-area-inset-bottom))}}
@media(max-width:360px){.product-grid{grid-template-columns:1fr}}

/* Mobile scroll fix: one vertical page scrollport, navigation occupies its own row.
   Screen-only: do not constrain the GP-1124T print document. */
@media screen and (max-width:850px){
 html{height:100%;min-height:0;scroll-behavior:auto}
 body{height:100vh;height:100dvh;min-height:0;margin:0;overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) auto}
 body>.layout{display:block;min-height:0;min-width:0;height:100%;overflow:hidden}
 .layout>.sidebar{display:none}
 #main-scroll{height:100%;min-height:0;min-width:0;max-width:100%;margin:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;scroll-behavior:auto;scroll-padding-block:12px;padding:12px max(12px,env(safe-area-inset-right)) 24px max(12px,env(safe-area-inset-left))}
 body>.mobilebar{position:static;min-width:0;width:100%;max-width:100%;margin:0;flex-shrink:0;padding:7px max(3px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(3px,env(safe-area-inset-left))}
 #workspace-card,#content,.metrics,.scan-grid,.rows,.toolbar,.card-title,.buttons,.fields,.field,.search-label{min-width:0;max-width:100%}
 .topbar{flex-wrap:wrap;height:auto;min-width:0}
 .topbar .global-search{min-width:80px}
 .topbar .topaction{margin-left:auto;max-width:100%}
 .table-wrap,.dashboard-view #content .table-wrap{width:100%;max-width:100%;max-height:none;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .table-wrap table{width:100%}
 .orders-panel .table-wrap{max-height:none}
 .listline,.product-info,.scan-box,.notice,.hint{overflow-wrap:anywhere}
 .controls,.scan-controls,.buttons{flex-wrap:wrap}
 .buttons .btn,.controls .btn,.scan-controls .btn{white-space:normal;max-width:100%}
 .image-editor{min-width:0}.image-editor input{max-width:100%}
 dialog{position:fixed;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding-bottom:max(16px,env(safe-area-inset-bottom))}
 #label-dialog #printable-label{max-height:none;overflow:visible}
}
.scan-order-summary{display:grid;gap:5px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}.scan-order-summary strong{overflow-wrap:anywhere}.scan-order-summary .ok{color:var(--green)}.scan-order-summary .danger{color:var(--red)}#pack-photo-input{display:none}
.arrival-info{display:flex;gap:12px;align-items:center}.arrival-info img{width:72px;height:72px;object-fit:contain;border-radius:15px}.arrival-confirm{position:sticky;bottom:0;background:#fff2f8;padding:16px;border:1px solid #efbad2;border-radius:16px;display:flex;gap:10px;flex-wrap:wrap;z-index:5}
/* V1.9 daily workspace: one vertical scrollport, safe bottom actions. */
.page-heading{position:sticky;top:0;z-index:25;display:flex;align-items:center;gap:10px;background:#fff4faed;backdrop-filter:blur(12px);padding:12px;border-radius:18px;border:1px solid #ffe0ec;flex-wrap:wrap}.page-heading>div{flex:1}.page-heading .page-sparkle{display:none}.page-heading select{max-width:180px}.nav-collapsed .sidebar{width:88px;overflow:hidden}.nav-collapsed .sidebar .nav span,.nav-collapsed .sidebar-bottom,.nav-collapsed .sidebar-footer,.nav-collapsed .brand div{display:none}.nav-collapsed .layout{grid-template-columns:88px minmax(0,1fr)}
.workflow-intro{padding:12px 16px;border-left:4px solid #ef7da9;background:#fff1f8;border-radius:15px;margin-bottom:18px}.work-product-photo{width:72px;height:72px;object-fit:cover;border-radius:14px}.work-confirm{position:sticky;bottom:0;z-index:15;background:#fff2f8f5;padding:16px;border:1px solid #f0a5c6;border-radius:18px;box-shadow:0 -5px 20px #e4a3bd26;margin-top:16px}.work-confirm small{display:block;color:#9c6c85;margin:8px 0}.work-confirm .primary{font-size:18px;min-height:50px}.candidate-card{padding:12px;background:#fff8fc;border:1px solid #f1c8db;border-radius:16px;margin:10px 0}.candidate-card .work-product-photo{float:left;margin-right:12px}.candidate-card button{clear:both;display:block;width:100%;margin-top:12px}#work-video{width:100%;max-height:260px;background:#30222b;border-radius:18px}.period-controls,.daily-shortcuts{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 20px}.period-controls .field{min-width:140px}.sales-metrics .metric:nth-child(1),.sales-metrics .metric:nth-child(2){background:linear-gradient(130deg,#ffe0ed,#fff5fa)}.rank-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-bottom:1px solid #f6dce8;padding:14px 0}.trend-bars{display:flex;gap:18px;align-items:flex-end;overflow-x:auto;padding:20px 10px}.trend-day{min-width:95px;text-align:center;display:grid;gap:6px}.trend-pair{height:105px;display:flex;align-items:flex-end;justify-content:center;gap:4px}.trend-pair span{display:block;width:22px;background:#f7a5c7;border-radius:8px 8px 0 0}.trend-pair .profit-bar{background:#ce4c87}.sales-metrics{margin-bottom:20px}.sales-metrics .metric .value{font-size:28px}#content .dash-panel{margin-bottom:16px}.image-editor img{object-fit:contain}.modalactions{position:sticky;bottom:0;background:#fff7fb;padding:12px;z-index:5}
@media(max-width:850px){.desktop-only{display:none!important}.page-heading{gap:7px;top:0;padding:9px;margin-bottom:12px}.page-heading h1{font-size:18px}.page-heading .eyebrow{display:none}.page-heading select{max-width:112px;min-height:44px;font-size:13px}.page-heading .btn{min-height:44px;padding:8px 10px}.scan-grid{grid-template-columns:minmax(0,1fr)}.scan-box .controls .btn{flex:1 1 140px;min-height:48px}.work-confirm{bottom:0;padding:12px}.work-confirm .controls .btn{flex:1 1 42%;min-height:48px}.work-confirm .controls .primary{flex:1 1 100%}.sales-metrics .metric{padding:16px;min-height:95px}.sales-metrics .metric:before,.sales-metrics .metric:after{display:none}.sales-metrics .metric .value{font-size:25px}.daily-shortcuts .btn{flex:1 1 42%;min-height:55px}.product-art{height:160px}.product-art img{width:100%;height:100%;object-fit:contain}.product-info h3{font-size:15px}.product-actions{display:grid;grid-template-columns:1fr 1fr}.product-actions .btn{min-width:0}.product-grid{grid-template-columns:minmax(0,1fr)}.mobilebar{min-height:70px}.mobilebar button{font-size:11px}.card-title .buttons{gap:7px}.card-title .buttons .btn{min-height:44px}dialog{max-height:calc(100dvh - 30px);overflow-y:auto;overscroll-behavior:contain}.trend-bars{gap:10px}.hero{display:none}.global-search{max-width:100%}.image-editor .btn{min-height:48px}}
/* Keep the confirmation summary in document flow: it must never cover a product card. */
.work-confirm{position:relative;bottom:auto}

/* One authoritative print layout: landscape stock, one exact-size label per page. */
.tt-print-label{box-sizing:border-box;width:var(--paper-width,40mm);height:var(--paper-height,30mm);background:#fff;color:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1mm;overflow:hidden;padding:1mm;border:0;font-family:Arial,'Microsoft YaHei','PingFang SC',sans-serif;break-after:page;page-break-after:always}
.tt-print-label .tt-label-brand{display:block;margin:0;color:#000;font-family:"Arial Rounded MT Bold","YouYuan","幼圆","Microsoft YaHei",sans-serif;font-size:9pt;line-height:1.2;font-weight:800;white-space:nowrap}
.tt-print-label .tt-label-brand span{color:#000;font-family:Arial,sans-serif;font-weight:700}
.tt-print-label .barcode-svg text{font-family:Arial,sans-serif!important;font-size:12px!important;font-weight:700!important;fill:#000!important}
.tt-print-label .barcode-svg{display:block;width:calc(100% - 4mm);max-width:none;height:15mm;max-height:15mm;margin:0;flex:0 0 auto}
.tt-print-label:last-child{break-after:auto;page-break-after:auto}
@media print{
 @page{size:40mm 30mm;margin:0}
 html,body{width:var(--paper-width,40mm)!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important;transform:none!important}
 body.is-printing-label>*{visibility:hidden!important}
 body.is-printing-label>#label-dialog,body.is-printing-label>#label-dialog *{visibility:visible!important}
 body.is-printing-label>.layout,body.is-printing-label>.mobilebar,body.is-printing-label>#toast,body.is-printing-label>#editor{display:none!important}
 body.is-printing-label>#label-dialog{display:block!important;position:static!important;inset:auto!important;width:var(--paper-width,40mm)!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
 body.is-printing-label>#label-dialog>.modalhead,body.is-printing-label>#label-dialog>.modalactions{display:none!important}
 body.is-printing-label #printable-label{display:block!important;position:static!important;inset:auto!important;width:var(--paper-width,40mm)!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important}
 body.is-printing-label #printable-label .tt-print-label{display:flex!important;box-sizing:border-box!important;width:var(--paper-width,40mm)!important;height:var(--paper-height,30mm)!important;min-height:var(--paper-height,30mm)!important;max-height:var(--paper-height,30mm)!important;margin:0!important;padding:1mm!important;border:0!important;transform:none!important;break-inside:avoid!important;page-break-inside:avoid!important}
 body.is-printing-label #printable-label .tt-print-label:last-child{break-after:auto!important;page-break-after:auto!important}
 body.is-printing-label #printable-label .tt-print-label .barcode-svg{width:calc(100% - 4mm)!important;height:15mm!important;max-height:15mm!important;max-width:none!important}
}

.live-product-dialog{width:min(420px,94vw);max-height:90dvh;overflow:auto;box-sizing:border-box}.live-product-dialog .fields{display:block}.live-photo{display:block;width:140px;height:140px;object-fit:contain;margin:0 auto;border-radius:20px}.live-product-dialog .modalactions{position:sticky;bottom:0;background:#fff5fa;padding-bottom:max(12px,env(safe-area-inset-bottom));display:flex;flex-wrap:wrap}.live-product-dialog button{min-height:46px}.live-success-heart{margin:12px 0;text-align:center;color:#d84283;font-size:20px;font-weight:850}.latest-stock{display:block;margin:12px 0;text-align:center;color:#a2396d;font-size:18px}.work-camera-area{width:100%;margin:10px 0 14px;padding:10px;box-sizing:border-box;border:1px solid #f8d7e7;border-radius:18px;background:linear-gradient(145deg,#fff8fc,#fff0f7)}.work-camera-area video{display:block;width:100%;max-height:45dvh;min-height:190px;object-fit:contain;background:#281e29;border-radius:14px}.camera-status{margin:8px 2px 2px;color:#9b6b87;font-size:14px;line-height:1.5}.camera-status.bad{color:#b3345f;font-weight:750}.camera-status.good{color:#32856d;font-weight:750}.work-camera-area video[hidden]{display:none!important}
@media(max-width:850px){.work-camera-area{padding:8px}.work-camera-area video{min-height:210px;max-height:42dvh}.camera-status{font-size:13px}.controls #arrival-camera,.controls #arrival-recognize,.controls #out-camera,.controls #out-recognize{min-height:52px;flex:1 1 calc(50% - 8px);font-size:15px}}
/* Full-width scan workflow: camera, confirmation, then manual tools. */
.scan-workspace{display:flex;flex-direction:column;gap:18px}.scan-zone,.confirm-zone,.manual-zone{min-width:0;padding:18px;margin-bottom:18px;border:1px solid #f3cce0;border-radius:22px;background:#fffafd}.scan-zone h2,.confirm-zone h2,.manual-zone h2{font-size:20px;color:#b23c76;margin:0 0 14px}.confirm-zone{order:2;background:#fff0f7}.manual-zone{order:3;background:#fff}.scan-zone{order:1}.work-camera-area video{aspect-ratio:16/9;height:auto;min-height:0;max-height:55dvh;object-fit:contain}.scan-zone .controls{display:flex;flex-wrap:wrap;gap:9px}.scan-zone .btn{min-height:48px}.manual-zone input{max-width:100%}.scan-zone .work-camera-area{max-width:960px;margin-inline:auto}@media(max-width:850px){.scan-zone,.confirm-zone,.manual-zone{padding:12px}.work-camera-area video{min-height:0;aspect-ratio:16/9}.scan-zone .controls .btn{flex:1 1 45%;white-space:normal}.live-product-dialog{max-height:calc(100dvh - 32px);padding-bottom:env(safe-area-inset-bottom)}}
/* Give live scan video most of the phone viewport; the old 260px cap made labels tiny. */
#work-video{display:block;width:100%;height:min(62dvh,680px);max-height:62dvh!important;min-height:280px;aspect-ratio:4/3;object-fit:contain;background:#211922;border:2px solid #f3b5d0;border-radius:18px}
.work-camera-area:has(#work-video:not([hidden])){padding:8px;background:#211922;border:2px solid #f3b5d0;box-shadow:0 4px 18px #c84f8522}
@media(max-width:850px){#work-video{height:58dvh;max-height:58dvh!important;min-height:320px;aspect-ratio:4/3}.work-camera-area:has(#work-video:not([hidden])){padding:5px;margin:8px 0}.scan-zone .controls #arrival-camera,.scan-zone .controls #arrival-recognize,.scan-zone .controls #out-camera,.scan-zone .controls #out-recognize{flex-basis:calc(50% - 6px)}}
.camera-tools{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:10px 4px}.camera-tools .btn{min-height:46px}.camera-tools label{display:flex;align-items:center;gap:10px;min-width:min(320px,90%);font-size:15px;font-weight:750;color:#8d4165}.camera-tools input[type=range]{flex:1;min-width:170px;accent-color:#d84d8b}.work-camera-area:has(#work-video:not([hidden])) .camera-status{color:#fff;background:#362b35;border-radius:10px;padding:10px}
@media(max-width:850px){.camera-tools{position:sticky;bottom:calc(70px + env(safe-area-inset-bottom));z-index:12;background:#fff6fb;border-radius:14px;box-shadow:0 2px 10px #b33b6522}.camera-tools label{flex:1 1 100%;justify-content:center}}
