/* WUYOU_WORKBENCH_LAYOUT_V2. Only the owner workbench renders this wrapper. */
#root .shell.admin-workspace .wuyou-wb-v2 {
  --wb-panel: var(--au-panel, #fff);
  --wb-soft: var(--au-soft, #f4f5fb);
  --wb-ink: var(--au-ink, #182139);
  --wb-muted: var(--au-muted, #65728a);
  --wb-line: var(--au-line, #e4e7f1);
  --wb-accent: var(--au-accent, #6750d7);
  --wb-shadow: var(--au-shadow, 0 8px 24px #32276012);
  display: grid;
  gap: 22px;
  min-width: 0;
  color: var(--wb-ink);
}

#root .shell.admin-workspace .wuyou-wb-v2 :is(.wuyou-wb-hero, .wuyou-wb-stat, .owner-ws-board, .owner-ws-logs, .owner-ws-history) {
  border: 1px solid var(--wb-line);
  border-radius: 20px;
  box-shadow: var(--wb-shadow);
  min-width: 0;
}

#root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px 30px;
  padding: 30px 32px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(117deg, var(--au-button, #6953d1), var(--au-button2, #7450bd));
}

.wuyou-wb-hero::before {
  position: absolute;
  z-index: -1;
  inset: auto -38px -123px auto;
  width: 292px;
  height: 292px;
  border: 1px solid #ffffff32;
  border-radius: 50%;
  box-shadow: 0 0 0 29px #ffffff13, 0 0 0 60px #ffffff0d;
  content: '';
  pointer-events: none;
}

#root .shell.admin-workspace .wuyou-wb-hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3.2vw, 37px);
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: -.035em;
}

#root .shell.admin-workspace .wuyou-wb-hero-copy p {
  margin: 9px 0 0;
  font-size: 13px;
  color: #fff;
}

#root .shell.admin-workspace .wuyou-wb-hero-action {
  max-width: 100%;
  min-width: 0;
}

#root .shell.admin-workspace .wuyou-wb-hero-action label {
  display: block;
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 650;
  color: #fff;
}

.wuyou-wb-hero-controls {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 9px;
  min-width: 0;
}

#root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-hero #wuyou-wb-stock,
#root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-hero button.wuyou-wb-start {
  min-height: 45px;
  border: 1px solid #fff;
  border-radius: 11px;
  background: #fff;
  color: #261c57;
  box-shadow: none;
  font-family: inherit;
  color-scheme: light;
}

#root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-hero-controls select {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 6px 28px 6px 11px;
  text-overflow: ellipsis;
  font-size: 12px;
}

#root .shell.admin-workspace .wuyou-wb-v2 button.wuyou-wb-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 6px 13px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
}

#root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-hero button.wuyou-wb-start:hover:not(:disabled) {
  background: #f0edff;
  color: #261c57;
}

#root .shell.admin-workspace .wuyou-wb-v2 :is(.wuyou-wb-start, .wuyou-wb-hero-controls select):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#root .shell.admin-workspace .wuyou-wb-v2 button.wuyou-wb-start:disabled {
  opacity: .63;
}

.wuyou-wb-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-stat {
  display: flex;
  min-height: 114px;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 19px;
  background: radial-gradient(ellipse at 95% 105%, var(--wb-tint), transparent 68%), var(--wb-panel);
}

.wuyou-wb-stat-success { --wb-tint: #4b82f319; --wb-icon: #2258bd; --wb-icon-bg: #eaf1ff; }
.wuyou-wb-stat-codes { --wb-tint: #eb9f451c; --wb-icon: #935017; --wb-icon-bg: #fff1db; }
.wuyou-wb-stat-icon, .wuyou-wb-empty-icon {
  display: inline-grid;
  flex: none;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: var(--wb-icon-bg, var(--wb-panel));
  color: var(--wb-icon, var(--wb-accent));
}

#root .shell.admin-workspace .wuyou-wb-stat p {
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--wb-muted);
}

#root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-stat strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--wb-ink);
  font-size: clamp(24px, 2.55vw, 34px);
  line-height: 1.25;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

#root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-stat strong>b { font: inherit; }

#root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-stat strong>small {
  display: inline;
  flex: none;
  margin: 0;
  line-height: 1.25;
  color: var(--wb-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: normal;
}

.wuyou-wb-stat div>span {
  color: var(--wb-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: normal;
}

.wuyou-wb-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.75fr) minmax(210px, 1fr);
  gap: 18px;
  align-items: start;
}

.wuyou-wb-main { display: grid; gap: 14px; min-width: 0; }

#root .shell.admin-workspace .wuyou-wb-v2 :is(.owner-ws-board, .owner-ws-logs, .owner-ws-history) {
  background: var(--wb-panel);
  color: var(--wb-ink);
  overflow: hidden;
}

.wuyou-wb-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 18px 0;
}

#root .shell.admin-workspace .wuyou-wb-section-heading h2 {
  margin: 0;
  color: var(--wb-ink);
  font-size: 18px;
}

