:root{
  --ink:#0f1b33;--ink-2:#34425a;--muted:#66748b;--faint:#97a3b6;
  --line:#e3e8f0;--line-2:#eef2f7;--bg:#f5f7fa;--white:#fff;
  --blue:#1d4ed8;--blue-h:#1e40af;--blue-50:#f0f5ff;--blue-100:#dce7fd;--blue-200:#bcd0fb;
  --ok:#0f7a55;--ok-bg:#ebf7f1;--warn:#a15c07;--warn-bg:#fdf5e7;--danger:#b42318;--danger-bg:#fdeeec;
  --r:8px;--r-lg:12px;
  --shadow:0 1px 2px rgba(15,27,51,.04);
  --shadow-lg:0 12px 40px -12px rgba(15,27,51,.22);
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
h1,h2,h3,p{margin:0}
h1{font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-.01em}
h2{font-size:15px;font-weight:600}
h3{font-size:14px;font-weight:600}
.icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.muted{color:var(--muted)}
.small-text{font-size:12px}
.mono{font-family:var(--mono);font-size:13px}
.center{text-align:center}
.spacer{flex:1}
.loading{display:grid;place-items:center;min-height:100vh;color:var(--faint);font-size:13px}

/* brand */
.brand{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:15px;color:var(--ink)}
.brand em{font-style:normal;font-weight:400;color:var(--faint);font-size:13px}
.mark{width:24px;height:24px}
.mark rect{fill:var(--blue)}
.mark path{stroke:#fff;stroke-width:2.4;stroke-linecap:round}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--white);color:var(--ink);font-size:13px;font-weight:500;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.btn:hover{border-color:#cfd7e3;background:#fafbfd}
.btn:focus-visible,.icon-btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--blue-200);outline-offset:1px}
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.primary:hover{background:var(--blue-h);border-color:var(--blue-h)}
.btn.ghost{background:transparent;border-color:transparent;color:var(--ink-2)}
.btn.ghost:hover{background:var(--line-2)}
.btn.small{height:30px;padding:0 10px;font-size:12px}
.btn.full{width:100%}
.btn:disabled{opacity:.55;cursor:default}
.icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:var(--r);color:var(--muted)}
.icon-btn:hover{background:var(--line-2);color:var(--ink)}
.icon-btn .icon{width:18px;height:18px}
.text-link{display:inline-flex;align-items:center;gap:4px;color:var(--blue);font-size:13px}
.text-link .icon{width:14px;height:14px}
.text-link:hover{color:var(--blue-h)}
.link-btn{color:var(--blue);font-size:13px}
.link-btn:hover{text-decoration:underline}
/* forms */
.field{margin-bottom:16px}
.field label,label.lbl{display:block;margin-bottom:6px;font-size:13px;font-weight:500;color:var(--ink-2)}
input,select,textarea{width:100%;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r);background:var(--white);transition:border-color .15s,box-shadow .15s}
textarea{height:auto;padding:10px 12px;resize:vertical;line-height:1.55}
select{appearance:none;padding-right:32px;background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2366748b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center/14px}
input:hover,select:hover,textarea:hover{border-color:#cfd7e3}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-100)}
input::placeholder,textarea::placeholder{color:var(--faint)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.hint{margin-top:6px;font-size:12px;color:var(--muted);line-height:1.6}
.error{margin-top:12px;padding:9px 12px;border-radius:var(--r);background:var(--danger-bg);color:var(--danger);font-size:13px}
.form-actions,.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.dialog-actions.split{justify-content:flex-start;align-items:center}
.copy-row{display:flex;gap:8px;align-items:center}
.copy-row code{flex:1;min-width:0;padding:8px 12px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg);font-family:var(--mono);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
pre.code{margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg);font-family:var(--mono);font-size:13px;white-space:pre-wrap;word-break:break-all;color:var(--ink)}

/* pills */
.pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;background:var(--ok-bg);color:var(--ok)}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.info{background:var(--blue-50);color:var(--blue)}
.pill.warn{background:var(--warn-bg);color:var(--warn)}
.pill.danger{background:var(--danger-bg);color:var(--danger)}
.pill.mute{background:var(--line-2);color:var(--muted)}

