/* Step 565 is loaded after the accepted Step 564 V1 styles. These rules
   correct Safari compositing edges without changing established geometry. */

/* Controls: retain the supplied full-colour artwork on interaction. At rest,
   warm the graphite material and cover its dark symbol with centred gold. */
.safari-circle-action {
  filter: saturate(.42) sepia(.16) brightness(.7) contrast(1.04) !important;
  box-shadow:
    inset 0 1px rgba(255, 238, 173, .18),
    inset 0 -1px rgba(67, 44, 7, .34),
    0 .24rem .62rem rgba(0, 0, 0, .28) !important;
  transform: none !important;
}

.safari-close-action::before,
.safari-close-action::after,
.safari-chevron::before,
.safari-chevron::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 3 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffe594 0%, #d6a83d 54%, #9d6816 100%) !important;
  box-shadow: 0 0 .22rem rgba(238, 194, 79, .34) !important;
  opacity: 1 !important;
  transition: opacity .1s ease-out !important;
  pointer-events: none !important;
}

.safari-close-action::before,
.safari-close-action::after {
  top: 50% !important;
  left: 50% !important;
  width: 42% !important;
  height: 2px !important;
  transform-origin: center !important;
}

.safari-close-action::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.safari-close-action::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.safari-chevron {
  position: relative !important;
  display: block !important;
  width: .82rem !important;
  height: .58rem !important;
  background: none !important;
}

.safari-chevron::before,
.safari-chevron::after {
  top: 50% !important;
  width: .5rem !important;
  height: 2px !important;
}

.safari-chevron::before {
  left: 50% !important;
  transform-origin: right center !important;
}

.safari-chevron::after {
  right: 50% !important;
  transform-origin: left center !important;
}

.safari-chevron-up::before {
  transform: translate(-100%, -50%) rotate(-42deg) !important;
}

.safari-chevron-up::after {
  transform: translate(100%, -50%) rotate(42deg) !important;
}

.safari-chevron-down::before {
  transform: translate(-100%, -50%) rotate(42deg) !important;
}

.safari-chevron-down::after {
  transform: translate(100%, -50%) rotate(-42deg) !important;
}

.safari-circle-action:hover:not(:disabled),
.safari-circle-action:focus-visible:not(:disabled),
.safari-circle-action:active:not(:disabled) {
  filter: none !important;
  transform: none !important;
}

.safari-close-action:hover:not(:disabled)::before,
.safari-close-action:hover:not(:disabled)::after,
.safari-close-action:focus-visible:not(:disabled)::before,
.safari-close-action:focus-visible:not(:disabled)::after,
.safari-close-action:active:not(:disabled)::before,
.safari-close-action:active:not(:disabled)::after,
.safari-circle-action:hover:not(:disabled) .safari-chevron::before,
.safari-circle-action:hover:not(:disabled) .safari-chevron::after,
.safari-circle-action:focus-visible:not(:disabled) .safari-chevron::before,
.safari-circle-action:focus-visible:not(:disabled) .safari-chevron::after,
.safari-circle-action:active:not(:disabled) .safari-chevron::before,
.safari-circle-action:active:not(:disabled) .safari-chevron::after {
  opacity: 0 !important;
}

.safari-circle-action:disabled {
  filter: saturate(.22) sepia(.08) brightness(.48) contrast(1.02) !important;
}

/* Safari: overlap the entire opaque header surface with the scrollport's top
   edge. This removes the compositor seam without altering table geometry. */
.workspace-members .workspace-table-wrap::before,
.thread-members .workspace-table-wrap::before {
  content: none !important;
  display: none !important;
}

.workspace-members .workspace-table-wrap thead,
.thread-members .workspace-table-wrap thead {
  position: sticky !important;
  z-index: 40 !important;
  top: -2px !important;
  background: #11120e !important;
  background-clip: border-box !important;
  box-shadow:
    0 -8px 0 8px #11120e,
    0 1px rgba(255, 255, 255, .035) !important;
  isolation: isolate !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
}

.workspace-members .workspace-table-wrap thead th,
.thread-members .workspace-table-wrap thead th {
  position: static !important;
  top: auto !important;
  background: transparent !important;
  transform: none !important;
  -webkit-transform: none !important;
}

/* Navigation: retain the metallic text and gold halo, but never paint a
   rectangular hover fill behind the label. */
body .brand-copy > .primary-nav button:hover:not(:disabled),
body .brand-copy > .primary-nav button:focus-visible:not(:disabled) {
  border-color: transparent !important;
  background-color: transparent !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 .42rem rgba(224, 183, 63, .28)) !important;
}

body .brand-copy > .primary-nav button:hover:not(:disabled)::after,
body .brand-copy > .primary-nav button:focus-visible:not(:disabled)::after {
  content: none !important;
  display: none !important;
}