.wuyou-wb-capacity {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--wb-soft);
  color: var(--wb-accent);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-board .owner-ws-slots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 15px 16px 16px;
  background: transparent;
}

#root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-board .owner-ws-slot {
  background: var(--wb-soft);
  border-color: var(--wb-line);
  border-radius: 13px;
  padding: 13px;
  min-height: 159px;
}

#root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-slot-head {
  flex-wrap: wrap;
  row-gap: 5px;
  margin-bottom: 2px;
}

#root .shell.admin-workspace .wuyou-wb-v2 :is(.owner-ws-slot-head b, .owner-ws-slot>p, .owner-ws-slot>footer, .owner-ws-last-check, .wuyou-wb-plan) {
  color: var(--wb-muted);
}

#root .shell.admin-workspace .wuyou-wb-v2 :is(.owner-ws-customer, .owner-ws-idle h3) {
  color: var(--wb-ink);
}

#root .shell.admin-workspace .wuyou-wb-v2 :is(.owner-ws-slot>footer button, .owner-ws-idle>button) {
  color: var(--wb-accent);
}

.wuyou-wb-plan { margin: 2px 0 5px; font-size: 11px; }

#root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-slot>p {
  margin: 2px 0 8px;
}

#root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-slot>footer {
  border-color: var(--wb-line);
}

#root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-idle {
  gap: 6px;
}

#root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-board .owner-ws-slot.selected {
  border-color: var(--wb-accent);
}

#root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-logs .owner-ws-log-heading {
  min-height: 54px;
  padding: 14px 15px;
  background: transparent;
  border-color: var(--wb-line);
  color: var(--wb-accent);
  flex-wrap: nowrap;
}

#root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-log-heading strong {
  color: var(--wb-ink);
  font-size: 15px;
}

.wuyou-wb-risk {
  margin: 12px 12px 0;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff1dd;
  color: #824408;
  font-size: 12px;
}

.wuyou-wb-activity-list {
  max-height: 312px;
  min-height: 86px;
  overflow: auto;
  padding: 3px 13px 2px;
}

