/* Final Classic Dark accessibility repair. Keep this stylesheet last. */
html[data-theme="dark"][data-visual-theme="classic"]{
  --ct-text:#f8fbff;
  --ct-secondary:#d9e2ef;
  --ct-muted:#b7c4d5;
  --ct-accent:#7ce7f6;
  --ct-gold:#f4d27d;
  --ct-success:#91edb7;
  --ct-danger:#ffadbd;
  --ct-on-accent:#07131e;
  --st-text:#f8fbff;
  --st-text-soft:#d9e2ef;
  --st-muted:#b7c4d5;
  --st-border:#44546d;
  --st-border-strong:#66758d;
  --muted:#b7c4d5;
}
html[data-theme="dark"][data-visual-theme="classic"] .page p,
html[data-theme="dark"][data-visual-theme="classic"] .page small,
html[data-theme="dark"][data-visual-theme="classic"] .page label,
html[data-theme="dark"][data-visual-theme="classic"] .sub,
html[data-theme="dark"][data-visual-theme="classic"] .muted,
html[data-theme="dark"][data-visual-theme="classic"] .oauthnote,
html[data-theme="dark"][data-visual-theme="classic"] .field-label{
  color:var(--ct-muted)!important;
}
html[data-theme="dark"][data-visual-theme="classic"] .btn:not(.primary):not(.google),
html[data-theme="dark"][data-visual-theme="classic"] .pill,
html[data-theme="dark"][data-visual-theme="classic"] .input,
html[data-theme="dark"][data-visual-theme="classic"] .select,
html[data-theme="dark"][data-visual-theme="classic"] .clock-format{
  color:var(--ct-secondary)!important;
  border-color:#52627b!important;
  background:#17243a!important;
}
html[data-theme="dark"][data-visual-theme="classic"] .btn.primary,
html[data-theme="dark"][data-visual-theme="classic"] #account,
html[data-theme="dark"][data-visual-theme="classic"] #choose{
  color:var(--ct-on-accent)!important;
  border-color:#9aedf7!important;
  background:linear-gradient(135deg,#69dced,#99edf6)!important;
}
html[data-theme="dark"][data-visual-theme="classic"] .btn.danger{color:var(--ct-danger)!important}
html[data-theme="dark"][data-visual-theme="classic"] .panel,
html[data-theme="dark"][data-visual-theme="classic"] .auth-session-health,
html[data-theme="dark"][data-visual-theme="classic"] .account-data-mode,
html[data-theme="dark"][data-visual-theme="classic"] .account-data-summary,
html[data-theme="dark"][data-visual-theme="classic"] .importbox,
html[data-theme="dark"][data-visual-theme="classic"] .public-transfer-recommended,
html[data-theme="dark"][data-visual-theme="classic"] .public-transfer-legacy{
  color:var(--ct-text)!important;
  border-color:#465873!important;
  background:linear-gradient(155deg,rgba(25,38,61,.97),rgba(15,26,45,.97))!important;
}
html[data-theme="dark"][data-visual-theme="classic"] .roleline{
  color:var(--ct-text)!important;
  border-color:#465873!important;
  background:#132239!important;
}
html[data-theme="dark"][data-visual-theme="classic"] .account-data-mode small,
html[data-theme="dark"][data-visual-theme="classic"] .account-data-summary small,
html[data-theme="dark"][data-visual-theme="classic"] .account-data-actions small,
html[data-theme="dark"][data-visual-theme="classic"] .public-transfer-guidance small,
html[data-theme="dark"][data-visual-theme="classic"] .public-transfer-legacy>span,
html[data-theme="dark"][data-visual-theme="classic"] .auth-session-health small{
  color:var(--ct-muted)!important;
}
html[data-theme="dark"][data-visual-theme="classic"] .input::placeholder,
html[data-theme="dark"][data-visual-theme="classic"] textarea::placeholder{
  color:#a9b6c8!important;
  opacity:1!important;
}
html[data-theme="dark"][data-visual-theme="classic"] button:disabled,
html[data-theme="dark"][data-visual-theme="classic"] input:disabled{
  color:#aebacb!important;
  opacity:.72!important;
}
html[data-theme="dark"][data-visual-theme="classic"] :focus-visible{
  outline-color:#83e8f6!important;
}

/* Classic dark: keep the new profile controls comfortably above muted contrast. */
html[data-theme="dark"]:not([data-visual-theme]) .profile-v2-ribbon,html[data-theme="dark"]:not([data-visual-theme]) .profile-settings,html[data-theme="dark"]:not([data-visual-theme]) .profile-identity-panel{color:#f7f5ff}
html[data-theme="dark"]:not([data-visual-theme]) .profile-v2-ribbon .muted,html[data-theme="dark"]:not([data-visual-theme]) .profile-settings .muted,html[data-theme="dark"]:not([data-visual-theme]) .profile-identity-panel .muted,html[data-theme="dark"]:not([data-visual-theme]) .profile-sprite-actions .sub{color:#c5bfd5!important}
html[data-theme="dark"]:not([data-visual-theme]) .profile-sprite-choice{background:#172238;color:#f7f5ff;border-color:#52627d}
html[data-theme="dark"]:not([data-visual-theme]) .profile-sprite-choice.active{background:#2b2944;border-color:#f2cc72}
html[data-theme="dark"]:not([data-visual-theme]) .profile-sprite-picker-head .input,html[data-theme="dark"]:not([data-visual-theme]) .profile-settings .input,html[data-theme="dark"]:not([data-visual-theme]) .profile-identity-panel .input{background:#101a2d!important;color:#fff!important;border-color:#5a6b87!important}
html[data-theme="dark"]:not([data-visual-theme]) .profile-sprite-picker-head .input::placeholder,html[data-theme="dark"]:not([data-visual-theme]) .profile-settings .input::placeholder,html[data-theme="dark"]:not([data-visual-theme]) .profile-identity-panel .input::placeholder{color:#b8b2c8!important}
