:root{--ink:#1d293d;--muted:#63718a;--line:#e0e6ef;--blue:#2859db;--pale:#eef3ff;--bg:#f6f8fb;--teal:#168268;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button{color:inherit}svg{flex:none}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--blue)}
.shell{min-height:100dvh;display:grid;grid-template-columns:236px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid var(--line);position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;z-index:2}.brand{height:70px;min-height:70px;display:flex;align-items:center;gap:10px;color:#1c2a42;padding:0 22px;font-size:22px;font-weight:730;letter-spacing:-1.3px}.brand img{width:32px;height:32px}.brand:hover{text-decoration:none}.brand span{color:#54627a;font-weight:450}.sidebody{padding:9px 13px 14px;overflow:auto;scrollbar-width:thin;flex:1}.section-tag{margin:20px 10px 8px;font-size:10px;font-weight:720;color:#75829a;letter-spacing:.15em}.sidebody .section-tag:first-child{margin-top:8px}.navlink{position:relative;display:flex;align-items:center;gap:12px;height:35px;margin:2px 0;padding:0 12px;border-radius:7px;color:#506078;font-size:13px;font-weight:520}.navlink svg{color:#8794a7}.navlink:hover{background:#f3f6fa;text-decoration:none}.navlink.current{background:var(--pale);color:var(--blue);font-weight:680}.navlink.current:before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--blue)}.navlink.current svg{color:var(--blue)}.navcount{margin-left:auto;border-radius:5px;padding:1px 6px;background:#e4ebfc;color:var(--blue);font-size:11px;font-variant-numeric:tabular-nums}.sidefoot{display:flex;align-items:center;gap:10px;padding:13px 18px;border-top:1px solid var(--line)}.sidefoot div{flex:1}.sidefoot strong,.sidefoot small{display:block}.sidefoot small{color:var(--muted);font-size:11px;margin-top:3px}
.topbar{height:62px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3vw,45px);gap:12px}.crumb,.top-actions,.inline,.actions,.row-user,.tabbar,.toolrow,.head-actions,.metric-row{display:flex;align-items:center;gap:9px}.crumb{color:#77839a;font-size:12px}.crumb b{color:#49566c;font-weight:550}.top-actions{font-size:12px}.top-actions a{display:flex;align-items:center;gap:6px}.demo-pill{display:inline-flex;gap:6px;align-items:center;border:1px solid #d7dfed;padding:4px 9px;background:#f9fbff;color:#51627c;font-size:11px;border-radius:20px}.demo-pill i{height:6px;width:6px;background:#758ac8;border-radius:50%}.workspace{min-width:0}.main{max-width:1680px;margin:0 auto;padding:30px clamp(16px,3vw,45px) 60px}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}h1{font-size:clamp(25px,2.4vw,34px);letter-spacing:-1.4px;line-height:1.3;font-weight:700}h2{font-size:17px;letter-spacing:-.4px}h3{font-size:15px}.pagehead p,.sub,.hint{color:var(--muted);line-height:1.65}.pagehead p{font-size:13px;margin-top:7px}.btn,.icon-btn{border:1px solid #d9e0eb;background:#fff;min-height:35px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 11px;line-height:1.4;font-size:12px;font-weight:580;white-space:nowrap}.btn:hover,.icon-btn:hover{background:#f5f7fb;text-decoration:none}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:hover{background:#1846c3}.btn.ghost{border-color:transparent;background:transparent;color:#4b5c78}.btn.link{border:0;background:none;color:var(--blue);padding:2px 5px;min-height:28px}.btn.soft{color:var(--blue);background:#f1f5ff;border-color:#d8e2fa}.btn.danger{color:#ad414d}.icon-btn{width:31px;height:31px;min-height:30px;padding:0}.icon-btn.flat{border:0;background:transparent}.mobile-menu{display:none}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-bottom:22px}.stat{display:flex;align-items:center;gap:13px;min-height:83px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:15px 18px}.stat-icon,.row-icon{display:grid;place-items:center;width:38px;height:38px;background:#edf2fe;color:#4969ce;border-radius:11px}.stat-icon.green{background:#e6f6f0;color:#198164}.stat-icon.amber{background:#fff2de;color:#ab7026}.stat-icon.gray{background:#f0eff7;color:#796887}.stat strong,.stat small{display:block}.stat strong{font-size:25px;font-weight:660;line-height:1.2;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.stat small{font-size:12px;color:var(--muted);margin-bottom:3px}.stat em{font-size:11px;font-style:normal;color:var(--muted);margin-left:auto}
.panel,.card,.sheet{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 4px #182c4a03;overflow:hidden;margin-bottom:18px}.panel-heading,.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line)}.panel-heading h2,.sheet-head h2{font-size:16px}.panel-body,.pad{padding:20px}.toolrow{padding:14px 19px;justify-content:space-between;flex-wrap:wrap;gap:12px}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:0 10px;background:#fff;height:34px;color:#8997a8;min-width:155px;max-width:100%}.search input{border:0;outline:none;background:transparent;min-width:0;width:180px;font-size:12px;color:var(--ink)}input::placeholder,textarea::placeholder{color:#929daf}.tabbar{gap:4px;flex-wrap:wrap}.tab{border:0;border-radius:6px;background:transparent;color:#65738a;padding:6px 10px;font-size:12px}.tab.sel{color:var(--blue);background:var(--pale);font-weight:680}.tab b{border-radius:4px;font-size:10px;padding:1px 4px;background:#edf0f5;color:#687790;margin-left:5px}.tab.sel b{background:#dfe8ff;color:var(--blue)}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:11px;font-weight:600;letter-spacing:.025em;color:#69788d;background:#f8f9fc;border-block:1px solid var(--line)}td,th{padding:12px 13px}td:first-child,th:first-child{padding-left:20px}td:last-child,th:last-child{padding-right:20px}td{border-bottom:1px solid #eef1f6;font-size:12px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbfe}.table-foot{padding:13px 20px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.avatar{display:inline-grid;place-items:center;font-size:11px;font-weight:700;min-width:32px;width:32px;height:32px;border-radius:50%;color:#4c65a4;background:#e7eefc}.avatar.c1{background:#f5e7f0;color:#91557e}.avatar.c2{background:#e5f2eb;color:#39785a}.avatar.c3{background:#f9eddd;color:#946335}.avatar.c4{background:#e9e5f8;color:#73559c}.avatar.c5{background:#e3f0f5;color:#3d718e}.row-user strong,.row-user small{display:block}.row-user small,.secondary{font-size:11px;color:var(--muted);margin-top:3px}.row-user strong{font-size:12px}.code{border:1px solid #e0e5ee;background:#f8f9fc;border-radius:5px;padding:3px 6px;font:11px ui-monospace,monospace;letter-spacing:.02em}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:4px 8px;font-size:11px;line-height:1.2;font-weight:550;white-space:nowrap}.badge i{width:5px;height:5px;border-radius:50%;background:currentColor}.badge.wait{color:#946018;background:#fff3db}.badge.good{color:#167554;background:#e6f6ef}.badge.red{color:#a24652;background:#fbedef}.badge.muted{color:#64738b;background:#eff2f7}input[type=checkbox]{accent-color:var(--blue)}.empty{display:flex;min-height:150px;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:#8491a6}.empty strong{font-size:14px;color:#53627a}.empty small{font-size:12px}.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr));gap:16px}.list-row{padding:15px 20px;border-bottom:1px solid #eef1f6;display:flex;align-items:center;justify-content:space-between;gap:12px}.list-row:last-child{border:0}.list-row small,.list-row p{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:4px}.list-row p{white-space:pre-wrap}.field{display:block;margin-bottom:15px}.field span{display:block;font-size:12px;font-weight:620;color:#4d5b71;margin-bottom:6px}.field b{color:#b45a69}.field input,.field select,.field textarea,.copy-field,.search-select{width:100%;color:var(--ink);border:1px solid #d4dce8;background:white;border-radius:6px;padding:9px 10px;min-height:36px}.field textarea{resize:vertical}.search-select{width:auto;font-size:12px}.check-field{display:flex;gap:7px;align-items:center;margin:12px 0}.hint{font-size:12px;margin-bottom:15px}.notice-line{font-size:12px;color:#51647f;padding:10px 14px;background:#f3f6fc;border-radius:6px;margin:0 0 14px}.form-error{color:#b03249;font-size:12px;margin:8px 0}.form-error:empty{display:none}form footer{display:flex;justify-content:flex-end;margin-top:18px}.inline{flex-wrap:wrap}.actions{gap:4px}.grid-form{max-width:650px}.content-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:17px}.summary-line{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}.summary-line:last-child{border:none}.summary-line dt{color:var(--muted)}.summary-line dd{margin:0;text-align:right;overflow-wrap:anywhere}.break{overflow-wrap:anywhere;white-space:pre-wrap}.portal-hero{background:linear-gradient(113deg,#203f9e,#335bd0 82%);color:#fff;padding:24px;border-radius:12px;margin-bottom:19px;display:flex;align-items:center;justify-content:space-between;gap:20px}.portal-hero small{display:block;color:#d9e2fb;font-size:12px}.portal-hero strong{display:block;font:650 29px/1.6 ui-monospace,monospace;letter-spacing:2px}.portal-hero p{font-size:13px;color:#e8edfb}.portal-hero .btn{border-color:#ffffff55;background:#ffffff18;color:#fff}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:14px}.product-grid .card{padding:18px;margin:0}.product-grid .card>*{margin-bottom:10px}.product-photo{width:100%;height:145px;object-fit:contain;background:#f9fafc;border-radius:7px}.public-wrap{max-width:460px;margin:7vh auto;padding:14px}.public-wrap .brand{justify-content:center}.public-wrap .panel{padding:25px}.public-wrap h1{font-size:25px;margin-bottom:8px}.public-wrap p{margin-bottom:19px}.public-wrap footer .btn{width:100%}.public-wrap .alternative{display:block;text-align:center;font-size:13px;margin-top:15px}.loading{padding:50px;text-align:center;color:var(--muted)}dialog{width:min(510px,94vw);max-height:87dvh;overflow:auto;border:1px solid #dce3ef;border-radius:13px;padding:0;color:var(--ink);box-shadow:0 25px 90px #1224473b}dialog::backdrop{background:#1a253e55}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--line)}.modal-body{padding:20px}.modal-body label{word-break:break-word}.modal-body ul{padding-left:18px}.modal-body .hint a{word-break:break-all}#notice{position:fixed;bottom:24px;left:50%;z-index:10;transform:translate(-50%,10px);pointer-events:none;opacity:0;background:#203144;color:white;border-radius:8px;padding:10px 16px;font-size:13px;transition:.16s}#notice.on{opacity:1;transform:translate(-50%,0)}#notice.error{background:#96394b}.dim{color:var(--muted)}.stepbox{margin:12px 0;padding:13px;background:var(--pale);border-radius:8px;color:#38549c}.small-title{font-size:11px;font-weight:650;letter-spacing:.08em;color:#78869b}.message{padding:10px 12px;background:#f5f7fb;margin:8px 0;border-radius:7px}.message strong{display:block;font-size:11px;color:var(--muted)}.message p{margin-top:5px;white-space:pre-wrap}.mobile-shade{display:none}
@media(min-width:1500px){.navlink{height:38px}.main{padding-top:38px}.stat{min-height:95px}}
@media(max-width:1080px){.shell{grid-template-columns:200px minmax(0,1fr)}.sidebody{padding-inline:9px}.navlink{height:33px}.main{padding:24px 18px}.topbar{padding-inline:18px}.pagehead{align-items:flex-start}.actions{gap:2px}.stat{padding:12px}}
@media(max-width:760px){.shell{display:block}.sidebar{display:none;position:fixed;left:0;top:0;width:230px;box-shadow:3px 0 20px #172b4922}.shell.mobile-open .sidebar{display:flex}.shell.mobile-open .mobile-shade{display:block;position:fixed;inset:0;z-index:1;background:#24324d55;border:0}.mobile-menu{display:inline-flex}.topbar{height:53px}.top-actions{gap:6px}.top-actions .demo-pill{font-size:10px}.crumb>span{display:none}.main{padding:19px 12px 43px}.pagehead{align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:15px}.head-actions{flex-wrap:wrap}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}.stat{padding:10px;gap:8px;min-height:70px}.stat strong{font-size:21px}.stat-icon{width:30px;height:30px}.stat em{display:none}.portal-hero{flex-wrap:wrap;padding:17px}.content-grid{grid-template-columns:1fr}.toolrow,.panel-heading,.sheet-head{padding:12px}.panel-body,.pad{padding:14px}.section-tag{margin-top:12px}.search input{width:145px}.list-row{padding:12px}.navlink{height:35px}.public-wrap{margin:2vh auto}}

/* Market controls are shared by the merchant shell and localised public pages. */
.market-switches,.market-control,.market-card-actions,.market-card-head,.market-overview-heading,.public-id{display:flex;align-items:center}
.market-switches{gap:8px}.market-control{gap:7px;padding:5px 8px;border:1px solid #dce4ee;background:white;border-radius:7px;min-width:0}
.market-control>svg{color:#657a93;flex:none}.market-control>span{color:#657389;font-size:12px;white-space:nowrap}
.market-control select{font:inherit;font-size:12px;font-weight:600;border:0;color:#253a55;background:transparent;max-width:188px;min-width:0;padding:4px 2px}
.market-control:focus-within{outline:2px solid #709eeb;outline-offset:2px}
.market-overview-heading{margin:22px 0 12px;gap:16px;justify-content:space-between;flex-wrap:wrap}
.market-overview-heading h2{margin:0;font-size:18px}.market-overview-heading label{font-size:13px;color:#5c6e84}
.market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr));gap:16px;margin-bottom:24px}
.market-card{display:flex;flex-direction:column;background:white;border:1px solid #dae3ed;border-radius:12px;box-shadow:0 3px 12px #13294406;overflow:hidden}
.market-card-head{justify-content:space-between;padding:18px 20px 6px}.market-name{font-size:13px;font-weight:650;color:#526d88}.market-currency{font-size:12px;letter-spacing:.02em;font-weight:650;color:#285e9d;background:#edf4fd;padding:3px 8px;border-radius:6px}
.market-card h2{font-size:18px;line-height:1.35;margin:0;padding:6px 20px 15px;color:#22344e}
.market-card dl{margin:0;padding:0 20px 17px;flex:1}.market-card dl div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:13px}.market-card dt{color:#687689;flex:none}.market-card dd{color:#283a52;text-align:right;margin:0}
.market-card-actions{border-top:1px solid #e7edf4;padding:12px 15px;gap:8px;flex-wrap:wrap;background:#fbfcfe}
.market-card-actions .btn{font-size:12px;padding:6px 8px;min-height:30px}.market-card-actions>a:last-child{margin-left:auto;font-size:12px}
.public-id{gap:10px;font-size:17px;color:#1e3351;margin-bottom:15px}.public-id img{width:32px;height:32px}
.public-wrap .market-switches{flex-wrap:wrap;margin-bottom:12px}
@media(max-width:1150px){.top-actions{gap:7px}.top-actions .market-control>span{display:none}.top-actions .market-control select{max-width:155px}}
@media(max-width:810px){.topbar:has(.market-switches){height:auto;min-height:62px;padding-block:9px;flex-wrap:wrap}.top-actions:has(.market-switches){flex-wrap:wrap;row-gap:6px}}
@media(max-width:550px){.topbar:has(.market-switches){padding-inline:12px;gap:7px}.top-actions:has(.market-switches){width:100%;gap:6px}.top-actions .market-switches{flex-wrap:wrap;gap:5px}.top-actions .market-control{padding:2px 4px;gap:4px}.top-actions .market-control select{max-width:143px}.market-overview-heading{margin-top:12px}.market-card dl div{padding:4px 0}}