.wuyou-wb-activity-list ol { margin: 0; padding: 0; list-style: none; }
.wuyou-wb-activity-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 2px;
  border-top: 1px solid var(--wb-line);
}
.wuyou-wb-activity-list li:first-child { border-top: 0; }
.wuyou-wb-activity-dot { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: var(--wb-accent); }
.wuyou-wb-activity-list li.warning .wuyou-wb-activity-dot { background: #e88a34; }
.wuyou-wb-activity-list time { color: var(--wb-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.wuyou-wb-activity-list p { margin: 3px 0 0; color: var(--wb-ink); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.wuyou-wb-activity-list .wuyou-wb-empty-activity { padding: 18px 3px; color: var(--wb-muted); }

.wuyou-wb-v2 .owner-ws-completion-queue article { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; }
.wuyou-wb-v2 .owner-ws-completion-queue button { margin-left: auto; }

@media (max-width: 1190px) {
  #root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-board .owner-ws-slots { grid-template-columns: minmax(0, 1fr); }
  #root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-board .owner-ws-slot { min-height: 106px; }
}

@media (max-width: 830px) {
  .wuyou-wb-grid { grid-template-columns: minmax(0, 1fr); }
  #root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-hero { flex-wrap: wrap; }
  #root .shell.admin-workspace .wuyou-wb-hero-action { flex: 1 1 280px; }
}

@media (max-width: 540px) {
  #root .shell.admin-workspace .wuyou-wb-v2 { gap: 13px; }
  #root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-hero { padding: 18px 15px; gap: 14px; }
  #root .shell.admin-workspace .wuyou-wb-hero-action { flex-basis: 100%; }
  #root .shell.admin-workspace .wuyou-wb-hero-action label { margin-bottom: 5px; }
  #root .shell.admin-workspace .wuyou-wb-hero-copy p { margin-top: 5px; font-size: 12px; }
  .wuyou-wb-hero-controls { grid-template-columns: minmax(0, 1fr) max-content; }
  #root .shell.admin-workspace .wuyou-wb-v2 button.wuyou-wb-start { padding-inline: 8px; font-size: 12px; }
  .wuyou-wb-stats { gap: 8px; }
  #root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-stat { padding: 10px; min-height: 92px; gap: 8px; border-radius: 14px; }
  .wuyou-wb-stat-icon { width: 28px; height: 28px; border-radius: 9px; }
  .wuyou-wb-stat-icon svg { width: 16px; height: 16px; }
  #root .shell.admin-workspace .wuyou-wb-stat p { font-size: 12px; }
  .wuyou-wb-stat div>span { font-size: 10px; }
  #root .shell.admin-workspace .wuyou-wb-v2 .owner-ws-board .owner-ws-slots { padding: 12px; }
  .wuyou-wb-section-heading { padding: 15px 12px 0; }
  .wuyou-wb-grid { gap: 13px; }
}

@media (max-width: 365px) {
  #root .shell.admin-workspace .wuyou-wb-v2 .wuyou-wb-stat { display: block; position: relative; }
  .wuyou-wb-stat-icon { position: absolute; top: 8px; right: 8px; }
  #root .shell.admin-workspace .wuyou-wb-stat p { padding-right: 28px; }
}

/* The overview module owns these classes. The active console theme sets its surfaces. */
.overview-v2 {
  --overview-panel: var(--au-panel, #fff);
  --overview-soft: var(--au-soft, #f4f5fb);
  --overview-ink: var(--au-ink, #182139);
  --overview-muted: var(--au-muted, #64748b);
  --overview-line: var(--au-line, #e4e7f1);
  --overview-button: var(--au-button, #6953d1);
  --overview-button-end: var(--au-button2, #7450bd);
  --overview-shadow: var(--au-shadow, 0 12px 28px rgba(39, 39, 83, .055));
  container: owner-overview / inline-size;
  min-width: 0;
  color: var(--overview-ink);
}

.overview-v2-layout {display: grid; gap: 20px}
.overview-v2-banner,
.overview-v2-panel-head,
.overview-v2-issues {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.overview-v2-banner {padding: 2px 0 3px}
.overview-v2-banner h2 {margin: 0; font-size: clamp(20px, 3cqw, 28px); font-weight: 750; line-height: 1.35}
.overview-v2-banner-actions,
.overview-v2-issue-actions {display: flex; flex-wrap: wrap; gap: 8px}
.overview-v2 .overview-v2-link,
.overview-v2 .overview-v2-primary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--overview-line);
  border-radius: 11px;
  background: var(--overview-panel);
  color: var(--overview-ink);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.overview-v2 .overview-v2-link:hover:not(:disabled) {background: var(--overview-soft)}
.overview-v2 .overview-v2-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(115deg, var(--overview-button), var(--overview-button-end));
}
.overview-v2 button:disabled {opacity: .58; cursor: default}
.overview-v2 button:focus-visible,
.overview-v2 summary:focus-visible {outline: 3px solid var(--au-accent, #7664e3); outline-offset: 3px}

.overview-v2-metrics {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px}
.overview-v2-metric,
.overview-v2-panel {
  padding: 20px;
  min-width: 0;
  background: var(--overview-panel);
  border: 1px solid var(--overview-line);
  border-radius: 17px;
  box-shadow: var(--overview-shadow);
}
.overview-v2 [data-tone="green"] {--overview-tone-bg: #e6f5ed; --overview-tone-ink: #176546}
.overview-v2 [data-tone="violet"] {--overview-tone-bg: #eeeafa; --overview-tone-ink: #5941a0}
.overview-v2 [data-tone="blue"] {--overview-tone-bg: #e6efff; --overview-tone-ink: #28548e}
.overview-v2 [data-tone="amber"] {--overview-tone-bg: #fbefdc; --overview-tone-ink: #7a5019}
.overview-v2 [data-tone="red"] {--overview-tone-bg: #fce9e8; --overview-tone-ink: #992f33}
.overview-v2-metric {
  background: linear-gradient(153deg, var(--overview-panel) 65%, color-mix(in srgb, var(--overview-tone-bg) 28%, var(--overview-panel)));
}
.overview-v2-metric-label {display: flex; align-items: center; gap: 9px; min-height: 36px; font-size: 13px; color: var(--overview-muted)}
.overview-v2-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--overview-tone-bg);
  color: var(--overview-tone-ink);
}
.overview-v2-metric strong {display: block; margin: 12px 0 4px; font-size: clamp(24px, 3.3cqw, 36px); line-height: 1.13; font-variant-numeric: tabular-nums; overflow-wrap: anywhere}
.overview-v2-metric small {display: block; color: var(--overview-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere}
.overview-v2-grid {display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 18px}
.overview-v2-panel-head {margin: 0 0 15px}
.overview-v2-panel h3 {margin: 0; font-size: 17px; font-weight: 750; color: var(--overview-ink)}
.overview-v2-panel p {margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--overview-muted)}
.overview-v2-total {background: var(--overview-soft); border: 1px solid var(--overview-line); border-radius: 9px; padding: 5px 9px; color: var(--overview-muted); font-size: 12px; white-space: nowrap}

.overview-v2-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  min-width: 0;
  gap: 6px;
  padding-top: 24px;
  color: var(--overview-muted);
}
.overview-v2-day {display: grid; grid-template-rows: 132px auto; align-items: stretch; min-width: 0; text-align: center}
.overview-v2-bar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  border-bottom: 1px solid var(--overview-line);
  background: repeating-linear-gradient(to top, transparent 0 32px, var(--overview-line) 32px 33px);
}
.overview-v2-bar-meter {position: relative; width: min(52%, 50px); min-height: 2px}
.overview-v2-bar-meter b {position: absolute; inset: auto 50% calc(100% + 5px) auto; transform: translateX(50%); color: var(--overview-ink); font-size: 12px; line-height: 1; white-space: nowrap}
.overview-v2-bar-meter i {display: block; height: 100%; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--au-accent2, #a76df2), var(--overview-button))}
.overview-v2-day>span {display: block; padding-top: 8px; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap}

.overview-v2-shortcuts {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px}
.overview-v2-shortcuts>button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  min-height: 90px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--overview-line);
  border-radius: 13px;
  color: var(--overview-ink);
  text-align: left;
  line-height: 1.4;
  background: color-mix(in srgb, var(--overview-tone-bg) 18%, var(--overview-panel));
}
.overview-v2-shortcuts>button:hover {border-color: var(--au-accent, #7664e3)}
.overview-v2-shortcuts b {font-size: 13px; overflow-wrap: anywhere}
.overview-v2-arrow {position: absolute; top: 13px; right: 12px; color: var(--overview-muted)}

.overview-v2-orders {padding: 0; margin: 0; list-style: none}
.overview-v2-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(95px,auto);
  align-items: center;
  min-width: 0;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--overview-line);
}
.overview-v2-order-account {display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere}
.overview-v2-order-account strong {font-size: 14px}
.overview-v2-order-account :is(span,small), .overview-v2-order time {font-size: 12px; line-height: 1.5; color: var(--overview-muted)}
.overview-v2-order time {text-align: right; font-variant-numeric: tabular-nums}
.overview-v2-status {background: var(--overview-tone-bg); color: var(--overview-tone-ink); border-radius: 100px; padding: 4px 8px; font-size: 11px; line-height: 1.5}
.overview-v2-panel .overview-v2-empty {display: grid; place-items: center; margin: 0; min-height: 92px; padding: 12px; border: 1px dashed var(--overview-line); border-radius: 12px; text-align: center}
.overview-v2-stock-details summary {font-size: 14px; font-weight: 650; cursor: pointer}
.overview-v2-stock-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin-top: 14px}
.overview-v2-stock-grid>div {display: grid; gap: 5px; min-width: 0; padding: 11px; border-radius: 10px; background: var(--overview-soft)}
.overview-v2-stock-grid strong {font-size: 20px; overflow-wrap: anywhere}
.overview-v2-stock-grid :is(span,small) {font-size: 12px; line-height: 1.5; color: var(--overview-muted)}

@container owner-overview (max-width: 780px) {
  .overview-v2-grid {grid-template-columns: minmax(0, 1fr)}
  .overview-v2-metrics {grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@container owner-overview (max-width: 450px) {
  .overview-v2-layout {gap: 12px}
  .overview-v2-metrics, .overview-v2-grid {gap: 10px}
  .overview-v2-panel, .overview-v2-metric {padding: 13px; border-radius: 14px}
  .overview-v2-banner-actions {width: 100%}
  .overview-v2-banner-actions>button {flex: 1}
  .overview-v2-metric-label {font-size: 12px; gap: 7px}
  .overview-v2-icon {width: 30px; height: 30px; border-radius: 9px}
  .overview-v2-order {grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px}
  .overview-v2-order time {grid-column: 1/-1; text-align: left}
}

/* Daily profit uses its own labelled surface, scoped to the signed-in owner. */
#root .shell.admin-workspace .daily-profit-page {
  --profit-paper: var(--au-panel, #fff);
  --profit-ink: var(--au-ink, #182139);
  --profit-muted: var(--au-muted, #627087);
  --profit-line: var(--au-line, #e4e7f1);
  --profit-soft: var(--au-soft, #f4f5fb);
  --profit-accent: var(--au-button, #6953d1);
  --profit-accent-ink: var(--au-accent, #6250cf);
  --profit-revenue: #087259;
  --profit-cost: #946014;
  --profit-loss: #aa3653;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--profit-ink);
}

#root .shell.admin-workspace:is([data-aurora-theme='cyber'], [data-aurora-theme='gold']) .daily-profit-page {
  --profit-revenue: #74e3b6;
  --profit-cost: #f4c574;
  --profit-loss: #ffa0ad;
}

#root .shell.admin-workspace .daily-profit-page > .daily-profit-heading {
  padding: 0;
  min-height: 38px;
}

#root .shell.admin-workspace .daily-profit-page > .daily-profit-heading small {
  font-size: 12px;
}

#root .shell.admin-workspace .daily-profit-page > .profit-top-overview:empty {
  display: none;
}

/* Override the existing compact patch's joined frame. Each figure is a card. */
#root .shell.admin-workspace .daily-profit-page .profit-overview {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

#root .shell.admin-workspace .daily-profit-page .profit-overview > :is(.profit-small-metric, .profit-hero) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 142px;
  padding: 18px 20px !important;
  border: 1px solid var(--profit-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--au-shadow, 0 8px 28px #1720330c) !important;
  background: var(--profit-paper);
}

#root .shell.admin-workspace .daily-profit-page .profit-small-metric.income {
  background: linear-gradient(135deg, color-mix(in srgb, var(--profit-revenue) 11%, var(--profit-paper)), var(--profit-paper) 70%);
}

#root .shell.admin-workspace .daily-profit-page .profit-small-metric.cost {
  background: linear-gradient(135deg, color-mix(in srgb, var(--profit-cost) 11%, var(--profit-paper)), var(--profit-paper) 70%);
}

#root .shell.admin-workspace .daily-profit-page .profit-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--profit-accent-ink) 14%, var(--profit-paper)), var(--profit-paper) 76%);
}

#root .shell.admin-workspace .daily-profit-page .profit-overview :is(.profit-card-heading > span, .profit-small-metric > span) {
  color: var(--profit-ink);
  font-size: 13px;
  font-weight: 650;
}

#root .shell.admin-workspace .daily-profit-page .profit-overview .profit-card-heading {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

#root .shell.admin-workspace .daily-profit-page .profit-overview :is(.profit-small-metric > strong, .profit-hero-amount) {
  font-size: clamp(21px, 2.6vw, 33px) !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.2 !important;
  margin: 0 !important;
  overflow-wrap: anywhere;
}

#root .shell.admin-workspace .daily-profit-page .profit-overview .profit-small-metric.income > strong {
  color: var(--profit-revenue);
  font-size: clamp(25px, 3vw, 39px) !important;
}

#root .shell.admin-workspace .daily-profit-page .profit-overview .profit-small-metric.cost > strong {
  color: var(--profit-cost);
}

#root .shell.admin-workspace .daily-profit-page .profit-hero[data-negative='true'] .profit-hero-amount,
#root .shell.admin-workspace .daily-profit-page .profit-money-margin[data-negative='true'] strong {
  color: var(--profit-loss);
}

#root .shell.admin-workspace .daily-profit-page .profit-overview .profit-hero .profit-footnote {
  margin: 0 !important;
}

#root .shell.admin-workspace .daily-profit-page > .hub-toolbar {
  margin: 4px 0 0;
  max-width: 380px;
}

#root .shell.admin-workspace .daily-profit-page > .hub-fieldset {
  min-width: 0;
  padding: 12px 14px;
  margin: 0;
  border: 1px solid var(--profit-line);
  border-radius: 16px;
  background: var(--profit-paper);
}

#root .shell.admin-workspace .daily-profit-page > .hub-fieldset .daily-profit-filters {
  margin: 0;
}

#root .shell.admin-workspace .daily-profit-page > .profit-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 4px;
}

#root .shell.admin-workspace .daily-profit-page > .profit-preferences > .hub-card {
  min-width: 0;
  margin: 0;
}

#root .shell.admin-workspace .daily-profit-page > .profit-preferences > :is(details[open], .automatic-profit-settings:not(.wuyou-profit-folded)) {
  grid-column: 1 / -1;
}

