/* Shared V4 presentation: a readable, restrained field-sales workspace. */
:root {
  --blue:#265bea; --blue-dark:#1949c6; --blue-light:#edf2ff;
  --ink:#202b3d; --muted:#617084; --line:#e7ebf1; --bg:#f5f6f8;
  --green:#147c58; --orange:#a65b09; --red:#bd3846; --radius:14px;
  --surface:#fff; --field-bg:#f8f9fb; --focus:#6588ed;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
}
body{background:#f0f2f5;color:var(--ink);font-size:14px}
button,input,select,textarea{font-family:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
::selection{background:#cfddff;color:#173575}
input,textarea{caret-color:var(--blue)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.number{font-family:"Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.phone{border:5px solid #253044;box-shadow:0 20px 54px #18273d1a;border-radius:42px;width:402px;height:min(844px,calc(100dvh - 62px));min-height:640px;background:var(--bg)}
.phone .statusbar{height:34px;padding:0 25px;background:#fff;font-size:12px}
.phone .island{width:82px;height:21px;top:5px}
.phone #app{height:calc(100% - 34px)}
.phone .sheet-backdrop{top:34px}
.app-header{height:61px;padding:8px 18px;background:#fff;border-bottom:1px solid #eff1f5}
.app-header h1{font-size:22px;line-height:1.3;letter-spacing:0;font-weight:700}
.app-header .brand-mark{width:32px;height:32px;font-size:22px;border-radius:9px;background:var(--blue);box-shadow:none}
.app-header .subtitle{display:none}
.header-title{gap:10px;min-width:0}
.header-title h1{overflow-wrap:anywhere}
.header-action{height:40px;min-height:40px;min-width:40px;width:40px;border-radius:12px}
.header-action .icon{width:21px;height:21px}
.ui-notice{background:#f3f5f8;color:#47576c}
.phone .header-text-button{font-size:13px;font-weight:650;border-radius:10px;min-height:40px;min-width:84px;padding:0 12px;box-shadow:none}
.page{padding:18px 16px 26px;font-size:14px;line-height:1.5}
.page.flush{padding:0 0 24px}
.page .page{padding:18px 16px 24px}
.page .grow{min-width:0}
.page h3{font-weight:650}
.page h2{letter-spacing:0}
.section-head{margin:24px 0 12px;gap:12px;min-height:28px}
.section-head h2{font-size:17px;font-weight:700;line-height:1.4}
.text-link{font-size:12px;min-height:32px;line-height:1.4;font-weight:500;gap:4px}
.section-head .text-link{color:#627087}
.section-head .text-link .icon{width:14px;height:14px}
.card{border:0;box-shadow:none;border-radius:var(--radius);padding:18px;background:var(--surface)}
.card.compact{padding:0 15px}
.card .card{border-radius:0;background:transparent;padding:0;box-shadow:none}
.primary{background:var(--blue);color:#fff;border:0;box-shadow:none;border-radius:12px;min-height:46px;font-size:14px;font-weight:650}
.primary:hover{background:var(--blue-dark)}
.secondary{background:var(--blue-light);color:#244ba3;border:0;border-radius:12px;min-height:46px;font-size:14px;font-weight:600;box-shadow:none}
.outline{border-color:#dbe2ec;background:#fff;border-radius:12px;color:#41526a;min-height:44px;font-size:13px}
.primary:disabled,.secondary:disabled,.outline:disabled{opacity:.48;cursor:not-allowed}
.bottom-nav{height:72px;padding:7px 8px 17px;border-top:1px solid var(--line);box-shadow:none;background:#fff}
.bottom-nav button{font-size:11px;gap:3px;color:#69768a;min-height:44px;position:relative}
.bottom-nav .icon{width:23px;height:23px;stroke-width:1.7}
.bottom-nav button.active{color:var(--blue);font-weight:700}
.bottom-nav button.active .icon{fill:#e8eeff;stroke-width:2}
.bottom-nav button.active:before{content:"";position:absolute;top:-7px;width:20px;height:3px;background:var(--blue);border-radius:0 0 4px 4px}
.home-indicator{width:90px;height:4px;bottom:6px;opacity:.8}
.help,.phone .help,.page>.help,.card>.help{font-size:12px;line-height:1.7;color:var(--muted)}
.hint{font-size:12px;line-height:1.7;padding:13px 14px;border:0;border-radius:10px;background:#edf2fa;color:#576a82;align-items:flex-start}
.hint .icon{margin-top:2px;flex-shrink:0}
.hint.warn{background:#fff4e7;color:#865417}
.tag{font-size:10px;font-weight:500;line-height:1.5;border-radius:5px;padding:3px 6px;white-space:nowrap}
.tag.blue{background:#edf2ff;color:#345db3}
.tag.green{background:#edf7f1;color:#227450}
.tag.orange{background:#fff2df;color:#975409}
.mini-label,.screen-title-description{font-size:12px;color:var(--muted)}

/* Home: the amount, frequent actions, then the next visit. */
.ui-greeting{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 15px}
.ui-greeting>div{min-width:0}
.ui-greeting h2{font-size:18px;font-weight:650;line-height:1.5;display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.ui-greeting sup,.ui-profile h2 sup{position:static;line-height:1;margin:0}
.ui-greeting p{font-size:12px;color:var(--muted);margin-top:3px}
.ui-checkin{display:flex;align-items:center;gap:5px;flex-shrink:0;font-size:11px;font-weight:600;color:#965c13;background:#fff4dc;min-height:34px;padding:0 9px;border-radius:9px}
.ui-checkin .icon{width:14px;height:14px}
.ui-account{padding:15px 19px 17px;background:var(--blue);color:#fff;border-radius:16px}
.ui-account-head{display:flex;align-items:center;justify-content:space-between}
.ui-account-head>button{display:flex;align-items:center;gap:5px;color:#fff;font-size:14px;font-weight:600;min-height:32px}
.ui-account-head .icon{width:14px;height:14px}
.ui-account .eye-button{width:36px;height:32px;min-height:32px;background:transparent;color:#f5f8ff;padding:5px}
.ui-account .eye-button svg{width:20px;height:20px}
.ui-account-total{display:block;text-align:left;width:100%;color:#fff;margin-top:8px}
.ui-account-total>span{display:block;font-size:12px;color:#e4ebff}
.ui-account-total>strong{display:block;font-size:33px;font-weight:650;line-height:1.3;margin-top:5px;letter-spacing:.015em}
.ui-account-split{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:14px;padding-top:13px;border-top:1px solid #ffffff32}
.ui-account-split button{text-align:left;color:#fff;min-width:0}
.ui-account-split span{font-size:11px;display:flex;align-items:center;gap:5px;color:#e4ebff}
.ui-account-split span .icon{width:10px;height:10px;opacity:.8}
.ui-account-split b{display:block;font-size:19px;line-height:1.2;margin-top:7px;font-weight:600}
.ui-quick{display:grid;grid-template-columns:repeat(4,1fr);background:white;border-radius:14px;padding:15px 7px 12px;gap:4px}
.ui-quick button{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;padding:0 0 2px;color:var(--ink)}
.ui-quick-icon{display:grid;place-items:center;width:46px;height:42px;border-radius:12px;background:#edf2ff;color:var(--blue)}
.ui-quick button:first-child .ui-quick-icon{background:var(--blue);color:white}
.ui-quick-icon .icon{width:24px;height:24px;stroke-width:1.8}
.ui-quick b{font-size:12px;line-height:1.5;font-weight:550;white-space:nowrap}
.ui-stock-strip{display:grid;grid-template-columns:repeat(3,1fr);padding:15px 0 13px;margin-top:2px}
.ui-stock-strip button{display:flex;align-items:center;flex-direction:column;gap:4px;min-height:45px;border-right:1px solid #dfe5ed}
.ui-stock-strip button:last-child{border:0}
.ui-stock-strip b{font-size:20px;font-weight:650;line-height:1.3}
.ui-stock-strip span{font-size:11px;color:#667489}
.ui-catalog-link{width:100%;display:flex;align-items:center;gap:12px;padding:15px 16px;background:#eaf0ff;border:0;border-radius:12px;text-align:left;min-height:68px;color:var(--blue)}
.ui-catalog-link>.icon:first-child{width:27px;height:27px;stroke-width:1.6}
.ui-catalog-link>span{flex:1;min-width:0}
.ui-catalog-link b{font-size:15px;font-weight:650;display:block;color:#23418a}
.ui-catalog-link small{font-size:11px;display:block;margin-top:4px;color:#546993}
.ui-catalog-link>.icon:last-child{width:16px;height:16px}
.ui-row-action{font-size:11px;white-space:nowrap;color:var(--blue)}

/* Lists and detail pages share clear labels, quieter separators and aligned values. */
.search{background:#eaf0f5;border:0;border-radius:11px;min-height:45px;padding:0 13px;gap:9px}
.search input{font-size:13px;color:var(--ink);height:45px;min-width:0}
.search input::placeholder{color:#68758a;opacity:1}
.search>.icon{width:18px;height:18px;color:#748298}
.chips{display:flex;gap:7px;margin:13px 0;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.chip{font-size:12px;min-height:35px;border-radius:8px;background:#fff;border:1px solid transparent;color:#5a697e;padding:7px 11px;white-space:nowrap;flex-shrink:0}
.chip.active{background:#e8efff;color:#254faa;border-color:#b8caf8;font-weight:600}
.v3-store-filters{gap:10px;margin:15px 0 8px}
.v3-store-filters .field>span:first-child{font-size:11px;margin-bottom:6px;color:#5a697f}
.v3-store-filters .field select{min-height:39px;font-size:12px;padding:8px 10px;background:#fff;border-color:#e5e9ef}
.list-caption{font-size:12px;margin:14px 2px;color:#637185}
.store-card{border:0;border-radius:14px;background:#fff;padding:17px 15px 0;margin-bottom:12px;box-shadow:none}
.store-card .row{gap:12px;align-items:center}
.store-card h3{font-size:15px;line-height:1.45;letter-spacing:0;margin:0;font-weight:650}
.store-card .address{font-size:11px;color:#6a788b;line-height:1.6;margin-top:5px;white-space:normal}
.store-card .foot{border-top:1px solid #eff1f5;padding:12px 0;gap:8px;margin-top:14px;align-items:center}
.store-card .foot>span{font-size:11px;color:#5b697b;line-height:1.5;white-space:normal}
.store-card .foot strong{font-size:12px;font-weight:600}
.store-card .foot>span:last-child{font-size:10px;color:#6c798b;white-space:nowrap}
.store-avatar{width:45px;height:45px;border-radius:11px;background:#eaf0fb;flex-shrink:0;color:#4b73b7}
.store-avatar.mint{background:#eaf5f0;color:#5b8775}
.store-avatar.sand{background:#f9efdd;color:#ab874f}
.store-avatar img{border-radius:11px;object-fit:cover}
.store-avatar .icon{width:23px;height:23px;stroke-width:1.5}
.choose-row{padding:16px 0;gap:11px;min-height:74px;border-bottom:1px solid #edf0f4}
.choose-row:last-child{border-bottom:0}
.choose-row h3{font-size:14px;line-height:1.5;font-weight:600;white-space:normal}
.choose-row p{font-size:11px;color:#66758a;line-height:1.55;margin-top:4px}
.choose-row>.icon:last-child{width:14px;height:14px;color:#a0adbf;flex-shrink:0}
.record-row{gap:11px;padding:16px 0;border-bottom:1px solid #edf0f4;align-items:center}
.record-row h3{font-size:14px;line-height:1.45;font-weight:600}
.record-row p{font-size:11px;line-height:1.6;color:#67768b;margin-top:4px}
.record-row .number{font-size:15px;font-weight:650;white-space:nowrap}
.record-row .right{max-width:43%;flex-shrink:0}
.record-row .right p{font-size:10px;line-height:1.6}
.record-icon{width:35px;height:38px;background:#f0f4fa;color:#6580a9;border-radius:10px;flex-shrink:0}
.record-icon .icon{width:19px;height:19px}
.record-icon.green{color:#2a8864;background:#edf6f1}
.product-row{padding:17px 0;gap:12px;border-bottom:1px solid #edf0f4}
.product-row h3{font-size:14px;line-height:1.55;font-weight:650;white-space:normal}
.product-row p{font-size:11px;line-height:1.6;color:#64748a;margin-top:5px}
.product-row .qty{font-size:21px;font-weight:650}
.product-row .qty small{font-size:11px;margin-left:4px;font-weight:400;color:#65758b}
.product-row .tag{margin-top:5px}
.product-thumb{background:#f2f4f7;border-radius:10px;width:51px;height:65px;flex-shrink:0;box-shadow:none}
.packet{box-shadow:none;transform:rotate(-5deg);border-radius:3px}
.product-thumb.large{width:88px;height:108px;border-radius:14px}
.detail-extras{gap:10px;padding:0 16px 14px;background:white}
.detail-extras .secondary{font-size:12px;min-height:42px;border-radius:10px}
.store-actions{padding:15px 10px 16px;margin-bottom:10px;gap:2px}
.store-actions button{font-size:11px;gap:8px}
.store-actions .action-box{width:40px;height:40px;border-radius:11px;background:#eff3fa;color:#5774a2;box-shadow:none}
.store-actions button:first-child .action-box{background:var(--blue);box-shadow:none}
.store-actions .icon{width:21px;height:21px}
.store-banner{max-height:155px}
.store-summary h2,.store-info h2{font-size:21px}
.detail-stat strong,.store-stat strong{font-size:20px}

/* Inventory and ledger. */
.ui-inventory-summary{background:#fff;position:relative;border-radius:14px;padding:19px 19px 0;display:flex;flex-wrap:wrap;align-items:center;gap:0}
.ui-inventory-summary>div:first-child{flex:1}
.ui-inventory-summary p{font-size:12px;color:#5d6b80}
.ui-inventory-summary h2{font-size:38px;line-height:1.3;margin-top:6px;color:#243451;font-weight:650}
.ui-inventory-summary h2 small{font-size:13px;font-weight:400;margin-left:7px;color:#6b7b92}
.ui-stock-symbol{width:54px;height:54px;display:grid;place-items:center;background:#edf2ff;border-radius:15px;color:#527ce0}
.ui-stock-symbol .icon{width:34px;height:34px;stroke-width:1.3}
.ui-inventory-meta{width:100%;display:flex;align-items:center;gap:14px;border-top:1px solid #eef1f5;padding:13px 0;margin-top:17px;font-size:11px;color:#63738a}
.ui-inventory-meta>button{color:#945a16;display:flex;align-items:center;gap:4px;margin-left:auto;font-size:11px;min-height:22px}
.ui-inventory-meta .icon{width:12px;height:12px}
.ui-stock-actions{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fff;margin:12px 0;border-radius:14px;padding:4px 15px}
.ui-stock-actions>button{display:flex;align-items:center;gap:11px;padding:15px 6px;color:#4a658e;text-align:left;min-width:0}
.ui-stock-actions>button:nth-child(-n+2){border-bottom:1px solid #edf0f4}
.ui-stock-actions>button>.icon{width:24px;height:24px;flex-shrink:0}
.ui-stock-actions b{display:block;font-size:14px;color:#2d3d55;font-weight:600}
.ui-stock-actions small{display:block;font-size:10px;margin-top:4px;color:#677890;white-space:nowrap}
.ui-stock-actions .ui-stock-primary{color:var(--blue)}
.ui-month-row{display:flex;align-items:center;justify-content:space-between;margin:0 2px 12px}
.ui-month-row>span{font-size:13px;font-weight:600;display:flex;align-items:center;gap:7px}
.ui-month-row .icon{width:16px;height:16px;color:#76869e}
.ui-ledger-total{padding:17px 19px 20px;border-radius:14px;background:#fff}
.ui-ledger-total>.between>span{font-size:13px;color:#5b6e85}
.ui-ledger-total>.number{display:block;font-size:34px;line-height:1.25;margin:12px 0 10px;font-weight:650;color:#243857}
.ui-ledger-total>p{font-size:11px;color:#64748a;line-height:1.6}
.ui-ledger-total .eye-button{color:#637995;background:#f1f4f8;width:34px;height:30px;min-height:30px;border-radius:8px}
.ui-finance-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.ui-finance-grid>button{background:#eaf0ff;padding:17px 14px;text-align:left;min-width:0;border-radius:13px}
.ui-finance-grid>button:last-child{background:#fff}
.ui-finance-grid>button>span{font-size:12px;display:flex;align-items:center;justify-content:space-between;color:#426091;gap:3px}
.ui-finance-grid .icon{width:11px;height:11px;flex-shrink:0}
.ui-finance-grid b{display:block;font-size:22px;color:#2955b6;margin:11px 0;line-height:1.2;overflow-wrap:anywhere;font-weight:650}
.ui-finance-grid>button:last-child b{color:#9a641f}
.ui-finance-grid small{font-size:10px;color:#586d8b}
.menu-list{background:#fff;border:0;border-radius:14px;padding:0 15px;overflow:hidden}
.menu-item{font-size:14px;min-height:58px;padding:13px 0;gap:12px;border-bottom:1px solid #edf0f4}
.menu-item:last-child{border-bottom:0}
.menu-item>.icon:first-child{width:21px;height:21px;color:#6b80a0;stroke-width:1.6}
.menu-item>.icon:last-child{width:13px;height:13px;color:#9ba9be}
.menu-item>small{font-size:12px;color:#61748f}
.hero-metric{padding:20px;border-radius:14px;background:var(--blue)}
.hero-metric:before,.hero-metric:after{display:none}
.hero-metric .sub{font-size:12px;color:#e4ebff;line-height:1.7}
.profit-card{border:0;border-radius:14px;padding:21px;background:#eaf0ff}
.profit-card p{font-size:13px;color:#4a6288;margin:20px 0 10px}
.profit-card h2{font-size:36px;color:#2858bc}
.profit-card small{font-size:11px;line-height:1.6;color:#516a91}
.profit-formula>div{font-size:13px;line-height:1.6;gap:12px;padding:15px 0}
.profit-formula>div span{flex:1;min-width:0}
.profit-formula>div b,.profit-formula>div strong:last-child{white-space:nowrap}
.cost-grid{gap:8px;margin:14px 0}
.cost-grid button{border:0;border-radius:10px;background:#fff;padding:13px 12px;min-height:78px;text-align:left}
.cost-grid button span{font-size:11px;line-height:1.5;color:#5d6e84}
.cost-grid button b{font-size:16px;line-height:1.3;margin-top:8px;color:#314764}
.cost-grid button.active{background:#eaf0ff;box-shadow:inset 0 0 0 1px #b9cbf7}
.expense-row{gap:11px;padding:17px 0}
.expense-row h3{font-size:13px;line-height:1.6}
.expense-row p{font-size:11px;line-height:1.6;color:#65758b}
.expense-row .tag{font-size:9px}
.expense-row strong{font-size:14px}

/* Profile, invitations and permission sheets. */
.ui-profile{background:#fff;border-radius:14px;padding:21px 14px 16px}
.ui-profile-head{display:flex;align-items:center;gap:12px}
.ui-profile-head h2{font-size:23px;line-height:1.5;display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.ui-profile-head p{font-size:12px;color:#687890;margin-top:4px}
.ui-profile-head .header-action{width:32px;min-width:32px;color:#7688a1}
.avatar-upload{width:58px;height:58px;background:#e8efff;color:#2a5bc3;font-size:27px;border-radius:17px}
.avatar-upload img{border-radius:17px}
.avatar-upload i{height:22px;width:22px;border-color:#fff;background:var(--blue)}
.lifetime-stats{margin:24px 0 12px;gap:6px;padding-top:20px;border-top:1px solid #eef1f5}
.lifetime-stats div{border-right:1px solid #edf0f4}
.lifetime-stats p{font-size:10px;color:#65768d;margin-bottom:8px;line-height:1.5}
.lifetime-stats b{font-size:14px;font-weight:650;letter-spacing:-.035em;white-space:nowrap}
.tiny-center{font-size:10px;line-height:1.5;color:#708097}
.level-title{font-size:10px;line-height:1.3;gap:3px;padding:4px 5px 4px 3px;border-radius:6px;color:var(--badge);background:#f2f5fa;max-width:135px;min-height:27px}
.level-title>.icon{width:9px;height:9px;flex-shrink:0}
.level-title>span:not(.level-badge){text-align:left;white-space:normal;overflow-wrap:anywhere;color:#355886}
.medal-svg{width:20px;height:20px;display:block;flex-shrink:0}
.level-badge{font-size:0;display:grid;place-items:center;filter:none;width:20px;height:20px;flex-shrink:0}
.level-badge.level-0{animation:none}
.level-badge.level-1{animation:ui-level-shine 4s ease-in-out infinite}
.level-badge.level-2{animation:ui-level-shine 3s ease-in-out infinite}
.level-badge.level-3,.level-badge.level-4{animation:ui-level-shine 2.3s ease-in-out infinite}
@keyframes ui-level-shine{0%,75%,100%{filter:brightness(1)}85%{filter:brightness(1.55)}}
.ui-share-feature{display:grid;grid-template-columns:34px 1fr;gap:9px 12px;background:#edf2ff;border-radius:14px;padding:18px}
.ui-share-symbol{width:34px;height:34px;display:grid;place-items:center;color:#5578c1}
.ui-share-symbol .icon{width:28px;height:28px;stroke-width:1.5}
.ui-share-feature h3{font-size:15px;color:#294578;line-height:1.5}
.ui-share-feature p{font-size:11px;color:#607399;margin-top:5px}
.ui-share-feature>.primary{grid-column:1/-1;margin-top:8px;min-height:41px;font-size:13px;border-radius:10px;gap:8px}
.ui-share-feature>.primary .icon{width:16px;height:16px}
.ui-referral-note{padding:0 3px;margin-top:11px;font-size:11px!important;line-height:1.75;color:#6a788f}
.coin-card{padding:18px;background:#fff5df;border:0;border-radius:14px;gap:9px}
.coin-card b{font-size:28px;color:#906022;line-height:1.25}
.coin-card b small{font-size:12px;font-weight:400}
.coin-card p{font-size:10px;line-height:1.6;color:#846234;margin-top:5px}
.coin-card button{font-size:11px;min-height:38px;min-width:100px;padding:0 9px;background:#fff;color:#92601f;border-radius:9px}
.wechat-float{right:13px;bottom:140px;width:52px;height:57px;padding:7px 0;display:flex;flex-direction:column;justify-content:center;gap:3px;background:#19845d;box-shadow:0 5px 15px #18583f2b;border-radius:14px;z-index:12;color:#fff}
.wechat-float .icon{width:27px;height:27px;stroke-width:1.4}
.wechat-float span{font-size:10px;line-height:1.3}
.login-footer{font-size:11px;color:#5a6d87;line-height:1.8;margin-top:24px}
#app[data-screen="login"] .app-header:has(h1:empty){display:none}
#app[data-screen="login"] .login-art{padding:28px 0 25px}
#app[data-screen="login"] .login-art .brand-mark{background:var(--blue);box-shadow:none;border-radius:17px}
#app[data-screen="login"] .login-art p{font-size:13px;color:#60728b;line-height:1.7}
.loading-dot{animation:none}
.invite-card{background:#244fc4;border-radius:16px;padding:26px 23px}
.invite-card h2{font-size:34px;letter-spacing:-.02em;line-height:1.45}
.invite-card p{font-size:13px;color:#e1eaff;opacity:1}
.invite-features{gap:8px}
.invite-features span{border-color:#c5d5ff66;font-size:12px}
.invite-card strong{font-size:15px}
.ref-avatar{border-radius:12px;width:43px;height:43px;font-size:19px}
.consent-icon{border-radius:15px;background:#edf2ff;color:var(--blue);height:62px;width:62px}
.empty{padding:32px 15px}
.empty h3{font-size:16px;line-height:1.5}
.empty p{font-size:12px;line-height:1.7;color:#68798f;max-width:28em;margin-left:auto;margin-right:auto}
.empty-icon{width:54px;height:54px;border-radius:14px;color:#849cbd;background:#eef3fa}

/* Forms: one density and one action hierarchy throughout the workflow. */
.field{margin-bottom:20px}
.field>span:first-child{font-size:13px;line-height:1.5;font-weight:600;margin-bottom:9px;color:#35465d}
.field input,.field select,.field textarea{background:var(--field-bg);border:1px solid #dfe5ee;border-radius:10px;min-height:46px;font-size:14px;padding:11px 12px;line-height:1.6;color:#25374e}
.field input::placeholder,.field textarea::placeholder{color:#697a90;opacity:1}
.field input:focus,.field select:focus,.field textarea:focus{background:#fff;border-color:#6088ed;box-shadow:none}
.field .help{font-size:11px;font-weight:400;line-height:1.65;color:#64758b;margin-top:7px}
.form-heading{font-size:16px}
.two-fields{gap:12px}
.form-total{font-size:14px;padding:17px 0}
.form-total strong{font-size:24px;color:#244b9a}
.prize-edit{background:#f7f9fc;border:0;padding:17px 14px;border-radius:12px;margin-top:16px}
.prize-edit>b,.prize-edit>.between>b{font-size:14px}
.prize-edit .field input,.prize-edit .field select{background:#fff}
.prize-edit .two-fields{gap:10px}
.prize-edit .field>span:first-child{font-size:12px}
.fixed-submit{padding:13px 16px max(16px,env(safe-area-inset-bottom));background:white;border-top:1px solid #e8edf4}
.fixed-submit .primary{min-height:47px;border-radius:12px;font-size:15px;font-weight:600}
.subpage-title{padding:13px 14px;margin-bottom:15px;background:#eaf0fb;border-radius:10px;font-size:14px;color:#415c83;gap:9px}
.sheet{border-radius:21px 21px 0 0;padding:10px 19px 25px;box-shadow:none}
.sheet-head h2{font-size:19px;font-weight:700}
.sheet-head button{width:36px;height:36px;min-height:36px;color:#687c98}
.sheet-content{font-size:14px;line-height:1.75}
.sheet-content p{font-size:13px;color:#596d88}
.sheet-content .help{font-size:12px;line-height:1.7;color:#63758f}
.sheet-content .choose-row h3{font-size:14px}
.sheet-content .choose-row p{font-size:11px}
.sheet-footer{padding-top:16px}
.big-checkbox{width:21px;height:21px;accent-color:var(--blue)}
.sheet-handle{width:35px;background:#ccd5e1}
.mode-card,.type-option{border-radius:11px}
.receipt{border:0;border-radius:14px;box-shadow:none}
.receipt dt,.receipt dd{font-size:13px;line-height:1.65}
.error-box{font-size:12px;line-height:1.6;color:var(--red)}
#toast{font-size:13px;line-height:1.7;background:#23334d;border-radius:11px;padding:12px 17px;box-shadow:0 5px 18px #18283d20}
.report-intro h2{font-size:21px}
.report-metric p,.report-metric small,.report-range{font-size:12px}
.report-metric>span{font-size:13px}
.report-metric strong{font-size:26px}
.report-metric{border-radius:12px;border:0;box-shadow:none}
.report-periods button{font-size:12px;min-height:40px;border-radius:8px}
.report-explain{font-size:12px;line-height:1.7}

/* The desktop preview stays out of the way of the product. */
.studio{padding:40px 34px 28px 48px;max-width:370px}
.studio-brand{gap:10px;font-size:21px}
.studio-brand>span:last-child,.eyebrow,.studio-nav button>span{display:none}
.studio-copy{margin:42px 0 24px}
.studio-copy h1{font-size:34px;line-height:1.4;letter-spacing:-.02em;font-weight:650;color:#273853}
.studio-copy p{font-size:14px;line-height:1.85;color:#566780;margin-top:17px}
.studio-nav{gap:4px}
.studio-nav button,.studio-nav a{min-height:44px;border:0;border-radius:9px;padding:9px 12px;font-size:13px;color:#52637d}
.studio-nav button.active{color:var(--blue);background:#e1e9fb}
.board-link{font-size:12px;padding:11px 12px;border:0;margin-top:7px;color:#476aa5}
.studio-foot{font-size:11px;line-height:1.75;color:#566a85}
.studio-foot small{font-size:10px}
.preview-zone{padding-top:24px;padding-bottom:24px}
.preview-caption,.preview-footer{display:none}

/* Operations backend shares the same type, spacing and controls. */
body.admin{background:#f5f6f8;color:#23354e}
.admin-sidebar{background:#fff;border-right:1px solid #e6eaf0;box-shadow:none}
.admin-brand{font-size:23px;gap:12px}
.admin-brand .brand-mark{background:var(--blue);border-radius:11px;box-shadow:none}
.admin-brand small{font-size:12px;color:#6c7e96;line-height:1.7;margin-top:4px}
.admin-sidebar nav button{min-height:48px;border-radius:9px;font-size:14px;color:#66768c;margin-bottom:5px;gap:12px}
.admin-sidebar nav button.active{background:#eaf0ff;color:#2658ca;font-weight:650}
.admin-sidebar nav button:not(.active)>i{display:none}
.admin-sidebar nav .icon{width:20px;height:20px;stroke-width:1.6}
.admin-sidebar .sidebar-bottom{font-size:12px;border:0}
.admin-topbar{height:74px;border-bottom:1px solid #e7ebf1;background:#fff;font-size:13px}
.admin-topbar b{font-weight:600}
.demo-label{font-size:11px;background:#f4f6f9;color:#61728a;padding:8px 11px;border:0;border-radius:7px}
.admin-content{max-width:1450px;padding:32px 36px}
.admin-intro h1,.admin-page-heading h1{font-size:27px;line-height:1.5;letter-spacing:-.02em;font-weight:700}
.admin-intro p,.admin-page-heading p{font-size:14px;color:#657790;line-height:1.7;max-width:70ch}
.admin-page-heading{margin-bottom:26px;gap:20px}
.admin-btn{min-height:43px;font-size:13px;font-weight:550;border-radius:9px;padding:10px 17px;border-color:#dbe3ee;box-shadow:none}
.admin-btn.primary{background:var(--blue);color:#fff;border:0;box-shadow:none}
.admin-btn.primary:hover{background:var(--blue-dark)}
.admin-btn:not(.primary):hover{background:#f2f5fb}
.admin-panel{border:1px solid #e7ebf1;border-radius:13px;box-shadow:none}
.admin-panel-head{padding:23px 24px;border-bottom:1px solid #eef1f5}
.admin-panel-head h2{font-size:17px;line-height:1.5}
.admin-panel-head p{font-size:12px;color:#6d7f96;line-height:1.7}
.admin-stats{gap:16px}
.admin-stats>div{border:1px solid #e7ebf1;border-radius:12px;box-shadow:none;padding:22px;background:white}
.admin-stats span{font-size:13px;color:#65768d}
.admin-stats strong{font-size:27px;font-weight:650;color:#243b5d}
.admin-stats p{font-size:12px;color:#677b96;line-height:1.7}
.admin-task-list{padding:4px 24px}
.admin-task-list button{padding:21px 0;min-height:88px}
.admin-task-list h3{font-size:15px;font-weight:650}
.admin-task-list p{font-size:12px;color:#687b95;line-height:1.7}
.admin-task-icon{background:#edf2fc;color:#587bb7;box-shadow:none;border-radius:11px}
.admin-table th{font-size:12px;font-weight:550;background:#f7f9fc;color:#627792;padding:15px 20px;border-bottom:1px solid #e7edf5}
.admin-table td{font-size:13px;padding:21px 20px;border-bottom:1px solid #eef1f5;line-height:1.65}
.admin-table td p{font-size:12px;color:#687c97}
.admin-table tr:last-child td{border-bottom:0}
.admin-table input{background:#fafbfd;border:1px solid #dce4f0;border-radius:8px;font-size:14px;padding:11px 12px}
.admin-table input:focus{background:#fff;border-color:#6a8ee7;outline:2px solid #d9e4ff;outline-offset:1px}
.admin-table .level-badge{width:26px;height:26px;font-size:20px;display:inline-grid}
.admin-field>span{font-size:13px;font-weight:600;margin-bottom:9px;color:#394f6c}
.admin-field input,.admin-field textarea,.admin-field select{font-size:14px;padding:12px 13px;line-height:1.7;border-color:#dce4ef;border-radius:8px;background:#fafbfd}
.admin-field small,.admin3-note{font-size:12px;color:#607690;line-height:1.8}
.admin3-divider{font-size:11px;letter-spacing:0;color:#697f9a;padding:25px 15px 10px}
.admin3-form{padding:27px}
.admin3-form h2{font-size:18px}
.admin3-tags span{font-size:12px;border-radius:7px;background:#edf2ff;color:#456caf}
.admin-footer{font-size:11px;color:#687e99}
.admin-text{font-size:12px;color:#3665bd}
.recent-notice{padding:20px 24px}
.recent-notice h3{font-size:15px;line-height:1.7}
.recent-notice p{font-size:12px;color:#6c7e96;line-height:1.75}

@media(hover:hover){
 .store-card:hover,.ui-quick button:hover,.ui-stock-actions button:hover{background:#f8faff}
 .menu-item:hover,.record-row:hover,.choose-row:hover,.product-row:hover{background:#fafbfe}
 .ui-catalog-link:hover{background:#dee8ff}
}
@media(max-width:900px){.studio{padding-left:25px}.admin-content{padding:24px}.admin-sidebar nav button{font-size:12px}}
@media(max-width:700px){
 .admin-content{padding:22px 16px}.admin-page-heading h1,.admin-intro h1{font-size:23px}
 .admin-page-heading p,.admin-intro p{font-size:13px}.admin3-form{padding:19px}
 .admin-page-heading{flex-wrap:wrap;gap:14px}.admin3-inline{align-items:flex-end;flex-wrap:wrap}
 .admin-sidebar nav button{min-width:86px;padding:11px 12px}.admin3-divider{padding:10px 6px;font-size:10px;min-width:48px}
 .admin-table td,.admin-table th{padding:15px 16px}.admin-table-wrap{overflow:auto}
 .admin-topbar{height:60px}.admin-stats>div{padding:16px}.admin-stats strong{font-size:23px}
}
@media(max-width:500px){
 .phone{border:0;box-shadow:none;border-radius:0;width:100%;height:100%;min-height:0}
 .preview-zone{padding:0}
 .bottom-nav{padding-bottom:max(17px,env(safe-area-inset-bottom));height:72px}
}
body.embed .phone{border:0;box-shadow:none;border-radius:0;width:100%;height:100%;min-height:0}
body.embed .phone .statusbar{height:34px}
body.embed .phone #app{height:calc(100% - 34px)}
body.embed .phone .sheet-backdrop{top:34px}
@media(max-width:374px){
 .page{padding:16px 14px 24px}.app-header{padding:8px 14px}.app-header h1{font-size:21px}
 .ui-greeting h2{font-size:17px}.ui-checkin{padding:0 7px;font-size:10px}.ui-checkin>.icon{display:none}
 .ui-account{padding:14px 16px 16px}.ui-account-total>strong{font-size:31px}
 .level-title{font-size:9px;max-width:115px}.ui-greeting .level-title{padding-left:1px;padding-right:2px}
 .ui-profile{padding:18px 12px 15px}.ui-profile-head{gap:8px}.ui-profile-head h2{font-size:21px}
 .ui-profile-head .avatar-upload{width:51px;height:51px}.lifetime-stats b{font-size:12px}
 .ui-stock-actions b{font-size:13px}.ui-stock-actions small{font-size:10px}
 .ui-finance-grid b{font-size:20px}.two-fields{gap:9px}.field input,.field select{padding-left:10px;padding-right:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
