:root { color-scheme: dark; --bg:#07111f; --panel:#101e31; --panel2:#0b192b; --line:#29415c; --text:#e7f0fb; --muted:#8da6c0; --accent:#62dfbd; --blue:#70b7ff; --danger:#ff7186; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 85% 0,#12384e 0,transparent 32rem),linear-gradient(135deg,#06101d,#0b1728 58%,#081321); color:var(--text); font:15px/1.55 "Microsoft YaHei","PingFang SC",system-ui,sans-serif; }
.shell { width:min(1180px,calc(100% - 32px)); margin:0 auto; padding:58px 0 70px; }
.hero { margin:0 0 22px; }
.eyebrow { color:var(--accent); font-size:12px; font-weight:800; letter-spacing:.16em; }
h1 { margin:8px 0 6px; font-size:clamp(30px,5vw,50px); line-height:1.08; }
.hero p { max-width:900px; margin:0; color:var(--muted); }
.card { border:1px solid var(--line); border-radius:22px; background:rgba(16,30,49,.94); box-shadow:0 22px 70px #0005; }
.batch-card { padding:22px; }
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:18px; }
.steps span { padding:11px 12px; text-align:center; border:1px solid var(--line); border-radius:13px; color:var(--muted); background:#0b192b; font-weight:800; }
.steps span.active { border-color:var(--accent); color:var(--accent); background:#10283a; }
.steps span.done { border-color:#2e7769; color:var(--accent); }
.setup-grid { display:grid; grid-template-columns:1fr 1.08fr; gap:14px; }
.batch-section { padding:18px; border:1px solid #223a55; border-radius:16px; background:rgba(12,27,45,.72); }
.section-title { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:15px; }
.section-title b { font-size:17px; }
.section-title small { display:block; margin-top:4px; color:var(--muted); }
.tag { display:inline-flex; align-items:center; border:1px solid #2c796d; border-radius:999px; padding:4px 10px; color:var(--accent); font-size:11px; white-space:nowrap; }
.card-fields-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:10px; }
.card-field span { display:block; margin-bottom:6px; color:var(--muted); }
.card-field-box { min-height:48px; padding:14px; border:1px solid #2e806f; border-radius:11px; background:#091728; }
.billing-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin:16px 0 8px; padding-top:13px; border-top:1px solid #223a55; }
.billing-head small { color:var(--muted); font-size:11px; text-align:right; }
.billing-auto-status { padding:10px 12px; border:1px dashed #35516d; border-radius:10px; color:var(--muted); background:#091728; font-size:12px; }
.billing-auto-status.is-test { border-color:#2c796d; color:var(--accent); }
.billing-auto-status.is-live { border-color:#9b7440; color:#f4ca72; }
.billing-grid[hidden] { display:none; }
.billing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.billing-field { display:block; min-width:0; }
.billing-field span { display:block; margin-bottom:5px; color:var(--muted); font-size:12px; }
.billing-field input { width:100%; min-width:0; }
.billing-field.billing-wide { grid-column:span 2; }
.inline-state { min-height:25px; margin:11px 0 8px; color:var(--muted); }
.inline-state.ok { color:var(--accent); }
.inline-state.error { color:var(--danger); }
.inline-state.warn { color:#f4ca72; }
.at-title-actions { display:flex; align-items:center; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.at-list { display:grid; gap:8px; max-height:240px; overflow:auto; }
.at-row { display:grid; grid-template-columns:54px 1fr auto; gap:9px; align-items:center; padding:9px 10px; border:1px solid #2b806f; border-radius:10px; background:#0a192a; }
.at-row__label { color:var(--accent); font:12px ui-monospace,Consolas,monospace; }
.at-entry { width:100%; min-width:0; border:1px solid #263f5b; border-radius:8px; padding:9px 10px; background:#071321; color:var(--text); font:12px ui-monospace,Consolas,monospace; }
.at-entry:focus, .proxy-pool-input:focus, input:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px #70b7ff22; }
.at-row__remove { border:0; border-radius:8px; padding:7px 9px; color:#ff9aaa; background:#3a1e2c; cursor:pointer; }
.proxy-pool-section { margin-top:14px; }
.dual-proxy-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.proxy-pool-card { padding:13px; border:1px solid #263f5b; border-radius:13px; background:#091728; }
.proxy-pool-head { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.proxy-pool-card small, .proxy-pool-note { color:var(--muted); }
.proxy-pool-card small { display:block; margin:5px 0 9px; }
.proxy-pool-input { width:100%; min-height:120px; resize:vertical; border:1px solid #223b58; border-radius:11px; padding:12px; background:#071321; color:var(--text); font:12px/1.5 ui-monospace,Consolas,monospace; }
.proxy-pool-note { margin-top:9px; font-size:12px; }
.action-row { display:flex; align-items:center; gap:10px; margin-top:16px; padding:12px; border:1px solid #253d59; border-radius:15px; background:#0c1b2d; }
.concurrency-control { display:flex; align-items:center; gap:8px; margin-right:auto; color:var(--muted); }
input { border:1px solid #2a4665; border-radius:9px; padding:9px 10px; background:#081626; color:var(--text); }
.concurrency-control input { width:66px; }
button { border:0; border-radius:10px; padding:11px 16px; color:#04101b; background:linear-gradient(100deg,#5bdcbb,#65b1ff); cursor:pointer; font-weight:900; white-space:nowrap; }
button.secondary { color:var(--text); background:#233a57; }
button.small { padding:7px 10px; font-size:12px; }
button:disabled { opacity:.42; cursor:not-allowed; }
.progress-wrap { margin:15px 0 16px; }
.progress-meta { display:flex; justify-content:space-between; color:var(--muted); font-size:13px; margin-bottom:6px; }
.progress-track { height:8px; overflow:hidden; border-radius:99px; background:#0a1422; }
.progress-track i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#61dfbd,#70b7ff); transition:width .25s ease; }
.result-section { min-height:190px; }
.mini-actions { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.task-rows { display:grid; gap:8px; }
.task-row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; padding:12px 13px; border:1px solid #29435f; border-radius:11px; background:#091728; }
.task-row.is-error { border-color:#814055; }
.task-row__account { font-weight:800; }
.task-row__stage { margin-top:4px; color:var(--muted); font-size:13px; }
.task-row__link { margin-top:5px; color:var(--accent); word-break:break-all; font:12px ui-monospace,Consolas,monospace; }
.batch-summary { margin-top:14px; padding:14px 16px; border:1px solid #814055; border-radius:12px; background:#091728; color:#ff7186; font-weight:800; }
.batch-summary.is-success { border-color:#2b806f; color:#61dfbd; }
.batch-summary.is-stopped { border-color:#806b2b; color:#ffc966; }
@media(max-width:820px){ .setup-grid,.dual-proxy-grid { grid-template-columns:1fr; } .action-row { flex-wrap:wrap; } .concurrency-control { width:100%; margin-right:0; } }
@media(max-width:560px){ .shell { width:min(100% - 16px,1180px); padding-top:25px; } .batch-card { padding:12px; } .steps { grid-template-columns:repeat(2,1fr); } .card-fields-grid,.billing-grid { grid-template-columns:1fr; } .billing-field.billing-wide { grid-column:span 1; } .at-row { grid-template-columns:45px 1fr auto; } }

/* account import/list workflow */
.account-import-input { width:100%; min-height:158px; resize:vertical; border:1px solid #2b806f; border-radius:12px; padding:13px; background:#071321; color:var(--text); font:12px/1.55 ui-monospace,Consolas,monospace; }
.account-import-input:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px #70b7ff22; }
.import-actions { display:flex; gap:9px; margin-top:11px; flex-wrap:wrap; }
.account-list-actions { align-items:center; }
.export-csv-button { border:1px solid #d7dcd5; border-radius:12px; background:#f7f8f4; color:#52605a; box-shadow:none; }
.export-csv-button:hover { background:#fff; }
.select-all-control { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-weight:700; }
.select-all-control input,.account-select { width:17px; height:17px; accent-color:var(--accent); }
.account-empty { padding:32px 14px; text-align:center; color:var(--muted); border:1px dashed #29435f; border-radius:12px; }
.account-row { grid-template-columns:auto minmax(0,1fr) auto; align-items:center; }
.account-row__summary { display:grid; grid-template-columns:minmax(360px,32%) minmax(300px,1fr) auto; gap:14px; align-items:center; min-width:0; }
.task-row__account { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-row__current-step { min-width:0; margin:0; overflow:hidden; color:#91abc5; text-overflow:ellipsis; white-space:nowrap; }
.account-row__current-step.is-error { color:var(--danger); }
button.task-row__link { display:inline; margin:0; padding:0; border:0; border-radius:0; background:none; color:var(--accent); font:12px ui-monospace,Consolas,monospace; white-space:nowrap; }
button.task-row__link:hover { text-decoration:underline; }
.account-row-actions { display:flex; align-items:center; gap:9px; }
.account-row-actions .at-row__remove { padding:8px 11px; }
@media(max-width:680px){ .account-row { grid-template-columns:auto 1fr; } .account-row__summary { grid-template-columns:1fr; gap:3px; } .account-row-actions { grid-column:2; justify-content:flex-start; } }
.task-row__proxy { margin-top:5px; color:#7fa4c5; font:11px ui-monospace,Consolas,monospace; word-break:break-all; }
.task-row__billing { margin-top:6px; color:#f4ca72; font:11px ui-monospace,Consolas,monospace; word-break:break-word; }
