:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#202922;background:#f4f6f4}*{box-sizing:border-box}body{margin:0}body>header{background:#fff;border-bottom:1px solid #dce4de;padding:17px max(24px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;align-items:center}body>header strong{font-size:20px;color:#195b3b}body>header span{margin-left:18px;color:#69776c;font-size:13px}main{max-width:1180px;margin:32px auto;padding:0 24px}h1,h2,h3{margin:0 0 8px}h1{font-size:25px}h2{font-size:20px}h3{font-size:16px}p{color:#69776c;margin:0 0 16px;line-height:1.6}.card{background:#fff;border:1px solid #dce4de;border-radius:10px;padding:24px;margin:18px 0}.login-card{max-width:420px;margin:12vh auto}label{display:block;font-size:13px;color:#3d4b40;font-weight:600;margin:12px 0}input,select,textarea{display:block;width:100%;padding:10px 12px;margin-top:6px;border:1px solid #c8d4cb;border-radius:6px;background:#fff;font:inherit;color:#202922}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #26865a;outline-offset:2px}button{background:#196b45;color:#fff;border:0;border-radius:6px;padding:10px 15px;font:inherit;font-weight:600;cursor:pointer}button:hover{background:#125338}button.quiet{background:#e9f0eb;color:#22553a}button.quiet:hover{background:#dce9df}button:disabled{opacity:.55;cursor:wait}nav{display:flex;gap:8px;border-bottom:1px solid #dce4de;padding-bottom:10px}nav button{background:transparent;color:#435a49}nav button.selected{background:#196b45;color:#fff}nav #logout{margin-left:auto}.section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.section-title p{margin:0}#notice{min-height:28px;color:#196b45;font-weight:600}#notice.error{color:#aa3535}.row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #edf1ee;padding:15px 0}.row:first-child{border-top:0}.row b{display:block}.row small{display:block;color:#738078;margin-top:4px}.row button{white-space:nowrap}.columns{display:grid;grid-template-columns:1fr 1fr;gap:32px}.columns>div{min-width:0}.columns h3{margin-bottom:15px}.pill{display:inline-block;background:#e8f4ec;color:#23613e;padding:4px 8px;border-radius:4px;margin:2px;font-size:12px}.pill.off{background:#f1f1f1;color:#808881}dialog{border:0;border-radius:10px;box-shadow:0 16px 60px #1a3b2950;width:min(600px,calc(100vw - 32px));max-height:90vh;padding:24px}dialog::backdrop{background:#15271bcc}dialog footer{border-top:1px solid #e3e9e4;padding-top:16px;text-align:right;margin-top:18px}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.check-grid label{font-weight:400}.check-grid input{display:inline;width:auto;margin-right:8px}.muted{color:#748078;font-size:13px}.danger{color:#b34040}@media(max-width:760px){body>header{padding:14px 20px}body>header span{display:none}main{padding:0 16px}.columns{grid-template-columns:1fr}.section-title{align-items:center}.card{padding:16px}}
:is(dialog,.check-grid) input[type=checkbox]{display:inline-block;width:auto;margin-right:8px}

