:root {
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-hover: #f4f7fb;
  --ink: #142033;
  --ink-2: #344258;
  --muted: #6f7d91;
  --muted-2: #9aa6b7;
  --line: #e8edf4;
  --line-strong: #dce3ec;
  --accent: #3568ed;
  --accent-hover: #2858d8;
  --accent-soft: #edf3ff;
  --accent-border: #d5e2ff;
  --cyan: #118dab;
  --cyan-soft: #e9f8fb;
  --green: #168866;
  --green-soft: #eaf7f2;
  --amber: #ad7014;
  --amber-soft: #fff6e6;
  --red: #ca4758;
  --red-soft: #fff0f2;
  --shadow-xs: 0 1px 2px rgb(17 31 54 / 4%);
  --shadow-sm: 0 4px 14px rgb(25 43 72 / 6%);
  --shadow-md: 0 12px 34px rgb(25 43 72 / 8%);
  --shadow-lg: 0 24px 80px rgb(20 34 56 / 16%);
  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 18px;
  --sidebar-width: 236px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100%; margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; transform: none !important; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgb(53 104 237 / 16%); outline-offset: 2px; }
svg { display: block; }
[hidden] { display: none !important; }

.shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 22px 14px 16px; border-right: 1px solid var(--line); background: rgb(255 255 255 / 94%); box-shadow: 8px 0 32px rgb(24 39 65 / 3%); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 8px; }
.brand-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #4277f5, #2759df); color: #fff; box-shadow: 0 9px 22px rgb(53 104 237 / 24%); }
.brand-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.brand strong { display: block; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.15px; }
.brand small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 12px; letter-spacing: .4px; }
.sidebar-close { display: none; width: 34px; height: 34px; margin-left: auto; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.sidebar-close:hover { background: var(--surface-hover); color: var(--ink); }
.sidebar-close svg, .menu-btn svg { width: 19px; height: 19px; margin: auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.workspace-switch { display: flex; align-items: center; gap: 11px; margin: 22px 5px 24px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-subtle); }
.workspace-signal { display: flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 8px; border-radius: 9px; background: var(--accent-soft); }
.workspace-signal i { display: block; width: 3px; border-radius: 3px; background: var(--accent); }
.workspace-signal i:nth-child(1) { height: 6px; opacity: .55; }
.workspace-signal i:nth-child(2) { height: 10px; opacity: .75; }
.workspace-signal i:nth-child(3) { height: 14px; }
.workspace-switch b { display: block; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.workspace-switch small { display: block; overflow: hidden; max-width: 142px; margin-top: 3px; color: var(--muted); text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.nav-label { padding: 0 12px 8px; color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: .9px; }
.secondary-label { margin-top: 20px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { position: relative; display: flex; min-height: 43px; align-items: center; gap: 11px; border: 0; border-radius: 11px; padding: 0 11px; background: transparent; color: #627086; text-align: left; font-size: 14px; transition: color .16s ease, background .16s ease, transform .16s ease; }
.nav-item:hover { background: var(--surface-hover); color: var(--ink); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.nav-item.active::before { position: absolute; left: -14px; width: 3px; height: 23px; border-radius: 0 4px 4px 0; background: var(--accent); content: ""; }
.nav-icon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; }
.nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge { min-width: 20px; height: 19px; margin-left: auto; border: 1px solid var(--accent-border); border-radius: 99px; padding: 0 6px; background: #fff; color: var(--accent); text-align: center; font-size: 12px; font-weight: 700; line-height: 17px; }
.nav-badge.live { border-color: #caece4; background: var(--green-soft); color: var(--green); }
.nav-badge.muted-badge { border-color: var(--line); color: var(--muted); }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 15px 11px 3px; border-top: 1px solid var(--line); }
.sidebar-footer b { display: block; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.sidebar-footer small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 12px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgb(173 112 20 / 11%); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgb(22 136 102 / 11%); }
.status-dot.error { background: var(--red); box-shadow: 0 0 0 4px rgb(202 71 88 / 11%); }
.sidebar-scrim { display: none; }

.main { min-width: 0; flex: 1; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 3.4vw, 48px); border-bottom: 1px solid rgb(232 237 244 / 88%); background: rgb(255 255 255 / 86%); backdrop-filter: blur(18px); }
.topbar-heading { display: flex; min-width: 0; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 12px; }
.breadcrumbs i { color: #c8d0dc; font-style: normal; }
.breadcrumbs b { color: var(--ink); font-size: 14px; font-weight: 650; }
.top-date { margin-top: 4px; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .ghost, .primary { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; padding: 0 13px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease; }
.icon-btn svg, .ghost svg, .primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.icon-btn { width: 37px; padding: 0; border-color: var(--line); background: var(--surface); color: var(--muted); }
.ghost { border-color: var(--line-strong); background: var(--surface); }
.icon-btn:hover, .ghost:hover { border-color: #cbd6e5; background: var(--surface-hover); color: var(--accent); box-shadow: var(--shadow-xs); }
.primary { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 7px 16px rgb(53 104 237 / 18%); }
.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); box-shadow: 0 9px 21px rgb(53 104 237 / 24%); transform: translateY(-1px); }
.text-btn { border: 0; padding: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; }
.text-btn:hover { color: var(--accent-hover); }
.text-btn.danger { color: var(--red); }
.user-menu { display: flex; align-items: center; gap: 8px; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); }
.user-avatar, .account-avatar { display: grid; place-items: center; font-weight: 700; }
.user-avatar { width: 31px; height: 31px; border-radius: 9px; background: #e9eef8; color: #53657f; font-size: 13px; }
.user-name { color: var(--ink-2); font-size: 13px; }
.logout-btn { margin-left: 2px; color: var(--muted); }

.content { width: 100%; max-width: 1560px; margin: 0 auto; padding: 30px clamp(24px, 3.4vw, 48px) 64px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(24px, 2.4vw, 30px); font-weight: 720; letter-spacing: -.65px; }
.page-heading p { max-width: 680px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.stat-card { position: relative; min-height: 128px; overflow: hidden; padding: 18px 19px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.stat-card::after { position: absolute; right: -20px; bottom: -48px; width: 104px; height: 104px; border-radius: 50%; background: rgb(53 104 237 / 4%); content: ""; }
.stat-card.warning { border-color: #f0dfbd; background: linear-gradient(150deg, #fff 50%, #fffaf1); }
.stat-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.stat-icon { position: relative; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: var(--accent-soft); color: transparent; font-size: 0; }
.stat-icon::before { width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: 3px; content: ""; transform: rotate(45deg); }
.stat-card.warning .stat-icon { background: var(--amber-soft); }
.stat-card.warning .stat-icon::before { width: 2px; height: 10px; border: 0; border-radius: 2px; background: var(--amber); box-shadow: 0 7px 0 -0.2px var(--amber); transform: none; }
.stat-value { position: relative; z-index: 1; margin: 13px 0 5px; color: var(--ink); font-size: 32px; font-weight: 730; letter-spacing: -1px; }
.stat-foot { position: relative; z-index: 1; color: var(--muted-2); font-size: 12px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr); gap: 14px; margin-top: 14px; }
.overview-layout { align-items: start; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-spaced { margin-top: 14px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-title { margin: 0; color: var(--ink); font-size: 15px; font-weight: 680; letter-spacing: -.1px; }
.panel-sub { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { height: 35px; padding: 0 9px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
td { height: 58px; padding: 9px; border-bottom: 1px solid #eef2f6; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: #f9fbfd; }
tbody tr:last-child td { border-bottom: 0; }
.account-cell { display: flex; min-width: 190px; align-items: center; gap: 10px; }
.account-avatar { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #dce6f7; border-radius: 10px; background: linear-gradient(145deg, #f2f6ff, #e4ecfb); color: #48658f; font-size: 13px; }
.account-name b { display: block; overflow: hidden; max-width: 220px; color: var(--ink); text-overflow: ellipsis; font-size: 13px; font-weight: 650; }
.account-name small { display: block; overflow: hidden; max-width: 220px; margin-top: 3px; color: var(--muted-2); text-overflow: ellipsis; font-size: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag-row i { border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; font-style: normal; }
.muted { color: var(--muted) !important; }
.mono { color: #58709c; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.content-preview { display: block; overflow: hidden; max-width: 260px; text-overflow: ellipsis; }
.row-actions { display: flex; gap: 8px; }
.account-action { display: inline-flex; min-width: 32px; min-height: 30px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; background: var(--surface); color: var(--muted); font-size: 12px; }
.account-action:hover { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.pill { display: inline-flex; min-height: 23px; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; background: #f4f6f9; color: #69768a; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { width: 5px; height: 5px; border-radius: 50%; background: #97a2b2; content: ""; }
.pill.online { border-color: #cde8df; background: var(--green-soft); color: var(--green); }
.pill.online::before { background: var(--green); box-shadow: 0 0 0 3px rgb(22 136 102 / 9%); }
.pill.warning { border-color: #f0ddba; background: var(--amber-soft); color: var(--amber); }
.pill.warning::before { background: var(--amber); }
.pill.pending { border-color: #d9e3f3; background: #f1f5fb; color: #64748b; }
.pill.pending::before { background: #8090a8; }
.pill.working { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.pill.working::before { background: var(--accent); animation: pulse 1.5s ease infinite; }
.pill.error { border-color: #f0cbd0; background: var(--red-soft); color: var(--red); }
.pill.error::before { background: var(--red); }
.pill.offline { border-color: var(--line); background: #f3f5f7; color: #778396; }
.pill.offline::before { background: #929dad; }

.activity-list { display: grid; gap: 0; }
.activity { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 9px; padding: 0 0 18px; }
.activity:last-child { padding-bottom: 0; }
.activity::before { position: absolute; top: 11px; bottom: 0; left: 4px; width: 1px; background: var(--line); content: ""; }
.activity:last-child::before { display: none; }
.activity-marker { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 2px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.activity.green .activity-marker { border-color: var(--green); }
.activity.amber .activity-marker { border-color: var(--amber); }
.activity.red .activity-marker { border-color: var(--red); }
.activity b { display: block; color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.45; }
.activity small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.activity time { color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.quick { position: relative; min-height: 76px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: var(--surface-subtle); color: var(--ink-2); text-align: left; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.quick::after { position: absolute; top: 13px; right: 13px; color: #b4bfce; font-size: 14px; content: "›"; }
.quick:hover { border-color: var(--accent-border); background: var(--accent-soft); box-shadow: var(--shadow-xs); transform: translateY(-1px); }
.quick strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.quick span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.filter-row { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.search-box { position: relative; flex: 1; min-width: 170px; }
.status-tabs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); }
.status-tab { min-height: 31px; border: 0; border-radius: 8px; padding: 0 11px; background: transparent; color: var(--muted); font-size: 12px; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.status-tab:hover { color: var(--accent); }
.status-tab.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-xs); font-weight: 650; }
.status-select { display: none; }
.search-box input, .field input, .field select, .field textarea, .filter { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: var(--surface); color: var(--ink); font-size: 13px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.search-box input { height: 37px; padding: 0 13px; background: var(--surface-subtle); }
.filter { width: auto; height: 37px; padding: 0 31px 0 11px; color: var(--ink-2); }
.search-box input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #aab4c2; }
.search-box input:focus, .field input:focus, .field select:focus, .field textarea:focus, .filter:focus { border-color: #9db9ff; background: var(--surface); box-shadow: 0 0 0 4px rgb(53 104 237 / 8%); }
.status-panel { display: grid; min-height: 170px; place-items: center; align-content: center; gap: 8px; border: 1px dashed #d6dee8; border-radius: 13px; padding: 28px; background: var(--surface-subtle); text-align: center; }
.status-panel strong { color: var(--ink-2); font-size: 14px; font-weight: 650; }
.status-panel p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.status-panel.error { border-color: #edcbd0; background: #fffafb; }
.status-symbol { position: relative; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--accent-soft); color: transparent; font-size: 0; }
.status-symbol::after { width: 8px; height: 8px; border: 2px solid #7897d8; border-radius: 50%; content: ""; }
.status-panel.error .status-symbol { background: var(--red-soft); }
.status-panel.error .status-symbol::after { width: 2px; height: 10px; border: 0; border-radius: 2px; background: var(--red); box-shadow: 0 7px 0 -0.2px var(--red); }
.status-symbol:has(.spinner)::after { display: none; }
.spinner { width: 16px; height: 16px; border: 2px solid rgb(53 104 237 / 18%); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
.inline-alert { margin-bottom: 14px; border: 1px solid; border-radius: 11px; padding: 11px 13px; font-size: 12px; line-height: 1.6; }
.inline-alert.warning { border-color: #efdcba; background: var(--amber-soft); color: #936117; }

/* 账号池 */
.account-pool-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 610px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.pool-sidebar { padding: 17px 12px; border-right: 1px solid var(--line); background: #fafbfd; }
.pool-sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 7px 12px; }
.pool-sidebar-header strong { color: var(--ink-2); font-size: 13px; }
.pool-sidebar-header span { color: var(--muted-2); font-size: 12px; }
.pool-group-list { display: grid; gap: 3px; }
.pool-group-item { display: flex; width: 100%; min-height: 38px; align-items: center; gap: 8px; border: 0; border-radius: 9px; padding: 0 9px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; }
.pool-group-item::before { width: 7px; height: 7px; flex: 0 0 7px; border: 1.5px solid #a5b1c1; border-radius: 2px; content: ""; }
.pool-group-item span:last-child { margin-left: auto; color: var(--muted-2); }
.pool-group-item:hover { background: #f2f5f9; color: var(--ink-2); }
.pool-group-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.pool-group-item.active::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-soft); }
.pool-main { min-width: 0; padding: 19px; container-type: inline-size; }
.pool-health-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.pool-health-strip > div { padding: 12px 14px; background: var(--surface-subtle); }
.pool-health-strip span { display: block; color: var(--muted); font-size: 12px; }
.pool-health-strip strong { display: block; margin-top: 5px; color: var(--ink); font-size: 18px; font-weight: 700; }
.account-pool-list { display: grid; gap: 7px; }
.pool-account-row { display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(110px, .7fr) minmax(110px, .7fr) minmax(100px, .6fr) auto; align-items: center; gap: 12px; min-height: 64px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.pool-account-row:hover { border-color: #d4deeb; box-shadow: var(--shadow-xs); transform: translateY(-1px); }
.health-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.health-indicator::before { width: 6px; height: 6px; border-radius: 50%; background: #98a4b4; content: ""; }
.health-indicator.online::before { background: var(--green); box-shadow: 0 0 0 3px rgb(22 136 102 / 9%); }
.health-indicator.warning::before { background: var(--amber); }
.health-indicator.error::before { background: var(--red); }

/* 当前账号池数据结构 */
.pool-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pool-summary > div { position: relative; min-height: 82px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); box-shadow: var(--shadow-xs); }
.pool-summary > div::after { position: absolute; right: -18px; bottom: -34px; width: 72px; height: 72px; border-radius: 50%; background: rgb(53 104 237 / 4%); content: ""; }
.pool-summary > div.has-warning { border-color: #efddba; background: linear-gradient(145deg, #fff, #fffaf2); }
.pool-summary strong { position: relative; z-index: 1; display: block; color: var(--ink); font-size: 24px; font-weight: 720; letter-spacing: -.5px; }
.pool-summary span { position: relative; z-index: 1; display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.account-pool-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 12px; }
.pool-groups { position: sticky; top: 86px; padding: 14px 10px; }
.pool-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 7px 11px; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.pool-section-title b { color: var(--muted-2); font-size: 12px; }
.group-filter-row { position: relative; display: flex; align-items: center; }
.group-filter { display: flex; width: 100%; min-height: 37px; align-items: center; gap: 8px; border: 0; border-radius: 9px; padding: 0 9px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; transition: background .15s ease, color .15s ease; }
.group-filter::before { width: 7px; height: 7px; flex: 0 0 7px; border: 1.5px solid #a7b1c0; border-radius: 2px; content: ""; }
.group-filter span { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
.group-filter b { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.group-filter:hover { background: var(--surface-hover); color: var(--ink-2); }
.group-filter.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.group-filter.active::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-soft); }
.group-filter.active b { color: var(--accent); }
.group-filter-row .group-filter { padding-right: 31px; }
.group-menu { position: absolute; right: 5px; display: grid; width: 25px; height: 25px; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted-2); font-size: 12px; letter-spacing: -1px; }
.group-menu:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.group-divider { height: 1px; margin: 8px 7px; background: var(--line); }
.group-empty { margin: 7px; border: 1px dashed var(--line-strong); border-radius: 9px; padding: 10px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.pool-main.panel { padding: 16px; }
.pool-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.pool-toolbar .search-box { flex: 1; }
.pool-alert { display: none; align-items: flex-start; gap: 10px; margin-bottom: 12px; border: 1px solid #efddba; border-radius: 11px; padding: 10px 12px; background: var(--amber-soft); }
.pool-alert.visible { display: flex; }
.pool-alert-icon { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 6px; background: #f5dfb8; color: var(--amber); font-size: 13px; font-weight: 800; }
.pool-alert strong { display: block; color: #805817; font-size: 12px; }
.pool-alert small { display: block; margin-top: 3px; color: #9c7330; font-size: 12px; line-height: 1.5; }
.pool-account { display: grid; grid-template-columns: minmax(210px, 1.15fr) minmax(130px, .75fr) minmax(200px, 1fr) minmax(175px, .9fr) auto; align-items: center; gap: 14px; min-height: 92px; border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.pool-account:hover { border-color: #d3deeb; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pool-account.needs-attention { border-color: #eedfca; background: linear-gradient(105deg, #fff 72%, #fffaf2); }
.pool-account-main { display: flex; min-width: 0; align-items: center; gap: 10px; }
.account-avatar.large { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
.pool-account-name { min-width: 0; }
.pool-account-name > div { display: flex; min-width: 0; align-items: center; gap: 7px; }
.pool-account-name h3 { overflow: hidden; margin: 0; color: var(--ink); text-overflow: ellipsis; font-size: 13px; font-weight: 650; white-space: nowrap; }
.pool-account-name p { overflow: hidden; margin: 4px 0 0; color: var(--muted-2); text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.pool-tags { display: flex; overflow: hidden; gap: 4px; margin-top: 6px; }
.pool-tags span { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; }
.pool-tags .group-chip { border-color: var(--accent-border); background: var(--accent-soft); color: #526fae; }
.pool-health { display: grid; gap: 4px; }
.pool-health > span { color: var(--muted-2); font-size: 11px; }
.pool-health strong { color: var(--ink-2); font-size: 12px; font-weight: 650; }
.pool-health strong.online { color: var(--green); }
.pool-health strong.warning { color: var(--amber); }
.pool-health strong.error { color: var(--red); }
.pool-health small { overflow: hidden; max-width: 150px; color: var(--muted); text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.pool-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pool-numbers div { min-width: 0; border-left: 1px solid var(--line); padding-left: 9px; }
.pool-numbers strong { display: block; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; font-size: 13px; font-weight: 650; white-space: nowrap; }
.pool-numbers span { display: block; margin-top: 4px; color: var(--muted-2); font-size: 11px; }
.pool-issue { display: flex; min-width: 0; align-items: flex-start; gap: 8px; }
.pool-issue > span { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 6px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 800; }
.pool-issue > span.ok { background: var(--green-soft); color: var(--green); }
.pool-issue strong { display: block; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.pool-issue small { display: block; overflow: hidden; max-width: 170px; margin-top: 3px; color: var(--muted); text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.account-detail-button { min-width: 66px; font-size: 12px; white-space: nowrap; }

@container (max-width: 780px) {
  .pool-account { grid-template-columns: minmax(0, 1fr) minmax(128px, .58fr) auto; gap: 12px; }
  .pool-account .pool-numbers, .pool-account .pool-issue { display: none; }
}

@container (max-width: 560px) {
  .pool-account { grid-template-columns: minmax(0, 1fr) auto; }
  .pool-account .pool-health { display: none; }
}

.group-choice-list { display: grid; max-height: 230px; overflow: auto; gap: 6px; }
.group-choice { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; background: var(--surface-subtle); color: var(--ink-2); font-size: 12px; cursor: pointer; }
.group-choice:has(input:checked) { border-color: #aec4f5; background: var(--accent-soft); }
.group-choice input { accent-color: var(--accent); }

/* 发送中心 */
.dispatch-list { display: grid; gap: 10px; }
.dispatch-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease; }
.dispatch-card:hover { border-color: #d6dfeb; box-shadow: var(--shadow-xs); }
.dispatch-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dispatch-card-title { min-width: 0; }
.dispatch-card-title strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.dispatch-card-title small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.dispatch-progress { height: 6px; overflow: hidden; margin: 14px 0 10px; border-radius: 99px; background: #edf1f6; }
.dispatch-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4b7cf0, #2d62e7); transition: width .3s ease; }
.dispatch-counts { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; }
.dispatch-counts b { margin-left: 4px; color: var(--ink-2); font-weight: 650; }
.dispatch-counts .success b { color: var(--green); }
.dispatch-counts .failed b { color: var(--red); }
.dispatch-timeline { display: grid; gap: 0; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.dispatch-timeline > div { position: relative; padding: 0 0 13px 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dispatch-timeline > div::before { position: absolute; top: 3px; left: 2px; width: 6px; height: 6px; border: 2px solid #9cafcf; border-radius: 50%; background: var(--surface); content: ""; }
.dispatch-timeline > div::after { position: absolute; top: 11px; bottom: 0; left: 5px; width: 1px; background: var(--line); content: ""; }
.dispatch-timeline > div:last-child { padding-bottom: 0; }
.dispatch-timeline > div:last-child::after { display: none; }
.dispatch-timeline > div.active::before { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(53 104 237 / 9%); }
.state-help { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; border: 1px solid #dde6f5; border-radius: 10px; padding: 10px 11px; background: #f6f9fe; color: #5e6f8b; font-size: 12px; line-height: 1.6; }
.state-help::before { display: grid; width: 15px; height: 15px; flex: 0 0 15px; place-items: center; border: 1px solid #adc1e8; border-radius: 50%; color: var(--accent); content: "i"; font-family: Georgia, serif; font-size: 12px; font-weight: 700; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 650; }
.live-indicator::before { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(22 136 102 / 10%); content: ""; animation: pulse 1.8s ease infinite; }

/* 当前发送中心数据结构 */
.send-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.send-summary > div { display: grid; min-height: 72px; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 9px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; background: var(--surface); box-shadow: var(--shadow-xs); }
.summary-dot { grid-row: 1 / 3; width: 9px; height: 9px; align-self: center; border-radius: 50%; background: #929eaf; box-shadow: 0 0 0 4px rgb(146 158 175 / 9%); }
.summary-dot.working { background: var(--accent); box-shadow: 0 0 0 4px rgb(53 104 237 / 9%); }
.summary-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgb(22 136 102 / 9%); }
.summary-dot.warning { background: var(--amber); box-shadow: 0 0 0 4px rgb(173 112 20 / 9%); }
.send-summary strong { color: var(--ink); font-size: 20px; font-weight: 720; line-height: 1; }
.send-summary small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.send-state-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 12px; border: 1px solid #dce6f5; border-radius: 12px; padding: 11px 13px; background: #f8faff; color: var(--muted); font-size: 12px; }
.send-state-guide strong { color: var(--ink-2); font-size: 12px; }
.send-state-guide span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.guide-dot { width: 6px; height: 6px; border-radius: 50%; background: #8c98aa; }
.guide-dot.pending { background: #8795a9; }
.guide-dot.working { background: var(--accent); }
.guide-dot.online { background: var(--green); }
.guide-dot.warning { background: var(--amber); }
.send-center-panel { padding: 18px; }
.dispatch-card.online { border-left: 3px solid var(--green); }
.dispatch-card.working { border-left: 3px solid var(--accent); }
.dispatch-card.warning { border-left: 3px solid var(--amber); }
.dispatch-card.error { border-left: 3px solid var(--red); }
.dispatch-card.pending { border-left: 3px solid #8997aa; }
.dispatch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dispatch-head > div { min-width: 0; }
.dispatch-time { display: block; margin-bottom: 5px; color: var(--muted-2); font-size: 11px; }
.dispatch-head h3 { overflow: hidden; max-width: 780px; margin: 0; color: var(--ink); text-overflow: ellipsis; font-size: 13px; font-weight: 650; white-space: nowrap; }
.dispatch-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.dispatch-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; height: auto; overflow: visible; margin: 14px 0 10px; background: transparent; }
.dispatch-progress > div { height: 5px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.dispatch-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4c7cf0, #2d62e7); }
.dispatch-progress > span { min-width: 28px; color: var(--muted); text-align: right; font-size: 12px; }
.dispatch-counts { gap: 17px; }
.dispatch-counts span { color: var(--muted); }
.dispatch-counts span b { margin: 0 3px 0 0; color: var(--ink-2); }
.dispatch-counts span.danger, .dispatch-counts span.danger b { color: var(--red); }
.dispatch-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.dispatch-foot small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.task-status-cell { display: grid; gap: 4px; white-space: normal; }
.task-status-cell small { max-width: 190px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.dispatch-detail-hero { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: var(--surface-subtle); }
.dispatch-detail-hero > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dispatch-detail-hero > div > span { color: var(--muted); font-size: 12px; }
.dispatch-detail-hero p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dispatch-detail-hero blockquote { margin: 12px 0 0; border-left: 2px solid var(--accent); padding: 9px 11px; background: #fff; color: var(--ink-2); font-size: 12px; line-height: 1.65; }
.delivery-list { display: grid; gap: 9px; margin-top: 14px; }
.delivery-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.delivery-account { display: flex; align-items: center; gap: 9px; }
.delivery-account > div { min-width: 0; flex: 1; }
.delivery-account strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.delivery-account small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.delivery-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 13px; }
.delivery-timeline > span { position: relative; display: grid; gap: 4px; border-top: 1px solid var(--line); padding: 11px 6px 0 0; color: var(--muted); font-size: 12px; }
.delivery-timeline > span i { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border: 2px solid #a8b3c2; border-radius: 50%; background: var(--surface); }
.delivery-timeline > span.done i { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 3px rgb(22 136 102 / 8%); }
.delivery-timeline > span.problem i { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 3px rgb(202 71 88 / 8%); }
.delivery-timeline time { overflow: hidden; color: var(--muted-2); text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.delivery-error { margin-top: 10px; border: 1px solid #efcdd2; border-radius: 8px; padding: 8px 9px; background: var(--red-soft); color: #a44350; font-size: 12px; line-height: 1.5; }
.delivery-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* 世界频道群控工作台 */
.world-chat-shell { display: grid; height: min(760px, calc(100vh - 174px)); min-height: 610px; overflow: hidden; grid-template-columns: 318px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 14px 40px rgb(25 43 72 / 8%); }
.world-conversation-rail { display: grid; min-width: 0; min-height: 0; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--line); background: linear-gradient(180deg, #fbfcff, #f7f9fc); }
.world-conversation-rail-head { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 88%); backdrop-filter: blur(14px); }
.world-conversation-rail-head strong { display: block; color: var(--ink); font-size: 14px; font-weight: 720; }
.world-conversation-rail-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.world-conversation-rail-head > span { display: inline-flex; min-height: 27px; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 0 9px; background: var(--surface); color: var(--muted); font-size: 11px; white-space: nowrap; }
.world-conversation-rail-head > span i, .world-chat-live > i { width: 7px; height: 7px; border-radius: 50%; background: #9ea9b8; box-shadow: 0 0 0 4px rgb(158 169 184 / 9%); }
.world-conversation-rail-head > span i.online, .world-chat-live > i.online { background: var(--green); box-shadow: 0 0 0 4px rgb(22 136 102 / 10%); animation: pulse 1.8s ease infinite; }
.world-conversation-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 8px 18px; }
.world-overview-link { display: grid; width: 100%; min-height: 66px; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; border: 1px solid transparent; border-radius: 13px; padding: 9px 10px; background: transparent; color: var(--ink-2); text-align: left; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.world-overview-link:hover { border-color: var(--line); background: var(--surface); transform: translateY(-1px); }
.world-overview-link.active { border-color: var(--accent-border); background: linear-gradient(135deg, #f1f5ff, #eaf1ff); color: var(--accent); box-shadow: 0 4px 14px rgb(53 104 237 / 8%); }
.world-overview-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d8e3fb; border-radius: 12px; background: #f2f6ff; color: #5272ba; font-size: 12px; font-weight: 760; }
.world-overview-link b, .world-overview-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.world-overview-link b { font-size: 12px; font-weight: 700; }
.world-overview-link small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.world-overview-link > i, .world-unread { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 99px; padding: 0 6px; background: var(--accent); color: #fff; font-size: 10px; font-style: normal; font-weight: 720; box-shadow: 0 3px 10px rgb(53 104 237 / 24%); }
.world-conversation-group { margin-top: 13px; }
.world-conversation-group-head { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; }
.world-conversation-group-head > span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; font-size: 11px; font-weight: 680; letter-spacing: .2px; white-space: nowrap; }
.world-conversation-group-head > span i { margin-left: 6px; color: var(--muted-2); font-style: normal; font-weight: 500; }
.world-conversation-group-head button { min-height: 24px; border: 0; border-radius: 7px; padding: 0 7px; background: transparent; color: var(--accent); font-size: 10px; }
.world-conversation-group-head button:hover { background: var(--accent-soft); }
.world-conversation-list { display: grid; gap: 3px; }
.world-conversation { position: relative; display: grid; width: 100%; min-height: 78px; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; border: 1px solid transparent; border-radius: 13px; padding: 9px 10px; background: transparent; color: var(--ink-2); text-align: left; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.world-conversation:hover { border-color: var(--line); background: rgb(255 255 255 / 82%); transform: translateY(-1px); }
.world-conversation.active { border-color: #d4e0fb; background: var(--surface); color: var(--accent); box-shadow: 0 5px 18px rgb(30 54 93 / 7%); }
.world-account-avatar, .world-player-avatar { position: relative; display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #dbe4f2; border-radius: 12px; background: linear-gradient(145deg, #f5f7fc, #e9eff8); color: #536987; font-size: 12px; font-weight: 760; box-shadow: var(--shadow-xs); }
.world-account-avatar.large { width: 43px; height: 43px; flex-basis: 43px; border-radius: 13px; font-size: 13px; }
.world-account-avatar > i { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #9ca7b6; }
.world-account-avatar > i.online { background: var(--green); }
.world-account-avatar > i.warning, .world-account-avatar > i.working, .world-account-avatar > i.pending { background: var(--amber); }
.world-account-avatar > i.error { background: var(--red); }
.world-conversation-copy { min-width: 0; }
.world-conversation-copy > span { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.world-conversation-copy b { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; font-size: 12px; font-weight: 690; white-space: nowrap; }
.world-conversation.active .world-conversation-copy b { color: var(--accent); }
.world-conversation-copy time { color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.world-conversation-copy small { display: block; overflow: hidden; margin-top: 5px; color: var(--muted); text-overflow: ellipsis; font-size: 11px; line-height: 1.35; white-space: nowrap; }
.world-conversation-copy em { display: block; overflow: hidden; margin-top: 5px; color: #8996aa; text-overflow: ellipsis; font-size: 10px; font-style: normal; white-space: nowrap; }
.world-unread { align-self: start; margin-top: 1px; }
.world-conversation-scroll > .status-panel { min-height: 180px; margin: 12px 4px; padding: 18px 12px; }
.world-chat-main { display: grid; min-width: 0; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--surface); }
.world-chat-main.overview { grid-template-rows: auto minmax(0, 1fr); }
.world-chat-header { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); }
.world-chat-header > div:first-child { min-width: 0; }
.world-chat-header h2 { overflow: hidden; margin: 0; color: var(--ink); text-overflow: ellipsis; font-size: 15px; font-weight: 720; white-space: nowrap; }
.world-chat-header p { overflow: hidden; margin: 5px 0 0; color: var(--muted); text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.world-channel-title { display: flex; min-width: 0; align-items: center; gap: 11px; }
.world-channel-title > div { min-width: 0; }
.world-chat-live { display: inline-flex; min-height: 28px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; padding: 0 10px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; white-space: nowrap; }
.world-chat-stage { min-height: 0; overflow-y: auto; padding: 20px; background: linear-gradient(180deg, #fbfcff, #f7f9fc); }
.world-chat-stage.overview { padding: 17px; }
.world-message-feed { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px 28px; background: radial-gradient(circle at 100% 0, rgb(53 104 237 / 4%), transparent 33%), linear-gradient(180deg, #fbfcff, #f7f9fc); }
.world-day-divider { display: flex; justify-content: center; margin: 2px 0 16px; }
.world-day-divider span { border: 1px solid var(--line); border-radius: 99px; padding: 4px 9px; background: rgb(255 255 255 / 86%); color: var(--muted-2); font-size: 10px; box-shadow: var(--shadow-xs); }
.world-session-divider { display: flex; align-items: center; gap: 8px; margin: 4px 0 15px; color: #657795; }
.world-session-divider::before, .world-session-divider::after { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #dbe3ef); content: ""; }
.world-session-divider::after { background: linear-gradient(90deg, #dbe3ef, transparent); }
.world-session-divider span { border: 1px solid #d9e4f8; border-radius: 99px; padding: 4px 8px; background: #f1f5ff; color: #5372b6; font-size: 10px; font-weight: 670; white-space: nowrap; }
.world-session-divider small { color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.world-message { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 15px; }
.world-player-avatar { width: 33px; height: 33px; flex-basis: 33px; border-radius: 10px; font-size: 11px; }
.world-message > div { min-width: 0; max-width: min(78%, 720px); }
.world-message-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 3px 5px; }
.world-message-meta strong { color: var(--ink-2); font-size: 12px; font-weight: 680; }
.world-message-meta time { color: var(--muted-2); font-size: 10px; }
.world-message-meta i { border: 1px solid #cae8df; border-radius: 99px; padding: 1px 5px; background: var(--green-soft); color: var(--green); font-size: 9px; font-style: normal; }
.world-message-meta i.history { border-color: var(--line); background: #f1f4f7; color: var(--muted); }
.world-message p { margin: 0; border: 1px solid var(--line); border-radius: 5px 14px 14px; padding: 10px 12px; background: var(--surface); box-shadow: 0 3px 12px rgb(25 43 72 / 5%); color: var(--ink-2); font-size: 12px; line-height: 1.68; word-break: break-word; }
.world-composer { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.world-composer-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 7px; color: var(--muted); font-size: 10px; }
.world-composer-label b { color: var(--ink-2); font-weight: 680; }
.world-composer-label em { color: var(--muted-2); font-style: normal; white-space: nowrap; }
.world-composer-box { display: flex; align-items: flex-end; gap: 10px; border: 1px solid var(--line-strong); border-radius: 13px; padding: 7px 8px 7px 12px; background: var(--surface-subtle); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.world-composer-box:focus-within { border-color: #a9c0f8; background: #fff; box-shadow: 0 0 0 4px rgb(53 104 237 / 7%); }
.world-composer-box.disabled { background: #f4f6f8; }
.world-composer textarea { min-height: 39px; max-height: 116px; flex: 1; resize: none; border: 0; outline: 0; padding: 9px 0 7px; background: transparent; color: var(--ink); font-size: 13px; line-height: 1.5; }
.world-composer textarea:disabled { color: var(--muted-2); }
.world-composer-box .primary { min-width: 74px; }
.world-composer-foot { display: flex; min-height: 20px; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 7px 2px 0; }
.world-composer-foot > span:first-child { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.world-composer-feedback { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.world-composer-feedback.success { color: var(--green); }
.world-composer-feedback.error { color: var(--red); }
.world-composer-feedback.working { color: var(--accent); }
.world-composer-feedback button { border: 0; padding: 0; background: transparent; color: currentColor; font-size: 10px; text-decoration: underline; text-underline-offset: 2px; }
.world-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.world-account-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; padding: 14px; background: var(--surface); box-shadow: 0 4px 16px rgb(25 43 72 / 4%); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.world-account-card::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: #a9b3c2; content: ""; }
.world-account-card.online::before { background: var(--green); }
.world-account-card.warning::before, .world-account-card.working::before, .world-account-card.pending::before { background: var(--amber); }
.world-account-card.error::before { background: var(--red); }
.world-account-card:hover { border-color: #d9e2ef; transform: translateY(-2px); box-shadow: 0 9px 25px rgb(25 43 72 / 8%); }
.world-account-card-head { display: flex; min-width: 0; align-items: center; gap: 10px; }
.world-account-card-head > div { min-width: 0; flex: 1; }
.world-account-card-head h3 { overflow: hidden; margin: 0; color: var(--ink); text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.world-account-card-head p { overflow: hidden; margin: 4px 0 0; color: var(--muted); text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.world-account-card-head > b { border-radius: 99px; padding: 4px 7px; background: var(--accent-soft); color: var(--accent); font-size: 9px; white-space: nowrap; }
.world-account-card-channel { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.world-account-card-channel span { border: 1px solid #d9e4f8; border-radius: 99px; padding: 4px 7px; background: #f2f6ff; color: #5775b6; font-size: 9px; }
.world-account-card-channel time { color: var(--muted-2); font-size: 10px; }
.world-account-card-preview { display: -webkit-box; min-height: 39px; overflow: hidden; margin: 11px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.world-account-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.world-account-card-foot span { color: var(--muted-2); font-size: 10px; }
.world-account-card-foot button { font-size: 10px; }

/* 任务与账号详情 */
.detail-tabs { display: flex; gap: 3px; margin: 0 0 18px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.detail-tabs button { min-height: 31px; flex: 1; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; }
.detail-tabs button.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-xs); font-weight: 650; }
.detail-section { margin-top: 16px; }
.detail-section > h3 { margin: 0 0 10px; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.detail-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.detail-summary > div { display: grid; min-height: 68px; align-content: center; gap: 6px; padding: 12px 14px; background: var(--surface-subtle); }
.detail-summary span { color: var(--muted); font-size: 12px; }
.detail-summary strong { color: var(--ink); font-size: 14px; font-weight: 650; }
.account-detail-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.account-avatar.xl { width: 50px; height: 50px; flex-basis: 50px; border-radius: 14px; font-size: 16px; }
.account-detail-hero > div { min-width: 0; }
.detail-title { display: flex; min-width: 0; align-items: center; gap: 8px; }
.detail-title h2 { overflow: hidden; margin: 0; color: var(--ink); text-overflow: ellipsis; font-size: 19px; font-weight: 700; white-space: nowrap; }
.account-detail-hero p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.detail-warning, .detail-success { margin-bottom: 13px; border: 1px solid; border-radius: 11px; padding: 10px 12px; }
.detail-warning { border-color: #efdcba; background: var(--amber-soft); }
.detail-success { border-color: #cee8df; background: var(--green-soft); }
.detail-warning strong, .detail-success strong { display: block; font-size: 12px; }
.detail-warning strong { color: #8f611b; }
.detail-success strong { color: #226f59; }
.detail-warning p, .detail-success p { margin: 4px 0 0; font-size: 12px; line-height: 1.55; }
.detail-warning p { color: #9d7534; }
.detail-success p { color: #4b806f; }
.detail-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); gap: 1px; }
.detail-kpis > div { min-height: 65px; padding: 12px; background: var(--surface-subtle); }
.detail-kpis strong { display: block; color: var(--ink); font-size: 17px; font-weight: 700; }
.detail-kpis span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.detail-kpis .danger strong { color: var(--red); }
.detail-section { border-top: 1px solid var(--line); padding-top: 15px; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.detail-section-head h3 { margin: 0; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.detail-section-head > span { color: var(--muted-2); font-size: 11px; }
.health-grid, .connection-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.health-grid > div, .connection-detail > div { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface-subtle); }
.health-grid span, .connection-detail span { display: block; color: var(--muted); font-size: 11px; }
.health-grid strong, .connection-detail strong { display: block; overflow: hidden; margin-top: 5px; color: var(--ink-2); text-overflow: ellipsis; font-size: 12px; font-weight: 650; white-space: nowrap; }
.health-grid strong.danger { color: var(--red); }
.health-grid small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 11px; line-height: 1.45; }
.compact-deliveries, .compact-messages { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.compact-deliveries > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 43px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.compact-deliveries > div:last-child, .compact-messages > div:last-child { border-bottom: 0; }
.compact-deliveries > div > span:first-child { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.compact-deliveries time, .compact-messages time { color: var(--muted-2); font-size: 11px; white-space: nowrap; }
.compact-messages > div { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.compact-messages strong { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.compact-messages span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.detail-empty { margin: 0; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 16px; background: var(--surface-subtle); color: var(--muted); text-align: center; font-size: 12px; }
.drawer-sticky-actions { position: sticky; bottom: -26px; display: flex; justify-content: flex-end; gap: 7px; margin: 18px -26px -26px; padding: 14px 26px; border-top: 1px solid var(--line); background: rgb(255 255 255 / 94%); box-shadow: 0 -10px 24px rgb(25 43 72 / 5%); backdrop-filter: blur(12px); }
.label-note { float: right; color: var(--muted); font-weight: 400; }
.label-note b { color: var(--accent); }

.schedule-list { display: grid; gap: 8px; }
.schedule-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-subtle); transition: border-color .16s ease, box-shadow .16s ease; }
.schedule-card:hover { border-color: #d3ddea; box-shadow: var(--shadow-xs); }
.schedule-card h3 { margin: 0; color: var(--ink); font-size: 13px; }
.schedule-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.schedule-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.schedule-next { display: grid; min-width: 100px; gap: 4px; text-align: right; }
.schedule-next span { color: var(--muted-2); font-size: 12px; }
.schedule-next strong { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.system-hero { grid-column: 1 / -1; }
.system-metrics { display: flex; flex-wrap: wrap; gap: 52px; }
.system-metrics div, .key-value { display: grid; gap: 6px; }
.system-metrics span, .key-value span { color: var(--muted); font-size: 12px; }
.system-metrics strong, .key-value strong { color: var(--ink); font-size: 15px; font-weight: 680; }
.key-value { padding-top: 7px; }
.system-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.modal-backdrop, .drawer { position: fixed; inset: 0; z-index: 80; }
.modal-backdrop { display: grid; place-items: center; padding: 20px; background: rgb(17 29 48 / 34%); backdrop-filter: blur(8px); }
.modal { width: min(490px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 25px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); animation: modalIn .2s ease; }
.modal-wide { width: min(690px, 100%); }
.drawer { display: flex; justify-content: flex-end; background: rgb(17 29 48 / 28%); backdrop-filter: blur(5px); }
.drawer-scrim { position: absolute; inset: 0; border: 0; background: transparent; cursor: default; }
.drawer-panel { position: relative; width: min(540px, 100%); height: 100%; overflow: auto; padding: 26px; border-left: 1px solid var(--line); background: var(--surface); box-shadow: -24px 0 70px rgb(17 29 48 / 16%); animation: drawerIn .24s ease; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.modal-header h2 { margin: 0; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.modal-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.close { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-subtle); color: var(--muted); font-size: 20px; line-height: 1; }
.close:hover { background: var(--surface-hover); color: var(--ink); }
.form-grid { display: grid; gap: 14px; }
.two-column-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { padding: 10px 11px; }
.field input, .field select { min-height: 39px; }
.field textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.field-help { display: block; margin-top: 6px; color: var(--muted-2); font-size: 12px; line-height: 1.5; }
.field-counter { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted-2); font-size: 12px; }
.form-error { min-height: 15px; color: var(--red); font-size: 12px; line-height: 1.5; }
.form-error:not(:empty) { border: 1px solid #f0ccd1; border-radius: 9px; padding: 8px 10px; background: var(--red-soft); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }
.split-actions { align-items: center; justify-content: space-between; }
.split-actions > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.segmented { display: flex; gap: 3px; margin-bottom: 18px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); }
.segmented button { min-height: 33px; flex: 1; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; }
.segmented button:hover { color: var(--accent); }
.segmented button.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-xs); font-weight: 650; }
.choice-list { display: grid; max-height: 180px; overflow: auto; gap: 6px; padding: 2px; }
.choice { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; background: var(--surface-subtle); cursor: pointer; }
.choice:hover { border-color: #d3ddeb; }
.choice:has(input:checked) { border-color: #afc5f7; background: var(--accent-soft); }
.choice input { accent-color: var(--accent); }
.choice .account-avatar { width: 28px; height: 28px; flex-basis: 28px; }
.choice b { display: block; color: var(--ink); font-size: 12px; }
.choice small { display: block; margin-top: 3px; }
.choice small .pill { min-height: 18px; padding: 0 5px; font-size: 11px; }
.weekday-list { display: flex; flex-wrap: wrap; gap: 6px; }
.weekday-list label { margin: 0; }
.weekday-list input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-list span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.weekday-list input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }

.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: grid; gap: 8px; width: min(350px, calc(100vw - 32px)); }
.toast { position: relative; overflow: hidden; border: 1px solid #cfe8df; border-radius: 11px; padding: 12px 14px 12px 37px; background: #f5fbf8; box-shadow: var(--shadow-md); color: #226b57; font-size: 12px; line-height: 1.55; animation: toastIn .24s ease; }
.toast::before { position: absolute; top: 13px; left: 14px; display: grid; width: 14px; height: 14px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; content: "✓"; font-size: 12px; font-weight: 800; }
.toast.warning { border-color: #eddbb9; background: #fffbf3; color: #8e621f; }
.toast.warning::before { background: var(--amber); content: "!"; }
.toast.error { border-color: #efcbd0; background: #fff7f8; color: #a33f4c; }
.toast.error::before { background: var(--red); content: "!"; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.auth-layer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: auto; padding: 24px; background: #f2f5fa; }
.auth-layer.hidden { display: none; }
.auth-ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.auth-ambient::before { position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(#dce3ef 1px, transparent 1px), linear-gradient(90deg, #dce3ef 1px, transparent 1px); background-size: 48px 48px; content: ""; mask-image: radial-gradient(circle at center, #000, transparent 72%); }
.auth-ambient span { position: absolute; border-radius: 50%; filter: blur(2px); }
.auth-ambient span:first-child { top: -160px; left: -120px; width: 520px; height: 520px; background: rgb(90 137 244 / 15%); }
.auth-ambient span:last-child { right: -150px; bottom: -220px; width: 600px; height: 600px; background: rgb(34 178 181 / 10%); }
.login-card { position: relative; width: min(420px, 100%); border: 1px solid rgb(255 255 255 / 80%); border-radius: 20px; padding: 34px; background: rgb(255 255 255 / 94%); box-shadow: 0 30px 90px rgb(25 43 72 / 14%); backdrop-filter: blur(18px); }
.login-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 680; }
.login-brand .brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.login-brand .brand-mark svg { width: 21px; height: 21px; }
.login-copy { margin: 34px 0 24px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.login-copy h1 { margin: 9px 0 0; color: var(--ink); font-size: 28px; font-weight: 720; letter-spacing: -.6px; }
.login-copy p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.login-submit { width: 100%; min-height: 42px; margin-top: 2px; }
.login-service { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 12px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .4; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }

@media (max-width: 1180px) {
  :root { --sidebar-width: 82px; }
  .sidebar { align-items: center; padding-right: 10px; padding-left: 10px; }
  .brand { justify-content: center; padding: 0; }
  .brand > div, .workspace-switch > div, .nav-label, .sidebar-footer > div, .nav-text { display: none; }
  .workspace-switch { display: grid; width: 46px; height: 46px; place-items: center; margin: 20px 0 22px; padding: 0; }
  .nav-item { width: 52px; justify-content: center; padding: 0; }
  .nav-item.active::before { left: -15px; }
  .nav-badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; border: 2px solid #fff; padding: 0 4px; line-height: 13px; }
  .sidebar-footer { justify-content: center; width: 100%; padding-right: 0; padding-left: 0; }
  .layout { grid-template-columns: 1fr; }
  .pool-account { grid-template-columns: minmax(210px, 1.15fr) minmax(125px, .7fr) minmax(180px, 1fr) auto; }
  .pool-account .pool-issue { display: none; }
  .world-chat-shell { grid-template-columns: 290px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pool-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-pool-layout { grid-template-columns: 175px minmax(0, 1fr); }
  .pool-toolbar { align-items: stretch; flex-direction: column; }
  .pool-account { grid-template-columns: minmax(200px, 1fr) minmax(120px, .65fr) auto; }
  .pool-account .pool-numbers, .pool-account .pool-issue { display: none; }
  .account-pool-shell { grid-template-columns: 184px minmax(0, 1fr); }
  .pool-health-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pool-account-row { grid-template-columns: minmax(190px, 1fr) 100px auto; }
  .pool-account-row > :nth-child(3), .pool-account-row > :nth-child(4) { display: none; }
  .world-chat-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .world-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --sidebar-width: 0px; }
  .sidebar { width: min(286px, 88vw); align-items: stretch; padding: 20px 14px 15px; transform: translateX(-105%); transition: transform .22s ease; }
  .sidebar .brand { justify-content: flex-start; gap: 11px; padding: 0 7px; }
  .sidebar .brand > div, .sidebar .workspace-switch > div, .sidebar .nav-label, .sidebar-footer > div, .sidebar .nav-text { display: block; }
  .sidebar-close, .menu-btn { display: grid; }
  .sidebar .workspace-switch { display: flex; width: auto; height: auto; justify-content: flex-start; margin: 22px 5px 24px; padding: 11px 12px; }
  .sidebar .nav-item { width: 100%; justify-content: flex-start; padding: 0 11px; }
  .sidebar .nav-item.active::before { left: -14px; }
  .sidebar .nav-badge { position: static; min-width: 20px; height: 19px; margin-left: auto; border-width: 1px; line-height: 17px; }
  .sidebar .sidebar-footer { justify-content: flex-start; padding-right: 11px; padding-left: 11px; }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; border: 0; background: rgb(17 29 48 / 36%); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-open .sidebar-scrim { display: block; opacity: 1; pointer-events: auto; }
  .topbar { min-height: 66px; padding: 0 16px; }
  .content { padding: 24px 16px 44px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .heading-actions { width: 100%; justify-content: flex-start; }
  .user-name, .refresh-label span { display: none; }
  .user-menu { padding-left: 6px; border-left: 0; }
  .account-pool-shell { display: block; min-height: auto; }
  .account-pool-layout { display: block; }
  .pool-groups { position: static; overflow-x: auto; margin-bottom: 10px; padding: 10px; }
  .pool-groups .pool-section-title { display: none; }
  .pool-groups > .group-filter, .pool-groups > .group-filter-row { display: inline-flex; width: auto; vertical-align: middle; }
  .pool-groups > .group-filter { margin-right: 3px; }
  .pool-groups > .group-filter-row .group-filter { width: auto; min-width: 100px; }
  .pool-groups .group-divider, .pool-groups .group-empty { display: none; }
  .send-state-guide { align-items: flex-start; }
  .pool-sidebar { overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .pool-sidebar-header { display: none; }
  .pool-group-list { display: flex; min-width: max-content; }
  .pool-group-item { width: auto; padding-right: 12px; }
  .world-chat-shell { height: auto; min-height: 820px; grid-template-columns: 1fr; grid-template-rows: 245px minmax(570px, 1fr); }
  .world-conversation-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .world-conversation-scroll { padding-bottom: 12px; }
  .world-conversation-rail-head { min-height: 60px; }
  .world-chat-main { min-height: 570px; }
}

@media (max-width: 520px) {
  .breadcrumbs > span, .breadcrumbs > i, .icon-btn, .quick-send-label span, .logout-btn { display: none; }
  .quick-send-label { width: 37px; padding: 0; }
  .top-date { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stats { gap: 8px; }
  .stat-card { min-height: 112px; padding: 14px; }
  .stat-value { font-size: 26px; }
  .panel { padding: 15px; border-radius: 15px; }
  .filter-row { align-items: stretch; flex-direction: column; }
  .status-tabs { width: 100%; }
  .status-tab { flex: 1; padding: 0 6px; }
  .filter { width: 100%; }
  .system-grid, .two-column-form { grid-template-columns: 1fr; }
  .system-hero, .field-full { grid-column: auto; }
  .schedule-card { grid-template-columns: minmax(0, 1fr) auto; }
  .schedule-state { grid-column: 1 / -1; }
  .schedule-next { text-align: left; }
  .schedule-card > .text-btn { justify-self: end; }
  .pool-main { padding: 13px; }
  .pool-summary { gap: 7px; }
  .pool-summary > div { min-height: 70px; padding: 11px 12px; }
  .pool-summary strong { font-size: 21px; }
  .pool-account { grid-template-columns: minmax(0, 1fr) auto; min-height: 76px; padding: 10px; }
  .pool-account .pool-health, .pool-account .pool-numbers, .pool-account .pool-issue { display: none; }
  .send-summary { gap: 7px; }
  .send-summary > div { min-height: 62px; padding: 10px; }
  .send-summary strong { font-size: 17px; }
  .send-state-guide { gap: 8px 12px; }
  .send-state-guide strong { width: 100%; }
  .dispatch-head h3 { white-space: normal; }
  .dispatch-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .dispatch-foot { align-items: flex-start; flex-direction: column; }
  .delivery-timeline { grid-template-columns: 1fr; gap: 0; }
  .delivery-timeline > span { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 13px 15px; }
  .delivery-timeline > span i { top: 1px; left: -4px; }
  .detail-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health-grid, .connection-detail { grid-template-columns: 1fr; }
  .compact-deliveries > div { grid-template-columns: minmax(0, 1fr) auto; }
  .compact-deliveries time { display: none; }
  .compact-messages > div { grid-template-columns: 60px minmax(0, 1fr); }
  .compact-messages time { display: none; }
  .drawer-sticky-actions { bottom: -20px; flex-wrap: wrap; margin: 18px -16px -20px; padding: 12px 16px; }
  .pool-health-strip { gap: 1px; }
  .pool-health-strip > div { padding: 10px; }
  .pool-account-row { grid-template-columns: minmax(0, 1fr) auto; padding: 9px; }
  .pool-account-row > :nth-child(2), .pool-account-row > :nth-child(3), .pool-account-row > :nth-child(4) { display: none; }
  .world-chat-shell { min-height: 780px; border-radius: 15px; grid-template-rows: 230px minmax(545px, 1fr); }
  .world-conversation-rail-head { padding-right: 12px; padding-left: 12px; }
  .world-chat-header { min-height: 72px; align-items: flex-start; flex-direction: column; padding: 12px 14px; }
  .world-chat-live { min-height: 24px; }
  .world-chat-main { min-height: 545px; }
  .world-message-feed { padding: 17px 12px 24px; }
  .world-message > div { max-width: calc(100% - 43px); }
  .world-session-divider small { display: none; }
  .world-composer { padding: 11px 12px 13px; }
  .world-composer-label { align-items: flex-start; }
  .world-composer-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .world-composer-box { align-items: stretch; flex-direction: column; padding: 8px 9px; }
  .world-composer textarea { width: 100%; min-height: 56px; }
  .world-composer-box .primary { width: 100%; }
  .world-composer-foot { align-items: stretch; flex-direction: column; gap: 5px; }
  .world-composer-feedback { justify-content: flex-start; text-align: left; }
  .world-chat-stage.overview { padding: 11px; }
  .detail-summary { grid-template-columns: 1fr 1fr; }
  .modal-backdrop { padding: 9px; }
  .modal, .drawer-panel { padding: 20px 16px; }
  .drawer-panel { width: 100%; }
  .split-actions { align-items: stretch; flex-direction: column; }
  .split-actions > div { width: 100%; }
  .split-actions > div button { flex: 1; }
}

@media (max-width: 380px) {
  .content { padding-right: 11px; padding-left: 11px; }
  .topbar { padding-right: 11px; padding-left: 11px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 12px; }
  .stat-top { font-size: 12px; }
  .stat-foot { line-height: 1.4; }
  .quick-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px; }
}

/* 分区调度、运行控制与网络代理 */
.ghost.danger-outline, .danger-outline { border-color: #efc7cd; background: #fffafb; color: var(--red); }
.ghost.danger-outline:hover, .danger-outline:hover { border-color: #e8adb6; background: var(--red-soft); color: #b93649; }
.danger-button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #be3d4e; border-radius: 10px; padding: 0 15px; background: linear-gradient(145deg, #d85364, #c33f52); color: #fff; box-shadow: 0 8px 20px rgb(202 71 88 / 20%); font-size: 13px; font-weight: 680; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.danger-button:hover { background: linear-gradient(145deg, #cd4759, #b93649); box-shadow: 0 11px 24px rgb(202 71 88 / 26%); transform: translateY(-1px); }

.pool-toolbar { align-items: stretch; flex-direction: column; }
.pool-toolbar-main { display: flex; align-items: center; gap: 9px; }
.pool-toolbar-main .search-box { flex: 1; }
.pool-selection-bar { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--surface-subtle); }
.selection-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; cursor: pointer; }
.selection-check input, .pool-select-control input, .danger-ack input, .switch-line input, .clear-secret input { accent-color: var(--accent); }
.pool-selection-bar > div { display: flex; align-items: center; gap: 12px; }
.pool-selection-bar strong { color: var(--accent); font-size: 12px; font-weight: 680; }
.pool-account { grid-template-columns: 28px minmax(210px, 1.15fr) minmax(130px, .75fr) minmax(200px, 1fr) minmax(175px, .9fr) auto; }
.pool-account.selected { border-color: #a9c0f4; background: linear-gradient(105deg, #f8faff 70%, #f0f5ff); box-shadow: 0 0 0 2px rgb(53 104 237 / 7%); }
.pool-select-control { display: grid; width: 26px; height: 34px; place-items: center; cursor: pointer; }
.pool-select-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pool-select-control > span[aria-hidden] { display: grid; width: 18px; height: 18px; place-items: center; border: 1.5px solid #bcc7d6; border-radius: 6px; background: #fff; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.pool-select-control input:checked + span { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px rgb(53 104 237 / 10%); }
.pool-select-control input:checked + span::after { width: 8px; height: 4px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; content: ""; transform: translateY(-1px) rotate(-45deg); }

.credential-safety-note, .account-online-assurance, .proxy-form-security { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; border: 1px solid #cfe8df; border-radius: 12px; padding: 12px 13px; background: var(--green-soft); }
.credential-safety-note > span, .account-online-assurance > span { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 7px; background: #cde9df; color: var(--green); font-size: 12px; font-weight: 800; }
.credential-safety-note strong, .account-online-assurance strong, .proxy-form-security strong { display: block; color: #286a57; font-size: 12px; }
.credential-safety-note p, .account-online-assurance p, .proxy-form-security p { margin: 4px 0 0; color: #5a8376; font-size: 12px; line-height: 1.55; }
.verification-guidance { border: 1px solid #efd6a9; border-radius: 11px; padding: 11px 12px; background: var(--amber-soft); }
.verification-guidance strong { color: #8b5a0e; font-size: 12px; }
.verification-guidance p { margin: 4px 0 0; color: #9e722c; font-size: 12px; line-height: 1.55; }
.verification-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; border: 1px solid #e5c47e; border-radius: 8px; padding: 7px 10px; background: rgba(255,255,255,.72); color: #7d510d; font-size: 12px; font-weight: 750; text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.verification-link:hover { border-color: #d7ab54; background: #fff; transform: translateY(-1px); }
.verification-link[hidden] { display: none; }
.account-detail-actions { align-items: center; justify-content: space-between; }
.drawer-action-group { display: flex; flex-wrap: wrap; gap: 7px; }
.sticky-note { margin-right: auto; color: var(--muted); font-size: 12px; line-height: 1.5; }

.partition-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 12px; }
.partition-summary article { display: grid; grid-template-columns: auto auto minmax(0, 1fr); min-height: 82px; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); box-shadow: var(--shadow-xs); }
.partition-summary article.attention { border-color: #efddba; background: linear-gradient(145deg, #fff, #fffaf2); }
.summary-orb { width: 11px; height: 11px; border: 3px solid #dce5f5; border-radius: 50%; background: #8090a8; box-shadow: 0 0 0 5px #f1f5fb; }
.summary-orb.working { border-color: #cbd9fd; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: pulse 1.5s ease infinite; }
.summary-orb.online { border-color: #cae8de; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.summary-orb.warning { border-color: #f0debb; background: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
.partition-summary strong { display: block; color: var(--ink); font-size: 23px; font-weight: 720; line-height: 1; }
.partition-summary small { display: block; margin-top: 5px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.partition-summary p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.partition-guide { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; border: 1px solid var(--accent-border); border-radius: 14px; padding: 13px 15px; background: linear-gradient(100deg, #f5f8ff, #fbfdff); }
.partition-guide > div { min-width: 0; flex: 1; }
.partition-guide strong { color: #38558e; font-size: 12px; }
.partition-guide p { margin: 4px 0 0; color: #6e80a1; font-size: 12px; line-height: 1.55; }
.partition-guide > span { flex: 0 0 auto; border: 1px solid #dce6fb; border-radius: 99px; padding: 6px 9px; background: #fff; color: #6076a0; font-size: 11px; }
.partition-run-list { display: grid; gap: 10px; }
.partition-run-card { border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.partition-run-card:hover { border-color: #d2ddea; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.partition-run-card.warning { border-color: #eeddbb; background: linear-gradient(115deg, #fff 72%, #fffaf1); }
.partition-run-card.error { border-color: #efcbd0; background: linear-gradient(115deg, #fff 72%, #fff5f6); }
.partition-run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.partition-run-head > div { min-width: 0; }
.partition-run-head span:first-child { color: var(--muted-2); font-size: 11px; }
.partition-run-head h3 { margin: 5px 0 0; color: var(--ink); font-size: 14px; font-weight: 680; }
.partition-run-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.partition-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.partition-progress > div { height: 7px; overflow: hidden; flex: 1; border-radius: 99px; background: #edf1f6; }
.partition-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4d7af0, #2cb2bb); transition: width .3s ease; }
.partition-progress strong { min-width: 48px; color: var(--ink-2); text-align: right; font-size: 12px; }
.partition-run-metrics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.partition-run-metrics span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; }
.partition-run-metrics b { color: var(--ink-2); font-size: 12px; }
.partition-run-metrics span.danger, .partition-run-metrics span.danger b { border-color: #efcbd0; background: var(--red-soft); color: var(--red); }
.partition-run-metrics span.working, .partition-run-metrics span.working b { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.partition-message { margin-top: 10px; border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0; padding: 8px 10px; background: var(--amber-soft); color: #95651e; font-size: 12px; }
.partition-run-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.partition-run-foot small { color: var(--muted-2); font-size: 11px; }
.partition-run-foot > div { display: flex; gap: 13px; }
.partition-detail-hero { display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: linear-gradient(145deg, #fbfcff, #f7faff); }
.partition-detail-hero > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.partition-detail-hero > div:first-child > span { color: var(--muted); font-size: 12px; }
.partition-detail-hero p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.6; }
.partition-detail-hero > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }
.partition-detail-hero > div:last-child span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; color: var(--muted); font-size: 11px; }
.partition-detail-hero b { color: var(--ink-2); }
.partition-result-list { display: grid; gap: 9px; }
.partition-account-result { border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: var(--surface); }
.partition-account-result.warning { border-color: #efdfbd; background: #fffdf9; }
.partition-account-result.error { border-color: #efcdd2; background: #fffafb; }
.partition-account-result.working { border-color: var(--accent-border); background: #fafcff; }
.partition-result-account { display: flex; align-items: center; gap: 9px; }
.partition-result-account > div { min-width: 0; flex: 1; }
.partition-result-account strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.partition-result-account small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.partition-result-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 11px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface-subtle); }
.partition-result-route > span { min-width: 0; }
.partition-result-route small { display: block; color: var(--muted-2); font-size: 10px; }
.partition-result-route strong { display: block; overflow: hidden; margin-top: 4px; color: var(--ink-2); text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.partition-result-route i { color: var(--accent); font-style: normal; }
.partition-account-result > p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.partition-account-result > time { display: block; margin-top: 6px; color: var(--muted-2); font-size: 10px; }
.advanced-settings { border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); }
.advanced-settings summary { padding: 11px 12px; color: var(--ink-2); font-size: 12px; font-weight: 650; cursor: pointer; }
.advanced-settings summary span { margin-left: 6px; color: var(--muted); font-weight: 400; }
.advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 0 12px 12px; }
.partition-form-note { border: 1px solid #cfe7df; border-radius: 11px; padding: 11px 12px; background: var(--green-soft); }
.partition-form-note span { color: var(--green); font-size: 12px; font-weight: 700; }
.partition-form-note p { margin: 4px 0 0; color: #5d8377; font-size: 12px; line-height: 1.55; }

.operation-feedback { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 11px; margin-bottom: 12px; border: 1px solid #cde7de; border-radius: 13px; padding: 11px 13px; background: var(--green-soft); }
.operation-feedback.warning { border-color: #efdcb7; background: var(--amber-soft); }
.operation-feedback > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #cce7de; color: var(--green); font-weight: 800; }
.operation-feedback.warning > span { background: #f1ddb5; color: var(--amber); }
.operation-feedback strong { color: var(--ink-2); font-size: 12px; }
.operation-feedback p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.operation-feedback time { color: var(--muted-2); font-size: 11px; white-space: nowrap; }
.stop-all-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); overflow: hidden; border: 1px solid #e7cbd0; border-radius: 19px; background: linear-gradient(120deg, #fff 38%, #fff6f7); box-shadow: var(--shadow-md); }
.stop-all-hero::after { position: absolute; top: -90px; right: -90px; width: 260px; height: 260px; border: 45px solid rgb(202 71 88 / 4%); border-radius: 50%; content: ""; pointer-events: none; }
.stop-all-copy { position: relative; z-index: 1; padding: 27px 28px; }
.danger-kicker { color: var(--red); font-size: 11px; font-weight: 780; letter-spacing: 1.1px; }
.stop-all-copy h2 { margin: 8px 0 0; color: var(--ink); font-size: 22px; letter-spacing: -.4px; }
.stop-all-copy p { max-width: 720px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.stop-all-copy p strong { color: #a83d4c; }
.stop-account-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; border: 1px solid #d3e8e1; border-radius: 9px; padding: 7px 9px; background: rgb(234 247 242 / 80%); color: #4d7c6e; font-size: 11px; }
.stop-account-note span { color: var(--green); font-weight: 800; }
.stop-all-preview { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 7px; padding: 23px; border-left: 1px solid #f0d9dd; background: rgb(255 255 255 / 48%); }
.stop-all-preview > div { min-height: 72px; border: 1px solid #eedcdf; border-radius: 12px; padding: 12px; background: rgb(255 255 255 / 82%); }
.stop-all-preview strong { display: block; color: #a63c4b; font-size: 21px; font-weight: 730; }
.stop-all-preview span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.stop-all-preview .danger-button { grid-column: 1 / -1; min-height: 43px; margin-top: 3px; }
.operation-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 27px 0 13px; }
.operation-section-heading h2 { margin: 0; color: var(--ink); font-size: 18px; }
.operation-section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.cleanup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.cleanup-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: var(--surface); box-shadow: var(--shadow-xs); }
.cleanup-card.warning { border-color: #eedcb9; background: linear-gradient(120deg, #fff 72%, #fffaf0); }
.cleanup-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 750; }
.cleanup-icon.green { background: var(--green-soft); color: var(--green); }
.cleanup-icon.amber { background: var(--amber-soft); color: var(--amber); }
.cleanup-icon.cyan { background: var(--cyan-soft); color: var(--cyan); }
.cleanup-card h3 { margin: 0; color: var(--ink); font-size: 13px; }
.cleanup-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.cleanup-count { min-width: 75px; border-left: 1px solid var(--line); padding-left: 13px; }
.cleanup-count strong { display: block; color: var(--ink); font-size: 19px; }
.cleanup-count span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.cleanup-card > button { grid-column: 2 / -1; justify-self: end; }
.danger-confirm, .archive-confirm { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #efcbd1; border-radius: 13px; padding: 13px; background: var(--red-soft); }
.archive-confirm { border-color: var(--accent-border); background: var(--accent-soft); }
.archive-confirm.dangerous { border-color: #efdcb7; background: var(--amber-soft); }
.danger-confirm-icon, .archive-confirm > span { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 8px; background: #f2d3d8; color: var(--red); font-weight: 800; }
.archive-confirm > span { background: #dce7ff; color: var(--accent); }
.archive-confirm.dangerous > span { background: #f0ddb8; color: var(--amber); }
.danger-confirm strong, .archive-confirm strong { color: var(--ink-2); font-size: 13px; }
.danger-confirm p, .archive-confirm p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.confirm-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); gap: 1px; }
.confirm-preview-grid > div { min-height: 70px; padding: 12px; background: var(--surface-subtle); }
.confirm-preview-grid strong { display: block; color: var(--ink); font-size: 20px; }
.confirm-preview-grid span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.danger-ack { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: var(--surface-subtle); color: var(--ink-2); font-size: 12px; line-height: 1.5; cursor: pointer; }
.danger-ack input { margin-top: 2px; }

.proxy-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.proxy-summary article { min-height: 96px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); box-shadow: var(--shadow-xs); }
.proxy-summary span { color: var(--muted); font-size: 11px; }
.proxy-summary strong { display: block; margin-top: 8px; color: var(--ink); font-size: 23px; font-weight: 720; }
.proxy-summary .proxy-default-name { overflow: hidden; text-overflow: ellipsis; font-size: 16px; white-space: nowrap; }
.proxy-summary small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 11px; }
.proxy-scope-note { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; border: 1px solid var(--accent-border); border-radius: 14px; padding: 13px 15px; background: linear-gradient(100deg, #f4f8ff, #fbfdff); }
.proxy-scope-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 11px; background: #e0e9ff; color: var(--accent); font-size: 17px; }
.proxy-scope-note > div { min-width: 0; flex: 1; }
.proxy-scope-note strong { color: #38558c; font-size: 12px; }
.proxy-scope-note p { margin: 4px 0 0; color: #6b7d9f; font-size: 12px; line-height: 1.55; }
.proxy-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.proxy-card { position: relative; border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.proxy-card:hover { border-color: #d4deeb; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.proxy-card.is-default { border-color: #b8ccef; box-shadow: inset 0 3px 0 #6f93e8, var(--shadow-xs); }
.proxy-card.disabled { opacity: .72; background: var(--surface-subtle); }
.proxy-card-head { display: flex; align-items: flex-start; gap: 10px; }
.proxy-card-head > div { min-width: 0; flex: 1; }
.proxy-card-head > div > div { display: flex; align-items: center; gap: 7px; }
.proxy-card-head h3 { overflow: hidden; margin: 0; color: var(--ink); text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.proxy-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.proxy-mode-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 720; }
.proxy-mode-icon.green { background: var(--green-soft); color: var(--green); }
.proxy-mode-icon.cyan { background: var(--cyan-soft); color: var(--cyan); }
.default-chip, .disabled-chip { flex: 0 0 auto; border: 1px solid var(--accent-border); border-radius: 99px; padding: 2px 6px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 650; }
.disabled-chip { border-color: var(--line); background: #f2f4f7; color: var(--muted); }
.icon-menu { width: 29px; height: 29px; flex: 0 0 29px; border: 0; border-radius: 8px; background: transparent; color: var(--muted-2); letter-spacing: -1px; }
.icon-menu:hover { background: var(--surface-hover); color: var(--ink); }
.proxy-address { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: var(--surface-subtle); }
.proxy-address span { display: block; color: var(--muted-2); font-size: 10px; }
.proxy-address strong { display: block; overflow: hidden; margin-top: 5px; color: var(--ink-2); text-overflow: ellipsis; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 600; white-space: nowrap; }
.proxy-security-flags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.proxy-security-flags span { border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; background: #fafbfd; color: var(--muted); font-size: 10px; }
.proxy-security-flags span.configured { border-color: #cfe8df; background: var(--green-soft); color: var(--green); }
.proxy-security-flags i { margin-right: 4px; font-style: normal; }
.proxy-test-state { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; }
.proxy-test-state > div { min-width: 0; flex: 1; }
.proxy-test-state strong { display: block; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; font-size: 11px; font-weight: 600; white-space: nowrap; }
.proxy-test-state small { display: block; overflow: hidden; margin-top: 4px; color: var(--muted-2); text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.proxy-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.proxy-card-actions .text-btn:first-of-type { margin-left: auto; }
.proxy-toggle-field { display: grid; align-content: start; gap: 8px; }
.switch-line { display: flex; min-height: 34px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; background: var(--surface-subtle); color: var(--ink-2); font-size: 12px; font-weight: 400; cursor: pointer; }
.clear-secret { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--red); font-size: 11px; font-weight: 400; cursor: pointer; }
.proxy-form-security { margin: 0; }
.proxy-form-security > span { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 8px; background: #cce7de; color: var(--green); font-size: 10px; font-weight: 700; }

@container (max-width: 900px) {
  .pool-account { grid-template-columns: 28px minmax(0, 1fr) minmax(128px, .58fr) auto; gap: 11px; }
  .pool-account .pool-numbers, .pool-account .pool-issue { display: none; }
}

@container (max-width: 610px) {
  .pool-account { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .pool-account .pool-health { display: none; }
}

@media (max-width: 1060px) {
  .stop-all-hero { grid-template-columns: 1fr; }
  .stop-all-preview { border-top: 1px solid #f0d9dd; border-left: 0; }
  .cleanup-card { grid-template-columns: auto minmax(0, 1fr); }
  .cleanup-count { grid-column: 2; border-left: 0; padding-left: 0; }
  .cleanup-card > button { grid-column: 2; justify-self: start; }
  .proxy-card-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .partition-summary, .proxy-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partition-guide { align-items: flex-start; flex-wrap: wrap; }
  .partition-guide > div { flex-basis: 100%; }
  .cleanup-grid { grid-template-columns: 1fr; }
  .account-detail-actions { align-items: stretch; flex-direction: column; }
  .drawer-action-group { width: 100%; }
}

@media (max-width: 720px) {
  .pool-toolbar-main { align-items: stretch; flex-direction: column; }
  .pool-selection-bar { align-items: flex-start; flex-direction: column; }
  .pool-selection-bar > div { width: 100%; justify-content: space-between; }
  .partition-summary { grid-template-columns: 1fr; }
  .partition-summary article { grid-template-columns: auto auto minmax(0, 1fr); }
  .partition-run-foot { align-items: flex-start; flex-direction: column; }
  .partition-run-foot > div { width: 100%; justify-content: space-between; }
  .stop-all-copy { padding: 22px 20px; }
  .stop-all-preview { padding: 18px; }
  .operation-feedback { grid-template-columns: auto minmax(0, 1fr) auto; }
  .operation-feedback time { display: none; }
  .proxy-scope-note { align-items: flex-start; flex-wrap: wrap; }
  .proxy-scope-note > div { flex-basis: calc(100% - 50px); }
  .proxy-scope-note .text-btn { margin-left: 47px; }
  .proxy-card-actions { align-items: stretch; flex-wrap: wrap; }
  .proxy-card-actions .text-btn:first-of-type { margin-left: 0; }
}

@media (max-width: 520px) {
  .pool-account { grid-template-columns: 25px minmax(0, 1fr) auto; gap: 7px; }
  .pool-select-control { width: 23px; }
  .partition-summary article { min-height: 74px; padding: 12px; }
  .partition-summary p { display: none; }
  .partition-run-head { align-items: flex-start; flex-direction: column-reverse; }
  .partition-run-metrics span { flex: 1 1 calc(50% - 7px); }
  .partition-result-route { grid-template-columns: 1fr; }
  .partition-result-route i { transform: rotate(90deg); }
  .advanced-grid { grid-template-columns: 1fr; }
  .stop-all-preview { grid-template-columns: 1fr; }
  .stop-all-preview .danger-button { grid-column: auto; }
  .confirm-preview-grid { grid-template-columns: 1fr; }
  .cleanup-card { padding: 13px; }
  .proxy-summary { grid-template-columns: 1fr 1fr; gap: 7px; }
  .proxy-summary article { min-height: 82px; padding: 12px; }
  .proxy-summary strong { font-size: 20px; }
  .proxy-card { padding: 13px; }
  .proxy-card-actions .ghost { flex: 1; }
  .operation-feedback { grid-template-columns: auto minmax(0, 1fr); }
  .operation-feedback > button { grid-column: 2; justify-self: start; }
  .drawer-action-group .ghost, .drawer-action-group .primary { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
