/* ==========================================================================
   SparkFlow · 液态玻璃皮肤（叠加层）
   加载顺序：app.css → app-glass.css。只覆盖，不删除原有规则。
   ========================================================================== */

html.workspace-redesign {
  --bg: #061318;
  --surface: rgba(255,255,255,.14);
  --surface-solid: #0d2027;
  --surface-alt: rgba(255,255,255,.09);
  --surface-soft: rgba(255,255,255,.07);
  --surface-hover: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.16);
  --border-strong: rgba(255,255,255,.28);
  --text: #ffffff;
  --text-muted: rgba(255,255,255,.74);
  --text-faint: rgba(255,255,255,.50);
  --primary: #ff8a58;
  --primary-strong: #ffab7f;
  --primary-soft: rgba(255,138,88,.16);
  --success: #a8cdb9;
  --warning: #e3b072;
  --danger: #d79c95;
  --info: rgba(255,255,255,.62);
  --fire-grad: linear-gradient(140deg,#ff9a52,#e2542a 60%,#c33a1c);
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --shadow-sm: 0 10px 26px -20px rgba(0,0,0,.8);
  --shadow: 0 26px 60px -38px rgba(0,0,0,.9);
  --focus: 0 0 0 2px #fff;
  color-scheme: dark;
}

html.workspace-redesign[data-theme="light"] {
  --bg: #061318;
  --surface: rgba(255,255,255,.14);
  --surface-solid: #0d2027;
  --surface-alt: rgba(255,255,255,.09);
  --surface-soft: rgba(255,255,255,.07);
  --surface-hover: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.16);
  --border-strong: rgba(255,255,255,.28);
  --text: #ffffff;
  --text-muted: rgba(255,255,255,.74);
  --text-faint: rgba(255,255,255,.50);
  --primary: #ff8a58;
  --primary-strong: #ffab7f;
  --primary-soft: rgba(255,138,88,.16);
  --success: #a8cdb9;
  --warning: #e3b072;
  --danger: #d79c95;
  --info: rgba(255,255,255,.62);
  --fire-grad: linear-gradient(140deg,#ff9a52,#e2542a 60%,#c33a1c);
  --shadow-sm: 0 10px 26px -20px rgba(0,0,0,.8);
  --shadow: 0 26px 60px -38px rgba(0,0,0,.9);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   背景 + 外壳
   -------------------------------------------------------------------------- */
body,
.workspace-redesign body {
  background: #061318;
  color: #fff;
}

.glass-bg {
  position: fixed;
  inset: -2%;
  z-index: 0;
  pointer-events: none;
  background-image: url("/static/storm-bg.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: glassBgSettle 8s cubic-bezier(.16,1,.3,1) .1s forwards;
}
.glass-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(3,12,17,.50) 0%, rgba(3,12,17,.28) 34%, rgba(3,12,17,.06) 62%, rgba(3,12,17,0) 82%),
    linear-gradient(180deg, rgba(3,12,17,.46) 0%, rgba(3,12,17,.10) 24%, rgba(3,12,17,.16) 72%, rgba(3,12,17,.46) 100%);
}
@keyframes glassBgSettle { from { transform: scale(1.06); } to { transform: scale(1); } }

.workspace-redesign .app-shell {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 100vh;
}
.workspace-redesign .main-area {
  position: relative;
  z-index: 2;
  margin-left: 0;
  padding: 26px 30px 30px 124px;
  --workspace-inset: 0px;
}
.workspace-redesign .page-body { animation: none; }

@keyframes glassIn { from { opacity: 0; transform: translate3d(0,26px,0); } to { opacity: 1; transform: none; } }
@keyframes glassSlideR { from { opacity: 0; transform: translate3d(46px,0,0); } to { opacity: 1; transform: none; } }
@keyframes glassSlideL { from { opacity: 0; transform: translate3d(-22px,0,0); } to { opacity: 1; transform: none; } }
@keyframes glassPop { from { opacity: 0; transform: scale(.78); } to { opacity: 1; transform: scale(1); } }

/* --------------------------------------------------------------------------
   左侧图标轨
   -------------------------------------------------------------------------- */
.glass-rail {
  position: fixed;
  left: 14px;
  top: 12px;
  bottom: 12px;
  width: 84px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 16px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(8,22,28,.62), rgba(4,14,19,.50));
  backdrop-filter: blur(26px) saturate(112%);
  -webkit-backdrop-filter: blur(26px) saturate(112%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.06);
  animation: glassSlideL .8s cubic-bezier(.16,1,.3,1) .05s both;
}

.glass-rail .rail-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: #fff; text-decoration: none;
  animation: glassPop .55s cubic-bezier(.16,1,.3,1) .18s both;
}
.glass-rail .rail-mark svg { width: 30px; height: 30px; }

.glass-rail .rail-nav {
  margin-top: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.glass-rail .rail-link {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.60);
  text-decoration: none;
  transition: color .26s ease, background-color .26s ease, transform .26s ease;
  animation: glassIn .5s cubic-bezier(.16,1,.3,1) both;
}
.glass-rail .rail-link svg { width: 21px; height: 21px; }
.glass-rail .rail-link:hover { color: #fff; background: rgba(255,255,255,.10); transform: translateY(-1px); }
.glass-rail .rail-link.active { color: #fff; }
.glass-rail .rail-link.active::before {
  content: "";
  position: absolute; left: -14px; top: 5px; bottom: 5px; width: 4px;
  border-radius: 0 4px 4px 0; background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,.55);
}
.glass-rail .rail-link:nth-child(1) { animation-delay: .28s; }
.glass-rail .rail-link:nth-child(2) { animation-delay: .33s; }
.glass-rail .rail-link:nth-child(3) { animation-delay: .38s; }
.glass-rail .rail-link:nth-child(4) { animation-delay: .43s; }
.glass-rail .rail-link:nth-child(5) { animation-delay: .48s; }
.glass-rail .rail-link:nth-child(6) { animation-delay: .53s; }
.glass-rail .rail-link:nth-child(7) { animation-delay: .58s; }

.glass-rail .rail-tip {
  position: relative;
}
.glass-rail .rail-tip::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 6px 10px; border-radius: 9px; white-space: nowrap;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  color: #0b1a20; background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.8);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .24s cubic-bezier(.16,1,.3,1);
  z-index: 30;
}
.glass-rail .rail-tip:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

