/* Final application layer: legacy components use the active SAION palette.
   Document sheets, uploaded images and third-party frames are not recolored. */
body.saion-console {
  color-scheme: dark;
  --panel: var(--s-panel);
  --surface: var(--s-panel);
  --accent: var(--s-accent);
}
body.saion-console[data-theme=claro] { color-scheme: light; }
body.saion-console :is(.metric-card,.executive-money .metric-card,.fc-card,
  .studio-tabs,.batch-toolbar,.cash-summary,.settings-help,.draft-review-top,
  .approval-box,.batch-progress,.choice-list,.thesis-cards article) {
  background: var(--s-panel);
  color: var(--s-text);
  border-color: var(--s-line);
  box-shadow: none;
}
body.saion-console :is(.metric-card strong,.workload strong) {
  color: var(--s-text);
  font-family: inherit;
}
body.saion-console :is(.metric-card>span,.metric-card small,.control-item p,
  .workload p,.workload small,.finance-top p,.finance-top label,.source-card p,
  .source-card blockquote,.source-card small,.studio-footnote,.approval-box p,
  .choice-list legend,.choice-list small,.production-steps b,.thesis-cards p,
  .thesis-cards small,.batch-toolbar span) { color: var(--s-muted); }
body.saion-console :is(.control-item,.workload article,.source-card,.health-list button,
  .quick-links button,.production-steps span) { border-color: var(--s-line); }
body.saion-console .studio-tabs button.active {
  background: var(--s-card);
  color: var(--s-accent);
  box-shadow: inset 0 -2px var(--s-accent);
}
body.saion-console .health-list b {
  background: var(--s-card);
  color: var(--s-accent);
}
body.saion-console input::file-selector-button {
  background: var(--s-card);
  color: var(--s-text);
  border: 1px solid var(--s-line);
}
body.saion-console input:-webkit-autofill {
  -webkit-text-fill-color: var(--s-text);
  box-shadow: inset 0 0 0 100px var(--s-bg);
  caret-color: var(--s-text);
}
/* The original logo is the mark; it needs no second sticker around it. */
body.saion-console .brand {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 4px 10px !important;
  box-shadow: none !important;
}
body.saion-console .brand::after { content: none; }
body.saion-console :is(.brand img,.workspace-header-logo img,#office-footer-logo,
  .brand-identity-preview img) {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
body.saion-console .chat-welcome-mark {
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}
body.saion-console .chat-welcome-mark img { transform: none; }
body.saion-console .saion-ai-orbit {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.saion-public :is(.saion-logo-link,.saion-office-brand,.saion-portal-wordmark),
.saion-public :is(.saion-logo-link img,.saion-office-brand img,.saion-footer img),
.saion-client-portal .saion-portal-header .portal-logo {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.saion-public .saion-office-brand>span { display: none; }
