/* Owner web workspace only. Business state colors and behavior remain unchanged. */
.shell.admin-workspace.admin-workspace {
  --admin-side-top: #30446f;
  --admin-side-bottom: #24365a;
  --admin-accent: #5642c9;
  --admin-accent-end: #285fba;
  --admin-soft: #f0efff;
  --admin-soft-border: #dcd9ff;
  --admin-glow: rgba(115, 122, 224, .08);
  --ws-accent: var(--admin-accent);
  --ws-bg: #f5f8fd;
  --ws-line: #dfe7f2;
  background: #f5f8fd;
}
.shell.admin-workspace.admin-workspace[data-admin-theme='blue'] {
  --admin-side-top: #31577c; --admin-side-bottom: #264562;
  --admin-accent: #175ca7; --admin-accent-end: #117c94;
  --admin-soft: #eaf5ff; --admin-soft-border: #cde4f6;
  --admin-glow: rgba(75, 164, 226, .09);
}
.shell.admin-workspace.admin-workspace[data-admin-theme='mint'] {
  --admin-side-top: #315f60; --admin-side-bottom: #254b50;
  --admin-accent: #0d6f62; --admin-accent-end: #11758c;
  --admin-soft: #e9f8f4; --admin-soft-border: #c9e9df;
  --admin-glow: rgba(63, 160, 140, .09);
}
.shell.admin-workspace.admin-workspace[data-admin-theme='peach'] {
  --admin-side-top: #72535c; --admin-side-bottom: #5c414d;
  --admin-accent: #a04455; --admin-accent-end: #a04b3a;
  --admin-soft: #fff2ef; --admin-soft-border: #f3d8d3;
  --admin-glow: rgba(225, 146, 116, .09);
}
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) { --ws-accent: var(--admin-accent); }
.shell.admin-workspace.admin-workspace>aside,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header)>aside {
  background: linear-gradient(170deg, var(--admin-side-top), var(--admin-side-bottom));
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 10px 0 30px rgba(34, 51, 85, .10);
}
.shell.admin-workspace.admin-workspace>aside .brand { border-color: rgba(255, 255, 255, .13); }
.shell.admin-workspace.admin-workspace>aside .brand>span {
  background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-end));
  box-shadow: 0 6px 16px rgba(28, 43, 84, .20);
}
.shell.admin-workspace.admin-workspace>aside .navlabel,
.shell.admin-workspace.admin-workspace .workspace-nav-label,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header)>aside .navlabel,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .workspace-nav-label { color: #d0ddf1; }
.shell.admin-workspace.admin-workspace>aside nav .nav-item,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header)>aside nav .nav-item { color: #e1e9f6; }
.shell.admin-workspace.admin-workspace>aside nav .nav-item:hover,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header)>aside nav .nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.shell.admin-workspace.admin-workspace>aside nav .nav-item.active,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header)>aside nav .nav-item.active {
  background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.24);
  border-left-color: #fff; color: #fff;
}
.shell.admin-workspace.admin-workspace .workspace-nav-badge { background: rgba(255,255,255,.18); color: #fff; }
.shell.admin-workspace.admin-workspace>aside .sidefoot { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.shell.admin-workspace.admin-workspace>aside .sidefoot small,
.shell.admin-workspace.admin-workspace>aside .logout { color: #d5e1f1; }
.shell.admin-workspace.admin-workspace>main,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header)>main {
  background: radial-gradient(ellipse at 80% 0, var(--admin-glow), transparent 44%), #f5f8fd;
}
.shell.admin-workspace.admin-workspace>main>header,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header)>main>.owner-ws-header {
  background: rgba(255,255,255,.97); border-bottom-color: #e1e9f3;
}
.shell.admin-workspace.admin-workspace .panel,
.shell.admin-workspace.admin-workspace .zv-panel,
.shell.admin-workspace.admin-workspace .zv-title,
.shell.admin-workspace.admin-workspace .zv-stats>div,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-metrics>article,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-board,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-quick,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-logs,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-history {
  background: #fff; border-color: #dfe7f2;
  box-shadow: 0 8px 25px rgba(42,62,100,.055), 0 2px 5px rgba(42,62,100,.025);
}
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-metrics>article { border-radius: 14px; }
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-board-head { background: linear-gradient(100deg,#fff,var(--admin-soft)); }
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-slots { background: #fbfcff; }
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-board h2 svg,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-idle>button,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-slot>footer button { color: var(--admin-accent); }
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-metrics i.indigo,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-quick>i { color: var(--admin-accent); background: var(--admin-soft); }
.shell.admin-workspace.admin-workspace .primary,
.shell.admin-workspace.admin-workspace .zv-primary,
.shell.admin-workspace.admin-workspace .zr-workbench .zr-primary,
.shell.admin-workspace.admin-workspace .zr-workbench .recharge-button,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-primary,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-start .owner-ws-start-button {
  background: linear-gradient(110deg,var(--admin-accent),var(--admin-accent-end));
  border-color: var(--admin-accent); color: #fff;
  box-shadow: 0 6px 15px rgba(37, 60, 111, .16);
}
.shell.admin-workspace.admin-workspace .primary:hover,
.shell.admin-workspace.admin-workspace .zv-primary:hover,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-primary:hover,
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .owner-ws-start .owner-ws-start-button:hover {
  background: linear-gradient(110deg,var(--admin-accent),var(--admin-accent-end));
  color: #fff; filter: brightness(1.05);
}
.shell.admin-workspace.admin-workspace .zv-tabs button.selected { background: var(--admin-accent); border-color: var(--admin-accent); color: #fff; }
.shell.admin-workspace.admin-workspace .record-center-tabs button.active { color: var(--admin-accent); }
.shell.admin-workspace.admin-workspace .zv-link { background: var(--admin-soft); border-color: var(--admin-soft-border); }
.shell.admin-workspace.admin-workspace .zv-link a { color: var(--admin-accent); }
.shell.admin-workspace.admin-workspace input:focus-visible,
.shell.admin-workspace.admin-workspace select:focus-visible,
.shell.admin-workspace.admin-workspace textarea:focus-visible,
.shell.admin-workspace.admin-workspace button:focus-visible { outline: 3px solid var(--admin-accent); outline-offset: 2px; }
/* The owner can change colors on every admin page; the control takes its own row. */
.shell.admin-workspace.admin-workspace .admin-theme-control {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  color: #43536e; font-size: 12px; font-weight: 600;
  margin: 0 0 14px; position: relative;
}
.shell.admin-workspace.admin-workspace .admin-theme-control select.admin-theme-trigger {
  width: auto; max-width: min(230px, 60vw); min-height: 36px;
  padding: 6px 30px 6px 11px; border: 1px solid var(--admin-soft-border);
  border-radius: 10px; background-color: #fff; color: var(--admin-accent);
}
@media (max-width: 700px) {
  .shell.admin-workspace.admin-workspace>aside,
  .shell.admin-workspace.admin-workspace:has(.owner-ws-header)>aside {
    background: linear-gradient(120deg, var(--admin-side-top), var(--admin-side-bottom));
  }
  .shell.admin-workspace.admin-workspace .admin-theme-control { margin-bottom: 12px; }
  .shell.admin-workspace.admin-workspace>aside nav .nav-item.active,
  .shell.admin-workspace.admin-workspace:has(.owner-ws-header)>aside nav .nav-item.active { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shell.admin-workspace.admin-workspace .primary,
  .shell.admin-workspace.admin-workspace .zv-primary { transition: none; }
}

/* Independent owner-only color control; rendered in normal document flow. */
.wuyou-live-theme-bar { box-sizing:border-box; min-height:48px; display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:6px 32px 6px 270px; background:#fff; border-bottom:1px solid #e1e9f3; color:#43536e; font:600 12px/1.5 system-ui,"Microsoft YaHei",sans-serif; }
.wuyou-live-theme-bar label { white-space:nowrap; }
.wuyou-live-theme-bar select { box-sizing:border-box; min-width:145px; max-width:60vw; min-height:34px; padding:5px 9px; border:1px solid #dcd9ff; border-radius:9px; background:#fff; color:#5144c9; font:inherit; cursor:pointer; }
.wuyou-live-theme-bar select:focus-visible { outline:3px solid #5144c9; outline-offset:2px; }
@media(max-width:700px) { .wuyou-live-theme-bar { padding:6px 14px; min-height:45px; } }

/* Owner's profit pages use their own design tokens; status and negative values keep their own colors. */
.shell.admin-workspace.admin-workspace .wuyou-hub.daily-profit-page {
  --profit-accent:var(--admin-accent); --profit-accent-ink:var(--admin-accent);
  --profit-soft:var(--admin-soft); --profit-line:#dfe7f2; --profit-muted:#5e6e89;
}
.shell.admin-workspace.admin-workspace .daily-profit-page .profit-hero,
.shell.admin-workspace.admin-workspace .daily-profit-page .hub-card,
.shell.admin-workspace.admin-workspace .daily-profit-page .profit-section {
  border-color:#dfe7f2; box-shadow:0 8px 25px rgba(42,62,100,.055),0 2px 5px rgba(42,62,100,.025);
}

/* Overview, agent, card pool, funds and settings: use the same light surfaces. */
.shell.admin-workspace.admin-workspace .manager-welcome {
  background:linear-gradient(110deg,#fff,var(--admin-soft)); border:1px solid var(--admin-soft-border); color:#1b2946;
}
.shell.admin-workspace.admin-workspace .manager-welcome h2,
.shell.admin-workspace.admin-workspace .manager-welcome h3 { color:#1b2946; }
.shell.admin-workspace.admin-workspace .manager-welcome span,
.shell.admin-workspace.admin-workspace .manager-welcome p { color:#5e6e89; }
.shell.admin-workspace.admin-workspace .manager-metrics strong { color:var(--admin-accent); }
.shell.admin-workspace.admin-workspace .manager-metrics article:nth-child(3) strong { color:#059669; }
.shell.admin-workspace.admin-workspace .manager-metrics article>div svg { color:var(--admin-accent); }
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .console-v3 :is(.cv-card,.bm-panel),
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .console-v3 .bm-balances>div,
.shell.admin-workspace.admin-workspace .bank-manager .bm-panel,
.shell.admin-workspace.admin-workspace .bank-manager .bm-balances>div,
.shell.admin-workspace.admin-workspace .partner-create-panel {
  background:#fff; border-color:#dfe7f2; box-shadow:0 8px 25px rgba(42,62,100,.055),0 2px 5px rgba(42,62,100,.025);
}
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .console-v3 :is(.cv-primary,.zv-primary),
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .console-v3 a.cv-primary {
  background:linear-gradient(110deg,var(--admin-accent),var(--admin-accent-end)); border-color:var(--admin-accent); color:#fff;
}
.shell.admin-workspace.admin-workspace:has(.owner-ws-header) .console-v3 .bm-balances>div:first-child strong { color:var(--admin-accent); }
.shell.admin-workspace.admin-workspace .record-center-tabs button.active,
.shell.admin-workspace.admin-workspace .log-category-tabs button.active { color:var(--admin-accent); border-color:var(--admin-accent); }

/* Additional owner-workspace palettes. Status and error colors stay independent. */
.shell.admin-workspace.admin-workspace[data-admin-theme='forest'] {
  --admin-side-top:#27493b; --admin-side-bottom:#17382d;
  --admin-accent:#206247; --admin-accent-end:#287251;
  --admin-soft:#ebf6ee; --admin-soft-border:#cde8d6;
  --admin-glow:rgba(49,145,92,.09);
}
.shell.admin-workspace.admin-workspace[data-admin-theme='sakura'] {
  --admin-side-top:#70505e; --admin-side-bottom:#593645;
  --admin-accent:#93405f; --admin-accent-end:#a3476c;
  --admin-soft:#fff1f7; --admin-soft-border:#f2d6e3;
  --admin-glow:rgba(205,105,150,.09);
}
.shell.admin-workspace.admin-workspace[data-admin-theme='amber'] {
  --admin-side-top:#665137; --admin-side-bottom:#4e3921;
  --admin-accent:#80530f; --admin-accent-end:#906016;
  --admin-soft:#fff6e7; --admin-soft-border:#f0deb9;
  --admin-glow:rgba(194,145,56,.09);
}
.shell.admin-workspace.admin-workspace[data-admin-theme='slate'] {
  --admin-side-top:#343d4c; --admin-side-bottom:#222a36;
  --admin-accent:#47566b; --admin-accent-end:#596b82;
  --admin-soft:#f1f4f7; --admin-soft-border:#d9e1e9;
  --admin-glow:rgba(90,110,140,.09);
}
/* The selector reflects the active palette as well. */
.wuyou-live-theme-bar[data-admin-theme='violet']{--theme-control:#5144c9;--theme-control-border:#dcd9ff}
.wuyou-live-theme-bar[data-admin-theme='blue']{--theme-control:#175ca7;--theme-control-border:#cde4f6}
.wuyou-live-theme-bar[data-admin-theme='mint']{--theme-control:#0d6f62;--theme-control-border:#c9e9df}
.wuyou-live-theme-bar[data-admin-theme='peach']{--theme-control:#a04455;--theme-control-border:#f3d8d3}
.wuyou-live-theme-bar[data-admin-theme='forest']{--theme-control:#206247;--theme-control-border:#cde8d6}
.wuyou-live-theme-bar[data-admin-theme='sakura']{--theme-control:#93405f;--theme-control-border:#f2d6e3}
.wuyou-live-theme-bar[data-admin-theme='amber']{--theme-control:#80530f;--theme-control-border:#f0deb9}
.wuyou-live-theme-bar[data-admin-theme='slate']{--theme-control:#47566b;--theme-control-border:#d9e1e9}
.wuyou-live-theme-bar select{color:var(--theme-control,#5144c9);border-color:var(--theme-control-border,#dcd9ff)}
.wuyou-live-theme-bar select:focus-visible{outline-color:var(--theme-control,#5144c9)}