.glass-rail .rail-foot { margin-top: auto; }
.glass-rail .rail-foot form { margin: 0; }
.glass-rail .rail-foot button,
.glass-rail .rail-foot .rail-link {
  width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 14px; display: grid; place-items: center;
  color: rgba(255,255,255,.52); cursor: pointer;
  transition: color .26s, background-color .26s;
  animation: glassIn .5s cubic-bezier(.16,1,.3,1) .64s both;
}
.glass-rail .rail-foot button:hover,
.glass-rail .rail-foot .rail-link:hover { color: #fff; background: rgba(255,255,255,.09); }
.glass-rail .rail-foot svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   顶部 + 页面标题
   -------------------------------------------------------------------------- */
.workspace-redesign .workspace-topbar {
  margin: 0 0 18px;
  min-height: auto;
  padding: 0;
  background: none;
  border: 0;
  font-size: 13px;
  color: rgba(255,255,255,.62);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: glassIn .55s cubic-bezier(.16,1,.3,1) .12s both;
}
.workspace-redesign .workspace-topbar strong { color: #fff; font-weight: 600; }
.workspace-redesign .workspace-topbar svg { width: 13px; height: 13px; opacity: .5; }
.workspace-redesign .workspace-topbar-mode {
  margin-left: auto;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.workspace-redesign .page-header {
  margin-bottom: 18px;
  align-items: flex-end;
  animation: glassIn .6s cubic-bezier(.16,1,.3,1) .16s both;
}
.workspace-redesign .page-heading h1 {
  font-family: 'Inter Tight','Inter',sans-serif;
  font-size: clamp(34px,3.4vw,46px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.06;
  text-shadow: 0 2px 26px rgba(2,10,14,.45);
}
.workspace-redesign .workspace-eyebrow {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: #ffab7f;
  margin-bottom: 8px;
}
.workspace-redesign .page-heading p {
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,.76);
}
.workspace-redesign .icon-button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30);
  transition: background-color .26s, transform .26s;
}
.workspace-redesign .icon-button:hover { background: rgba(255,255,255,.20); transform: translateY(-2px); }
.workspace-redesign .icon-button svg { width: 19px; height: 19px; }

/* 主题切换按钮在深色玻璃上统一成圆形 */
.workspace-redesign .desktop-theme-toggle { display: inline-grid; }

/* --------------------------------------------------------------------------
   玻璃卡片通用
   -------------------------------------------------------------------------- */
.workspace-redesign .status-banner,
.workspace-redesign .metric-card,
.workspace-redesign .dashboard-section,
.workspace-redesign .collapsible-section,
.workspace-redesign .account-row,
.workspace-redesign .overview-strip,
.workspace-redesign .flash {
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.255) 0%, rgba(255,255,255,.185) 44%, rgba(255,255,255,.155) 100%);
  backdrop-filter: blur(38px) saturate(64%) brightness(1.08);
  -webkit-backdrop-filter: blur(38px) saturate(64%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 24px 54px -36px rgba(0,0,0,.85);
  color: #fff;
}

.workspace-redesign .status-banner {
  padding: 13px 18px;
  font-size: 13px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
  animation: glassIn .55s cubic-bezier(.16,1,.3,1) .22s both;
}
.workspace-redesign .status-banner strong { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.workspace-redesign .status-banner svg { width: 16px; height: 16px; }
.workspace-redesign .status-banner.success { background: linear-gradient(180deg, rgba(120,230,185,.26), rgba(80,200,160,.14)); }
.workspace-redesign .status-banner.info { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.13)); }
.workspace-redesign .status-banner.warning { background: linear-gradient(180deg, rgba(255,200,110,.26), rgba(255,180,80,.14)); }
.workspace-redesign .status-banner .pill {
  margin-left: auto;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
}
.workspace-redesign .status-banner .button { margin-left: auto; }

/* --------------------------------------------------------------------------
   总览：主列 + 右栏
   -------------------------------------------------------------------------- */
.dash-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px;
  gap: 22px;
  align-items: start;
  margin-top: 26px;
  animation: glassIn .9s cubic-bezier(.16,1,.3,1) .34s both;
}
.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-rail { display: flex; flex-direction: column; gap: 12px; }

.dash-chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 15px;
  border-radius: 18px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 0 0 1px rgba(255,255,255,.10);
  width: fit-content;
}

.dash-title {
  margin: 22px 0 0;
  font-family: 'Inter Tight','Inter',sans-serif;
  font-weight: 500;
  font-size: clamp(38px,3.9vw,56px);
  line-height: 1.08;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 2px 30px rgba(2,10,14,.45);
}
.dash-title .ln { display: block; }
.dash-title b { font-weight: 500; }

