/* V1.0.5 visibility contract: hidden must always win over responsive !important rules */
[hidden]{display:none!important}
:root{--orange:#fff1e6;--orange2:#ffe1c7;--mint:#c9f3df;--red:#d94b4b;--text:#2b2b2b;--card:#fff;--line:#f1c7a7}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:linear-gradient(180deg,var(--orange),#fffaf6);color:var(--text)}header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#fff8f2;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}header b{font-size:20px;color:#df6b20}header small{display:block;color:#777;margin-top:2px}#menuBtn{display:none}.layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 64px)}aside{background:#fff7f0;border-right:1px solid var(--line);padding:12px;position:sticky;top:64px;height:calc(100vh - 64px)}.nav{display:flex;gap:9px;align-items:center;width:100%;padding:11px 12px;margin:5px 0;border:1.5px solid var(--red);border-radius:12px;background:var(--mint);cursor:pointer;font-weight:650}.nav.active{background:#fff0dc}.nav span{font-size:18px}main{padding:18px;min-width:0}.page-title{margin:0 0 4px;font-size:24px}.sub{color:#777;margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.card{background:var(--card);border:1px solid #f1dcc9;border-radius:16px;padding:14px;box-shadow:0 5px 20px #a46d3a12}.big{min-height:100px}.stat{font-size:26px;font-weight:800;color:#d76720}.btn{background:var(--mint);border:1.5px solid var(--red);border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}.btn.secondary{background:#fff}.btn.danger{background:#ffe2e2}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.field label{display:block;font-size:12px;color:#666;margin-bottom:4px}.field input,.field select,.field textarea{width:100%;padding:10px;border:1px solid #e4b98f;border-radius:10px;background:#fff}.preview{display:flex;align-items:center;justify-content:center;min-height:220px;background:#f7f7f7;border:1px dashed #aaa;border-radius:14px}.label-preview{background:#fff;border:1px solid #333;padding:10px;width:300px;min-height:120px;font-size:12px}.barcode{height:42px;background:repeating-linear-gradient(90deg,#111 0 2px,#fff 2px 4px,#111 4px 5px,#fff 5px 8px);margin:8px 0}.table-wrap{overflow:auto;background:#fff;border-radius:14px;border:1px solid #f0d4bd}table{border-collapse:collapse;width:100%;min-width:760px}th,td{padding:10px;border-bottom:1px solid #eee;text-align:left;font-size:13px}th{background:#fff4ea;position:sticky;top:0}.badge{padding:4px 8px;border-radius:999px;background:#e8f8ef;border:1px solid #9bd5b6;font-size:12px}.templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.template{cursor:pointer}.template.active{outline:3px solid #ef8e49}.mini-label{height:120px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px dashed #c7a687;border-radius:10px;margin-bottom:8px}.printer{display:flex;align-items:center;justify-content:space-between;gap:10px}.status{width:10px;height:10px;border-radius:50%;display:inline-block;background:#2bb673}.status.off{background:#d33}.notice{padding:10px 12px;border-radius:12px;background:#fff8dd;border:1px solid #e5c96a;margin:10px 0}#toast{position:fixed;right:16px;bottom:16px;background:#222;color:#fff;padding:10px 14px;border-radius:10px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}.templates{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){#menuBtn{display:block}.layout{display:block}aside{position:fixed;left:-240px;top:64px;width:220px;z-index:10;transition:.2s;box-shadow:4px 0 20px #0002}aside.open{left:0}main{padding:12px}.grid,.templates,.form-grid{grid-template-columns:1fr}.page-title{font-size:21px}.preview{min-height:170px}.toolbar .btn{flex:1 1 45%}}
.print-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr);gap:12px}.template-switch{margin-bottom:12px}.template-switch label{display:block;font-size:12px;color:#666;margin-bottom:4px}.template-switch select,.search{width:100%;padding:10px;border:1px solid #e4b98f;border-radius:10px;background:#fff}.search{max-width:360px}.preview-note{margin-top:8px}.frx-label{background:#fff;border:1px solid #222;width:min(100%,620px);height:108px;display:grid;grid-template-columns:1.05fr 34px 1.1fr .9fr;overflow:hidden;font-family:Arial,sans-serif;box-shadow:0 3px 14px #0001}.frx-label section{padding:6px;min-width:0}.frx-left,.frx-mid{display:flex;flex-direction:column;justify-content:space-between;gap:2px}.frx-label .product{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.frx-label .price,.frx-label .klv{font-size:15px}.frx-label small{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vertical{writing-mode:vertical-rl;transform:rotate(180deg);font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;border-left:1px dashed #aaa;border-right:1px dashed #aaa}.frx-tail{display:flex;align-items:center;justify-content:center;text-align:center;font-size:10px;font-weight:800;border-left:1px dashed #aaa}.jewelry-barcode{height:28px;margin:2px 0}.barcode-text{text-align:center;font-size:8px;line-height:9px}.recent-row{padding:8px 0;border-bottom:1px solid #eee;display:flex;gap:10px;align-items:center;justify-content:space-between}.compact{padding:5px 8px;white-space:nowrap}@media(max-width:900px){.print-grid{grid-template-columns:1fr}.frx-label{width:100%;max-width:620px}}@media(max-width:560px){.frx-label{height:92px;grid-template-columns:1.05fr 26px 1.1fr .72fr}.frx-label section{padding:4px}.frx-label .product{font-size:11px}.frx-label .price,.frx-label .klv{font-size:12px}.frx-label small{font-size:7px}.vertical,.frx-tail{font-size:7px}.jewelry-barcode{height:20px}.barcode-text{font-size:6px}}

/* ===== KAZUKO LABEL LOGIN V0.3 ===== */
.login-screen{min-height:100vh;padding:24px;background:radial-gradient(circle at 75% 20%,#fff 0,#fff8f1 28%,transparent 55%),linear-gradient(135deg,#fff8f2,#ffe9d5 58%,#fffaf6);color:#2d2d2d}.login-shell{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1fr 1.05fr;background:#fffdfb;border:1.5px solid #ef9a58;border-radius:28px;overflow:hidden;box-shadow:0 20px 55px #b96f3426}.login-hero{position:relative;min-height:650px;padding:70px 40px 40px;display:flex;flex-direction:column;align-items:center;background:linear-gradient(160deg,#fff,#fff7ef 70%,#ffe4cb)}.brand-mark{width:150px;height:150px;border:6px solid #f07819;border-left-color:transparent;border-radius:50%;display:grid;place-items:center;position:relative;transform:rotate(-10deg)}.brand-mark span{font-size:86px;font-weight:900;font-style:italic;color:#ef7418;transform:rotate(10deg)}.brand-mark i{position:absolute;right:7px;top:2px;color:#f59a17;font-size:26px}.brand-title{font-size:34px;font-weight:800;letter-spacing:2px;margin-top:22px}.brand-title b{color:#ed711d}.brand-sub{font-size:15px;font-weight:700;margin-top:4px}.hero-art{margin-top:auto;width:100%;height:270px;position:relative;display:flex;align-items:end;justify-content:center}.printer-art{width:180px;height:135px;border-radius:22px 22px 12px 12px;background:linear-gradient(#242424,#555);color:#fff;font-size:70px;display:flex;align-items:center;justify-content:center;box-shadow:0 18px 28px #0003;position:relative;transform:translateX(-65px)}.printer-art small{position:absolute;bottom:-34px;background:#fff;color:#222;border:1px solid #333;width:115px;height:60px;font-size:10px;padding:8px;text-align:center}.jewel-art{position:absolute;right:40px;bottom:15px;font-size:72px;color:#d99736;letter-spacing:-24px;text-shadow:0 4px 10px #c87c3655}.login-panel{padding:58px 50px;display:flex;flex-direction:column;justify-content:center}.login-panel h1{text-align:center;color:#e96919;font-size:34px;line-height:1.15;margin:0 0 16px}.login-panel p{text-align:center;line-height:1.55;margin:0}.spark{text-align:center;color:#ee8b2b;font-size:20px;margin:16px 0 26px}.login-field{height:58px;border:1px solid #d9d3cd;border-radius:10px;background:#fff;display:flex;align-items:center;margin-bottom:14px;box-shadow:0 2px 8px #00000008}.login-field>span{width:52px;text-align:center;font-size:22px}.login-field input{flex:1;border:0;outline:none;font-size:15px;background:transparent;padding:0 6px}.eye{border:0;background:transparent;padding:12px 16px;cursor:pointer;font-size:18px}.login-tools{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin:6px 0 22px}.link-btn{border:0;background:none;color:#e96e23;cursor:pointer;padding:0}.link-btn.strong{font-weight:800}.login-main-btn{height:58px;background:linear-gradient(90deg,#c9f3df,#d8f8e8);border:2px solid #e53e3e;border-radius:12px;font-weight:900;font-size:18px;cursor:pointer;display:flex;justify-content:center;gap:70px;align-items:center}.login-main-btn span{font-size:28px}.or{display:flex;gap:16px;align-items:center;justify-content:center;margin:25px 0;color:#666;font-size:13px}.or span{height:1px;background:#edcbb2;flex:1}.social-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.social-row button{height:48px;border:1px solid #efa36f;background:#fff;border-radius:10px;cursor:pointer;font-weight:600}.google-g{color:#4285f4;font-size:18px}.ms-box{color:#f06825;font-size:20px}.signup-line{text-align:center;margin-top:24px}.company-block{max-width:1180px;margin:28px auto 0;padding:0 30px}.company-block h2{text-align:center;color:#e76719;font-size:23px}.company-grid{display:grid;grid-template-columns:1.15fr 1.3fr;gap:14px 30px;font-size:14px}.benefits{max-width:1180px;margin:26px auto 18px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.benefits div{background:#fffaf6;border:1px solid #f0dac5;border-radius:18px;padding:14px;text-align:center}.benefits b,.benefits small{display:block}.benefits small{margin-top:4px;color:#666}.login-bottom{max-width:1180px;margin:20px auto 0;background:#fff;border:1px solid #efd9c6;border-radius:18px;display:grid;grid-template-columns:repeat(3,1fr);box-shadow:0 8px 26px #ad69251a}.login-bottom>div{padding:22px 28px;display:flex;flex-direction:column;gap:8px;border-right:1px solid #efddce}.login-bottom>div:last-child{border-right:0}.login-bottom span{font-size:13px;line-height:1.5}.login-bottom button{align-self:flex-start;background:#cdf3df;border:1.5px solid #e33d3d;border-radius:8px;padding:7px 16px;font-weight:700;cursor:pointer}.login-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#272727;color:#fff;border-radius:10px;padding:10px 16px;opacity:0;pointer-events:none;transition:.2s;z-index:90}.login-toast.show{opacity:1}.auth-modal{position:fixed;inset:0;background:#0006;z-index:80;display:none;place-items:center;padding:18px}.auth-modal.open{display:grid}.auth-card{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fffaf6;border:1.5px solid #ef985a;border-radius:20px;padding:26px;position:relative}.modal-x{position:absolute;right:15px;top:10px;border:0;background:none;font-size:28px;cursor:pointer}.auth-card h2{margin:0 0 8px;color:#e96919}.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-grid .full{grid-column:1/-1}.auth-card label{display:block;font-size:12px;margin-bottom:4px;color:#666}.auth-card input{width:100%;padding:11px;border:1px solid #dfb792;border-radius:9px}.auth-submit{width:100%;margin-top:18px;background:#c9f3df;border:1.5px solid #d94b4b;border-radius:10px;padding:12px;font-weight:800;cursor:pointer}.head-actions{display:flex;align-items:center;gap:8px}
@media(max-width:900px){.login-screen{padding:12px}.login-shell{grid-template-columns:1fr;max-width:560px}.login-hero{display:none}.login-panel{padding:38px 24px}.login-panel:before{content:'K';width:112px;height:112px;border:5px solid #ef7418;border-left-color:transparent;border-radius:50%;display:grid;place-items:center;margin:0 auto 20px;color:#ef7418;font-size:66px;font-weight:900;font-style:italic}.company-block{max-width:560px}.company-block h2{font-size:18px}.company-grid{grid-template-columns:1fr;gap:10px}.benefits{max-width:560px;grid-template-columns:1fr 1fr}.login-bottom{max-width:560px;grid-template-columns:1fr}.login-bottom>div{border-right:0;border-bottom:1px solid #efddce}.login-bottom>div:last-child{border-bottom:0}}
@media(max-width:520px){.login-panel h1{font-size:27px}.login-panel p{font-size:14px}.login-main-btn{gap:38px}.social-row{grid-template-columns:1fr 1fr}.benefits{grid-template-columns:1fr 1fr}.company-block{padding:0 8px}.auth-grid{grid-template-columns:1fr}.auth-grid .full{grid-column:auto}}

/* ===== V0.4 LOGIN - MATCH APPROVED REFERENCE ===== */
.exact-login{min-height:100vh;padding:26px 22px 34px;background:radial-gradient(circle at 25% 68%,rgba(255,255,255,.9),transparent 30%),linear-gradient(135deg,#fffaf6 0%,#fff0df 52%,#fffaf7 100%);color:#242424;font-family:Arial,Helvetica,sans-serif}
.exact-shell{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:1fr 1.05fr;border:1.6px solid #ef914f;border-radius:28px;overflow:hidden;background:#fff;box-shadow:0 13px 34px rgba(153,89,42,.14)}
.exact-hero{min-height:720px;background:#fff;overflow:hidden;display:flex;align-items:stretch}.exact-hero img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.exact-panel{min-height:720px;padding:56px 44px 42px;background:rgba(255,255,255,.98);display:flex;flex-direction:column;justify-content:center}.exact-panel h1{margin:0;color:#e95f0d;font-weight:800;text-align:center;font-size:36px;line-height:1.12}.exact-panel .welcome{text-align:center;font-size:16px;line-height:1.45;margin:18px 0 0}.exact-spark{display:flex;align-items:center;justify-content:center;gap:9px;color:#f29a24;margin:20px 0 28px}.exact-spark span{width:38px;height:1px;background:#f5b06a}.exact-spark b{font-size:15px}
.exact-field{height:58px;border:1px solid #d8d0ca;border-radius:10px;display:flex;align-items:center;background:#fff;margin-bottom:14px;overflow:hidden}.exact-field>svg{width:25px;height:25px;margin:0 14px 0 17px;fill:none;stroke:#4c4c4c;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.exact-field input{border:0;outline:0;flex:1;font-size:15px;padding:0;background:transparent}.exact-eye{width:52px;height:100%;display:grid;place-items:center;border:0;background:transparent;cursor:pointer}.exact-eye svg{width:23px;height:23px;fill:none;stroke:#4a4a4a;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.exact-tools{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:3px 0 20px}.remember{display:flex;gap:8px;align-items:center}.remember input{width:18px;height:18px;accent-color:#ef7b32}.exact-link,.exact-signup button{border:0;background:none;color:#ef6f21;cursor:pointer;font-weight:600}.exact-login-btn{height:58px;border:2px solid #f13535;border-radius:11px;background:linear-gradient(90deg,#c9f3df,#d8f8e7);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;font-size:18px;font-weight:800;cursor:pointer}.exact-login-btn span{grid-column:2}.exact-login-btn b{grid-column:3;justify-self:center;font-size:27px;font-weight:400}.exact-or{display:flex;align-items:center;gap:12px;margin:24px 0 20px;color:#666}.exact-or span{height:1px;background:#e9c5a7;flex:1}.exact-or em{font-size:13px;font-style:normal}.exact-social{display:grid;grid-template-columns:1fr 1fr;gap:14px}.exact-social button{height:48px;border:1px solid #ee9c64;border-radius:10px;background:#fff;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.glogo{font:900 20px Arial;color:#4285f4}.mslogo{width:16px;height:16px;display:grid;grid-template-columns:1fr 1fr;gap:1px}.mslogo i:nth-child(1){background:#f35325}.mslogo i:nth-child(2){background:#81bc06}.mslogo i:nth-child(3){background:#05a6f0}.mslogo i:nth-child(4){background:#ffba08}.exact-signup{text-align:center;margin-top:23px;font-size:15px}.mobile-brand-exact{display:none}
.exact-company{max-width:1160px;margin:30px auto 0;padding:0 14px}.exact-company h2{text-align:center;color:#e76516;font-size:25px;margin:0 0 20px}.exact-contact-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:16px 40px;font-size:14px}.exact-contact-grid>div{display:flex;align-items:flex-start;gap:8px}.exact-contact-grid svg{width:21px;height:21px;flex:0 0 auto;fill:none;stroke:#ef7418;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.exact-benefits{max-width:1160px;margin:24px auto 18px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.exact-benefits>div{min-height:90px;border:1px solid #efddcc;background:rgba(255,255,255,.52);border-radius:16px;padding:15px 14px;display:flex;align-items:center;justify-content:center;gap:10px}.benefit-icon{width:42px;height:42px;display:grid;place-items:center}.benefit-icon svg{width:36px;height:36px;fill:none;stroke:#ef7a1c;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.exact-benefits p{margin:0;text-align:left}.exact-benefits b{display:block;font-size:16px}.exact-benefits small{display:block;font-size:12px;line-height:1.35;margin-top:3px;color:#555}.exact-copyright{max-width:1160px;margin:7px auto 18px;text-align:center;color:#ee6a16;font-weight:700;font-size:12px}
.exact-bottom{max-width:1160px;margin:0 auto;background:#fff;border:1px solid #ecd7c7;border-radius:18px;box-shadow:0 8px 25px rgba(163,94,37,.08);display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden}.exact-bottom>div{min-height:145px;padding:20px 24px;display:grid;grid-template-columns:90px 1fr;align-items:center;border-right:1px solid #ead7c8}.exact-bottom>div:last-child{border-right:0}.big-icon{width:76px;height:76px;border-radius:50%;background:#fff0de;display:grid;place-items:center}.big-icon svg{width:43px;height:43px;fill:none;stroke:#111;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.exact-bottom section{display:flex;flex-direction:column;align-items:flex-start}.exact-bottom b{font-size:15px}.exact-bottom p{font-size:13px;line-height:1.45;margin:7px 0 10px}.exact-bottom button{background:#c9f3df;border:1.5px solid #e43d3d;border-radius:8px;padding:7px 16px;font-weight:700;cursor:pointer}
@media(max-width:900px){.exact-login{padding:10px 10px 22px}.exact-shell{display:block;max-width:520px;border:0;border-radius:0;box-shadow:none;background:transparent}.exact-hero{display:none}.exact-panel{min-height:auto;padding:22px 16px 26px;border-radius:28px;background:#fff9f2;border:1px solid #efddcc}.mobile-brand-exact{display:block;width:260px;max-width:82%;height:auto;margin:0 auto 20px}.exact-panel h1{display:none}.exact-panel .welcome{font-size:14px;margin-top:6px}.exact-spark{margin:16px 0 22px}.exact-company{max-width:520px;margin-top:18px;border:1px solid #eed9c8;border-radius:15px;padding:14px 16px;background:rgba(255,255,255,.45)}.exact-company h2{display:none}.exact-contact-grid{grid-template-columns:1fr;gap:10px;font-size:12px}.exact-benefits,.exact-copyright,.exact-bottom{display:none}.exact-field{height:52px}.exact-login-btn{height:52px}.exact-social{gap:10px}.exact-social button{height:62px;flex-direction:column;gap:2px}.exact-signup{font-size:14px}}
@media(max-width:430px){.exact-panel{padding:18px 12px 22px}.mobile-brand-exact{width:225px}.exact-panel .welcome{font-size:13px}.exact-field input{font-size:13px}.exact-tools{font-size:12px}.exact-login-btn{font-size:16px}.exact-contact-grid{font-size:11px}}

/* ===== V0.5 IN TEM 3 NHOM ===== */
.print-categories{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0 18px}.print-cat{min-height:112px;border:1.7px solid #ef5350;border-radius:16px;background:#c9f3df;padding:14px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;box-shadow:0 3px 10px #b56b3320}.print-cat:hover,.print-cat.active{outline:3px solid #f2a35a55;background:#bff0d8}.print-cat .cat-icon{font-size:30px}.print-cat b{font-size:15px}.print-cat small{color:#5d5d5d}.section-caption{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:6px 0 10px;padding:10px 14px;border-left:5px solid #ef7a1c;background:#fff6ed;border-radius:8px}.section-caption b{color:#e45e0d}.section-caption span{color:#666;font-size:13px}.shipping-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:12px}.ship-mode{display:flex;align-items:center;gap:18px;padding-bottom:10px;border-bottom:1px solid #eedcca}.ship-mode label{display:flex;gap:6px;align-items:center}.provider-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.provider-card{border:1px solid #ead9ca;border-radius:12px;background:#fffaf6;padding:10px;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:9px}.provider-logo{width:52px;height:42px;border-radius:9px;border:1px solid #ef9b62;background:#fff;display:grid;place-items:center;font-weight:900;color:#e65d13;font-size:11px;text-align:center}.provider-card small{display:block;color:#666;margin-top:3px}.ship-note{margin-top:12px}.order-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.shop-label{min-width:270px}.provider-card .btn.compact{white-space:nowrap}
@media(max-width:900px){.print-categories{grid-template-columns:1fr}.print-cat{min-height:86px;display:grid;grid-template-columns:52px 1fr;text-align:left}.print-cat .cat-icon{grid-row:1/3}.print-cat b,.print-cat small{justify-self:start}.shipping-grid{grid-template-columns:1fr}.provider-list{grid-template-columns:1fr}.section-caption{align-items:flex-start;flex-direction:column}.order-head{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.print-categories{gap:8px}.print-cat{border-radius:12px}.provider-card{grid-template-columns:48px 1fr}.provider-logo{width:44px}.provider-card .btn{grid-column:1/-1;width:100%}.ship-mode{align-items:flex-start;flex-wrap:wrap}}
.grid-table{border-collapse:collapse;width:100%}.grid-table th,.grid-table td{border:1px solid #e9b899;padding:9px 10px;vertical-align:middle}.grid-table th{background:#fff0e5;position:sticky;top:0;z-index:1}.filter-grid{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(140px,1fr));gap:10px;margin:12px 0}.filter-grid input,.filter-grid select{width:100%;min-height:40px;border:1px solid #efaa7d;border-radius:10px;padding:8px 10px;background:white}.settings-sections{display:grid;gap:14px}.settings-sections h3{margin:0 0 12px;color:#d85c12}.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.check-card{display:flex;gap:10px;align-items:flex-start;border:1px solid #efaa7d;border-radius:12px;padding:12px;background:#fffaf6}.check-card input{width:20px;height:20px}.check-card span{display:grid;gap:4px}.check-card small{color:#777}.company-checks{margin:12px 0}.company-checks label{border:1px solid #efd0bc;border-radius:10px;padding:9px;background:#fff}.unit-tags{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}.unit-tags span{background:#c8f2df;border:1px solid #f04444;border-radius:999px;padding:6px 10px}.unit-tags button{border:0;background:transparent;color:#a00;font-weight:bold;cursor:pointer}.file-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}.template-switch{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.template-switch label{grid-column:1/-1}.company-preview{display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.08;max-width:100%;overflow:hidden}.company-preview b,.company-preview small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:clip;font-size:clamp(6px,1.2vw,10px)}.auto-fit{display:block;max-width:100%;white-space:nowrap;overflow:hidden}.shop-label{width:min(480px,95%);min-height:180px;border:1px solid #222;background:#fff;padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.shop-price{font-size:20px;font-weight:800}.barcode{height:26px;display:flex;gap:2px;align-items:stretch;justify-content:center;margin:3px 0}.barcode span{width:2px;background:#111}.barcode span:nth-child(2n){width:4px}.frx-label{overflow:hidden}.frx-left,.frx-mid,.frx-tail{overflow:hidden}.frx-left>*{white-space:nowrap;overflow:hidden}.shipping-grid .card{min-width:0}@media(max-width:900px){.filter-grid{grid-template-columns:1fr 1fr}.template-switch{grid-template-columns:1fr}.template-switch label{grid-column:auto}.grid-table{min-width:900px}}@media(max-width:600px){.filter-grid{grid-template-columns:1fr}.check-grid{grid-template-columns:1fr}.company-checks{grid-template-columns:1fr}.category-cards{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.toolbar .btn,.toolbar .search{min-height:44px}.template-switch .btn{width:100%}}
/* V0.7 - vận đơn đa phương thức */
.provider-card.selected{outline:2px solid rgba(210,54,54,.45);background:#fff9f5}.ship-connect-panel{margin-top:12px}.connection-status{padding:11px 12px;border:1px solid #e5b7aa;border-radius:10px;background:#fff7f2;font-weight:800;color:#9c4d3d}.connection-status.ok{background:#effcf6;color:#167249;border-color:#a9dfc6}.switch-line{min-height:42px;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #ead9d1;border-radius:10px;background:#fff}.file-btn{display:inline-flex;align-items:center;cursor:pointer}.field.full{grid-column:1/-1}

/* ===== V0.8 LOGIN ONE-SCREEN RESPONSIVE ===== */
.exact-login{
  height:100vh; min-height:0; overflow:hidden;
  padding:10px 18px 8px;
  display:flex; flex-direction:column; justify-content:center;
}
.exact-shell{
  width:min(1120px,100%); height:clamp(460px,58vh,610px); flex:0 0 auto;
  border-radius:20px;
}
.exact-hero,.exact-panel{min-height:0;height:100%}
.exact-hero img{object-fit:cover;object-position:center 48%}
.exact-panel{padding:22px 36px 18px;justify-content:center}
.exact-panel h1{font-size:clamp(25px,2.15vw,32px);line-height:1.08}
.exact-panel .welcome{font-size:13px;line-height:1.3;margin:10px 0 0}
.exact-spark{margin:10px 0 14px}
.exact-field{height:46px;margin-bottom:10px}
.exact-field>svg{width:21px;height:21px;margin:0 12px 0 14px}
.exact-field input{font-size:13px}
.exact-tools{font-size:12px;margin:0 0 10px}
.remember input{width:15px;height:15px}
.exact-login-btn{height:48px;font-size:16px}
.exact-login-btn b{font-size:22px}
.exact-or{margin:12px 0 10px}
.exact-social{gap:10px}
.exact-social button{height:42px;font-size:12px}
.exact-signup{margin-top:11px;font-size:13px}
.exact-company{width:min(1120px,100%);margin:10px auto 0;padding:0 8px;flex:0 0 auto}
.exact-company h2{font-size:19px;margin:0 0 7px}
.exact-contact-grid{grid-template-columns:1.1fr 1fr;gap:5px 26px;font-size:11px}
.exact-contact-grid svg{width:15px;height:15px}
.exact-benefits{width:min(1120px,100%);margin:8px auto 6px;gap:8px;flex:0 0 auto}
.exact-benefits>div{min-height:54px;border-radius:11px;padding:6px 9px;gap:7px}
.benefit-icon{width:27px;height:27px}.benefit-icon svg{width:25px;height:25px}
.exact-benefits b{font-size:12px}.exact-benefits small{font-size:9px;line-height:1.2;margin-top:1px}
.exact-copyright{width:min(1120px,100%);margin:2px auto 5px;font-size:9px;flex:0 0 auto}
.exact-bottom{width:min(1120px,100%);border-radius:12px;flex:0 0 auto}
.exact-bottom>div{min-height:70px;padding:7px 12px;grid-template-columns:52px 1fr}
.big-icon{width:43px;height:43px}.big-icon svg{width:25px;height:25px}
.exact-bottom b{font-size:10px}.exact-bottom p{font-size:9px;line-height:1.15;margin:3px 0 5px}
.exact-bottom button{font-size:9px;padding:4px 9px;border-radius:6px}

@media (max-height:800px) and (min-width:901px){
  .exact-login{padding-top:6px;padding-bottom:5px}
  .exact-shell{height:440px}
  .exact-panel{padding:14px 30px 12px}
  .exact-panel h1{font-size:25px}.exact-panel .welcome{font-size:11px;margin-top:7px}
  .exact-spark{margin:7px 0 9px}.exact-spark span{width:28px}
  .exact-field{height:40px;margin-bottom:7px}.exact-field input{font-size:12px}
  .exact-tools{font-size:11px;margin-bottom:7px}.exact-login-btn{height:42px;font-size:14px}
  .exact-or{margin:8px 0 7px}.exact-social button{height:36px}.exact-signup{margin-top:7px;font-size:12px}
  .exact-company{margin-top:6px}.exact-company h2{font-size:16px;margin-bottom:4px}
  .exact-contact-grid{font-size:9px;gap:3px 20px}.exact-contact-grid svg{width:12px;height:12px}
  .exact-benefits{margin:5px auto 4px}.exact-benefits>div{min-height:46px;padding:4px 7px}
  .benefit-icon{width:22px;height:22px}.benefit-icon svg{width:20px;height:20px}.exact-benefits b{font-size:10px}.exact-benefits small{font-size:8px}
  .exact-copyright{font-size:8px;margin:1px auto 3px}
  .exact-bottom>div{min-height:58px;padding:5px 10px;grid-template-columns:43px 1fr}.big-icon{width:36px;height:36px}.big-icon svg{width:21px;height:21px}
  .exact-bottom b{font-size:9px}.exact-bottom p{font-size:8px;margin:2px 0 3px}.exact-bottom button{font-size:8px;padding:3px 7px}
}

@media(max-width:900px){
  .exact-login{height:100vh;min-height:0;overflow:hidden;padding:5px 7px;justify-content:center}
  .exact-shell{display:block;width:min(500px,100%);height:auto;max-height:none;border:0;border-radius:0;box-shadow:none;background:transparent}
  .exact-hero{display:none}
  .exact-panel{height:auto;min-height:0;padding:9px 12px 10px;border-radius:18px;background:#fff9f2;border:1px solid #efddcc}
  .mobile-brand-exact{display:block;width:min(180px,56vw);height:auto;margin:0 auto 5px}
  .exact-panel h1{display:none}.exact-panel .welcome{font-size:11px;line-height:1.2;margin-top:2px}
  .exact-spark{margin:5px 0 7px}.exact-spark span{width:24px}.exact-field{height:42px;margin-bottom:7px}
  .exact-field input{font-size:12px}.exact-tools{font-size:10px;margin:0 0 6px}.exact-login-btn{height:42px;font-size:14px}
  .exact-or{margin:7px 0 6px;font-size:10px}.exact-social{grid-template-columns:1fr 1fr;gap:7px}.exact-social button{height:38px;flex-direction:row;font-size:10px}
  .exact-signup{font-size:11px;margin-top:6px}
  .exact-company{width:min(500px,100%);margin-top:5px;border:1px solid #eed9c8;border-radius:10px;padding:6px 8px;background:rgba(255,255,255,.45)}
  .exact-company h2{display:none}.exact-contact-grid{grid-template-columns:1fr 1fr;gap:3px 8px;font-size:8px;line-height:1.15}.exact-contact-grid svg{width:10px;height:10px}
  .exact-benefits,.exact-copyright,.exact-bottom{display:none}
}
@media(max-width:520px){
  .mobile-brand-exact{width:min(150px,48vw)}
  .exact-panel{padding:7px 9px 8px}.exact-panel .welcome{font-size:10px}.exact-spark{margin:4px 0 6px}
  .exact-field{height:40px}.exact-tools{font-size:9px}.exact-login-btn{height:40px}
  .exact-social button{height:36px}.exact-signup{font-size:10px}
  .exact-contact-grid{grid-template-columns:1fr;font-size:8px;gap:2px}
}
@media(max-width:430px) and (max-height:700px){
  .mobile-brand-exact{width:118px;margin-bottom:2px}.exact-panel .welcome{font-size:9px}.exact-spark{margin:2px 0 4px}
  .exact-field{height:36px;margin-bottom:5px}.exact-tools{margin-bottom:4px}.exact-login-btn{height:36px;font-size:12px}
  .exact-or{margin:5px 0 4px}.exact-social button{height:32px}.exact-signup{margin-top:4px}
  .exact-company{padding:4px 6px;margin-top:3px}.exact-contact-grid{font-size:7px}
}

/* ===== V0.8.1 UX FIXES ===== */
.print-categories.count-1{grid-template-columns:minmax(280px,520px);justify-content:center}
.print-categories.count-2{grid-template-columns:repeat(2,minmax(260px,1fr));max-width:980px;margin-left:auto;margin-right:auto}
.print-cat{transition:transform .14s ease,box-shadow .14s ease,background .14s ease;text-align:center}
@media(hover:hover) and (pointer:fine){.print-cat:hover{transform:translateY(-2px)}}
.reprint-qty{width:84px;min-height:36px;border:1px solid #efaa7d;border-radius:8px;padding:6px 8px;text-align:center;background:#fff}
.settings-savebar{position:sticky;bottom:10px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1.5px solid #ef5350;border-radius:14px;background:#fff7ee;box-shadow:0 8px 24px rgba(140,75,25,.13)}
.settings-savebar>div{display:grid;gap:3px}.settings-savebar small{color:#666}.settings-savebtn{min-width:230px;font-size:14px}
.printer-tools{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.printer-autoreconnect{margin-left:auto}
.discovered-list{display:grid;gap:9px;margin-top:12px}.printer-found{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #efd0bc;border-radius:12px;padding:11px 12px;background:#fffaf6}.printer-found>div{display:grid;gap:3px;min-width:0}.printer-found small{color:#666;overflow-wrap:anywhere}.printer-found .btn:disabled{opacity:.65;cursor:not-allowed}
.printer-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.printer-actions select{min-height:38px;border:1px solid #efaa7d;border-radius:9px;background:#fff;padding:7px 9px}
@media(max-width:900px){.print-categories.count-2{grid-template-columns:1fr}.settings-savebar{bottom:6px}.printer-found,.printer{align-items:flex-start;flex-direction:column}.printer-actions{width:100%;justify-content:flex-start}.printer-actions select,.printer-actions .btn{min-height:44px}.printer-found .btn{width:100%}}
@media(max-width:600px){.settings-savebar{flex-direction:column;align-items:stretch}.settings-savebtn{width:100%;min-width:0}.print-categories.count-1,.print-categories.count-2{grid-template-columns:1fr}.reprint-qty{width:72px}}

/* ===== V0.9.1 DESKTOP LOGIN BALANCE FIX ===== */
@media (min-width: 901px){
  .exact-login{
    height:100vh;
    min-height:680px;
    overflow:hidden;
    padding:14px 28px 12px;
    justify-content:flex-start;
  }
  .exact-shell{
    width:min(1360px,calc(100vw - 56px));
    height:clamp(500px,59vh,575px);
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(330px,38%) minmax(0,62%);
    border-radius:22px;
    overflow:hidden;
  }
  .exact-hero{
    height:100%;
    background:linear-gradient(180deg,#fffaf6 0%,#fff0df 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
  }
  .exact-hero img{
    width:auto;
    height:100%;
    max-width:100%;
    object-fit:contain;
    object-position:center center;
    display:block;
  }
  .exact-panel{
    height:100%;
    padding:22px clamp(52px,6vw,98px) 18px;
    justify-content:center;
  }
  .exact-panel h1{font-size:clamp(29px,2.25vw,38px);line-height:1.05;margin-bottom:4px}
  .exact-panel .welcome{font-size:clamp(13px,1.05vw,15px);line-height:1.35;margin-top:10px}
  .exact-spark{margin:12px 0 16px}
  .exact-field{height:50px;margin-bottom:11px}
  .exact-field input{font-size:14px}
  .exact-tools{font-size:12px;margin-bottom:11px}
  .exact-login-btn{height:50px;font-size:16px}
  .exact-or{margin:13px 0 10px}
  .exact-social button{height:44px;font-size:12px}
  .exact-signup{font-size:13px;margin-top:11px}

  .exact-company{
    width:min(1360px,calc(100vw - 56px));
    margin:9px auto 0;
    padding:0 12px;
  }
  .exact-company h2{font-size:clamp(18px,1.55vw,23px);margin-bottom:7px}
  .exact-contact-grid{font-size:clamp(10px,.82vw,12px);gap:5px 32px}
  .exact-contact-grid svg{width:15px;height:15px}

  .exact-benefits{
    width:min(1360px,calc(100vw - 56px));
    margin:8px auto 5px;
    gap:10px;
  }
  .exact-benefits>div{min-height:58px;padding:7px 12px;border-radius:12px}
  .benefit-icon{width:31px;height:31px}.benefit-icon svg{width:28px;height:28px}
  .exact-benefits b{font-size:13px}.exact-benefits small{font-size:9px;line-height:1.25}
  .exact-copyright{width:min(1360px,calc(100vw - 56px));font-size:9px;margin:2px auto 4px}
  .exact-bottom{
    width:min(1360px,calc(100vw - 56px));
    margin:0 auto;
    border-radius:12px;
  }
  .exact-bottom>div{min-height:68px;padding:7px 14px;grid-template-columns:50px 1fr}
  .big-icon{width:42px;height:42px}.big-icon svg{width:24px;height:24px}
  .exact-bottom b{font-size:10px}.exact-bottom p{font-size:8.5px;line-height:1.15;margin:3px 0 4px}.exact-bottom button{font-size:8.5px;padding:4px 8px}
}

@media (min-width:901px) and (max-height:820px){
  .exact-login{padding-top:8px;padding-bottom:7px;min-height:620px}
  .exact-shell{height:455px}
  .exact-panel{padding-top:12px;padding-bottom:10px}
  .exact-panel h1{font-size:27px}.exact-panel .welcome{font-size:11px;margin-top:6px}
  .exact-spark{margin:6px 0 9px}.exact-field{height:40px;margin-bottom:7px}.exact-field input{font-size:12px}
  .exact-tools{font-size:10px;margin-bottom:7px}.exact-login-btn{height:40px;font-size:14px}
  .exact-or{margin:7px 0 6px}.exact-social button{height:35px}.exact-signup{font-size:11px;margin-top:6px}
  .exact-company{margin-top:5px}.exact-company h2{font-size:16px;margin-bottom:3px}.exact-contact-grid{font-size:8.5px;gap:2px 20px}.exact-contact-grid svg{width:11px;height:11px}
  .exact-benefits{margin:4px auto 3px}.exact-benefits>div{min-height:43px;padding:4px 8px}.benefit-icon{width:22px;height:22px}.benefit-icon svg{width:20px;height:20px}.exact-benefits b{font-size:10px}.exact-benefits small{font-size:7.5px}
  .exact-copyright{font-size:7.5px;margin:1px auto 3px}.exact-bottom>div{min-height:53px;padding:4px 10px;grid-template-columns:39px 1fr}.big-icon{width:33px;height:33px}.big-icon svg{width:19px;height:19px}.exact-bottom b{font-size:8.5px}.exact-bottom p{font-size:7.3px;margin:2px 0 3px}.exact-bottom button{font-size:7.5px;padding:3px 6px}
}

/* ===== V1.0.1 LOGIN DESIGN - MATCH APPROVED MOCKUP ===== */
@media (min-width:901px){
  .exact-login{
    height:100vh!important;min-height:720px!important;overflow:hidden!important;
    padding:18px 24px 14px!important;justify-content:flex-start!important;
    background:radial-gradient(circle at 18% 68%,rgba(255,255,255,.92),transparent 31%),linear-gradient(135deg,#fffaf5 0%,#ffeddc 52%,#fff9f4 100%)!important;
  }
  .exact-shell{
    width:min(1180px,calc(100vw - 48px))!important;
    height:clamp(540px,61vh,620px)!important;
    margin:0 auto!important;
    display:grid!important;grid-template-columns:1fr 1.04fr!important;
    border:1.5px solid #ef944f!important;border-radius:24px!important;
    background:#fff!important;overflow:hidden!important;
    box-shadow:0 12px 28px rgba(167,99,42,.16)!important;
  }
  .exact-hero{height:100%!important;display:block!important;overflow:hidden!important;background:#fff5eb!important}
  .exact-hero>img{width:100%!important;height:100%!important;max-width:none!important;object-fit:fill!important;object-position:center!important;display:block!important}
  .exact-panel{height:100%!important;padding:36px 52px 28px!important;justify-content:center!important;background:#fff!important}
  .exact-panel h1{font-size:34px!important;line-height:1.08!important;margin:0 0 14px!important;letter-spacing:.2px!important}
  .exact-panel .welcome{font-size:14px!important;line-height:1.5!important;margin:0!important}
  .exact-spark{margin:16px 0 22px!important}.exact-spark span{width:54px!important}
  .exact-field{height:55px!important;margin-bottom:14px!important;border-radius:9px!important}
  .exact-field>svg{width:22px!important;height:22px!important;margin:0 14px!important}
  .exact-field input{font-size:14px!important}.exact-eye{width:48px!important;height:100%!important}
  .exact-tools{font-size:13px!important;margin:4px 0 18px!important}.remember input{width:17px!important;height:17px!important}
  .exact-login-btn{height:56px!important;font-size:17px!important;border-radius:10px!important}.exact-login-btn b{font-size:25px!important}
  .exact-or{margin:20px 0 16px!important;font-size:12px!important}.exact-social{gap:14px!important}.exact-social button{height:47px!important;font-size:12px!important}
  .exact-signup{font-size:14px!important;margin-top:20px!important}
  .exact-company{width:min(1180px,calc(100vw - 48px))!important;margin:12px auto 0!important;padding:0 26px!important}
  .exact-company h2{font-size:23px!important;margin:0 0 10px!important;line-height:1.15!important}
  .exact-contact-grid{grid-template-columns:1fr 1fr!important;gap:8px 36px!important;font-size:12px!important;line-height:1.25!important}
  .exact-contact-grid svg{width:18px!important;height:18px!important;flex:0 0 18px!important}
  .exact-benefits{width:min(1180px,calc(100vw - 48px))!important;margin:13px auto 8px!important;gap:12px!important}
  .exact-benefits>div{min-height:72px!important;padding:10px 13px!important;border-radius:14px!important;gap:10px!important;background:rgba(255,255,255,.55)!important}
  .benefit-icon{width:38px!important;height:38px!important}.benefit-icon svg{width:34px!important;height:34px!important}
  .exact-benefits b{font-size:13px!important}.exact-benefits small{font-size:10px!important;line-height:1.28!important;margin-top:2px!important}
  .exact-copyright{width:min(1180px,calc(100vw - 48px))!important;font-size:9px!important;margin:0 auto 8px!important;text-align:center!important}
  .exact-bottom{width:min(1180px,calc(100vw - 48px))!important;margin:0 auto!important;border-radius:15px!important;box-shadow:0 5px 18px rgba(140,85,38,.08)!important}
  .exact-bottom>div{min-height:92px!important;padding:12px 18px!important;grid-template-columns:64px 1fr!important;gap:12px!important}
  .big-icon{width:54px!important;height:54px!important}.big-icon svg{width:31px!important;height:31px!important}
  .exact-bottom b{font-size:12px!important}.exact-bottom p{font-size:10.5px!important;line-height:1.28!important;margin:4px 0 7px!important}
  .exact-bottom button{font-size:10px!important;padding:5px 12px!important;border-radius:7px!important}
}
@media (min-width:901px) and (max-height:880px){
  .exact-login{min-height:650px!important;padding-top:9px!important;padding-bottom:7px!important}
  .exact-shell{height:500px!important}
  .exact-panel{padding:24px 44px 18px!important}.exact-panel h1{font-size:29px!important;margin-bottom:7px!important}.exact-panel .welcome{font-size:12px!important;line-height:1.35!important}
  .exact-spark{margin:8px 0 12px!important}.exact-field{height:45px!important;margin-bottom:9px!important}.exact-tools{font-size:11px!important;margin-bottom:9px!important}.exact-login-btn{height:45px!important;font-size:15px!important}
  .exact-or{margin:10px 0 8px!important}.exact-social button{height:38px!important}.exact-signup{font-size:12px!important;margin-top:8px!important}
  .exact-company{margin-top:7px!important}.exact-company h2{font-size:19px!important;margin-bottom:5px!important}.exact-contact-grid{font-size:10px!important;gap:4px 24px!important}.exact-contact-grid svg{width:14px!important;height:14px!important;flex-basis:14px!important}
  .exact-benefits{margin:7px auto 5px!important}.exact-benefits>div{min-height:54px!important;padding:6px 10px!important}.benefit-icon{width:28px!important;height:28px!important}.benefit-icon svg{width:25px!important;height:25px!important}.exact-benefits b{font-size:11px!important}.exact-benefits small{font-size:8.5px!important}
  .exact-copyright{font-size:8px!important;margin-bottom:4px!important}.exact-bottom>div{min-height:68px!important;padding:7px 13px!important;grid-template-columns:46px 1fr!important}.big-icon{width:40px!important;height:40px!important}.big-icon svg{width:24px!important;height:24px!important}.exact-bottom b{font-size:10px!important}.exact-bottom p{font-size:8.5px!important;margin:2px 0 4px!important}.exact-bottom button{font-size:8.5px!important;padding:4px 8px!important}
}

/* ===== V1.0.2 FINAL UI / RESPONSIVE / FONT STANDARD ===== */
html,body,button,input,select,textarea{font-family:"Segoe UI",Arial,Helvetica,sans-serif!important}
body{font-weight:400;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-size:inherit}

/* Login desktop: preserve image aspect ratio, no stretch at browser zoom 100% */
@media (min-width:901px){
  .exact-login{
    height:100vh!important;min-height:720px!important;overflow:hidden!important;
    padding:12px 20px 10px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
  }
  .exact-shell{
    width:min(1000px,calc(100vw - 40px))!important;height:550px!important;min-height:0!important;
    margin:0 auto!important;display:grid!important;grid-template-columns:340px minmax(0,1fr)!important;
    border:1.5px solid #ef944f!important;border-radius:24px!important;overflow:hidden!important;background:#fff!important;
    box-shadow:0 12px 28px rgba(167,99,42,.13)!important;
  }
  .exact-hero{height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#fff5eb!important}
  .exact-hero>img{width:auto!important;height:100%!important;max-width:100%!important;object-fit:contain!important;object-position:center!important;display:block!important}
  .exact-panel{height:100%!important;padding:25px 46px 20px!important;justify-content:center!important;background:#fff!important;min-width:0!important}
  .exact-panel h1{font-family:"Segoe UI",Arial,sans-serif!important;font-size:34px!important;font-weight:800!important;line-height:1.08!important;letter-spacing:0!important;margin:0 0 10px!important}
  .exact-panel .welcome{font-size:14px!important;line-height:1.4!important;margin:0!important}
  .exact-spark{margin:12px 0 16px!important}.exact-spark span{width:46px!important}
  .exact-field{height:50px!important;margin-bottom:11px!important;border-radius:10px!important}
  .exact-field input{font-size:14px!important;font-family:"Segoe UI",Arial,sans-serif!important}.exact-field>svg{width:20px!important;height:20px!important;margin:0 13px!important}
  .exact-tools{font-size:12px!important;margin:2px 0 11px!important}.remember input{width:16px!important;height:16px!important}
  .exact-login-btn{height:50px!important;font-size:16px!important;font-family:"Segoe UI",Arial,sans-serif!important;border-radius:10px!important}.exact-login-btn b{font-size:23px!important}
  .exact-or{margin:12px 0 10px!important;font-size:12px!important}.exact-social{gap:12px!important}.exact-social button{height:42px!important;font-size:12px!important}
  .exact-signup{font-size:13px!important;margin-top:11px!important}
  .exact-company{width:min(1000px,calc(100vw - 40px))!important;margin:8px auto 0!important;padding:0 16px!important}
  .exact-company h2{font-family:"Segoe UI",Arial,sans-serif!important;font-size:20px!important;font-weight:700!important;margin:0 0 5px!important;line-height:1.15!important}
  .exact-contact-grid{grid-template-columns:1fr 1fr!important;gap:4px 26px!important;font-size:10px!important;line-height:1.25!important}.exact-contact-grid svg{width:14px!important;height:14px!important;flex:0 0 14px!important}
  .exact-benefits{width:min(1000px,calc(100vw - 40px))!important;margin:7px auto 5px!important;gap:9px!important}
  .exact-benefits>div{min-height:52px!important;padding:6px 10px!important;border-radius:12px!important;gap:8px!important;background:rgba(255,255,255,.55)!important}
  .benefit-icon{width:28px!important;height:28px!important}.benefit-icon svg{width:25px!important;height:25px!important}.exact-benefits b{font-size:11px!important}.exact-benefits small{font-size:8.5px!important;line-height:1.22!important;margin-top:1px!important}
  .exact-copyright{width:min(1000px,calc(100vw - 40px))!important;font-size:8px!important;margin:0 auto 4px!important;text-align:center!important}
  .exact-bottom{width:min(1000px,calc(100vw - 40px))!important;margin:0 auto!important;border-radius:12px!important;box-shadow:0 4px 14px rgba(140,85,38,.06)!important}
  .exact-bottom>div{min-height:63px!important;padding:6px 12px!important;grid-template-columns:44px 1fr!important;gap:8px!important}.big-icon{width:36px!important;height:36px!important}.big-icon svg{width:21px!important;height:21px!important}
  .exact-bottom b{font-size:9px!important}.exact-bottom p{font-size:7.8px!important;line-height:1.2!important;margin:2px 0 3px!important}.exact-bottom button{font-size:8px!important;padding:3px 7px!important;border-radius:6px!important}
}
@media (min-width:901px) and (max-height:800px){
  .exact-login{min-height:630px!important;padding-top:6px!important}
  .exact-shell{height:455px!important;width:min(900px,calc(100vw - 40px))!important;grid-template-columns:285px minmax(0,1fr)!important}
  .exact-panel{padding:15px 35px 12px!important}.exact-panel h1{font-size:27px!important;margin-bottom:5px!important}.exact-panel .welcome{font-size:11px!important;line-height:1.3!important}.exact-spark{margin:6px 0 8px!important}
  .exact-field{height:39px!important;margin-bottom:7px!important}.exact-tools{font-size:10px!important;margin-bottom:7px!important}.exact-login-btn{height:40px!important;font-size:14px!important}.exact-or{margin:7px 0 6px!important}.exact-social button{height:34px!important}.exact-signup{font-size:11px!important;margin-top:6px!important}
  .exact-company,.exact-benefits,.exact-copyright,.exact-bottom{width:min(900px,calc(100vw - 40px))!important}.exact-company{margin-top:5px!important}.exact-company h2{font-size:16px!important}.exact-contact-grid{font-size:8.5px!important;gap:2px 18px!important}
  .exact-benefits{margin:4px auto 3px!important}.exact-benefits>div{min-height:43px!important;padding:4px 7px!important}.benefit-icon{width:22px!important;height:22px!important}.benefit-icon svg{width:20px!important;height:20px!important}.exact-benefits b{font-size:9.5px!important}.exact-benefits small{font-size:7.2px!important}
  .exact-bottom>div{min-height:50px!important;padding:4px 9px!important;grid-template-columns:35px 1fr!important}.big-icon{width:30px!important;height:30px!important}.big-icon svg{width:18px!important;height:18px!important}.exact-bottom b{font-size:8px!important}.exact-bottom p{font-size:6.8px!important}.exact-bottom button{font-size:7px!important;padding:2px 5px!important}
}

/* Mobile/tablet login keeps natural proportions */
@media(max-width:900px){
  .exact-login{font-family:"Segoe UI",Arial,sans-serif!important}
  .exact-panel,.exact-company{font-family:"Segoe UI",Arial,sans-serif!important}
}

/* IN ẤN category cards: desktop 4 across, tablet/mobile 2x2 */
.print-categories{display:grid!important;gap:12px!important;align-items:stretch!important;margin:14px 0 18px!important}
.print-categories.count-1{grid-template-columns:minmax(280px,520px)!important;justify-content:center!important}
.print-categories.count-2{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:980px!important;margin-left:auto!important;margin-right:auto!important}
.print-categories.count-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.print-categories.count-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.print-cat{min-width:0!important;min-height:110px!important;padding:12px 10px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;text-align:center!important;border:1.6px solid #ef5350!important;border-radius:15px!important;background:#c9f3df!important;color:#202020!important}
.print-cat.active{background:#bcefd6!important;box-shadow:0 0 0 3px rgba(240,126,50,.18),0 5px 14px rgba(115,65,35,.08)!important}
.print-cat .cat-icon{width:42px!important;height:42px!important;display:grid!important;place-items:center!important;font-size:0!important;line-height:1!important;flex:0 0 auto!important}.print-cat .cat-icon svg{width:40px!important;height:40px!important;display:block!important}
.print-cat b{font-family:"Segoe UI",Arial,sans-serif!important;font-size:14px!important;font-weight:700!important;line-height:1.2!important;white-space:normal!important}.print-cat small{font-size:10px!important;line-height:1.2!important;color:#5d5d5d!important;white-space:normal!important}
@media(max-width:1100px){
  .print-categories.count-2,.print-categories.count-3,.print-categories.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none!important}
  .print-cat{min-height:104px!important;display:flex!important;text-align:center!important}.print-cat b,.print-cat small{justify-self:auto!important}
}
@media(max-width:520px){
  .print-categories,.print-categories.count-1,.print-categories.count-2,.print-categories.count-3,.print-categories.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .print-categories.count-1{grid-template-columns:1fr!important}
  .print-cat{min-height:96px!important;padding:8px 6px!important;border-radius:12px!important}.print-cat .cat-icon{width:34px!important;height:34px!important}.print-cat .cat-icon svg{width:32px!important;height:32px!important}.print-cat b{font-size:11px!important}.print-cat small{font-size:8px!important;line-height:1.15!important}
}

/* Carrier brand marks */
.provider-logo{width:64px!important;height:48px!important;padding:4px!important;border-radius:10px!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;color:inherit!important;font-size:0!important}
.provider-logo img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.carrier-generic{font-size:24px!important;font-weight:800!important;color:#e65d13!important;line-height:1!important}
.provider-card{grid-template-columns:72px minmax(0,1fr) auto!important;min-width:0!important}.provider-card>div:nth-child(2){min-width:0!important}.provider-card b{font-family:"Segoe UI",Arial,sans-serif!important}.provider-card small{overflow-wrap:anywhere!important}
@media(max-width:700px){.provider-list{grid-template-columns:1fr!important}.provider-card{grid-template-columns:66px minmax(0,1fr) auto!important}.provider-logo{width:58px!important;height:44px!important}}
@media(max-width:440px){.provider-card{grid-template-columns:58px minmax(0,1fr)!important}.provider-card .btn{grid-column:1/-1!important;width:100%!important}.provider-logo{width:52px!important;height:40px!important}}

/* ===== V1.0.2 FINAL RESPONSIVE OVERRIDES ===== */
/* Desktop/laptop with a mouse: keep all enabled print groups on one row. */
@media (min-width:901px) and (hover:hover) and (pointer:fine){
  .print-categories.count-4{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:none!important}
  .print-categories.count-3{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:none!important}
  .print-categories.count-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* Touch-first tablet/iPad and compact widths use a stable 2 x 2 layout. */
@media (max-width:1100px) and (hover:none), (max-width:900px){
  .print-categories.count-2,.print-categories.count-3,.print-categories.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none!important}
}
/* Very narrow phones still keep two useful tap targets without horizontal overflow. */
@media (max-width:360px){
  .print-categories.count-2,.print-categories.count-3,.print-categories.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .print-cat{min-width:0!important;padding:7px 4px!important}
  .print-cat b{font-size:10px!important}.print-cat small{font-size:7.5px!important}
}
/* Fluid desktop login: no transform scaling; preserve hero artwork ratio. */
@media (min-width:901px) and (min-height:801px){
  .exact-shell{width:min(1120px,calc(100vw - 48px))!important;height:590px!important;grid-template-columns:370px minmax(0,1fr)!important}
  .exact-hero>img{height:100%!important;width:auto!important;max-width:100%!important;object-fit:contain!important}
  .exact-company,.exact-benefits,.exact-copyright,.exact-bottom{width:min(1120px,calc(100vw - 48px))!important}
}
/* App shell itself stays fluid at every resolution. */
.layout{min-width:0}.layout>main{min-width:0}.card,.print-grid>*{min-width:0}
img,svg{max-width:100%}


/* ===== V1.0.3 FINAL AUDITED UI OVERRIDES ===== */
html,body{font-family:"Segoe UI",Arial,sans-serif!important;-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,input,select,textarea{font:inherit}

/* Login: fluid components, never transform/scale the whole page */
.exact-login{min-height:100vh!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;padding:clamp(12px,2vw,28px)!important;display:block!important;background:linear-gradient(135deg,#fffaf6 0%,#fff0df 52%,#fffaf7 100%)!important}
.exact-shell{width:min(1240px,94vw)!important;max-width:none!important;height:auto!important;min-height:600px!important;margin:0 auto!important;display:grid!important;grid-template-columns:minmax(390px,46%) minmax(0,54%)!important;border:1.5px solid #ef944f!important;border-radius:24px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 12px 30px rgba(140,75,25,.10)!important}
.exact-hero{min-height:600px!important;height:auto!important;overflow:hidden!important;background:#fff6ed!important;display:flex!important;align-items:stretch!important;justify-content:center!important}
.exact-hero>img{width:100%!important;height:100%!important;min-height:600px!important;object-fit:cover!important;object-position:center!important;display:block!important}
.exact-panel{min-height:600px!important;height:auto!important;padding:clamp(34px,4vw,64px) clamp(40px,5vw,76px)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;background:#fff!important;min-width:0!important}
.exact-panel h1{font-family:"Segoe UI",Arial,sans-serif!important;font-size:clamp(32px,2.45vw,44px)!important;font-weight:800!important;line-height:1.05!important;letter-spacing:0!important;margin:0 0 12px!important}
.exact-panel .welcome{font-size:clamp(14px,1.05vw,16px)!important;line-height:1.45!important;margin:0!important}
.exact-spark{margin:14px 0 22px!important}
.exact-field{height:54px!important;margin-bottom:12px!important;border-radius:10px!important}
.exact-field input{font-family:"Segoe UI",Arial,sans-serif!important;font-size:15px!important;min-width:0!important}
.exact-tools{font-size:13px!important;margin:2px 0 14px!important}
.exact-login-btn{height:54px!important;font-family:"Segoe UI",Arial,sans-serif!important;font-size:17px!important;border-radius:10px!important}
.exact-or{margin:16px 0 12px!important;font-size:13px!important}
.exact-social{gap:12px!important}.exact-social button{height:44px!important;font-size:13px!important}
.exact-signup{font-size:14px!important;margin-top:13px!important}
.exact-company,.exact-benefits,.exact-copyright,.exact-bottom{width:min(1240px,94vw)!important;max-width:none!important}
.exact-company{margin:12px auto 0!important;padding:0 10px!important}.exact-company h2{font-size:clamp(20px,1.6vw,25px)!important;margin:0 0 10px!important}.exact-contact-grid{font-size:clamp(11px,.9vw,14px)!important;gap:8px 34px!important}
.exact-benefits{margin:10px auto 8px!important;gap:12px!important}.exact-benefits>div{min-height:68px!important;padding:10px 12px!important}.exact-benefits b{font-size:14px!important}.exact-benefits small{font-size:10px!important}
.exact-copyright{font-size:10px!important;margin:3px auto 7px!important}
.exact-bottom{margin:0 auto 18px!important}.exact-bottom>div{min-height:92px!important;padding:12px 16px!important;grid-template-columns:58px 1fr!important}.big-icon{width:48px!important;height:48px!important}.big-icon svg{width:28px!important;height:28px!important}.exact-bottom b{font-size:12px!important}.exact-bottom p{font-size:10px!important;line-height:1.3!important;margin:4px 0 7px!important}.exact-bottom button{font-size:10px!important;padding:5px 10px!important}

@media (min-width:901px) and (max-height:850px){
  .exact-login{padding:10px 18px!important}
  .exact-shell{min-height:500px!important;grid-template-columns:minmax(330px,43%) minmax(0,57%)!important}
  .exact-hero,.exact-panel{min-height:500px!important}.exact-hero>img{min-height:500px!important}
  .exact-panel{padding:20px clamp(34px,4vw,58px)!important}.exact-panel h1{font-size:30px!important}.exact-panel .welcome{font-size:12px!important}.exact-spark{margin:8px 0 11px!important}
  .exact-field{height:43px!important;margin-bottom:8px!important}.exact-field input{font-size:13px!important}.exact-tools{font-size:11px!important;margin-bottom:8px!important}.exact-login-btn{height:44px!important;font-size:15px!important}.exact-or{margin:9px 0 7px!important}.exact-social button{height:36px!important}.exact-signup{font-size:12px!important;margin-top:7px!important}
  .exact-company{margin-top:6px!important}.exact-company h2{font-size:17px!important;margin-bottom:4px!important}.exact-contact-grid{font-size:9px!important;gap:3px 20px!important}.exact-benefits{margin:5px auto 4px!important}.exact-benefits>div{min-height:48px!important;padding:5px 8px!important}.exact-benefits b{font-size:10px!important}.exact-benefits small{font-size:8px!important}.exact-copyright{font-size:8px!important;margin:1px auto 4px!important}.exact-bottom>div{min-height:58px!important;padding:6px 10px!important;grid-template-columns:40px 1fr!important}.big-icon{width:34px!important;height:34px!important}.big-icon svg{width:20px!important;height:20px!important}.exact-bottom b{font-size:9px!important}.exact-bottom p{font-size:7.5px!important;margin:2px 0 3px!important}.exact-bottom button{font-size:8px!important;padding:3px 7px!important}
}

@media (max-width:900px){
  .exact-login{padding:10px!important;display:block!important;min-height:100vh!important;overflow-y:auto!important}
  .exact-shell{width:min(620px,100%)!important;display:block!important;min-height:0!important;border-radius:18px!important}
  .exact-hero{display:none!important}
  .exact-panel{min-height:0!important;padding:18px 16px!important;border-radius:18px!important}
  .mobile-brand-exact{display:block!important;width:min(220px,58vw)!important;height:auto!important;margin:0 auto 8px!important}
  .exact-panel h1{display:none!important}.exact-panel .welcome{font-size:13px!important}.exact-field{height:48px!important}.exact-field input{font-size:16px!important}.exact-login-btn{height:48px!important;font-size:16px!important}.exact-social button{height:44px!important;font-size:12px!important}
  .exact-company{width:min(620px,100%)!important;margin-top:8px!important;padding:10px 12px!important;border:1px solid #eed9c8!important;border-radius:12px!important;background:#fffaf6!important}.exact-company h2{display:none!important}.exact-contact-grid{grid-template-columns:1fr 1fr!important;font-size:10px!important;gap:5px 10px!important}
  .exact-benefits,.exact-copyright,.exact-bottom{display:none!important}
}
@media (max-width:520px){.exact-contact-grid{grid-template-columns:1fr!important}.exact-panel{padding:14px 12px!important}.mobile-brand-exact{width:min(180px,54vw)!important}}

/* Main application responsiveness */
body{overflow-x:hidden}
.layout{grid-template-columns:220px minmax(0,1fr)!important}
main{min-width:0!important;padding:clamp(12px,1.5vw,20px)!important}
.card{min-width:0!important}
.grid,.form-grid,.check-grid{min-width:0}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.grid-table{min-width:980px}

/* IN ẤN cards */
.print-categories{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:14px 0 18px!important}
.print-categories.count-1{grid-template-columns:minmax(280px,520px)!important;justify-content:center!important}
.print-categories.count-2{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:980px!important;margin-left:auto!important;margin-right:auto!important}
.print-categories.count-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.print-categories.count-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.print-cat{min-width:0!important;min-height:112px!important;padding:12px 10px!important;border:1.5px solid #ef5350!important;border-radius:15px!important;background:#c9f3df!important;box-shadow:none!important;transform:none!important}
.print-cat .cat-icon{width:40px!important;height:40px!important}.print-cat .cat-icon svg{width:38px!important;height:38px!important}.print-cat b{font-size:14px!important;line-height:1.2!important}.print-cat small{font-size:10px!important;line-height:1.2!important}
@media (max-width:1100px){.print-categories,.print-categories.count-2,.print-categories.count-3,.print-categories.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none!important}.shipping-grid{grid-template-columns:1fr!important}.provider-list{grid-template-columns:1fr 1fr!important}}
@media (max-width:760px){header{height:auto!important;min-height:58px!important}.layout{display:block!important}.layout aside{position:fixed!important;left:-250px!important;top:58px!important;width:230px!important;height:calc(100vh - 58px)!important;z-index:30!important;transition:left .2s ease!important}.layout aside.open{left:0!important}#menuBtn{display:inline-flex!important}.provider-list{grid-template-columns:1fr!important}.form-grid,.filter-grid,.check-grid{grid-template-columns:1fr!important}.settings-savebar{position:static!important}.printer,.printer-found{flex-direction:column!important;align-items:stretch!important}}
@media (max-width:520px){.print-categories,.print-categories.count-2,.print-categories.count-3,.print-categories.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.print-cat{min-height:98px!important;padding:8px 6px!important}.print-cat b{font-size:11px!important}.print-cat small{font-size:8px!important}.print-cat .cat-icon,.print-cat .cat-icon svg{width:32px!important;height:32px!important}.toolbar{gap:7px!important}.btn{min-height:42px!important}.section-caption{align-items:flex-start!important;flex-direction:column!important}.provider-card{grid-template-columns:58px minmax(0,1fr)!important}.provider-card>.btn{grid-column:1/-1!important;width:100%!important}.provider-logo{width:52px!important;height:42px!important}}

/* V1.0.4 login reliability */
.login-form{display:contents}
.login-error{min-height:18px;color:#c62828;font-size:13px;font-weight:600;margin:-2px 0 4px}
.exact-field input.field-error{outline:2px solid #d32f2f;outline-offset:-1px;background:#fff8f8}


/* V1.0.5 final stability overrides */
#loginScreen[hidden],#appShell[hidden]{display:none!important}
#loginScreen:not([hidden]){display:block!important}
#appShell:not([hidden]){display:block!important}
html,body{width:100%;min-height:100%;margin:0}
body{font-family:"Segoe UI",Arial,sans-serif!important}
.exact-login,.exact-panel,.exact-panel input,.exact-panel button,.exact-company,.exact-benefits,.exact-bottom{font-family:"Segoe UI",Arial,sans-serif!important}

/* ===== V1.0.6 JEWELRY 2-FACE / RESPONSIVE FORM ===== */
.jewelry-layout{grid-template-columns:minmax(0,1.7fr) minmax(360px,.8fr)}
.jewelry-form-card{container-type:inline-size}
.jewelry-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end}
.jewelry-form-grid .span-2{grid-column:span 2}
.jewelry-face-title{grid-column:1/-1;margin-top:4px;padding:8px 10px;border-left:4px solid #ef7a26;background:#fff5eb;border-radius:8px;font-weight:800;color:#c95714}
.gram-value{min-height:41px;display:flex;align-items:center;padding:10px;border:1px solid #e4b98f;border-radius:10px;background:#fff9f2;font-weight:800;color:#b74f13}
.barcode-switch{min-height:41px;display:flex;align-items:center;gap:9px;padding:7px 10px;border:1px solid #e4b98f;border-radius:10px;background:#fff}
.barcode-switch input{width:20px!important;height:20px!important;flex:0 0 auto}.barcode-switch span{display:grid;gap:2px}.barcode-switch small{color:#777;font-size:10px}
.jewelry-twoface{width:min(100%,760px);aspect-ratio:7.25/1;background:#fff;border:1px solid #c9983d;display:grid;grid-template-columns:1fr 1.16fr;overflow:hidden;font-family:Arial,"Segoe UI",sans-serif;color:#111}
.jface{position:relative;min-width:0;padding:6px 8px;overflow:hidden}.jface-one{border-right:1px dashed #aaa;display:flex;flex-direction:column;gap:2px;justify-content:center}.j-product{font-weight:900;line-height:1;letter-spacing:.1px}.jline{font-size:clamp(8px,1.1vw,14px);font-weight:700;white-space:nowrap;overflow:hidden}.jline em{font-style:normal;color:#b62020;font-weight:800}.jbottom{display:flex;align-items:end;justify-content:space-between;gap:8px;font-weight:900;white-space:nowrap}.jbottom strong{font-size:clamp(10px,1.4vw,18px)}.jorigin{font-size:clamp(7px,.9vw,12px);font-weight:700;white-space:nowrap;overflow:hidden}.jhlv{position:absolute;right:4px;top:4px;font-size:clamp(6px,.75vw,10px);font-weight:900;writing-mode:vertical-rl;transform:rotate(180deg)}
.jface-two{display:grid;grid-template-rows:auto auto minmax(30px,1fr) auto;align-content:center;text-align:center;gap:1px}.j-company{font-size:clamp(9px,1.25vw,17px);font-weight:900;line-height:1.02}.jface-two>small{font-size:clamp(6px,.75vw,10px);font-weight:700}.barcode-real{width:100%;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.barcode-svg{display:block;width:100%;height:38px;shape-rendering:crispEdges}.jmeta{display:grid;text-align:left;line-height:1.05;font-size:clamp(6px,.78vw,10px);font-weight:800;overflow:hidden}.jmeta span{white-space:nowrap;overflow:hidden;text-overflow:clip}.barcode-series-note{margin-top:8px;text-align:center;font-size:11px;color:#666;font-weight:700}
.report-full{min-width:2100px}
@container (max-width:960px){.jewelry-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.jewelry-form-grid .span-2{grid-column:span 2}}
@container (max-width:720px){.jewelry-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jewelry-form-grid .span-2{grid-column:1/-1}}
@container (max-width:440px){.jewelry-form-grid{grid-template-columns:1fr}.jewelry-form-grid .span-2{grid-column:auto}}
@media(max-width:1100px){.jewelry-layout{grid-template-columns:1fr}.jewelry-twoface{max-width:760px}}
@media(max-width:700px){.jewelry-twoface{aspect-ratio:auto;min-height:150px;grid-template-columns:1fr 1.1fr}.jface{padding:5px}.barcode-svg{height:34px}.jline{font-size:9px}.jbottom strong{font-size:11px}.j-company{font-size:10px}}

/* ===== V1.0.7 PREVIEW TRUE-LAYOUT / TEXT-VECTOR PRINT ===== */
.code-standard{font-size:11px;line-height:1.15;color:#195f45;background:#effbf5}
.preview-card{min-width:0}.preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px}.preview-zoom{display:flex;gap:5px;flex-wrap:wrap}.preview-zoom button{border:1px solid #d94b4b;background:#c9f3df;border-radius:8px;min-width:36px;height:32px;padding:0 8px;font:600 11px "Segoe UI",Arial,sans-serif;cursor:pointer}.jewelry-preview-stage{min-height:250px;overflow:auto!important;padding:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#f4f5f6!important}.jewelry-preview-stage #pv{min-width:max-content;display:flex;flex-direction:column;align-items:center;justify-content:center}.label-print-canvas{transition:transform .12s ease;transform-origin:center center}
.jewelry-real-template{width:860px;height:120px;background:#fff;border:1px solid #242424;display:grid;grid-template-columns:330px 80px 450px;overflow:hidden;color:#050505;font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;box-shadow:0 3px 12px #0002}.real-face{position:relative;min-width:0;overflow:hidden;background:#fff}.face-one{padding:5px 15px 5px 7px;display:grid;grid-template-rows:22px repeat(3,16px) 17px 14px;align-content:center}.f-product{font-weight:900;line-height:1;height:22px;overflow:hidden}.f-row{display:grid;grid-template-columns:29px minmax(0,1fr);align-items:center;min-width:0;height:16px;font-weight:700;line-height:1}.f-row span{display:block;min-width:0;overflow:hidden}.f-row em{font-style:normal;color:#bb1e1e;font-weight:800}.f-row.compact{grid-template-columns:23px minmax(0,1fr) 24px minmax(0,.75fr);gap:2px}.f-hlv{position:absolute;right:2px;top:5px;bottom:5px;writing-mode:vertical-rl;transform:rotate(180deg);font-weight:900;line-height:1;overflow:hidden}.label-neck{border-left:1px dashed #777;border-right:1px dashed #777;display:flex;align-items:center;justify-content:center;overflow:hidden}.label-neck span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:8px;font-weight:900;white-space:nowrap}.face-two{padding:4px 7px;display:grid;grid-template-columns:minmax(0,1fr) 46px;grid-template-rows:17px 14px 49px 34px;column-gap:5px}.f-company{grid-column:1/-1;height:17px;text-align:center;font-weight:900;line-height:1;overflow:hidden}.f-address{grid-column:1/-1;height:14px;text-align:center;font-weight:700;line-height:1;overflow:hidden}.f-barcode{grid-column:1/2;height:49px;overflow:hidden}.f-barcode .barcode-svg{width:100%;height:49px;shape-rendering:crispEdges}.f-meta{grid-column:1/2;display:grid;grid-template-rows:repeat(3,1fr);line-height:1;min-width:0;overflow:hidden}.f-meta>div{height:11px;overflow:hidden;white-space:nowrap;font-weight:700}.qr-text-indicator{grid-column:2;grid-row:3/5;border:1px solid #111;display:grid;place-items:center;font-weight:900;font-size:14px;align-self:stretch;background:repeating-linear-gradient(45deg,#fff,#fff 3px,#111 3px,#111 4px);color:#fff;text-shadow:0 0 2px #000}.barcode-series-note{margin-top:10px;max-width:860px;text-align:center;font-size:11px;color:#555;line-height:1.25}
/* condensed sans-serif for printed fields, never geometrically distort glyphs */
.jface,.jewelry-real-template,.barcode-svg text{font-family:Arial,"Segoe UI",sans-serif!important;font-stretch:condensed}
/* login compact desktop: reduce top whitespace, keep whole lower block visible without page scaling */
@media (min-width:901px){.exact-login{height:auto!important;min-height:100vh!important;overflow-y:auto!important;padding:4px 16px 5px!important}.exact-shell{height:min(525px,58vh)!important;min-height:470px!important;width:min(1040px,calc(100vw - 32px))!important;grid-template-columns:350px minmax(0,1fr)!important}.exact-hero>img{height:104%!important;max-height:none!important;object-fit:contain!important;object-position:center 44%!important}.exact-panel{padding:17px 42px 13px!important}.exact-panel h1{font-size:29px!important;margin-bottom:5px!important}.exact-panel .welcome{font-size:12px!important;line-height:1.3!important}.exact-spark{margin:7px 0 9px!important}.exact-field{height:43px!important;margin-bottom:7px!important}.exact-tools{margin:1px 0 7px!important}.exact-login-btn{height:44px!important}.exact-or{margin:7px 0 6px!important}.exact-social button{height:35px!important}.exact-signup{margin-top:6px!important}.exact-company{width:min(1040px,calc(100vw - 32px))!important;margin-top:4px!important}.exact-company h2{font-size:16px!important;margin-bottom:3px!important}.exact-contact-grid{font-size:9px!important;gap:2px 18px!important}.exact-benefits{width:min(1040px,calc(100vw - 32px))!important;margin:4px auto 3px!important}.exact-benefits>div{min-height:44px!important;padding:4px 7px!important}.benefit-icon{width:25px!important;height:25px!important}.benefit-icon svg{width:22px!important;height:22px!important}.exact-benefits b{font-size:9px!important}.exact-benefits small{font-size:7.2px!important}.exact-copyright{width:min(1040px,calc(100vw - 32px))!important;font-size:7px!important;margin-bottom:2px!important}.exact-bottom{width:min(1040px,calc(100vw - 32px))!important}.exact-bottom>div{min-height:50px!important;padding:4px 9px!important;grid-template-columns:34px 1fr!important;gap:6px!important}.big-icon{width:30px!important;height:30px!important}.big-icon svg{width:18px!important;height:18px!important}.exact-bottom b{font-size:8.5px!important}.exact-bottom p{font-size:7px!important;line-height:1.15!important;margin:1px 0 2px!important}.exact-bottom button{font-size:7.5px!important;padding:2px 6px!important}}
@media(max-width:1100px){.jewelry-real-template{width:760px;height:106px;grid-template-columns:292px 70px 398px}.face-one{grid-template-rows:20px repeat(3,14px) 15px 13px}.face-two{grid-template-rows:15px 13px 43px 29px}.f-barcode,.f-barcode .barcode-svg{height:43px}}
@media(max-width:700px){.jewelry-preview-stage{justify-content:flex-start!important;min-height:210px}.jewelry-real-template{width:680px;height:95px;grid-template-columns:260px 62px 358px}.preview-zoom button{height:30px;font-size:10px;padding:0 6px}.barcode-series-note{max-width:680px}}
.qr-code-box{grid-column:2;grid-row:3/5;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;background:#fff}.qr-code-box .qr-svg{width:100%;height:100%;max-width:45px;max-height:45px;display:block;shape-rendering:crispEdges}

/* ===== V1.0.8 FRX TRUE PREVIEW ===== */
.frx-canvas{position:relative!important;display:block!important;background:#fff!important;border:1px solid #444!important;overflow:hidden!important;box-shadow:0 3px 12px #0002!important;flex:0 0 auto!important;font-family:Arial,"Segoe UI",sans-serif!important}
.frx-object{position:absolute!important;box-sizing:border-box!important;overflow:hidden!important;color:#000!important;background:transparent!important;line-height:1!important}
.frx-text{display:flex!important;align-items:center!important;white-space:nowrap!important;text-overflow:clip!important;font-stretch:condensed!important}
.frx-barcode{display:flex!important;align-items:stretch!important;justify-content:center!important;background:#fff!important}
.frx-barcode .barcode-real,.frx-barcode .barcode-svg{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important}
.frx-barcode .barcode-svg text{display:none!important}
.jewelry-preview-stage{min-height:285px!important}.jewelry-preview-stage #pv{min-width:max-content!important}
@media(max-width:700px){.jewelry-preview-stage{justify-content:flex-start!important}}

/* ===== V1.0.9 FINAL PREVIEW / CODE128 / QR / TEMPLATE DELETE ===== */
.jewelry-action-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(150px,.7fr) minmax(220px,1fr) minmax(300px,1.25fr);gap:10px;align-items:end}.jewelry-action-row>.field{margin:0}.inline-print-actions{display:flex;gap:8px;align-items:center}.inline-print-actions .btn{min-height:43px;flex:1}.preview-zoom{flex-wrap:nowrap!important}.preview-zoom button{width:52px!important;min-width:52px!important;font-size:14px!important;padding:0!important}.code-display-options{display:flex;gap:28px;align-items:center;flex-wrap:wrap;padding:10px 12px;margin-top:8px;border:1px solid #efb47e;border-radius:10px;background:#fffaf5;font-size:13px}.code-display-options label{display:flex;align-items:center;gap:7px;cursor:pointer}.code-display-options input{width:18px;height:18px;accent-color:#e85a12}.btn.danger{background:#fff1f1!important;color:#a31616!important;border-color:#d94b4b!important}.dual-code-bar{width:100%;height:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px;align-items:stretch}.dual-code-bar>.barcode-real{min-width:0}.dual-qr{height:100%;aspect-ratio:1;display:flex}.dual-qr .qr-svg,.qr-only .qr-svg{width:100%;height:100%;display:block;shape-rendering:crispEdges}.qr-only{height:100%;width:100%;display:flex;align-items:center;justify-content:center}.qr-only .qr-svg{width:auto;max-width:100%}.jewelry-preview-stage{overflow:auto!important}.jewelry-preview-stage #pv{min-width:0!important;width:100%!important}.jewelry-preview-stage .label-print-canvas{flex:0 0 auto!important}.frx-barcode .dual-code-bar,.frx-barcode .qr-only{width:100%!important;height:100%!important}
@media(max-width:900px){.jewelry-action-row{grid-template-columns:1fr 1fr}.jewelry-action-row .action-field{grid-column:1/-1}}@media(max-width:560px){.jewelry-action-row{grid-template-columns:1fr}.jewelry-action-row .action-field{grid-column:auto}.inline-print-actions{flex-direction:column}.inline-print-actions .btn{width:100%}.code-display-options{gap:12px;align-items:flex-start;flex-direction:column}}

/* ===== V1.1.0 CLEAN UI COMPLETION ===== */
.compact-switch{min-height:44px!important;height:44px!important;padding:5px 9px!important;display:flex!important;align-items:center!important;gap:8px!important;border-radius:10px!important}.compact-switch input{width:18px!important;height:18px!important;flex:0 0 18px}.compact-switch span{display:flex!important;min-width:0!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important}.compact-switch b{font-size:11px!important;white-space:nowrap}.compact-switch small{font-size:9px!important;margin:0!important;color:#777!important}.jewelry-action-row{grid-template-columns:minmax(130px,.55fr) minmax(190px,.7fr) minmax(270px,1fr)!important}.code-display-options{justify-content:flex-start!important}.code-display-options label{font-weight:600}.solid-danger{background:#b71c1c!important;color:white!important}.sortable-table thead th{text-align:center!important;vertical-align:middle!important;padding:0!important;position:sticky;top:0;z-index:2}.sortable-table thead th>input{margin:10px}.sort-head{width:100%;min-height:42px;padding:7px 8px;border:0;background:transparent;color:inherit;font:700 11px "Segoe UI",Arial,sans-serif;display:flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;white-space:nowrap}.sort-head i{font-style:normal;color:#df5b18;font-size:10px}.sortable-table td{text-align:center;vertical-align:middle}.sortable-table td:nth-child(5),.sortable-table td:nth-child(16),.sortable-table td:nth-child(17),.sortable-table td:nth-child(18){text-align:left}.report-full{min-width:2250px!important}
@media(max-width:900px){.jewelry-action-row{grid-template-columns:1fr 1fr!important}.jewelry-action-row .action-field{grid-column:1/-1}.inline-print-actions .btn{min-height:42px}.sort-head{font-size:10px}}
@media(max-width:560px){.jewelry-action-row{grid-template-columns:1fr!important}.jewelry-action-row .action-field{grid-column:auto}.compact-switch{height:auto!important;min-height:44px!important}.code-display-options{display:grid!important;grid-template-columns:1fr!important}.preview-card{padding:10px!important}.jewelry-preview-stage{padding:10px!important}}
/* V1.1.1 COMPLETE RESPONSIVE */
.home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.home-action{min-height:110px;border:1.5px solid var(--red);border-radius:16px;background:var(--mint);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;text-align:left;padding:16px;cursor:pointer}.home-action>span{grid-row:1/3;font-size:30px}.home-action b{font-size:16px}.home-action small{color:#666}.template-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.template-tabs button{min-height:42px;padding:8px 14px;border:1.5px solid var(--red);background:#fff;border-radius:12px;font-weight:700;cursor:pointer}.template-tabs button.active{background:var(--mint)}
/* Preview: fit whole label first; scrolling works edge-to-edge only when zoomed */
.jewelry-preview-stage{justify-content:flex-start!important;align-items:center!important;overflow:auto!important;scroll-behavior:smooth;overscroll-behavior:contain}.jewelry-preview-stage #pv{min-width:100%!important;width:max-content!important;align-items:flex-start!important}.jewelry-preview-stage .label-print-canvas{margin-inline:auto}.frx-text{white-space:nowrap}.barcode-size-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.barcode-size-tools label{display:flex!important;gap:6px!important;align-items:center}.barcode-size-tools input{width:110px}
/* Touch-friendly red scrollbars */
.table-wrap,.jewelry-preview-stage{scrollbar-width:auto;scrollbar-color:#df4b3f #ffe7d5}.table-wrap::-webkit-scrollbar,.jewelry-preview-stage::-webkit-scrollbar{height:16px;width:16px}.table-wrap::-webkit-scrollbar-track,.jewelry-preview-stage::-webkit-scrollbar-track{background:#ffe7d5;border-radius:999px}.table-wrap::-webkit-scrollbar-thumb,.jewelry-preview-stage::-webkit-scrollbar-thumb{background:#df4b3f;border:3px solid #ffe7d5;border-radius:999px;min-width:48px}.table-wrap::-webkit-scrollbar-button,.jewelry-preview-stage::-webkit-scrollbar-button{width:18px;height:18px;background:#df4b3f}
.ship-auto-toggle{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}.ship-auto-toggle input{width:18px;height:18px;accent-color:#e85a12}
@media(max-width:900px){.home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.home-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-action{min-height:92px;padding:11px;column-gap:8px}.home-action>span{font-size:24px}.home-action b{font-size:14px}.home-action small{font-size:11px}.template-tabs{display:grid;grid-template-columns:1fr 1fr}.barcode-size-tools{width:100%}.barcode-size-tools label{width:100%;justify-content:space-between}.barcode-size-tools input{width:55%}.table-wrap::-webkit-scrollbar,.jewelry-preview-stage::-webkit-scrollbar{height:20px;width:20px}}

/* ===== V1.1.2 SETTINGS SAVE RELIABILITY ===== */
.settings-savebar{z-index:60!important;pointer-events:auto!important}
.settings-savebar .settings-savebtn{pointer-events:auto!important;cursor:pointer!important;position:relative!important;z-index:2!important}
.check-card input[data-business]{cursor:pointer!important;accent-color:#1976d2}

/* ===== V1.1.3 PRINT TYPOGRAPHY + TRUE VERTICAL HLV CENTER ===== */
.label-print-canvas,.jewelry-real-template,.jewelry-twoface,.frx-canvas,.frx-text,.barcode-svg text{font-family:Arial,"Segoe UI",sans-serif!important;font-stretch:normal!important}
.frx-text-vertical{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:0!important;overflow:hidden!important}
.frx-text-vertical .frx-vertical-inner{display:inline-block!important;writing-mode:vertical-rl!important;transform:rotate(180deg)!important;transform-origin:center center!important;white-space:nowrap!important;line-height:1!important;margin:auto!important}

/* ===== V1.1.4 COMPACT WORKFLOW + SAVE FIX ===== */
#toast{background:#e8fff3!important;color:#173b2a!important;border:1.5px solid #e85a12!important;box-shadow:0 8px 24px #0002!important;font-weight:700!important;max-width:min(420px,calc(100vw - 24px))!important;z-index:999!important}
.service-page-head{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:20px;color:#222}.service-page-head span{font-size:22px}.service-page-head b{font-size:20px}
.template-topbar{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin:8px 0 12px}.template-topbar .template-tabs{margin:0;display:flex;flex-wrap:nowrap;gap:6px}.template-topbar .template-tabs button{min-height:38px;padding:6px 11px}.compact-add{white-space:nowrap;min-height:38px;padding:8px 11px}.template-topbar .search{min-width:180px;max-width:360px;flex:1}
.preview-action-panel{display:grid;grid-template-columns:minmax(110px,.55fr) minmax(190px,.85fr) minmax(260px,1.2fr);gap:8px;align-items:end;margin-top:8px}.preview-action-panel>.field{margin:0}.preview-action-buttons .inline-print-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.preview-action-buttons .btn{min-height:42px}.recent-card{margin-top:10px}.recent-table-wrap{margin-top:8px}.recent-table{min-width:1080px}.recent-table th,.recent-table td{text-align:center!important;vertical-align:middle!important;padding:7px 8px!important;font-size:11px!important}
.settings-savebar{position:sticky!important;bottom:6px!important;background:#fffaf4!important;box-shadow:0 -3px 14px rgba(120,60,20,.08)!important}.settings-savebtn{background:#c9f3df!important}
@media(max-width:900px){.template-topbar{flex-wrap:wrap}.template-topbar .search{order:3;flex:1 1 100%;max-width:none}.preview-action-panel{grid-template-columns:1fr 1fr}.preview-action-buttons{grid-column:1/-1}}
@media(max-width:560px){.template-topbar{display:grid;grid-template-columns:1fr auto}.template-topbar .template-tabs{min-width:0;overflow-x:auto}.compact-add{font-size:11px;padding:7px 9px}.template-topbar .search{grid-column:1/-1;width:100%}.preview-action-panel{grid-template-columns:1fr}.preview-action-buttons{grid-column:auto}.preview-action-buttons .inline-print-actions{grid-template-columns:1fr 1fr}.service-page-head{font-size:17px}.service-page-head b{font-size:17px}}

/* ===== V1.1.5 COMPLETE CLEAN UX ===== */
.full-preview-modal{position:fixed;inset:0;z-index:1000;background:rgba(20,20,20,.94);display:grid;grid-template-rows:auto 1fr;color:#fff}.full-preview-modal[hidden]{display:none!important}.full-preview-top{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#171717;border-bottom:1px solid #555}.full-preview-tools{display:flex;gap:8px}.full-preview-tools button,.full-preview-close{min-width:46px;min-height:46px;border:1.5px solid #ff6b3b;border-radius:10px;background:#fff;color:#111;font-weight:800;cursor:pointer}.full-preview-close{font-size:25px;background:#ffe9df}.full-preview-stage{min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:24px;overscroll-behavior:contain}.full-preview-body{min-width:max-content;min-height:max-content;display:flex;align-items:center;justify-content:center}.preview-open{overflow:hidden!important}.shipping-preview-sheet{width:420px;min-height:560px;background:#fff;color:#111;border:1px solid #111;padding:28px;display:grid;align-content:start;gap:14px;font-family:Arial,sans-serif}.shipping-preview-sheet h2{margin:0}.shipping-preview-sheet .barcode-real{height:100px}
.true-template-thumb{height:150px;overflow:hidden;position:relative;padding:7px}.true-template-thumb .label-print-canvas{position:absolute!important;left:50%;top:50%;transform:translate(-50%,-50%) scale(.52)!important;transform-origin:center!important;zoom:1!important;box-shadow:none!important}.template-topbar{align-items:center!important}.template-topbar .template-tabs{flex:0 1 auto}.template-topbar .compact-add{flex:0 0 auto}.template-topbar .search{margin:0!important}.unit-service-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.unit-service-tabs button{min-height:38px;padding:7px 11px;border:1.5px solid #e65a4d;border-radius:10px;background:#fff;cursor:pointer;font-weight:700}.unit-service-tabs button.active{background:#c9f3df}.unit-toolbar{align-items:center}.unit-toolbar input{min-height:42px;border:1px solid #e4b98f;border-radius:10px;padding:9px;min-width:260px}.preview-card{align-self:start}.preview-action-panel{margin-top:8px}.code-display-options{margin-bottom:0!important}.recent-card{padding-top:10px}.recent-card>b{display:block;margin-bottom:5px}
#toast{background:#e8fff3!important;color:#173b2a!important;border:1.5px solid #ee5a14!important;box-shadow:0 5px 18px #0002!important}
@media(max-width:760px){.full-preview-stage{padding:12px}.full-preview-tools button,.full-preview-close{min-width:44px;min-height:44px}.true-template-thumb .label-print-canvas{transform:translate(-50%,-50%) scale(.4)!important}.unit-toolbar input{min-width:0;flex:1}.template-topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}.template-topbar .template-tabs{overflow-x:auto}.template-topbar .search{grid-column:1/-1!important}.recent-table{min-width:900px}}
/* touch-friendly KAZUKO scrollbars */
.table-wrap,.full-preview-stage,.jewelry-preview-stage,.template-tabs{scrollbar-color:#ef5a3c #fff0e5;scrollbar-width:auto}
.table-wrap::-webkit-scrollbar,.full-preview-stage::-webkit-scrollbar,.jewelry-preview-stage::-webkit-scrollbar,.template-tabs::-webkit-scrollbar{height:16px;width:16px}
.table-wrap::-webkit-scrollbar-track,.full-preview-stage::-webkit-scrollbar-track,.jewelry-preview-stage::-webkit-scrollbar-track,.template-tabs::-webkit-scrollbar-track{background:#fff0e5;border-radius:9px}
.table-wrap::-webkit-scrollbar-thumb,.full-preview-stage::-webkit-scrollbar-thumb,.jewelry-preview-stage::-webkit-scrollbar-thumb,.template-tabs::-webkit-scrollbar-thumb{background:#ef5a3c;border:3px solid #fff0e5;border-radius:10px;min-width:42px;min-height:42px}
.table-wrap::-webkit-scrollbar-button,.full-preview-stage::-webkit-scrollbar-button,.jewelry-preview-stage::-webkit-scrollbar-button,.template-tabs::-webkit-scrollbar-button{display:block;width:18px;height:18px;background:#ef5a3c}
@media(pointer:coarse){.table-wrap::-webkit-scrollbar,.full-preview-stage::-webkit-scrollbar,.jewelry-preview-stage::-webkit-scrollbar,.template-tabs::-webkit-scrollbar{height:20px;width:20px}}
/* touch-friendly KAZUKO scrollbars */
.table-wrap,.full-preview-stage,.jewelry-preview-stage,.template-tabs{scrollbar-color:#ef5a3c #fff0e5;scrollbar-width:auto}
.table-wrap::-webkit-scrollbar,.full-preview-stage::-webkit-scrollbar,.jewelry-preview-stage::-webkit-scrollbar,.template-tabs::-webkit-scrollbar{height:16px;width:16px}
.table-wrap::-webkit-scrollbar-track,.full-preview-stage::-webkit-scrollbar-track,.jewelry-preview-stage::-webkit-scrollbar-track,.template-tabs::-webkit-scrollbar-track{background:#fff0e5;border-radius:9px}
.table-wrap::-webkit-scrollbar-thumb,.full-preview-stage::-webkit-scrollbar-thumb,.jewelry-preview-stage::-webkit-scrollbar-thumb,.template-tabs::-webkit-scrollbar-thumb{background:#ef5a3c;border:3px solid #fff0e5;border-radius:10px;min-width:42px;min-height:42px}
.table-wrap::-webkit-scrollbar-button,.full-preview-stage::-webkit-scrollbar-button,.jewelry-preview-stage::-webkit-scrollbar-button,.template-tabs::-webkit-scrollbar-button{display:block;width:18px;height:18px;background:#ef5a3c}
@media(pointer:coarse){.table-wrap::-webkit-scrollbar,.full-preview-stage::-webkit-scrollbar,.jewelry-preview-stage::-webkit-scrollbar,.template-tabs::-webkit-scrollbar{height:20px;width:20px}}
.print-service-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:5px 0 10px}.print-service-tab{min-height:38px;padding:6px 11px;border:1.5px solid #e65a4d;border-radius:10px;background:#fff;display:inline-flex;align-items:center;gap:7px;cursor:pointer;font:700 12px Arial,sans-serif}.print-service-tab.active{background:#c9f3df}.print-service-tab span{width:24px;height:24px;display:grid;place-items:center}.print-service-tab svg{width:24px;height:24px}.service-page-head{margin-bottom:4px!important}
@media(max-width:560px){.print-service-tabs{display:grid;grid-template-columns:1fr 1fr}.print-service-tab{justify-content:center;min-width:0}}

/* ===== V1.1.6 UI ALIGN + CLEAN PREVIEW ===== */
/* Keep only the service selector button; no duplicated page heading. */
.service-page-head{display:none!important}

/* Compact, aligned quantity / auto-code / preview / print controls. */
.preview-action-panel{
  display:grid!important;
  grid-template-columns:92px minmax(160px,1fr) minmax(190px,1.12fr)!important;
  gap:8px!important;
  align-items:end!important;
  margin-top:8px!important;
}
.preview-qty-field{min-width:0!important}
.preview-qty-field .field{margin:0!important}
.preview-qty-field input{width:100%!important;min-width:0!important;text-align:center!important}
.preview-action-panel .field{min-width:0!important;margin:0!important}
.preview-action-panel label{font-size:10px!important;line-height:1.1!important;margin-bottom:4px!important}
.preview-action-buttons .inline-print-actions{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)!important;gap:7px!important}
.preview-main-btn{min-height:40px!important;height:40px!important;padding:5px 8px!important;font-size:11px!important;line-height:1!important;white-space:nowrap!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important}
.preview-main-btn *{line-height:1!important}

/* Carrier cards: logo, content, auto toggle and config stay on one aligned row. */
.provider-card{
  grid-template-columns:58px minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:8px!important;
}
.provider-card .ship-auto-toggle{display:flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;font-size:11px!important;margin:0!important}
.provider-card .btn.compact{grid-column:auto!important;width:auto!important;min-height:34px!important;height:34px!important;padding:5px 9px!important;font-size:11px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
.provider-logo{overflow:hidden!important}
.provider-logo img{display:block!important;max-width:92%!important;max-height:82%!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:auto!important}

/* The FRX renderer must not add technical/debug lines to the real label. */
.frx-canvas{border:0!important;outline:0!important;box-shadow:none!important}
.frx-object,.frx-text,.frx-barcode{border:0!important;outline:0!important;box-shadow:none!important}
.frx-object::before,.frx-object::after,.frx-text::before,.frx-text::after{content:none!important;display:none!important}

/* The preview viewport itself may have a dashed guide; never let that guide become part of the label. */
.jewelry-preview-stage .label-print-canvas{border:0!important;outline:0!important}

@media(max-width:900px){
  .preview-action-panel{grid-template-columns:88px minmax(150px,1fr)!important}
  .preview-action-buttons{grid-column:1/-1!important}
  .provider-card{grid-template-columns:54px minmax(0,1fr) auto!important}
  .provider-card .ship-auto-toggle{grid-column:3!important}
  .provider-card .btn.compact{grid-column:2/4!important;justify-self:end!important}
}
@media(max-width:560px){
  .preview-action-panel{grid-template-columns:82px minmax(0,1fr)!important;gap:7px!important}
  .preview-action-buttons{grid-column:1/-1!important}
  .preview-main-btn{height:42px!important;min-height:42px!important;font-size:11px!important}
  .provider-card{grid-template-columns:48px minmax(0,1fr) auto!important;padding:8px!important}
  .provider-logo{width:44px!important;height:38px!important}
  .provider-card .btn.compact{grid-column:2/4!important;width:auto!important;justify-self:end!important}
}

/* V1.1.7 compact auto barcode control */
.barcode-mode-field.compact-mode{max-width:170px!important}
.barcode-switch.compact-switch{min-height:42px!important;padding:7px 10px!important;gap:8px!important;white-space:nowrap!important}
.barcode-switch.compact-switch span{display:flex!important;align-items:center!important}
.barcode-switch.compact-switch b{font-size:13px!important;line-height:1.1!important}
@media(max-width:700px){.barcode-mode-field.compact-mode{max-width:145px!important}.barcode-switch.compact-switch{padding:6px 8px!important}.barcode-switch.compact-switch b{font-size:12px!important}}


/* ===== V1.1.8 FULL PREVIEW EXACT FIT ===== */
/* Full preview reuses the already fitted real label; never enlarge text independently. */
.full-preview-body .label-print-canvas{flex:0 0 auto!important;max-width:none!important;max-height:none!important}
.full-preview-body .frx-text{overflow:hidden!important;box-sizing:border-box!important}
.full-preview-body .frx-vertical-inner{display:inline-block!important;transform:rotate(-90deg)!important;transform-origin:center center!important;white-space:nowrap!important}

/* V1.1.9 - carrier logo reliability for direct file:// mode */
.provider-logo .carrier-inline-logo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.provider-logo .carrier-jnt-logo{overflow:visible}

/* ===== V1.2.0 CONSOLIDATED UX FIXES ===== */
/* Full preview: preserve HLV vertical orientation exactly. */
.frx-text-vertical{overflow:visible!important;display:flex!important;align-items:center!important;justify-content:center!important}
.frx-text-vertical>.frx-vertical-inner,
.full-preview-body .frx-text-vertical>.frx-vertical-inner{
  display:inline-block!important;
  transform:rotate(-90deg)!important;
  transform-origin:center center!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
}

/* Shipping connection panel: short, three actions on one row. */
.compact-connect{padding:12px!important}
.compact-connect .section-caption{margin-bottom:8px!important;padding:7px 10px!important}
.ship-connect-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end}
.ship-connect-grid>.notice{grid-column:1/-1;margin:0!important;padding:9px!important}
.ship-connect-grid>.field.full{grid-column:1/-1}
.ship-connect-actions{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:8px;align-items:center;margin-top:8px}
.ship-connect-actions .connection-status{min-height:40px;display:flex;align-items:center;padding:7px 10px!important}
.ship-connect-actions .btn{height:40px!important;min-height:40px!important;padding:6px 12px!important;white-space:nowrap}
.ship-note-compact{margin-top:7px;border:1px solid #efc86d;border-radius:9px;background:#fff8d9;padding:7px 10px;font-size:11px;color:#6b5320}

/* Livestream: no repeated heading, 3 fields/row, 4 compact controls/row. */
.live-settings-compact{padding:12px!important}
.live-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px}
.live-config-grid .field{margin:0!important;min-width:0}
.live-config-grid input,.live-config-grid select{min-height:42px!important;height:42px!important}
.live-option-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px;align-items:stretch}
.live-option-row>label,.live-option-row>.btn{min-height:40px!important;height:40px!important;border:1px solid #efb18a;border-radius:9px;background:#fffaf5;display:flex;align-items:center;justify-content:flex-start;gap:7px;padding:6px 10px!important;font-size:11px;font-weight:600;min-width:0;white-space:nowrap}
.live-option-row input{width:16px;height:16px;flex:0 0 16px}
.live-option-row>.btn{justify-content:center;background:#c9f3df!important;border-color:#ef5a3c!important;font-weight:800}
.live-keyword-tags{margin-top:8px!important}
.live-note-compact{margin-top:8px!important;padding:8px 10px!important;font-size:11px!important}

/* Login desktop/laptop: shrink hero/main area and devote more readable space to company/footer, still exactly one viewport. */
@media(min-width:901px){
  .kzlg-wrap{grid-template-rows:minmax(0,1fr) auto auto!important;gap:8px!important}
  .kzlg-main{max-height:calc(100% - 108px)!important;align-self:stretch!important}
  .kzlg-visual img{object-position:center 48%!important}
  .kzlg-company{padding:2px 12px 0!important}
  .kzlg-company h2{font-size:clamp(17px,1.25vw,21px)!important;margin-bottom:4px!important}
  .kzlg-contact{font-size:clamp(9px,.72vw,11px)!important;gap:4px 16px!important;line-height:1.25!important}
  .kzlg-benefits{gap:8px!important}
  .kzlg-benefits>div{min-height:40px!important;padding:5px 8px!important}
  .kzlg-benefits b{font-size:10px!important}.kzlg-benefits small{font-size:9px!important}
}
@media(min-width:901px) and (max-height:760px){
  .kzlg-main{max-height:calc(100% - 90px)!important}
  .kzlg-company h2{font-size:15px!important}.kzlg-contact{font-size:8.5px!important}
  .kzlg-benefits>div{min-height:32px!important}.kzlg-benefits b{font-size:9px!important}.kzlg-benefits small{font-size:8px!important}
}

@media(max-width:900px){
  .ship-connect-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ship-connect-actions{grid-template-columns:1fr 1fr}.ship-connect-actions .connection-status{grid-column:1/-1}
  .live-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .live-option-row{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .ship-connect-grid{grid-template-columns:1fr}
  .ship-connect-actions{grid-template-columns:1fr 1fr}.ship-connect-actions .btn{font-size:10px!important;padding:5px 7px!important}
  .live-config-grid{grid-template-columns:1fr}
  .live-option-row{grid-template-columns:1fr 1fr;gap:6px}
  .live-option-row>label,.live-option-row>.btn{font-size:10px;padding:5px 7px!important;white-space:normal;text-align:center;justify-content:center}
}


/* ===== V1.2.1 TRUE HLV GEOMETRIC CENTER ===== */
.frx-text-vertical{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:0!important;overflow:visible!important}
.frx-text-vertical .frx-vertical-inner{writing-mode:horizontal-tb!important;display:inline-block!important;transform:rotate(-90deg)!important;transform-origin:center center!important;white-space:nowrap!important;line-height:1!important;margin:0!important;font:inherit!important;font-weight:inherit!important}
.full-preview-modal .frx-text-vertical .frx-vertical-inner{writing-mode:horizontal-tb!important;transform:rotate(-90deg)!important;transform-origin:center center!important}

/* ===== V1.2.2 FINAL: HLV FULL TEXT + LOGIN TOP BALANCE ===== */
/* The rotated HLV object must be allowed to paint outside its narrow FRX box after rotation.
   This specifically overrides the generic full-preview text clipping rule. */
.full-preview-body .frx-text.frx-text-vertical,
.frx-canvas .frx-text.frx-text-vertical{
  overflow:visible!important;
}
.full-preview-body .frx-text.frx-text-vertical>.frx-vertical-inner,
.frx-canvas .frx-text.frx-text-vertical>.frx-vertical-inner{
  display:inline-block!important;
  writing-mode:horizontal-tb!important;
  white-space:nowrap!important;
  transform:rotate(-90deg)!important;
  transform-origin:center center!important;
  line-height:1!important;
  font-family:Arial,sans-serif!important;
  margin:0!important;
}

/* Desktop/laptop login: start near the top instead of vertically centering the whole stack.
   Keep company/contact/benefits readable while preserving a one-screen layout. */
@media(min-width:901px){
  .kzlg-screen{padding:8px 18px 6px!important}
  .kzlg-wrap{
    height:100%!important;
    grid-template-rows:auto auto auto!important;
    align-content:start!important;
    gap:6px!important;
  }
  .kzlg-main{
    height:clamp(470px,64vh,580px)!important;
    max-height:none!important;
    min-height:0!important;
  }
  .kzlg-formbox{padding:clamp(12px,1.8vh,22px) clamp(34px,4.4vw,66px)!important}
  .kzlg-company{margin-top:0!important;padding-top:0!important}
  .kzlg-company h2{font-size:clamp(18px,1.32vw,22px)!important;margin:0 0 3px!important}
  .kzlg-contact{font-size:clamp(10px,.76vw,12px)!important;line-height:1.25!important}
  .kzlg-benefits>div{min-height:40px!important}
  .kzlg-benefits b{font-size:10.5px!important}
  .kzlg-benefits small{font-size:9px!important}
}
@media(min-width:901px) and (max-height:760px){
  .kzlg-main{height:clamp(410px,61vh,475px)!important}
  .kzlg-formbox{padding:8px 34px!important}
  .kzlg-title{font-size:26px!important}
  .kzlg-company h2{font-size:16px!important}
  .kzlg-contact{font-size:8.8px!important}
  .kzlg-benefits>div{min-height:31px!important}
}

/* V1.2.5 REPORTS BY BUSINESS TYPE */
.report-by-category{min-width:max-content!important;width:100%!important}
.report-by-category th,.report-by-category td{white-space:nowrap}
@media(max-width:900px){.report-by-category{min-width:max-content!important}}

/* V1.2.9 — restore compact, balanced jewelry FACE TWO layout */
.jewelry-face2-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end}
.jewelry-face2-grid .face2-company{grid-column:span 2}
.jewelry-face2-grid .face2-address{grid-column:span 2}
.jewelry-face2-grid .face2-barcode{grid-column:span 2}
.jewelry-face2-grid .face2-standard{grid-column:span 1}
.jewelry-face2-grid .face2-tccs{grid-column:span 1}
.jewelry-face2-grid .face2-supplier{grid-column:span 2}
.jewelry-face2-grid .face2-supplieraddr{grid-column:span 2}
@container (max-width:720px){
 .jewelry-face2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .jewelry-face2-grid .face2-company,.jewelry-face2-grid .face2-address,.jewelry-face2-grid .face2-barcode,.jewelry-face2-grid .face2-supplier,.jewelry-face2-grid .face2-supplieraddr{grid-column:1/-1}
 .jewelry-face2-grid .face2-standard,.jewelry-face2-grid .face2-tccs{grid-column:span 1}
}
@container (max-width:440px){.jewelry-face2-grid{grid-template-columns:1fr}.jewelry-face2-grid>*{grid-column:1/-1!important}}

/* V1.3.1 COMMERCIAL CLEAN — final compact UX / no redundant notes */
.preview-note,.barcode-series-note,.ship-note-compact,.live-note-compact{display:none!important}
.compact-top-filter{margin-top:0!important;margin-bottom:8px!important}
.template-topbar{margin-top:0!important}
.settings-sections{display:grid;gap:10px}
.settings-sections>.card{margin:0!important}
.simple-savebar{justify-content:flex-end!important;padding:8px 10px!important}
.simple-savebar .settings-savebtn{min-width:220px!important}

/* Keep desktop print workspace compact and balanced; mobile breaks only at real narrow widths. */
@media(min-width:1101px){
  .jewelry-layout{grid-template-columns:minmax(720px,1.65fr) minmax(420px,.85fr)!important;align-items:start!important}
  .jewelry-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .jewelry-face2-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .preview-card{min-width:420px!important}
  .preview-action-panel{grid-template-columns:90px 150px minmax(180px,1fr)!important;gap:7px!important}
  .preview-action-panel .preview-qty-field input{max-width:90px!important}
  .preview-action-buttons .btn{font-size:11px!important;min-height:38px!important;padding:7px 8px!important}
}
@media(min-width:761px) and (max-width:1100px){
  .jewelry-layout{grid-template-columns:1fr!important}
  .jewelry-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Template repository: show the whole real FRX label, never crop/re-arrange it. */
.templates{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.true-template-thumb{height:170px!important;overflow:hidden!important;padding:8px!important;display:block!important;position:relative!important}
.true-template-thumb .label-print-canvas{left:50%!important;top:50%!important;transform:translate(-50%,-50%) scale(.40)!important;transform-origin:center center!important;box-shadow:none!important}
@media(max-width:900px){.templates{grid-template-columns:1fr!important}.true-template-thumb .label-print-canvas{transform:translate(-50%,-50%) scale(.34)!important}}

/* Licensing */
.license-card{border:1.5px solid #efb38b!important;background:#fffdfb!important}
.license-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.license-head h3{margin:0 0 5px!important}
.license-state{display:inline-block;font-size:14px;color:#d75d14}
.license-state.active{color:#188a56}.license-state.expired{color:#c73535}
.license-badge{padding:5px 9px;border-radius:999px;background:#fff0dd;font-size:11px;font-weight:800;white-space:nowrap}
.license-badge.active{background:#e4f8ec;color:#157a4d}.license-badge.expired{background:#ffe5e5;color:#b72b2b}
.license-meta{margin:7px 0 10px;font-size:12px;color:#555}
.license-activate{display:grid;grid-template-columns:1fr auto;gap:8px}
.license-activate input{min-height:42px;border:1px solid #e4b98f;border-radius:10px;padding:9px 11px;font-size:14px}
.license-expired-gate{max-width:720px;margin:30px auto;text-align:center;padding:28px!important}
.license-expired-gate h2{color:#c73535}
@media(max-width:600px){.license-head{flex-direction:column}.license-activate{grid-template-columns:1fr}.license-activate .btn{width:100%}}


/* V1.3.2 FINAL SERVER — FACE 2 compact desktop layout + clean no-note UX */
@media (min-width: 1101px){
  .jewelry-face2-grid{
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:8px!important;
    align-items:end!important;
  }
  .jewelry-face2-grid .face2-company{grid-column:span 6!important}
  .jewelry-face2-grid .face2-address{grid-column:span 6!important}
  .jewelry-face2-grid .face2-barcode{grid-column:span 6!important}
  .jewelry-face2-grid .face2-standard{grid-column:span 3!important}
  .jewelry-face2-grid .face2-tccs{grid-column:span 3!important}
  .jewelry-face2-grid .face2-supplier{grid-column:span 4!important}
  .jewelry-face2-grid .face2-supplieraddr{grid-column:span 8!important}
  .jewelry-face2-grid .field input,
  .jewelry-face2-grid .field select{min-height:42px!important;padding:8px 10px!important}
}
@media (min-width: 701px) and (max-width:1100px){
  .jewelry-face2-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}
  .jewelry-face2-grid .face2-company,.jewelry-face2-grid .face2-address{grid-column:span 3!important}
  .jewelry-face2-grid .face2-barcode{grid-column:span 3!important}
  .jewelry-face2-grid .face2-standard,.jewelry-face2-grid .face2-tccs{grid-column:span 3!important}
  .jewelry-face2-grid .face2-supplier{grid-column:span 2!important}
  .jewelry-face2-grid .face2-supplieraddr{grid-column:span 4!important}
}
@media (max-width:700px){
  .jewelry-face2-grid{grid-template-columns:1fr!important;gap:7px!important}
  .jewelry-face2-grid>*{grid-column:1/-1!important}
}
/* The user is already inside each function: remove redundant helper notes/captions. */
.preview-note,.barcode-series-note,.ship-note-compact,.live-note-compact,.redundant-note{display:none!important}

/* V1.3.11 FINAL MOBILE ACTION BAR — compact and no overflow */
@media(max-width:700px){
  .preview-action-panel{
    grid-template-columns:72px minmax(92px,112px) minmax(0,1fr)!important;
    gap:6px!important;
    align-items:end!important;
  }
  .preview-action-panel .preview-qty-field input{max-width:72px!important;min-width:0!important;height:40px!important;padding:6px 8px!important;text-align:center!important}
  .barcode-mode-field.compact-mode{max-width:112px!important;min-width:0!important}
  .barcode-switch.compact-switch{min-height:40px!important;height:40px!important;padding:5px 7px!important;gap:5px!important;border-radius:9px!important}
  .barcode-switch.compact-switch input{width:16px!important;height:16px!important;flex-basis:16px!important}
  .barcode-switch.compact-switch b{font-size:10.5px!important;white-space:nowrap!important}
  .preview-action-buttons{grid-column:auto!important;min-width:0!important}
  .preview-action-buttons .inline-print-actions{grid-template-columns:minmax(0,1fr) 64px!important;gap:5px!important}
  .preview-main-btn{min-width:0!important;width:100%!important;height:40px!important;min-height:40px!important;padding:4px 5px!important;font-size:9.5px!important;white-space:nowrap!important;border-radius:9px!important}
  .preview-main-btn:last-child{font-size:10.5px!important}
  .preview-action-panel label{font-size:9px!important;margin-bottom:3px!important}
  .preview-card{overflow:hidden!important}
  .code-display-options{padding:8px!important;gap:8px!important}
}
@media(max-width:430px){
  .preview-action-panel{grid-template-columns:68px 104px minmax(0,1fr)!important;gap:5px!important}
  .preview-action-buttons .inline-print-actions{grid-template-columns:minmax(0,1fr) 56px!important;gap:4px!important}
  .preview-main-btn{font-size:9px!important;padding:4px!important}
  .preview-main-btn:last-child{font-size:10px!important}
}
@media(max-width:360px){
  .preview-action-panel{grid-template-columns:64px 96px minmax(0,1fr)!important;gap:4px!important}
  .barcode-switch.compact-switch b{font-size:9.5px!important}
  .preview-action-buttons .inline-print-actions{grid-template-columns:minmax(0,1fr) 50px!important}
  .preview-main-btn{font-size:8.5px!important}
}

/* General mobile polish: keep controls inside viewport and reduce wasted space */
@media(max-width:700px){
  main{min-width:0!important}
  .card,.preview-card,.jewelry-form-card{min-width:0!important;max-width:100%!important}
  input,select,textarea,button{max-width:100%}
  .field{min-width:0!important}
  .toolbar{gap:6px!important}
  .btn{white-space:normal}
  .jewelry-face-title{margin-top:5px!important;margin-bottom:6px!important}
  .recent-card{margin-top:7px!important}
}

/* V1.3.11 MOBILE POLISH — mobile-only visual layer, desktop/business logic untouched */
@media (max-width:700px){
  .layout{min-width:0!important}
  main{padding:8px!important;min-width:0!important;overflow-x:hidden!important}
  .card{padding:10px!important;border-radius:12px!important}
  .grid{gap:7px!important}
  .toolbar{display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important}
  .toolbar .btn{min-height:38px!important;padding:7px 10px!important;font-size:11px!important;border-radius:9px!important}
  .form-grid,.jewelry-form-grid{gap:7px!important}
  .field label{font-size:10px!important;margin-bottom:3px!important}
  .field input,.field select,.field textarea{min-height:40px!important;height:auto!important;padding:7px 9px!important;font-size:14px!important;border-radius:9px!important}
  .template-switch{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;align-items:end!important}
  .template-switch>label{grid-column:1/-1!important;font-size:10px!important}
  .template-switch select{min-width:0!important}
  .template-switch .btn{min-width:0!important;white-space:nowrap!important;padding:7px 8px!important;font-size:10px!important}
  .preview-card{padding:9px!important}
  .preview-head{margin-bottom:6px!important}
  .preview-head>b{font-size:14px!important}
  .preview-zoom{gap:5px!important}
  .preview-zoom button{width:40px!important;height:34px!important;min-width:40px!important;border-radius:9px!important}
  .code-display-options{padding:8px!important;border-radius:10px!important;gap:7px!important}
  .code-display-options>label{font-size:11px!important;min-height:28px!important}
  .barcode-size-tools{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
  .barcode-size-tools label{display:flex!important;align-items:center!important;gap:6px!important;font-size:10px!important;min-width:0!important}
  .barcode-size-tools input[type=range]{min-width:0!important;width:100%!important}

  /* Keep the four main print controls on one row; make quantity shorter so IN stays inside. */
  .preview-action-panel{
    display:grid!important;
    grid-template-columns:54px 88px minmax(0,1fr)!important;
    gap:5px!important;
    align-items:end!important;
    width:100%!important;
    min-width:0!important;
  }
  .preview-action-panel .preview-qty-field{min-width:0!important;width:54px!important}
  .preview-action-panel .preview-qty-field .field{min-width:0!important;width:54px!important}
  .preview-action-panel .preview-qty-field input{width:54px!important;max-width:54px!important;min-width:54px!important;height:38px!important;padding:5px!important;font-size:13px!important;text-align:center!important}
  .barcode-mode-field.compact-mode{width:88px!important;max-width:88px!important;min-width:0!important}
  .barcode-switch.compact-switch{width:88px!important;max-width:88px!important;min-height:38px!important;height:38px!important;padding:5px 6px!important;gap:4px!important}
  .barcode-switch.compact-switch b{font-size:9.5px!important;white-space:nowrap!important}
  .barcode-switch.compact-switch input{width:15px!important;height:15px!important;flex:0 0 15px!important}
  .preview-action-buttons{min-width:0!important;width:100%!important}
  .preview-action-buttons .inline-print-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;gap:4px!important;width:100%!important;min-width:0!important}
  .preview-main-btn{height:38px!important;min-height:38px!important;min-width:0!important;width:100%!important;padding:4px!important;border-radius:9px!important;font-size:8.8px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important}
  .preview-main-btn:last-child{font-size:10px!important;width:48px!important;max-width:48px!important}
  .preview-action-panel label{font-size:8.5px!important;line-height:1.05!important;margin-bottom:2px!important}

  .recent-card{margin-top:7px!important;padding:9px!important}
  .recent-card>b{font-size:13px!important}
  .table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:9px!important}
  .grid-table th,.grid-table td{padding:7px 8px!important;font-size:10px!important}
  .sort-head{font-size:10px!important;gap:3px!important}
  .filter-grid{gap:6px!important}
  .filter-grid input,.filter-grid select{min-height:40px!important;font-size:13px!important}

  .templates{grid-template-columns:1fr!important;gap:8px!important}
  .template-topbar{display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;gap:5px!important;align-items:center!important}
  .template-topbar .btn{padding:7px 8px!important;font-size:10px!important;white-space:nowrap!important}
  .template-topbar input{min-width:0!important;height:38px!important;font-size:12px!important}
  .true-template-thumb{height:145px!important}

  .shipping-grid{grid-template-columns:1fr!important;gap:8px!important}
  .provider-list{grid-template-columns:1fr!important;gap:6px!important}
  .provider-card{grid-template-columns:54px minmax(0,1fr) auto!important;gap:7px!important;padding:7px!important}
  .provider-logo{width:50px!important;height:42px!important}
  .provider-card .btn{grid-column:3!important;min-width:70px!important;padding:6px 7px!important;font-size:9.5px!important}
  .ship-auto-toggle{font-size:9px!important}
  .ship-connect-grid{grid-template-columns:1fr!important;gap:6px!important}
  .ship-connect-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
  .ship-connect-actions .connection-status{grid-column:1/-1!important;text-align:center!important}
  .order-head{align-items:flex-start!important;gap:6px!important}

  .live-config-grid{grid-template-columns:1fr!important;gap:6px!important}
  .live-option-row{grid-template-columns:1fr 1fr!important;gap:5px!important}
  .live-option-row label,.live-option-row .btn{min-height:38px!important;padding:6px 7px!important;font-size:9.5px!important}
  .live-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .live-summary .card{padding:7px!important;text-align:center!important}
  .live-summary .stat{font-size:19px!important}
  .live-summary .small-stat{font-size:12px!important}

  .settings-sections{gap:8px!important}
  .check-grid{grid-template-columns:1fr 1fr!important;gap:6px!important}
  .check-card{min-height:58px!important;padding:8px!important}
  .check-card b{font-size:11px!important}
  .check-card small{font-size:9px!important}
  .unit-service-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}
  .unit-service-tabs button{min-height:36px!important;font-size:10px!important;padding:5px!important}
  .unit-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important}
  .unit-toolbar input{min-width:0!important}
  .settings-savebar{position:static!important;padding:7px 0 0!important;background:transparent!important;border:0!important}
  .settings-savebtn{width:100%!important;min-width:0!important}
  .license-activate{grid-template-columns:1fr!important}

  .home-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .home-action{min-height:74px!important;padding:9px!important;font-size:11px!important}
  .home-action span{font-size:20px!important}
}
@media (max-width:390px){
  .preview-action-panel{grid-template-columns:50px 82px minmax(0,1fr)!important;gap:4px!important}
  .preview-action-panel .preview-qty-field,.preview-action-panel .preview-qty-field .field{width:50px!important}
  .preview-action-panel .preview-qty-field input{width:50px!important;min-width:50px!important;max-width:50px!important}
  .barcode-mode-field.compact-mode,.barcode-switch.compact-switch{width:82px!important;max-width:82px!important}
  .barcode-switch.compact-switch b{font-size:9px!important}
  .preview-action-buttons .inline-print-actions{grid-template-columns:minmax(0,1fr) 44px!important}
  .preview-main-btn{font-size:8.2px!important}
  .preview-main-btn:last-child{width:44px!important;max-width:44px!important;font-size:9.5px!important}
  .check-grid{grid-template-columns:1fr!important}
  .home-actions{grid-template-columns:1fr 1fr!important}
}

/* V1.3.11 MOBILE MASTER RESPONSIVE — phone-only; desktop/business logic untouched */
@media (max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  body{font-size:14px}
  header{height:auto;min-height:58px;padding:8px 10px;gap:6px}
  header>div:first-child{min-width:0;flex:1}
  header b{font-size:clamp(17px,5.2vw,20px);line-height:1.15;display:block;white-space:normal}
  header small{font-size:clamp(10px,3vw,12px);line-height:1.25}
  .head-actions{gap:6px;flex:0 0 auto}
  .head-actions .btn{padding:7px 9px!important;font-size:11px!important;min-height:38px!important}
  #menuBtn{width:38px;height:38px;padding:0!important;font-size:18px!important}
  .layout{width:100%;max-width:100%;min-width:0}
  main{width:100%;max-width:100%;padding:8px!important;overflow-x:hidden!important}
  aside{top:58px;height:calc(100vh - 58px);width:min(82vw,240px);left:min(-84vw,-242px)}

  /* Fluid typography and surfaces */
  h1,h2,h3,.service-page-head,.jewelry-face-title{overflow-wrap:anywhere}
  .service-page-head,.page-title{font-size:clamp(16px,5vw,20px)!important;line-height:1.15!important}
  .card,.jewelry-form-card,.preview-card,.recent-card,.template,.printer,.license-card{width:100%!important;max-width:100%!important;min-width:0!important}
  .card{padding:9px!important;border-radius:12px!important}
  .card h2,.card h3{font-size:clamp(15px,4.6vw,18px)!important;line-height:1.2!important}
  .card p,.card small,.sub,.notice{font-size:clamp(10px,3.2vw,12px)!important;line-height:1.35!important}
  .stat{font-size:clamp(21px,7vw,27px)!important}

  /* Inputs: readable but never force overflow */
  .field,.field>*{min-width:0!important;max-width:100%!important}
  .field label{font-size:clamp(9px,2.8vw,11px)!important;line-height:1.2!important}
  .field input,.field select,.field textarea,
  input,select,textarea{max-width:100%!important;min-width:0!important;font-size:clamp(13px,4vw,16px)!important;line-height:1.2!important}
  .field input,.field select{min-height:40px!important;padding:7px 9px!important}
  .field textarea{padding:8px 9px!important}

  /* Buttons: touch friendly, text auto-fits by wrapping instead of overflowing */
  .btn,button{max-width:100%;overflow-wrap:anywhere}
  .btn{min-height:38px!important;padding:7px 9px!important;font-size:clamp(10px,3.3vw,12px)!important;line-height:1.15!important;border-radius:9px!important}
  .toolbar{gap:5px!important;margin:7px 0!important}
  .toolbar .btn{flex:0 1 auto!important;min-width:0!important}

  /* Home: compact 2-column launch pad */
  .grid{grid-template-columns:1fr!important;gap:7px!important}
  .home-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .home-action{min-width:0!important;min-height:68px!important;padding:8px!important;gap:6px!important}
  .home-action span{font-size:20px!important}
  .home-action b{font-size:clamp(10px,3.5vw,13px)!important;line-height:1.15!important}
  .home-action small{font-size:9px!important}

  /* Jewelry/Shop forms: one clean column on narrow phones, 2 on larger phones where space allows */
  .form-grid,.jewelry-form-grid,.jewelry-face2-grid{grid-template-columns:1fr!important;gap:6px!important}
  .jewelry-layout{grid-template-columns:1fr!important;gap:8px!important}
  .jewelry-face-title{padding:8px 10px!important;font-size:15px!important;margin:4px 0 6px!important}

  /* Preview: fit within card; zoom then swipe naturally */
  .preview-card{padding:8px!important;overflow:hidden!important}
  .preview-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important}
  .preview-head>b{font-size:clamp(13px,4vw,15px)!important}
  .preview-zoom button{width:38px!important;height:34px!important;min-width:38px!important;min-height:34px!important;font-size:13px!important}
  .jewelry-preview-stage,.full-preview-stage,.table-wrap,.template-tabs{
    max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;
    touch-action:pan-x pan-y!important;overscroll-behavior:contain!important;
  }
  .jewelry-preview-stage{min-height:210px!important}
  .jewelry-preview-stage #pv{min-width:100%!important}
  .code-display-options{padding:7px!important;gap:6px!important}
  .code-display-options>label{font-size:clamp(10px,3.2vw,12px)!important;min-height:30px!important}
  .barcode-size-tools{grid-template-columns:1fr!important;gap:5px!important}
  .barcode-size-tools label{font-size:10px!important}
  .barcode-size-tools input[type=range]{height:30px!important;touch-action:pan-x!important}
  input[type=range]::-webkit-slider-thumb{width:22px;height:22px}

  /* Print action row: stay inside card even at 280px wide */
  .preview-action-panel{grid-template-columns:46px 80px minmax(0,1fr)!important;gap:4px!important;width:100%!important;min-width:0!important}
  .preview-action-panel .preview-qty-field,.preview-action-panel .preview-qty-field .field{width:46px!important;min-width:46px!important}
  .preview-action-panel .preview-qty-field input{width:46px!important;min-width:46px!important;max-width:46px!important;height:38px!important;padding:4px!important;font-size:12px!important}
  .barcode-mode-field.compact-mode,.barcode-switch.compact-switch{width:80px!important;max-width:80px!important;min-width:0!important}
  .barcode-switch.compact-switch{height:38px!important;min-height:38px!important;padding:4px 5px!important;gap:4px!important}
  .barcode-switch.compact-switch input{width:14px!important;height:14px!important;flex:0 0 14px!important}
  .barcode-switch.compact-switch b{font-size:8.8px!important;white-space:nowrap!important}
  .preview-action-buttons{min-width:0!important;width:100%!important}
  .preview-action-buttons .inline-print-actions{grid-template-columns:minmax(0,1fr) 42px!important;gap:4px!important;min-width:0!important}
  .preview-main-btn{min-width:0!important;width:100%!important;height:38px!important;min-height:38px!important;padding:3px!important;font-size:8px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important}
  .preview-main-btn:last-child{width:42px!important;max-width:42px!important;font-size:9.5px!important}
  .preview-action-panel label{font-size:8px!important;line-height:1!important;margin-bottom:2px!important}

  /* Templates */
  .templates{grid-template-columns:1fr!important;gap:7px!important}
  .template-topbar{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important}
  .template-topbar .template-tabs{overflow-x:auto!important;white-space:nowrap!important;touch-action:pan-x!important}
  .template-topbar .compact-add{white-space:nowrap!important;font-size:9px!important;padding:6px 7px!important}
  .template-topbar .search{grid-column:1/-1!important;width:100%!important}
  .true-template-thumb{height:132px!important}
  .template .toolbar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}
  .template .toolbar .btn{width:100%!important;font-size:10px!important}

  /* Lookup/Reports: filters stack, tables swipe horizontally */
  .filter-grid{grid-template-columns:1fr!important;gap:5px!important}
  .filter-grid input,.filter-grid select{width:100%!important}
  .table-wrap{border-radius:9px!important}
  table,.grid-table,.recent-table{min-width:760px!important}
  .grid-table th,.grid-table td,th,td{font-size:9.5px!important;padding:6px 7px!important;white-space:nowrap}
  .sort-head{font-size:9.5px!important}
  .report-actions,.history-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}
  .report-actions .btn,.history-actions .btn{width:100%!important}

  /* Printers */
  .printer{display:block!important;padding:10px!important}
  .printer>div{min-width:0!important}
  .printer .toolbar{display:grid!important;grid-template-columns:1fr 1fr!important}
  .printer .toolbar>*{min-width:0!important;width:100%!important}

  /* Settings: compact but readable */
  .settings-sections{gap:7px!important}
  .check-grid{grid-template-columns:1fr!important;gap:5px!important}
  .check-card{min-height:54px!important;padding:7px!important}
  .check-card b{font-size:11px!important}
  .check-card small{font-size:9px!important}
  .unit-service-tabs{grid-template-columns:1fr 1fr!important;gap:5px!important}
  .unit-toolbar{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important}
  .unit-toolbar .btn{white-space:nowrap!important}
  .license-card{padding:10px!important}
  .license-head h3{font-size:16px!important}
  .license-activate{grid-template-columns:1fr!important;gap:6px!important}
  .settings-savebtn{width:100%!important;min-width:0!important}

  /* Shipping / livestream */
  .provider-list,.shipping-grid,.live-config-grid{grid-template-columns:1fr!important;gap:6px!important}
  .provider-card{grid-template-columns:46px minmax(0,1fr) auto!important;gap:6px!important;padding:7px!important}
  .provider-logo{width:44px!important;height:38px!important}
  .provider-card b{font-size:11px!important}
  .provider-card small{font-size:9px!important}
  .provider-card .btn{font-size:9px!important;padding:6px!important;min-width:60px!important}
  .ship-connect-grid{grid-template-columns:1fr!important;gap:5px!important}
  .ship-connect-actions{grid-template-columns:1fr 1fr!important;gap:5px!important}
  .ship-connect-actions .connection-status{grid-column:1/-1!important}
  .live-option-row{grid-template-columns:1fr!important;gap:5px!important}
  .live-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
  .live-summary .card{padding:6px!important}

  /* Touch scrollbars: wide enough to grab where browser exposes them */
  .table-wrap,.jewelry-preview-stage,.full-preview-stage,.template-tabs{
    scrollbar-color:#ef5a3c #fff0e5;scrollbar-width:auto;
  }
  .table-wrap::-webkit-scrollbar,.jewelry-preview-stage::-webkit-scrollbar,.full-preview-stage::-webkit-scrollbar,.template-tabs::-webkit-scrollbar{height:18px;width:18px}
  .table-wrap::-webkit-scrollbar-thumb,.jewelry-preview-stage::-webkit-scrollbar-thumb,.full-preview-stage::-webkit-scrollbar-thumb,.template-tabs::-webkit-scrollbar-thumb{background:#ef5a3c;border:3px solid #fff0e5;border-radius:999px;min-width:44px;min-height:44px}
}

@media (max-width:330px){
  header b{font-size:16px!important}
  .head-actions .btn{font-size:10px!important;padding:6px 7px!important}
  #menuBtn{width:34px;height:34px}
  .preview-action-panel{grid-template-columns:42px 74px minmax(0,1fr)!important;gap:3px!important}
  .preview-action-panel .preview-qty-field,.preview-action-panel .preview-qty-field .field{width:42px!important;min-width:42px!important}
  .preview-action-panel .preview-qty-field input{width:42px!important;min-width:42px!important;max-width:42px!important}
  .barcode-mode-field.compact-mode,.barcode-switch.compact-switch{width:74px!important;max-width:74px!important}
  .barcode-switch.compact-switch b{font-size:8.2px!important}
  .preview-action-buttons .inline-print-actions{grid-template-columns:minmax(0,1fr) 38px!important}
  .preview-main-btn{font-size:7.4px!important}
  .preview-main-btn:last-child{width:38px!important;max-width:38px!important;font-size:9px!important}
  .home-action b{font-size:10px!important}
}

/* ===== V1.3.11 SETTINGS CLEAN RESPONSIVE ===== */
.settings-page{
  display:grid!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.settings-page>.card{
  margin:0!important;
  padding:16px!important;
  border:1px solid #f0c6a5!important;
  border-radius:16px!important;
  background:#fffdfb!important;
  box-shadow:0 4px 16px rgba(140,75,25,.06)!important;
  min-width:0!important;
}
.settings-page>.card>h3{
  margin:0 0 12px!important;
  color:#d85c12!important;
  font-size:18px!important;
  line-height:1.2!important;
}
.settings-page label{
  min-width:0!important;
  color:#555!important;
  font-size:12px!important;
  line-height:1.2!important;
}
.settings-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.settings-page select,
.settings-page textarea{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  margin-top:5px!important;
  padding:9px 11px!important;
  border:1px solid #e9a977!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#222!important;
  font:inherit!important;
  font-size:14px!important;
  outline:none!important;
}
.settings-page input:focus,.settings-page select:focus,.settings-page textarea:focus{
  border-color:#e76c24!important;
  box-shadow:0 0 0 2px rgba(231,108,36,.12)!important;
}
.settings-page input[type="checkbox"]{
  width:18px!important;
  height:18px!important;
  margin:1px 0 0!important;
  flex:0 0 18px!important;
  accent-color:#e96520!important;
}
.business-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
.settings-page .check-card{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
  min-height:58px!important;
  padding:10px 12px!important;
  border:1px solid #edaa7b!important;
  border-radius:12px!important;
  background:#fffaf6!important;
}
.settings-page .check-card span{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  gap:2px!important;
}
.settings-page .check-card b{font-size:13px!important;line-height:1.15!important;color:#202020!important}
.settings-page .check-card small{font-size:10px!important;color:#777!important;line-height:1.1!important}
.company-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px 14px!important;
}
.company-grid>label:last-child{grid-column:1/-1!important}
.show-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:10px!important;
}
.settings-page .show-grid .check-card{
  min-height:42px!important;
  padding:8px 10px!important;
  flex-direction:row!important;
}
.settings-page .show-grid .check-card span{
  display:block!important;
  font-size:12px!important;
  color:#333!important;
  white-space:normal!important;
}
.settings-unit-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:7px!important;
  margin:0 0 10px!important;
}
.settings-unit-tabs .btn{
  min-height:38px!important;
  padding:8px 13px!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.unit-add-row{
  display:grid!important;
  grid-template-columns:minmax(180px,320px) auto!important;
  gap:8px!important;
  align-items:end!important;
  margin-bottom:8px!important;
}
.unit-add-row input{margin-top:0!important}
.unit-add-row .btn{min-height:42px!important;white-space:nowrap!important}
.unit-list{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin:7px 0 10px!important;
}
.unit-chip{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:32px!important;
  padding:5px 9px!important;
  border:1px solid #ef5350!important;
  border-radius:999px!important;
  background:#c9f3df!important;
  font-size:12px!important;
}
.unit-chip button{
  border:0!important;
  background:transparent!important;
  color:#a51d1d!important;
  font-size:16px!important;
  line-height:1!important;
  padding:0!important;
  cursor:pointer!important;
}
.settings-page .card>label:has(#setDefUnit){
  display:grid!important;
  grid-template-columns:max-content minmax(140px,260px)!important;
  align-items:center!important;
  gap:10px!important;
  margin-top:6px!important;
}
.settings-page .card>label:has(#setDefUnit) select{margin-top:0!important}
.settings-format-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  max-width:760px!important;
}
.license-card{padding:16px!important}
.license-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.license-head h3{margin:0 0 6px!important;font-size:18px!important;color:#d85c12!important}
.license-state{font-size:13px!important;color:#e45d14!important}
.license-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:5px 10px!important;
  border-radius:999px!important;
  background:#edf9f2!important;
  font-size:11px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.license-meta{margin:8px 0 10px!important;font-size:12px!important;color:#666!important}
.license-activate{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:end!important;
}
.license-activate input{margin-top:0!important}
.license-activate .btn{min-width:132px!important;min-height:42px!important}
.settings-save-bar{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  position:static!important;
}
.save-settings-btn{
  min-width:220px!important;
  min-height:44px!important;
  padding:9px 16px!important;
  font-size:13px!important;
}

@media (max-width:980px){
  .business-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .show-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:600px){
  .settings-page{gap:8px!important}
  .settings-page>.card{padding:10px!important;border-radius:12px!important}
  .settings-page>.card>h3{font-size:15px!important;margin-bottom:8px!important}
  .business-grid{grid-template-columns:1fr!important;gap:6px!important}
  .settings-page .check-card{min-height:48px!important;padding:7px 9px!important}
  .settings-page .check-card b{font-size:11.5px!important}
  .settings-page .check-card small{font-size:9px!important}
  .company-grid{grid-template-columns:1fr!important;gap:7px!important}
  .company-grid>label:last-child{grid-column:auto!important}
  .settings-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .settings-page select,.settings-page textarea{
    min-height:40px!important;
    margin-top:4px!important;
    padding:8px 9px!important;
    font-size:13px!important;
  }
  .show-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  .settings-page .show-grid .check-card{min-height:40px!important;padding:6px 7px!important}
  .settings-page .show-grid .check-card span{font-size:10px!important}
  .settings-unit-tabs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
    margin-bottom:7px!important;
  }
  .settings-unit-tabs .btn{width:100%!important;min-width:0!important;padding:7px 5px!important;font-size:10.5px!important}
  .unit-add-row{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;margin-bottom:6px!important}
  .unit-add-row .btn{padding:7px 9px!important;font-size:10px!important}
  .unit-list{gap:5px!important;margin:6px 0 8px!important}
  .unit-chip{min-height:29px!important;padding:4px 7px!important;font-size:10.5px!important}
  .settings-page .card>label:has(#setDefUnit){grid-template-columns:1fr!important;gap:4px!important}
  .settings-format-grid{grid-template-columns:1fr!important;gap:7px!important}
  .license-card{padding:10px!important}
  .license-head{gap:6px!important}
  .license-head h3{font-size:15px!important}
  .license-state,.license-meta{font-size:10.5px!important}
  .license-badge{font-size:9px!important;padding:4px 7px!important;min-height:24px!important}
  .license-activate{grid-template-columns:1fr!important;gap:6px!important}
  .license-activate .btn{width:100%!important;min-width:0!important}
  .settings-save-bar{width:100%!important}
  .save-settings-btn{width:100%!important;min-width:0!important;min-height:42px!important}
}
@media (max-width:300px){
  .show-grid{grid-template-columns:1fr!important}
  .settings-unit-tabs{grid-template-columns:1fr 1fr!important}
  .unit-add-row{grid-template-columns:1fr!important}
  .unit-add-row .btn{width:100%!important}
}
