:root{color-scheme:light;--canvas:#f6f7f9;--surface:#fff;--ink:#202731;--muted:#7b8490;--line:#e9ecf0;--accent:#287a61;--accent-soft:#eef6f2;--accent-line:#d0e5db;--success:#2c8062;--danger:#c76354;--font:"Inter","Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif}

*{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink);font:13px/1.6 var(--font);-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
button{color:inherit}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.icon-library{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.app-shell{min-height:100vh}
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{width:37px;height:37px;background:#263e35;color:#fff;display:grid;place-items:center;border-radius:11px;transform:rotate(-5deg)}
.brand-mark .icon{width:23px;height:23px;transform:rotate(5deg)}
.brand strong{font-size:19px;font-weight:750;letter-spacing:-.8px;line-height:1.2;display:block}
.brand-dot{font-size:11px;vertical-align:top;margin-left:4px;letter-spacing:0}
.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:2.4px;margin-top:5px}
.channel-logo{height:29px;width:29px;border-radius:8px;display:grid;place-items:center;font-weight:750;font-size:17px;flex:none}
.gopay .channel-logo{background:#e1f3f0;color:#1b8e82}
.upi .channel-logo{background:#fff0e1;color:#c17e42}
.main-shell{min-width:0}
.topbar{background:var(--surface);border-bottom:1px solid var(--line)}
.topbar-actions{display:flex;align-items:center;gap:18px}
.success-sound-toggle{display:flex;align-items:center;gap:8px;color:#79847d;font-size:12px;white-space:nowrap;cursor:pointer}
.preview-tag{display:flex;align-items:center;gap:6px;font-size:12px;color:#79847d;border:1px solid #e3e9e5;background:#f6f9f7;padding:4px 9px;border-radius:5px}
.preview-tag>span{height:4px;width:4px;background:#80a88d;border-radius:50%}
main{max-width:1150px;margin:auto;padding:34px 24px}
.page-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:22px;gap:20px}
h1{font-size:26px;line-height:1.3;font-weight:650;letter-spacing:-.8px;margin:0}
.heading-dot{color:var(--accent);margin-left:4px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;height:36px;padding:0 13px;border-radius:6px;font-size:12px;font-weight:550;transition:background .15s,border-color .15s}
.button.secondary{background:var(--surface);border:1px solid #e1e5e8;color:#596570}
.button.secondary:hover{background:#f5f8f6;border-color:#cbd8cf}
.button.primary{background:var(--accent);color:#fff;border:1px solid var(--accent)}
.button.primary:hover{background:#226b54}
.button .icon{height:15px;width:15px}
.workspace-grid{display:grid;grid-template-columns:405px minmax(0,1fr);gap:23px;align-items:start}
.panel{background:var(--surface);border:1px solid #e5e9ed;border-radius:10px;box-shadow:0 2px 5px #1c293003;overflow:hidden}
.panel-heading{min-height:62px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 21px}
.panel-title{display:flex;align-items:center;gap:10px}
.section-number{color:#a3abb3;font-size:12px;font-weight:500;font-family:"Consolas",monospace;letter-spacing:.5px}
h2{font-size:14px;font-weight:600;margin:0}
h3{font-size:13px;font-weight:600;margin:0}
.channel-tag{font-size:11px;font-weight:550;color:#688575;border:1px solid #deebe3;background:#f7faf8;border-radius:4px;padding:2px 7px}
.config-content{padding:20px 21px 0}
.field-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:550;margin-bottom:9px;gap:8px}
.text-button{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:3px 0;color:#718078;font-size:12px;white-space:nowrap;line-height:1.5}
.text-button:hover{color:var(--accent)}
.text-button .icon{width:13px;height:13px}
textarea,input:not([type=checkbox]):not([type=radio]):not([type=file]),select{background:#fff;border:1px solid #e2e7eb;border-radius:6px;outline:none;color:#59636f;width:100%;padding:10px 11px}
textarea{display:block;resize:vertical;min-height:116px;font-family:"Consolas","Microsoft YaHei UI",monospace;font-size:12px;line-height:1.9}
textarea::placeholder,input::placeholder{color:#a4acb5;font-size:12px}
textarea:focus,input:not([type=checkbox]):not([type=radio]):focus,select:focus{border-color:#7ead98;box-shadow:0 0 0 3px #287a6108}
select{height:35px;padding:0 9px;font-size:12px}
input:not([type=checkbox]):not([type=radio]):not([type=file]){height:35px;padding:8px 10px;font-size:12px}
.field-caption{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#9ca4ae;margin-top:8px}
.channel-settings{margin-top:22px;padding:16px 13px 0;border:1px solid #e6ebe8;background:#fcfdfc;border-radius:7px}
.channel-setting-heading{display:flex;align-items:center;gap:9px}
.mini-channel-logo{background:#e5f3ef;color:#358772;width:25px;height:25px;display:grid;place-items:center;border-radius:7px;font-size:14px;font-weight:650;flex:none}
.channel-setting-heading p{font-size:11px;color:#97a09b;margin:2px 0 0}
.route-tag{margin-left:auto;color:#87918a;font-family:"Consolas",monospace;font-size:11px;white-space:nowrap}
.mode-line{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:14px 0 12px;font-size:12px;color:#9aa29c;border-bottom:1px solid #ecf0ed}
.mode-line strong{margin-left:auto;font-weight:500;font-size:12px;color:#5b7266}
.mode-line .icon{height:12px;width:12px;color:#69917a}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;cursor:pointer;color:#636e67;font-size:12px}
.switch-row small{font-size:11px;color:#9ca5a0;display:block;margin-top:3px;font-weight:400}
.switch-input{appearance:none;flex:none;width:26px;height:15px;position:relative;border:0;border-radius:20px;background:#dfe5e1;transition:background .15s;cursor:pointer;margin:0}
.switch-input:after{content:"";position:absolute;left:2px;top:2px;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #00000010;transition:transform .15s}
.switch-input:checked{background:var(--accent)}
.switch-input:checked:after{transform:translateX(11px)}
.switch-input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.inline-field{display:flex;align-items:center;gap:12px;padding:12px 0 0;font-size:12px;color:#838d85}
.inline-field select{margin-left:auto;width:180px;background:#fff;font-size:12px}
.payment-api-settings{padding-top:12px;display:grid;gap:10px}
.payment-api-settings>label,.advanced-content>label{font-size:12px;color:#6c7780;display:grid;gap:6px}
.payment-api-settings small{color:#a0a8af}
.credential-actions{font-size:11px;display:flex;gap:10px;align-items:center;color:#9da59f}
.credential-actions span{margin-right:auto}
.retry-settings{margin-top:16px;border-top:1px solid var(--line)}
.retry-settings .switch-row{padding:13px 0 10px}
.attempt-field{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#636e67}
.attempt-field small{display:block;font-size:11px;color:#9ca5a0;margin-top:3px}
.attempt-input{display:flex;gap:7px;align-items:center;color:#909b94}
#retryCount{width:64px;text-align:center}
#retryCount:disabled{background:#f4f6f5;color:#a7aea9}
.advanced-options{padding:12px 0}
.advanced-options summary{list-style:none;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#949ca5;cursor:pointer}
.advanced-options summary::-webkit-details-marker{display:none}
.advanced-options summary .icon{height:11px;width:11px;transform:rotate(90deg)}
.advanced-options[open] summary .icon{transform:rotate(-90deg)}
.advanced-content{padding-top:14px;display:grid;gap:10px}
.advanced-content .switch-row{display:flex;padding:0}
.form-footer{padding:7px 21px 16px}
.form-footer>.primary{height:40px;width:100%;display:flex;justify-content:space-between;padding:0 15px;font-size:13px}
.form-footer p{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;color:#a1a8b0;margin:11px 0 0;white-space:normal;text-align:center}
.preview-indicator{height:4px;width:4px;background:#c5b78e;border-radius:50%;flex:none}
.results-stack{min-width:0}
.queue-actions{display:flex;gap:10px;align-items:center}
.demo-notice{display:flex;align-items:center;gap:7px;color:#939994;font-size:11px;background:#fafbf9;padding:7px 20px;border-bottom:1px solid #f0f2ef}
.demo-notice>.icon{width:12px;height:12px;color:#99a69b}
.demo-notice>button{margin-left:auto}
.queue-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:14px 12px 13px}
.queue-metrics.with-first-pass{grid-template-columns:repeat(6,minmax(0,1fr))}
.metric{padding:8px;text-align:left;border:1px solid transparent;border-radius:6px;background:transparent;min-width:0;transition:background .15s,border-color .15s}
.metric:hover{background:#f7faf8;border-color:#e4ede7}
.metric.selected{background:var(--accent-soft);border-color:var(--accent-line)}
.metric.selected .metric-label{color:var(--accent)}
.metric-label{display:flex;align-items:center;gap:5px;font-size:11px;color:#8f98a2;white-space:nowrap}
.metric-value{display:block;font-size:25px;font-weight:550;letter-spacing:-1px;line-height:1.35;margin-top:5px;font-variant-numeric:tabular-nums}
.metric[data-filter=error] .metric-value{color:#ae776d}
.metric[data-filter=success] .metric-value{color:var(--accent)}
.metric[data-filter=first_pass] .metric-value{color:#b18c48}
.metric-dot{width:4px;height:4px;background:#b3bac1;border-radius:50%}
.metric[data-filter=running] .metric-dot,.metric[data-filter=success] .metric-dot{background:#76a98c}
.metric[data-filter=queued] .metric-dot,.metric[data-filter=first_pass] .metric-dot{background:#d2ab65}
.metric[data-filter=error] .metric-dot{background:#d19589}
.batch-progress{margin:0 20px 17px}
.batch-progress>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:7px;color:#9ba3ac}
.batch-progress strong{font-weight:400;color:#89939d}
.progress-track{height:3px;background:#eef2ee;border-radius:5px;overflow:hidden}
.progress-track span{height:100%;display:block;background:#70a68a;border-radius:5px;transition:width .3s}
.queue-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 20px 11px;border-bottom:1px solid var(--line);gap:8px}
.filter-tabs{display:flex;gap:3px;flex-wrap:wrap;min-width:0}
.filter-tabs button{border:0;background:transparent;font-size:12px;padding:4px 9px;border-radius:4px;color:#939ca6;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.filter-tabs button:hover{background:#f5f8f6;color:#59816b}
.filter-tabs button.selected{background:#eef4f0;color:#59816b;font-weight:500}
.filter-count{font-size:10px;min-width:16px;padding:0 4px;background:#edf0ee;border-radius:3px;font-variant-numeric:tabular-nums;text-align:center}
.filter-tabs button.selected .filter-count{background:#dfeee5;color:var(--accent)}
.filter-hint{margin:0;padding:9px 20px;font-size:11px;color:#a28a5e;background:#fdfaf3;border-bottom:1px solid #f1ece1}
.task-count{font-size:11px;color:#a1a8b0;white-space:nowrap}
.task-table{border-collapse:collapse;width:100%;font-size:12px;table-layout:fixed}
.task-table th{font-size:11px;color:#a0a8b1;font-weight:400;text-align:left;background:#fcfcfd;height:32px}
.task-table .row-number{width:41px;padding-left:20px}
.task-table th:nth-child(2){width:auto}
.task-table th:nth-child(3){width:95px}
.task-table th:nth-child(4){width:55px}
.task-table .detail-heading{width:39px;font-size:0}
.task-table td{height:55px;border-top:1px solid #f1f3f5;padding-right:5px}
.task-table tr.selected{background:#f3f8f5}
.task-table tr:hover{background:#f8faf9}
.task-table tr.selected td:first-child{box-shadow:inset 3px 0 0 #77aa8d}
.task-number{font-family:"Consolas",monospace;font-size:11px;color:#acb3bb;padding-left:20px}
.account-button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:5px 0;color:#586572;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.45}
.account-button small{color:#a1aab3;font-size:11px;display:block;margin-top:3px}
.account-button small span{padding-right:6px;margin-right:6px;border-right:1px solid #e4e9e6}
.status-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:1.6;padding:2px 6px;border-radius:4px;white-space:nowrap;font-weight:400}
.status-pill:before{content:"";height:4px;width:4px;border-radius:50%;background:currentColor;flex:none}
.status-pill.success{color:#4f9070;background:#eef7f0}
.status-pill.running{color:#aa8647;background:#faf5e9}
.status-pill.queued{color:#9aa4ae;background:#f0f3f5}
.status-pill.error{color:#bc786d;background:#fbf0ed}
.status-pill.stopped{color:#969ba0;background:#f1f2f3}
.status-pill.first-pass{color:#a28246;background:#faf3e4}
.task-status{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.first-pass-detail{display:flex;gap:10px;padding:12px;border:1px solid #eee5d3;background:#fdfaf3;border-radius:6px;margin-bottom:8px;color:#a28246}
.first-pass-detail>.icon{height:17px;width:17px;margin-top:1px}
.first-pass-detail strong{font-size:12px;font-weight:500}
.first-pass-detail p{font-size:11px;color:#a09277;margin:4px 0 0;line-height:1.8}
.duration{font-family:"Consolas",monospace;color:#99a3ac;font-size:12px}
.detail-button{border:0;background:transparent;color:#a3ada7;padding:6px;font-size:11px;display:flex}
.detail-button .icon{height:12px;width:12px}
.queue-footer{min-height:37px;padding:8px 20px;display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);font-size:11px;color:#9ca5ad}
.queue-footer>span:first-child{display:flex;gap:5px;align-items:center}
.selection-dot{width:4px;height:4px;border-radius:50%;background:#93ae9e}
.detail-panel{margin-top:20px}
.detail-panel .panel-heading{min-height:55px}
.detail-identity{display:flex;align-items:center;gap:10px;padding:16px 20px 14px}
.account-avatar{height:31px;width:31px;display:grid;place-items:center;border-radius:8px;background:#f0f3f1;color:#799383;font-size:13px;font-weight:550;flex:none}
.detail-identity>div{min-width:0}
.detail-identity strong{font-size:12px;color:#616d77;font-weight:500;display:block;overflow-wrap:anywhere}
.detail-identity>div>span{color:#a0a8af;font-size:11px;display:block;margin-top:3px}
.demo-label{margin-left:auto;font-size:11px;white-space:nowrap;color:#a4aaa5}
.detail-tabs{display:flex;align-items:center;gap:22px;margin:0 20px;border-bottom:1px solid var(--line)}
.detail-tabs button{position:relative;border:0;background:transparent;padding:0 0 10px;font-size:12px;color:#9aa3ac}
.detail-tabs button.selected{color:#527761;font-weight:550}
.detail-tabs button.selected:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#5a9674}
.detail-tabs button span{font-size:10px;background:#f2f4f5;color:#9fa7b0;margin-left:5px;padding:1px 4px;border-radius:3px}
#resultView{padding:15px 20px 19px}
.result-properties{display:flex;gap:26px;margin-bottom:15px}
.result-properties>div{display:grid;gap:4px;font-size:12px}
.result-properties span{font-size:11px;color:#9da5ae}
.result-properties strong{font-weight:500;color:#68756f}
.result-link-label{font-size:11px;color:#8d9892;margin-bottom:7px;display:flex;align-items:center;justify-content:space-between}
.result-link-label>small{font-size:10px;color:#a6aba8}
.result-link{display:flex;align-items:center;gap:9px;background:#f7f9f8;border:1px solid #e8ede9;padding:8px 10px;border-radius:5px;min-width:0;color:#688572}
.result-link>.icon{height:13px;width:13px}
.result-link code{font:9px/1.8 "Consolas",monospace;overflow-wrap:anywhere;min-width:0;flex:1}
.result-link button{border:0;border-left:1px solid #e0e7e2;padding:0 0 0 9px;display:flex;align-items:center;gap:4px;background:transparent;white-space:nowrap;font-size:11px;color:#769081}
.result-link button .icon{height:12px;width:12px}
.result-note{font-size:11px;color:#a5ada8;margin:9px 0 0}
.state-message{display:flex;gap:10px;align-items:flex-start;padding:10px 0 5px}
.state-message>.icon{width:19px;height:19px;color:#9cae9f}
.state-message strong{font-size:12px;font-weight:500;color:#7c887f;display:block}
.state-message p{margin:5px 0 0;color:#a0a7a2;font-size:12px}
.state-message.error>.icon,.state-message.error strong{color:#b7776b}
.qr-placeholder{display:flex;align-items:center;gap:10px;border:1px dashed #e1e7e3;margin-top:12px;padding:11px;border-radius:5px;color:#849b8c}
.qr-placeholder>.icon{height:31px;width:31px}
.qr-placeholder strong{font-size:12px;font-weight:500}
.qr-placeholder p{font-size:11px;margin:2px 0 0;color:#a2aaa4}
.stage-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px 7px;font-size:11px;color:#8a958e}
.stage-header>span:first-child{color:#64786b;font-weight:500}
.retry-notice{margin:6px 20px 9px;padding:8px 10px;border-radius:5px;background:#faf5e9;color:#a08248;font-size:11px}
.stage-list{list-style:none;padding:0 20px 17px;margin:0}
.stage{display:flex;align-items:center;gap:12px;min-height:46px;position:relative;color:#a2aba5;font-size:12px}
.stage:not(:last-child):after{content:"";position:absolute;left:12px;top:34px;bottom:-10px;width:1px;background:#e8ece9}
.stage.complete:after{background:#c6dfd0}
.stage-mark{position:relative;z-index:1;display:grid;place-items:center;width:25px;height:25px;flex:none;background:#f5f7f6;border:1px solid #e7ece8;border-radius:50%;font-size:11px;font-variant-numeric:tabular-nums}
.stage-mark .icon{height:13px;width:13px}
.stage strong{font-size:12px;font-weight:400}
.stage-state{margin-left:auto;font-size:11px;white-space:nowrap}
.stage.complete{color:var(--accent)}
.stage.complete .stage-mark{background:#edf7f0;border-color:#d3e8db}
.stage.running{color:#ab8544}
.stage.running strong{font-weight:550}
.stage.running .stage-mark{background:#fcf7ed;border-color:#e8d8b8}
.stage.error{color:var(--danger)}
.stage.error .stage-mark{background:#fbf0ed;border-color:#edcec7}
.workspace-footnote{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#b0b7bf;margin-top:15px}
.empty-state{text-align:center;padding:33px 20px;color:#9ca5ae;font-size:12px}
.form-error{font-size:12px;color:var(--danger);margin:10px 0 0}
.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#2c4436;color:#fff;padding:10px 18px;border-radius:7px;font-size:12px;box-shadow:0 6px 22px #20372d22;z-index:20;max-width:calc(100vw - 32px)}

.topbar-content{max-width:1150px;padding:17px 24px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}
#togglePlatformStats .icon{width:13px;height:13px;transform:rotate(90deg);transition:transform .15s}
#togglePlatformStats[aria-expanded=true] .icon{transform:rotate(-90deg)}
.platform-preview{width:520px;max-width:62%;flex:none;background:var(--surface);border:1px solid #e2e8e4;border-radius:9px;padding:11px 14px 12px}
.platform-preview.expanded{width:100%;max-width:none;padding:16px 20px}
.platform-preview.expanded .activity-row .activity-cell{height:17px}
.platform-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.platform-preview-heading .text-button{font-size:12px;font-weight:550;color:#5b7364}
.platform-preview-heading>span{font-size:10px;color:#99a59c;white-space:nowrap}
.activity-demo{font-size:9px;color:#a8b0aa;margin-left:7px}
.activity-overview{display:flex;flex-direction:column;gap:12px}
.activity-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.activity-summary span{display:block;font-size:10px;color:#9ba69e;white-space:nowrap}
.activity-summary strong{display:block;font-size:25px;font-weight:550;letter-spacing:-.6px;line-height:1.4;font-variant-numeric:tabular-nums}
.activity-summary .success strong{color:var(--accent)}
.activity-summary .error strong{color:var(--danger)}
.activity-chart{flex:1;min-width:0}
.activity-grid{display:grid;gap:4px}
.activity-row{display:grid;grid-template-columns:33px repeat(36,minmax(0,1fr));gap:2px;align-items:center}
.activity-row time{font-size:9px;color:#a1aba4;font-variant-numeric:tabular-nums;line-height:1}
.activity-cell{display:block;aspect-ratio:1;border-radius:2px;background:#e2e8e4}
.activity-row .activity-cell{height:9px;aspect-ratio:auto;border-radius:1.5px}
.activity-cell.level-1{background:#dcefe2}
.activity-cell.level-2{background:#a9d4b8}
.activity-cell.level-3{background:#6eae87}
.activity-cell.level-4{background:#367e58}
.activity-row .activity-cell:hover{outline:1px solid #7da78b;outline-offset:2px}
.activity-cell.current{outline:1px solid #91ae9b;outline-offset:1px}
.activity-legend{display:flex;align-items:center;gap:3px;margin-top:7px;color:#a0aaa3;font-size:8px;line-height:1}
.activity-legend .activity-cell{width:7px;height:7px}
.activity-legend>small{font-size:8px;margin-left:auto;white-space:nowrap}
.platform-stats-note{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--line);font-size:11px;color:#8d9d92}
.brand small{font-size:9px;letter-spacing:2px}
.brand-mark{width:34px;height:34px;border-radius:10px}
.channel-selector{margin-bottom:26px}
.channel-selector-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:11px}
.channel-selector-heading h2{font-size:12px;font-weight:500;color:#68736e}
.channel-selector-heading>span{font-size:11px;color:#9ba39e}
.channel-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:13px}
.channel-nav button{display:flex;align-items:center;gap:13px;text-align:left;border:1px solid #e2e7e4;background:#fff;width:100%;padding:15px 18px;border-radius:9px;transition:background .15s,border-color .15s}
.channel-nav button:hover{background:#f8fbf9;border-color:#c8d9ce}
.channel-nav button.selected{background:#f2f8f4;border-color:#93b8a2}
.channel-nav .channel-logo{height:35px;width:35px;border-radius:10px;font-size:20px}
.channel-copy{min-width:0;flex:1}
.channel-copy strong{display:flex;align-items:center;gap:13px;font-size:15px;font-weight:650}
.channel-copy strong>span{color:#88968b;font-size:11px;font-weight:400}
.channel-selection{height:21px;width:21px;border:1px solid #e2e8e4;border-radius:50%;display:grid;place-items:center;flex:none;background:#fff}
.channel-selection .icon{height:12px;width:12px;color:var(--accent)}
.channel-nav button.selected .channel-selection{background:#e5f1e9;border-color:#c9dece}
.proxy-config{margin-top:22px}
.proxy-region{font-size:11px;font-weight:400;color:#88978d}
.proxy-description{font-size:11px;color:#8f9b94;margin:0 0 10px}
.proxy-config textarea{min-height:110px;font-size:11px}
.proxy-config textarea::placeholder{font-size:11px}
.proxy-config+.advanced-options{margin-top:15px;border-top:1px solid var(--line)}
.append-hint{font-size:11px;color:#91a096;margin:12px 0 0;line-height:1.7}
.concurrency-label{font-size:10px;white-space:nowrap;color:#7c9183;padding:3px 7px;background:#f0f6f2;border-radius:4px}
.form-footer .enqueue-notice{color:var(--accent);font-size:11px;justify-content:flex-start;text-align:left}
.task-table-wrap{max-height:400px;overflow-y:auto}
.task-table th{position:sticky;top:0;z-index:1}
.demo-notice{gap:6px;flex-wrap:wrap}
.demo-notice>span{flex:1;min-width:60px;white-space:nowrap}
.demo-actions{display:flex;gap:13px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.demo-notice .text-button{font-size:11px}
.queue-toolbar{flex-wrap:wrap}
.queue-actions{flex-wrap:wrap;justify-content:flex-end}

@media(max-width:1000px){
  .workspace-grid{grid-template-columns:355px minmax(0,1fr);gap:18px}
  .panel-heading{padding:0 17px}
  .config-content{padding:20px 17px 0}
  .form-footer{padding-left:17px;padding-right:17px}
  .queue-metrics{padding-left:10px;padding-right:10px}
  .metric{padding:8px 6px}
  .task-table th:nth-child(3){width:84px}
  .task-table th:nth-child(4){width:47px}
  .task-table .row-number{width:30px;padding-left:12px}
  .task-number{padding-left:12px}
  .task-table .detail-heading{width:28px}
  .account-button{font-size:11px}
  .status-pill{font-size:10px;padding:2px 4px}
  .queue-footer>span:last-child{display:none}
}
@media(max-width:820px){
  .page-heading{display:block}
  .platform-preview{width:100%;max-width:none;margin-top:15px}
  .workspace-grid{grid-template-columns:minmax(0,1fr)}
  .config-content{padding:20px}
  .form-footer{padding:5px 20px 18px}
  .task-table th:nth-child(3){width:105px}
  .task-table th:nth-child(4){width:65px}
  .task-table .row-number{width:45px;padding-left:20px}
  .task-number{padding-left:20px}
  .task-table .detail-heading{width:40px}
  .account-button{font-size:12px}
  .status-pill{font-size:11px}
}
@media(max-width:520px){
  .topbar-content{padding:15px 18px}
  .topbar-actions{gap:10px}
  .success-sound-toggle{font-size:10px;gap:6px}
  .brand{gap:9px}
  .brand strong{font-size:18px}
  .brand-mark{height:31px;width:31px}
  .brand small{font-size:8px}
  .preview-tag{font-size:10px;padding:3px 7px}
  main{padding:25px 18px}
  .page-heading{display:block;margin-bottom:20px}
  h1{font-size:23px;letter-spacing:-.6px;margin:0}
  .platform-preview{width:100%;max-width:none;margin-top:15px;padding:10px 12px 11px}
  .platform-preview-heading{margin-bottom:7px}
  .platform-preview-heading .text-button{font-size:11px}
  .platform-preview-heading>span{font-size:9px}
  .activity-overview{display:block}
  .activity-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;margin-bottom:10px}
  .activity-summary strong{font-size:24px}
  .activity-row{grid-template-columns:29px repeat(36,minmax(0,1fr));gap:1px}
  .activity-row time{font-size:8px}
  .channel-selector{margin-bottom:20px}
  .channel-selector-heading>span{display:none}
  .channel-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .channel-nav button{padding:12px 10px;gap:8px}
  .channel-nav .channel-logo{height:28px;width:28px;font-size:17px;border-radius:8px}
  .channel-copy strong{display:block;font-size:13px}
  .channel-copy strong>span{font-size:10px;display:block;margin-top:2px}
  .channel-selection{height:16px;width:16px}
  .channel-selection .icon{height:10px;width:10px}
  .panel-heading{padding:0 16px;min-height:55px}
  .config-content{padding:18px 16px 0}
  .form-footer{padding:6px 16px 16px}
  .form-footer>.primary{height:42px}
  .form-footer p{font-size:10px}
  .proxy-config .field-caption{font-size:10px}
  .workspace-grid{gap:18px}
  .task-table th:nth-child(3){width:76px}
  .task-table th:nth-child(4){width:47px}
  .task-table .row-number{width:28px;padding-left:12px}
  .task-number{padding-left:12px}
  .task-table .detail-heading{width:26px}
  .task-table td{height:57px}
  .status-pill{font-size:10px}
  .account-button{min-height:40px}
  .detail-button{min-height:38px}
  .queue-metrics,.queue-metrics.with-first-pass{padding:12px 10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .metric{padding:8px 7px}
  .metric-value{font-size:24px}
  .queue-toolbar{padding-left:15px;padding-right:15px}
  .filter-tabs button{font-size:11px;padding:5px 8px}
  .filter-hint{padding-left:16px;padding-right:16px;font-size:10px}
  .demo-notice{padding-left:16px;padding-right:16px;font-size:10px}
  .demo-actions{gap:10px}
  .demo-actions .text-button{font-size:10px}
  .stage-header{padding-left:16px;padding-right:16px;font-size:10px}
  .stage-list{padding-left:16px;padding-right:16px}
  .retry-notice{margin-left:16px;margin-right:16px}
  .batch-progress{margin-left:16px;margin-right:16px}
  .queue-footer{padding-left:15px;padding-right:15px;font-size:10px}
  .detail-identity{padding-left:16px;padding-right:16px}
  .detail-tabs{margin-left:16px;margin-right:16px}
  #resultView{padding-left:16px;padding-right:16px}
  .result-properties{gap:22px}
  .result-link code{font-size:10px}
  .demo-label{font-size:10px}
  .inline-field select{width:165px;font-size:13px}
  input:not([type=checkbox]):not([type=radio]):not([type=file]),select{font-size:16px}
  textarea{font-size:13px}
  textarea::placeholder{font-size:12px}
  .text-button{min-height:28px}
  .workspace-footnote{font-size:10px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}

.preview-tag #connectionStatus { width: auto; height: auto; background: none; border-radius: 0; white-space: nowrap; }
.metric-label { white-space: nowrap; }
.team-field { display: flex; align-items: center; gap: 8px; }
.team-field select { flex: 1; min-width: 0; }
.payment-qr { display: flex; align-items: center; gap: 18px; padding: 22px 0; }
.payment-qr img { width: 132px; height: 132px; object-fit: contain; }
.payment-qr p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.payment-state { padding: 16px; margin-top: 16px; background: #f4f7f5; border: 1px solid #e4ebe6; border-radius: 12px; }
.payment-state p { font-size: 12px; line-height: 1.7; }
.payment-state small { display: block; color: var(--muted); margin: 8px 0; overflow-wrap: anywhere; }
.payment-state .text-button { margin: 10px 12px 0 0; }
.merge-dialog { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid #e4ebe6; border-radius: 18px; }
.merge-dialog::backdrop { background: #172d2140; }
.merge-dialog p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.merge-dialog textarea { width: 100%; margin: 12px 0; }
.merge-dialog .panel-heading { padding: 0; margin-bottom: 14px; }