/* panel & tables */
.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);margin-bottom:20px;overflow:hidden}
.panel.narrow{max-width:640px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line-2)}
.panel-head h2{display:flex;align-items:center;gap:8px}
.panel-sub{margin-top:2px;font-size:12px;color:var(--muted)}
.panel-pad{padding:20px}
.count{padding:0 7px;border-radius:999px;background:var(--line-2);color:var(--muted);font-size:12px;font-weight:500}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th{padding:10px 20px;text-align:left;font-size:12px;font-weight:500;color:var(--muted);background:#fafbfd;border-bottom:1px solid var(--line-2);white-space:nowrap}
td{padding:14px 20px;border-bottom:1px solid var(--line-2);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#fbfcfe}
.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.right{text-align:right}
td .sub{display:block;margin-top:2px;font-size:12px;color:var(--faint);font-family:var(--font)}
td a.sub.url{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
td a.sub.url:hover{color:var(--blue)}
.product-cell{display:flex;align-items:center;gap:12px;min-width:200px}
.product-cell b{display:block;font-weight:500}
.product-cell small{color:var(--faint);font-size:12px}
.thumb{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:var(--r);background:var(--blue-50);color:var(--blue);font-weight:600}
.source-stock{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.source-stock span{padding:0 6px;border-radius:4px;background:var(--line-2);color:var(--muted);font-size:11px;line-height:18px;white-space:nowrap}
.source-stock .none{background:none;padding:0;color:var(--faint)}
.row-actions{display:inline-flex;gap:2px;white-space:nowrap}
.row-actions button{padding:4px 8px;border-radius:6px;color:var(--ink-2);font-size:13px}
.row-actions button:hover{background:var(--line-2)}
.row-actions button.strong{color:var(--blue);font-weight:500}
.row-actions button.strong:hover{background:var(--blue-50)}
.empty{padding:48px 20px;text-align:center;color:var(--muted);font-size:13px}
.notice{margin-bottom:20px;padding:10px 14px;border:1px solid var(--blue-100);border-radius:var(--r);background:var(--blue-50);color:var(--ink-2);font-size:13px}
.footnote{margin:4px 0 20px;font-size:12px;color:var(--muted)}
.footnote a{color:var(--blue);margin-left:6px}
/* console */
.console{display:flex;min-height:100vh}
.sidebar{position:sticky;top:0;display:flex;flex-direction:column;width:228px;height:100vh;flex:none;background:var(--white);border-right:1px solid var(--line);padding:0 12px}
.sidebar-brand{display:flex;align-items:center;height:60px;padding:0 8px}
.side-nav{display:flex;flex-direction:column;gap:2px;margin-top:12px}
.side-nav a,.side-foot a,.side-foot button{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:var(--r);color:var(--ink-2);font-size:13px;width:100%;text-align:left}
.side-nav a:hover,.side-foot a:hover,.side-foot button:hover{background:var(--line-2);color:var(--ink)}
.side-nav a.active{background:var(--blue-50);color:var(--blue);font-weight:500}
.side-nav .icon,.side-foot .icon{color:var(--faint)}
.side-nav a.active .icon{color:var(--blue)}
.side-foot{margin-top:auto;padding:12px 0 16px;border-top:1px solid var(--line-2);display:flex;flex-direction:column;gap:2px}
.scrim{display:none}
.console-main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;height:60px;padding:0 32px;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.topbar-title{font-size:13px;color:var(--muted)}
.topbar-right{display:flex;align-items:center;gap:20px;margin-left:auto}
.mobile-menu{display:none}
.profile{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500}
.avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;font-size:12px;font-weight:600}
.content{width:100%;max-width:1240px;margin:0 auto;padding:28px 32px 48px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.page-head p{margin-top:4px;color:var(--muted);font-size:13px}
.page-actions{display:flex;gap:8px}

/* stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:20px;background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow)}
.stats.three{grid-template-columns:repeat(3,1fr)}
.stat{display:flex;flex-direction:column;gap:6px;padding:20px 24px;border-left:1px solid var(--line-2)}
.stat:first-child{border-left:0}
.stat-label{font-size:12px;color:var(--muted)}
.stat-value{font-size:26px;font-weight:600;line-height:1.2;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat-value small{font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0}
.stat-value.text{font-size:18px;letter-spacing:0;padding:4px 0}
.stat-foot{font-size:12px;color:var(--faint)}
.grid-2{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}

/* chart */
.chart-total{display:flex;align-items:baseline;gap:8px;margin-bottom:12px}
.chart-total strong{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.chart-total span{font-size:12px;color:var(--muted)}
.chart{display:block;width:100%;height:auto}
.chart .axis{stroke:var(--line)}
.chart .bar{fill:var(--blue-100)}
.chart .bar.today{fill:var(--blue)}
.chart .bar-val{fill:var(--muted);font-size:11px;text-anchor:middle;font-variant-numeric:tabular-nums}
.chart .bar-day{fill:var(--faint);font-size:11px;text-anchor:middle}

/* quick */
.quick{display:flex;flex-direction:column;padding:8px}
.quick button,.quick a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:var(--r);font-size:13px;color:var(--ink-2);text-align:left}
.quick span{flex:1}
.quick .icon{color:var(--blue)}
.quick .icon:last-child{color:var(--faint);width:14px;height:14px}
.quick button:hover,.quick a:hover{background:var(--blue-50);color:var(--ink)}

/* quota */
.quota-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.quota{padding:18px 20px;border-right:1px solid var(--line-2);border-bottom:1px solid var(--line-2);margin:0 -1px -1px 0}
.quota-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.quota-top b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quota-num{margin:10px 0 8px;font-variant-numeric:tabular-nums}
.quota-num strong{font-size:18px;font-weight:600}
.quota-num span{margin-left:4px;font-size:12px;color:var(--faint)}
.quota-foot{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:var(--muted)}
.quota.is-full .quota-num strong{color:var(--danger)}
.meter{display:block;width:100%;height:6px;border:0;border-radius:3px;background:var(--line-2);overflow:hidden;appearance:none}
.meter::-webkit-progress-bar{background:var(--line-2);border-radius:3px}
.meter::-webkit-progress-value{background:var(--blue);border-radius:3px}
.meter::-moz-progress-bar{background:var(--blue);border-radius:3px}
.meter.high::-webkit-progress-value{background:#d97706}.meter.high::-moz-progress-bar{background:#d97706}
.meter.full::-webkit-progress-value{background:var(--danger)}.meter.full::-moz-progress-bar{background:var(--danger)}
.usage{min-width:180px}
.usage-num{margin-bottom:6px;font-variant-numeric:tabular-nums}
.usage-num span{color:var(--faint);font-size:12px}

/* toolbar */
.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.toolbar.tight{margin:0 0 12px}
.toolbar select{width:auto;min-width:140px}
.search{position:relative;display:flex;align-items:center;flex:0 1 320px}
.search .icon{position:absolute;left:11px;color:var(--faint)}
.search input{padding-left:34px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.chips span{display:inline-flex;align-items:center;gap:8px;padding:5px 10px;border:1px solid var(--line);border-radius:var(--r);font-size:12px;color:var(--ink-2)}
.chips b{color:var(--blue);font-variant-numeric:tabular-nums}
.card-list{max-height:46vh;overflow:auto;border:1px solid var(--line-2);border-radius:var(--r)}
.card-list th{position:sticky;top:0}
.card-list th,.card-list td{padding:10px 14px}

/* dialog, toast */
dialog{width:min(520px,calc(100% - 32px));max-height:calc(100vh - 48px);padding:0;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);background:var(--white);color:var(--ink)}
dialog.wide{width:min(760px,calc(100% - 32px))}
dialog::backdrop{background:rgba(15,27,51,.32)}
dialog[open]{animation:pop .16s ease-out}
@keyframes pop{from{opacity:0;transform:translateY(6px)}}
.dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line-2);background:var(--white)}
.dialog-body{padding:20px}
.kv{display:grid;grid-template-columns:96px 1fr;gap:10px 16px;margin:0;font-size:13px}
.kv dt{color:var(--muted)}
.kv dd{margin:0;word-break:break-all}
.steps{margin:0 0 16px;padding:0;list-style:none;counter-reset:s}
.steps li{position:relative;padding:0 0 16px 36px;counter-increment:s}
.steps li::before{content:counter(s);position:absolute;left:0;top:0;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--blue-50);color:var(--blue);font-size:12px;font-weight:600}
.steps b{display:block;font-weight:500}
.steps span{color:var(--muted);font-size:13px}
#toast{position:fixed;left:50%;bottom:28px;z-index:100;padding:10px 16px;border-radius:var(--r);background:var(--ink);color:#fff;font-size:13px;box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;transform:translate(-50%,8px);transition:opacity .18s,transform .18s}
#toast.visible{opacity:1;transform:translate(-50%,0)}
/* auth */
.auth{display:grid;grid-template-columns:minmax(360px,5fr) 7fr;min-height:100vh;background:var(--white)}
.auth-aside{display:flex;flex-direction:column;justify-content:space-between;padding:40px 48px;background:var(--blue);color:#fff}
.auth-aside .brand,.auth-aside .brand em{color:#fff}
.auth-aside .brand em{opacity:.6}
.auth-aside .mark rect{fill:#fff}.auth-aside .mark path{stroke:var(--blue)}
.auth-aside h1{font-size:28px;line-height:1.45;font-weight:600}
.auth-aside ul{margin:28px 0 0;padding:0;list-style:none}
.auth-aside li{padding:12px 0;border-top:1px solid rgba(255,255,255,.18);font-size:14px;color:rgba(255,255,255,.86)}
.auth-aside small{color:rgba(255,255,255,.55);font-size:12px}
.auth-main{display:grid;place-items:center;padding:40px 24px}
.auth-box{width:100%;max-width:360px}
.auth-box h2{font-size:22px;font-weight:600}
.auth-box>p.muted{margin:6px 0 28px}
.auth-box #demo-login{margin-top:8px}
.auth-mobile-brand{display:none;margin-bottom:32px}
.auth-switch{margin-top:24px;font-size:13px;color:var(--muted)}
.auth-switch a{color:var(--blue);margin-left:4px}
.auth-switch span{margin:0 8px;color:var(--line)}

/* public site */
.site{display:flex;flex-direction:column;min-height:100vh;background:var(--white)}
.site main{flex:1}
.wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 24px}
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.site-header-inner{display:flex;align-items:center;gap:32px;height:60px}
.site-nav{display:flex;gap:4px;margin-right:auto}
.site-nav a{padding:6px 12px;border-radius:var(--r);color:var(--muted);font-size:14px}
.site-nav a:hover{color:var(--ink)}
.site-nav a.current{color:var(--ink);font-weight:500}
.site-footer{border-top:1px solid var(--line);margin-top:48px}
.site-footer-inner{display:flex;justify-content:space-between;align-items:center;gap:16px;height:64px;color:var(--faint);font-size:12px}
.site-footer nav{display:flex;gap:20px}
.site-footer a:hover{color:var(--ink)}
.tabbar{display:none}
.page{padding-top:32px;padding-bottom:16px}
.narrow-page{max-width:560px}
.page-title{margin-bottom:24px}
.page-title p{margin-top:6px}

.store-hero{border-bottom:1px solid var(--line);background:linear-gradient(var(--blue-50),var(--white))}
.store-hero .wrap{padding-top:56px;padding-bottom:48px}
.kicker{font-size:13px;font-weight:500;color:var(--blue);margin-bottom:12px}
.store-hero h1{font-size:34px;line-height:1.3;letter-spacing:-.02em;max-width:620px}
.lead{margin-top:12px;max-width:560px;color:var(--muted);font-size:15px}
.hero-steps{display:flex;flex-wrap:wrap;gap:8px 28px;margin:28px 0 0;padding:0;list-style:none;font-size:13px;color:var(--ink-2)}
.hero-steps li{display:flex;align-items:center;gap:8px}
.hero-steps span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid var(--blue-200);color:var(--blue);font-size:12px;font-weight:500;background:var(--white)}
.store-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.tabs{display:flex;gap:6px;flex-wrap:wrap}
.tabs button{height:32px;padding:0 14px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--ink-2);background:var(--white)}
.tabs button:hover{border-color:#cfd7e3}
.tabs button.active{background:var(--ink);border-color:var(--ink);color:#fff}
.store-tools{display:flex;gap:8px}
.store-tools .search{flex:0 1 240px}
.store-tools select{width:150px}
.store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}
.store-empty{grid-column:1/-1}
.item{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--white);overflow:hidden;transition:border-color .15s,box-shadow .15s,transform .15s}
.item:hover{border-color:var(--blue-200);box-shadow:0 8px 24px -14px rgba(29,78,216,.35);transform:translateY(-1px)}
.item-cover{position:relative;display:grid;place-items:center;aspect-ratio:16/9}
.tone-0{background:#eef3ff}.tone-1{background:#eaf2fb}.tone-2{background:#f1f4f9}.tone-3{background:#e8effd}
.item-initial{font-size:40px;font-weight:600;color:var(--blue);opacity:.9}
.item-cat{position:absolute;left:12px;top:12px;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.85);font-size:12px;color:var(--ink-2)}
.item-cat.plain{position:static;display:inline-block;margin:20px 0 8px;background:var(--blue-50);color:var(--blue)}
.item-body{display:flex;flex-direction:column;flex:1;padding:16px}
.item-body h3{font-size:15px;font-weight:500}
.item-body p{margin:6px 0 16px;color:var(--muted);font-size:13px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.item-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto}
.price{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.price small{font-size:13px;margin-right:2px}
.avail{font-size:12px;color:var(--ok)}
.avail.none{color:var(--faint)}
/* product detail */
.back{display:inline-block;margin-bottom:20px;color:var(--muted);font-size:13px}
.back:hover{color:var(--ink)}
.detail{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:40px;align-items:start}
.detail-cover{display:grid;place-items:center;aspect-ratio:16/9;border-radius:var(--r-lg);border:1px solid var(--line-2)}
.detail-cover .item-initial{font-size:64px}
.detail-info h1{font-size:28px}
.detail-desc{margin-top:12px;color:var(--ink-2);font-size:15px;line-height:1.75;white-space:pre-line}
.detail-meta{display:flex;gap:40px;margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line-2)}
.detail-meta dt{font-size:12px;color:var(--muted)}
.detail-meta dd{margin:4px 0 0;font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}
.redeem{position:sticky;top:84px;margin:0}
.redeem-step{display:flex;gap:14px;padding:22px 22px 6px}
.redeem-step+.redeem-step{border-top:1px solid var(--line-2);padding-bottom:22px}
.redeem-step>div{flex:1;min-width:0}
.redeem-step h2{margin-bottom:4px}
.redeem-step>div>p.muted{font-size:13px;margin-bottom:14px}
.redeem-step form{margin-top:14px}
.step-no{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:50%;background:var(--blue);color:#fff;font-size:12px;font-weight:600}
.redeem-step+.redeem-step .step-no{background:var(--blue-50);color:var(--blue)}
.source-unavailable{margin:8px 0 14px;font-size:12px;color:var(--warn)}
.source-unavailable:empty{display:none}
.redeem-step .btn:not(.full){margin-bottom:16px}
.result{margin-top:32px;padding:24px}
.result-head{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.ok-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ok-bg);color:var(--ok)}
.ok-mark .icon{width:20px;height:20px}
.result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}

/* query */
.order-detail{margin-top:24px;padding-top:20px;border-top:1px solid var(--line-2)}
.order-detail .kv{margin-bottom:16px}
.saved{margin-top:24px}
.saved h3{margin-bottom:8px;font-size:13px;font-weight:500;color:var(--muted)}
.saved-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r);margin-bottom:8px;background:var(--white);color:var(--ink-2)}
.saved-row:hover{border-color:var(--blue-200);color:var(--blue)}