#root .shell.admin-workspace .daily-profit-page .profit-preferences .profit-section-heading {
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  #root .shell.admin-workspace .daily-profit-page .profit-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #root .shell.admin-workspace .daily-profit-page .profit-overview > .profit-small-metric.income {
    grid-column: 1 / -1;
    min-height: 0;
  }

  #root .shell.admin-workspace .daily-profit-page .profit-overview > :is(.profit-small-metric, .profit-hero) {
    padding: 13px !important;
  }

  #root .shell.admin-workspace .daily-profit-page > .profit-preferences {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Owner pages only. Each layout uses the existing forms, tables and actions. */
#root .shell.admin-workspace :is(.console-agents, .cv-codes, .manager-record-center) {
  --ops-panel: var(--au-panel, #fff);
  --ops-muted: var(--au-muted, #64748b);
  --ops-text: var(--au-ink, #182139);
  --ops-line: var(--au-line, #e4e7f1);
  --ops-fill: var(--au-soft, #f4f5fb);
  --ops-action: var(--au-button, #6653c9);
  --ops-action-end: var(--au-button2, #7450bd);
  --ops-gap: 18px;
  color: var(--ops-text);
  min-width: 0;
}
#root .shell.admin-workspace :is(.console-agents, .cv-codes) :is(label, legend) {color: var(--ops-text)}
#root .shell.admin-workspace :is(.console-agents, .cv-codes, .manager-record-center) :is(td small, .cv-help, .zv-muted) {color: var(--ops-muted)}

/* Account creation and quota transfer work side by side, followed by the full agent table. */
#root .shell.admin-workspace .console-agents .cv-agent-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: var(--ops-gap);
  margin-bottom: var(--ops-gap);
}
#root .shell.admin-workspace .console-agents .cv-agent-grid>.cv-card {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border-top: 3px solid var(--ops-action);
}
#root .shell.admin-workspace .console-agents .cv-agent-grid>.cv-transfer {border-top-color: #43a887}
#root .shell.admin-workspace .console-agents .cv-create {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
#root .shell.admin-workspace .console-agents .cv-create>button {
  grid-column: 1 / -1;
  min-height: 42px;
  justify-self: start;
  margin-top: 0;
}
#root .shell.admin-workspace .console-agents .cv-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: var(--ops-fill);
  border: 1px solid var(--ops-line);
}
#root .shell.admin-workspace .console-agents .cv-mode button {margin: 0; min-height: 34px}
#root .shell.admin-workspace .console-agents .cv-mode .active {
  background: var(--ops-action);
  border-color: transparent;
  color: #fff;
}
#root .shell.admin-workspace .console-agents .cv-transfer .cv-two {gap: 12px}
#root .shell.admin-workspace .console-agents .cv-transfer-foot {margin-top: auto; margin-bottom: 0}
#root .shell.admin-workspace .console-agents .cv-transfer form {margin-bottom: 15px}
#root .shell.admin-workspace .console-agents>.cv-card .cv-heading {gap: 10px; flex-wrap: wrap}
#root .shell.admin-workspace .console-agents .cv-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
#root .shell.admin-workspace .console-agents .cv-row-actions>button {min-height: 33px; padding: 6px 9px; white-space: nowrap}

/* The issue and customer-code forms are adjacent. Stock, batch tasks and lookups remain below. */
#root .shell.admin-workspace .cv-codes:has(>.cv-generation):has(>.cv-isolation) {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--ops-gap);
}
#root .shell.admin-workspace .cv-codes:has(>.cv-generation):has(>.cv-isolation)>* {grid-column: 1 / -1; min-width: 0}
#root .shell.admin-workspace .cv-codes:has(>.cv-generation):has(>.cv-isolation)>.cv-generation {grid-column: 1}
#root .shell.admin-workspace .cv-codes:has(>.cv-generation):has(>.cv-isolation)>.cv-isolation {grid-column: 2}
#root .shell.admin-workspace .cv-codes:has(>.cv-generation):has(>.cv-isolation)>:is(.zv-title, .cv-generation, .cv-isolation, .cv-code-tools) {margin: 0}
#root .shell.admin-workspace.admin-workspace .cv-codes>:is(.cv-generation, .cv-isolation) {
  min-width: 0;
  padding: 22px;
  border-top: 3px solid var(--ops-action);
}
#root .shell.admin-workspace.admin-workspace .cv-codes>.cv-isolation {border-top-color: #46a38f}
#root .shell.admin-workspace .cv-codes>.cv-generation .zv-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 15px;
}
#root .shell.admin-workspace .cv-codes>.cv-generation .zv-controls>button {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 41px;
  margin: 0;
}
#root .shell.admin-workspace .cv-codes>.cv-generation .cv-purpose {min-width: 0; overflow-wrap: anywhere}
#root .shell.admin-workspace .cv-codes>.cv-generation .cv-total {grid-column: 1 / -1}
#root .shell.admin-workspace .cv-codes>.cv-generation .cv-total :is(strong, small) {
  background: var(--ops-fill);
  border-color: var(--ops-line);
  color: var(--ops-text);
}
#root .shell.admin-workspace .cv-codes>.cv-isolation textarea {min-height: 140px; resize: vertical}
#root .shell.admin-workspace .cv-codes>.cv-isolation .zv-actions {gap: 8px; flex-wrap: wrap}
#root .shell.admin-workspace .cv-codes .zv-title .zv-link {
  min-width: 0;
  margin-left: auto;
  gap: 6px 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ops-fill);
  overflow-wrap: anywhere;
}