.dash-note {
  margin: 20px 0 0;
  max-width: 560px;
  font-size: 14.5px;
  line-height: 24px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 18px rgba(2,10,14,.40);
}
.dash-note b { color: #fff; font-weight: 600; }

/* 底部：数值行 + 曲线 + 刻度 */
.dash-strip { margin-top: 34px; }
.dash-kpis {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.dash-kpis .kpi { display: flex; flex-direction: column; gap: 4px; }
.dash-kpis .kpi b {
  font-family: 'Inter Tight','Inter',sans-serif;
  font-size: clamp(26px,2.4vw,34px); font-weight: 500; letter-spacing: -.02em; line-height: 1;
}
.dash-kpis .kpi small { font-size: 11.5px; color: rgba(255,255,255,.60); letter-spacing: .02em; }

.dash-wave { display: block; width: 100%; height: 132px; margin-top: 12px; overflow: visible; }
.dash-wave path {
  fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: glassDraw 1.7s cubic-bezier(.16,1,.3,1) 1.15s both;
}
.dash-wave .halo { stroke-width: 10; opacity: .15; filter: blur(6px); }
.dash-wave .core { stroke-width: 3.2; opacity: .92; }
@keyframes glassDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.dash-hours {
  display: flex; justify-content: space-between;
  margin-top: -14px;
  font-size: 14px; color: rgba(255,255,255,.82);
}

/* 右栏卡片 */
.rail-card {
  border-radius: 24px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.265) 0%, rgba(255,255,255,.195) 44%, rgba(255,255,255,.165) 100%);
  backdrop-filter: blur(40px) saturate(62%) brightness(1.10);
  -webkit-backdrop-filter: blur(40px) saturate(62%) brightness(1.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 26px 58px -38px rgba(0,0,0,.9);
  color: #fff;
  animation: glassSlideR .8s cubic-bezier(.16,1,.3,1) both;
}
.rail-card.big { animation-delay: .58s; display: flex; flex-direction: column; min-height: 250px; }
.rail-card.small { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.rail-card.small:nth-of-type(2) { animation-delay: .70s; }
.rail-card.small:nth-of-type(3) { animation-delay: .80s; }
.rail-card.small:nth-of-type(4) { animation-delay: .90s; }

.rail-head { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 500; }
.rail-head svg { width: 16px; height: 16px; opacity: .85; }

.rail-big {
  margin-block: auto;
  display: flex; align-items: flex-start; gap: 8px;
  font-family: 'Inter Tight','Inter',sans-serif; font-weight: 500; letter-spacing: -.03em; line-height: .9;
}
.rail-big .n { font-size: clamp(56px,4.6vw,74px); }
.rail-big .of { font-size: 24px; line-height: 1; margin-top: 10px; color: rgba(255,255,255,.62); }

.rail-metrics {
  display: flex; justify-content: space-between; gap: 8px;
  padding-top: 13px; margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.20);
  font-size: 12.5px; color: rgba(255,255,255,.92);
}
.rail-metrics span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rail-metrics svg { width: 14px; height: 14px; opacity: .7; }

.rail-copy small { display: block; font-size: 11px; color: rgba(255,255,255,.62); }
.rail-copy b { display: block; margin-top: 2px; font-size: 15.5px; font-weight: 600; }
.rail-copy em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: rgba(255,255,255,.66); }

