.kaya-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  background: #fffefa;
  color: #142d31;
  font: 700 0.85rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.kaya-skip-link:focus {
  transform: translateY(0);
}

.kaya-complete-link {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #173d39;
  color: #fff;
  font: 800 0.72rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(15, 46, 42, 0.24);
}

.kaya-complete-link:hover,
.kaya-complete-link:focus-visible {
  background: #2a7165;
  outline: 3px solid rgba(42, 113, 101, 0.3);
  outline-offset: 3px;
}

.kaya-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .kaya-complete-link,
  .kaya-skip-link {
    border: 2px solid ButtonText;
  }
}

@media (max-width: 720px) {
  .kaya-complete-link {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

/*
 * The original role concepts intentionally used a very quiet editorial
 * palette.  Preserve that character while raising supporting copy above the
 * WCAG AA contrast floor.  This file is loaded after each prototype's inline
 * styles so the accessible palette is shared instead of drifting per portal.
 */
body {
  --muted: #526668 !important;
}

.task.done {
  opacity: 1 !important;
}

.task.done strong,
.task.done p,
.task.done small,
.breadcrumbs,
.subhead,
.metric-label,
.message-top span {
  color: #526668 !important;
}

.metric-trend {
  color: #356b46 !important;
}

.chip.gray {
  background: #e4e9e5 !important;
  color: #485955 !important;
}

.chip.gold {
  color: #75531f !important;
}

.sidebar .nav-label {
  color: #8ea49f !important;
}

.nav-btn .badge {
  background: #a94e3f !important;
  color: #fff !important;
}

.metric-note.good,
.metric > small {
  color: #356b46 !important;
}

.pill.neutral {
  color: #4c5d59 !important;
}

.pill.warn {
  color: #7a5725 !important;
}

.chip.warn {
  color: #74511f !important;
}

.tag-gray {
  color: #485955 !important;
}

.thread.active time,
.thread.active p {
  color: #485c5d !important;
}

.bubble time {
  color: #526668 !important;
  opacity: 1 !important;
}

.bubble.mine time,
.bubble.me time {
  color: #dce9e6 !important;
}

.notice.restricted {
  color: #405d67 !important;
}

.permission.no {
  color: #755e57 !important;
}

[style*="color:var(--gold)"],
[style*="color: var(--gold)"] {
  color: #75531f !important;
}

#page-restricted .grid-3 {
  opacity: 1 !important;
}

.data-table th {
  color: #526668 !important;
}

.page-head > div > .eyebrow,
.page-header > div > .eyebrow {
  color: #2f6b61 !important;
}

.page-head .sub,
.page-header .sub {
  color: #526668 !important;
}