/* Move actual status totals above the order filters. Active queries and refresh are unchanged. */
#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .manager-record-center {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
#root .shell.admin-workspace .manager-record-center>.record-center-tabs {
  width: fit-content;
  gap: 4px;
  padding: 4px;
  margin-bottom: var(--ops-gap);
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: var(--ops-fill);
}
#root .shell.admin-workspace .manager-record-center>.record-center-tabs button {
  min-height: 35px;
  color: var(--ops-text);
}
#root .shell.admin-workspace .manager-record-center>.record-center-tabs button.active {
  color: #fff;
  background: linear-gradient(110deg, var(--ops-action), var(--ops-action-end));
}
#root .shell.admin-workspace .cv-records .manager-order-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
#root .shell.admin-workspace .cv-records .manager-order-panel>.zv-panel-title {
  padding: 18px;
  margin: 0;
  background: var(--ops-panel);
  border: 1px solid var(--ops-line);
  flex-wrap: wrap;
  gap: 12px;
}
#root .shell.admin-workspace .cv-records .manager-order-panel>.zv-panel-title h3 {margin: 0}
#root .shell.admin-workspace .cv-records .manager-list-heading-actions {row-gap: 7px}
#root .shell.admin-workspace .cv-records .manager-list-summary {
  order: -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  margin: 0;
}
#root .shell.admin-workspace .cv-records .manager-list-summary>span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--ops-line);
  border-top: 3px solid var(--ops-action);
  border-radius: 12px;
  background: var(--ops-panel);
  color: var(--ops-muted);
  font-size: 12px;
}
#root .shell.admin-workspace .cv-records .manager-list-summary>span:nth-child(2) {border-top-color: #40a27f}
#root .shell.admin-workspace .cv-records .manager-list-summary>span:nth-child(3) {border-top-color: #ce9853}
#root .shell.admin-workspace .cv-records .manager-list-summary>span>strong {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--ops-text);
  font-variant-numeric: tabular-nums;
}
#root .shell.admin-workspace .cv-records .manager-list-summary>span:last-child {
  display: block;
  grid-column: 1 / -1;
  padding: 0 2px;
  background: transparent;
  border: 0;
  text-align: right;
}
#root .shell.admin-workspace .cv-records .manager-order-panel>:is(.zv-list-filters, .zv-table, .zv-pagination) {margin: 0}
#root .shell.admin-workspace .cv-records .manager-order-panel>.zv-list-filters {
  background: var(--ops-panel);
  border-color: var(--ops-line);
  column-gap: 10px;
}
#root .shell.admin-workspace .cv-records .zv-list-filters :is(input, select, button) {min-height: 38px}

