/* Clareia contrast contract v1
   Loaded after every visual bundle. This layer only establishes accessible
   foreground/surface pairs for interactive controls; it does not replace the
   designer-owned composition or art direction. */

.campus-gate .gate-copy .secondary.button-link {
  border-color: #9adfcf !important;
  background: #123e3d !important;
  color: #f3fffc !important;
}

.release-notice-actions .primary {
  border-color: #78ddca !important;
  background: #8fe3d4 !important;
  color: #082f2d !important;
}

.release-notice-close {
  color: #34504c !important;
}

[data-theme="dark"] .release-notice-close {
  color: #dcebe8 !important;
}

.app-studio .campus-hero .secondary,
.app-studio .agenda-hero .secondary,
.app-studio .control-hero .secondary,
.app-studio .operations-hero .secondary {
  border-color: #8ac9be !important;
  background: #123e3d !important;
  color: #f3fffc !important;
}

.app-studio .billing-hero .referral-entry input {
  border-color: #8ac9be !important;
  background: #123e3d !important;
  color: #ffffff !important;
}

[data-theme="dark"] .app-studio .view.active .primary {
  border-color: #8fe3d4 !important;
  background: #8fe3d4 !important;
  color: #082f2d !important;
}

[data-theme="dark"] .app-studio .view.active .secondary {
  border-color: #74afa7 !important;
  background: #163c3e !important;
  color: #f3fffc !important;
}

[data-theme="dark"] .app-studio .view.active .danger-soft {
  border-color: #d88f83 !important;
  background: #4a2424 !important;
  color: #ffd9d2 !important;
}

/* Keep unavailable device actions recognizable without fading their labels.
   Native disabled semantics remain authoritative; this only clarifies state. */
.app-studio .view.active .session-security-actions button:disabled {
  border: 1px dashed #829992 !important;
  background: #edf1ef !important;
  color: #596664 !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: not-allowed !important;
}

[data-theme="dark"] .app-studio .view.active .session-security-actions button:disabled {
  border-color: #657b7c !important;
  background: #203031 !important;
  color: #aabbba !important;
}

[data-theme="dark"] .app-studio .pathway-periods button {
  border-color: #45636a !important;
  background: #162930 !important;
  color: #e7f3f0 !important;
}

[data-theme="dark"] .app-studio .pathway-periods button span {
  color: #bdd0cc !important;
}

[data-theme="dark"] .app-studio .pathway-periods button[aria-pressed="true"] {
  border-color: #8fe3d4 !important;
  background: #18483f !important;
  color: #ffffff !important;
}

.app-studio .pathway-next button:disabled,
[data-theme="dark"] .app-studio .pathway-next button:disabled {
  border-color: #879792 !important;
  background: #dce5e2 !important;
  color: #53615e !important;
  opacity: 1 !important;
}

[data-theme="dark"] .app-studio .admin-operation-grid button {
  border-color: #45636a !important;
  background: #14343a !important;
  color: #dcebe8 !important;
}

[data-theme="dark"] .app-studio .admin-operation-grid button > strong {
  color: #e7f3f0 !important;
}

[data-theme="dark"] .app-studio .admin-operation-grid button > small {
  color: #bdd0cc !important;
}

[data-theme="dark"] .app-studio .admin-operation-grid button > span {
  background: #24544f !important;
  color: #e6fffa !important;
}

[data-theme="dark"] .app-studio .admin-operation-grid button:hover,
[data-theme="dark"] .app-studio .admin-operation-grid button.is-current {
  border-color: #75c8ba !important;
  background: #1b4545 !important;
}

@media (forced-colors: active) {
  .app-studio button,
  .public-shell button,
  .public-shell .button-link {
    border: 1px solid ButtonText !important;
  }

  .app-studio .view.active .session-security-actions button:disabled,
  [data-theme="dark"] .app-studio .view.active .session-security-actions button:disabled {
    border: 1px dashed GrayText !important;
    background: Canvas !important;
    color: GrayText !important;
  }
}
