/* Level picker and filter dialog share the command-bar finish. */
.command-popover {
  background:
    linear-gradient(180deg, rgba(9, 24, 30, .96), rgba(5, 16, 21, .97)),
    url("../../../Image/Background/technology-info-header-bg.png") top left / auto repeat,
    #0d232c;
}

.command-popover-header {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .06) 50%, transparent 50%) 0 0 / 5rem 5rem,
    linear-gradient(240deg, rgba(255, 255, 255, .06) 50%, transparent 50%) 2.5rem 0 / 5rem 5rem,
    linear-gradient(180deg, #08707b, #005d65);
  border-bottom: 2px solid rgba(255, 255, 255, .18);
}

.command-popover-header h2 {
  color: #f2f8fa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.level-picker-grid button {
  color: #b9d4d7;
  background: rgba(0, 93, 101, .16);
  border: 1px solid rgba(0, 232, 248, .2);
  border-radius: 0;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.level-picker-grid button:hover,
.level-picker-grid button:focus-visible {
  color: var(--pal-ink);
  background: var(--pal-cyan);
  border-color: var(--pal-cyan);
}

.level-picker-grid button[aria-current="true"] {
  color: var(--pal-cyan);
  background: rgba(0, 232, 248, .13);
  border-color: var(--pal-cyan);
  box-shadow: inset 0 0 10px rgba(0, 232, 248, .16);
}

.level-number-shell button {
  color: #f2f8fa;
  background: linear-gradient(180deg, #08707b, #005d65);
  border: 1px solid rgba(0, 232, 248, .45);
  border-radius: 0;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

.level-number-shell button:hover {
  background: linear-gradient(180deg, #00828b, #00636a);
}

.info-popover {
  width: min(29rem, calc(100vw - 1rem));
  max-height: min(40rem, calc(100dvh - 1rem));
}

.info-popover > header,
.material-popover > header {
  min-height: 4rem;
  padding: .7rem .85rem;
  background:
    repeating-linear-gradient(120deg, transparent 0 40px, rgba(190, 225, 229, .035) 40px 58px),
    linear-gradient(120deg, #12333d, #0a2027);
}

.info-popover > header p,
.material-popover > header p {
  margin-bottom: .2rem;
  font-size: .56rem;
  letter-spacing: .11em;
}

.info-popover > header h2,
.material-popover > header h2 {
  max-width: 23rem;
  font-size: 1.12rem;
}

.info-popover-content {
  max-height: min(33rem, calc(100dvh - 5rem));
  padding: .85rem;
  scrollbar-color: var(--pal-cyan) rgba(4, 15, 18, .5);
}

.info-popover .material-row {
  min-height: 2.55rem;
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
  background: rgba(98, 231, 237, .055);
  border-color: rgba(166, 217, 224, .18);
}

.info-popover .material-row img {
  width: 2.05rem;
  height: 2.05rem;
}

.info-popover .material-row strong {
  color: var(--pal-cyan);
  font-size: .82rem;
}

.info-popover.is-ancient .material-row strong {
  color: #df79f0;
}

.material-popover.is-ancient > header p,
.info-popover.is-ancient > header p,
.is-ancient .material-row strong {
  color: #df79f0;
}

.source-note {
  border-color: rgba(190, 217, 220, .28);
  border-left: 4px solid var(--pal-teal-bright);
  border-radius: 0;
  background: rgba(10, 27, 32, .72);
}
