:root{--blue:#3563cf;--blue-soft:#e3ecfa;--ink:#25364d;--muted:#63748c;--line:#ced9e7;--bg:#eaf0f7;--green:#167653;--red:#bc4141;--shadow:0 5px 18px #253b5b08;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:16px;line-height:1.65;background:var(--bg)}
*{box-sizing:border-box}
body{margin:0}
a{color:var(--blue);text-decoration:none}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:3px}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
button,a{touch-action:manipulation}
.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:white;padding:8px 12px}
.skip-link:focus{top:8px}
.initial-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:70vh;color:var(--muted)}
.spinner{display:inline-block;border:2px solid #dae3fc;border-top-color:var(--blue);width:18px;height:18px;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle}
@keyframes spin{to{transform:rotate(360deg)}
}
.shell{display:flex;min-height:100vh}
.sidebar{width:220px;position:fixed;left:0;top:0;bottom:0;background:#1c314e;border-right:1px solid #2e4768;display:flex;flex-direction:column;z-index:30;padding:28px 16px 16px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#59708f #1c314e}
.brand{display:flex;gap:11px;align-items:center;color:var(--ink);padding:0 12px;margin-bottom:34px;flex-shrink:0}
.brand-logo{width:36px;height:36px;border-radius:11px;background:var(--blue);display:grid;place-items:center;color:#fff;font-size:21px;font-weight:800;box-shadow:0 5px 12px #2c62e828}
.brand-name{font-size:19px;font-weight:750;letter-spacing:.5px}
.brand-name small{font-size:12px;background:var(--blue-soft);color:var(--blue);padding:2px 5px;border-radius:4px;margin-left:5px;vertical-align:middle}
.brand-caption{font-size:12px;color:var(--muted);letter-spacing:1.4px}
.nav-label{font-size:12px;font-weight:600;letter-spacing:1.2px;color:#a0b3cc;padding:0 14px;margin:17px 0 8px;flex-shrink:0}
.nav-item{display:flex;align-items:center;gap:12px;color:#c8d4e5;padding:10px 13px;border-radius:7px;margin:3px 0;font-size:15px;font-weight:500;flex-shrink:0;min-height:44px}
.nav-item:hover{background:#29415f;color:#fff}
.nav-item.active{background:#304c73;color:#fff;font-weight:650}
.nav-icon{display:grid;place-items:center;width:18px;height:18px}
.nav-icon svg{width:18px;height:18px}
.sidebar-footer{margin-top:auto;padding:14px 12px 0;border-top:1px solid #3a506d;font-size:12px;color:#a8bbd3;flex-shrink:0}
.sidebar-footer strong{display:block;color:#e0e9f5;font-size:13px;font-weight:500;margin-bottom:4px}
.workspace{margin-left:220px;width:calc(100% - 220px)}
.topbar{height:64px;background:#f4f7fced;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;position:sticky;top:0;z-index:20}
.breadcrumbs{font-size:14px;color:#6f8098;display:flex;gap:10px;align-items:center;min-width:0}
.breadcrumbs strong{font-weight:500;color:#566277}
.account{display:flex;align-items:center;gap:12px}
.workspace-select{max-width:200px;border:1px solid var(--line);background:#edf3fb;border-radius:6px;padding:6px 26px 6px 9px;font-size:14px;color:#3f5677;border-color:#ccd9e9;min-height:36px}
.role-label{color:var(--muted);font-size:13px}
.avatar{background:#dfe9fa;color:#355fae;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:14px;font-weight:600}
.icon-button{border:0;background:transparent;color:#8490a4;display:inline-flex;justify-content:center;align-items:center;min-width:30px;min-height:30px;border-radius:5px}
.icon-button:hover{background:#eef2f8;color:var(--ink)}
.mobile-menu{display:none}
.main{max-width:none;padding:18px 24px 32px;margin:0 auto}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}
.eyebrow{font-size:12px;font-weight:650;letter-spacing:1.5px;color:#7185a2;text-transform:uppercase}
h1{font-size:28px;font-weight:650;letter-spacing:-.4px;margin:3px 0 7px}
h2{font-size:18px;font-weight:600;margin:0}
h3{font-size:16px;font-weight:600;margin:0}
.subtitle{font-size:15px;color:var(--muted);margin:0;line-height:1.8}
.heading-actions{display:flex;align-items:center;gap:8px;padding-top:12px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #cbd8e9;background:#f9fbff;color:#435976;border-radius:6px;min-height:40px;padding:8px 14px;font-size:14px;white-space:nowrap;font-weight:500}
.button:hover{border-color:#aabce8;color:var(--blue)}
.button.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 2px 4px #2c62e817}
.button.primary:hover,.button.primary:focus-visible{background:#2855bb;color:#fff}
.button.danger{color:var(--red);border-color:#efcfcf}
.button.small{min-height:32px;font-size:13px;padding:4px 9px}
.text-button{border:0;background:none;color:var(--blue);padding:4px 0;font-size:14px;cursor:pointer;white-space:nowrap}
.text-button.danger{color:var(--red)}
.button svg{width:14px;height:14px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.metric{background:white;border:1px solid var(--line);border-radius:9px;padding:18px 20px;min-height:104px;box-shadow:var(--shadow)}
.metric-label{font-size:13px;color:#8190a7;display:flex;align-items:center;justify-content:space-between}
.metric-icon{color:#a9b9db}
.metric-value{font-size:27px;font-weight:650;letter-spacing:-1px;line-height:1.2;margin-top:12px}
.metric-value small{font-size:14px;letter-spacing:0;color:#a3adbc;font-weight:400;margin-left:5px}
.metric-note{font-size:12px;color:#9aa4b5;margin-top:8px}
.panel{background:#f7f9fd;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden;margin-bottom:20px}
.panel-header{display:flex;align-items:center;justify-content:space-between;padding:18px 21px;border-bottom:1px solid var(--line);gap:14px;background:#eaf0f8}
.panel-title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;color:#2b4161}
.count{font-size:12px;color:#8c97aa;background:#f2f5f9;padding:1px 6px;border-radius:4px;font-weight:500}
.panel-body{padding:21px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 21px;background:#f1f5fb}
.filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.search{position:relative;width:290px}
.search svg{width:16px;height:16px;color:#7e91ad;position:absolute;top:50%;left:10px;transform:translateY(-50%)}
.search input{width:100%;padding:9px 12px 9px 34px;border:1px solid var(--line);border-radius:6px;background:#fbfcff;font-size:14px;height:40px}
.filter-select{border:1px solid var(--line);border-radius:6px;height:40px;padding:0 25px 0 10px;color:#4f6583;font-size:14px;background:#fbfcff}
.table-wrap{overflow-x:auto}
.data-table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}
.data-table th{text-align:left;background:#e5edf8;color:#506583;font-size:13px;font-weight:600;padding:12px 21px;border-bottom:1px solid var(--line)}
.data-table td{padding:16px 21px;border-bottom:1px solid #dfe7f1;color:#425673}
.data-table tbody tr:last-child td{border-bottom:0}
.data-table tbody tr{background:#fff}
.data-table tbody tr:hover,.data-table tbody tr[aria-selected="true"],.data-table tbody tr:has(input[data-batch-select]:checked){background:#eaf1fc}
.cell-title{font-size:15px;font-weight:550;color:#2a3e5c;display:block}
.cell-sub{font-size:13px;color:#74849b;display:block;margin-top:3px}
.cell-flex{display:flex;align-items:center;gap:10px}
.merchant-mark{width:36px;height:36px;border-radius:8px;background:#dfe9fa;color:#4c6eac;display:grid;place-items:center;font-size:15px}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;border-radius:4px;padding:4px 8px;background:#f1f4f8;color:#8190a4;line-height:1.4}
.badge:before{content:"";height:4px;width:4px;border-radius:50%;background:currentColor}
.badge.success{background:#e2f2ea;color:#1b7654}
.badge.warning{background:#fff0d8;color:#936719}
.badge.danger{background:#fbe7e7;color:#ad4242}
.badge.info{background:#e2ebfb;color:#3f66ae}
.row-actions{display:flex;gap:14px;align-items:center}
.table-footer{padding:13px 21px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#72839b;font-size:13px;align-items:center;background:#edf2f9;gap:12px}
.pagination{display:flex;gap:5px}
.pagination span{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:4px;color:#7186a5}
.pagination .current{background:var(--blue-soft);border-color:#d6e1ff;color:var(--blue)}
.notice{border:1px solid #c9d9f4;background:#e6eefc;color:#4c6791;padding:12px 15px;border-radius:6px;font-size:14px;line-height:1.8;display:flex;gap:9px;margin-bottom:20px;align-items:flex-start}
.notice.warning{border-color:#f0e1bf;background:#fffbf3;color:#9c824d}
.notice.error{background:#fff5f5;color:#b94a4a;border-color:#f1d4d4}
.notice p{margin:0}
.notice svg{width:15px;height:15px;flex-shrink:0;margin-top:2px}
.empty{padding:55px 20px;text-align:center;color:#8e9bb1}
.empty-icon{width:46px;height:46px;background:#e5edf9;border-radius:12px;display:grid;place-items:center;color:#7f98bd;margin:0 auto 14px}
.empty-icon svg{width:22px;height:22px}
.empty strong{display:block;font-size:16px;font-weight:500;color:#4b6484;margin-bottom:6px}
.empty p{font-size:14px;margin:0 auto 16px;max-width:390px;color:#6e8098}
.loading{display:flex;justify-content:center;align-items:center;padding:65px;gap:10px;color:var(--muted);font-size:14px}
.tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:20px}
.tab{border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;padding:0 2px 12px;color:#8d99ac;font-size:14px;cursor:pointer}
.tab.active{color:var(--blue);border-color:var(--blue);font-weight:600}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}
.field label{font-size:15px;color:#405775;font-weight:500}
.field label span{color:var(--red)}
.field input,.field select,.field textarea{border:1px solid #c7d5e6;border-radius:6px;padding:9px 11px;width:100%;color:#3c4a61;background:#fbfcff;font-size:15px;min-height:44px}
.field textarea{resize:vertical;min-height:95px;line-height:1.6}
.field textarea.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;min-height:150px}
.field small{font-size:13px;color:#75869e;line-height:1.6}
.form-error{font-size:14px;background:#fff3f3;border:1px solid #f1d4d4;color:#bf5555;padding:10px 12px;border-radius:5px;margin-bottom:16px}
.form-error:empty{display:none}
.drawer{padding:0;border:0;border-radius:12px 0 0 12px;margin:0 0 0 auto;width:560px;max-width:100%;height:100vh;max-height:100vh;box-shadow:-15px 0 60px #1d2e5029;background:#f7f9fd;overflow:auto}
.drawer::backdrop{background:#1b2e4d40;backdrop-filter:blur(2px)}
.drawer-top{padding:24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#edf3fbf7;z-index:2}
.drawer-top h2{font-size:21px;margin-top:4px}
#drawer-content{padding:24px}
.drawer-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.divider{border:0;border-top:1px solid var(--line);margin:22px 0}
.key-value{display:grid;grid-template-columns:130px 1fr;gap:15px;font-size:15px;padding:10px 0}
.key-value dt{color:#71839c}
.key-value dd{margin:0;color:#405775;overflow-wrap:anywhere}
.code-block{background:#172137;color:#bac9e2;border-radius:7px;padding:17px;font-size:13px;line-height:1.8;overflow:auto;max-height:430px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.secret{border:1px solid #dfe7f6;background:#f5f8ff;padding:15px;border-radius:6px;word-break:break-all;color:#48628c;font-family:ui-monospace,monospace;font-size:14px}
.two-col{display:grid;grid-template-columns:minmax(250px,1fr) minmax(0,2fr);gap:20px}
.operation-list{display:flex;flex-direction:column;max-height:700px;overflow:auto}
.operation-choice{border:0;border-bottom:1px solid var(--line);text-align:left;background:#f7f9fd;padding:14px 18px;color:#576c89;font-size:14px}
.operation-choice small{display:block;font-size:12px;color:#7486a1;margin-top:5px;word-break:break-all}
.operation-choice.active{background:#e3ecfc;box-shadow:inset 3px 0 var(--blue);color:var(--blue)}
.result-summary{margin-bottom:14px}
.footnote{font-size:12px;color:#7d8ea6;margin-top:20px;text-align:center}
.login-page{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:clamp(20px,4vw,56px);background:#eef2f7}
.login-shell{width:min(1080px,100%);min-height:580px;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);border-top:3px solid var(--portal-accent,#e87936);border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 18px 48px #1d31491c}
.login-art{position:relative;isolation:isolate;overflow:hidden;min-width:0;background:var(--portal-panel,linear-gradient(150deg,#172b49 0%,#203e68 100%));color:#fff;padding:44px 48px 32px;display:flex;flex-direction:column;justify-content:space-between}
.login-art:before{content:"";position:absolute;z-index:-1;width:520px;height:520px;border:1px solid #ffffff1c;border-radius:50%;left:-220px;bottom:-300px;box-shadow:0 0 0 78px #ffffff07,0 0 0 155px #ffffff05}
.login-art:after{content:"";position:absolute;z-index:-1;width:180px;height:180px;right:22px;top:120px;background-image:radial-gradient(#ffffff25 1px,transparent 1px);background-size:15px 15px;opacity:.45}
.login-brand{display:flex;align-items:center;gap:12px;position:relative}
.login-brand-mark{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:9px;background:var(--portal-accent,#ee873b);color:#fff;font-size:24px;font-weight:750;box-shadow:0 4px 12px #0d1b3040}
.login-brand-mark svg{width:24px;height:24px;stroke-width:1.8}
.login-brand-text{min-width:0}
.login-brand-role{flex:0 0 auto;margin-left:auto;padding:5px 9px;border:1px solid currentColor;border-radius:999px;color:var(--portal-accent-soft,#ffbd83);font-size:11px;font-weight:650;letter-spacing:.3px;white-space:nowrap}
.login-brand strong,.login-brand small{display:block}
.login-brand strong{font-size:19px;line-height:1.3;letter-spacing:.5px}
.login-brand small{font-size:12px;line-height:1.4;margin-top:4px;color:#c3d2e8}
.login-message{position:relative;margin:auto 0;max-width:440px}
.login-eyebrow,.login-form-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;letter-spacing:1px}
.login-eyebrow,.login-form-eyebrow{color:var(--portal-accent-soft,#ffbd83)}
.login-eyebrow svg,.login-form-eyebrow svg{width:17px;height:17px;flex:0 0 17px}
.login-message h1{font-size:clamp(30px,3vw,39px);font-weight:700;letter-spacing:.2px;line-height:1.35;margin:14px 0}
.login-message p{font-size:16px;color:#c9d6e8;line-height:1.8;margin:0}
.login-features{list-style:none;display:grid;gap:15px;padding:0;margin:36px 0 0}
.login-features li{display:flex;align-items:center;gap:12px;font-size:15px;color:#f3f6fb}
.login-features li span{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px;border-radius:50%;background:var(--portal-accent-wash,#e8793633);color:var(--portal-accent-soft,#ffbd83);font-size:13px;font-weight:700}
.login-meta{position:relative;margin:0;font-size:12px;color:#9eb4d0}
.login-form-side{min-width:0;display:flex;align-items:center;justify-content:center;padding:48px clamp(32px,5vw,68px);background:#fff}
.login-box{max-width:390px;width:100%;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.login-form-eyebrow{color:var(--portal-accent,#db712e)}
.login-box h2{font-size:25px;font-weight:700;letter-spacing:0;line-height:1.4;margin:10px 0 4px;color:#25364d}
.login-box .subtitle{font-size:14px;margin:0 0 30px;line-height:1.6;color:#68788e}
.login-box .field{margin-bottom:18px}
.login-box .field label{font-size:14px;font-weight:600;color:#34445d}
.login-box .field input{height:46px;min-height:46px;border-color:#cfd7e2;background:#fbfcfe;font-size:16px}
.login-box .field input:focus-visible{outline:2px solid var(--portal-accent-wash,#409eff66);outline-offset:1px;border-color:var(--portal-accent,#409eff)}
.login-box .button.primary{width:100%;height:46px;margin-top:8px;font-size:15px;font-weight:650;background:var(--portal-button,#274b79);border-color:var(--portal-button,#274b79);color:#fff}
.login-box .button.primary:hover,.login-box .button.primary:focus-visible{background:var(--portal-button-hover,#1b385f);border-color:var(--portal-button-hover,#1b385f);color:#fff}
.login-box .button svg,.login-switch svg{width:16px;height:16px}
.login-switch{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:40px;margin-top:13px;font-size:14px;color:var(--portal-accent,#2d619b)}
.login-switch:hover{text-decoration:underline}
.login-box footer{margin-top:14px;padding-top:18px;border-top:1px solid #edf0f5;color:#79869a;text-align:center;font-size:12px}
.login-mobile-brand{display:none}
.portal-return{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px;background:#eef2f7}
.portal-return-card{width:min(520px,100%);padding:36px;background:#fff;border-top:3px solid #e87936;border-radius:10px;box-shadow:0 12px 36px #1d314914}
.portal-return-card .login-brand{margin-bottom:32px}
.portal-return-card .login-brand strong{color:#25364d}
.portal-return-card .login-brand small{color:#71829a}
.portal-return-card h1{margin:12px 0 8px;font-size:24px}
.portal-return-card p{margin:0;color:#63748c;font-size:15px;line-height:1.75}
.portal-return-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:28px}
.portal-return-actions .button.primary{background:#274b79;border-color:#274b79;color:#fff}
.portal-return-secondary{font-size:14px}
.customer-page{max-width:540px;margin:0 auto;min-height:100vh;background:#f7f9fd;padding:28px 24px 55px}
.customer-page .brand{padding:0;margin-bottom:28px}
.customer-flow-page{padding-top:22px;padding-bottom:28px}
.customer-copy-finger{display:inline-block;margin-right:3px;font-size:17px;line-height:1;vertical-align:-1px}
.customer-amount{margin:0 0 18px}
.customer-amount-label{margin:0 0 3px;color:var(--muted);font-size:13px}
.customer-amount-value{font-size:34px;line-height:1.35;font-weight:650;color:var(--blue);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.product-placeholder{aspect-ratio:1.65;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;color:#b1bfd8;background:linear-gradient(135deg,#f2f6ff,#f9fbff)}
.product-placeholder svg{width:50px;height:50px}
.product-price{font-size:31px;font-weight:650;color:var(--blue);margin:15px 0}
.product-price small{font-size:16px}
.customer-card{padding:20px;border:1px solid var(--line);border-radius:10px;margin-top:24px;background:#edf3fb}
.customer-card p{font-size:15px;color:var(--muted);line-height:1.8}
.customer-page .button{width:100%;min-height:42px}
.customer-order{font-size:15px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere;margin:7px 0 0}
.customer-card h2{font-size:19px;display:flex;align-items:center;gap:9px;margin:0 0 12px}
.customer-card p{margin:10px 0 16px}
.customer-flow-page .customer-flow{background:#fff;padding:18px;margin-top:0;border-radius:10px}
.customer-flow-page .customer-flow h2{font-size:16px;line-height:1.5;margin-bottom:12px}
.customer-flow-page .customer-payment{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.customer-flow-page .customer-payment-guide{font-size:13px;line-height:1.65;margin:10px 0 0;color:var(--muted)}
.customer-flow-page .customer-payment-status{margin:0 0 14px;font-size:14px;line-height:1.6}
.customer-flow-page .customer-payment-status[data-state=paid]{color:var(--green)}
.customer-flow-page .customer-payment-status[data-state=refund]{color:var(--red)}
.customer-flow-page .customer-opened-note{font-size:14px;line-height:1.6;margin:0 0 8px;color:var(--ink)}
.customer-reopen{font-size:12px;line-height:1.6;color:var(--muted)}
.customer-reopen summary{cursor:pointer;display:list-item;color:var(--blue)}
.customer-reopen p{font-size:12px;line-height:1.6;margin:8px 0}
.customer-reopen a{display:inline-block;font-size:13px;line-height:1.6;color:var(--blue);padding:3px 0}
.customer-flow-page .field{gap:7px;margin-bottom:14px}
.customer-flow-page .field label{font-size:14px;line-height:1.5}
.customer-flow-page .field input{min-height:44px;font-size:16px;background:#fff}
.customer-flow-page .button{min-height:44px;font-size:15px}
.customer-flow-page #customer-open-payment,.customer-flow-page #customer-redemption button[type=submit]{display:flex;width:320px;max-width:100%;margin-inline:auto}
.customer-return{margin-top:14px;text-align:center}
.customer-copy-button{border:0;background:transparent;color:var(--blue);font-size:13px;line-height:1.5;padding:5px 8px;border-radius:4px;min-height:30px}
.customer-copy-button:hover{background:var(--blue-soft)}
.customer-return p{font-size:12px;line-height:1.6}
.customer-return #customer-copy-status{margin-bottom:0}
.customer-return #customer-copy-status:empty{display:none}
.customer-return-link{width:100%;max-width:100%;min-width:0;margin-top:12px;padding:9px 11px;border:1px solid var(--line);border-radius:6px;background:#fbfcff;color:var(--ink);font-size:14px}
.customer-redemption-consent{margin-bottom:14px;align-items:flex-start;font-size:13px;line-height:1.6}
.customer-redemption-consent input{margin-top:3px;flex-shrink:0}
.customer-flow-page .footnote{margin-top:14px;line-height:1.7}
.customer-load-error{background:#fff}
.customer-entry-page{max-width:480px;min-height:0;background:#fff;padding:20px 24px 24px}
.customer-entry-page .customer-amount{text-align:center;margin-bottom:20px}
.customer-entry-page .customer-amount-value{font-size:44px;line-height:1.3;color:var(--ink)}
.customer-entry-page .customer-flow{border:0;border-radius:0;padding:0;background:transparent}
.customer-entry-page .customer-payment{padding:0;margin:0;border:0}
.customer-entry-page .customer-payment-help{margin:12px 0 16px}
.customer-entry-page .customer-payment-guide{font-size:13px;line-height:1.6;margin:0;color:#d93025;text-align:left}
.customer-entry-page .customer-return{margin-top:8px;text-align:center}
.customer-entry-page #customer-copy-link{min-height:36px;padding:6px 12px;border:1px solid var(--line);color:var(--ink);background:#fff}
.customer-entry-page #customer-redemption{border-top:1px solid var(--line);padding-top:14px}
.customer-entry-page .customer-flow h2{font-size:15px;line-height:1.5;margin-bottom:10px}
.customer-entry-page .field{gap:6px;margin-bottom:12px}
.customer-entry-page .customer-redemption-consent{margin-bottom:12px;line-height:1.5}
.customer-entry-page .customer-return-link{font-size:16px;margin-top:8px}
.customer-entry-page .customer-return #customer-copy-status{font-size:12px;line-height:1.5;margin:8px 0 0}
#customer-redemption{scroll-margin-top:18px}
.steps{display:flex;gap:14px;margin-top:18px;counter-reset:step}
.step{flex:1;font-size:12px;color:#8a99af}
.step:before{counter-increment:step;content:counter(step);display:grid;place-items:center;background:#edf3ff;width:22px;height:22px;color:var(--blue);border-radius:50%;margin-bottom:7px}
.doc-title{font-size:17px;margin-bottom:13px}
.doc p,.doc li{font-size:14px;color:#718099;line-height:1.9}
.doc h3{margin:24px 0 10px}
.doc table{white-space:normal}
.dot-live{height:5px;width:5px;display:inline-block;border-radius:50%;background:#72b19b;margin-right:5px}
#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(20px);background:#25334c;color:white;font-size:14px;padding:12px 20px;border-radius:7px;box-shadow:0 5px 24px #1e2e4b25;opacity:0;pointer-events:none;transition:.2s;z-index:100;max-width:90vw}
#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}
.noscript{padding:20px;text-align:center;color:var(--red)}
.mobile-backdrop{display:none}
.inline-checkbox{display:flex;align-items:center;gap:8px;font-size:14px;color:#6d7d94}
.inline-checkbox input{width:auto;min-height:0}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;overflow-wrap:anywhere}
.muted{color:#75869f}
.grow{flex:1}
.space-top{margin-top:20px}
.operation-description{font-size:13px;color:#8b99ad;line-height:1.8;margin:10px 0 20px}
.error-retry{margin-top:12px}
.status-line{font-size:13px;color:#8d9bb1}
.profile-card{display:flex;align-items:center;gap:13px}
.profile-card .avatar{width:44px;height:44px;font-size:18px}
.json-disclosure{margin-top:16px;font-size:13px;color:#8c99ad}
.json-disclosure summary{cursor:pointer}
.json-disclosure .code-block{margin-top:10px}
.image-thumb{width:38px;height:38px;border-radius:7px;object-fit:cover;background:#f0f4fb}
.product-name{min-width:180px;max-width:290px;white-space:normal;line-height:1.6}
.credential-section{font-size:14px;font-weight:600;color:#435674;border-top:1px solid var(--line);padding-top:20px;margin:23px 0 16px}
.section-note{font-size:14px;color:#72839a;margin:0 0 18px}
.mobile-only{display:none}
.settings-width{max-width:850px}

@media(min-width:1600px){.main{padding-top:20px}
.sidebar{width:235px}
.workspace{margin-left:235px;width:calc(100% - 235px)}
}
@media(max-width:1150px){.sidebar{width:190px;padding-left:10px;padding-right:10px}
.workspace{margin-left:190px;width:calc(100% - 190px)}
.main{padding:18px 20px}
.topbar{padding:0 24px}
.metrics{gap:10px}
.metric{padding:16px}
.two-col{grid-template-columns:260px 1fr}
.data-table th,.data-table td{padding-left:16px;padding-right:16px}
.login-art{padding:40px}
.login-message h1{font-size:32px}
}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:220px}
.sidebar.open{transform:translateX(0)}
.workspace{margin-left:0;width:100%}
.mobile-menu{display:inline-flex;margin-right:8px}
.breadcrumbs{gap:7px}
.topbar{padding:0 18px;height:60px}
.main{padding:16px 14px}
.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.metric{min-height:95px;padding:15px 16px}
.metric-value{font-size:25px}
.two-col{grid-template-columns:1fr}
.operation-list{max-height:280px}
.page-heading{margin-bottom:20px}
.page-heading h1{font-size:22px}
.heading-actions{padding-top:8px;gap:6px}
.page-heading .subtitle{max-width:270px}
.role-label{display:none}
.workspace-select{max-width:145px}
.account{gap:7px}
.brand{margin-bottom:25px}
.mobile-backdrop.open{display:block;position:fixed;inset:0;z-index:25;background:#1b2e4d50}
.login-page{grid-template-columns:1fr}
.login-art{display:none}
.login-form-side{padding:70px 25px;align-items:flex-start}
.mobile-only{display:block}
.login-box .brand{margin-bottom:45px;padding:0}
.table-footer{font-size:12px}
.toolbar{align-items:flex-start;flex-wrap:wrap;padding:14px 16px}
.search{width:220px}
.form-grid{grid-template-columns:1fr}
.tabs{gap:20px;overflow-x:auto;white-space:nowrap}
.panel-header{padding:16px}
.panel-body{padding:17px}
.data-table th,.data-table td{padding:13px 16px}
.drawer{border-radius:0}
.drawer-top{padding:20px}
#drawer-content{padding:20px}
.key-value{grid-template-columns:100px 1fr;gap:12px}
.customer-page{padding-top:22px}
.notice{padding:10px 12px}
.customer-card{padding:17px}
}

@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition:none!important}
}


.merchant-scope{display:flex;align-items:center;gap:28px;padding:18px 22px;margin-bottom:22px;background:#e9f0fa;border:1px solid #cbd9ed;border-radius:10px}
.merchant-scope-select{display:flex;align-items:center;gap:14px;min-width:320px}
.merchant-scope-select label{font-weight:600;white-space:nowrap;font-size:15px}
.merchant-scope-select select{min-width:220px;max-width:360px;padding:10px 34px 10px 12px;border:1px solid #dce2ed;border-radius:6px;background:#f9fbff;color:#26324b;font:inherit;font-size:15px}
.merchant-scope-note{display:flex;flex-direction:column;gap:5px;font-size:14px;color:#71839e}
.merchant-scope-note strong{font-size:15px;color:#3c5375;font-weight:500}
.current-merchant{font-size:15px;color:#65748e}
@media(max-width:700px){.merchant-scope{align-items:stretch;flex-direction:column;gap:12px;padding:16px}
.merchant-scope-select{min-width:0;align-items:stretch;flex-direction:column;gap:8px}
.merchant-scope-select select{min-width:0;width:100%;max-width:none}
}


.credential-mode{display:flex;gap:5px;padding:4px;background:#f0f3f9;border:1px solid #e4e9f2;border-radius:8px;margin-bottom:20px}
.credential-mode button{flex:1;padding:10px 14px;border:0;border-radius:5px;background:transparent;color:#72819a;font:inherit;font-size:15px;cursor:pointer}
.credential-mode button[aria-pressed=true]{background:#fff;color:var(--blue);box-shadow:0 1px 4px #263a6020;font-weight:600}
.credential-group-title{font-size:15px;color:#435674;margin:24px 0 16px}
.certificate-file{padding:15px;border:1px solid var(--line);border-radius:7px;margin-bottom:12px;background:#edf3fb}
.certificate-file-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.certificate-file-top label{font-size:14px;font-weight:500;color:#4b5e7b}
.certificate-file-name{font-size:13px;color:#6f829d;margin:9px 0 13px;overflow-wrap:anywhere}
.certificate-upload{cursor:pointer}
.certificate-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.certificate-file-input:focus-visible+.row-actions,.certificate-file:focus-within{outline:2px solid #b3c8ff;outline-offset:2px}

.finance-toolbar{justify-content:flex-start;gap:12px;flex-wrap:wrap}
.finance-toolbar .search{width:270px}
.finance-date-filter{display:flex;align-items:center;gap:10px;font-size:13px;color:#8694aa}
.finance-date-filter label{display:flex;gap:9px;align-items:center}
.finance-date-filter input{padding:8px;border:1px solid var(--line);border-radius:5px;background:white;color:#52647f;font:inherit}
.record-error{display:block;max-width:350px;white-space:normal;line-height:1.7}
.tabs .count{font-size:12px;margin-left:6px;opacity:.75}
@media(max-width:800px){.finance-date-filter{flex-wrap:wrap}
.finance-toolbar .filters{flex-wrap:wrap}
.finance-toolbar .search{width:100%}
}

.product-sync-status{padding:15px 18px;background:#eaf1fb;border:1px solid var(--line);border-radius:8px;margin-bottom:20px;display:flex;gap:15px;align-items:center;flex-wrap:wrap}
.product-sync-status>div{display:flex;flex-direction:column;gap:6px;flex:1;min-width:200px}
.product-sync-status strong{color:#526681;font-size:14px;font-weight:500}
.product-sync-status span{color:#71839c;font-size:13px}
.product-sync-status .sync-error{width:100%;margin:0;color:#b47753;font-size:13px}

.notify-url{display:block;max-width:300px;overflow-wrap:anywhere;white-space:normal;font-size:13px;line-height:1.6}

.operation-optional{border-top:1px solid var(--line);margin:18px 0;padding-top:14px}
.operation-optional summary{cursor:pointer;color:#8190a6;font-size:14px;margin-bottom:16px}


.sidebar .brand,.login-art .brand{color:#f2f7ff}
.sidebar .brand-caption,.login-art .brand-caption{color:#a8bdd8}
.sidebar .brand-name small,.login-art .brand-name small{background:#36527a;color:#d7e5ff}
.sidebar .brand-logo,.login-art .brand-logo{background:#4778e5}
.search,.field,.filters,.panel-body,.account{min-width:0}
.breadcrumbs strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.credential-mode button[aria-pressed=true]{background:#e4edfc}
.data-table .mono{font-size:13px}

@media(max-width:800px){.sidebar{width:230px}
.page-heading h1{font-size:26px}
.table-footer{font-size:12px;flex-wrap:wrap}
.field input,.field select,.field textarea{font-size:16px}
}
@media(max-width:600px){.topbar{padding:0 14px}
.breadcrumbs>span{display:none}
.breadcrumbs{gap:6px}
.workspace-select{max-width:130px;font-size:13px}
.account{gap:6px}
.main{padding:16px 14px}
.page-heading{flex-wrap:wrap;gap:12px}
.heading-actions{padding-top:0;flex-wrap:wrap}
.login-form-side{padding:42px 18px}
.login-box{padding:26px 22px}
.customer-page{padding-left:18px;padding-right:18px}
.customer-card{padding:17px}
}


/* Compact platform filters and merchant navigation. */
.sidebar .brand{margin-bottom:20px;padding-left:10px;padding-right:8px}
.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;margin-bottom:16px;border:1px solid var(--line);border-radius:9px;background:#f5f8fd;box-shadow:var(--shadow)}
.toolbar-filters{display:flex;flex:1;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}
.page-toolbar .toolbar-actions:empty{display:none}
.page-toolbar .search{width:260px;max-width:100%}
.page-toolbar .toolbar{padding:0;background:transparent;flex:1;justify-content:flex-start}
.page-toolbar .filters{gap:10px}
.page-toolbar .status-line{margin-left:auto}
.merchant-filter{display:flex;align-items:center;gap:8px;max-width:100%;font-size:14px;color:#526783;white-space:nowrap}
.merchant-filter select{font:inherit;font-size:14px;min-height:40px;padding:8px 30px 8px 11px;min-width:180px;max-width:270px;border:1px solid #c7d5e6;border-radius:6px;background:#fbfcff;color:#354c6d}
.back-platform{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:#47638e;padding:6px 10px;border:1px solid #cbd8e9;border-radius:5px;white-space:nowrap;background:#e9f0fb}
.advanced-operations,.history-disclosure,.partner-disclosure{border:1px solid var(--line);border-radius:8px;background:#f2f6fc;margin-bottom:16px;min-width:0;overflow:hidden}
.advanced-operations>summary,.history-disclosure>summary,.partner-disclosure>summary{padding:13px 16px;font-size:14px;font-weight:550;color:#4b6283;cursor:pointer}
.advanced-operations[open]>summary,.history-disclosure[open]>summary,.partner-disclosure[open]>summary{border-bottom:1px solid var(--line)}
.advanced-operations>.panel,.history-disclosure>.panel,.partner-disclosure>.panel{margin-bottom:0;border:0;border-radius:0;box-shadow:none}
.advanced-operations .operation-list{max-height:280px}
.operation-layout .operation-list{max-height:550px}
.page-toolbar .finance-toolbar{gap:10px}
.page-toolbar .finance-date-filter{font-size:13px}
.page-toolbar .finance-date-filter input{height:40px;background:#fbfcff}
.page-toolbar select,.page-toolbar input{max-width:100%}
.settlement-summary{margin-bottom:16px;padding:15px;border:1px solid var(--line);border-radius:9px;background:#f5f8fd}
.settlement-summary-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px;color:#2b4161;font-size:16px}
.settlement-summary-heading>span{font-size:13px;color:var(--muted)}
.settlement-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.settlement-stat{padding:14px 16px;border:1px solid #cedbec;border-radius:7px;background:#eaf0f9;min-width:0}
.settlement-stat.estimated{background:#fff7e9;border-color:#ebddc4}
.settlement-stat.settled{background:#e6f2ec;border-color:#c6dfd1}
.settlement-stat-heading,.settlement-stat-amount{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.settlement-stat-heading{color:#354d71;font-size:15px;margin-bottom:8px}
.settlement-stat-heading strong{font-size:21px;font-weight:650}
.settlement-stat-heading small{font-size:13px;font-weight:400}
.settlement-stat-amount{font-size:14px;color:#536985}
.settlement-stat-amount strong{font-size:18px;color:#2b4264;font-weight:650;overflow-wrap:anywhere}
.settlement-merchant-filter{min-width:185px;max-width:280px}
.settlement-fee-details{margin-top:10px;border:1px solid var(--pc-border-light,var(--line));border-radius:6px;background:#fff;font-size:13px}
.settlement-fee-details summary{cursor:pointer;padding:8px 12px;color:var(--pc-text,#303133);font-weight:600}
.settlement-fee-details summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.settlement-fee-details[open] summary{border-bottom:1px solid var(--pc-border-light,var(--line))}
.settlement-fee-body{padding:0 12px 10px}
.settlement-fee-body .settlement-summary-waiting{gap:6px 16px;margin-top:0;padding-top:9px;font-size:13px}
.settlement-fee-body .settlement-summary-waiting:first-child{border-top:0}
.settlement-fee-body .settlement-summary-note{margin-top:8px}
.settlement-summary-other{font-size:13px;color:#765c32;margin-top:10px}
.settlement-summary-other summary{cursor:pointer;width:fit-content}
.settlement-summary-other p{margin:6px 0 0}
.settlement-summary-waiting{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 24px;margin-top:12px;padding-top:10px;border-top:1px solid var(--pc-border-light,var(--line));font-size:14px;color:var(--pc-text-secondary,#606266)}
.settlement-summary-waiting strong{margin-left:6px;color:var(--pc-text,#303133);font-weight:600;font-variant-numeric:tabular-nums}
.settlement-summary-note{font-size:13px;color:var(--muted);margin:10px 0 0}
.api-http-method{background:#e3f1e9;color:#22724d;padding:2px 7px;border-radius:4px;font-size:12px;font-weight:650}
.api-help{display:block;margin-top:7px;font-size:12px;color:var(--muted);line-height:1.6}
@media(max-width:700px){.settlement-stats{grid-template-columns:1fr;gap:8px}.settlement-stat{padding:10px 13px}.settlement-stat-heading{margin-bottom:4px}.settlement-stat-heading strong{font-size:19px}}
@media(max-width:1150px){.page-toolbar{align-items:flex-start;flex-wrap:wrap}.toolbar-actions{margin-left:auto}.page-toolbar .search{width:240px}.page-toolbar .finance-date-filter{flex-wrap:wrap}}
@media(max-width:800px){.page-toolbar{padding:12px;gap:12px}.toolbar-filters{width:100%;flex-basis:100%}.toolbar-actions{justify-content:flex-start;margin-left:0}.page-toolbar .search{width:100%;flex-basis:100%}.merchant-filter{flex-wrap:wrap;gap:6px}.merchant-filter select{min-width:160px;max-width:100%}.back-platform{font-size:12px;padding:6px}.page-toolbar .finance-toolbar{width:100%;align-items:flex-start}.page-toolbar .finance-date-filter label{flex-wrap:wrap}.page-toolbar .finance-date-filter input{min-width:0}.operation-layout .operation-list{max-height:280px}}
@media(max-width:480px){.merchant-filter{width:100%}.merchant-filter select{flex:1;min-width:0}.page-toolbar .filter-select{max-width:100%}.back-platform{max-width:130px;overflow:hidden;text-overflow:ellipsis}.table-footer{align-items:flex-start}.panel-header{flex-wrap:wrap}}
/* Visible account profile and accessible menu. */
.account-dropdown{position:relative;flex-shrink:0}
.account-trigger{display:flex;align-items:center;gap:9px;min-height:44px;padding:4px 11px 4px 5px;border:1px solid #c3d2e8;border-radius:28px;background:#e5eefb;color:#2b4264;box-shadow:0 2px 6px #284d7e08;text-align:left}
.account-trigger:hover,.account-trigger[aria-expanded=true]{background:#dbe7f9;border-color:#9cb7e0}
.avatar-person{display:flex;align-items:center;justify-content:center;width:32px;height:32px;overflow:hidden;border-radius:50%;background:#dce7f5;border:2px solid #fff;box-shadow:0 0 0 1px #c4d3e8;flex-shrink:0;color:#2b4264;font-size:14px;font-weight:700;line-height:1}
.account-info{display:flex;flex-direction:column;gap:0;line-height:1.4;min-width:0;max-width:180px}
.account-info strong{font-size:15px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-info small{font-size:12px;color:#607794}
.account-chevron{font-size:14px;color:#7087a7;margin-left:4px}
.account-menu{position:absolute;top:calc(100% + 9px);right:0;min-width:184px;padding:6px;border:1px solid #c9d6e9;border-radius:9px;background:#f9fbff;box-shadow:0 10px 28px #243c6026;z-index:50}
.account-menu button{display:flex;align-items:center;width:100%;border:0;border-radius:5px;background:transparent;padding:10px 12px;text-align:left;color:#354f74;font-size:14px;white-space:nowrap}
.account-menu button:hover,.account-menu button:focus-visible{background:#e7effb}
.account-menu button:last-child{color:#ae4242;border-top:1px solid #e1e8f1;border-radius:0 0 5px 5px}
[hidden]{display:none!important}
@media(max-width:600px){.account-trigger{min-height:44px;padding:3px 8px 3px 3px;gap:6px}.avatar-person{width:28px;height:28px}.account-info{max-width:100px}.account-info strong{font-size:13px}.account-info small{font-size:11px}.account-chevron{margin-left:0}.account-menu{min-width:164px}.back-platform{max-width:105px}.account{gap:5px}}
@media(max-width:380px){.account-info{max-width:76px}.account-info small{max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-trigger{padding-right:6px}.topbar{padding-left:10px;padding-right:10px}}

.config-list .data-table{min-width:940px}
.config-list .data-table th,.config-list .data-table td{padding:14px 12px}
.config-name{min-width:120px;max-width:190px;white-space:normal;line-height:1.5}
.config-list .data-table th:nth-child(3){text-align:center}
.config-app-id{font-variant-numeric:tabular-nums;white-space:nowrap}
.config-check-state{text-align:left;line-height:1.5}
.config-binding{display:grid;grid-template-columns:64px 3em 30px;align-items:center;gap:8px;width:max-content;min-height:32px;margin-inline:auto;white-space:nowrap}
.config-binding>*{grid-row:1}
.config-binding>.badge{grid-column:1;justify-self:start;white-space:nowrap}
.config-merchant-name{grid-column:2;width:3em;max-width:3em;overflow:hidden;white-space:nowrap;line-height:1.5;color:#3563b2}
.config-unbound{grid-column:2;white-space:nowrap;line-height:1.5;color:#7b8ba2}
.config-bind-button{grid-column:3;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #a9c6ee;border-radius:6px;background:#e6f0ff;color:#3474cf;cursor:pointer}
.config-bind-button svg{width:19px;height:19px;stroke-width:2.5}
.config-bind-button:hover{background:#d6e7ff;border-color:#73a4e8}
.config-actions{display:grid;grid-template-columns:repeat(2,max-content);gap:7px}
@media(min-width:1500px){.config-actions{grid-template-columns:repeat(4,max-content)}}
.config-button{min-height:32px;padding:6px 10px;font-size:14px;border-radius:5px;box-shadow:none;white-space:nowrap}
.config-button-key{background:#3980db;border-color:#3980db;color:#fff}
.button.config-button-key:hover,.button.config-button-key:focus-visible{background:#2f70c5;border-color:#2f70c5;color:#fff}
.config-button-detect{background:#68a83b;border-color:#68a83b;color:#fff}
.button.config-button-detect:hover,.button.config-button-detect:focus-visible{background:#568d30;border-color:#568d30;color:#fff}
.config-button-toggle{background:#edf2fa;border-color:#bfcde0;color:#48607e}
.config-button-toggle:hover{background:#dfe8f5;border-color:#9eb4d1}
.config-button-delete{background:#fff0ed;border-color:#e9bab2;color:#b34a3c}
.config-button-delete:hover{background:#fce1db;border-color:#d99083}
.merchant-row-actions{gap:8px;white-space:nowrap}
.merchant-more-trigger{gap:7px}
.merchant-more-trigger[aria-expanded=true]{background:#dfe8f5;border-color:#9eb4d1}
.merchant-more-menu{position:fixed;inset:auto;margin:0;width:240px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;border:1px solid #c7d5e8;border-radius:8px;padding:7px;background:#fff;box-shadow:0 10px 30px #1e355333;color:#354f74;white-space:normal}
.merchant-more-menu:popover-open{display:grid}
.merchant-menu-heading{padding:7px 9px 2px;line-height:1.5}
.merchant-menu-heading strong{display:block;font-size:14px;overflow-wrap:anywhere}
.merchant-menu-heading small{display:block;margin-top:4px;color:#71839c;font-size:12px;overflow-wrap:anywhere}
.merchant-menu-status{padding:5px 9px 10px;border-bottom:1px solid #e1e8f1;margin-bottom:4px}
.merchant-menu-status .badge{font-size:12px}
.merchant-menu-item{display:block;width:100%;padding:10px 11px;border:0;border-radius:5px;background:#fff;color:#354f74;text-align:left;font-size:14px;line-height:1.4;cursor:pointer}
.merchant-menu-item:hover,.merchant-menu-item:focus-visible{background:#e7effb;outline:none}
.merchant-menu-item.danger{color:#ae4242;border-top:1px solid #e1e8f1;border-radius:0 0 5px 5px;margin-top:4px}
.merchant-menu-item.danger:hover,.merchant-menu-item.danger:focus-visible{background:#fff0ed}
.product-list .data-table th:last-child,.product-list .data-table td:last-child{width:220px;min-width:220px;padding-inline:12px}
.product-row-actions{display:grid;grid-template-columns:40px 76px 56px;gap:10px;width:192px;margin-inline:auto;white-space:nowrap}
.product-row-actions>.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 6px;border-radius:5px;font-size:14px;font-weight:500;line-height:20px;transition:background-color .15s,color .15s}
.product-row-actions>.text-button:hover{background:#edf3ff;color:#2855bb}
.product-row-actions>.text-button:focus-visible{outline:2px solid #8fb1f4;outline-offset:2px}
.product-row-actions>.product-more-trigger{gap:4px;color:#64748b}
.product-row-actions>.product-more-trigger:hover,.product-more-trigger[aria-expanded=true]{background:#edf3ff;color:var(--blue)}
.product-more-trigger svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.product-more-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.product-menu-divider{height:1px;margin:6px 9px;background:#e1e8f1}
.product-more-menu .product-menu-link{display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none}
.product-menu-link span{font-size:16px;color:#71839c}
.product-more-menu{width:235px}
.product-more-menu .merchant-menu-item:disabled{cursor:default;color:#9aa8ba;background:#fff}
.product-menu-note{margin:4px 9px 7px;color:#71839c;font-size:12px;line-height:1.6}
.product-sku-fields{min-width:0;margin:0 0 16px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}
.product-sku-fields legend{padding:0 5px;color:#4b6283;font-size:14px;overflow-wrap:anywhere}
.product-sku-fields .field{margin-bottom:0}
.product-change-summary dd,.product-image-address{overflow-wrap:anywhere}
.product-editor textarea[name=image_list]{min-height:100px}
.credential-editor{font-size:17px}
.credential-editor .field{margin-bottom:22px}
.credential-editor .field label{font-size:17px;font-weight:600;line-height:1.5}
.credential-editor .field input{font-family:inherit;font-size:17px;min-height:46px;padding:11px 13px;font-variant-numeric:tabular-nums}
.credential-editor .field textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;line-height:1.65;padding:12px 13px;min-height:150px}
.credential-editor .field small,.credential-editor .section-note{font-size:14px;line-height:1.65}
.credential-editor .notice{font-size:15px;margin-bottom:22px}
.credential-editor .credential-mode button{font-size:17px;padding:11px 15px}
.credential-editor .certificate-file{background:#f2f6fc;padding:16px;border-color:#cdd9e8}
.credential-editor .certificate-file-top label{font-size:17px;font-weight:600}
.certificate-example{font-size:14px;color:#60748f;margin:10px 0 6px;line-height:1.65;overflow-wrap:anywhere}
.certificate-example code{font-size:13px;background:#e5edf9;border-radius:4px;padding:2px 5px;color:#486384}
.credential-editor .certificate-file-name{font-size:14px;margin:7px 0 12px}
.certificate-actions{gap:8px}
.certificate-actions .button{font-size:13px;min-height:31px;padding:5px 10px;border-radius:5px;box-shadow:none}
.certificate-actions .certificate-upload{background:#e2edfc;border-color:#b5c9e9;color:#3563b2}
.certificate-actions .certificate-remove{background:#fff0ed;border-color:#e8c3bd;color:#ad5145}
.certificate-actions .certificate-undo{background:#e8eff8;border-color:#bdcde2;color:#4c678a}
.config-check{padding:18px;border:1px solid #cbd8e9;border-radius:8px;background:#f0f5fc;margin-bottom:14px}
.config-check-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.config-check-title strong{font-size:17px}
.config-check p{font-size:15px;line-height:1.7;margin:12px 0 0;overflow-wrap:anywhere}
@media(max-width:600px){.credential-editor .certificate-file{padding:13px}.credential-editor .certificate-file-top label{font-size:16px}.credential-editor .credential-mode button{font-size:16px}.config-check{padding:14px}}

/* Platform batch redemption: the selected merchant stays above every batch. */
.batch-workspace-note{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:12px 16px;margin-bottom:14px;border:1px solid #c8d7e9;border-radius:8px;background:#e4edf9;font-size:14px;line-height:1.65;color:#526b8b}
.batch-workspace-note strong{font-size:15px;color:#2e496d}
.batch-orders{min-width:1030px}
.batch-orders th:first-child,.batch-orders td:first-child{width:44px;text-align:center}
.batch-orders input[type=checkbox]{width:17px;height:17px;accent-color:#3563cf;cursor:pointer}
.batch-orders td:last-child{min-width:270px}
.batch-code{width:100%;max-width:270px;min-height:39px;padding:8px 11px;border:1px solid #b6c7df;border-radius:6px;background:#fcfdff;color:#25364d;font-family:inherit;font-size:15px;line-height:1.5;font-variant-numeric:tabular-nums;letter-spacing:.4px}
.batch-code:focus{outline:2px solid #adc5f3;outline-offset:1px;border-color:#527bd0}
.batch-code:disabled{background:#eaf0f7;color:#77889e}
.batch-order-reason,.batch-notification{display:block;max-width:270px;font-size:13px;line-height:1.65;color:#63748c;white-space:normal;overflow-wrap:anywhere}
.batch-submit-bar,.batch-preview-footer,.batch-record-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 18px;border-top:1px solid #d6e0ee;font-size:13px;line-height:1.7;color:#60748f}
.batch-form-error{margin:0 18px 12px}
.batch-form-error:empty{display:none}
.batch-history{padding:0 16px 16px}
.batch-record{margin-top:12px;border:1px solid #cfdaea;border-radius:7px;background:#f7f9fd;overflow:hidden}
.batch-record>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;cursor:pointer;list-style:none}
.batch-record>summary::after{content:'⌄';font-size:18px;color:#71829a}
.batch-record[open]>summary{border-bottom:1px solid #d6e0ee}
.batch-record>summary strong{font-size:13px;overflow-wrap:anywhere}
.batch-record>summary .badge{margin-left:auto;flex-shrink:0}
.batch-record .table-footer{display:none}
.batch-confirmation .table-wrap{margin-top:18px}
.batch-confirmation .data-table{min-width:780px}
.batch-confirmation .table-footer{display:none}
@media(max-width:600px){.batch-workspace-note{padding:11px 13px}.batch-workspace-note strong{font-size:14px}.batch-submit-bar,.batch-preview-footer,.batch-record-actions{padding:12px 13px}.batch-submit-bar .button,.batch-preview-footer .button{width:100%;justify-content:center}.batch-history{padding:0 10px 10px}.batch-record>summary{padding:12px 10px;gap:8px}.batch-record>summary strong{font-size:12px}.batch-record>summary .badge{font-size:11px}}

/* Merchant staff enter a voucher code; provider identifiers stay server-side. */
.merchant-redemption-panel .panel-header{flex-wrap:wrap;gap:8px 18px}
.merchant-redemption-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px 16px;margin-left:auto}
.merchant-redemption-merchant{font-size:14px;color:#5e7494;line-height:1.6}
.merchant-redemption-guide{display:flex;max-width:800px;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;margin-bottom:20px}
body.pc-admin .merchant-redemption-guide .merchant-redemption-intro{margin:0;font-size:14px;line-height:1.6;color:var(--pc-text-secondary)}
.merchant-redemption-steps{display:flex;flex-wrap:wrap;gap:12px 20px;list-style:none;margin:0;padding:0;font-size:12px;color:var(--pc-text-secondary)}
.merchant-redemption-steps li{display:flex;align-items:center;gap:6px;white-space:nowrap}
.merchant-redemption-steps li+li::before{content:'›';color:var(--pc-text-muted);margin-right:6px}
.merchant-redemption-steps li span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid var(--pc-border-light);border-radius:50%;background:var(--pc-page-bg);color:var(--pc-text-secondary);font-variant-numeric:tabular-nums}
.merchant-redemption-form{max-width:800px}
.merchant-redemption-query-row{display:grid;grid-template-columns:minmax(0,492px) max-content;align-items:start;gap:12px;max-width:100%}
body.pc-admin .merchant-redemption-query-row .field{margin-bottom:0;grid-template-columns:var(--pc-label-width) minmax(0,1fr);gap:5px 12px}
body.pc-admin .merchant-redemption-query-row>.button{height:var(--pc-control-height);min-height:var(--pc-control-height);padding:7px 14px;margin:0}
.merchant-redemption-form input[name=code]{letter-spacing:1px;font-variant-numeric:tabular-nums}
.merchant-redemption-form input[name=code]::placeholder{letter-spacing:0}
body.pc-admin .merchant-redemption-form #merchant-redemption-shop .field{max-width:492px;margin:16px 0 0;grid-template-columns:var(--pc-label-width) minmax(0,1fr);gap:5px 12px}
body.pc-admin .merchant-redemption-form>.form-error{margin:12px 0 0;padding-left:calc(var(--pc-label-width) + 12px)}
.merchant-redemption-form>.form-error:empty{display:none}
.merchant-redemption-result{margin-top:20px;padding:16px;border:1px solid var(--pc-border-light);border-radius:var(--pc-radius);background:#fff}
.merchant-redemption-result>p{font-size:14px;line-height:1.6;margin:12px 0;color:var(--pc-text-secondary);overflow-wrap:anywhere}
body.pc-admin .merchant-redemption-result .merchant-redemption-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:14px 0;border:1px solid var(--pc-border-light);padding:0;font-size:14px}
.merchant-redemption-amount{white-space:nowrap;font-variant-numeric:tabular-nums}
body.pc-admin .merchant-redemption-history :is(.cell-title,.cell-sub){max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.merchant-redemption-result-actions,.merchant-redemption-result-actions form{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.merchant-redemption-result-actions form{width:100%}
.merchant-redemption-consent{flex-basis:100%;font-size:14px;line-height:1.7;margin:3px 0 8px}
.merchant-redemption-consent input{width:16px;height:16px;flex-shrink:0;accent-color:var(--pc-primary)}
.merchant-redemption-result-actions .form-error{flex-basis:100%}
.merchant-redemption-result-actions .form-error:empty{display:none}
.merchant-redemption-advanced .panel-body p{margin-top:0;color:var(--pc-text-secondary);font-size:14px}
@media(max-width:1100px){.merchant-redemption-guide{align-items:flex-start}.merchant-redemption-guide .merchant-redemption-steps{width:100%}}
@media(max-width:1000px){body.pc-admin .merchant-redemption-result .merchant-redemption-details{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.merchant-redemption-query-row{grid-template-columns:minmax(0,1fr)}body.pc-admin .merchant-redemption-query-row>.button{justify-self:start;margin-left:108px}body.pc-admin .merchant-redemption-query-row .field,body.pc-admin .merchant-redemption-form #merchant-redemption-shop .field{grid-template-columns:100px minmax(0,1fr);gap:5px 8px}body.pc-admin .merchant-redemption-form>.form-error{padding-left:108px}body.pc-admin .merchant-redemption-result .merchant-redemption-details{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.merchant-redemption-panel .panel-body{padding:16px}.merchant-redemption-merchant{font-size:13px}.merchant-redemption-result{padding:12px}.merchant-redemption-result-actions .button{max-width:100%;justify-content:center;white-space:normal}.merchant-redemption-consent{align-items:flex-start}.merchant-redemption-consent input{margin-top:4px}}

/* Shared ledger grid: white rows, fine cell boundaries, consistent alignment. */
.data-table th,.data-table td{border-right:1px solid #dfe7f1;vertical-align:middle;padding:12px}
.data-table th:last-child,.data-table td:last-child{border-right:0}
.data-table th{background:#f5f7fb;border-bottom:1px solid #dfe7f1}
.data-table th.cell-amount,.data-table td.cell-amount{text-align:center;font-variant-numeric:tabular-nums;min-width:90px}
.data-table th.cell-center,.data-table td.cell-center{text-align:center}
.data-table .cell-center .row-actions{justify-content:center}
.data-table .cell-date{font-variant-numeric:tabular-nums;min-width:112px}
.record-reference{display:block;max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-number{display:flex;align-items:center;gap:9px;line-height:1.6;margin:0}
.order-number>span:first-child{flex:0 0 42px;color:var(--muted)}
.order-number .record-reference{max-width:180px}
.api-setup{max-width:1100px;padding:20px 24px}
.api-info-group{margin:0 0 18px;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff}
.api-info-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 16px;border-bottom:1px solid var(--line);background:#f2f6fb}
.api-info-heading h3{margin:0;font-size:14px;font-weight:650;color:#344b6b}
.api-info-grid{margin:0}
.api-info-row{display:grid;grid-template-columns:140px minmax(0,1fr);border-top:1px solid var(--line);font-size:14px;line-height:1.7}
.api-info-row:first-child{border-top:0}
.api-info-row dt,.api-info-row dd{margin:0;padding:12px 16px;min-width:0;overflow-wrap:anywhere}
.api-info-row dt{display:flex;align-items:center;border-right:1px solid var(--line);background:#f8fafc;color:#72839b;font-weight:500}
.api-info-row dd{color:#3e5372}
.api-endpoint{display:flex;align-items:center;gap:16px;min-width:0;justify-content:space-between}
.api-endpoint code,.api-key-value{min-width:0;font-size:14px;overflow-wrap:anywhere;white-space:normal;color:#354e72;font-variant-numeric:tabular-nums}
.api-endpoint .button{flex:0 0 auto}
.api-key-content{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}
.api-key-actions{display:flex;gap:8px;flex-wrap:wrap}
.api-key-actions .button,.api-endpoint .button{min-height:30px;padding:4px 10px;font-size:12px}
.api-key-loading{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.api-key-loading .spinner{width:14px;height:14px}
.api-key-error{font-size:13px;color:#bd4848}
.api-key-retry{margin-top:4px;padding:0;font-size:13px}
.api-inline-note{margin-left:12px;color:var(--muted)}
.api-entry-mode{display:inline-block;margin-right:22px}
.api-entry-mode:last-child{margin-right:0}
.api-entry-mode code{padding:2px 6px;border-radius:4px;background:#eff4fb;font-size:13px}
.api-setup-links{display:flex;gap:10px;margin-top:2px}
.api-setup-links .button{min-height:36px;font-size:13px}
.pagination .button{font-size:13px;min-height:28px;padding:3px 8px}
@media(max-width:760px){.api-setup{padding:16px}.api-info-row{grid-template-columns:110px minmax(0,1fr)}.api-info-row dt,.api-info-row dd{padding:10px 12px}.api-key-content{grid-template-columns:1fr;gap:9px}.api-entry-mode{display:block;margin:2px 0}.api-setup-links{flex-wrap:wrap}.record-reference{max-width:220px}}
@media(max-width:460px){.api-setup{padding:12px}.api-info-row{grid-template-columns:86px minmax(0,1fr);font-size:13px}.api-info-row dt,.api-info-row dd{padding:10px}.api-endpoint{align-items:flex-start;gap:8px}.api-endpoint code,.api-key-value{font-size:12px}.api-info-heading{padding:10px 12px}.api-key-actions .button{padding:4px 8px}}

.api-setup .section-note{margin-bottom:0}

/* Unified orders keep identities together and open details above the list. */
.ledger-references{width:218px;min-width:190px;max-width:218px;font-size:13px;line-height:1.6}
.ledger-references .order-number>span:first-child{flex-basis:42px;font-size:13px}
.ledger-references .record-reference{max-width:166px;min-height:0;padding:0;font-size:13px;text-align:left}
.ledger-product,.ledger-merchant{display:block;max-width:170px;min-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ledger-product{font-weight:600}
.order-expand{white-space:nowrap;font-size:13px}
.order-detail-dialog{position:fixed;inset:0;margin:auto;padding:0;width:1040px;max-width:calc(100vw - 48px);max-height:88vh;max-height:88dvh;border:0;border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 24px 80px #1627413d;overflow:hidden}
.order-detail-dialog[open]{display:flex;flex-direction:column}
.order-detail-dialog::backdrop{background:#14253f66;backdrop-filter:blur(1px)}
.order-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:17px 24px;border-bottom:1px solid var(--line);background:#fff}
.order-dialog-top h2{margin:0;font-size:18px;font-weight:650;line-height:1.5}
.order-dialog-top .icon-button{width:32px;height:32px;font-size:18px}
.order-dialog-top .icon-button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.order-dialog-body{min-height:0;padding:0 24px 24px;overflow:auto;overscroll-behavior:contain}
.order-detail-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:18px}
.order-detail-summary>div{min-width:0}
.order-detail-summary strong{display:block;overflow-wrap:anywhere;font-size:17px;line-height:1.5;font-weight:650}
.order-detail-summary>.order-status{flex-shrink:0}
.order-status{display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;line-height:1.45;white-space:nowrap;padding:4px 11px;border:1px solid transparent;border-radius:6px}
.order-status.success{color:#529b2e;background:#f0f9eb;border-color:#d8eccb}
.order-status.info{color:#409eff;background:#ecf5ff;border-color:#c6e2ff}
.order-status.danger{color:#de4b4b;background:#fef0f0;border-color:#f9d4d4}
.order-status.warning{color:#a77627;background:#fdf6ec;border-color:#f3dfbc}
.order-status-redemption,.order-status-refund{border-radius:999px;border-color:transparent}
.order-detail-source{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.order-detail-section{margin-bottom:14px;border:1px solid var(--line);border-radius:5px;overflow:hidden}
.order-detail-section h3{margin:0;padding:10px 14px;background:#f5f7fb;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5;font-weight:600;color:#344863}
.order-detail-fields{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line)}
.order-detail-field{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:baseline;padding:11px 14px;background:#fff;font-size:14px;line-height:1.65}
.order-detail-field.wide{grid-column:1/-1}
.order-detail-field dt{color:#7a8a9f;font-size:13px}
.order-detail-field dd{min-width:0;margin:0;overflow-wrap:anywhere;color:#40536c}
.order-detail-id-value{font-size:13px;word-break:break-all}
.order-detail-copy{margin-left:12px;padding:0;min-height:0;font-size:13px;white-space:nowrap}
.order-detail-secondary{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.order-detail-amount{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;color:#2f4059}
.order-detail-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:4px}
.order-detail-actions .muted{font-size:12px}
.finance-sync-group{min-width:0;margin:0 0 16px;padding:12px 0 0;border:0;border-top:1px solid var(--pc-border-light,var(--line))}
.finance-sync-group legend{padding:0 8px 0 0;font-size:14px;font-weight:600;color:var(--pc-text,var(--text))}
.finance-sync-group .form-grid{gap:12px}
.finance-sync-group .inline-checkbox{margin-bottom:12px}
.finance-sync-group .field{margin-bottom:12px}
.finance-sync-group input[type=number]{width:100%;min-width:0}
@media(max-width:880px){.order-detail-field{grid-template-columns:96px minmax(0,1fr);gap:8px}}
@media(max-width:640px){.order-detail-dialog{max-width:calc(100vw - 24px);max-height:92vh;max-height:92dvh;border-radius:10px}.order-dialog-top{padding:14px 16px}.order-dialog-body{padding:0 14px 18px}.order-detail-summary{padding:15px 0;gap:12px}.order-detail-summary strong{font-size:14px}.order-detail-fields{grid-template-columns:minmax(0,1fr)}.order-detail-field{grid-template-columns:92px minmax(0,1fr);padding:10px 12px}.order-detail-actions .muted{flex-basis:100%}}
/* Public cashier: compact payment warning and two illustrated steps. */
.customer-flow-page .customer-payment-help{max-width:640px;margin:8px auto 10px;scroll-margin-top:14px}
.customer-guide-alert{display:flex;flex-direction:column;gap:2px;border:2px solid #e97819;border-radius:10px;background:#fff3e6;padding:8px 10px;color:#743710;line-height:1.45}
.customer-guide-alert strong{font-size:17px;color:#a82715}
.customer-guide-alert span{font-size:14px;font-weight:600}
.customer-flow-page .customer-guide-alert .customer-guide-down{display:block;text-align:center;color:#b54414;font-size:24px;font-weight:800;line-height:1}
.customer-flow-page .customer-return{margin:7px 0 8px;text-align:left;padding:7px 9px;background:#f2f7ff;border:1px solid #d6e5ff;border-radius:9px}
.customer-flow-page .customer-return-hint{margin:0 0 4px;color:#334766;font-size:13px;line-height:1.35}
.customer-flow-page #customer-copy-link{display:inline-flex;align-items:center;min-height:44px;padding:5px 10px;border:1px solid #aac8fc;border-radius:6px;background:#fff;color:#155cb8;font-size:13px;font-weight:600}
.customer-flow-page #customer-copy-link:hover{background:#e6f0ff}
.customer-flow-page .customer-guide-title{margin:8px 0 5px;font-size:16px;line-height:1.35;color:#263b58}
.customer-guide-steps{display:grid;grid-template-columns:1fr;gap:6px;list-style:none;margin:0;padding:0}
.customer-guide-step{min-width:0;margin:0;padding:7px;border:1px solid #dbe5f2;border-radius:9px;background:#fbfdff}
.customer-guide-step-heading{display:flex;align-items:center;gap:7px;margin-bottom:5px;font-size:13px;line-height:1.35;color:#1d3555}
.customer-guide-number{display:grid;place-items:center;flex:0 0 21px;height:21px;border-radius:50%;background:#1f6bdf;color:#fff;font-size:12px;font-weight:700}
.customer-guide-step img{display:block;width:100%;height:auto;aspect-ratio:460/170;border:1px solid #cddced;border-radius:7px;background:#f0f6ff}
.customer-flow-page .customer-guide-caption{margin:4px 0;color:#687789;font-size:11px;line-height:1.4}
.customer-flow-page .customer-guide-return{margin:6px 0 0;padding:7px 9px;border-left:3px solid #1f6bdf;background:#edf5ff;color:#253b59;font-size:13px;font-weight:600;line-height:1.4}
.customer-entry-page .customer-payment-help{margin:8px 0 10px}


/* Keep both illustrated steps readable at every checkout viewport. */
.customer-flow-page .customer-guide-help{margin:10px 0 0;border-top:1px solid #dbe5f2;color:#334766}
.customer-flow-page .customer-guide-help summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:#155cb8;font-size:13px;font-weight:600}
.customer-flow-page .customer-guide-help-body{padding:2px 0 7px}
.customer-flow-page .customer-guide-help-body p{margin:5px 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.customer-flow-page .customer-guide-help-body strong{color:#183b6c}
@media(max-width:360px){.customer-page{padding-left:12px;padding-right:12px}.customer-flow-page .customer-flow{padding:14px}.customer-entry-page .customer-flow{padding:0}.customer-guide-step{padding:7px}.customer-flow-page .customer-guide-alert span{font-size:14px}}
/* Checkout touch targets, text zoom and narrow screens. */
.customer-flow-page #customer-copy-link{min-width:0;max-width:100%;min-height:44px;white-space:normal;text-align:center;overflow-wrap:anywhere}
.customer-flow-page #customer-open-payment,.customer-flow-page #customer-redemption button[type=submit]{min-width:0;max-width:100%;min-height:44px;white-space:normal;line-height:1.4;text-align:center}
.customer-flow-page .customer-order,.customer-flow-page .customer-payment-status,.customer-flow-page .customer-guide-alert,.customer-flow-page .customer-guide-return,.customer-flow-page .customer-guide-help,.customer-flow-page .form-error{overflow-wrap:anywhere}
.customer-flow-page{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.customer-entry-page{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}

/* Login and context-return layouts stay usable on narrow and short screens. */
@media(max-width:820px){
.login-page{display:block;padding:0}
.login-shell{width:100%;min-height:100vh;min-height:100dvh;grid-template-columns:minmax(0,1fr);border-radius:0;box-shadow:none}
.login-art{display:flex;min-height:auto;padding:24px 24px 22px}
.login-art:before{width:330px;height:330px;left:auto;right:-150px;bottom:-240px}
.login-art:after,.login-features,.login-meta{display:none}
.login-message{margin:18px 0 0}
.login-message h1{font-size:26px;margin:6px 0 4px}
.login-message p{font-size:14px;line-height:1.55}
.login-form-side{align-items:flex-start;padding:30px 24px 40px}
.login-box{max-width:480px}
.login-box .subtitle{margin-bottom:24px}
}
@media(max-width:390px){
.login-art{padding:20px 18px}
.login-brand{gap:8px}
.login-brand strong{font-size:17px}
.login-brand-role{font-size:10px;padding:4px 6px}
.login-message h1{font-size:23px}
.login-form-side{padding:26px 18px 34px}
.login-box h2{font-size:22px}
.portal-return-card{padding:26px 20px}
}
@media(max-height:680px) and (min-width:821px){
.login-page{padding-block:16px}
.login-shell{min-height:540px}
.login-art{padding-block:32px}
.login-features{margin-top:22px;gap:10px}
.login-form-side{padding-block:28px}
}

.order-row-actions{white-space:nowrap}
.order-row-actions .order-more-trigger{display:inline-flex;align-items:center;gap:4px}

/* Cashier: make voucher redemption visible before the illustrated guide. */
.customer-flow-page #customer-redemption{margin:4px 0 20px;padding:18px 16px 16px;border:2px solid #ed9a45;border-radius:12px;background:#fff8ee;box-shadow:0 4px 14px #a8581110}
.customer-flow-page #customer-redemption-title{justify-content:center;margin:0 0 8px;color:#713b14;font-size:24px;font-weight:750;line-height:1.4;text-align:center}
.customer-flow-page #customer-redemption .customer-redemption-hint{margin:0 0 16px;color:#805630;font-size:13px;line-height:1.5;text-align:center}
.customer-flow-page #customer-redemption .field{margin-bottom:14px}
.customer-flow-page #customer-redemption label{font-size:15px;font-weight:650;color:#593b23}
.customer-flow-page #customer-code{min-height:52px;padding:12px;border:1px solid #d6ad80;border-radius:8px;font-size:16px;background:#fff}
.customer-flow-page #customer-code:focus{border-color:#e87919;outline:3px solid #ed9a4530;outline-offset:1px}
.customer-flow-page #customer-redemption button[type=submit]{width:100%;min-height:52px;background:#c45508;border-color:#c45508;border-radius:8px;color:#fff;font-size:18px;font-weight:700}
.customer-flow-page #customer-redemption button[type=submit]:hover{background:#a94806;border-color:#a94806}
.customer-flow-page #customer-redemption button[type=submit]:disabled{opacity:.65}
.customer-flow-page .customer-payment-help{margin-top:0;padding-top:0}
.customer-flow-page .customer-guide-alert{border-width:1px;gap:3px}
.customer-flow-page .customer-guide-alert .customer-guide-down{display:none}
.customer-flow-page .customer-guide-alert strong{font-size:15px}
.customer-flow-page .customer-guide-alert span{font-size:13px;font-weight:500}
.customer-flow-page .customer-guide-title{margin:18px 0 10px}
@media(max-width:360px){.customer-flow-page #customer-redemption{padding:14px 12px}.customer-flow-page #customer-redemption-title{font-size:23px}.customer-flow-page #customer-redemption .customer-redemption-hint{font-size:12px}}
/* Keep the optional miniapp path beside the existing cashier controls. */
.customer-miniapp{margin:18px 0;padding:16px;border:1px solid var(--border,#dfe5df);border-radius:12px;background:#f7faf7}
.customer-miniapp>.button{width:100%}.customer-miniapp .customer-redemption-hint{margin:10px 0;font-size:13px;line-height:1.65}.customer-miniapp .notice{margin-top:10px}.customer-miniapp .muted{font-size:12px;overflow-wrap:anywhere}