@media (max-width: 1080px) {
  #root .shell.admin-workspace .cv-codes:has(>.cv-generation):has(>.cv-isolation) {grid-template-columns: minmax(0, 1fr)}
  #root .shell.admin-workspace .cv-codes:has(>.cv-generation):has(>.cv-isolation)>.cv-isolation {grid-column: 1}
  #root .shell.admin-workspace .console-agents .cv-agent-grid {grid-template-columns: minmax(0, 1fr)}
}
@media (max-width: 700px) {
  #root .shell.admin-workspace :is(.console-agents, .cv-codes, .manager-record-center) {--ops-gap: 12px}
  #root .shell.admin-workspace :is(.console-agents .cv-agent-grid>.cv-card, .cv-codes>.cv-generation, .cv-codes>.cv-isolation) {padding: 15px}
  #root .shell.admin-workspace :is(.console-agents .cv-create, .console-agents .cv-transfer .cv-two) {grid-template-columns: minmax(0, 1fr); gap: 10px}
  #root .shell.admin-workspace .console-agents .cv-create>button {justify-self: stretch}
  #root .shell.admin-workspace .console-agents .cv-allocate-action {display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch}
  #root .shell.admin-workspace .console-agents .cv-allocate-action>button {min-height: 41px}
  #root .shell.admin-workspace .console-agents .cv-search {width: 100%}
  #root .shell.admin-workspace .console-agents .cv-search input {min-width: 0; max-width: none}
  #root .shell.admin-workspace .cv-codes .zv-title .zv-link {width: 100%; margin-left: 0}
  #root .shell.admin-workspace .cv-records .manager-list-summary>span {padding: 9px 8px; font-size: 11px}
  #root .shell.admin-workspace .cv-records .manager-list-summary>span:last-child {padding: 0 2px}
  #root .shell.admin-workspace .cv-records .manager-order-panel>.zv-panel-title {padding: 14px}
  #root .shell.admin-workspace .cv-records .zv-list-filters input[type=search] {flex: 1 0 100%; min-width: 0; width: 100%}
  #root .shell.admin-workspace .cv-records .zv-list-filters select {flex: 1 1 42%; min-width: 0; max-width: none}
}