/* responsive */
@media (max-width:1080px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .stats .stat:nth-child(3){border-left:0}
  .stats .stat:nth-child(n+3){border-top:1px solid var(--line-2)}
  .stats.three{grid-template-columns:1fr}
  .stats.three .stat{border-left:0}
  .stats.three .stat+.stat{border-top:1px solid var(--line-2)}
  .grid-2{grid-template-columns:1fr}
  .detail{grid-template-columns:1fr;gap:28px}
  .redeem{position:static}
}
@media (max-width:860px){
  .sidebar{position:fixed;left:0;top:0;z-index:30;transform:translateX(-100%);transition:transform .2s;box-shadow:var(--shadow-lg)}
  .sidebar.open{transform:none}
  .scrim.open{display:block;position:fixed;inset:0;z-index:20;background:rgba(15,27,51,.3)}
  .mobile-menu{display:inline-grid}
  .topbar{padding:0 16px}
  .topbar .text-link,.profile-name{display:none}
  .content{padding:20px 16px 40px}
  .auth{grid-template-columns:1fr}
  .auth-aside{display:none}
  .auth-mobile-brand{display:block}
}
@media (max-width:640px){
  h1{font-size:21px}
  .page-head{flex-direction:column;align-items:stretch}
  .page-actions .btn{flex:1}
  .stat{padding:16px}
  .stat-value{font-size:21px}
  .toolbar{flex-wrap:wrap}
  .toolbar .search{flex:1 1 100%}
  .form-grid{grid-template-columns:1fr}
  th,td{padding:10px 14px}
  .site-header-inner{gap:12px}
  .site-nav{display:none}
  .site-header .btn{margin-left:auto}
  .store-hero .wrap{padding-top:36px;padding-bottom:32px}
  .store-hero h1{font-size:25px}
  .store-tools{width:100%}
  .store-tools .search{flex:1}
  .store-tools select{width:130px}
  .store-grid{grid-template-columns:1fr 1fr;gap:12px}
  .item-body{padding:12px}
  .item-body p{display:none}
  .item-initial{font-size:30px}
  .price{font-size:16px}
  .detail-info h1{font-size:22px}
  .site-footer{margin-bottom:64px}
  .site-footer-inner{flex-direction:column;justify-content:center;height:auto;padding:20px 0}
  .tabbar{position:fixed;left:0;right:0;bottom:0;z-index:15;display:grid;grid-template-columns:repeat(3,1fr);height:58px;padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line)}
  .tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--faint)}
  .tabbar a.active{color:var(--blue)}
  .tabbar .icon{width:20px;height:20px}
  #toast{bottom:76px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.grid-2{margin-bottom:20px}.grid-2>.panel{margin-bottom:0}