.rail-value {
  display: flex; align-items: flex-start; gap: 6px;
  font-family: 'Inter Tight','Inter',sans-serif; font-weight: 500; letter-spacing: -.03em;
  font-size: 28px; line-height: 1;
}
.rail-value i { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; }
.tone-mint i { background: #a8cdb9; }
.tone-amber i { background: #e3b072; }
.tone-rose i { background: #d79c95; }
.tone-sky i { background: rgba(255,255,255,.62); }

/* --------------------------------------------------------------------------
   其余区块的玻璃化
   -------------------------------------------------------------------------- */
.workspace-redesign .dashboard-section,
.workspace-redesign .collapsible-section {
  padding: 18px 20px;
  margin-top: 16px;
  animation: glassIn .85s cubic-bezier(.16,1,.3,1) 1.00s both;
}
.workspace-redesign .section-title { color: #fff; font-size: 15px; }
.workspace-redesign .section-header p,
.workspace-redesign .muted { color: rgba(255,255,255,.62); }

.workspace-redesign .account-row {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.10));
  display: flex; align-items: center; gap: 14px;
  transition: background-color .26s, transform .26s;
}
.workspace-redesign .account-row:hover { transform: translateY(-1px); background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.14)); }
.workspace-redesign .account-avatar {
  background: var(--fire-grad);
  color: #fff;
  border-radius: 12px;
}
.workspace-redesign .progress-track { background: rgba(255,255,255,.14); }
.workspace-redesign .progress-strong { background: linear-gradient(90deg,#ffb27f,#e2542a); }

/* 表单控件 */
.workspace-redesign input[type="text"],
.workspace-redesign input[type="password"],
.workspace-redesign input[type="search"],
.workspace-redesign input[type="number"],
.workspace-redesign input[type="date"],
.workspace-redesign select,
.workspace-redesign textarea {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  border-radius: 12px;
}
.workspace-redesign input::placeholder,
.workspace-redesign textarea::placeholder { color: rgba(255,255,255,.42); }
.workspace-redesign input:focus,
.workspace-redesign select:focus,
.workspace-redesign textarea:focus {
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 0 0 2px rgba(255,255,255,.30);
  background: rgba(255,255,255,.14);
}
.workspace-redesign label > span { color: rgba(255,255,255,.72); }

.workspace-redesign .button {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.workspace-redesign .button:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }
.workspace-redesign .button-primary {
  border-color: transparent;
  background: var(--fire-grad);
  box-shadow: 0 16px 30px -20px rgba(226,84,42,.95), inset 0 1px 0 rgba(255,255,255,.34);
}
.workspace-redesign .button-primary:hover { filter: brightness(1.06); background: var(--fire-grad); }
.workspace-redesign .button-quiet { background: rgba(255,255,255,.08); }
.workspace-redesign .button-danger { border-color: transparent; background: linear-gradient(140deg,#e4453a,#b42318); }

.workspace-redesign table { color: #fff; }
.workspace-redesign thead th { background: rgba(255,255,255,.10); color: rgba(255,255,255,.62); border-color: rgba(255,255,255,.16); }
.workspace-redesign tbody td { border-color: rgba(255,255,255,.12); }
.workspace-redesign tbody tr:hover td { background: rgba(255,255,255,.08); }

.workspace-redesign .flash { padding: 12px 18px; margin-bottom: 12px; }

/* 脚本/日志等深色代码块 */
.workspace-redesign pre,
.workspace-redesign .logs-code {
  background: rgba(4,14,19,.65);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  border-radius: 14px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .dash-shell { grid-template-columns: minmax(0,1fr); }
  .dash-rail { flex-direction: row; flex-wrap: wrap; }
  .rail-card.big { flex: 1 1 260px; min-height: 200px; }
  .rail-card.small { flex: 1 1 180px; }
}

@media (max-width: 900px) {
  .glass-rail {
    left: 12px; right: 12px; top: auto; bottom: 12px;
    width: auto; height: 64px; flex-direction: row;
    justify-content: space-around; padding: 0; border-radius: 22px;
  }
  .glass-rail .rail-mark { width: 40px; height: 40px; }
  .glass-rail .rail-mark svg { width: 24px; height: 24px; }
  .glass-rail .rail-nav { margin: 0; flex-direction: row; gap: 0; }
  .glass-rail .rail-link { width: 40px; height: 40px; }
  .glass-rail .rail-link svg { width: 19px; height: 19px; }
  .glass-rail .rail-link.active::before { display: none; }
  .glass-rail .rail-tip::after { display: none; }
  .glass-rail .rail-foot { margin: 0; }
  .workspace-redesign .main-area { padding: 20px 16px 100px; }
  .dash-title { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-bg, .glass-rail, .glass-rail *, .rail-card, .dash-shell,
  .workspace-redesign .page-header, .workspace-redesign .workspace-topbar,
  .workspace-redesign .status-banner, .workspace-redesign .dashboard-section {
    animation: none !important;
  }
  .glass-bg { transform: none; }
  .dash-wave path { stroke-dashoffset: 0; animation: none; }
}

/* --------------------------------------------------------------------------
   细节修正（部署后检查发现）
   -------------------------------------------------------------------------- */
/* 深色单一主题：隐藏主题切换 */
.workspace-redesign .desktop-theme-toggle { display: none !important; }

/* 指标卡：去掉旧版彩色顶条，改用状态点 */
.workspace-redesign .metric-card::before { display: none; }
.workspace-redesign .metric-card { padding: 16px 18px; border-radius: 20px; }
.workspace-redesign .metric-label {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.80); font-size: 12px; letter-spacing: .02em; text-transform: none;
}
.workspace-redesign .metric-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45);
}
.workspace-redesign .metric-card.success .metric-label::before { background: #a8cdb9; }
.workspace-redesign .metric-card.warning .metric-label::before { background: #e3b072; }
.workspace-redesign .metric-card.danger .metric-label::before { background: #d79c95; }
.workspace-redesign .metric-card.info .metric-label::before { background: rgba(255,255,255,.62); }
.workspace-redesign .metric-value {
  font-family: 'Inter Tight','Inter',sans-serif;
  font-size: 32px; font-weight: 500; letter-spacing: -.03em;
  margin: 10px 0 6px;
}
.workspace-redesign .metric-help { color: rgba(255,255,255,.60); font-size: 11.5px; }

/* 账号行：改成内嵌深色层，避免叠出白带 */
.workspace-redesign .account-row {
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}
.workspace-redesign .account-row:hover { background: rgba(255,255,255,.12); }

/* 状态胶囊对比度 */
.workspace-redesign .status-chip {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.16);
  color: #fff;
}
.workspace-redesign .status-chip.success { background: rgba(168,205,185,.22); border-color: rgba(168,205,185,.44); color: #d9fff1; }
.workspace-redesign .status-chip.warning { background: rgba(227,176,114,.22); border-color: rgba(227,176,114,.44); color: #fff2da; }
.workspace-redesign .status-chip.danger { background: rgba(215,156,149,.22); border-color: rgba(215,156,149,.44); color: #ffe4e1; }
.workspace-redesign .status-chip.info { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.40); color: #e2f0ff; }

/* 表格放在卡片里时压暗一层，长文本更好读 */
.workspace-redesign .dashboard-section table,
.workspace-redesign .card table { background: rgba(6,18,22,.30); border-radius: 14px; }

/* 说明性小字统一提一点亮度 */
.workspace-redesign .section-header p,
.workspace-redesign .muted,
.workspace-redesign .metric-help,
.workspace-redesign .overview-help { color: rgba(255,255,255,.62); }
/* --------------------------------------------------------------------------
   登录页
   -------------------------------------------------------------------------- */
.login-page { background: #061318; color: #fff; }
.login-page .glass-bg { z-index: 0; }
.login-page .login-brand-panel,
.workspace-redesign.login-page .login-brand-panel {
  background: transparent;
  color: #fff;
  position: relative;
  z-index: 1;
}
.login-page .login-form-panel {
  background: transparent;
  position: relative;
  z-index: 1;
  padding: 40px 28px;
}
.login-page .login-card {
  width: min(430px, 100%) !important;
  border-radius: 26px !important;
  padding: 32px 30px 26px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.185) 44%, rgba(255,255,255,.155) 100%) !important;
  backdrop-filter: blur(40px) saturate(62%) brightness(1.10);
  -webkit-backdrop-filter: blur(40px) saturate(62%) brightness(1.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 30px 70px -40px rgba(0,0,0,.9);
  border: 0 !important;
  color: #fff !important;
  animation: glassIn .7s cubic-bezier(.16,1,.3,1) .1s both;
}
.login-page .login-card h2, .login-page .login-card h2 * { font-family: 'Inter Tight','Inter',sans-serif; font-weight: 500; font-size: 26px; letter-spacing: -.02em; }
.login-page .login-card > p { color: rgba(255,255,255,.78) !important; }
.login-page .login-brand-copy h1 { font-family: 'Inter Tight','Inter',sans-serif; font-weight: 500; letter-spacing: -.02em; }
.login-page .login-brand-copy h1 span { color: #ffc09a; -webkit-text-fill-color: currentColor; background: none; }
.login-page .login-brand-copy p,
.login-page .login-features li { color: rgba(255,255,255,.82); }
.login-page .login-features li svg { color: #ffab7f; opacity: 1; }
.login-page .login-foot { border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.56); }
.login-page .stack-form input {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
.login-page .stack-form label > span { color: rgba(255,255,255,.72) !important; }
.login-page .brand-subtitle,
.login-page .muted { color: rgba(255,255,255,.56); }
@media (max-width: 860px) {
  .login-page .login-brand-panel { display: none; }
}
/* --------------------------------------------------------------------------
   总览紧凑头部 —— 与预览同一骨架（无大标题 / 无通栏状态条）
   -------------------------------------------------------------------------- */
.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  animation: glassIn .65s cubic-bezier(.16,1,.3,1) .10s both;
}
.dash-hello small {
  display: block;
  font-size: 14.5px;
  font-weight: 400;
  color: rgba(255,255,255,.86);
  letter-spacing: 0;
}
.dash-hello b {
  display: block;
  margin-top: 8px;
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.dash-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* 状态胶囊（JS 会重置 className，所以按祖先选择器覆盖） */
.dash-tools .status-banner {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(20px) saturate(70%);
  -webkit-backdrop-filter: blur(20px) saturate(70%);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  animation: none;
}
.dash-tools .status-banner.success { background: rgba(168,205,185,.18) !important; }
.dash-tools .status-banner.warning { background: rgba(227,176,114,.20) !important; }
.dash-tools .status-banner.info { background: rgba(255,255,255,.16) !important; }
.dash-tools .status-banner strong { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.dash-tools .status-banner svg { width: 14px; height: 14px; }
.dash-tools .status-banner .pill { display: none; }
.dash-tools .refresh-notice {
  padding: 0;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.dash-tools .refresh-round {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.20);
}
.dash-tools .action-bar { gap: 9px; }
.dash-tools .action-bar .button {
  height: 40px;
  border-radius: 999px;
  padding: 0 15px;
  font-size: 12.5px;
  animation: glassIn .5s cubic-bezier(.16,1,.3,1) .22s both;
}

/* 右栏卡片过渡（悬停可见的液态反馈，不闪） */
.rail-card { transition: transform .3s cubic-bezier(.16,1,.3,1), filter .3s ease, box-shadow .3s ease; }
.rail-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 32px 64px -38px rgba(0,0,0,.95);
}

/* 背景稍微提亮，贴近预览 */
.glass-bg::after {
  background:
    linear-gradient(96deg, rgba(3,12,17,.46) 0%, rgba(3,12,17,.24) 34%, rgba(3,12,17,.05) 62%, rgba(3,12,17,0) 82%),
    linear-gradient(180deg, rgba(3,12,17,.40) 0%, rgba(3,12,17,.08) 24%, rgba(3,12,17,.12) 72%, rgba(3,12,17,.40) 100%);
}
/* 总览页隐藏面包屑（与 hello 重复），其它页保留 */
.workspace-redesign .workspace-topbar { display: none; }
.workspace-redesign .main-area { padding-top: 22px; }
/* --------------------------------------------------------------------------
   页面切换过渡（Chrome/Edge 支持跨文档 View Transitions，点击导航会有淡入淡出）
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .16s ease both; }
::view-transition-new(root) { animation: vtIn .34s cubic-bezier(.16,1,.3,1) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.995); } }
@keyframes vtIn { from { opacity: 0; transform: scale(1.006); } }

/* 卡片/按钮的悬停反馈再明确一点（不是闪烁，是跟随指针的位移） */
.workspace-redesign .button,
.workspace-redesign .icon-button,
.glass-rail .rail-link { will-change: transform; }
/* --------------------------------------------------------------------------
   配色收敛：暖中性底 + 单一余烬主色，状态只用低饱和色点
   -------------------------------------------------------------------------- */
html.workspace-redesign,
html.workspace-redesign[data-theme="light"] {
  --success: #a8cdb9;
  --warning: #e3b072;
  --danger: #d79c95;
  --info: rgba(255,255,255,.66);
}

/* 状态点更小更安静 */
.rail-value i { width: 6px; height: 6px; margin-top: 7px; }
.workspace-redesign .metric-label::before { width: 5px; height: 5px; opacity: .9; }

/* 状态胶囊统一成"白玻璃 + 极淡色调"，不抢主色 */
.workspace-redesign .status-chip,
.workspace-redesign .status-chip.success,
.workspace-redesign .status-chip.warning,
.workspace-redesign .status-chip.danger,
.workspace-redesign .status-chip.info {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
}
.workspace-redesign .status-chip.success { box-shadow: inset 0 0 0 1px rgba(168,205,185,.45); }
.workspace-redesign .status-chip.warning { box-shadow: inset 0 0 0 1px rgba(227,176,114,.45); }
.workspace-redesign .status-chip.danger  { box-shadow: inset 0 0 0 1px rgba(215,156,149,.45); }
.workspace-redesign .status-chip.info    { box-shadow: inset 0 0 0 1px rgba(255,255,255,.30); }

/* 状态条也用中性的玻璃，只有图标着色 */
.workspace-redesign .status-banner.success,
.dash-tools .status-banner.success { background: rgba(168,205,185,.14) !important; }
.workspace-redesign .status-banner.warning,
.dash-tools .status-banner.warning { background: rgba(227,176,114,.14) !important; }
.workspace-redesign .status-banner.info,
.dash-tools .status-banner.info { background: rgba(255,255,255,.12) !important; }

/* 主色只留给可点的主按钮与活跃项 */
.workspace-redesign .button-primary,
.glass-rail .rail-link.active::before { background: var(--fire-grad); }
/* --------------------------------------------------------------------------
   侧栏：真正的玻璃（更亮、可见边缘高光、背后纹理透出来）
   -------------------------------------------------------------------------- */
.glass-rail {
  background: linear-gradient(180deg,
    rgba(255,255,255,.155) 0%,
    rgba(255,255,255,.105) 16%,
    rgba(255,255,255,.070) 58%,
    rgba(255,255,255,.055) 100%);
  border: 1px solid rgba(255,255,255,.17);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 24px 60px -40px rgba(0,0,0,.85);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
}
.glass-rail .rail-mark { border-radius: 14px; }

/* 左侧压暗减轻一点，让玻璃后面有东西可透 */
.glass-bg::after {
  background:
    linear-gradient(96deg, rgba(3,12,17,.34) 0%, rgba(3,12,17,.20) 34%, rgba(3,12,17,.05) 62%, rgba(3,12,17,0) 82%),
    linear-gradient(180deg, rgba(3,12,17,.38) 0%, rgba(3,12,17,.08) 24%, rgba(3,12,17,.10) 72%, rgba(3,12,17,.38) 100%);
}

/* --------------------------------------------------------------------------
   按钮：主色只给主操作，破坏性操作改成"玻璃 + 淡砖红描边"，不再整块红
   -------------------------------------------------------------------------- */
.workspace-redesign .button-danger {
  background: rgba(215,156,149,.10);
  border: 1px solid rgba(215,156,149,.38);
  color: #efd0cb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.workspace-redesign .button-danger:hover {
  background: rgba(215,156,149,.20);
  border-color: rgba(215,156,149,.55);
  color: #fff;
}
.workspace-redesign .button-soft {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.workspace-redesign .button-soft:hover { background: rgba(255,255,255,.17); }

/* 按钮行：提示文案独占一行，不再夹在按钮中间 */
.workspace-redesign .button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.workspace-redesign .button-row .login-workspace-hint,
.workspace-redesign .button-row > p {
  flex: 0 0 100%;
  margin: 2px 0 6px;
  order: 20;
  color: rgba(255,255,255,.60);
  font-size: 12px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   去掉"卡片套卡片"的玻璃堆叠：内层一律做成平面分隔
   -------------------------------------------------------------------------- */
.workspace-redesign .dashboard-section .collapsible-section {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(255,255,255,.10);
  border-radius: 0;
  padding: 16px 2px 4px;
  margin-top: 12px;
}
.workspace-redesign .collapsible-section .status-banner,
.workspace-redesign .collapsible-section .card,
.workspace-redesign .collapsible-section .panel,
.workspace-redesign .dashboard-section .status-banner:not([data-task-banner]) {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 折叠标题排版收紧 */
.workspace-redesign .collapsible-section > summary,
.workspace-redesign .section-header {
  gap: 10px;
  padding-bottom: 10px;
}
.workspace-redesign .section-title { font-size: 15.5px; letter-spacing: -.01em; }
.workspace-redesign .section-header p { font-size: 12.5px; margin-top: 4px; }
/* 侧栏玻璃再提亮一档：底色太黑时靠自身白度+边缘高光撑出"霜面" */
.glass-rail {
  background:
    radial-gradient(120% 40% at 30% 2%, rgba(255,255,255,.22), transparent 62%),
    linear-gradient(180deg,
      rgba(255,255,255,.20) 0%,
      rgba(255,255,255,.135) 18%,
      rgba(255,255,255,.095) 58%,
      rgba(255,255,255,.075) 100%);
  border-color: rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 0 0 1px rgba(255,255,255,.07),
    inset 0 -40px 80px -60px rgba(255,255,255,.30),
    0 26px 60px -40px rgba(0,0,0,.9);
}
.glass-rail .rail-link { color: rgba(255,255,255,.72); }
.glass-rail .rail-link:hover { color: #fff; }
.glass-rail .rail-link.active { color: #fff; }
/* ==========================================================================
   最终统一：全站去橙红 + 按钮统一"透明玻璃细白边" + 非首页重新排版
   ========================================================================== */

/* 1. 调色板：只剩白与灰 */
html.workspace-redesign,
html.workspace-redesign[data-theme="light"] {
  --primary: #ffffff;
  --primary-strong: #ffffff;
  --primary-soft: rgba(255,255,255,.13);
  --primary-glow: rgba(255,255,255,.20);
  --fire-grad: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.13));
  --success: #dfe7e3;
  --warning: #e2dad0;
  --danger: #ddd5d2;
  --info: #dbe2e6;
}

/* 2. 所有按钮：透明玻璃 + 1px 白边（图一样式） */
.workspace-redesign .button,
.workspace-redesign .button-primary,
.workspace-redesign .button-soft,
.workspace-redesign .button-quiet,
.workspace-redesign .button-danger,
.workspace-redesign .ghost-button {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.workspace-redesign .button:hover,
.workspace-redesign .button-primary:hover,
.workspace-redesign .button-soft:hover,
.workspace-redesign .button-danger:hover,
.workspace-redesign .ghost-button:hover {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.36) !important;
  filter: none !important;
  transform: translateY(-1px);
}
.workspace-redesign .button svg { opacity: .92; }

/* 3. 所有彩色点缀一律变白/灰 */
.brand-mark,
.workspace-redesign .account-avatar,
.workspace-redesign .user-avatar {
  background: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 0 0 1px rgba(255,255,255,.16) !important;
  color: #fff !important;
}
.glass-rail .rail-link.active::before,
.workspace-redesign .nav-item.active::before { background: #fff !important; box-shadow: 0 0 14px rgba(255,255,255,.55) !important; }
.workspace-redesign .progress-strong { background: rgba(255,255,255,.72) !important; }
.workspace-redesign .progress-echo { background: rgba(255,255,255,.34) !important; }
.workspace-redesign .metric-label::before,
.rail-value i,
.targets .dot,
.who .dot,
.dash-tools .status-banner .live {
  background: rgba(255,255,255,.62) !important;
  box-shadow: none !important;
}
.rail-value i { opacity: .85; }
.workspace-redesign .metric-card.success .metric-label::before,
.workspace-redesign .metric-card.warning .metric-label::before,
.workspace-redesign .metric-card.danger .metric-label::before,
.workspace-redesign .metric-card.info .metric-label::before { background: rgba(255,255,255,.62) !important; }

/* 状态胶囊/状态条：中性玻璃 */
.workspace-redesign .status-chip,
.workspace-redesign .status-chip.success,
.workspace-redesign .status-chip.warning,
.workspace-redesign .status-chip.danger,
.workspace-redesign .status-chip.info,
.workspace-redesign .pill,
.dash-tools .status-banner,
.dash-tools .status-banner.success,
.dash-tools .status-banner.warning,
.dash-tools .status-banner.info {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.workspace-redesign .status-banner.success,
.workspace-redesign .status-banner.warning,
.workspace-redesign .status-banner.info {
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
}

/* 顶部胶囊里的图标也跟随中性 */
.dash-tools .status-banner svg { color: rgba(255,255,255,.86); }

/* 4. 非首页重新排版：收窄内容、压平状态条、卡片网格统一 */
body:not([data-page="dashboard"]) .page-body { max-width: 1180px; }

body:not([data-page="dashboard"]) .status-banner {
  padding: 11px 15px;
  font-size: 12.5px;
  border-radius: 14px;
  margin-bottom: 8px;
  min-height: 0;
}
body:not([data-page="dashboard"]) .status-banner strong { font-size: 12.5px; }

body:not([data-page="dashboard"]) .metric-grid {
  gap: 12px;
  margin-top: 14px;
}
body:not([data-page="dashboard"]) .metric-card {
  padding: 14px 16px 13px;
  border-radius: 18px;
}
body:not([data-page="dashboard"]) .metric-value { font-size: 27px; margin: 8px 0 5px; }
body:not([data-page="dashboard"]) .metric-help { font-size: 11px; }

body:not([data-page="dashboard"]) .dashboard-section,
body:not([data-page="dashboard"]) .collapsible-section {
  padding: 18px 20px;
  margin-top: 14px;
  border-radius: 20px;
}
body:not([data-page="dashboard"]) .section-header { margin-bottom: 12px; }

/* 调度计划：两栏等宽 */
.workspace-redesign .advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .workspace-redesign .advanced-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 账号行、统计数字对齐 */
.workspace-redesign .account-row { gap: 12px; padding: 12px 14px; }
.workspace-redesign .summary-value strong { font-size: 16px; }
.workspace-redesign .summary-value small { font-size: 10.5px; color: rgba(255,255,255,.58); }

/* 输入框保持中性 */
.workspace-redesign input[type="checkbox"] { accent-color: #cfd8dc; }
/* ==========================================================================
   非首页版式重排：状态条成排、卡片按内容收窄
   ========================================================================== */

/* 状态条改成横向排布（不改模板，用 flex 让它们并排） */
body:not([data-page="dashboard"]) .dashboard-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
body:not([data-page="dashboard"]) .dashboard-stack > .status-banner {
  flex: 1 1 300px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
}
body:not([data-page="dashboard"]) .dashboard-stack > .status-banner strong {
  font-size: 12px;
  gap: 7px;
}
body:not([data-page="dashboard"]) .dashboard-stack > .status-banner .pill { display: none; }
body:not([data-page="dashboard"]) .dashboard-stack > .status-banner .button {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 9px;
}
/* 其余区块独占一行 */
body:not([data-page="dashboard"]) .dashboard-stack > :not(.status-banner) {
  flex: 1 1 100%;
  min-width: 0;
}

/* 各页内容宽度：卡片贴内容，不再拉满 */
body[data-page="send_console"] .page-body { max-width: 1200px; }
body[data-page="login"]        .page-body { max-width: 900px; }
body[data-page="settings"]     .page-body { max-width: 980px; }
body[data-page="accounts"]     .page-body { max-width: 960px; }
body[data-page="schedule"]     .page-body { max-width: 1080px; }
body[data-page="logs"]         .page-body { max-width: 1200px; }

/* 状态条后面那句提示文字，收成一行小字 */
body:not([data-page="dashboard"]) .dashboard-stack > p.muted {
  flex: 1 1 100%;
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  order: 5;
}
/* ==========================================================================
   修正：按真实 DOM 重排（send-console 用 .console-shell，日志页 data-page 复用 dashboard）
   ========================================================================== */
body[data-page="send-console"] .console-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
body[data-page="send-console"] .console-shell > .status-banner {
  flex: 1 1 300px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
}
body[data-page="send-console"] .console-shell > .status-banner strong { font-size: 12px; gap: 7px; }
body[data-page="send-console"] .console-shell > .status-banner .pill { display: none; }
body[data-page="send-console"] .console-shell > .status-banner .button {
  height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 9px;
}
body[data-page="send-console"] .console-shell > :not(.status-banner) {
  flex: 1 1 100%;
  min-width: 0;
}

/* 非首页（没有 .dash-shell 的页面）统一内容宽度 */
body:not(:has(.dash-shell)) .page-body { max-width: 1180px; }
body[data-page="login"]    .page-body { max-width: 1120px; }
body[data-page="settings"] .page-body { max-width: 980px; }
body[data-page="accounts"] .page-body { max-width: 1000px; }
body[data-page="schedule"] .page-body { max-width: 1080px; }
/* 按钮微调：白度贴近参考图（原 .06 → .10，边框 .22 → .26） */
.workspace-redesign .button,
.workspace-redesign .button-primary,
.workspace-redesign .button-soft,
.workspace-redesign .button-quiet,
.workspace-redesign .button-danger,
.workspace-redesign .ghost-button {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  border-radius: 11px !important;
}
.workspace-redesign .button:hover,
.workspace-redesign .button-primary:hover,
.workspace-redesign .button-soft:hover,
.workspace-redesign .button-danger:hover,
.workspace-redesign .ghost-button:hover {
  background: rgba(255,255,255,.19) !important;
  border-color: rgba(255,255,255,.40) !important;
}
/* ==========================================================================
   真·重排：发送控制台 / 系统设置 / 运行日志 改为双栏结构
   ========================================================================== */

/* --- 发送控制台：左主栏（账号明细）+ 右信息栏（4 个统计卡竖排） --- */
body[data-page="send-console"] .console-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 14px;
  align-items: start;
}
body[data-page="send-console"] .console-shell > .status-banner {
  grid-column: 1 / -1;
  margin: 0;
}
body[data-page="send-console"] .console-shell > p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
body[data-page="send-console"] .console-shell > .metric-grid {
  grid-column: 2;
  grid-row: 3 / span 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
body[data-page="send-console"] .console-shell > .metric-grid .metric-card {
  width: 100%;
}
body[data-page="send-console"] .console-shell > .dashboard-section {
  grid-column: 1;
  margin: 0;
}
@media (max-width: 1080px) {
  body[data-page="send-console"] .console-shell { grid-template-columns: minmax(0, 1fr); }
  body[data-page="send-console"] .console-shell > .metric-grid { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
  body[data-page="send-console"] .console-shell > .metric-grid .metric-card { flex: 1 1 150px; }
}

/* --- 系统设置：区块两栏并排 --- */
body[data-page="settings"] .dashboard-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
body[data-page="settings"] .dashboard-stack > .status-banner { grid-column: 1 / -1; margin: 0; }
body[data-page="settings"] .dashboard-stack > .dashboard-section { margin: 0; }
@media (max-width: 1080px) {
  body[data-page="settings"] .dashboard-stack { grid-template-columns: minmax(0, 1fr); }
}

/* --- 运行日志：左表右日志 --- */
body[data-page="dashboard"][data-log-page] .page-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
/* 修正发送控制台排版：flex 换行 + order，左账号明细 / 右统计栏 */
body[data-page="send-console"] .console-shell {
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}
body[data-page="send-console"] .console-shell > .status-banner {
  flex: 1 1 100%;
  order: 1;
  margin: 0;
}
body[data-page="send-console"] .console-shell > p {
  flex: 1 1 100%;
  order: 2;
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
body[data-page="send-console"] .console-shell > .dashboard-section {
  order: 3;
  flex: 1 1 58%;
  min-width: 420px;
  margin: 0;
}
body[data-page="send-console"] .console-shell > .metric-grid {
  order: 4;
  flex: 0 0 286px;
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
body[data-page="send-console"] .console-shell > .metric-grid .metric-card { width: 100%; }
@media (max-width: 1080px) {
  body[data-page="send-console"] .console-shell > .dashboard-section { min-width: 100%; }
  body[data-page="send-console"] .console-shell > .metric-grid { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  body[data-page="send-console"] .console-shell > .metric-grid .metric-card { flex: 1 1 150px; }
}
/* 状态条回到一行（3 个并排），不再占三行 */
body[data-page="send-console"] .console-shell > .status-banner {
  flex: 1 1 300px;
  padding: 10px 14px;
  font-size: 12px;
  border-radius: 14px;
}
body[data-page="send-console"] .console-shell > .status-banner strong { font-size: 12px; }
body[data-page="send-console"] .console-shell > .status-banner .pill { display: none; }
body[data-page="send-console"] .console-shell > .status-banner .button {
  height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 9px;
}
/* 设置页：外层回到单列（两列会把表单挤坏），内部字段保持两列 */
body[data-page="settings"] .dashboard-stack {
  display: block;
}
body[data-page="settings"] .dashboard-stack > * + * { margin-top: 14px; }
body[data-page="settings"] .dashboard-stack > .status-banner { margin: 0; }
body[data-page="settings"] .dashboard-stack > .dashboard-section { margin: 0; max-width: 980px; }
body[data-page="settings"] .collapsible-section { max-width: 980px; }