/* Funds, cards, upstream, and settings. Shared tokens come from the owner theme. */
#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager, .cv-platform, .cv-settings) {
  min-width: 0;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager > .bm-balances, .cv-platform-balances) {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager > .bm-balances, .cv-platform-balances) > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  margin: 0;
  border: 1px solid var(--au-line);
  border-top: 3px solid var(--au-line);
  border-radius: 16px;
  background: var(--au-panel);
  box-shadow: var(--au-shadow);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager > .bm-balances, .cv-platform-balances) > div:first-child {
  border-top-color: var(--au-accent);
  background: linear-gradient(130deg, color-mix(in srgb, var(--au-accent) 12%, var(--au-panel)), var(--au-panel) 74%);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager > .bm-balances, .cv-platform-balances) span {
  color: var(--au-muted);
  font-weight: 650;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager > .bm-balances, .cv-platform-balances) strong {
  margin: 0;
  color: var(--au-ink);
  font: 740 clamp(19px, 2.3vw, 28px)/1.2 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager > .bm-balances, .cv-platform-balances) > div:first-child strong {
  color: var(--au-ink);
  font-size: clamp(24px, 3vw, 36px);
}

/* The card list keeps its real filter, selection, status and masking controls. */
#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager:not(.cv-funding) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(12px, 2vw, 24px);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager:not(.cv-funding) > header {
  order: -3;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--au-line);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager:not(.cv-funding) > .bm-balances {
  order: -2;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager:not(.cv-funding) > nav, .cv-platform-core > .zv-tabs) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  margin: 0;
  border: 1px solid var(--au-line);
  border-radius: 14px;
  background: var(--au-soft);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager:not(.cv-funding) > nav {
  order: -1;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager:not(.cv-funding) > nav, .cv-platform-core > .zv-tabs) > button {
  flex: 1 0 auto;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--au-panel);
  color: var(--au-muted);
  font-size: 12px;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager:not(.cv-funding) > nav, .cv-platform-core > .zv-tabs) > :is(.active, .selected) {
  background: linear-gradient(135deg, var(--au-button), var(--au-button2));
  color: #fff;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager:not(.cv-funding) > :is(.bm-channel-tabs, .bm-toolbar, .bm-buttons, .bm-note, .bm-cards, .bm-panel) {
  margin: 0;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager:not(.cv-funding) > .bm-channel-tabs {
  align-self: flex-start;
  background: var(--au-soft);
  border: 1px solid var(--au-line);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager:not(.cv-funding) > .bm-channel-tabs > button:not(.active) {
  color: var(--au-ink);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager:not(.cv-funding) > .bm-toolbar {
  padding: 10px;
  border: 1px solid var(--au-line);
  border-radius: 12px;
  background: var(--au-soft);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager .bm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 246px), 1fr));
  gap: 12px;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager .bm-cards > .bm-card {
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 8px 24px #27253b13;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager .bm-cards > .bm-card > .bm-chip {
  margin: 12px 0 8px;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager .bm-card-bottom {
  margin-top: 11px;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager .bm-card-bottom > strong {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager .bm-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  margin-top: auto;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager .bm-card-actions > button {
  min-width: 0;
  min-height: 38px;
  padding: 7px 3px;
  background: #ffffffad;
  color: #302944;
}

/* Funding steps stay side by side on desktop, in the same sequence on mobile. */
#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-funding {
  padding: clamp(12px, 2vw, 23px);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-funding > .cv-funding-toolbar {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--au-muted);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-funding > .cv-funding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin: 16px 0 12px;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-funding > .cv-funding-grid > .bm-panel {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border-top: 3px solid var(--au-accent);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-funding > .cv-funding-grid > .bm-panel + .bm-panel {
  border-top-color: var(--au-accent2);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-funding .cv-funding-grid .cv-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-funding .cv-funding-grid :is(.cv-address, .cv-hash-note) {
  color: var(--au-ink);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-funding > .cv-funding-history {
  margin: 0;
  padding: 16px 18px;
}

/* Upstream tabs, account amounts and ledger keep their actual states. */
#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-platform-core > :is(.cv-platform-heading, .cv-platform-balances) {
  margin: 12px 0;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-platform-core > .cv-platform-heading {
  flex-wrap: wrap;
  padding: 15px 17px;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-platform-balances > div > footer {
  margin-top: auto;
  padding-top: 9px;
  border-top-color: var(--au-line);
  color: var(--au-muted);
}

/* Real versions, compatible APK, and separate permission/sync controls. */
#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings {
  display: grid;
  gap: 14px;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings > .cv-card {
  padding: clamp(14px, 2vw, 22px);
  margin: 0;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings :is(.cv-version-grid, .cv-security-grid) {
  gap: 10px;
  margin: 14px 0;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings :is(.cv-version-grid, .cv-security-grid) > div {
  padding: 12px;
  border: 1px solid var(--au-line);
  border-radius: 13px;
  background: var(--au-soft);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings .cv-version-grid > div:nth-child(3) {
  border-color: var(--au-accent2);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings .cv-version-grid strong {
  margin: 5px 0;
  font: 720 clamp(14px, 2vw, 22px)/1.2 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings :is(.cv-heading, .cv-security-grid) > :is(p, small),
#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings :is(.cv-version-grid, .cv-security-grid) :is(span, small, label) {
  color: var(--au-muted);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings .cv-apk {
  padding: 14px;
  border-color: var(--au-line);
  border-left: 3px solid var(--au-accent);
  border-radius: 12px;
  background: linear-gradient(130deg, color-mix(in srgb, var(--au-accent) 10%, var(--au-panel)), var(--au-panel) 72%);
  color: var(--au-ink);
}

#root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings .cv-apk > div {
  min-width: min(185px, 100%);
}

@media (max-width: 760px) {
  #root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager > .bm-balances, .cv-platform-balances) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager > .bm-balances, .cv-platform-balances) > div {
    padding: 12px;
  }

  #root .shell.admin-workspace.admin-workspace[data-aurora-theme] :is(.bank-manager > .bm-balances, .cv-platform-balances) > div:first-child {
    grid-column: 1 / -1;
  }

  #root .shell.admin-workspace.admin-workspace[data-aurora-theme] .bank-manager:not(.cv-funding) > .bm-toolbar > input:first-child {
    flex-basis: 100%;
    min-width: 0;
  }

  #root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-funding > .cv-funding-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #root .shell.admin-workspace.admin-workspace[data-aurora-theme] .cv-settings .cv-version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
