/* 1397: source artwork unchanged. Exact logo blue #0755B8, IP yellow #F8C52E. */
:root,html[data-theme="brand"]{--brand:#0755b8;--brand-dark:#0a4ea7;--yellow:#f8c52e;--bg:#f3f6fc;--paper:#fff;--ink:#172c4a;--muted:#5c6c84;--line:#dbe4f1;--light:#e9f1ff;--green:#226649;--shadow:0 8px 28px #0a4ea709;--radius:22px}
html[data-theme] body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink)}
html[data-theme] button.primary,html[data-theme] .login-link{background:var(--brand);border-color:var(--brand);color:#fff}
html[data-theme] input,html[data-theme] select,html[data-theme] textarea{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme] input:focus,html[data-theme] select:focus,html[data-theme] textarea:focus{outline:3px solid #0755b833;border-color:var(--brand)}
html[data-theme] button:focus-visible,html[data-theme] a:focus-visible{outline:3px solid #0755b8;outline-offset:4px}
html[data-theme] button.green{background:#226649;border-color:#226649;color:#fff}
html[data-theme] button.danger{color:#aa322b}
html[data-theme] .diff{color:#aa322b}html[data-theme] .good{color:#226649}
html[data-theme] .badge.orange{background:#fff0b8;color:#6b5100}html[data-theme] .badge.gray{background:#edf1f6;color:#526078}
html[data-theme] .badge{background:#e5f2ea;color:#205b40;border-radius:999px}
html[data-theme] .notice{background:#fff5d0;color:#675319}html[data-theme] .notice.success{background:#e8f1ff;color:#124c98}
html[data-theme] .cloud-message{background:#e8f1ff;color:#124c98}html[data-theme] .cloud-message.error{background:#fff0e3;color:#863e19}
html[data-theme] .review-box{background:var(--light);border-color:var(--brand)}
html[data-theme] .batch-entry{background:var(--light)}
html[data-theme] .product .art,html[data-theme] .catalog-photo{background:#f8f4e7}
html[data-theme] .product .art.brown{background:#eee7e2}html[data-theme] .product .art.duo{background:#fff0ce}
html[data-theme] .product .art.tea{background:#e8f0e5}html[data-theme] .product .art.milk{background:#f6efdf}
html[data-theme] .product:hover{border-color:var(--brand)}
html[data-theme] .nav button.active{color:var(--brand);border-color:var(--brand)}
html[data-theme] .hero{background:var(--brand);color:#fff}html[data-theme] .hero .muted{color:#dbe8ff}
html[data-theme] .hero .badge{background:#ffffff24;color:#fff}html[data-theme] .hero button{background:var(--yellow);color:#152e54}
html[data-theme] .hero-art{opacity:.95;transform:rotate(-7deg);right:12px;top:26px;width:120px;height:140px}
html[data-theme] .hero-art img{width:100%;height:100%;object-fit:contain}
html[data-theme] .hero h2,html[data-theme] .hero p{position:relative;z-index:1;max-width:calc(100% - 90px)}
html[data-theme] .hero button{position:relative;z-index:1}
html[data-theme] .app-brand{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
html[data-theme] .brand-lockup{display:block;object-fit:contain;object-position:left center;width:170px;max-width:100%;height:auto}
html[data-theme] .app-brand .brand-lockup{width:170px;margin:-13px 0 -8px}
html[data-theme] .app-brand small{font-size:var(--text-meta);font-weight:700;letter-spacing:1.5px;color:var(--muted)}
html[data-theme] .brand-mascot{object-fit:contain;height:auto;display:block}
html[data-theme] .auth-layout{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;max-width:1440px;margin:auto;padding:56px 7%;gap:7%}
html[data-theme] .auth-hero{position:relative;min-width:0;padding:28px 0}
html[data-theme] .auth-hero>.brand-lockup{width:210px;margin-left:-12px;margin-top:-10px;margin-bottom:32px}
html[data-theme] .auth-hero h1{font-size:var(--text-title);line-height:1.15;letter-spacing:-1.8px;max-width:540px}
html[data-theme] .auth-hero>p{margin-top:20px;font-size:var(--text-body);line-height:1.8;color:var(--muted);max-width:430px}
html[data-theme] .auth-hero>.brand-mascot{width:250px;margin:24px 0 -15px -15px}
html[data-theme] .auth-card{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:28px;padding:36px;box-shadow:var(--shadow)}
html[data-theme] .auth-card h2{font-size:var(--text-title);letter-spacing:-.6px;margin-bottom:8px}
html[data-theme] .auth-card>p{font-size:var(--text-body);color:var(--muted);margin:0 0 25px}
html[data-theme] .auth-card .field{display:block;margin-bottom:18px}
html[data-theme] .auth-card input{min-height:50px}
html[data-theme] .auth-card button.primary{width:100%;min-height:50px}
html[data-theme] .auth-message{font-size:var(--text-body);color:#92362b;margin:12px 0;line-height:1.6}
html[data-theme] .profile-name{font-size:var(--text-title);font-weight:700;color:var(--ink)}
html[data-theme] .profile-card{background:var(--light);border:1px solid var(--line);padding:18px;border-radius:16px}
html[data-theme="brand"] .shell{max-width:1540px;grid-template-columns:238px minmax(0,1fr)}
html[data-theme="brand"] aside{background:#fff;border-right:1px solid var(--line);padding:32px 24px}
html[data-theme="brand"] .card,html[data-theme="brand"] .catalog-card{border-radius:24px;box-shadow:0 8px 24px #163c6807}
html[data-theme="brand"] .stat{border:0;border-radius:20px;padding:20px;background:#fff;box-shadow:0 3px 16px #163c6805}
html[data-theme="brand"] .stat strong{color:#0755b8;font-size:var(--text-title)}
html[data-theme="brand"] .stat:first-child{background:#fff0b8}
html[data-theme="brand"] .nav{background:#ffffffb8;border:1px solid var(--line);border-radius:16px;padding:5px;gap:4px}
html[data-theme="brand"] .nav button{border:0;border-radius:11px;padding:11px 15px}
html[data-theme="brand"] .nav button.active{background:#0755b8;color:#fff}
html[data-theme="brand"] .product{border-radius:19px;box-shadow:0 5px 20px #1e497e06}
html[data-theme="brand"] .product .art{border-radius:14px}
html[data-theme="brand"] .auth-layout{background:radial-gradient(ellipse at 0% 88%,#fff2bd 0,transparent 56%)}
html[data-theme="brand"] .auth-hero h1{color:#0755b8;font-weight:700}
html[data-theme="brand"] .auth-card{box-shadow:0 20px 70px #0755b80b}
@media(max-width:1100px){html[data-theme="brand"] .shell{grid-template-columns:200px minmax(0,1fr)}html[data-theme] .auth-layout{padding:35px 5%;gap:6%}html[data-theme] .auth-card{padding:28px}html[data-theme] .stat strong{font-size:var(--text-title)}}
@media(max-width:760px){
 html[data-theme] .shell{display:block}html[data-theme] aside{padding:14px 17px;background:var(--paper);border-right:0;border-bottom:1px solid var(--line)}
 html[data-theme] .app-brand{display:flex;flex-direction:row;align-items:center;gap:12px;background:transparent;border:0;padding:0;box-shadow:none;transform:none}
 html[data-theme] .app-brand .brand-lockup{width:100px;margin:-10px 0 -8px}
 html[data-theme] .app-brand small{font-size:var(--text-meta);letter-spacing:1px}
 html[data-theme] .nav{border-radius:0;position:fixed;margin:0;padding:6px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border:0;border-top:1px solid var(--line);box-shadow:0 -4px 20px #14376209;background:var(--paper);gap:2px;overflow-x:auto}
 html[data-theme] .nav button{border-radius:9px;padding:7px 2px;min-height:48px;font-size:var(--text-meta)}
 html[data-theme] .stat{padding:13px 10px;border-radius:14px}
 html[data-theme] .stat strong{font-size:var(--text-title)}
 html[data-theme] .heading h1{font-size:var(--text-title)}
 html[data-theme] .hero{padding:22px}
 html[data-theme] .hero h2{font-size:var(--text-title)}
 html[data-theme] .hero-art{width:103px;height:120px;right:4px;top:30px}
 html[data-theme] .hero h2,html[data-theme] .hero p{max-width:calc(100% - 78px)}
 html[data-theme] .card,html[data-theme] .catalog-card,html[data-theme] .round-card{border-radius:18px}
 html[data-theme] .view-sale .product{padding:9px;border-radius:13px}
 html[data-theme] .view-sale .product.selected{padding:8px}
 html[data-theme] .view-sale .product .art{border-radius:8px}
 html[data-theme] .view-sale .product h3{font-size:var(--text-meta);min-height:36px}
 html[data-theme] .view-sale .product .price{font-size:var(--text-meta)}
 html[data-theme] .basket{border-radius:16px;box-shadow:0 -5px 25px #0755b817}
 html[data-theme] .auth-layout{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:24px 20px 36px;min-height:100dvh;background:var(--bg)}
 html[data-theme] .auth-hero{padding:0 0 0;min-height:190px}
 html[data-theme] .auth-hero>.brand-lockup{width:130px;margin:-10px 0 8px -8px}
 html[data-theme] .auth-hero h1{font-size:var(--text-title);letter-spacing:-1.2px;max-width:calc(100% - 92px)}
 html[data-theme] .auth-hero>p{font-size:var(--text-meta);line-height:1.6;margin-top:12px;max-width:calc(100% - 90px)}
 html[data-theme] .auth-hero>.brand-mascot{position:absolute;right:-20px;bottom:-3px;width:145px;margin:0;pointer-events:none}
 html[data-theme] .auth-card{padding:25px 22px;border-radius:22px}
 html[data-theme] .auth-card h2{font-size:var(--text-title)}
 html[data-theme] .auth-card>p{font-size:var(--text-meta);margin-bottom:20px}
 html[data-theme="brand"] .auth-layout{background:radial-gradient(ellipse at 0% 10%,#fff2bd 0,transparent 52%),#f3f6fc}
}
@media(prefers-reduced-motion:reduce){html[data-theme] *,html[data-theme] *::before,html[data-theme] *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Actual login uses an app-brand wrapper; preserve the same art treatment. */
html[data-theme] .auth-hero .app-brand{align-items:flex-start;margin-bottom:30px}
html[data-theme] .auth-hero .app-brand .brand-lockup{width:210px;max-height:none;margin:-10px 0 -8px}
html[data-theme] .auth-hero .app-brand span{font-size:var(--text-meta);letter-spacing:1.5px;color:var(--muted)}
html[data-theme] .auth-layout.password-layout{display:block;max-width:620px;min-height:100dvh;padding:44px 24px;background:var(--bg)}
html[data-theme] .password-layout .app-brand{margin-bottom:24px}
@media(max-width:760px){
 html[data-theme] .auth-hero .app-brand{display:flex;width:fit-content;flex-direction:row;align-items:center;margin-bottom:15px;gap:9px}
 html[data-theme] .auth-hero .app-brand .brand-lockup{width:125px;margin:-7px 0;max-height:none}
 html[data-theme] .auth-hero .app-brand span{font-size:var(--text-meta);max-width:100px}
 html[data-theme] .auth-hero>p{display:block}
 html[data-theme] .auth-hero>.brand-mascot{display:block;height:auto}
 html[data-theme] .auth-layout.password-layout{padding:24px 16px}
}
/* Keep the mobile sales workspace focused and usable on narrow screens. */
@media(max-width:760px){
 html[data-theme] .view-sale aside{display:none}
 html[data-theme] .view-sale .test-data-notice{display:none}
 html[data-theme] .view-sale .sale-layout.inactive{padding-bottom:0}
 html[data-theme] .view-sale .sale-layout.inactive .basket{position:static;max-height:none;margin-top:18px;box-shadow:none}
 html[data-theme] .view-sale .heading{gap:8px}
 html[data-theme] .view-sale .heading .badge{white-space:nowrap}
}
@media(max-width:380px){
 html[data-theme] .view-home .heading{flex-wrap:wrap;gap:8px}
 html[data-theme] .view-home .heading>div{flex:1 1 100%}
 html[data-theme] .view-home .heading>.badge{white-space:nowrap}
}

/* Shared compact-screen safeguards for long names, IDR totals, and safe areas. */
html[data-theme] .stat,html[data-theme] .heading>div,html[data-theme] .card-title>div,html[data-theme] .row>div:first-child{min-width:0}
html[data-theme] .stat strong,html[data-theme] .profile-name,html[data-theme] .account-card b{overflow-wrap:anywhere}
html[data-theme] .product h3{overflow-wrap:anywhere}
html[data-theme] .auth-card input{min-width:0;max-width:100%}
@media(max-width:760px){
 html[data-theme] .heading{flex-wrap:wrap}
 html[data-theme] .heading>div{flex:1 1 180px}
 html[data-theme] .row>div:first-child{overflow-wrap:anywhere}
 html[data-theme] .row>strong{flex-shrink:0}
 html[data-theme] .mini-metrics{flex-wrap:wrap;gap:12px 20px}
 html[data-theme] .account-card{gap:6px 8px}
 html[data-theme] .topbar .demo-toolbar{gap:6px}
 html[data-theme] .nav button{min-width:0}
}
@media(max-width:380px){
 html[data-theme] .auth-layout{padding:22px 14px 32px;gap:18px}
 html[data-theme] .auth-hero{min-height:178px}
 html[data-theme] .auth-hero h1{font-size:var(--text-title);letter-spacing:-1px;max-width:calc(100% - 72px);margin-bottom:14px}
 html[data-theme] .auth-hero>p{max-width:calc(100% - 78px);font-size:var(--text-meta);line-height:1.6}
 html[data-theme] .auth-hero>.brand-mascot{width:116px;right:-12px;bottom:0}
 html[data-theme] .auth-hero .app-brand{gap:6px}
 html[data-theme] .auth-hero .app-brand .brand-lockup{width:112px}
 html[data-theme] .auth-hero .app-brand span{font-size:var(--text-meta);max-width:110px}
 html[data-theme] .auth-card{padding:22px 17px;border-radius:19px}
 html[data-theme] .stat{padding:12px 8px}
 html[data-theme] .stat strong{font-size:var(--text-section);letter-spacing:-.5px}
 html[data-theme] .stat small{font-size:var(--text-meta)}
 html[data-theme] .heading h1{font-size:var(--text-title)}
 html[data-theme] .hero{padding:19px}
 html[data-theme] .hero h2{font-size:var(--text-title)}
 html[data-theme] .view-sale .product{padding:8px}
 html[data-theme] .view-sale .product.selected{padding:7px}
 html[data-theme] .view-sale .product h3{font-size:var(--text-meta)}
 html[data-theme] .view-sale .product .price{font-size:var(--text-meta)}
}

/* Typography is assigned by purpose, with a separate emphasis for tasks and figures. */
:root{--text-meta:12px;--text-body:14px;--text-section:16px;--text-title:22px;--text-number:24px}
html[data-theme="brand"] body{font-size:var(--text-body);line-height:1.6;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
html[data-theme="brand"] :is(h1,h2,h3){letter-spacing:0;line-height:1.4}
html[data-theme="brand"] :is(h1,.heading h1,.view-sale .heading h1,.access-card h1){font-size:var(--text-title);font-weight:700;letter-spacing:-.3px;line-height:1.35}
html[data-theme="brand"] :is(h2,h3,.round-card h3){font-size:var(--text-section);font-weight:600}
html[data-theme="brand"] :is(b,strong){font-weight:600}
html[data-theme="brand"] :is(.stat strong,.mini-metrics b,.sum strong,.basket .sum strong){font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--text-number);font-weight:700;letter-spacing:-.6px;line-height:1.2;font-variant-numeric:lining-nums tabular-nums}
html[data-theme="brand"] :is(small,.stat small,.stat small.foot,.row small,.field small,.product-photo-editor small,.basket .basket-items.expanded .row small){font-size:var(--text-meta);line-height:1.5;font-weight:400}
html[data-theme="brand"] :is(.eyebrow,.topbar .eyebrow,.app-brand small,.app-brand span,.auth-hero .app-brand span){font-size:var(--text-meta);font-weight:500;letter-spacing:.04em;line-height:1.5}
html[data-theme="brand"] :is(.nav button,.demo-toolbar button,.badge,.heading .badge,.account-card .badge,.account-card small,.status-pill,.round-picker,.step,.basket .selection-summary){font-size:var(--text-meta);line-height:1.5}
html[data-theme="brand"] :is(.account-card b,.account-card button,.heading p,.auth-hero>p,.auth-card>p,.auth-message,dialog p,.scope-list,.check,.empty,.round-card p,.review-box p,.audit,.product h3,.view-sale .product h3,.product .price,.view-sale .product .price,.actions button,.catalog-info .actions button,.cloud-message button,.view-members .heading button,.mode-switch button,.basket-toggle,.basket-tools .quiet,.tabchips button){font-size:var(--text-body);line-height:1.5}
html[data-theme="brand"] :is(input,select,textarea,.product-photo-editor input){font-size:var(--text-section);line-height:1.5}
html[data-theme="brand"] .round-picker select{font-size:var(--text-body);line-height:1.5}
html[data-theme="brand"] .heading{margin:18px 0 18px;gap:10px}
html[data-theme="brand"] .heading p{margin-top:6px;color:var(--muted);font-weight:400}
html[data-theme="brand"] .hero{padding:24px}
html[data-theme="brand"] .hero h2{font-size:var(--text-title);font-weight:700;letter-spacing:-.3px;line-height:1.35}
html[data-theme="brand"] .hero p{line-height:1.6;font-weight:400}
html[data-theme="brand"] .hero button{min-height:46px;font-size:var(--text-body);font-weight:600}
html[data-theme="brand"] .hero-art{top:48px;width:110px;height:130px}
html[data-theme="brand"] .stat strong{margin-top:8px}
html[data-theme="brand"] .stat small.foot{display:block;margin-top:6px;font-size:var(--text-meta)}
html[data-theme="brand"] .stat strong>small{display:inline;font-size:var(--text-meta);margin-left:3px;letter-spacing:0}
html[data-theme="brand"] .product{display:flex;flex-direction:column;align-items:stretch}
html[data-theme="brand"] .product .art{flex-shrink:0}
html[data-theme="brand"] .view-sale .product h3{min-height:3em;font-weight:600}
html[data-theme="brand"] .product .price{margin-top:auto;padding-top:8px;font-weight:600;gap:4px;flex-wrap:wrap}
html[data-theme="brand"] .product .price .plus{flex-shrink:0}
html[data-theme="brand"] .topbar{gap:8px;margin-bottom:10px;flex-wrap:wrap}
html[data-theme="brand"] #cloud-status .cloud-message.success:not(:has(button)){padding:0;background:none;color:#566b7d;border:0;border-radius:0;margin:0 0 10px;font-size:var(--text-meta);justify-content:flex-start;gap:7px}
html[data-theme="brand"] #cloud-status .cloud-message.success:not(:has(button))::before{content:"";width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#2d8065;margin-top:6px}
html[data-theme="brand"] .test-data-notice{background:#eef2f7;color:var(--muted);padding:9px 12px;margin:10px 0;font-size:var(--text-meta);border-radius:10px}
html[data-theme="brand"] .test-data-notice summary{cursor:pointer;min-height:24px;line-height:24px}
html[data-theme="brand"] .test-data-notice summary span{float:right;font-weight:400;color:var(--muted)}
html[data-theme="brand"] .test-data-notice p{margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:var(--text-meta);line-height:1.6}
html[data-theme="brand"] .auth-hero h1{font-size:32px;line-height:1.25;font-weight:700;letter-spacing:-.5px}
html[data-theme="brand"] .auth-card h2,html[data-theme="brand"] .profile-name{font-size:var(--text-title);font-weight:700}
html[data-theme="brand"] #install-dialog{font-family:inherit;font-size:var(--text-body);line-height:1.6}
html[data-theme="brand"] #install-dialog :is(h2,h3){font-size:var(--text-section);font-weight:600;line-height:1.4;letter-spacing:0}
html[data-theme="brand"] #install-dialog .install-eyebrow{font-size:var(--text-meta);font-weight:500;letter-spacing:.04em}
@media(max-width:760px){
 html[data-theme="brand"] .demo{display:none}
 html[data-theme="brand"] .view-sale .demo{display:block;background:#e9eef6;color:#596a80;padding:6px 10px;font-size:var(--text-meta)}
 html[data-theme="brand"] .shell>aside{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;min-height:74px}
 html[data-theme="brand"] .view-sale .shell>aside{display:none}
 html[data-theme="brand"] .shell>aside .app-brand{flex:0 0 auto}
 html[data-theme="brand"] .shell>aside .app-brand .brand-lockup{width:105px;margin:-8px 0}
 html[data-theme="brand"] .shell>aside .app-brand span{display:none}
 html[data-theme="brand"] .account-card{display:flex;gap:7px;padding:0;justify-content:flex-end;border:0}
 html[data-theme="brand"] .account-card>b,html[data-theme="brand"] .account-card>small{display:none}
 html[data-theme="brand"] .account-card .badge{display:inline-flex;font-size:var(--text-meta);font-weight:400;padding:4px 7px}
 html[data-theme="brand"] .account-card button{min-height:44px;padding:8px 10px;background:#f3f6fc;border:1px solid var(--line);border-radius:12px;font-size:var(--text-body)}
 html[data-theme="brand"] .topbar{margin:0 0 8px;min-height:38px;flex-wrap:nowrap;align-items:center}
 html[data-theme="brand"] .topbar .eyebrow{color:var(--muted);font-weight:400;letter-spacing:0;font-size:var(--text-meta)}
 html[data-theme="brand"] .topbar .demo-toolbar{gap:4px;flex-shrink:0}
 html[data-theme="brand"] .topbar .demo-toolbar button{background:transparent;border:0;padding:8px 5px;font-weight:500;min-height:38px;white-space:nowrap}
 html[data-theme="brand"] .round-picker{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:8px;margin:12px 0;font-size:var(--text-meta)}
 html[data-theme="brand"] .round-picker select{margin:0;padding:10px;min-height:44px;font-size:var(--text-body)}
 html[data-theme="brand"] .heading{align-items:flex-start;margin:18px 0 18px}
 html[data-theme="brand"] .heading>div{flex:1 1 210px}
 html[data-theme="brand"] .heading>.badge{margin-top:3px}
 html[data-theme="brand"] .hero{padding:20px}
 html[data-theme="brand"] .hero-art{width:98px;height:116px;right:8px;top:50px}
 html[data-theme="brand"] .hero h2,html[data-theme="brand"] .hero p{max-width:calc(100% - 82px)}
 html[data-theme="brand"] .hero h2{font-size:var(--text-title)}
 html[data-theme="brand"] .stat{padding:14px 12px}
 html[data-theme="brand"] .stat strong{font-size:var(--text-number)}
 html[data-theme="brand"] .stats{gap:8px}
 html[data-theme="brand"] .nav button{min-height:50px;font-size:var(--text-meta);font-weight:500}
 html[data-theme="brand"] .nav button.active{font-weight:600}
 html[data-theme="brand"] .basket .sum{margin:8px 0}
 html[data-theme="brand"] .view-sale .products{grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-theme="brand"] .view-sale .product{padding:9px}
 html[data-theme="brand"] .view-sale .product h3{font-size:var(--text-body);min-height:3em}
 html[data-theme="brand"] .view-sale .product .price{font-size:var(--text-body);white-space:nowrap;gap:2px}
 html[data-theme="brand"] .view-sale .product .plus{width:16px;height:16px;font-size:var(--text-body)}
}
@media(max-width:380px){
 html[data-theme="brand"] .topbar .eyebrow{max-width:128px}
 html[data-theme="brand"] .view-sale .products{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme="brand"] .view-home .heading>div{flex:1 1 100%}
 html[data-theme="brand"] .hero h2,html[data-theme="brand"] .hero p{max-width:calc(100% - 72px)}
 html[data-theme="brand"] .hero-art{width:85px;right:2px}
 html[data-theme="brand"] .auth-hero h1{font-size:28px}
}

html[data-theme="brand"] .basket .card-title h2{font-size:var(--text-section);font-weight:600;line-height:1.4}
@media(max-width:760px){
 html[data-theme="brand"] .view-sale .round-picker{display:none}
}
@media(max-width:480px){
 html[data-theme="brand"] .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme="brand"] .stats .stat:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:center}
 html[data-theme="brand"] .stats .stat:first-child>strong{grid-column:2;grid-row:1/3;margin:0;text-align:right}
 html[data-theme="brand"] .stats .stat:first-child>small{grid-column:1}
 html[data-theme="brand"] .stats .stat:first-child>small.foot{margin-top:3px}
}

/* The role label doubles as the shared account entry for every role. */
html[data-theme="brand"] .account-card button.role-account{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:8px 13px;border:1px solid var(--line);border-radius:999px;background:#f3f6fc;color:var(--ink);font-size:var(--text-body);font-weight:500;line-height:1.5}
html[data-theme="brand"] .role-account .role-chevron{font-size:var(--text-section);font-weight:400;line-height:1;color:var(--muted)}
html[data-theme="brand"] .view-me .heading>[data-action="profile"]{min-height:44px;font-size:var(--text-body);white-space:nowrap;color:var(--brand)}

/* Short language controls keep the existing role/account hierarchy intact. */
html[data-theme="brand"] button.language-toggle{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--brand);font-size:var(--text-body);white-space:nowrap}
html[data-theme="brand"] .auth-card>.language-toggle{float:right;margin:-5px 0 12px 12px}
html[data-theme="brand"] .language-settings{margin:20px 0;padding:16px 0;border-block:1px solid var(--line)}
html[data-theme="brand"] .language-settings .label{margin:0 0 10px}
html[data-theme="brand"] .language-options{display:grid;grid-template-columns:1fr 1.5fr;gap:8px}
html[data-theme="brand"] .language-options button{min-height:44px;padding:8px;font-size:var(--text-body);line-height:1.5}
html[data-theme="brand"] .language-options button[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:white}
html[data-theme="brand"] .language-settings .tip-line{margin:10px 0 0}
html[lang="id-ID"] :is(.row,.card-title,.heading,.actions,.fields)>*{min-width:0}
html[lang="id-ID"] .nav button{white-space:normal;overflow-wrap:normal;line-height:1.4}
html[lang="id-ID"] :is(.row b,.card-title h2,.hero h2,.product h3){overflow-wrap:break-word}
@media(max-width:760px){
 html[data-theme="brand"] .account-card button.language-toggle{padding:7px 9px;min-width:48px}
 html[data-theme="brand"] .shell>aside{gap:8px}
 html[data-theme="brand"] .account-card{gap:6px}
 html[lang="id-ID"] .topbar{flex-wrap:wrap}
 html[lang="id-ID"] .topbar .eyebrow{max-width:none}
 html[lang="id-ID"] .topbar .demo-toolbar{margin-left:auto}
 html[lang="id-ID"] .nav button{padding-left:3px;padding-right:3px}
 html[lang="id-ID"] .test-data-notice summary span{float:none;margin-left:8px;display:inline-block}
 html[lang="id-ID"] .round-picker{grid-template-columns:82px minmax(0,1fr)}
}
