:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eef4ff;
  --ink: #152033;
  --muted: #6e7b91;
  --line: #e4e9f1;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --green: #16a36a;
  --orange: #f59e0b;
  --purple: #7c5ce5;
  --red: #e24b4b;
  --shadow: 0 6px 22px rgba(30, 48, 78, .055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, textarea:disabled { cursor: not-allowed; opacity: .62; }
svg { width: 20px; height: 20px; fill: currentColor; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.login-view { min-height: 100vh; padding: 24px; background: #edf3fc; }
.login-layout { width: min(1180px, 100%); min-height: calc(100vh - 48px); display: grid; grid-template-columns: 1.08fr .92fr; margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid rgba(215,225,240,.85); border-radius: 26px; box-shadow: 0 30px 80px rgba(35,57,95,.14); }
.login-visual { position: relative; min-height: 680px; display: flex; flex-direction: column; padding: 48px 54px; overflow: hidden; color: #fff; background: linear-gradient(145deg, #153f9f 0%, #2563eb 48%, #6d5ce7 100%); }
.login-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.18), transparent 28%), linear-gradient(120deg, transparent 55%, rgba(255,255,255,.07)); pointer-events: none; }
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; }
.login-brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: #2563eb; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(9,28,79,.22); }
.login-brand-mark svg { width: 25px; height: 25px; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { font-size: 20px; letter-spacing: .4px; }
.login-brand span { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.login-copy { position: relative; z-index: 2; margin: auto 0 36px; }
.login-kicker { display: inline-flex; padding: 7px 11px; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.17); border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.login-copy h1 { margin: 22px 0 18px; color: #fff; font-size: clamp(38px, 4vw, 55px); line-height: 1.18; letter-spacing: -1.5px; }
.login-copy p { max-width: 510px; margin: 0; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.9; }
.login-features { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.login-features > div { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 13px 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; backdrop-filter: blur(10px); }
.login-features i { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.14); border-radius: 10px; }
.login-features i svg { width: 17px; height: 17px; }
.login-features b, .login-features small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-features b { font-size: 11px; }
.login-features small { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 8px; }
.login-orb { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.orb-one { top: 105px; right: -105px; width: 330px; height: 330px; box-shadow: inset 0 0 70px rgba(255,255,255,.06); }
.orb-two { right: 95px; bottom: -155px; width: 300px; height: 300px; background: rgba(255,255,255,.035); }
.login-panel { display: grid; place-items: center; padding: 55px; background: linear-gradient(160deg, #fff, #f8faff); }
.login-card { width: min(390px, 100%); }
.login-mobile-brand { display: none; }
.login-heading > span { display: inline-flex; padding: 6px 10px; color: #255fd3; background: #edf3ff; border-radius: 20px; font-size: 11px; font-weight: 800; }
.login-heading h2 { margin: 18px 0 8px; color: #17233a; font-size: 34px; letter-spacing: -.6px; }
.login-heading p { margin: 0 0 30px; color: #8490a3; font-size: 13px; }
.login-card > label { display: block; margin-bottom: 18px; color: #46536a; font-size: 13px; font-weight: 700; }
.login-input { height: 50px; display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 0 14px; background: #fff; border: 1px solid #dce4ef; border-radius: 11px; transition: .2s; }
.login-input:focus-within { border-color: #79a2fa; box-shadow: 0 0 0 4px rgba(37,99,235,.09); }
.login-input svg { width: 18px; height: 18px; color: #8b98aa; }
.login-input input { width: 100%; height: 100%; padding: 0; color: #26344a; background: transparent; border: 0; outline: 0; font-size: 14px; }
.login-input input::placeholder { color: #aab3c1; }
.login-error { min-height: 22px; margin: -4px 0 8px; color: #d54848; font-size: 12px; }
.login-submit { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: linear-gradient(110deg, #2563eb, #5c62ea); border: 0; border-radius: 11px; box-shadow: 0 12px 25px rgba(37,99,235,.23); font-size: 14px; font-weight: 800; transition: .2s; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(37,99,235,.28); }
.login-submit svg { width: 17px; height: 17px; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: #98a3b2; font-size: 10px; }
.login-security svg { width: 14px; height: 14px; color: #20a872; }
body:not(.authenticated) .app-shell { display: none; }
body.authenticated .login-view { display: none; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 238px;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.brand {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  margin-bottom: 28px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #3679f6, #1855dc);
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand strong { display: block; font-size: 17px; letter-spacing: .5px; }
.brand span { display: block; margin-top: 3px; color: #9aa5b6; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }

.main-nav { display: flex; flex-direction: column; gap: 6px; }
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 46px;
  padding: 0 13px;
  color: #718097;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: .2s;
}
.main-nav a:hover { color: var(--blue); background: #f5f8fd; }
.main-nav a.active { color: var(--blue); background: var(--blue-soft); }
.main-nav a.active::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 3px;
  height: 24px;
  background: var(--blue);
  border-radius: 0 4px 4px 0;
}
.main-nav svg { width: 19px; height: 19px; }
.main-nav em {
  margin-left: auto;
  padding: 2px 7px;
  color: #8390a3;
  background: #eef1f5;
  border-radius: 10px;
  font-size: 11px;
  font-style: normal;
}
.sidebar-foot { margin-top: auto; }
.plan-card {
  padding: 15px;
  margin-bottom: 14px;
  border: 1px solid #dfe8fb;
  background: #f8faff;
  border-radius: 9px;
}
.plan-icon { margin-bottom: 10px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.plan-card strong { font-size: 13px; }
.plan-card p { margin: 5px 0 12px; color: #7d8ba1; font-size: 11px; }
.quota { height: 4px; overflow: hidden; background: #e5ebf5; border-radius: 2px; }
.quota span { display: block; width: 64%; height: 100%; background: var(--blue); }
.help-link {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  color: #768399;
  background: transparent;
  border: 0;
  font-size: 13px;
}

.main-area { width: calc(100% - 238px); margin-left: 238px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.account-select, .user-button { display: flex; align-items: center; gap: 10px; }
.account-select { cursor: pointer; }
.account-select { position: relative; }
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #9a73ec, #7153d7);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
}
.avatar-small { width: 31px; height: 31px; background: #edf2fa; color: #67748a; }
.eyebrow { display: block; margin-bottom: 2px; color: #98a2b2; font-size: 10px; }
.account-select strong { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.account-select strong i { width: 7px; height: 7px; background: #2dbb78; border: 2px solid #d9f7e9; border-radius: 50%; }
.chevron { width: 16px; height: 16px; color: #9aa5b6; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.connection { display: flex; align-items: center; gap: 7px; color: #5e6c81; font-size: 12px; }
.connection span { width: 7px; height: 7px; background: #21b773; border-radius: 50%; box-shadow: 0 0 0 4px #e3f7ee; }
.connection b { font-weight: 500; }
.connection.limited { color: #d45a32; }
.connection.limited span { background: #ef6a3a; box-shadow: 0 0 0 4px #fff0e9; }
.user-button { color: #445067; background: transparent; border: 0; }
.user-button span { font-weight: 600; font-size: 12px; }
.mobile-menu { display: none; }
.account-dropdown {
  position: absolute;
  top: calc(100% + 13px);
  left: 0;
  z-index: 30;
  width: 285px;
  padding: 8px;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(25,39,62,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: .18s;
}
.account-select.open .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-title { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px 10px; color: #8793a5; font-size: 9px; }
.dropdown-title button { color: var(--blue); background: transparent; border: 0; font-size: 9px; font-weight: 700; }
#accountDropdownList { max-height: 330px; overflow-y: auto; }
.dropdown-account { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px; color: #425067; background: transparent; border: 0; border-radius: 6px; text-align: left; }
.dropdown-account:hover { background: #f5f8fd; }
.dropdown-account.active { background: var(--blue-soft); }
.dropdown-account .avatar { width: 32px; height: 32px; font-size: 10px; }
.dropdown-account > span { min-width: 0; flex: 1; }
.dropdown-account b, .dropdown-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-account b { margin-bottom: 3px; font-size: 10px; }
.dropdown-account small { color: #939eae; font-size: 8px; }
.dropdown-account > i { width: 7px; height: 7px; background: #b7c1cf; border-radius: 50%; }
.dropdown-account.active > i { background: var(--green); box-shadow: 0 0 0 3px #def6eb; }
.dropdown-account.limited > i, .dropdown-account.limited.active > i { background: #ef6a3a; box-shadow: 0 0 0 3px #fff0e9; }
.dropdown-account.task-running:not(.limited) > i { background: var(--blue); box-shadow: 0 0 0 3px #e4edff; animation: pulse 1.2s infinite; }

main { max-width: 1540px; padding: 28px 34px 50px; margin: 0 auto; }
.page-view { display: none; }
.page-view.active { display: block; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.breadcrumb { margin-bottom: 10px; color: #95a0b1; font-size: 11px; }
.breadcrumb span { margin: 0 6px; color: #c2c9d3; }
h1 { margin: 0; font-size: 27px; line-height: 1.3; letter-spacing: -.5px; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.secondary-btn, .outline-btn, .primary-btn, .danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  font-weight: 650;
  transition: .2s;
}
.secondary-btn { min-height: 38px; padding: 0 15px; color: #536176; background: #fff; border: 1px solid #dce3ec; }
.secondary-btn:hover { color: var(--blue); border-color: #b7caf7; background: #f8faff; }
.outline-btn { height: 35px; padding: 0 12px; color: var(--blue); background: #fff; border: 1px solid #c9d8f8; font-size: 12px; }
.outline-btn:hover { background: var(--blue-soft); }
.outline-btn svg { width: 16px; height: 16px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-row article {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; }
.stat-icon svg { width: 19px; height: 19px; }
.stat-icon.blue { color: var(--blue); background: #edf3ff; }
.stat-icon.purple { color: var(--purple); background: #f3efff; }
.stat-icon.orange { color: #e89000; background: #fff5df; }
.stat-icon.green { color: var(--green); background: #eaf8f2; }
.stat-icon.red { color: #d94b4b; background: #fff0f0; }
.stat-row span { display: block; margin-bottom: 4px; color: #8994a6; font-size: 11px; }
.stat-row strong { font-size: 20px; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.workspace-main { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-heading { min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid #edf0f4; }
.step-num { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 6px; font-size: 12px; font-weight: 750; }
.panel-heading h2 { margin: 0 0 4px; font-size: 15px; }
.panel-heading p { margin: 0; color: #8995a7; font-size: 11px; }
.panel-heading > :last-child { margin-left: auto; }
.rule-panel .panel-heading > :last-child { margin-left: 0; }
.count-badge { padding: 5px 10px; color: #7d899c; background: #f6f8fb; border-radius: 5px; font-size: 11px; }
.count-badge b { color: var(--blue); }
.panel-body { padding: 20px; }
.field-label { display: block; margin-bottom: 8px; color: #364258; font-size: 12px; font-weight: 650; }
.paste-box { position: relative; }
textarea, input {
  color: #263248;
  background: #fff;
  border: 1px solid #d8e0ea;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea:focus, input:focus { border-color: #87a9f5; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
textarea::placeholder, input::placeholder { color: #aeb7c5; }
#recipientInput { width: 100%; min-height: 112px; padding: 13px 110px 13px 14px; resize: vertical; border-radius: 7px; line-height: 1.8; }
.text-btn { position: absolute; right: 11px; bottom: 11px; padding: 7px 10px; color: var(--blue); background: #edf3ff; border: 0; border-radius: 5px; font-size: 11px; font-weight: 700; }
.text-btn:hover { background: #e0eaff; }
.field-note { margin: 8px 0 14px; color: #8b96a8; font-size: 11px; }
.field-note span { margin-right: 6px; color: #d78900; }
.recipient-tags { min-height: 38px; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 2px; }
.empty-tags { color: #a2acbb; font-size: 11px; align-self: center; }
.recipient-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 10px; color: #46536a; background: #f5f7fa; border: 1px solid #e4e8ef; border-radius: 5px; font-size: 11px; }
.recipient-tag button { display: grid; place-items: center; padding: 0; color: #9da7b6; background: transparent; border: 0; }
.recipient-tag button:hover { color: var(--red); }
.recipient-tag svg { width: 13px; height: 13px; }

.message-list { display: flex; flex-direction: column; gap: 12px; }
.delivery-mode-switch { display: inline-flex; gap: 5px; padding: 4px; margin-bottom: 14px; background: #f4f7fb; border: 1px solid #e5eaf1; border-radius: 9px; }
.delivery-mode-switch button { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; color: #77859a; background: transparent; border: 0; border-radius: 6px; font-size: 10px; font-weight: 700; transition: .2s; }
.delivery-mode-switch button svg { width: 14px; height: 14px; }
.delivery-mode-switch button:hover { color: var(--blue); }
.delivery-mode-switch button.active { color: var(--blue); background: #fff; box-shadow: 0 2px 7px rgba(38,71,128,.08); }
.forward-message-config { padding: 16px; background: linear-gradient(135deg, #f8fbff, #f5f8ff); border: 1px solid #dce7fb; border-radius: 9px; }
.forward-message-intro { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.forward-message-intro .mini-icon { width: 36px; height: 36px; flex: 0 0 auto; color: var(--blue); background: #e7f0ff; }
.forward-message-intro b, .forward-message-intro span { display: block; }
.forward-message-intro b { margin-bottom: 4px; color: #2c3e5d; font-size: 12px; }
.forward-message-intro span { color: #7f8da3; font-size: 10px; line-height: 1.55; }
.forward-message-fields { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, .5fr); gap: 12px; }
.forward-message-fields label { display: block; color: #56647a; font-size: 10px; font-weight: 700; }
.forward-message-fields input { width: 100%; height: 38px; margin-top: 7px; padding: 0 10px; color: #334158; background: #fff; border: 1px solid #d9e3f3; border-radius: 6px; outline: 0; font-size: 11px; }
.forward-message-fields input:focus { border-color: #8eadf4; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.forward-message-note { margin-top: 14px; }
.message-fixed-suffix.is-hidden { display: none; }
.forward-message-config[hidden], #textMessageConfig[hidden] { display: none; }
.message-list-editor { border: 1px solid #dfe5ed; border-radius: 7px; overflow: hidden; transition: .2s; }
.message-list-editor:focus-within { border-color: #8eadf4; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.message-list-meta { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px; color: #7f8b9e; background: #f8fafc; border-bottom: 1px solid #edf0f4; font-size: 10px; }
.message-list-meta span:first-child { display: flex; align-items: baseline; gap: 8px; }
.message-list-meta b { color: #1760d0; font-weight: 750; }
.message-list-meta small { color: #7f8b9e; font-size: 10px; }
#messageListInput { display: block; width: 100%; min-height: 190px; padding: 12px 13px; border: 0; border-radius: 0; resize: vertical; line-height: 1.8; box-shadow: none !important; }
.message-auto-combine-tip { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 12px 14px; color: #52627a; background: #f2f7ff; border: 1px solid #dce8fb; border-radius: 7px; }
.message-auto-combine-tip > div { display: grid; gap: 3px; }
.message-auto-combine-tip b { color: #1760d0; font-size: 12px; }
.message-auto-combine-tip span { font-size: 10px; line-height: 1.55; }
.message-auto-combine-tip strong { flex: 0 0 auto; padding: 7px 10px; color: #1760d0; background: #fff; border: 1px solid #d8e6fb; border-radius: 6px; font-size: 11px; white-space: nowrap; }
.message-fixed-suffix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fff9ea;
  border: 1px solid #f2e2b6;
  border-radius: 7px;
}
.message-fixed-suffix b,
.message-fixed-suffix small { display: block; }
.message-fixed-suffix b { margin-bottom: 4px; color: #70571e; font-size: 10px; }
.message-fixed-suffix small { color: #90783f; font-size: 9px; line-height: 1.5; }
.message-fixed-suffix input { flex: 0 0 190px; height: 34px; padding: 0 10px; border-color: #ddcda9; border-radius: 6px; font-size: 10px; }
.message-content { border: 1px solid #dfe5ed; border-radius: 7px; overflow: hidden; transition: .2s; }
.message-content:focus-within { border-color: #8eadf4; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.message-meta { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; color: #7f8b9e; background: #f8fafc; border-bottom: 1px solid #edf0f4; font-size: 10px; }
.message-index { color: #55647a; font-weight: 700; }
.message-meta-stats { display: flex; align-items: center; gap: 8px; }
.message-meta-stats > b { color: #1760d0; font-weight: 750; }
.message-meta-stats > i { width: 1px; height: 12px; background: #dfe5ed; }
.message-text { display: block; width: 100%; height: 40px; min-height: 40px; padding: 0 13px; border: 0; border-radius: 0; line-height: 40px; box-shadow: none !important; }
.message-random-tools { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px 10px; padding: 8px 12px; background: #fff; border-top: 1px solid #edf0f4; }
.message-random-tools > span { color: #69778c; font-size: 10px; font-weight: 700; white-space: nowrap; }
.message-random-tools > div { display: flex; flex-wrap: wrap; gap: 6px; }
.message-random-insert { min-height: 28px; padding: 0 9px; color: #1760d0; background: #edf4ff; border: 1px solid #d9e6ff; border-radius: 5px; font-size: 10px; font-weight: 700; }
.message-random-insert:hover { color: #0f4eae; background: #dfeaff; border-color: #c8d9fb; }
.message-random-insert:disabled { color: #a4adba; background: #f2f4f7; border-color: #e3e7ed; cursor: not-allowed; }
.message-random-tools > small { grid-column: 2; color: #909bad; font-size: 9px; line-height: 1.5; }

.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 34px; }
.field-group p { margin: 7px 0 0; color: #9aa4b3; font-size: 10px; }
.range-inputs { display: flex; align-items: center; gap: 9px; }
.range-inputs > div { height: 39px; display: flex; align-items: center; flex: 1; border: 1px solid #d8e0ea; border-radius: 6px; overflow: hidden; }
.range-inputs input { width: 100%; height: 100%; padding: 0 10px; border: 0; box-shadow: none; }
.range-inputs span { padding-right: 10px; color: #8e99aa; font-size: 11px; }
.range-inputs b { color: #9aa5b4; font-size: 11px; font-weight: 500; }
.select-like { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; color: #48556a; border: 1px solid #d8e0ea; border-radius: 6px; font-size: 11px; }
.select-like svg { width: 15px; height: 15px; color: #a1abba; }
.switch-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 35px; height: 20px; flex: 0 0 auto; background: #cbd3de; border-radius: 11px; transition: .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s; }
.switch-row input:checked + .switch { background: var(--blue); }
.switch-row input:checked + .switch i { transform: translateX(15px); }
.switch-row > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.switch-row b { font-size: 11px; }
.switch-row small { color: #929daf; font-size: 9px; }

.task-panel { position: sticky; top: 90px; overflow: hidden; }
.task-head { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #edf0f4; font-weight: 700; }
.status-dot { width: 8px; height: 8px; background: #b5bfcd; border-radius: 50%; }
.task-panel.running .status-dot { background: #25b977; box-shadow: 0 0 0 4px #e1f7ed; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.task-summary { display: flex; align-items: center; gap: 20px; padding: 22px 18px; border-bottom: 1px solid #edf0f4; }
.summary-visual { position: relative; width: 105px; height: 105px; flex: 0 0 auto; }
.summary-visual svg { width: 105px; height: 105px; transform: rotate(-90deg); }
.summary-visual circle { fill: none; stroke: #edf1f6; stroke-width: 8; }
.summary-visual .progress-ring { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset .4s; }
.summary-visual > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.summary-visual strong { font-size: 19px; }
.summary-visual span { margin-top: 2px; color: #97a1b1; font-size: 8px; }
.summary-list { flex: 1; }
.summary-list > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #edf0f4; font-size: 10px; }
.summary-list > div:last-child { border: 0; }
.summary-list span { color: #8d98a9; }
.summary-list b { font-weight: 700; }
.current-send { padding: 16px 18px; border-bottom: 1px solid #edf0f4; }
.current-send > span { display: block; margin-bottom: 10px; color: #8f9aab; font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.idle-state { display: flex; align-items: center; gap: 10px; }
.mini-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 6px; }
.mini-icon svg { width: 16px; height: 16px; }
.idle-state b, .idle-state small { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idle-state b { margin-bottom: 4px; font-size: 11px; }
.idle-state small { color: #929daf; font-size: 9px; }
.task-actions { padding: 18px; }
.primary-btn { width: 100%; height: 44px; color: #fff; background: var(--blue); border: 0; box-shadow: 0 7px 14px rgba(37,99,235,.18); }
.primary-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary-btn:disabled { cursor: not-allowed; background: #9ab5ee; transform: none; box-shadow: none; }
.primary-btn svg, .danger-btn svg, .secondary-btn svg { width: 16px; height: 16px; }
.task-actions > p { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 11px 0 0; color: #98a2b2; font-size: 9px; }
.task-actions > p svg { width: 12px; height: 12px; color: var(--green); }
.running-actions { display: none; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-panel.running .primary-btn { display: none; }
.task-panel.running .running-actions { display: grid; }
.danger-btn { min-height: 38px; color: #d94545; background: #fff4f4; border: 1px solid #ffdada; }
.danger-btn:hover { background: #ffecec; }
.log-box { display: none; border-top: 1px solid #edf0f4; }
.task-panel.started .log-box { display: block; }
.log-heading { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: #fafbfd; font-size: 10px; font-weight: 700; }
.log-heading button { color: #9aa4b3; background: transparent; border: 0; font-size: 9px; }
.log-list { max-height: 180px; overflow-y: auto; padding: 9px 18px 14px; }
.log-empty { padding: 12px 0; color: #a3adbb; text-align: center; font-size: 9px; }
.log-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 7px; align-items: start; padding: 7px 0; border-bottom: 1px solid #f0f2f5; font-size: 9px; }
.log-item i { width: 6px; height: 6px; margin-top: 3px; background: var(--green); border-radius: 50%; }
.log-item b { display: block; margin-bottom: 2px; color: #536176; font-size: 9px; }
.log-item span { color: #9ba5b4; }
.log-item time { color: #a7b0bd; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  color: #fff;
  background: #172033;
  border-radius: 7px;
  box-shadow: 0 12px 36px rgba(15,25,43,.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: .25s;
  font-size: 12px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; color: #50d596; }
.sidebar-mask { display: none; }

.primary-action {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  font-weight: 700;
  box-shadow: 0 7px 16px rgba(37,99,235,.16);
}
.primary-action:hover { background: var(--blue-dark); }
.primary-action svg { width: 16px; height: 16px; }
.trend { margin-top: 4px; color: #8f9bad !important; font-size: 9px !important; }
.trend.up { color: var(--green) !important; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 18px; margin-bottom: 18px; }
.section-title { min-height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #edf0f4; }
.section-title h2 { margin: 0 0 4px; font-size: 14px; }
.section-title p { margin: 0; color: #929daf; font-size: 10px; }
.section-title > span { color: #8490a3; font-size: 10px; }
.fake-chart { position: relative; height: 250px; display: grid; grid-template-columns: 38px 1fr; padding: 24px 24px 14px 18px; }
.chart-scale { height: 180px; display: flex; flex-direction: column; justify-content: space-between; color: #9ba6b6; font-size: 9px; }
.bars { height: 180px; display: flex; align-items: flex-end; justify-content: space-around; border-bottom: 1px solid #e6ebf2; background: repeating-linear-gradient(to bottom, #eef1f5 0, #eef1f5 1px, transparent 1px, transparent 45px); }
.bars > div { position: relative; width: 9%; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bars i, .bars b { width: 9px; border-radius: 3px 3px 0 0; }
.bars i { background: #8eb0fa; }
.bars b { background: var(--blue); }
.bars span { position: absolute; bottom: -24px; color: #8793a6; font-size: 9px; white-space: nowrap; }
.chart-legend { display: flex; justify-content: center; gap: 20px; padding: 0 0 20px; color: #778499; font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-total { background: #8eb0fa; }
.legend-success { background: var(--blue); }
.health-account { display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px; }
.health-account b { display: block; margin-bottom: 5px; font-size: 13px; }
.health-account span { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 9px; }
.health-account span i, .profile-card span i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.health-list { padding: 0 18px; }
.health-list > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #e9edf2; font-size: 10px; }
.health-list span { color: #8d99ab; }
.health-progress { height: 5px; margin: 17px 18px; background: #e9eef6; border-radius: 4px; overflow: hidden; }
.health-progress span { display: block; height: 100%; background: var(--blue); }
.account-health > .outline-btn { width: calc(100% - 36px); margin: 0 18px 18px; }
.plain-link { color: var(--blue); background: transparent; border: 0; font-size: 10px; font-weight: 700; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { padding: 11px 18px; color: #8b97a9; background: #fafbfd; border-bottom: 1px solid #e7ebf1; text-align: left; font-size: 9px; font-weight: 650; }
.data-table td { padding: 15px 18px; color: #5a677b; border-bottom: 1px solid #edf0f4; font-size: 10px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfe; }
.data-table td > b { color: #334057; font-size: 10px; }
.status-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 10px; font-size: 9px; font-style: normal; font-weight: 700; }
.status-pill.success { color: #15915f; background: #e8f7f0; }
.status-pill.stopped { color: #d47b10; background: #fff3df; }
.list-toolbar { min-height: 66px; display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid #edf0f4; }
.search-box { height: 38px; width: 270px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #dce3ec; border-radius: 6px; }
.search-box svg { width: 15px; height: 15px; color: #99a4b4; }
.search-box input { width: 100%; height: 100%; border: 0; box-shadow: none; font-size: 10px; }
.filter-tabs { display: flex; align-items: center; gap: 4px; }
.filter-tabs button { height: 32px; padding: 0 10px; color: #758297; background: transparent; border: 0; border-radius: 5px; font-size: 10px; }
.filter-tabs button.active { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.filter-tabs b { margin-left: 3px; font-size: 9px; }
.list-toolbar > .secondary-btn:last-child { margin-left: auto; }
.contacts-table th:first-child, .contacts-table td:first-child { width: 42px; padding-right: 0; }
.contact-cell { display: flex; align-items: center; gap: 9px; }
.contact-avatar { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; border-radius: 50%; font-size: 9px; font-weight: 700; }
.contact-avatar.c1 { background: #7359d9; }.contact-avatar.c2 { background: #3e91d8; }.contact-avatar.c3 { background: #df8a3d; }.contact-avatar.c4 { background: #2ca578; }.contact-avatar.c5 { background: #cf5e8d; }
.group-tag { padding: 4px 7px; border-radius: 4px; font-size: 9px; }
.blue-tag { color: #2563eb; background: #edf3ff; }.purple-tag { color: #7958d7; background: #f2edff; }.green-tag { color: #188c62; background: #eaf8f2; }
.online-text, .offline-text { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; }
.online-text { color: var(--green); }.offline-text { color: #9ca6b5; }
.online-text i, .offline-text i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.row-action { color: var(--blue); background: transparent; border: 0; font-size: 9px; font-weight: 700; }
.table-footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #8b97a8; border-top: 1px solid #edf0f4; font-size: 9px; }
.table-footer > div { display: flex; gap: 5px; }
.table-footer button { min-width: 28px; height: 28px; color: #6d7a8e; background: #fff; border: 1px solid #dfe5ed; border-radius: 5px; font-size: 9px; }
.table-footer button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.task-id { display: block; margin-top: 4px; color: #9ca6b5; font-size: 8px; font-weight: 400; }
.result-good { color: var(--green); }
.settings-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.profile-card { display: flex; align-items: center; gap: 13px; margin: 20px; padding: 16px; background: #f8faff; border: 1px solid #e3eafb; border-radius: 7px; }
.profile-avatar { width: 48px; height: 48px; font-size: 14px; }
.profile-card h3 { margin: 0 0 4px; font-size: 14px; }
.profile-card p { margin: 0 0 6px; color: #8995a7; font-size: 9px; }
.profile-card span { display: flex; align-items: center; gap: 5px; color: var(--green); font-size: 9px; }
.profile-card .outline-btn { margin-left: auto; }
.settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding: 0 20px 22px; }
.settings-fields .full { grid-column: 1 / -1; }
.settings-fields label, .modal-body label { display: flex; flex-direction: column; gap: 7px; color: #536075; font-size: 10px; font-weight: 650; }
.settings-fields input, .modal-body input, .modal-body select { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #dce3ec; border-radius: 6px; outline: 0; }
.modal-body input[readonly] { color: #7d899c; background: #f4f6f9; }
.setting-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; border-bottom: 1px solid #edf0f4; }
.setting-row:last-child { border-bottom: 0; }
.setting-row b, .setting-row span { display: block; }
.setting-row b { margin-bottom: 4px; font-size: 10px; }
.setting-row > div > span { color: #929daf; font-size: 9px; }
.setting-row .switch-row { margin-left: auto; }
.compact-range { display: flex; align-items: center; gap: 7px; }
.compact-range input { width: 72px; height: 35px; padding: 0 8px; border-radius: 5px; }
.compact-range > span { color: #8f9aab; font-size: 9px; }
.settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(19,30,48,.42); opacity: 0; pointer-events: none; transition: .2s; }
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal-card { width: min(430px, 100%); background: #fff; border-radius: 9px; box-shadow: 0 20px 60px rgba(20,31,49,.24); transform: translateY(10px); transition: .2s; }
.modal-backdrop.show .modal-card { transform: translateY(0); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #edf0f4; }
.modal-head h2 { margin: 0 0 4px; font-size: 15px; }
.modal-head p { margin: 0; color: #929dae; font-size: 9px; }
.modal-head button { display: grid; place-items: center; color: #96a1b0; background: transparent; border: 0; }
.modal-head svg { width: 18px; height: 18px; }
.modal-body { display: flex; flex-direction: column; gap: 15px; padding: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; background: #fafbfd; border-top: 1px solid #edf0f4; }
.account-browser-backdrop { align-items: center; }
.account-browser-card { width: min(1120px, 96vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.account-browser-head { flex: 0 0 auto; }
.account-browser-head h2 { font-size: 26px; }
.account-browser-head p { font-size: 13px; }
.modal-head .browser-close-btn { min-height: 36px; display: inline-flex; align-items: center; padding: 0 13px; color: #35445a; background: #f1f3f7; border-radius: 9px; font-size: 13px; font-weight: 700; }
.account-browser-body { min-height: 0; padding: 18px; overflow: auto; background: #f8faff; }
.account-browser-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; background: #fff; border: 1px solid #dfe6f1; border-radius: 10px; }
.account-browser-info > div { min-width: 0; padding: 12px; background: #f8faff; border: 1px solid #e1e7f0; border-radius: 9px; }
.account-browser-info span, .account-browser-info b { display: block; }
.account-browser-info span { color: #78869a; font-size: 13px; }
.account-browser-info b { margin-top: 7px; overflow: hidden; color: #18243a; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.account-browser-info .browser-info-loading { grid-column: 1 / -1; color: #7c899c; text-align: center; }
.account-browser-info .browser-info-loading.failed { color: #d34b4b; }
.account-browser-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.account-browser-tabs button { min-height: 38px; padding: 0 16px; color: #2865d4; background: #edf3ff; border: 0; border-radius: 8px; font-size: 13px; font-weight: 700; }
.account-browser-tabs button.active { color: #fff; background: var(--blue); }
.account-browser-panel { display: none; padding: 14px; background: #fff; border: 1px solid #dfe6f1; border-radius: 10px; }
.account-browser-panel.active { display: block; }
.account-browser-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.account-browser-toolbar span, .account-message-label { color: #7b889b; font-size: 12px; }
.account-browser-table { max-height: 420px; overflow: auto; border: 1px solid #e5eaf1; border-radius: 7px; }
.account-browser-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.account-browser-table th { position: sticky; top: 0; z-index: 1; padding: 11px 12px; color: #66758a; background: #f7f9fc; border-bottom: 1px solid #e3e8ef; text-align: left; font-size: 12px; }
.account-browser-table td { padding: 11px 12px; color: #526078; border-bottom: 1px solid #edf0f4; font-size: 12px; line-height: 1.55; vertical-align: top; }
.account-browser-table td b, .account-browser-table td small { display: block; }
.account-browser-table td b { color: #28374e; font-size: 13px; }
.account-browser-table td small { margin-top: 3px; color: #8793a5; font-size: 11px; }
.account-browser-table code { color: #34445d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.browser-empty { padding: 35px !important; color: #909bac !important; text-align: center !important; }
.browser-empty.failed { color: #d34b4b !important; }
.browser-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.browser-row-actions button { min-height: 31px; padding: 0 9px; color: #1760d0; background: #edf4ff; border: 0; border-radius: 6px; font-size: 11px; font-weight: 700; }
.browser-row-actions button.danger { color: #fff; background: #c62d23; }
.account-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-action-card { min-width: 0; padding: 16px; background: #f9fbff; border: 1px solid #e2e8f2; border-radius: 9px; }
.account-action-card h3 { margin: 0 0 13px; color: #26354c; font-size: 16px; }
.account-action-card p { margin: 0 0 14px; color: #7f8c9f; font-size: 12px; line-height: 1.7; }
.account-action-card label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; color: #536176; font-size: 12px; font-weight: 650; }
.account-action-card input, .account-action-card textarea { width: 100%; padding: 10px 11px; border: 1px solid #dce3ec; border-radius: 7px; outline: 0; resize: vertical; }
.account-action-card > div:last-child { display: flex; align-items: center; gap: 10px; }
.account-action-card > div:last-child > span { color: #778599; font-size: 11px; }
.account-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.account-message-tools { display: grid; grid-template-columns: auto auto minmax(220px, 1fr) 100px auto auto; align-items: center; gap: 9px; margin-bottom: 10px; }
.account-message-tools input, .account-message-tools select { height: 38px; padding: 0 10px; border: 1px solid #dce3ec; border-radius: 6px; }
.account-unread-filter { display: inline-flex; align-items: center; gap: 5px; color: #58667b; font-size: 12px; white-space: nowrap; }
.account-unread-filter input { width: auto; height: auto; }
.account-message-label { margin-bottom: 10px; }
.account-message-table { max-height: 470px; }
.browser-message-text { max-width: 520px; overflow-wrap: anywhere; color: #3d4b61; white-space: pre-wrap; }
.browser-message-text .telegram-message-link { color: #1760d0; font-weight: 700; text-decoration: none; }
.browser-message-text .telegram-message-link:hover { text-decoration: underline; }
.text-stat { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px !important; }
.account-toolbar-note { display: flex; align-items: center; gap: 7px; color: #7d899c; font-size: 9px; }
.account-toolbar-note i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px #e4f8ef; }
.account-table td { min-height: 70px; }
.account-primary { display: flex; align-items: center; gap: 10px; }
.account-primary .avatar { width: 34px; height: 34px; font-size: 10px; }
.account-primary b, .account-primary small { display: block; }
.account-primary b { margin-bottom: 4px; color: #2f3c52; font-size: 10px; }
.account-primary b em { margin-left: 5px; padding: 2px 5px; color: var(--blue); background: var(--blue-soft); border-radius: 7px; font-size: 7px; font-style: normal; }
.account-primary b .source-mark { color: #7658d5; background: #f1edff; }
.account-primary small { color: #8d99aa; font-size: 8px; }
.file-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.file-badge { padding: 4px 7px; color: #168e61; background: #e8f8f0; border-radius: 9px; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.account-health-cell b, .account-health-cell span { display: block; }
.account-health-cell b { width: max-content; margin-bottom: 4px; padding: 4px 7px; color: #168e61; background: #e8f8f0; border-radius: 9px; font-size: 8px; }
.account-health-cell span { color: #79869a; font-size: 9px; }
.account-note b, .account-note span { display: block; }
.account-note b { margin-bottom: 4px; color: #59667a; font-size: 9px; font-weight: 600; }
.account-note span { color: #929dae; font-size: 8px; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.account-actions button { height: 36px; padding: 0 12px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.activate-account { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.activate-account.current { color: #169161; background: #e8f8f0; border-color: #d4f1e3; cursor: default; }
.telegram-web-account { color: #fff; background: #149b70; border: 1px solid #149b70; }
.telegram-web-account:hover { background: #0f865f; border-color: #0f865f; }
.telegram-web-account:disabled { color: #97a3b4; background: #eef2f6; border-color: #dfe5ed; cursor: not-allowed; }
.edit-account { color: #145fd1; background: #edf4ff; border: 1px solid #dce8fb; }
.edit-account.current { color: #168d60; background: #e8f8f0; border-color: #d5f0e2; }
.relogin-account { color: #fff; background: #16a36d; border: 1px solid #16a36d; }
.relogin-account:disabled { opacity: .65; cursor: wait; }
.check-account { color: var(--blue); background: #eef4ff; border: 1px solid #e0eafa; }
.delete-account { color: #fff; background: #c72b21; border: 1px solid #c72b21; }
.delete-account:disabled { color: #8995a6; background: #f3f5f8; border-color: #e8ebf0; opacity: 1; }
.account-help { display: flex; align-items: center; gap: 10px; margin: 16px 18px; padding: 12px; background: #f8faff; border: 1px solid #e5ebf6; border-radius: 6px; }
.account-help b, .account-help span { display: block; }
.account-help b { margin-bottom: 4px; font-size: 9px; }
.account-help span { color: #8995a7; font-size: 8px; line-height: 1.5; }
.account-help .account-web-help { margin-top: 4px; color: #4a76c8; }
.account-health-cell b.limited { color: #ce512e; background: #fff0e9; }
.account-health-cell b.recovery { color: #ca7a13; background: #fff4df; }
.limit-time { margin-top: 4px; color: #c75f3c !important; line-height: 1.45; }
.loading-cell { padding: 42px !important; color: #98a3b3 !important; text-align: center !important; }
.account-upload-card { width: min(600px, 100%); }
.upload-drop { min-height: 145px; display: flex !important; align-items: center; justify-content: center; gap: 6px !important; padding: 20px; color: #536176; background: #f8faff; border: 1px dashed #b9cbef; border-radius: 7px; text-align: center; cursor: pointer; transition: .2s; }
.upload-drop:hover, .upload-drop.dragover { background: #f0f5ff; border-color: var(--blue); }
.upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--blue); background: #e8f0ff; border-radius: 50%; }
.upload-icon svg { width: 18px; height: 18px; }
.upload-drop b { margin-top: 4px; color: #3f4d63; font-size: 11px; }
.upload-drop span { color: #8f9aac; font-size: 8px; font-weight: 400; }
.upload-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-form-grid .full { grid-column: 1 / -1; }
.upload-security { display: flex; align-items: center; gap: 7px; padding: 10px; color: #758297; background: #f5f8fc; border-radius: 5px; font-size: 8px; }
.upload-security svg { width: 13px; height: 13px; color: var(--green); }
.history-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.history-summary > * { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 14px 17px; color: var(--ink); background: #fff; border: 1px solid var(--line); text-align: left; }
.history-summary-card { cursor: pointer; transition: .18s; }
.history-summary-card:hover { border-color: #b9cbf4; box-shadow: 0 5px 16px rgba(32,57,99,.06); }
.history-summary-card.active { border-color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.history-summary-card.running.active { border-color: #7c5ce5; box-shadow: inset 0 -3px 0 #7c5ce5; }
.history-summary-card.success.active { border-color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }
.history-summary-card.failed.active { border-color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.history-summary span { color: #7e8a9d; font-size: 12px; }
.history-summary strong { font-size: 22px; }
.history-summary .running strong { color: #6e4bd5; }
.history-summary .success strong { color: var(--green); }
.history-summary .failed strong { color: var(--red); }
.history-toolbar { min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #edf0f4; }
.history-search { width: min(520px, 48%); }
.history-search input { font-size: 15px; }
.history-toolbar .secondary-btn { min-height: 40px; font-size: 14px; }
.history-toolbar #refreshHistory { margin-left: auto; }
.history-table { table-layout: fixed; }
.history-table th { font-size: 14px; }
.history-table td { padding-top: 18px; padding-bottom: 18px; font-size: 13px; }
.history-table th:nth-child(1) { width: 160px; }
.history-table th:nth-child(2) { width: 245px; }
.history-table th:nth-child(3) { width: 215px; }
.history-table th:nth-child(4) { width: 145px; }
.history-table th:nth-child(5) { width: auto; }
.history-table th:nth-child(6) { width: 110px; }
.history-table td { white-space: normal; }
.task-log-main-row.expanded td { background: #fbfcff; border-bottom-color: transparent; }
.task-log-time b, .task-log-time span,
.task-log-name b, .task-log-name span, .task-log-name small { display: block; }
.task-log-time b { color: #3b4960; font-size: 13px; font-weight: 600; }
.task-log-time span { margin-top: 5px; color: #96a0af; font-size: 11px; }
.task-log-name b { margin-bottom: 4px; color: #2d3a50; font-size: 14px; }
.task-log-name span { color: #5b6980; font-size: 12px; }
.task-log-name small { margin-top: 4px; color: #9aa4b2; font-size: 11px; }
.task-log-progress > div { display: flex; align-items: center; justify-content: space-between; color: #3f4d63; }
.task-log-progress > div b { font-size: 13px; }
.task-log-progress > div span { color: #7f8b9e; font-size: 11px; }
.task-log-progress > em { display: block; height: 6px; margin: 7px 0; overflow: hidden; background: #e9edf3; border-radius: 6px; }
.task-log-progress > em i { display: block; height: 100%; background: linear-gradient(90deg, #2f6df4, #6c8ff8); border-radius: inherit; }
.task-log-progress > small { display: flex; flex-wrap: wrap; gap: 8px; color: #8793a5; font-size: 11px; }
.task-log-progress > small .ok { color: #168d60; }
.task-log-progress > small .bad { color: #d64e4e; }
.task-status-badge { display: inline-flex; align-items: center; width: max-content; padding: 6px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.task-status-badge.running { color: #285fcc; background: #eaf1ff; }
.task-status-badge.waiting { color: #7c59bf; background: #f1ecff; }
.task-status-badge.paused { color: #ba7216; background: #fff3dd; }
.task-status-badge.success { color: #168d60; background: #e8f8f0; }
.task-status-badge.stopped { color: #69778b; background: #eef1f5; }
.task-status-badge.failed { color: #d44747; background: #fff0f0; }
.task-next-time { display: block; width: max-content; margin-top: 7px; padding: 7px 9px; color: #6d55a9; background: #f5f1ff; border: 1px solid #ebe3ff; border-radius: 7px; font-size: 11px; line-height: 1.4; }
.task-next-time b, .task-next-time span, .task-next-time em { display: block; }
.task-next-time b { margin-bottom: 2px; font-size: 10px; }
.task-next-time span { color: #4f3b88; font-weight: 750; white-space: nowrap; }
.task-next-time em { margin-top: 2px; color: #9385b5; font-size: 9px; font-style: normal; }
.task-last-result { display: -webkit-box; max-width: 100%; overflow: hidden; color: #536176; font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-last-result.failed { color: #cf5353; }
.task-log-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; color: var(--blue); background: #edf3ff; border: 0; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.task-log-toggle svg { width: 14px; height: 14px; transition: transform .18s; }
.task-log-main-row.expanded .task-log-toggle svg { transform: rotate(180deg); }
.task-log-detail-row > td { padding: 0 14px 16px !important; background: #fbfcff; }
.execution-log-detail { overflow: hidden; background: #fff; border: 1px solid #dfe6f1; border-radius: 8px; box-shadow: 0 8px 24px rgba(35,55,90,.06); }
.execution-detail-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 15px; background: #f7f9fd; border-bottom: 1px solid #e8edf4; }
.execution-detail-head > div b, .execution-detail-head > div span { display: block; }
.execution-detail-head > div b { color: #2d3b51; font-size: 14px; }
.execution-detail-head > div span { margin-top: 3px; color: #96a0b0; font-size: 11px; }
.execution-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #edf0f4; }
.execution-meta-grid > div { min-width: 0; padding: 13px 15px; border-right: 1px solid #edf0f4; }
.execution-meta-grid > div:last-child { border-right: 0; }
.execution-meta-grid span, .execution-meta-grid b, .execution-meta-grid small { display: block; }
.execution-meta-grid span { color: #8b96a8; font-size: 11px; }
.execution-meta-grid b { margin-top: 5px; overflow: hidden; color: #3c4a60; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.execution-meta-grid small { margin-top: 4px; color: #929dad; font-size: 11px; line-height: 1.4; }
.execution-send-detail { border-bottom: 1px solid #edf0f4; }
.execution-send-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; background: #fbfcff; }
.execution-send-title b { color: #35445b; font-size: 13px; }
.execution-send-title span { color: #8d98a9; font-size: 11px; }
.execution-send-table-wrap { overflow-x: auto; }
.execution-send-table { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; }
.execution-send-table th { padding: 9px 12px; color: #7e8a9c; background: #f7f9fc; border-top: 1px solid #edf0f4; border-bottom: 1px solid #e7ebf1; font-size: 10px; text-align: left; }
.execution-send-table td { padding: 10px 12px; color: #58677b; border-bottom: 1px solid #eef1f5; font-size: 11px; line-height: 1.5; vertical-align: top; word-break: break-word; }
.execution-send-table tbody tr:last-child td { border-bottom: 0; }
.execution-send-table th:nth-child(1) { width: 18%; }
.execution-send-table th:nth-child(2) { width: 20%; }
.execution-send-table th:nth-child(3) { width: 17%; }
.execution-send-table th:nth-child(4) { width: 13%; }
.execution-send-table th:nth-child(5) { width: 32%; }
.execution-send-table td b, .execution-send-table td small { display: block; }
.execution-send-table td b { color: #35445b; font-size: 11px; }
.execution-send-table td small { margin-top: 2px; color: #97a1b0; font-size: 9px; }
.execution-sent-message,
.execution-event-message { padding: 7px 9px; color: #3d4b61; background: #f5f8fd; border: 1px solid #e2e8f2; border-radius: 6px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.execution-sent-message { margin-bottom: 5px; font-size: 11px; }
.execution-send-note { margin-top: 0 !important; }
.execution-event-message { margin-top: 5px; font-size: 11px; }
.execution-sent-message .telegram-message-link,
.execution-event-message .telegram-message-link { color: #1760d0; font-weight: 700; text-decoration: none; }
.send-result { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 12px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.send-result.success { color: #168d60; background: #e9f8f1; }
.send-result.failed { color: #cf4f4f; background: #fff0f0; }
.send-result.waiting { color: #c47713; background: #fff4df; }
.send-result.skipped { color: #9a6817; background: #fff5e5; }
.execution-send-empty { padding: 24px !important; color: #98a2b1 !important; text-align: center; }
.execution-timeline { padding: 12px 15px 14px; }
.execution-event { position: relative; display: grid; grid-template-columns: 8px 130px 1fr; gap: 10px; min-height: 46px; padding: 6px 0 8px; }
.execution-event::before { content: ""; position: absolute; top: 18px; bottom: -10px; left: 3px; width: 1px; background: #e0e6ef; }
.execution-event:last-child::before { display: none; }
.execution-event > i { position: relative; z-index: 1; width: 8px; height: 8px; margin-top: 4px; background: #8ca1c2; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #dfe6f2; }
.execution-event.running > i, .execution-event.waiting > i { background: var(--blue); box-shadow: 0 0 0 2px #d8e4ff; }
.execution-event.success > i { background: var(--green); box-shadow: 0 0 0 2px #d9f1e6; }
.execution-event.failed > i { background: var(--red); box-shadow: 0 0 0 2px #f8dcdc; }
.execution-event.skipped > i, .execution-event.paused > i { background: #e49a2a; box-shadow: 0 0 0 2px #f8e6c8; }
.execution-event time { color: #929dad; font-size: 11px; line-height: 1.5; }
.execution-event div b, .execution-event div span { display: block; }
.execution-event div b { color: #3c4a60; font-size: 12px; }
.execution-event div span { margin-top: 3px; color: #7f8b9d; font-size: 12px; line-height: 1.55; }
.history-error { color: #d05a5a; font-size: 10px; }
.history-empty { padding: 55px 20px !important; color: #929dae !important; text-align: center !important; }
.history-table + .table-footer span { font-size: 13px; }

/* 全站可读性增强 */
body { font-size: 16px; }
.main-nav a { font-size: 15px; }
.plan-card strong { font-size: 15px; }
.plan-card p, .help-link { font-size: 13px; }
.eyebrow { font-size: 12px; }
.account-select strong { font-size: 15px; }
.connection, .user-button span { font-size: 14px; }
.breadcrumb { font-size: 13px; }
h1 { font-size: 32px; }
.page-heading p { font-size: 15px; }
.stat-row span { font-size: 13px; }
.stat-row strong { font-size: 24px; }
.trend { font-size: 11px !important; }
.panel-heading h2, .section-title h2 { font-size: 19px; }
.panel-heading p, .section-title p { font-size: 13px; }
.field-label { font-size: 14px; }
textarea, input, select, .select-like { font-size: 14px; }
.field-note, .field-group p { font-size: 13px; }
.count-badge, .recipient-tag { font-size: 13px; }
.message-meta { font-size: 12px; }
.text-btn, .outline-btn, .secondary-btn, .primary-action { font-size: 13px; }
.switch-row b { font-size: 13px; }
.switch-row small { font-size: 11px; }
.task-head { font-size: 16px; }
.summary-list > div { font-size: 12px; }
.idle-state b { font-size: 13px; }
.idle-state small, .task-actions > p { font-size: 11px; }
.section-title > span, .plain-link { font-size: 12px; }
.data-table th { font-size: 13px; }
.data-table td, .data-table td > b { font-size: 14px; }
.status-pill, .group-tag, .online-text, .offline-text, .row-action { font-size: 11px; }
.search-box input, .filter-tabs button { font-size: 13px; }
.table-footer { font-size: 12px; }
.table-footer button { font-size: 11px; }
.contact-avatar, .account-primary .avatar { font-size: 12px; }
.account-primary b { font-size: 14px; }
.account-primary small, .account-note span, .account-health-cell span { font-size: 12px; }
.account-note b { font-size: 13px; }
.file-badge, .account-health-cell b { font-size: 11px; }
.account-actions button { font-size: 12px; }
.account-toolbar-note, .account-help b { font-size: 13px; }
.account-help span { font-size: 12px; }
.settings-fields label, .modal-body label { font-size: 13px; }
.setting-row b { font-size: 13px; }
.setting-row > div > span { font-size: 11px; }
.modal-head h2 { font-size: 19px; }
.modal-head p { font-size: 12px; }
.upload-drop b { font-size: 14px; }
.upload-drop span, .upload-security { font-size: 11px; }
.dropdown-title, .dropdown-title button { font-size: 11px; }
.dropdown-account b { font-size: 13px; }
.dropdown-account small { font-size: 11px; }

/* 账号管理页采用更紧凑的表格字号，避免健康说明和操作列过度拥挤 */
.page-view[data-page="accounts"] .account-stats span { font-size: 11px; }
.page-view[data-page="accounts"] .account-stats strong { font-size: 20px; }
.page-view[data-page="accounts"] .list-toolbar { padding-top: 12px; padding-bottom: 12px; }
.page-view[data-page="accounts"] .search-box input { font-size: 11px; }
.page-view[data-page="accounts"] .account-toolbar-note { font-size: 11px; }
.page-view[data-page="accounts"] .list-toolbar .secondary-btn { min-height: 34px; font-size: 11px; }
.page-view[data-page="accounts"] .account-table { min-width: 1120px; table-layout: fixed; }
.page-view[data-page="accounts"] .account-table th { padding: 10px 14px; font-size: 11px; }
.page-view[data-page="accounts"] .account-table td {
  min-height: 0;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.45;
  vertical-align: middle;
  white-space: normal;
}
.page-view[data-page="accounts"] .account-table th:nth-child(1) { width: 17%; }
.page-view[data-page="accounts"] .account-table th:nth-child(2) { width: 7%; }
.page-view[data-page="accounts"] .account-table th:nth-child(3) { width: 42%; }
.page-view[data-page="accounts"] .account-table th:nth-child(4) { width: 11%; }
.page-view[data-page="accounts"] .account-table th:nth-child(5) { width: 8%; }
.page-view[data-page="accounts"] .account-table th:nth-child(6) { width: 15%; }
.page-view[data-page="accounts"] .account-primary { gap: 9px; }
.page-view[data-page="accounts"] .account-primary .avatar { width: 31px; height: 31px; font-size: 10px; }
.page-view[data-page="accounts"] .account-primary b { margin-bottom: 3px; font-size: 12px; }
.page-view[data-page="accounts"] .account-primary b em { font-size: 7px; }
.page-view[data-page="accounts"] .account-primary small { font-size: 10px; }
.page-view[data-page="accounts"] .file-badges { gap: 4px; }
.page-view[data-page="accounts"] .file-badge { padding: 3px 6px; font-size: 9px; }
.page-view[data-page="accounts"] .account-health-cell b { padding: 3px 6px; font-size: 9px; }
.page-view[data-page="accounts"] .account-health-cell span {
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.page-view[data-page="accounts"] .account-note b { margin-bottom: 3px; font-size: 11px; }
.page-view[data-page="accounts"] .account-note span { font-size: 10px; }
.page-view[data-page="accounts"] .account-actions { gap: 5px; }
.page-view[data-page="accounts"] .account-actions button {
  height: 31px;
  padding: 0 9px;
  font-size: 10px;
}
.page-view[data-page="accounts"] .account-help b { font-size: 11px; }
.page-view[data-page="accounts"] .account-help span { font-size: 10px; }

/* 横向后台布局 */
.sidebar { display: none; }
.main-area { width: 100%; margin-left: 0; }
.topbar { padding: 0 max(24px, calc((100vw - 1480px) / 2)); }
.top-brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.top-brand .brand-mark { width: 36px; height: 36px; }
.top-brand strong { display: block; font-size: 16px; }
.top-brand span { display: block; margin-top: 2px; color: #98a3b4; font-size: 9px; letter-spacing: .7px; text-transform: uppercase; }
.topbar .account-select { margin-right: auto; margin-left: 34px; }
.horizontal-nav { position: sticky; top: 72px; z-index: 9; display: flex; align-items: center; gap: 8px; max-width: 1540px; padding: 12px 34px 10px; margin: 0 auto; background: rgba(244,247,251,.94); backdrop-filter: blur(10px); }
.horizontal-nav a { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; color: #66758b; background: #edf3ff; border-radius: 19px; text-decoration: none; font-size: 13px; font-weight: 700; transition: .18s; }
.horizontal-nav a svg { width: 16px; height: 16px; }
.horizontal-nav a:hover { color: var(--blue); background: #e3ecff; }
.horizontal-nav a.active { color: #fff; background: var(--blue); box-shadow: 0 6px 14px rgba(37,99,235,.18); }
.page-view[data-page="bulk"] { max-width: 1540px; }
.page-view[data-page="bulk"] > .bulk-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.bulk-account-health-card strong { color: var(--green); font-size: 18px; }
.bulk-account-health-card.abnormal strong { color: var(--red); }
.page-view[data-page="bulk"] .workspace-grid { grid-template-columns: minmax(420px, .86fr) minmax(690px, 1.34fr); gap: 18px; }
.page-view[data-page="bulk"] .task-panel { display: none; }
.page-view[data-page="bulk"] .workspace-main { gap: 14px; }
.page-view[data-page="bulk"] .panel-heading { min-height: 68px; padding: 14px 17px; }
.page-view[data-page="bulk"] .panel-body { padding: 16px 17px; }
.builder-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 17px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.builder-submit-bar b, .builder-submit-bar span { display: block; }
.builder-submit-bar b { margin-bottom: 4px; font-size: 12px; }
.builder-submit-bar span { color: #8c98a9; font-size: 10px; }
.builder-submit-bar .primary-action { min-width: 190px; }
.task-account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.task-account-toolbar b, .task-account-toolbar span { display: block; }
.task-account-toolbar b { margin-bottom: 3px; color: #334158; font-size: 13px; }
.task-account-toolbar span { color: #8b97a8; font-size: 10px; }
.task-account-toolbar > div:last-child { display: flex; gap: 7px; }
.task-account-toolbar .secondary-btn { min-height: 34px; padding: 0 11px; font-size: 10px; }
.task-account-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 270px;
  padding: 2px;
  overflow-y: auto;
}
.task-account-option {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 11px;
  color: #435168;
  background: #f8faff;
  border: 1px solid #e2e8f1;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.task-account-option:hover { border-color: #b9cdf9; }
.task-account-option.selected {
  background: #f0f5ff;
  border-color: #7ea5f8;
  box-shadow: 0 0 0 2px rgba(47,109,244,.08);
}
.task-account-option.disabled {
  cursor: not-allowed;
  opacity: .58;
  background: #f5f6f8;
}
.task-account-option input { position: absolute; opacity: 0; pointer-events: none; }
.task-account-option .avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #5a89f8, #2f6df4);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.task-account-option b, .task-account-option small { display: block; }
.task-account-option b {
  overflow: hidden;
  color: #334158;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-account-option small {
  margin-top: 4px;
  overflow: hidden;
  color: #8a96a7;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-account-option > i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: transparent;
  background: #fff;
  border: 1px solid #cbd5e3;
  border-radius: 5px;
  font-style: normal;
}
.task-account-option.selected > i { color: #fff; background: var(--blue); border-color: var(--blue); }
.task-account-option.selected > i::before { content: "✓"; font-size: 11px; font-weight: 900; }
.task-account-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: #8a96a8;
  background: #f8faff;
  border: 1px dashed #d8e0eb;
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
}
.task-account-order-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 10px 11px;
  color: #65738a;
  background: #f5f8ff;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.55;
}
.task-account-order-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; color: var(--blue); }
.single-interval-input {
  height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e0ea;
  border-radius: 7px;
}
.single-interval-input input { width: 100%; height: 100%; padding: 0 11px; border: 0; outline: 0; }
.single-interval-input span { color: #748196; text-align: center; font-size: 11px; }
.send-task-list-panel { min-width: 0; align-self: start; }
.task-list-title { min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; border-bottom: 1px solid #edf0f4; }
.task-list-title h2 { margin: 0 0 4px; font-size: 18px; }
.task-list-title p { margin: 0; color: #8995a7; font-size: 11px; }
.send-task-table { table-layout: fixed; }
.send-task-table th:nth-child(1) { width: 29%; }
.send-task-table th:nth-child(2) { width: 19%; }
.send-task-table th:nth-child(3) { width: 24%; }
.send-task-table th:nth-child(4) { width: 12%; }
.send-task-table th:nth-child(5) { width: 16%; }
.send-task-table td { vertical-align: top; white-space: normal; }
.task-name-cell b, .task-name-cell span, .task-name-cell small { display: block; }
.task-name-cell b { margin-bottom: 5px; color: #26344a; font-size: 12px; }
.task-name-cell span { color: #55647a; font-size: 11px; }
.task-name-cell small { margin-top: 4px; color: #97a1b0; font-size: 9px; }
.task-progress-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.task-progress-pills span { padding: 4px 7px; color: #607087; background: #f5f7fa; border: 1px solid #e5e9ef; border-radius: 10px; font-size: 9px; }
.task-progress-pills .ok { color: #168d60; background: #e9f8f1; border-color: #d9f2e6; }
.task-progress-pills .bad { color: #d64e4e; background: #fff0f0; border-color: #ffe2e2; }
.task-state b, .task-state span { display: block; }
.task-state b { width: max-content; margin-bottom: 5px; padding: 4px 8px; border-radius: 10px; font-size: 9px; }
.task-state b.running { color: #168d60; background: #e9f8f1; }
.task-state b.paused { color: #c47713; background: #fff4df; }
.task-state b.blocked { color: #d34e35; background: #fff0e9; }
.task-state b.done { color: #66758a; background: #eef1f5; }
.task-state span { color: #8190a3; font-size: 9px; line-height: 1.5; }
.task-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.task-row-actions button { min-height: 30px; padding: 0 9px; border: 0; border-radius: 6px; font-size: 9px; font-weight: 700; }
.task-view-btn { color: var(--blue); background: #edf3ff; }
.task-edit-btn { color: #5f35c8; background: #f1edff; }
.task-pause-btn { color: #fff; background: #49576d; }
.task-start-btn { color: #fff; background: #07834e; }
.task-resume-btn { color: #fff; background: #7627da; }
.task-stop-btn { color: #fff; background: #c9281d; }
.task-delete-btn { color: #fff; background: #c9281d; }
.recipient-actions-bottom { display: flex; justify-content: flex-end; margin-top: 12px; }
.mobile-menu { display: none !important; }

/* 横版页面字体加大 */
.horizontal-nav a { font-size: 15px; }
.page-view[data-page="bulk"] h1 { font-size: 32px; }
.page-view[data-page="bulk"] .page-heading p { font-size: 15px; }
.page-view[data-page="bulk"] .panel-heading h2,
.task-list-title h2 { font-size: 19px; }
.page-view[data-page="bulk"] .panel-heading p,
.task-list-title p { font-size: 12px; }
.page-view[data-page="bulk"] .field-label { font-size: 14px; }
.page-view[data-page="bulk"] textarea,
.page-view[data-page="bulk"] input,
.page-view[data-page="bulk"] .select-like { font-size: 14px; }
.page-view[data-page="bulk"] .field-note,
.page-view[data-page="bulk"] .field-group p { font-size: 12px; }
.send-task-table th { font-size: 12px; }
.send-task-table td { font-size: 13px; }
.task-name-cell b { font-size: 14px; }
.task-name-cell span { font-size: 12px; }
.task-name-cell small { font-size: 10px; }
.task-progress-pills span,
.task-state b { font-size: 10px; }
.task-state span { font-size: 11px; }
.task-state .current-account { color: #3f6fc9; }
.task-row-actions button { min-height: 34px; padding: 0 11px; font-size: 11px; }
.builder-submit-bar b { font-size: 14px; }
.builder-submit-bar span { font-size: 11px; }
.builder-submit-bar .primary-action { font-size: 14px; }

/* Telegram Bot 模板发送 */
.bot-template-grid {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-bottom: 18px;
}
#botConfigStatus { color: #718096; background: #eef1f5; }
#botConfigStatus.success { color: #15915f; background: #e8f7f0; }
.bot-template-page .panel-body { padding: 19px; }
.bot-config-panel #botToken,
.bot-template-panel textarea,
.bot-recipient-panel textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 8px;
}
.bot-config-panel #botToken { height: 44px; }
.bot-identity {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
}
.bot-identity .mini-icon { width: 37px; height: 37px; flex: 0 0 auto; }
.bot-identity b, .bot-identity span { display: block; }
.bot-identity b { margin-bottom: 4px; color: #334158; font-size: 12px; }
.bot-identity span { color: #8995a7; font-size: 10px; }
.bot-config-actions { display: flex; gap: 8px; margin-top: 13px; }
.bot-template-options {
  display: grid;
  grid-template-columns: 130px minmax(150px, .7fr) minmax(230px, 1.3fr);
  gap: 10px;
  margin-top: 12px;
}
.bot-template-options label > span { display: block; margin-bottom: 7px; color: #536176; font-size: 10px; font-weight: 700; }
.bot-template-options input, .bot-template-options select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
}
.bot-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #65738a;
  font-size: 10px;
}
.bot-inline-check input, .bot-consent-confirm input { width: auto; }
.bot-subscription-panel { margin-bottom: 18px; }
.bot-subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: stretch;
}
.bot-campaign-row, .bot-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 13px;
}
.bot-link-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.bot-campaign-row input, .bot-link-row input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
}
.bot-subscription-actions { display: flex; gap: 8px; margin-top: 4px; }
.bot-subscriber-preview {
  min-height: 58px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding: 11px;
  color: #8490a2;
  background: #f8faff;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.55;
}
.bot-subscriber-preview > span { padding: 6px 8px; background: #fff; border: 1px solid #e2e7ef; border-radius: 7px; }
.bot-subscriber-preview b, .bot-subscriber-preview small { display: block; }
.bot-subscriber-preview b { margin-bottom: 3px; color: #3f4d63; font-size: 10px; }
.bot-subscriber-preview small { color: #8b97a8; font-size: 8px; }
.bot-qr-card {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 15px;
  background: #f8faff;
  border: 1px solid #e0e7f2;
  border-radius: 10px;
  text-align: center;
}
.bot-qr-card img { width: 180px; height: 180px; object-fit: contain; background: #fff; border: 8px solid #fff; border-radius: 8px; }
.bot-qr-card > b { margin-top: 10px; color: #35445a; font-size: 12px; }
.bot-qr-card > span { margin-top: 5px; color: #8b97a8; font-size: 9px; line-height: 1.5; }
.bot-qr-placeholder { width: 180px; height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; color: #94a0b2; background: #fff; border: 1px dashed #ccd6e5; border-radius: 8px; }
.bot-qr-placeholder svg { width: 28px; height: 28px; color: #7f9ad0; }
.bot-qr-placeholder span { font-size: 10px; }
.postbot-panel { margin-bottom: 18px; }
.postbot-body { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.postbot-description { display: flex; align-items: center; gap: 11px; }
.postbot-description .mini-icon { width: 40px; height: 40px; flex: 0 0 auto; }
.postbot-description b, .postbot-description span { display: block; }
.postbot-description b { margin-bottom: 5px; color: #35445a; font-size: 12px; }
.postbot-description span { color: #8692a4; font-size: 10px; line-height: 1.55; }
.postbot-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.bot-recipient-panel { margin-bottom: 18px; }
.bot-recipient-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #8a6a22;
  font-size: 10px;
}
.bot-recipient-note svg { width: 15px; height: 15px; color: #d7950b; }
.bot-consent-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  background: #f7fbf9;
  border: 1px solid #dcefe5;
  border-radius: 8px;
}
.bot-consent-confirm b, .bot-consent-confirm small { display: block; }
.bot-consent-confirm b { margin-bottom: 4px; color: #3c5c4d; font-size: 11px; }
.bot-consent-confirm small { color: #7c9588; font-size: 9px; }
.bot-send-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
}
.bot-send-bar b, .bot-send-bar span { display: block; }
.bot-send-bar b { margin-bottom: 4px; color: #35445b; font-size: 12px; }
.bot-send-bar span { color: #8b97a8; font-size: 9px; }
.bot-result-panel { margin-bottom: 18px; }
.bot-result-table { table-layout: fixed; }
.bot-result-table th:nth-child(1) { width: 24%; }
.bot-result-table th:nth-child(2) { width: 14%; }
.bot-result-table th:nth-child(3) { width: 14%; }
.bot-result-table th:nth-child(4) { width: 48%; }

/* Telegram 成员筛查 */
.member-screen-heading { align-items: center; }
.screen-heading-account {
  min-width: 190px;
  padding: 12px 16px;
  color: #64748b;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.screen-heading-account span, .screen-heading-account b { display: block; }
.screen-heading-account span { margin-bottom: 5px; font-size: 11px; }
.screen-heading-account b { color: #24324a; font-size: 14px; }
.member-screen-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
  margin-bottom: 18px;
}
.member-screen-stats article {
  position: relative;
  min-width: 0;
  padding: 17px 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.member-screen-stats article::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #94a3b8;
}
.member-screen-stats article.success::after { background: #16a36a; }
.member-screen-stats article.recent::after { background: #2563eb; }
.member-screen-stats article.qualified::after { background: #7c5ce5; }
.member-screen-stats article.failed::after { background: #e24b4b; }
.member-screen-stats span, .member-screen-stats strong, .member-screen-stats small { display: block; }
.member-screen-stats span { color: #7f8da1; font-size: 11px; }
.member-screen-stats strong { margin: 7px 0 5px; color: #1f2c42; font-size: 25px; }
.member-screen-stats small { overflow: hidden; color: #a0aabb; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.member-screen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, .68fr);
  gap: 18px;
  margin-bottom: 18px;
}
.screen-section-head {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 19px;
  border-bottom: 1px solid #edf0f4;
}
.screen-section-head h2, .screen-results-toolbar h2 { margin: 0 0 5px; font-size: 18px; }
.screen-section-head p, .screen-results-toolbar p { margin: 0; color: #8995a7; font-size: 11px; line-height: 1.55; }
.screen-section-head > span {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 6px 10px;
  color: #5d6c81;
  background: #f3f6fa;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
}
.member-screen-config-body { padding: 18px 19px 19px; }
.member-collect-page-panel .panel-body { padding: 20px; }
.member-collect-page-panel .member-collector-box { margin-bottom: 0; padding: 20px; }
.member-collect-page-panel .member-collector-input { margin-top: 16px; }
.member-collect-page-panel .member-collector-progress { margin-top: 14px; }
.member-collect-page-panel .member-collector-foot { margin-top: 14px; }
.member-collector-box {
  margin-bottom: 16px;
  padding: 15px;
  background: linear-gradient(145deg, #f8faff, #f4f8ff);
  border: 1px solid #dce6f7;
  border-radius: 10px;
}
.member-collector-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.member-collector-title b, .member-collector-title span { display: block; }
.member-collector-title b { margin-bottom: 5px; color: #26364e; font-size: 13px; }
.member-collector-title > div > span { color: #8290a4; font-size: 10px; line-height: 1.6; }
.member-collector-input {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  margin-top: 13px;
}
.member-collector-input input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 7px;
}
.member-collector-input .primary-action, .member-collector-input .danger-btn { min-height: 40px; white-space: nowrap; }
.member-collector-progress {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, .65fr);
  gap: 8px;
  margin-top: 11px;
}
.member-collector-progress > div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255,255,255,.82);
  border: 1px solid #e2e9f3;
  border-radius: 7px;
}
.member-collector-progress span, .member-collector-progress b { display: block; }
.member-collector-progress span { margin-bottom: 5px; color: #8b97a8; font-size: 9px; }
.member-collector-progress b { overflow: hidden; color: #34435a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.member-collector-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 11px;
}
.member-collector-foot > span { color: #7f8c9f; font-size: 9px; line-height: 1.55; }
.member-collector-foot > div { display: flex; flex: 0 0 auto; gap: 7px; }
.member-collector-foot button { min-height: 33px; padding: 0 10px; font-size: 10px; }
.member-collector-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3px 0 15px;
  color: #99a4b4;
  font-size: 10px;
}
.member-collector-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: #e7ebf1;
}
.member-collector-divider span { position: relative; padding: 0 10px; background: #fff; }
#memberScreenInput {
  width: 100%;
  min-height: 220px;
  padding: 13px 14px;
  resize: vertical;
  border-radius: 8px;
  line-height: 1.75;
}
.screen-input-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}
.screen-file-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--blue);
  background: #edf3ff;
  border: 1px solid #d5e2ff;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.screen-file-button input { display: none; }
.screen-file-button svg { width: 15px; height: 15px; }
.screen-clear-button {
  min-height: 36px;
  margin-left: auto;
  color: #8a96a8;
  background: transparent;
  border: 0;
  font-size: 12px;
}
.screen-clear-button:hover { color: var(--red); }
.screen-rule-grid {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(250px, 1.28fr);
  gap: 12px;
  margin-top: 16px;
}
.screen-rule-grid > label > span {
  display: block;
  margin-bottom: 7px;
  color: #46546a;
  font-size: 11px;
  font-weight: 700;
}
.screen-rule-grid select {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  color: #334158;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
  outline: 0;
}
.screen-fixed-range {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  color: #334158;
  background: #f7f9fc;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
}
.screen-fixed-range b { font-size: 13px; }
.screen-fixed-range small { color: #98a3b3; font-size: 10px; }
.screen-account-card {
  min-height: 69px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: #f8faff;
  border: 1px solid #e1e8f4;
  border-radius: 8px;
}
.screen-account-card .avatar { width: 38px; height: 38px; flex: 0 0 auto; }
.screen-account-card b, .screen-account-card small { display: block; }
.screen-account-card b { margin-bottom: 4px; color: #334158; font-size: 12px; }
.screen-account-card small { color: #8d99aa; font-size: 10px; }
.screen-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 13px;
  color: #72571a;
  background: #fff9ea;
  border: 1px solid #f4e5b9;
  border-radius: 8px;
}
.screen-privacy-note > svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: #d7940b; }
.screen-privacy-note b, .screen-privacy-note span { display: block; }
.screen-privacy-note b { margin-bottom: 3px; font-size: 11px; }
.screen-privacy-note span { color: #92783d; font-size: 10px; line-height: 1.65; }
.screen-run-actions { display: flex; gap: 10px; margin-top: 15px; }
.screen-run-actions .primary-action { min-width: 180px; }
.member-screen-progress { min-width: 0; }
.screen-status-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
}
.screen-status-pill.idle { color: #718096; background: #eef2f6; }
.screen-status-pill.running { color: #116fae; background: #e5f3ff; }
.screen-status-pill.stopping { color: #b06c0c; background: #fff2db; }
.screen-status-pill.completed { color: #14875c; background: #e7f8f0; }
.screen-status-pill.stopped { color: #68758a; background: #eef1f5; }
.screen-status-pill.failed { color: #d24848; background: #ffeded; }
.screen-progress-body { padding: 22px 20px; }
.screen-progress-number { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 8px 0 15px; }
.screen-progress-number strong { color: var(--blue); font-size: 46px; line-height: 1; }
.screen-progress-number span { color: #9aa5b5; font-size: 17px; }
.screen-progress-number b { color: #66758a; }
.screen-progress-track { height: 8px; overflow: hidden; background: #e9edf3; border-radius: 5px; }
.screen-progress-track i {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #2563eb, #7265e8);
  border-radius: inherit;
  transition: width .3s;
}
.screen-progress-meta { display: grid; gap: 0; margin-top: 19px; border: 1px solid #e8ecf2; border-radius: 8px; }
.screen-progress-meta > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 11px; border-bottom: 1px solid #edf0f4; }
.screen-progress-meta > div:last-child { border-bottom: 0; }
.screen-progress-meta span { color: #8b97a8; font-size: 10px; }
.screen-progress-meta b { max-width: 65%; overflow: hidden; color: #46546a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.screen-last-result {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 12px;
  background: #f7f9fc;
  border-radius: 8px;
}
.screen-last-result .mini-icon { width: 35px; height: 35px; flex: 0 0 auto; }
.screen-last-result b, .screen-last-result span { display: block; }
.screen-last-result b { margin-bottom: 4px; font-size: 11px; }
.screen-last-result span { color: #8995a7; font-size: 10px; line-height: 1.5; }
.member-screen-results, .member-screen-history { margin-bottom: 18px; }
.screen-results-toolbar {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 19px;
  border-bottom: 1px solid #edf0f4;
}
.screen-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.screen-clear-records-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #d34a4a;
  background: #fff;
  border: 1px solid #f0caca;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  transition: .2s;
}
.screen-clear-records-btn:hover { color: #fff; background: #d94c4c; border-color: #d94c4c; }
.screen-clear-records-btn:disabled { cursor: not-allowed; opacity: .55; }
.screen-results-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 19px;
  background: #fbfcfe;
  border-bottom: 1px solid #edf0f4;
}
.screen-results-filter .search-box { width: min(350px, 100%); }
.member-screen-filter-tabs { margin-left: auto; }
.member-screen-filter-tabs button { white-space: nowrap; }
.member-screen-table { min-width: 1060px; table-layout: fixed; }
.member-screen-table th:nth-child(1) { width: 18%; }
.member-screen-table th:nth-child(2) { width: 10%; }
.member-screen-table th:nth-child(3) { width: 10%; }
.member-screen-table th:nth-child(4) { width: 15%; }
.member-screen-table th:nth-child(5) { width: 16%; }
.member-screen-table th:nth-child(6) { width: 12%; }
.member-screen-table th:nth-child(7) { width: 19%; }
.screen-member-cell b, .screen-member-cell span, .screen-online-cell small { display: block; }
.screen-member-cell b { margin-bottom: 4px; color: #27364d; font-size: 12px; }
.screen-member-cell span { overflow: hidden; color: #8b97a8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.screen-online-cell small { margin-top: 5px; color: #8d99aa; font-size: 9px; }
.screen-result-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 11px;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-result-badge.yes, .screen-result-badge.recent, .screen-result-badge.qualified { color: #15855b; background: #e7f8f0; }
.screen-result-badge.no, .screen-result-badge.invalid { color: #d04848; background: #ffeded; }
.screen-result-badge.stale { color: #b36a10; background: #fff2df; }
.screen-result-badge.pending { color: #996c13; background: #fff6df; }
.screen-result-badge.bot { color: #7148bf; background: #f1ebff; }
.screen-result-badge.unknown { color: #68768b; background: #eef1f5; }
.screen-result-note { overflow: hidden; color: #77859a; font-size: 10px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.member-screen-history-table td small { display: block; margin-top: 4px; color: #929dac; font-size: 9px; }
.screen-task-id { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-task-counts span, .screen-task-counts small { display: block; }
.screen-task-counts span { color: #344258; font-weight: 750; }
.screen-task-actions { display: flex; gap: 7px; }
.screen-task-actions button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--blue);
  background: #edf3ff;
  border: 0;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.screen-task-actions button.delete { color: #d34848; background: #ffeded; }
.member-screen-history-table tr.current-screen-task td { background: #f8faff; }

.contact-add-panel { margin-bottom: 18px; }
.contact-add-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 16px;
  padding: 18px;
}
.contact-add-config, .contact-add-progress {
  min-width: 0;
  padding: 15px;
  background: #fbfcfe;
  border: 1px solid #e4e9f1;
  border-radius: 10px;
}
.contact-add-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.contact-add-block-title > div:first-child b,
.contact-add-block-title > div:first-child span { display: block; }
.contact-add-block-title > div:first-child b { margin-bottom: 4px; color: #334158; font-size: 13px; }
.contact-add-block-title > div:first-child span { color: #8995a7; font-size: 10px; }
.contact-add-block-title > div:last-child { display: flex; align-items: center; gap: 9px; }
.contact-add-block-title strong { color: #64738a; font-size: 10px; white-space: nowrap; }
.contact-add-block-title .secondary-btn { min-height: 32px; padding: 0 10px; font-size: 10px; }
.contact-add-account-list { margin-bottom: 15px; }
.contact-add-distribution {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 14px;
  padding: 9px 10px;
  color: #718096;
  background: #f1f6ff;
  border: 1px solid #dce8fb;
  border-radius: 7px;
  font-size: 9px;
  line-height: 1.5;
}
.contact-add-distribution b { color: #3f69b5; }
.contact-add-distribution span { padding: 3px 6px; color: #3f5f93; background: #fff; border-radius: 9px; }
#contactAddInput {
  width: 100%;
  min-height: 155px;
  padding: 12px 13px;
  resize: vertical;
  border-radius: 8px;
  line-height: 1.7;
}
#contactAddInputCount { margin-left: auto; color: #7c899c; font-size: 10px; white-space: nowrap; }
.contact-add-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}
.contact-add-rules > div {
  padding: 11px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
}
.contact-add-rules span, .contact-add-rules b, .contact-add-rules small { display: block; }
.contact-add-rules span { margin-bottom: 5px; color: #8a96a7; font-size: 9px; }
.contact-add-rules b { color: #2f4059; font-size: 12px; }
.contact-add-rules small { margin-top: 4px; color: #98a3b3; font-size: 8px; line-height: 1.45; }
.contact-add-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  padding: 11px 12px;
  background: #fff9ea;
  border: 1px solid #f2e2b6;
  border-radius: 8px;
}
.contact-add-confirm input { width: auto; margin-top: 2px; }
.contact-add-confirm b, .contact-add-confirm small { display: block; }
.contact-add-confirm b { margin-bottom: 4px; color: #70571e; font-size: 10px; }
.contact-add-confirm small { color: #90783f; font-size: 9px; line-height: 1.5; }
.contact-followup-config {
  margin-top: 14px;
  padding: 13px;
  background: #f5f9ff;
  border: 1px solid #dbe7f8;
  border-radius: 9px;
}
.contact-followup-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
}
.contact-followup-toggle input { width: auto; margin-top: 2px; }
.contact-followup-toggle b, .contact-followup-toggle small { display: block; }
.contact-followup-toggle b { margin-bottom: 4px; color: #31588f; font-size: 11px; }
.contact-followup-toggle small { color: #7286a3; font-size: 9px; line-height: 1.5; }
#contactFollowupMessage {
  width: 100%;
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
  border-radius: 8px;
  line-height: 1.65;
}
.contact-followup-rules { margin-top: 11px; }
.contact-followup-actions { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.contact-followup-actions .secondary-btn { flex: 0 0 auto; min-height: 34px; font-size: 10px; }
.contact-followup-actions span { color: #7386a0; font-size: 9px; line-height: 1.5; }
.contact-followup-config.disabled { opacity: .58; }
.contact-followup-config.disabled #contactFollowupMessage { background: #eef2f6; }
.contact-add-progress .screen-progress-number { margin-top: 2px; }
.contact-add-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.contact-add-stats > div { padding: 10px; background: #fff; border: 1px solid #e5eaf1; border-radius: 8px; }
.contact-add-stats span, .contact-add-stats b { display: block; }
.contact-add-stats span { margin-bottom: 5px; color: #8b97a8; font-size: 9px; }
.contact-add-stats b { color: #35445b; font-size: 15px; }
.contact-add-current { margin-top: 12px; }
.contact-add-task-meta { display: grid; gap: 0; margin-top: 12px; border: 1px solid #e5eaf1; border-radius: 8px; }
.contact-add-task-meta > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-bottom: 1px solid #edf0f4; }
.contact-add-task-meta > div:last-child { border-bottom: 0; }
.contact-add-task-meta span { color: #8b97a8; font-size: 9px; }
.contact-add-task-meta b { max-width: 68%; overflow: hidden; color: #46546a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.contact-add-result-wrap { border-top: 1px solid #edf0f4; }
.contact-add-result-table { min-width: 1040px; table-layout: fixed; }
.contact-add-result-table th:nth-child(1) { width: 17%; }
.contact-add-result-table th:nth-child(2) { width: 16%; }
.contact-add-result-table th:nth-child(3) { width: 13%; }
.contact-add-result-table th:nth-child(4) { width: 13%; }
.contact-add-result-table th:nth-child(5) { width: 16%; }
.contact-add-result-table th:nth-child(6) { width: 25%; }
.contact-add-result-table td > small { display: block; margin-top: 4px; color: #929dac; font-size: 9px; }
.contact-add-history-head { margin-top: 2px; border-top: 1px solid #edf0f4; }
.contact-add-history-table td small { display: block; margin-top: 4px; color: #929dac; font-size: 9px; }
.contact-add-history-table tr.current-screen-task td { background: #f8faff; }

@media (max-width: 920px) {
  .login-view { padding: 14px; }
  .login-layout { min-height: calc(100vh - 28px); grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { padding: 36px 24px; }
  .login-mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 38px; color: #1c2b43; font-size: 18px; }
  .login-mobile-brand .login-brand-mark { width: 40px; height: 40px; color: #fff; background: linear-gradient(145deg, #3679f6, #1855dc); box-shadow: 0 8px 18px rgba(37,99,235,.2); }
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
  .account-browser-info { grid-template-columns: repeat(2, 1fr); }
  .account-action-grid { grid-template-columns: 1fr; }
  .account-message-tools { grid-template-columns: 1fr 1fr; }
  .account-message-tools > input { grid-column: 1 / -1; }
  .list-toolbar { flex-wrap: wrap; }
  .list-toolbar > .secondary-btn:last-child { margin-left: 0; }
  .search-box { flex: 1 1 240px; }
  .account-toolbar-note { order: 3; width: 100%; }
  .history-summary { grid-template-columns: repeat(2, 1fr); }
  .history-toolbar { flex-wrap: wrap; }
  .history-search { width: 100%; flex-basis: 100%; }
  .history-toolbar #refreshHistory { margin-left: 0; }
  .execution-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .execution-meta-grid > div:nth-child(2) { border-right: 0; }
  .execution-meta-grid > div:nth-child(-n+2) { border-bottom: 1px solid #edf0f4; }
  .execution-event { grid-template-columns: 8px 110px 1fr; }
  .topbar { padding: 0 14px; }
  .top-brand span { display: none; }
  .topbar .account-select { margin-left: 16px; }
  .horizontal-nav { top: 64px; padding: 10px 14px; overflow-x: auto; }
  .horizontal-nav a { flex: 0 0 auto; }
  .page-view[data-page="bulk"] .workspace-grid { grid-template-columns: 1fr; }
  .task-account-list { grid-template-columns: 1fr; max-height: none; }
  .builder-submit-bar { align-items: stretch; flex-direction: column; }
  .builder-submit-bar .primary-action { width: 100%; }
  .member-screen-stats { grid-template-columns: repeat(3, 1fr); }
  .member-screen-layout { grid-template-columns: 1fr; }
  .contact-add-layout { grid-template-columns: 1fr; }
  .contact-add-rules { grid-template-columns: 1fr; }
  .screen-results-filter { align-items: stretch; flex-direction: column; }
  .screen-results-filter .search-box { width: 100%; }
  .member-screen-filter-tabs { width: 100%; margin-left: 0; overflow-x: auto; }
  .member-collector-progress { grid-template-columns: repeat(3, 1fr); }
  .member-collector-progress > div:first-child { grid-column: span 2; }
  .bot-template-grid { grid-template-columns: 1fr; }
  .bot-subscription-layout { grid-template-columns: 1fr; }
  .bot-qr-card { min-height: auto; }
}

@media (max-width: 1160px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .page-view[data-page="bulk"] > .bulk-dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 285px; }
  .rule-grid { gap: 22px; }
}

@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 12px 0 30px rgba(22,34,55,.12); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mask { position: fixed; inset: 0; z-index: 15; display: block; background: rgba(20,31,48,.35); opacity: 0; pointer-events: none; transition: .25s; }
  .sidebar-mask.show { opacity: 1; pointer-events: auto; }
  .main-area { width: 100%; margin-left: 0; }
  .mobile-menu { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 12px; color: #526078; background: transparent; border: 0; border-radius: 6px; }
  .topbar { justify-content: flex-start; padding: 0 22px; }
  .topbar-actions { margin-left: auto; }
  .workspace-grid { grid-template-columns: 1fr; }
  .task-panel { position: static; }
  .task-summary { justify-content: center; }
}

@media (max-width: 640px) {
  .login-view { padding: 0; background: #fff; }
  .login-layout { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .login-panel { padding: 28px 22px; }
  .login-heading h2 { font-size: 30px; }
  .topbar { height: 64px; padding: 0 14px; }
  .connection, .user-button span, .user-button .chevron { display: none; }
  main { padding: 22px 14px 36px; }
  .page-heading { align-items: flex-start; }
  .page-heading .secondary-btn { display: none; }
  h1 { font-size: 23px; }
  .page-heading p { line-height: 1.65; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 9px; }
  .page-view[data-page="bulk"] > .bulk-dashboard-stats { grid-template-columns: 1fr 1fr; }
  .stat-row article { min-height: 70px; gap: 10px; padding: 12px; }
  .stat-icon { width: 35px; height: 35px; }
  .stat-row strong { font-size: 17px; }
  .panel-heading { align-items: flex-start; padding: 16px; }
  .panel-heading p { padding-right: 4px; line-height: 1.5; }
  .panel-heading .count-badge { display: none; }
  .panel-heading .outline-btn { margin-left: 0; }
  .message-panel .panel-heading { flex-wrap: wrap; }
  .delivery-mode-switch { width: 100%; }
  .delivery-mode-switch button { flex: 1; justify-content: center; padding: 0 8px; }
  .forward-message-fields { grid-template-columns: 1fr; }
  .message-auto-combine-tip { align-items: flex-start; flex-direction: column; }
  .message-auto-combine-tip strong { white-space: normal; }
  .message-fixed-suffix { align-items: stretch; flex-direction: column; }
  .message-fixed-suffix input { width: 100%; flex-basis: auto; }
  .panel-body { padding: 16px; }
  .task-account-toolbar { align-items: stretch; flex-direction: column; }
  .task-account-toolbar > div:last-child { width: 100%; }
  .task-account-toolbar .secondary-btn { flex: 1; }
  .rule-grid { grid-template-columns: 1fr; gap: 20px; }
  .message-list-meta { align-items: flex-start; flex-direction: column; padding: 9px 11px; }
  #messageListInput { min-height: 230px; }
  .message-random-tools { grid-template-columns: 1fr; }
  .message-random-tools > small { grid-column: 1; }
  .task-summary { gap: 14px; }
  .breadcrumb { display: none; }
  .primary-action { min-height: 38px; padding: 0 12px; font-size: 11px; }
  .dashboard-stats, .history-stats { grid-template-columns: 1fr 1fr; }
  .fake-chart { padding-right: 12px; }
  .bars i, .bars b { width: 6px; }
  .section-title { padding: 14px; }
  .list-toolbar { padding: 12px 14px; }
  .search-box { width: 100%; flex-basis: 100%; }
  .filter-tabs { width: 100%; overflow-x: auto; }
  .table-footer { align-items: flex-start; gap: 12px; flex-direction: column; padding: 14px; }
  .history-summary { grid-template-columns: 1fr 1fr; gap: 9px; }
  .history-summary > * { min-height: 58px; padding: 12px; }
  .history-summary span { font-size: 10px; }
  .history-summary strong { font-size: 18px; }
  .execution-meta-grid { grid-template-columns: 1fr; }
  .execution-meta-grid > div { border-right: 0; border-bottom: 1px solid #edf0f4; }
  .execution-meta-grid > div:last-child { border-bottom: 0; }
  .execution-event { grid-template-columns: 8px 1fr; }
  .execution-event time { grid-column: 2; }
  .execution-event div { grid-column: 2; }
  .settings-fields { grid-template-columns: 1fr; padding: 0 16px 18px; }
  .settings-fields .full { grid-column: auto; }
  .profile-card { margin: 16px; }
  .profile-card .outline-btn { display: none; }
  .account-dropdown { position: fixed; top: 58px; left: 52px; width: calc(100vw - 70px); }
  .upload-form-grid { grid-template-columns: 1fr; }
  .upload-form-grid .full { grid-column: auto; }
  .account-actions { min-width: 220px; }
  .account-browser-body { padding: 10px; }
  .account-browser-info { grid-template-columns: 1fr; }
  .account-profile-grid { grid-template-columns: 1fr; }
  .account-message-tools { grid-template-columns: 1fr; }
  .account-message-tools > input { grid-column: auto; }
  .member-screen-heading { align-items: flex-start; flex-direction: column; }
  .screen-heading-account { width: 100%; }
  .member-screen-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .member-screen-layout { gap: 12px; }
  .screen-section-head, .screen-results-toolbar { align-items: flex-start; flex-direction: column; }
  .screen-section-head > span { margin-left: 0; }
  .screen-input-actions, .screen-run-actions, .screen-result-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .screen-file-button, .screen-input-actions .secondary-btn, .screen-run-actions button, .screen-result-actions button { width: 100%; }
  .screen-clear-button { margin-left: 0; }
  .screen-rule-grid { grid-template-columns: 1fr; }
  .screen-results-filter { padding: 12px 14px; }
  .member-collector-title, .member-collector-foot { align-items: stretch; flex-direction: column; }
  .member-collector-input { grid-template-columns: 1fr; }
  .member-collector-input button { width: 100%; }
  .member-collector-progress { grid-template-columns: 1fr 1fr; }
  .member-collector-progress > div:first-child { grid-column: 1 / -1; }
  .member-collector-foot > div { flex-direction: column; }
  .member-collector-foot button { width: 100%; }
  .bot-template-options { grid-template-columns: 1fr; }
  .bot-config-actions, .bot-send-bar { align-items: stretch; flex-direction: column; }
  .bot-config-actions button, .bot-send-bar button { width: 100%; }
  .bot-campaign-row, .bot-link-row { grid-template-columns: 1fr; }
  .bot-subscription-actions { flex-direction: column; }
  .bot-subscription-actions button { width: 100%; }
  .postbot-body, .postbot-actions { align-items: stretch; flex-direction: column; }
  .postbot-actions button { width: 100%; }
}

/* 账号自动加群 */
.group-join-page { max-width: 1540px; }
.group-join-workspace {
  display: grid;
  grid-template-columns: minmax(430px, .82fr) minmax(680px, 1.18fr);
  gap: 18px;
  align-items: start;
}
.group-join-builder .panel-body { padding: 18px; }
#groupJoinTargets {
  width: 100%;
  min-height: 145px;
  padding: 12px 13px;
  border-radius: 8px;
  resize: vertical;
  line-height: 1.7;
}
.group-join-target-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
  color: #8793a5;
  font-size: 11px;
}
.group-join-target-meta b { color: var(--blue); }
.group-join-options {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(115px, .65fr) minmax(115px, .65fr);
  gap: 10px;
  margin-bottom: 18px;
}
.group-join-options label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #526078;
  font-size: 12px;
  font-weight: 700;
}
.group-join-options select,
.group-join-options input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  color: #334158;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
  outline: 0;
}
.group-join-account-list { max-height: 250px; }
.group-join-account-toolbar { margin-top: 2px; }
.task-account-order-note .limit-warning { color: #c94343; font-weight: 700; }
.group-join-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 12px;
  color: #70571e;
  background: #fff9ea;
  border: 1px solid #f2e2b6;
  border-radius: 8px;
}
.group-join-confirm input { width: auto; margin-top: 2px; }
.group-join-confirm b,
.group-join-confirm small { display: block; }
.group-join-confirm b { margin-bottom: 4px; font-size: 11px; }
.group-join-confirm small { color: #90783f; font-size: 10px; line-height: 1.55; }
.group-join-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
}
.group-join-submit b,
.group-join-submit span { display: block; }
.group-join-submit b { margin-bottom: 4px; color: #3a485f; font-size: 12px; }
.group-join-submit span { color: #8995a7; font-size: 10px; line-height: 1.5; }
.group-join-submit .primary-action { flex: 0 0 auto; }
.group-join-history { min-width: 0; }
.group-join-task-table { min-width: 900px; table-layout: fixed; }
.group-join-task-table th:nth-child(1) { width: 22%; }
.group-join-task-table th:nth-child(2) { width: 17%; }
.group-join-task-table th:nth-child(3) { width: 24%; }
.group-join-task-table th:nth-child(4) { width: 23%; }
.group-join-task-table th:nth-child(5) { width: 14%; }
.group-join-task-table td { vertical-align: top; white-space: normal; }
.group-join-account-names b,
.group-join-account-names span { display: block; }
.group-join-account-names b { margin-bottom: 5px; color: #334158; font-size: 12px; }
.group-join-account-names span {
  overflow: hidden;
  color: #7e8b9e;
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-join-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #405069;
  font-size: 11px;
}
.group-join-progress > em {
  display: block;
  height: 6px;
  margin: 7px 0;
  overflow: hidden;
  background: #e9edf3;
  border-radius: 6px;
}
.group-join-progress > em i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f6df4, #6c8ff8);
  border-radius: inherit;
}
.group-join-progress > small { display: flex; flex-wrap: wrap; gap: 5px 8px; color: #8793a5; font-size: 9px; }
.group-join-progress > small .ok { color: var(--green); }
.group-join-progress > small .bad { color: var(--red); }
.group-join-task-table .task-state b.waiting { color: #996c13; background: #fff4df; }
.group-join-task-table .task-state b.success { color: #168d60; background: #e9f8f1; }
.group-join-task-table .task-state b.stopped { color: #66758a; background: #eef1f5; }
.group-join-task-table .task-state b.failed { color: #d34e35; background: #fff0e9; }
.group-join-next-time { display: block; margin-top: 5px; color: #7358b2; font-size: 9px; line-height: 1.45; }
.group-join-detail { margin-top: 18px; }
.group-join-detail[hidden] { display: none; }
.group-join-detail-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f4;
}
.group-join-detail-summary > div { padding: 11px 12px; background: #f8faff; border: 1px solid #e4e9f1; border-radius: 8px; }
.group-join-detail-summary span,
.group-join-detail-summary b { display: block; }
.group-join-detail-summary span { margin-bottom: 5px; color: #8793a5; font-size: 10px; }
.group-join-detail-summary b { color: #334158; font-size: 17px; }
.group-join-result-table { min-width: 900px; table-layout: fixed; }
.group-join-result-table th:nth-child(1) { width: 14%; }
.group-join-result-table th:nth-child(2) { width: 17%; }
.group-join-result-table th:nth-child(3) { width: 25%; }
.group-join-result-table th:nth-child(4) { width: 13%; }
.group-join-result-table th:nth-child(5) { width: 31%; }
.group-join-result-table td { vertical-align: top; white-space: normal; }
.group-join-result-table td b,
.group-join-result-table td small { display: block; }
.group-join-result-table td b { color: #35445b; font-size: 12px; }
.group-join-result-table td small { margin-top: 4px; color: #929dac; font-size: 9px; overflow-wrap: anywhere; }

@media (max-width: 1160px) {
  .group-join-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .group-join-options { grid-template-columns: 1fr; }
  .group-join-submit { align-items: stretch; flex-direction: column; }
  .group-join-submit .primary-action { width: 100%; }
  .group-join-detail-summary { grid-template-columns: 1fr 1fr; }
  .group-join-detail-summary > div:first-child { grid-column: 1 / -1; }
}

/* 实时群组帖子转发 */
.channel-forward-page { max-width: 1540px; }
.channel-forward-workspace {
  display: grid;
  grid-template-columns: minmax(430px, .82fr) minmax(680px, 1.18fr);
  gap: 18px;
  align-items: start;
}
.channel-forward-builder .panel-body { padding: 18px; }
.channel-forward-edit-notice {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #654a11;
  background: #fff8e7;
  border: 1px solid #f2d794;
  border-radius: 8px;
}
.channel-forward-edit-notice[hidden] { display: none; }
.channel-forward-edit-notice b,
.channel-forward-edit-notice span { display: block; }
.channel-forward-edit-notice b { margin-bottom: 3px; font-size: 12px; }
.channel-forward-edit-notice span { color: #8a7038; font-size: 10px; }
.task-edit-btn { color: #8a6514; background: #fff4d8; }
.task-start-btn { color: #fff; background: #07965f; }
.channel-forward-post-url {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
}
.channel-forward-source-fields,
.channel-forward-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 17px;
}
.channel-forward-source-fields label,
.channel-forward-options label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #526078;
  font-size: 12px;
  font-weight: 700;
}
.channel-forward-source-fields input,
.channel-forward-options input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border-radius: 7px;
}
.channel-forward-link-replace {
  display: block;
  margin: 12px 0 17px;
  color: #526078;
  font-size: 11px;
  font-weight: 700;
}
.channel-forward-link-replace input {
  width: 100%;
  height: 40px;
  margin-top: 7px;
  padding: 0 10px;
  border-radius: 7px;
}
.channel-forward-link-replace small {
  display: block;
  margin-top: 6px;
  color: #8793a5;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.55;
}
#channelForwardTargets {
  width: 100%;
  min-height: 145px;
  padding: 12px 13px;
  border-radius: 8px;
  resize: vertical;
  line-height: 1.7;
}
.channel-forward-target-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.channel-forward-target-heading .field-label { margin-bottom: 0; }
.channel-forward-target-heading .secondary-btn { min-height: 34px; padding: 0 11px; font-size: 10px; }
.channel-forward-detected-groups {
  margin-bottom: 12px;
  overflow: hidden;
  background: #f8faff;
  border: 1px solid #dfe7f3;
  border-radius: 9px;
}
.channel-forward-group-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: #fff;
  border-bottom: 1px solid #e7ecf3;
}
.channel-forward-group-toolbar b,
.channel-forward-group-toolbar span { display: block; }
.channel-forward-group-toolbar b { margin-bottom: 3px; color: #3c4b62; font-size: 11px; }
.channel-forward-group-toolbar span { color: #8793a5; font-size: 9px; }
.channel-forward-group-actions { display: flex; gap: 6px; }
.channel-forward-group-actions .secondary-btn { min-height: 30px; padding: 0 9px; font-size: 9px; }
.channel-forward-group-search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 11px 8px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
}
.channel-forward-group-search svg { width: 15px; height: 15px; color: #8b97a8; }
.channel-forward-group-search input { width: 100%; height: 100%; padding: 0; background: transparent; border: 0; box-shadow: none; font-size: 11px; }
.channel-forward-group-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 290px;
  padding: 3px 11px 11px;
  overflow-y: auto;
}
.channel-forward-group-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 10px;
  color: #435168;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  cursor: pointer;
  transition: .18s;
}
.channel-forward-group-option:hover { border-color: #b9cdf9; }
.channel-forward-group-option.selected { background: #f0f5ff; border-color: #7ea5f8; box-shadow: 0 0 0 2px rgba(47,109,244,.07); }
.channel-forward-group-option input { position: absolute; opacity: 0; pointer-events: none; }
.channel-forward-group-option b,
.channel-forward-group-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-forward-group-option b { color: #334158; font-size: 11px; }
.channel-forward-group-option small { margin-top: 4px; color: #8a96a7; font-size: 9px; }
.channel-forward-group-option > i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: transparent;
  background: #fff;
  border: 1px solid #cbd5e3;
  border-radius: 5px;
  font-style: normal;
}
.channel-forward-group-option.selected > i { color: #fff; background: var(--blue); border-color: var(--blue); }
.channel-forward-group-option.selected > i::before { content: "✓"; font-size: 11px; font-weight: 900; }
.channel-forward-manual-label { display: block; margin: 2px 0 7px; color: #66758a; font-size: 10px; font-weight: 700; }
.channel-forward-target-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
  color: #8793a5;
  font-size: 11px;
}
.channel-forward-target-meta b { color: var(--blue); }
.channel-forward-comment-config {
  margin-bottom: 16px;
  padding: 13px;
  background: #f5f9ff;
  border: 1px solid #dbe7f8;
  border-radius: 9px;
}
.channel-forward-comment-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 11px;
  color: #31588f;
}
.channel-forward-comment-toggle input { width: auto; margin-top: 2px; }
.channel-forward-comment-toggle b,
.channel-forward-comment-toggle small { display: block; }
.channel-forward-comment-toggle b { margin-bottom: 4px; font-size: 11px; }
.channel-forward-comment-toggle small { color: #7286a3; font-size: 9px; line-height: 1.5; }
#channelForwardComments {
  width: 100%;
  min-height: 112px;
  padding: 11px 12px;
  resize: vertical;
  border-radius: 8px;
  line-height: 1.65;
}
.channel-forward-comment-help {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #71839e;
  font-size: 9px;
  line-height: 1.55;
}
.channel-forward-comment-help code { color: #3e63a4; background: #fff; }
.channel-forward-comment-help b { flex: 0 0 auto; color: var(--blue); }
.channel-forward-comment-config.disabled { opacity: .58; }
.channel-forward-fixed-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 17px;
}
.channel-forward-fixed-rules > div {
  padding: 11px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
}
.channel-forward-fixed-rules span,
.channel-forward-fixed-rules b,
.channel-forward-fixed-rules small { display: block; }
.channel-forward-fixed-rules span { margin-bottom: 5px; color: #8a96a7; font-size: 9px; }
.channel-forward-fixed-rules b { color: #2f4059; font-size: 12px; }
.channel-forward-fixed-rules small { margin-top: 4px; color: #98a3b3; font-size: 8px; line-height: 1.45; }
.channel-forward-account-list { max-height: 250px; }
.channel-forward-account-option input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.channel-forward-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 12px;
  color: #31588f;
  background: #f3f8ff;
  border: 1px solid #d8e6fa;
  border-radius: 8px;
}
.channel-forward-confirm input { width: auto; margin-top: 2px; }
.channel-forward-confirm b,
.channel-forward-confirm small { display: block; }
.channel-forward-confirm b { margin-bottom: 4px; font-size: 11px; }
.channel-forward-confirm small { color: #7286a3; font-size: 10px; line-height: 1.55; }
.channel-forward-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
}
.channel-forward-submit b,
.channel-forward-submit span { display: block; }
.channel-forward-submit b { margin-bottom: 4px; color: #3a485f; font-size: 12px; }
.channel-forward-submit span { color: #8995a7; font-size: 10px; line-height: 1.5; }
.channel-forward-submit .primary-action { flex: 0 0 auto; }
.channel-forward-history { min-width: 0; }
.channel-forward-task-table { min-width: 900px; table-layout: fixed; }
.channel-forward-task-table th:nth-child(1) { width: 24%; }
.channel-forward-task-table th:nth-child(2) { width: 15%; }
.channel-forward-task-table th:nth-child(3) { width: 22%; }
.channel-forward-task-table th:nth-child(4) { width: 21%; }
.channel-forward-task-table th:nth-child(5) { width: 18%; }
.channel-forward-task-table td { vertical-align: top; white-space: normal; }
.channel-forward-task-table .task-state b.waiting { color: #996c13; background: #fff4df; }
.channel-forward-task-table .task-state b.success { color: #168d60; background: #e9f8f1; }
.channel-forward-task-table .task-state b.stopped { color: #66758a; background: #eef1f5; }
.channel-forward-task-table .task-state b.failed { color: #d34e35; background: #fff0e9; }
.channel-forward-detail { margin-top: 18px; }
.channel-forward-detail[hidden] { display: none; }
.execution-logs-page { max-width: 1540px; }
.execution-log-task-selector {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
}
.execution-log-task-selector > div b,
.execution-log-task-selector > div span { display: block; }
.execution-log-task-selector > div b {
  margin-bottom: 5px;
  color: #344258;
  font-size: 14px;
}
.execution-log-task-selector > div span {
  color: #8a96a8;
  font-size: 11px;
}
.execution-log-task-selector select {
  width: min(520px, 48vw);
  height: 40px;
  padding: 0 34px 0 12px;
  color: #405069;
  background: #f8faff;
  border: 1px solid #dce4f1;
  border-radius: 7px;
  outline: 0;
  font-size: 12px;
}
.execution-log-task-selector select:focus {
  border-color: #8eadf4;
  box-shadow: 0 0 0 3px rgba(37,99,235,.07);
}
.channel-forward-detail-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f4;
}
.channel-forward-detail-summary > div {
  padding: 11px 12px;
  background: #f8faff;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
}
.channel-forward-detail-summary span,
.channel-forward-detail-summary b { display: block; }
.channel-forward-detail-summary span { margin-bottom: 5px; color: #8793a5; font-size: 10px; }
.channel-forward-detail-summary b { color: #334158; font-size: 17px; }
.channel-forward-execution {
  padding: 0 16px 15px;
  border-bottom: 1px solid #edf0f4;
}
.channel-forward-detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 11px;
}
.channel-forward-detail-section-title b,
.channel-forward-detail-section-title span { display: block; }
.channel-forward-detail-section-title b { margin-bottom: 4px; color: #334158; font-size: 13px; }
.channel-forward-detail-section-title span { color: #8b97a8; font-size: 10px; }
.channel-forward-detail-section-title em {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #55709c;
  background: #f0f5ff;
  border-radius: 12px;
  font-size: 9px;
  font-style: normal;
}
.channel-forward-record-title { padding: 14px 16px 11px; }
.channel-forward-execution-list {
  position: relative;
  max-height: 300px;
  padding: 3px 2px 3px 5px;
  overflow-y: auto;
}
.channel-forward-execution-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 9px;
  padding: 0 0 13px;
}
.channel-forward-execution-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: #e1e7f0;
}
.channel-forward-execution-item > i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 3px;
  background: #6d8fc9;
  border: 3px solid #edf3fd;
  border-radius: 50%;
}
.channel-forward-execution-item.success > i { background: #1aa873; border-color: #e4f7ef; }
.channel-forward-execution-item.warning > i { background: #db941e; border-color: #fff3dd; }
.channel-forward-execution-item.error > i { background: #df5649; border-color: #ffebe9; }
.channel-forward-execution-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.channel-forward-execution-item-head b { color: #3d4c62; font-size: 11px; }
.channel-forward-execution-item-head time { flex: 0 0 auto; color: #98a3b3; font-size: 9px; }
.channel-forward-execution-item p {
  margin: 4px 0 0;
  color: #64738a;
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.channel-forward-execution-item small {
  display: block;
  margin-top: 3px;
  color: #97a2b2;
  font-size: 9px;
  overflow-wrap: anywhere;
}
.channel-forward-execution-empty {
  padding: 18px;
  color: #919dad;
  background: #f8faff;
  border: 1px dashed #dce3ed;
  border-radius: 8px;
  text-align: center;
  font-size: 10px;
}
.channel-forward-result-table { min-width: 900px; table-layout: fixed; }
.channel-forward-result-table th:nth-child(1) { width: 16%; }
.channel-forward-result-table th:nth-child(2) { width: 21%; }
.channel-forward-result-table th:nth-child(3) { width: 13%; }
.channel-forward-result-table th:nth-child(4) { width: 30%; }
.channel-forward-result-table th:nth-child(5) { width: 20%; }
.channel-forward-result-table td { vertical-align: top; white-space: normal; }
.channel-forward-result-table td b,
.channel-forward-result-table td small { display: block; }
.channel-forward-result-table td b { color: #35445b; font-size: 12px; }
.channel-forward-result-table td small { margin-top: 4px; color: #929dac; font-size: 9px; overflow-wrap: anywhere; }
.channel-forward-result-table code { color: #405069; font-size: 11px; }
.channel-forward-comment-text {
  margin-top: 6px;
  padding: 7px 8px;
  color: #435168;
  background: #f5f8fd;
  border: 1px solid #e2e8f2;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 1160px) {
  .channel-forward-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .channel-forward-source-fields,
  .channel-forward-options { grid-template-columns: 1fr; }
  .channel-forward-fixed-rules { grid-template-columns: 1fr; }
  .channel-forward-target-heading,
  .channel-forward-group-toolbar { align-items: stretch; flex-direction: column; }
  .channel-forward-target-heading .secondary-btn { width: 100%; }
  .channel-forward-group-actions { width: 100%; }
  .channel-forward-group-actions .secondary-btn { flex: 1; }
  .channel-forward-group-list { grid-template-columns: 1fr; }
  .channel-forward-submit { align-items: stretch; flex-direction: column; }
  .channel-forward-submit .primary-action { width: 100%; }
  .channel-forward-detail-summary { grid-template-columns: 1fr 1fr; }
  .channel-forward-detail-summary > div:first-child { grid-column: 1 / -1; }
  .channel-forward-detail-section-title { align-items: flex-start; flex-direction: column; gap: 7px; }
  .execution-log-task-selector { align-items: stretch; flex-direction: column; }
  .execution-log-task-selector select { width: 100%; }
}