.meter.full{background:var(--danger)}
.store-grid+.footnote{margin-top:28px}
.detail-cover{aspect-ratio:2/1}
/* Touch interaction, compact management, esports storefront and fulfillment. */
*{-webkit-tap-highlight-color:transparent}a,button{-webkit-touch-callout:none}button:focus:not(:focus-visible),a:focus:not(:focus-visible){outline:none;box-shadow:none}.stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}.stats .stat{padding:12px 18px;border-top:0!important;border-left:1px solid var(--line-2)!important;gap:4px;min-width:0}.stats .stat:first-child{border-left:0!important}.stats .stat-value{font-size:22px}.stats .stat-foot{font-size:10px}.product-table td{padding:5px 12px;height:40px}.product-table th{padding:7px 12px}.product-table .product-cell{gap:8px;min-width:165px}.product-table .thumb{width:26px;height:26px;border-radius:6px}.thumb img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.product-table .product-cell small{display:none}.product-table .product-cell b{font-size:12px}.product-table .source-stock{margin-top:1px;flex-wrap:nowrap;max-width:220px;overflow:hidden}.product-table .source-stock span{font-size:9px;line-height:13px;flex:none}.product-table .row-actions button{padding:3px 5px;font-size:11px}.product-table .pill{height:19px;font-size:10px}.sidebar .side-nav{overflow-y:auto}.image-input-row{display:flex;gap:8px}.image-input-row>input{min-width:0;flex:1}.upload-button{margin:0!important;flex:none;cursor:pointer}.upload-button input[hidden]{display:none}.image-preview{display:block;max-width:100%;width:auto;max-height:210px;object-fit:contain;border:1px solid var(--line);border-radius:8px;margin-top:10px}.image-preview[hidden]{display:none}.toggle{display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap}.toggle input{width:16px;height:16px;box-shadow:none}.entry-announcement img{width:100%;max-height:55vh;object-fit:contain;border-radius:8px}.entry-announcement p{white-space:pre-wrap;font-size:14px;line-height:1.9;margin:12px 0 20px}.entry-announcement .btn{margin-top:8px}.home-banner{padding-top:18px}.home-banner img{display:block;width:100%;aspect-ratio:1440/620;object-fit:cover;border-radius:12px}.home-announcement{display:flex;align-items:center;gap:9px;background:#edf4ff;color:#3f6ca9;border:1px solid #dbe7fb;border-radius:8px;padding:10px 12px;margin-top:12px;font-size:12px}.home-announcement>.icon{width:17px;height:17px}.home-announcement__track{flex:1;min-width:0;overflow:hidden}.home-announcement__track>div{display:flex;width:max-content;animation:announcement-scroll 26s linear infinite}.home-announcement__track span{white-space:nowrap;padding-right:70px}.home-announcement:hover .home-announcement__track>div{animation-play-state:paused}@keyframes announcement-scroll{to{transform:translateX(-50%)}}.storefront-main #collection{padding-top:17px}.store-bar{display:block;margin-bottom:16px;min-width:0}.category-scroll{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;max-width:100%;width:100%;padding:3px 0 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.category-scroll::-webkit-scrollbar{display:none}.category-scroll button{flex:0 0 auto;white-space:nowrap}.store-tools{margin-top:9px;justify-content:space-between}.store-tools .search{flex:1;max-width:320px}.store-tools select{width:140px}.store-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mobile-product{position:relative;min-width:0;display:grid;align-content:start;background:#fff;border:1px solid #dce6f6;border-radius:8px;overflow:hidden;color:inherit;text-decoration:none}.mobile-product__media{position:relative;min-width:0;display:grid;background:#edf3fd}.mobile-product-cover{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#edf3fd}.mobile-product-cover.is-fallback{display:grid;place-items:center;color:#7d9ed3;background:linear-gradient(145deg,#edf5ff,#dce9fb);font-size:42px;font-weight:650}.mobile-product__badges{display:flex;align-items:center;gap:4px;padding:4px 7px;background:#edf4ff;color:#5b82b7;min-height:25px;overflow:hidden}.mobile-product__badges span{font-size:10px;line-height:16px;white-space:nowrap}.mobile-product__badges span+span{padding-left:6px;border-left:1px solid #c9dcf7}.mobile-product__body{position:relative;min-width:0;padding:4px 9px 10px;display:grid;align-content:start;gap:0}.mobile-product__headline{min-width:0;display:flex;align-items:center;gap:5px;margin:4px 0}.mobile-product__headline strong{min-width:0;font-size:14px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-product__meta{min-width:0;margin:0;display:flex;gap:5px;color:var(--muted);font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden}.mobile-product__meta span{overflow:hidden;text-overflow:ellipsis;min-width:0}.mobile-product__tags{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 6px}.mobile-product__tags span{display:inline-flex;align-items:center;min-height:20px;padding:1px 6px;border:1px solid #d6e5fc;color:#4c7fc7;background:#f1f6ff;font-size:11px;border-radius:4px}.mobile-product__foot{display:grid;gap:2px;margin-top:2px}.mobile-product__foot>div{min-width:0;display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}.mobile-product__foot b{color:#e53935;font-size:16px;line-height:1.14;font-variant-numeric:tabular-nums}.mobile-product__price-symbol{font-size:11px;margin-right:2px}.mobile-product__price-decimal{font-size:11px}.mobile-product__foot small{color:var(--muted);font-size:11px;line-height:1.25;white-space:nowrap}.detail-cover{aspect-ratio:1/1!important;overflow:hidden}.detail-cover img{width:100%;height:100%;object-fit:cover}.order-page{max-width:900px}.order-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 0 22px;margin:0;list-style:none}.order-progress li{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;color:#a3afc0;min-width:0;font-size:12px}.order-progress li:before{content:'';position:absolute;left:-50%;right:50%;height:2px;background:#e6ecf5;top:15px}.order-progress li:first-child:before{display:none}.order-progress li>span{position:relative;z-index:1;background:#eff3f9;border:1px solid #e4eaf3;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:12px}.order-progress li.reached{color:#4779c6}.order-progress li.reached:before{background:#a5c4f7}.order-progress li.reached>span{background:#edf4ff;border-color:#c9ddfc}.order-progress li.current>span{background:var(--blue);color:white;border-color:var(--blue)}.order-progress small{font-size:9px;font-weight:400;min-height:15px}.order-filter-tabs{flex-wrap:nowrap;overflow:auto;margin-bottom:18px}.order-filter-tabs button{flex:none}.order-filter-tabs small{font-size:10px;opacity:.7}.customer-order-card{display:block;padding:20px}.customer-order-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:6px}.customer-order-card>.mono{font-size:11px;margin-bottom:17px}.customer-order-foot{display:flex;justify-content:space-between;color:var(--faint);font-size:11px;border-top:1px solid var(--line-2);padding-top:12px}.customer-order-foot>span:last-child{display:flex;align-items:center;gap:5px;color:#6b8fc2}.order-empty-action{padding:0 15px 30px}
@media(max-width:1080px){.store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stats .stat{padding:12px}.stats .stat-value{font-size:20px}}
@media(max-width:640px){.stats .stat{padding:10px 7px;gap:3px}.stats .stat-label{font-size:9px;white-space:nowrap}.stats .stat-value{font-size:16px;white-space:nowrap;letter-spacing:-.5px}.stats .stat-value small{font-size:10px}.stats .stat-foot{display:none}.product-table td{padding:4px 9px;height:36px;font-size:11px}.product-table .product-cell{min-width:135px;gap:7px}.product-table .thumb{width:23px;height:23px}.product-table .product-cell b{font-size:11px}.product-table .source-stock{max-width:150px}.home-banner{padding-top:12px}.home-banner img{border-radius:10px}.home-announcement{margin-top:9px;padding:8px 10px;font-size:11px}.store-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.store-tools .search{max-width:none}.store-tools select{width:120px}.category-scroll button{font-size:12px;padding:0 14px}.tabbar{left:18px;right:18px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;max-width:420px;margin-inline:auto;border:1px solid #e1e7f1;border-radius:999px;height:62px;padding:6px;gap:5px;box-shadow:0 6px 28px #203a641c}.tabbar a{border-radius:999px;flex-direction:row;gap:7px;font-size:12px}.tabbar a.active{background:#edf3ff;color:var(--blue)}.tabbar a .icon{width:19px;height:19px}.site-footer{margin-bottom:90px}.customer-order-card{padding:16px}.order-progress{padding-bottom:17px}.order-progress li{font-size:11px}.order-progress small{font-size:8px}.image-input-row{gap:6px}.upload-button{font-size:11px;padding:0 9px}.order-page .page-head{flex-direction:row;align-items:center}.order-page .page-head p{font-size:11px}.order-page .btn{font-size:12px}.mobile-product__headline strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.home-announcement__track>div{animation:none}.home-announcement__track span[aria-hidden]{display:none}}
/* Source groups share a quota, while each product owns its URL and inventory. */
.group-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.group-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px}
.group-section-title h3{font-size:15px;margin:0}
.group-products{display:grid;gap:10px}
.group-product{padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.group-product-info,.group-product-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.group-product-info{font-size:13px;margin-bottom:10px}
.group-product-info b{overflow-wrap:anywhere}
.group-product-info>span{white-space:nowrap;font-size:12px}
.group-url{display:block;font-size:12px;color:var(--muted)}
.group-url input{margin-top:5px;font-size:13px}
.group-product-foot{margin-top:10px;font-size:12px;flex-wrap:wrap}
.group-stock{color:var(--muted)}
.group-stock b{color:var(--ink)}
.group-inventory{margin-top:24px;border-top:1px solid var(--line);padding-top:4px}
.group-inventory[hidden],.txt-import input[hidden]{display:none}
.txt-import{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.txt-import .hint{margin:0;overflow-wrap:anywhere}
.group-code-value{max-width:240px;overflow-wrap:anywhere;white-space:normal}
@media(max-width:600px){.group-list-head{align-items:flex-start;flex-direction:column;gap:12px}.group-head-actions{width:100%}.group-head-actions .btn{flex:1}.group-product{padding:11px}.group-product-foot .row-actions{margin-left:auto}.group-section-title h3{font-size:14px}}

/* Share and order reports */
.public-actions{display:flex;align-items:center;gap:7px;margin-left:auto;flex:none}
.site-header .public-actions .btn{margin-left:0}
.share-content{text-align:center}
.share-qr{display:table;margin:20px auto 12px;padding:32px;background:#fff;border:1px solid var(--line);border-radius:12px;max-width:100%}
.share-qr canvas,.share-qr img{max-width:100%;height:auto}
.share-shop{font-weight:600;font-size:15px}
.share-url{margin:7px 0 20px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.share-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}
#report-fields{border:0;padding:0;margin:0;min-width:0}
#report-fields[hidden],#existing-report[hidden]{display:none}
.report-intro{margin-bottom:15px}
.report-progress-head,.report-order-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.report-progress>.muted{font-size:12px;overflow-wrap:anywhere}
.report-progress .kv{margin:18px 0}
.report-text{white-space:pre-wrap;overflow-wrap:anywhere}
.report-order-summary{padding-bottom:13px;margin-bottom:15px;border-bottom:1px solid var(--line)}
.report-empty{text-align:center;padding-bottom:8px}
.report-empty .btn{margin-top:18px}
.nav-badge{display:inline-flex;align-items:center;justify-content:center;background:#fee9e8;color:#b42318;min-width:18px;height:18px;margin-left:8px;border-radius:20px;font-size:10px;padding:0 5px}
.report-dashboard-alert{display:flex;align-items:center;gap:8px;padding:11px 14px;background:#fff6ed;border:1px solid #f5dfc7;border-radius:8px;color:#945a1d;margin-bottom:18px;font-size:12px}
.report-dashboard-alert>span{margin-left:auto;white-space:nowrap}
.report-filter{flex-wrap:nowrap;overflow:auto;max-width:100%}
.report-filter>button{flex:none}
@media(max-width:640px){.site-header .brand em{display:none}.site-header-inner{gap:8px}.public-actions{gap:5px}.site-header .public-actions .btn{padding:0 9px;font-size:11px;gap:4px}.site-header .public-actions .icon{width:14px;height:14px}.report-dashboard-alert{font-size:11px;padding:10px}.report-filter>button{padding:0 12px;font-size:11px}}

/* Customer care form */
dialog.complaint-dialog{width:min(620px,calc(100% - 28px));border-radius:18px}
.complaint-dialog .dialog-head{padding:17px 24px}
.complaint-dialog .dialog-body{padding:0 24px 22px}
.complaint-hero{display:flex;align-items:center;gap:15px;padding:24px;margin:0 -24px 22px;background:linear-gradient(110deg,#edf4ff,#f7faff);border-bottom:1px solid #e4edfc}
.complaint-hero-icon{display:grid;place-items:center;width:50px;height:50px;flex:none;border-radius:16px;background:#fff;border:1px solid #dce8ff;box-shadow:0 4px 12px #1d4ed80a;color:var(--blue)}
.complaint-hero-icon .icon{width:25px;height:25px}
.complaint-eyebrow{font-size:9px;letter-spacing:1.7px;color:#7592bc;font-weight:650}
.complaint-hero h3{font-size:19px;margin:3px 0 6px;color:#17335f;letter-spacing:-.3px}
.complaint-hero p{font-size:12px;color:#7185a4}
.complaint-section-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:13px;color:#243b5b;width:100%;padding:0}
.complaint-section-title>span{font-size:10px;color:#6a91c9;background:#edf4ff;padding:1px 6px;border-radius:5px;font-weight:600}
.complaint-section-title h3,.complaint-section-title>b{font-size:13px;font-weight:600}
.complaint-section-title>small{font-size:10px;color:#97a4b8;margin-left:auto;font-weight:400}
.complaint-order-section{margin-bottom:22px}
.complaint-order-select{background:#fbfcff;border-color:#e0e8f4;border-radius:10px;font-size:12px}
.complaint-order-summary{display:flex;align-items:center;gap:10px;margin-top:9px;color:#7b8da7;font-size:11px;min-width:0}
.complaint-order-summary[hidden]{display:none}
.complaint-order-summary>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.complaint-order-summary>b{margin-left:auto;font-weight:500;white-space:nowrap}
.complaint-order-summary .pill{font-size:10px;height:20px;flex:none}
.complaint-no-order{display:flex;gap:9px;align-items:center;padding:13px;background:#f7f9fd;border:1px solid #e8edf5;border-radius:10px;font-size:11px;color:#7891b4}
.complaint-no-order>.icon{color:#8fa8cd;width:21px;height:21px}
.complaint-no-order b{font-size:11px;color:#5f7594;font-weight:500}
.complaint-no-order p{font-size:10px;margin-top:3px;color:#99a5b6}
.complaint-no-order>a{margin-left:auto;white-space:nowrap;color:#527dba;font-size:10px}
.complaint-types{min-width:0;border:0;padding:0;margin:0 0 23px}
.complaint-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.complaint-type{position:relative;display:flex;align-items:center;gap:10px;min-width:0;padding:14px 12px;border:1px solid #e5ebf4;border-radius:11px;cursor:pointer;background:#fff;transition:background .15s,border-color .15s}
.complaint-type:hover{background:#f8faff;border-color:#c9daf5}
.complaint-type:has(input:checked){background:#f0f6ff;border-color:#8bb1ee;box-shadow:0 0 0 1px #c9dcfa40}
.complaint-type input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.complaint-type:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px}
.complaint-type-icon{width:32px;height:32px;border-radius:9px;background:#f3f6fb;display:grid;place-items:center;flex:none;color:#8498b5}
.complaint-type-icon .icon{width:17px;height:17px}
.complaint-type:has(input:checked) .complaint-type-icon{background:#dfeeff;color:#3d77d0}
.complaint-type-copy{min-width:0;display:grid;gap:4px}
.complaint-type-copy>b{font-size:12px;font-weight:550;color:#3d526f}
.complaint-type-copy>small{font-size:10px;line-height:1.5;color:#99a5b8}
.complaint-type-check{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:14px;height:14px;border:1px solid #e0e6f0;background:white;border-radius:50%;color:white}
.complaint-type-check>.icon{width:10px;height:10px;stroke-width:2.5}
.complaint-type:has(input:checked) .complaint-type-check{background:#4f85d8;border-color:#4f85d8}
.complaint-description-title{margin-bottom:10px}
.complaint-description{border-radius:11px;background:#fbfcff;border-color:#e0e8f4;font-size:12px;min-height:108px;resize:vertical}
.complaint-description::placeholder{font-size:11px;line-height:1.9;color:#a0adbf}
.complaint-contact{margin-top:16px}
.complaint-contact>label{display:block;margin-bottom:9px;font-size:12px;font-weight:550;color:#3d526f}
.complaint-contact small{font-size:10px;font-weight:400;color:#a0adbf;margin-left:5px}
.complaint-contact input{border-radius:10px;font-size:12px;background:#fbfcff;border-color:#e0e8f4}
.complaint-note{display:flex;gap:6px;align-items:center;margin:17px 0 13px;font-size:10px;color:#8ba0bc}
.complaint-note .icon{width:13px;height:13px;color:#86a8d5}
.complaint-submit{height:42px;border-radius:10px;font-size:13px;background:linear-gradient(110deg,#3677dc,#245aca);border-color:transparent;box-shadow:0 4px 12px #1d4ed814}
.complaint-submit:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.complaint-submit-hint{text-align:center;margin-top:9px;font-size:9px;color:#a3afbf}
.complaint-success{text-align:center;padding:24px 0}
.complaint-success>span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#edf5ff;color:#4c82d4;margin:0 auto 14px}
.complaint-success>span .icon{width:25px;height:25px}
.complaint-success h3{font-size:18px;color:#2a456d}
.complaint-success p{font-size:12px;color:#8b9db6;margin-top:7px}
.complaint-dialog .report-progress{background:#f8faff;border:1px solid #e6edf8;border-radius:12px;padding:16px}
.complaint-dialog .report-progress .kv{margin-bottom:0}
@media(max-width:640px){.complaint-dialog .dialog-head{padding:15px 18px}.complaint-dialog .dialog-body{padding:0 18px 18px}.complaint-hero{padding:20px 18px;margin:0 -18px 19px;gap:12px}.complaint-hero h3{font-size:17px}.complaint-hero p{font-size:10px}.complaint-hero-icon{width:43px;height:43px;border-radius:13px}.complaint-type{padding:13px 9px;gap:7px;align-items:flex-start}.complaint-type-icon{width:26px;height:26px;border-radius:8px}.complaint-type-icon .icon{width:15px;height:15px}.complaint-type-copy>b{font-size:11px;line-height:1.4;padding-right:5px}.complaint-type-copy>small{font-size:9px;line-height:1.65}.complaint-type-check{width:11px;height:11px;right:5px;top:5px}.complaint-type-check>.icon{width:8px;height:8px}.complaint-type-grid{gap:8px}.complaint-section-title>small{font-size:9px}.complaint-no-order{padding:11px 9px;gap:7px}.complaint-no-order p{font-size:9px}.complaint-no-order>a{font-size:9px}}

/* Personal center */
.site:has(.mine-page){background:#f5f7fb;min-height:100vh}
.site:has(.mine-page) .site-footer{display:none}
.mine-page{width:100%;max-width:760px;margin:24px auto 0;padding:0 18px 24px}
.mine-hero{position:relative;isolation:isolate;background:linear-gradient(115deg,#235cd3 0%,#3478e3 58%,#4e8eea 100%);border-radius:22px 22px 0 0;color:white;overflow:hidden;padding:22px 26px 39px}
.mine-hero::after{content:'';position:absolute;z-index:-1;right:-60px;top:-95px;width:260px;height:260px;border:40px solid #ffffff06;border-radius:50%;pointer-events:none}
.mine-hero-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.mine-hero-top h1{font-size:17px;font-weight:550;letter-spacing:.5px;color:#fff}
.mine-hero-top>button{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#ffffff16;color:#eaf3ff}
.mine-hero-top>button>.icon{width:17px;height:17px}
.mine-profile{display:flex;align-items:center;width:100%;gap:17px;text-align:left;color:#fff;padding:0;border:0;background:none}
.mine-avatar-wrap{position:relative;flex:none}
.mine-avatar{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#eaf2ff;border:3px solid #ffffffd9;box-shadow:0 4px 16px #0c3d9720;overflow:hidden;flex:none}
.mine-avatar img{width:100%;height:100%;object-fit:cover}
.mine-default-avatar{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(140deg,#e8f2ff,#c8dcfc);color:#6e9bdc}
.mine-default-avatar>.icon{width:36px;height:36px;stroke-width:1.5}
.mine-avatar-edit{display:grid;place-items:center;position:absolute;bottom:1px;right:-2px;width:20px;height:20px;border-radius:50%;border:2px solid #3676de;color:#6390d3;background:white}
.mine-avatar-edit>.icon{width:10px;height:10px;stroke-width:2}
.mine-profile-copy{display:grid;gap:7px;min-width:0}
.mine-profile-copy>strong{font-size:21px;color:#fff;letter-spacing:.2px;overflow-wrap:anywhere}
.mine-profile-copy>small{font-size:11px;color:#d6e6ff;overflow-wrap:anywhere;font-weight:400}
.mine-profile-caption{display:flex;align-items:center;gap:3px;color:#d3e5ff;font-size:10px;margin-top:1px}
.mine-profile-caption>.icon{width:11px;height:11px}
.mine-body{position:relative;padding:0 15px;margin-top:-19px}
.mine-orders,.mine-services{background:#fff;border:1px solid #e9eef6;border-radius:15px;box-shadow:0 3px 15px #1c427805}
.mine-orders{padding:18px 18px 20px;margin-bottom:13px}
.mine-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mine-section-head h2{font-size:14px;color:#233953;font-weight:600}
.mine-section-head>a{display:flex;align-items:center;gap:4px;font-size:10px;color:#9ba9bc}
.mine-section-head>a>.icon{width:11px;height:11px}
.mine-order-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:21px}
.mine-order-grid>a{display:flex;flex-direction:column;align-items:center;gap:9px;font-size:11px;color:#536882}
.mine-order-icon{position:relative;display:grid;place-items:center;width:38px;height:35px;color:#5480c5}
.mine-order-icon>.icon{width:26px;height:26px;stroke-width:1.4}
.mine-order-icon>b{position:absolute;right:-2px;top:-3px;min-width:16px;line-height:15px;border:1px solid #fff;border-radius:10px;background:#eaf1ff;font-size:9px;color:#4474bc;padding:0 3px;text-align:center}
.mine-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:13px}
.mine-feature{min-width:0;text-align:left;padding:16px 17px 17px;border:1px solid #e5edf9;border-radius:15px;background:linear-gradient(130deg,#f0f6ff,#fff);box-shadow:0 3px 15px #1c427803;display:grid;gap:5px}
.mine-feature:nth-child(2){background:linear-gradient(130deg,#f1f6ff,#fff)}
.mine-feature-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;color:#b5c5df}
.mine-feature-top>.icon{width:12px;height:12px}
.mine-feature-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#e3edff;color:#5484ce}
.mine-feature-icon>.icon{width:19px;height:19px;stroke-width:1.6}
.mine-feature>strong{font-size:13px;color:#355278;font-weight:550}
.mine-feature>small{font-size:10px;color:#93a6c1}
.mine-services{padding:18px 18px 0}
.mine-services .mine-section-head{margin-bottom:3px}
.mine-service-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:16px 0;border-bottom:1px solid #f0f3f8}
.mine-service-row:last-child{border-bottom:0}
.mine-service-icon{width:32px;height:32px;border-radius:10px;background:#f4f7fc;color:#8aa4c9;display:grid;place-items:center;flex:none}
.mine-service-icon>.icon{width:18px;height:18px}
.mine-service-row>span:nth-child(2){display:grid;gap:3px;min-width:0}
.mine-service-row b{font-size:12px;color:#52677f;font-weight:500}
.mine-service-row small{font-size:9px;color:#a4b2c5}
.mine-service-row>.icon{margin-left:auto;width:12px;height:12px;color:#b8c4d5;flex:none}
.mine-storage-note{font-size:9px;text-align:center;margin:19px 0 0;color:#b3bfce}
.profile-avatar-editor{display:flex;align-items:center;gap:20px;background:#f7faff;border:1px solid #e7eef9;border-radius:12px;padding:18px;margin-bottom:23px}
.profile-avatar-editor>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.profile-avatar-editor p{font-size:9px;width:100%;color:#9aaec9;margin-top:3px}
.profile-avatar-editor .link-btn{font-size:11px;color:#8ca0bd}
.profile-upload-label{cursor:pointer;margin:0}.profile-upload-label input[hidden]{display:none}
@media(max-width:640px){.mine-page{padding:0 0 92px;margin:0;max-width:none}.mine-hero{border-radius:0;padding:18px 23px 37px}.mine-hero-top{margin-bottom:17px}.mine-hero-top h1{font-size:16px}.mine-profile{gap:15px}.mine-profile-copy>strong{font-size:20px}.mine-avatar{width:64px;height:64px}.mine-body{padding:0 13px;margin-top:-18px}.mine-orders{padding:17px 17px 19px}.mine-feature-grid{gap:11px}.mine-feature{padding:14px 15px 15px}.mine-feature-icon{width:29px;height:29px;border-radius:9px}.mine-feature-icon>.icon{width:18px;height:18px}.mine-feature-top{margin-bottom:5px}.mine-services{padding:17px 17px 0}.mine-service-row{padding:14px 0}.mine-storage-note{margin-top:16px}.profile-avatar-editor{padding:14px;gap:14px}.profile-avatar-editor .mine-avatar{width:58px;height:58px}}
/* Full-width storefront and progressive route transitions. */
.storefront-main>.wrap,.storefront-main>section.wrap,.storefront-main #collection{max-width:none;padding-left:4px;padding-right:4px}
#app{view-transition-name:page}
::view-transition-old(root),::view-transition-new(root){animation:none}
::view-transition-old(page){animation:page-leave .13s ease-out both}
::view-transition-new(page){animation:page-enter .2s cubic-bezier(.2,.7,.3,1) both}
@keyframes page-leave{to{opacity:0;transform:translateY(-3px)}}
@keyframes page-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){::view-transition-old(page),::view-transition-new(page){animation:none}}
/* Customer service messages */
#report-entry{color:#fff;background:#e24b5b;border-color:#e24b5b}
#report-entry:hover{background:#cb3d4d;border-color:#cb3d4d}
.share-qr{display:flex;justify-content:center;align-items:center;width:264px;max-width:100%;padding:12px;min-height:150px}
.share-qr>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.tabbar{grid-template-columns:repeat(4,1fr)}
.support-dashboard-alert{color:#416faa;border-color:#d9e6fb;background:#f0f6ff}
.messages-page{max-width:900px;padding-top:22px;padding-bottom:10px}
.messages-page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
.messages-page-title h1{font-size:22px}.messages-page-title>span{font-size:11px;color:#96a7be}
.support-chat{display:flex;flex-direction:column;border:1px solid #e1e9f5;border-radius:16px;background:#f6f9fe;overflow:hidden;min-width:0}
.customer-chat{height:min(680px,calc(100dvh - 200px));min-height:360px}
.support-chat-head{display:flex;align-items:center;gap:11px;background:#fff;border-bottom:1px solid #e7eef8;padding:16px 18px;flex:none}
.support-agent-avatar{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#eaf2ff;color:#5280cb;flex:none}
.support-agent-avatar>.icon{width:22px;height:22px}
.support-chat-head h2{font-size:14px;color:#2b466c}.support-chat-head p{font-size:10px;color:#95a7bf;margin-top:3px}
.support-channel-tag{margin-left:auto;font-size:9px;white-space:nowrap;padding:3px 8px;border:1px solid #e4ecf8;border-radius:15px;color:#8aa0c0}
.support-scroll{flex:1;min-height:0;overflow:auto;padding:20px 16px;scroll-behavior:smooth;overscroll-behavior:contain}
.support-empty{display:flex;align-items:center;flex-direction:column;text-align:center;padding:60px 12px;color:#9aacc6;gap:11px}
.support-empty>.icon{width:34px;height:34px;stroke-width:1.2;color:#a4bfdf}.support-empty b{font-size:13px;font-weight:500;color:#8197b7}.support-empty>span{font-size:10px;line-height:1.9}
.support-message{display:flex;align-items:flex-start;gap:8px;margin-bottom:20px}
.support-message-avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#e8f0fc;color:#7096cc;flex:none;margin-top:2px}
.support-message-avatar>.icon{width:16px;height:16px}
.support-message>div{max-width:min(78%,540px);min-width:0;display:flex;align-items:flex-start;flex-direction:column}
.support-message-name{font-size:9px;color:#8ba0bf;margin:0 0 5px}
.support-message p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 13px;border:1px solid #e1e9f5;border-radius:2px 12px 12px 12px;background:#fff;color:#3b5271}
.support-message time{display:block;font-size:9px;line-height:1.6;color:#9daec5;margin-top:6px;white-space:nowrap;font-variant-numeric:tabular-nums}
.support-message.is-own{flex-direction:row-reverse}.support-message.is-own>div{align-items:flex-end}.support-message.is-own p{background:#3775db;border-color:#3775db;color:#fff;border-radius:12px 2px 12px 12px}.support-message.is-own .support-message-avatar{background:#dceaff;color:#5c89cd}
#support-send-form{padding:13px 16px;background:#fff;border-top:1px solid #e4ecf7;flex:none}
#support-send-form textarea{border:0;box-shadow:none;resize:none;background:#f7f9fd;border-radius:9px;padding:11px;font-size:12px;min-height:65px;max-height:140px}
#support-send-form>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}
#support-send-form>div>span{font-size:9px;color:#a4b2c6}.support-browser-note{font-size:9px;text-align:center;color:#a4b3c8;margin-top:12px}
.support-older{display:block;margin:0 auto 20px;font-size:10px;color:#7e9bc2}.support-older[hidden]{display:none}
.merchant-support{display:grid;grid-template-columns:290px minmax(0,1fr);height:calc(100dvh - 200px);min-height:480px;max-height:850px;gap:14px}
.support-thread-panel{background:#fff;border:1px solid #e1e9f5;border-radius:14px;overflow:auto;min-width:0}
.support-thread-panel>div:first-child{display:flex;justify-content:space-between;align-items:center;padding:17px 15px;border-bottom:1px solid #edf2f9}
.support-thread-panel h2{font-size:14px}.support-thread-panel .link-btn{font-size:11px}
.support-thread{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:16px 13px;border-bottom:1px solid #f0f4fa}
.support-thread.active{background:#eff5ff}.support-thread:hover{background:#f5f8fe}
.support-thread-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eaf1fc;color:#7a9eca;font-size:13px;flex:none}
.support-thread>span:nth-child(2){display:grid;gap:5px;min-width:0}.support-thread b{font-size:12px;font-weight:500;color:#4f6687}.support-thread small{font-size:11px;color:#9babc0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-thread time{font-size:8px;color:#afbdcf;font-variant-numeric:tabular-nums}
.support-thread>em{margin-left:auto;align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border-radius:20px;background:#e65a66;color:white;font-size:9px;font-style:normal;flex:none}
@media(max-width:900px){.merchant-support{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:640px){.tabbar a{gap:4px;font-size:11px}.tabbar a .icon{width:17px;height:17px}.messages-page{padding:16px 10px 90px}.messages-page-title{margin-bottom:12px}.messages-page-title h1{font-size:20px}.customer-chat{height:calc(100dvh - 225px);min-height:350px;border-radius:14px}.support-chat-head{padding:13px 12px;gap:9px}.support-channel-tag{padding:3px 6px;font-size:8px}.support-chat-head p{font-size:9px}.support-scroll{padding:17px 10px}.support-message p{font-size:12px;padding:9px 11px}.support-message time{font-size:8px}#support-send-form{padding:11px}#support-send-form>div>span{font-size:8px}.merchant-support{grid-template-columns:1fr;height:auto;max-height:none;min-height:0;gap:12px}.support-thread-panel{max-height:220px}.merchant-chat{height:570px;min-height:440px}.support-browser-note{font-size:8px;margin-top:9px}}

/* Persistent unread indicators in storefront navigation and merchant sidebar. */
.message-entry{position:relative}
.support-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#ee4d5a;color:#fff;font-size:10px;font-weight:600;line-height:1;box-shadow:0 0 0 2px #fff;flex:none;font-variant-numeric:tabular-nums}
.support-unread-badge[hidden]{display:none}
.site-nav .support-unread-badge{position:absolute;top:-7px;right:-14px}
.tabbar .support-unread-badge{position:absolute;top:2px;left:calc(50% + 14px);min-width:15px;height:15px;padding:0 3px;font-size:9px}
.mine-service-row .support-unread-badge{margin-left:auto;margin-right:7px}
.mine-service-row.message-entry>.icon{margin-left:0}
.side-nav .support-unread-badge{margin-left:8px;box-shadow:none}
/* Esports support layout, adapted to the store's deeper blue palette. */
:root{--blue:#1647c9;--blue-h:#10369d}
.btn.primary{background:#1647c9;border-color:#1647c9;color:#fff;box-shadow:0 4px 10px #1647c916}
.btn.primary:hover{background:#10369d;border-color:#10369d}
.mine-hero{background:linear-gradient(115deg,#133ba4 0%,#1c52c9 65%,#2865d5 100%)}
.customer-service-float{position:fixed;z-index:24;right:18px;bottom:calc(92px + env(safe-area-inset-bottom));width:70px;height:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #ffffffc4;border-radius:50%;color:#fff;background:#1647c9;box-shadow:0 10px 24px #12347a4d;transition:transform .15s,box-shadow .15s}
.customer-service-float>.icon{width:26px;height:26px;stroke-width:1.8}
.customer-service-float>span{font-size:10px;font-weight:500}
.customer-service-float:hover{transform:translateY(-2px);box-shadow:0 13px 28px #12347a55}.customer-service-float:active{transform:scale(.94)}
.customer-service-float .support-unread-badge{position:absolute;top:0;right:0}
.messages-page{max-width:960px;padding:26px 20px 40px}
.support-chat{border:1px solid #dfe6f1;border-radius:18px;background:#f4f6fa;box-shadow:0 12px 40px #143c7610;overflow:hidden;display:flex;flex-direction:column}
.customer-chat{height:calc(100dvh - 180px);min-height:500px;max-height:920px}
.support-chat-head{display:flex;align-items:center;gap:11px;padding:17px 20px;border-bottom:1px solid #e0e6ef;background:#fff;flex:none}
.support-chat-head>div{flex:1;min-width:0}
.support-chat-head h2{font-size:16px;color:#172a49;font-weight:650}.support-chat-head p{margin-top:3px;font-size:11px;color:#8290a6}
.support-back{width:30px;height:34px;display:grid;place-items:center;color:#294568}.support-back>.icon{transform:rotate(180deg);width:21px;height:21px}
.support-agent-avatar{width:36px;height:36px;border-radius:50%;background:#1647c9;color:white;display:grid;place-items:center}
.support-handoff,.support-mode-toggle{padding:7px 12px;border-radius:20px;background:#edf2fc;border:1px solid #dbe5f8;color:#1647c9;font-size:11px;font-weight:600;white-space:nowrap}
.support-mode-toggle{background:#1647c9;color:#fff;border-color:#1647c9}.support-mode-toggle.is-human{background:#fff;color:#1647c9}.support-handoff:disabled{color:#8a97ad;background:#f4f6f9;border-color:#e8edf4}
.support-scroll{padding:24px 20px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.support-message{gap:9px;align-items:flex-start;margin:0 0 21px}
.support-message-avatar{width:33px;height:33px;border-radius:50%;background:#e4ecfc;color:#1647c9;margin-top:24px}
.support-message>div{max-width:calc(100% - 44px)}
.support-message-meta{display:flex;align-items:center;gap:6px;margin-bottom:7px;max-width:100%;flex-wrap:wrap}
.support-message-name{font-size:11px;font-weight:550;color:#566981;margin:0}
.support-message-meta em{font-style:normal;font-size:8px;font-weight:650;padding:1px 5px;border-radius:4px;background:#e5ecfb;color:#1647c9}
.support-message time{display:inline;font-size:9px;color:#99a7ba;margin:0;line-height:1.4}
.support-message p{border-radius:14px;padding:11px 14px;color:#253a55;font-size:14px;line-height:1.65;background:#fff;border:1px solid #e0e6ef;box-shadow:0 3px 10px #233d6004;max-width:100%}
.support-message.is-own p{border-radius:14px;background:#1647c9;border-color:#1647c9;color:#fff}.support-message.is-own .support-message-meta{justify-content:flex-end}.support-message.is-own .support-message-avatar{background:#e8edf5;color:#61728c}
.support-empty{padding:36px 15px 30px;gap:9px}.support-welcome-avatar{display:grid;place-items:center;width:62px;height:62px;border-radius:23px;background:#1647c9;color:#fff;margin-bottom:7px;box-shadow:0 8px 20px #1647c92b}.support-welcome-avatar>.icon{width:29px;height:29px}.support-empty>b{font-size:17px;color:#243a59}.support-empty>span:last-of-type{font-size:12px;color:#95a2b5}
.support-suggestions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:14px}.support-suggestions button{background:#fff;border:1px solid #dfe6f2;border-radius:20px;padding:7px 12px;font-size:11px;color:#617b9e}
#support-send-form{padding:14px 16px 12px;background:#fff;border-top:1px solid #dfe6ef}
#support-send-form .support-composer-row{display:flex;align-items:center;gap:10px;margin:0}
#support-send-form textarea{min-height:44px;max-height:110px;height:44px;flex:1;min-width:0;resize:none;background:#f2f5fa;border:1px solid #e8edf5;border-radius:12px;padding:11px 12px;font-size:13px;line-height:20px}
#support-send-form .support-add-product{width:32px;height:36px;flex:none;display:grid;place-items:center;color:#6981a1}.support-add-product>.icon{width:24px;height:24px;border:1.5px solid currentColor;border-radius:50%;padding:3px}
#support-send-form .support-send{height:40px;padding:0 15px;border-radius:12px;font-size:12px;flex:none}
#support-send-form .support-composer-note{display:flex;justify-content:space-between;margin:9px 0 0;gap:6px}#support-send-form .support-composer-note>span{font-size:9px;color:#a3afbf}
#support-draft-product{display:flex;align-items:center;gap:7px;padding:9px 11px;margin:0 0 10px;border-radius:10px;background:#f0f4fc;font-size:11px;color:#305683}#support-draft-product span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#support-draft-product button{display:grid;place-items:center}
#support-draft-product[hidden],#support-typing[hidden]{display:none}
#support-typing{display:flex;align-items:center;gap:4px;font-size:10px;color:#90a0b7;margin:0 0 12px 42px}#support-typing span{margin-left:5px}#support-typing i{width:4px;height:4px;border-radius:50%;background:#6b88b9;animation:supportPulse 1.2s ease-in-out infinite}#support-typing i:nth-child(2){animation-delay:.15s}#support-typing i:nth-child(3){animation-delay:.3s}@keyframes supportPulse{50%{opacity:.3;transform:translateY(-2px)}}
.support-product-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dce5f4;border-radius:14px;background:white;width:310px;max-width:100%;color:#253c5a;box-shadow:0 4px 16px #1b3d6a07}.support-product-cover{display:grid;place-items:center;flex:none;width:64px;height:64px;background:#edf2fc;border-radius:9px;overflow:hidden;color:#5e7bad}.support-product-cover img{width:100%;height:100%;object-fit:cover}.support-product-card>span:nth-child(2){display:grid;gap:4px;min-width:0;flex:1}.support-product-card small{font-size:9px;color:#9aa9bf}.support-product-card strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere;font-weight:550}.support-product-card b{font-size:14px;color:#1647c9;font-weight:650}.support-product-card>.icon{width:13px;color:#9baec7}
.support-product-picker{display:grid;gap:8px}.support-product-picker>button{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #e2e9f4;border-radius:12px;padding:11px}.support-product-picker>button>span:nth-child(2){display:grid;gap:5px;flex:1;min-width:0}.support-product-picker strong{font-size:12px;font-weight:550}.support-product-picker small{color:#1647c9}.support-product-picker>button>.icon{color:#1647c9}
@media(min-width:641px){.customer-service-float{bottom:28px;right:28px;width:76px;height:76px}}
@media(max-width:640px){.site:has(.messages-page)>.site-header,.site:has(.messages-page)>.site-footer,.site:has(.messages-page)>.tabbar{display:none}.messages-page{padding:0;margin:0;max-width:none;height:100dvh}.customer-chat{height:100dvh;min-height:0;max-height:none;border:0;border-radius:0;box-shadow:none}.support-chat-head{padding:calc(13px + env(safe-area-inset-top)) 14px 13px;gap:7px}.support-chat-head h2{font-size:16px}.support-chat-head p{font-size:10px}.support-scroll{padding:19px 12px}.support-message{gap:8px;margin-bottom:19px}.support-message>div{max-width:calc(100% - 42px)}.support-message p{font-size:14px}.support-message time{font-size:8px}.support-product-card{width:280px;gap:9px;padding:10px}.support-product-cover{width:58px;height:58px}#support-send-form{padding:11px 10px calc(10px + env(safe-area-inset-bottom))}#support-send-form .support-composer-row{gap:6px}#support-send-form .support-send{padding:0 12px}#support-send-form .support-composer-note>span{font-size:8px}.customer-service-float{right:14px;width:66px;height:66px}.merchant-chat .support-chat-head{padding:13px 12px}.merchant-chat .support-message-meta{gap:4px}.merchant-chat .support-chat-head h2{font-size:14px}}
@media(prefers-reduced-motion:reduce){#support-typing i{animation:none}}

/* A calmer everyday chat surface, with explicit AI and human states. */
.quick-reply-panel{flex:none;padding:10px 14px;background:#fbfcff;border-top:1px solid #e1e9f5;min-width:0}
.quick-reply-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.quick-reply-toolbar strong{font-size:11px;color:#3d5272;margin-right:auto}.quick-reply-toolbar .link-btn{font-size:11px}.quick-reply-toolbar button:disabled{opacity:.5;cursor:default}
#quick-reply-status{font-size:10px;color:#8494ad;margin:7px 0;line-height:1.6}
#quick-reply-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:auto;max-height:165px;overscroll-behavior:contain;scrollbar-width:thin}
.quick-reply-option{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;padding:10px 12px;border:1px solid #dfe7f3;border-radius:10px;background:#fff;min-width:0}
.quick-reply-option.is-ai{background:#edf4ff;border-color:#cdddfa}.quick-reply-option em{font-style:normal;font-size:9px;color:#1647c9}.quick-reply-option span{font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-height:76px;overflow:auto;width:100%}.quick-reply-option small{font-size:9px;color:#7f94b1;margin-top:auto}.quick-reply-option:hover{border-color:#1647c9}.quick-reply-option:disabled{opacity:.6;cursor:default}
.save-quick-reply{font-size:10px;color:#7b91b2;margin-top:6px;padding:2px}.save-quick-reply:hover{color:#1647c9}
.quick-reply-manager-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#8494ad;margin-bottom:12px}.quick-reply-manager article{border:1px solid #e1e9f5;border-radius:10px;margin:9px 0;padding:12px}.quick-reply-manager article p,.quick-reply-delete-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;max-height:190px;overflow:auto}.quick-reply-manager article>div{display:flex;justify-content:flex-end;gap:16px;margin-top:8px}.quick-reply-delete-preview{margin:15px 0;padding:12px;background:#f5f7fb;border-radius:10px}
@media(max-width:640px){.quick-reply-panel{padding:9px 10px}.quick-reply-toolbar{gap:8px}.quick-reply-toolbar .link-btn{font-size:10px}.merchant-chat{min-height:650px}#quick-reply-items{max-height:145px;grid-template-columns:1fr}.quick-reply-option span{max-height:55px}}
.support-message-avatar img,.support-message-avatar svg:not(.icon){width:100%;height:100%;object-fit:cover;border-radius:50%}
.support-chat-head h2{font-size:15px;letter-spacing:.1px}
.support-chat-head p{font-size:10px;letter-spacing:.1px}
.support-message.is-agent .support-message-avatar{background:#e6edfd;color:#1647c9}
.support-message-meta em{border:1px solid #d9e4fa;background:#edf2fe;border-radius:4px;letter-spacing:.3px}
.support-message p{letter-spacing:.1px;line-height:1.7;box-shadow:0 2px 5px #183b6603}
.support-message:not(.is-own) p{border-radius:4px 15px 15px 15px}
.support-message.is-own p{border-radius:15px 4px 15px 15px}
.support-empty{padding-top:50px}.support-empty>b{font-size:17px;font-weight:550}.support-empty>span:last-of-type{max-width:240px;line-height:1.7}
.support-suggestions button{border-radius:10px;background:#ffffffb8;padding:9px 13px;color:#526c91}
#support-send-form .support-composer-note{padding:0 3px}
#support-send-form textarea::placeholder{color:#a2afc2}
.support-message{animation:chatMessageAppear .18s ease-out both}
@keyframes chatMessageAppear{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.support-message{animation:none}}
.support-message-avatar{overflow:hidden}
.support-message-avatar>.mine-default-avatar{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:transparent}
.support-message-avatar>.mine-default-avatar>.icon{width:21px;height:21px}
#support-send-form .support-add-image{width:28px;height:36px;display:grid;place-items:center;color:#6981a1;flex:none}#support-send-form .support-add-image>.icon{width:23px;height:23px}#support-send-form .support-add-image:disabled{opacity:.4;cursor:default}
#support-send-form input[type=file][hidden]{display:none}
.support-photo{display:block;max-width:100%;border-radius:13px;overflow:hidden;border:1px solid #dde5f2;background:white;padding:3px;line-height:0;cursor:zoom-in}.support-photo img{display:block;width:auto;max-width:260px;max-height:320px;object-fit:contain;border-radius:10px}.support-photo+p{margin-top:7px}
.support-image-view{display:grid;place-items:center}.support-image-view img{display:block;max-width:100%;max-height:72dvh;object-fit:contain;border-radius:8px}.support-image-draft{width:44px;height:44px;object-fit:cover;border-radius:7px;flex:none}
.visit-stats{margin-bottom:18px}.visit-toolbar{padding:16px 18px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line-2)}.visit-toolbar .tabs{margin-right:auto}.visit-toolbar .search{max-width:260px}.visit-time{font-size:11px;white-space:nowrap;color:#72839e}.visit-path{font-size:11px;max-width:220px;overflow:hidden;text-overflow:ellipsis}.visit-pagination{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#94a2b6;font-size:11px}.visit-pagination>div{display:flex;gap:7px}.visits-table .mono{font-size:12px}
@media(max-width:640px){.support-photo img{max-width:215px;max-height:280px}#support-send-form .support-composer-row{gap:4px}#support-send-form .support-add-product{width:26px}#support-send-form .support-add-image{width:24px}.visit-toolbar{padding:13px}.visit-toolbar .tabs{width:100%}.visit-toolbar .search{flex:1;min-width:0;max-width:none}.visit-pagination{padding:12px;font-size:10px}.visit-pagination .btn{padding:0 8px}.visit-stats .stat{padding:10px!important}.visit-stats .stat-value{font-size:18px}.visit-stats .stat-foot{font-size:8px}}

.support-photo img{width:240px;height:220px}
@media(max-width:640px){.support-photo img{width:210px;height:220px}}

.support-chat-head>.support-chat-controls{flex:none;display:flex;align-items:center;gap:7px}.support-delete{border:1px solid #f3d9dd;border-radius:18px;padding:7px 10px;background:#fff5f6;color:#d44d5d;font-size:11px;white-space:nowrap}.support-delete:disabled{opacity:.4;cursor:default}.btn.danger{background:#df4558;color:white;border-color:#df4558}.btn.danger:hover{background:#c93547;border-color:#c93547}.support-delete-warning{text-align:center;padding:7px 8px 19px}.support-delete-warning>.icon{width:32px;height:32px;color:#df4558;margin-bottom:12px}.support-delete-warning h3{font-size:15px;margin-bottom:10px}.support-delete-warning p{font-size:12px;line-height:1.8;color:#8b98ad}
@media(max-width:640px){.support-chat-head>.support-chat-controls{gap:5px}.support-chat-controls .support-mode-toggle{padding:7px 9px;font-size:10px}.support-delete{font-size:10px;padding:7px 8px}}

/* First-load recovery remains visible before application initialization. */
.startup-card{box-sizing:border-box;max-width:420px;margin:12vh auto 32px;padding:28px 22px;text-align:center;color:#17345b;background:#fff;border:1px solid #e2eafa;border-radius:22px;font-family:system-ui,-apple-system,sans-serif}.startup-mark{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 18px;border-radius:16px;background:#1546a6;color:#fff;font-size:25px;font-weight:700}.startup-card h1{font-size:21px;margin:0 0 12px}.startup-card p{line-height:1.7;color:#60708a;font-size:14px}.startup-actions{display:flex;justify-content:center;gap:10px;margin:24px 0}.startup-actions>a,.startup-actions>button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #d4e0f3;background:#fff;border-radius:24px;padding:0 20px;color:#16479d;font:inherit;font-size:14px;text-decoration:none;cursor:pointer}.startup-actions>.startup-retry{background:#1546a6;border-color:#1546a6;color:#fff}.startup-card .startup-hint{font-size:12px;color:#7d899c}.dialog-fallback-backdrop{position:fixed;inset:0;z-index:999;background:rgba(15,30,55,.42)}dialog.dialog-fallback[open]{display:block;position:fixed;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);z-index:1000;max-height:90vh;overflow:auto}
.order-progress{grid-template-columns:repeat(4,minmax(0,1fr))}.mine-order-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.order-start{font-weight:650;color:#1546a6}.delivery-order-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px}.delivery-order-head strong{font-size:17px}.delivery-order-head small{display:block;color:#8190a5;font-size:11px;margin-top:6px;overflow-wrap:anywhere}.delivery-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;align-items:start}.delivery-remarks{padding:16px;background:#f4f7fd;border:1px solid #e0e8f6;border-radius:14px}.delivery-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.delivery-section-head h3{font-size:14px;margin:0}.delivery-remarks .hint{font-size:11px;line-height:1.6}.delivery-remark{display:block;text-align:left;width:100%;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #dbe5f7;background:white;border-radius:9px;padding:10px;color:#355b91;font:inherit;font-size:12px;line-height:1.6;cursor:pointer;margin:8px 0}.delivery-remark:hover{border-color:#819dce;background:#edf3ff}#delivery-new-remark{margin-top:12px}#delivery-new-remark textarea{margin-bottom:8px}.delivery-field{border:1px solid #e0e7f3;border-radius:12px;padding:12px;margin-bottom:12px;background:#fff}.delivery-field-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.delivery-field-head .delivery-label{flex:1;min-width:0;font-weight:600;font-size:13px;background:#f7f9fd;border-color:transparent}.delivery-field textarea{resize:vertical;font-size:13px}.delivery-field .delivery-remove{flex:none;font-size:11px;color:#9b6470}#delivery-form>.field{margin-top:20px}.delivery-value{padding:16px 18px;border:1px solid #e0e8f6;background:#f7faff;border-radius:12px;margin-bottom:14px;min-width:0}.delivery-value h3{font-size:12px;color:#7184a2;font-weight:500;margin:0 0 10px}.delivery-value pre,.delivery-value p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:14px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;color:#1a365b}.delivery-note{background:#fffaf0;border-color:#f1e5c8}.delivery-locked{padding:24px;margin-top:22px;border:1px solid #d9e7fb;border-radius:16px;text-align:center;background:#f5f9ff}.delivery-locked>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#e4edff;color:#174baf;margin:0 auto 12px}.delivery-locked h3{font-size:16px}.delivery-locked p{font-size:12px;color:#7c8da5;line-height:1.7;margin:8px 0 18px}.shipment-notice{text-align:center;padding:12px 8px}.shipment-notice>span{display:grid;place-items:center;width:70px;height:70px;background:#e8f1ff;border-radius:50%;color:#1546a6;margin:0 auto 20px}.shipment-notice>span .icon{width:32px;height:32px}.shipment-notice h3{font-size:22px}.shipment-notice p{font-size:14px;color:#335175;margin:12px 0}.shipment-notice small{display:block;font-size:12px;color:#8390a4;line-height:1.7;margin:0 0 25px}.shipment-notice .btn+.btn{margin-top:8px}.remark-manager{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.remark-manager-card{padding:20px;margin:0;display:flex;flex-direction:column;gap:18px;justify-content:space-between}.remark-manager-card p{white-space:pre-wrap;overflow-wrap:anywhere;color:#435875;font-size:14px;line-height:1.8;margin:0}.remark-manager-card>div{display:flex;justify-content:flex-end;gap:18px}.link-btn.danger{color:#bf4459}@media(max-width:640px){.delivery-workspace{grid-template-columns:minmax(0,1fr);gap:16px}.delivery-remarks{padding:12px}#delivery-remark-list{display:flex;gap:8px;overflow:auto;max-height:150px}.delivery-remark{width:auto;min-width:130px;max-width:220px;flex:none;font-size:11px;margin:0}.delivery-field{padding:10px}.delivery-order-head strong{font-size:15px}.remark-manager{grid-template-columns:minmax(0,1fr)}.order-progress li{font-size:10px}.order-progress small{font-size:8px}.mine-order-grid{gap:4px}.mine-order-grid>a{font-size:10px}}

/* Homepage order activity: optional, independent from storefront loading. */
.activity-pop{position:fixed;left:12px;top:92px;z-index:40;display:flex;align-items:center;gap:9px;max-width:calc(100vw - 24px);padding:9px 12px 9px 9px;border:1px solid #dce7f8;border-radius:999px;background:rgba(255,255,255,.97);box-shadow:0 5px 24px #163c701c;pointer-events:none;color:#2e4262}.activity-pop[hidden]{display:none}.activity-avatar{width:34px;height:34px;flex:none;position:relative;overflow:hidden;border-radius:50%;background:linear-gradient(140deg,#e4efff,#cbdfff);display:inline-grid;place-items:center;color:#285aab;font-size:13px;font-weight:600}.activity-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.activity-pop p{margin:0;font-size:12px;line-height:1.5;white-space:nowrap}.activity-pop b{font-weight:650;color:#174784}.activity-pop small{display:block;font-size:9px;color:#93a3b9;margin-top:1px}.activity-check{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#e9f4ef;color:#31a16d;margin-left:2px}.activity-check .icon{width:11px;height:11px}.activity-settings{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;margin-bottom:20px;background:linear-gradient(110deg,#fff,#f1f6ff)}.activity-settings h2{font-size:16px;margin:0 0 8px}.activity-settings p{font-size:12px;color:#7c8ea9;margin:0;line-height:1.8}.activity-user{display:flex;align-items:center;gap:10px}.activity-user b{font-weight:500;font-size:12px}.activity-table .mono{font-size:11px}.activity-import-guide{padding:15px;background:#f3f7ff;border:1px solid #e0e9fa;border-radius:12px;margin-bottom:18px;font-size:13px}.activity-import-guide p{font-size:12px;line-height:1.8;color:#7c8da5;margin:7px 0 0}#activity-import-form>.upload-button{margin-bottom:16px!important}#activity-import-form textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}@media(max-width:640px){.activity-pop{left:8px;top:80px;padding:7px 10px 7px 7px;gap:7px}.activity-pop .activity-avatar{width:29px;height:29px}.activity-pop p{font-size:11px}.activity-settings{padding:16px;align-items:flex-start;gap:12px}.activity-settings .toggle{font-size:11px}.activity-settings h2{font-size:14px}}

.activity-pop{border-color:#d82e47;background:linear-gradient(110deg,#ed4d62,#d91e3b);box-shadow:0 5px 24px #ce25472b;color:#fff}.activity-pop b{color:#fff}.activity-pop small{color:#ffe0e5}.activity-pop .activity-avatar{background:#ffffff26;color:#fff;box-shadow:0 0 0 1px #ffffff50}.activity-pop .activity-check{background:#fff;color:#d9213e}

.activity-pop{top:142px;transform-origin:center top}.activity-pop-outgoing{z-index:39;will-change:opacity,transform}@media(max-width:640px){.activity-pop{top:130px}}

.activity-pop{max-width:min(480px,calc(100vw - 24px))}.activity-copy{min-width:0}.activity-copy p{display:flex;align-items:baseline;gap:4px;min-width:0}.activity-copy p>b,.activity-copy p>span{flex:none}.activity-product{display:block;min-width:0;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#fff}

.activity-pop{max-width:min(320px,calc(100vw - 24px))}.activity-copy{max-width:220px}.activity-product{max-width:220px;margin-top:2px;font-size:10px;line-height:1.5;font-weight:500;color:#ffe0e5}

/* Store-owned customer question buttons and fixed automatic answers. */
.support-config-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.support-config-toolbar>span{font-size:12px;color:#788aa5}.support-faq-panel{flex:none;border-top:1px solid #e4ebf6;background:#f6f9ff;padding:12px 16px 10px}.support-faq-panel[hidden]{display:none}.support-faq-panel>span{display:block;font-size:11px;color:#7386a4;margin-bottom:8px}#support-faq-buttons{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}#support-faq-buttons::-webkit-scrollbar{display:none}#support-faq-buttons button{display:inline-flex;align-items:center;gap:10px;flex:none;max-width:240px;padding:9px 12px;background:#fff;border:1px solid #d8e5fa;color:#194ca5;border-radius:12px;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#support-faq-buttons button:disabled{opacity:.55;cursor:wait}#support-faq-buttons .icon{width:13px;height:13px;flex:none}.faq-config-intro{display:flex;gap:15px;align-items:center;padding:23px;border:1px solid #dfe9fb;border-radius:16px;background:linear-gradient(110deg,#fff,#eef4ff);margin-bottom:22px}.faq-config-intro>span{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:14px;background:#e6efff;color:#174ba4}.faq-config-intro h2{font-size:17px;margin:0 0 8px}.faq-config-intro p{font-size:12px;color:#7185a4;line-height:1.8;margin:0}.faq-manager{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.faq-card{padding:20px;margin:0;min-width:0}.faq-card header{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.faq-card header small{font-size:11px;color:#97a4b8}.faq-card h3{font-size:15px;overflow-wrap:anywhere;margin:0 0 12px;color:#25446b}.faq-card p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:13px;color:#667b99;background:#f6f9ff;border-radius:10px;padding:13px;margin:0}.faq-card footer{display:flex;justify-content:flex-end;gap:18px;margin-top:20px}.faq-editor-options{display:flex;align-items:center;justify-content:space-between;gap:20px}.faq-editor-options>.field{max-width:150px}.faq-editor-options .toggle{margin-top:8px}@media(max-width:640px){.faq-manager{grid-template-columns:minmax(0,1fr)}.faq-config-intro{padding:16px;align-items:flex-start}.faq-config-intro h2{font-size:15px}.support-config-toolbar>span{font-size:11px}.support-faq-panel{padding:9px 12px 8px}#support-faq-buttons button{padding:8px 10px;font-size:11px;max-width:220px}}