.billing-section{border-top:1px solid #dce4de;margin-top:28px;padding-top:24px}.button-group{display:flex;gap:8px;flex-wrap:wrap}#billing-summary{font-weight:600;color:#22553a;padding:12px;background:#edf5ef;border-radius:6px}#billing-notices .row{border-left:3px solid #c49232;padding-left:12px;margin:8px 0;background:#fff9eb}h4{font-size:14px;margin:22px 0 8px}nav{flex-wrap:wrap}.row{flex-wrap:wrap}.row>div:first-child{flex:1;min-width:220px}.row small{line-height:1.6}#reset-password{margin-top:16px}
.connection-section{border-top:1px solid #dce4de;padding-top:24px;margin-top:28px}.connection-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:16px 0}.connection-actions label{flex:1;min-width:220px;margin:0}.connection-section a{color:#196b45;font-size:13px;overflow-wrap:anywhere}details{width:100%;padding:8px 0;color:#58685b;font-size:13px}summary{cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f6f4;border:1px solid #e3e9e4;padding:12px;border-radius:6px;max-height:340px;overflow:auto}.json-input{font-family:ui-monospace,SFMono-Regular,monospace;font-weight:400;line-height:1.5}#trial-code-image{max-width:240px;width:100%;margin:16px 0}#deployment-actions{margin:16px 0}#connection-summary{background:#f4f8f5;padding:12px;border-radius:6px}
[hidden]{display:none!important}

.financial-history{overflow:auto;margin:1rem 0}.financial-history table{width:100%;border-collapse:collapse;white-space:nowrap}.financial-history th,.financial-history td{padding:10px 12px;text-align:left;border-bottom:1px solid #e3e9e5}.financial-history th{font-size:12px;color:#5f7167;background:#f5f8f6}

.order-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.order-search label{flex:1 1 160px;min-width:0}.order-search input,.order-search select{width:100%;box-sizing:border-box}.order-search button{flex:0 1 auto}.financial-history td small{display:block;color:#66736c}

.section-title>button{flex-shrink:0;white-space:nowrap}

.merchant-sections{margin:26px 0 24px;gap:4px;border-bottom:1px solid #dce4de;padding-bottom:8px}
.merchant-sections button{padding:11px 18px;background:transparent;border-radius:6px;color:#66776b}
.merchant-sections button.selected{background:#edf5ef;color:#195b3b;box-shadow:inset 0 -3px #196b45}
[data-merchant-panel]>.connection-section:first-child,[data-merchant-panel]>.billing-section:first-child{border-top:0;margin-top:0;padding-top:0}
.workspace-advanced{margin:18px 0;border:1px solid #dce4de;border-radius:8px;padding:0;background:#fafcfb}
.workspace-advanced>summary{padding:16px 18px;font-size:14px;color:#315940;font-weight:600}
.workspace-advanced>summary span{margin-left:12px;color:#78867d;font-size:12px;font-weight:400}
.workspace-advanced[open]>summary{border-bottom:1px solid #dce4de}
.workspace-advanced>*:not(summary){margin-left:18px;margin-right:18px}
.workspace-advanced>.card{border:0;background:transparent;padding:0}
.finance-entry,.connection-entry{margin-bottom:16px}
.merchant-sections button:focus-visible,.workspace-advanced>summary:focus-visible{outline:2px solid #26865a;outline-offset:3px}
@media(max-width:760px){.merchant-sections{display:grid;grid-template-columns:1fr 1fr}.merchant-sections button{font-size:13px;padding:10px}.workspace-advanced>summary span{display:block;margin:6px 0 0}.section-title>div:last-child{flex-wrap:wrap}}

.payment-parameters{border:0;padding:0;margin:0;min-width:0}

#workspace-menu-panel form{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
#workspace-menu-panel .inline-checkbox{display:flex;align-items:center;gap:9px;margin:0}
#workspace-menu-panel input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:#18734c;flex:0 0 18px}

.profit-sharing-editor .split-reference{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;margin:20px 0 8px;background:#f2f7f4;border:1px solid #d5e4da;border-radius:8px}
.profit-sharing-editor .split-reference div{display:grid;gap:6px}.profit-sharing-editor .split-reference strong{color:#1d6947;font-size:24px}.profit-sharing-editor small{color:#65796c;font-size:12px;line-height:1.7}
.profit-sharing-editor .split-check{display:flex;flex-direction:row;align-items:center;gap:10px;margin:20px 0 12px}.profit-sharing-editor .split-check input{width:18px;height:18px;min-height:18px;padding:0;margin:0;flex:0 0 18px;accent-color:#18794e}
.profit-sharing-editor .split-default{padding:16px;background:#f7faf8;border:1px solid #dce7df;border-radius:8px}.profit-sharing-editor .split-default p{margin:7px 0}.profit-sharing-editor .split-query-status:empty{display:none}.profit-sharing-editor .split-query-status{font-size:13px;line-height:1.7;color:#496654}
.profit-sharing-editor details{margin-top:18px;border-top:1px solid #dce7df;padding-top:14px}.profit-sharing-editor summary{cursor:pointer;color:#38644b;font-size:13px;font-weight:650}.profit-sharing-editor details>label,.profit-sharing-editor details>button,.profit-sharing-editor details>small{margin-top:12px}.profit-sharing-editor details>small{display:block}
.profit-sharing-editor fieldset{padding:0;border:0;margin:16px 0 0}.profit-sharing-editor fieldset[hidden]{display:none}.profit-sharing-editor .split-timing ul{font-size:13px;color:#65796c;padding-left:18px;line-height:1.8}
@media(max-width:640px){.profit-sharing-editor .split-reference{align-items:flex-start;flex-direction:column}}
.editor-status{margin:16px 0 0;padding:12px 14px;border:1px solid #d5e4da;border-radius:8px;background:#f2f7f4;color:#22553a;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.editor-status.error{border-color:#e7c4bd;background:#fff4f0;color:#9c3528}
.editor-status[hidden]{display:none}

.login-captcha-row { display:flex; align-items:center; gap:12px; }
.login-captcha-row input { flex:1; min-width:0; }
.login-captcha-image { flex:0 0 160px; height:54px; padding:0; overflow:hidden; border:1px solid #dbe3dc; border-radius:8px; background:#f4f7f4; color:#4c6154; }
.login-captcha-image img { display:block; width:160px; height:54px; object-fit:contain; }
.login-captcha-image img:not([hidden]) + span { display:none; }
.login-captcha-hint { color:#6e7c72; }
#captcha-error { color:#b72f28; }
