/* Signal Aperture: shared visual language for every header dropdown. */
.pilot-panel,
.notifications-panel,
.appearance-panel {
  --aperture-surface: rgba(1, 11, 12, .975);
  border: 0;
  background:
    linear-gradient(90deg, var(--cyan), transparent 25%) top / 100% 1px no-repeat,
    linear-gradient(270deg, var(--cyan), transparent 25%) bottom / 100% 1px no-repeat,
    linear-gradient(135deg, rgba(var(--theme-rgb), .055), transparent 38%),
    var(--aperture-surface);
  box-shadow: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, .74))
    drop-shadow(0 0 9px rgba(var(--theme-rgb), .1));
}

.pilot-panel header,
.notifications-heading,
.appearance-heading {
  position: relative;
  border-bottom-color: rgba(var(--theme-rgb), .3);
  background: linear-gradient(90deg, rgba(var(--theme-rgb), .085), transparent 72%);
}

.pilot-panel header::after,
.notifications-heading::after,
.appearance-heading::after {
  content: "";
  position: absolute;
  right: .82rem;
  bottom: -1px;
  width: 2.25rem;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 7px rgba(var(--theme-rgb), .62);
}

.pilot-panel a,
.notification-item {
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.pilot-panel a:hover,
.pilot-panel a:focus-visible,
.notification-item:hover,
.notification-item:focus-visible {
  background: linear-gradient(90deg, rgba(var(--theme-rgb), .12), rgba(var(--theme-rgb), .025) 64%, transparent);
  box-shadow: inset 2px 0 var(--cyan);
}

.notification-glyph,
.background-modes button,
.appearance-reset,
.theme-swatch,
.custom-theme,
.wallpaper-grid button,
.appearance-panel input[type="color"] {
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.notifications-heading strong,
.appearance-heading strong,
.pilot-panel header span {
  text-shadow: 0 0 9px rgba(var(--theme-rgb), .28);
}

.appearance-panel {
  padding: 1rem;
}

.appearance-panel::before {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: auto;
  height: .65rem;
  border: 0;
  background: transparent;
  transform: translateY(-100%);
}

.appearance-group {
  border-bottom-color: rgba(var(--theme-rgb), .18);
}

.background-modes button.is-active,
.theme-swatch.is-active,
.wallpaper-grid button.is-active {
  border-color: var(--cyan);
  background-color: rgba(var(--theme-rgb), .12);
  filter: drop-shadow(0 0 5px rgba(var(--theme-rgb), .25));
}

@media (prefers-reduced-motion: reduce) {
  .pilot-panel a,
  .notification-item { transition: none; }
}
