.app-cctp-header {
  position: absolute;
  z-index: var(--app-cctp-layer-chrome);
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--app-cctp-header-height) + var(--app-cctp-safe-top));
  padding-top: var(--app-cctp-safe-top);
  background: var(--app-cctp-chrome-bg);
  color: var(--app-cctp-chrome-fg);
  border: 0;
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}
.app-cctp-header-grid {
  height: var(--app-cctp-header-height);
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  align-items: center;
  justify-items: center;
  gap: 0;
  padding-inline: 2px;
}
.app-cctp-header-icon {
  width: min(48px,100%);
  height: 48px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.app-cctp-header-icon-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--app-cctp-icon-edge);
  background:
    radial-gradient(circle at 28% 18%,rgba(255,255,255,.78) 0 4%,rgba(255,255,255,.2) 25%,transparent 43%),
    linear-gradient(145deg,var(--app-cctp-icon-light) 0%,var(--app-cctp-icon-mid) 48%,var(--app-cctp-icon-dark) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.82),
    inset 1px 0 1px rgba(255,255,255,.28),
    inset 0 -3px 4px rgba(0,0,0,.28),
    0 2px 0 var(--app-cctp-icon-base),
    0 5px 8px rgba(0,0,0,.38);
  transform: translate3d(0,-1px,0);
}
.app-cctp-header-icon-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px 3px 52%;
  border-radius: 8px 8px 50% 50%;
  background: linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0));
  pointer-events: none;
}
.app-cctp-header-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.32)); }
.app-cctp-header-icon-image { width: 34px; height: 34px; display: block; object-fit: contain; border-radius: 9px; }
.app-cctp-header-icon-menu { --app-cctp-icon-light:#8190a8; --app-cctp-icon-mid:#53637d; --app-cctp-icon-dark:#29364c; --app-cctp-icon-edge:#9ba8bb; --app-cctp-icon-base:#1c2637; }
.app-cctp-header-icon-chan { --app-cctp-icon-light:#ff7991; --app-cctp-icon-mid:#d73e5c; --app-cctp-icon-dark:#8f1834; --app-cctp-icon-edge:#ff9bad; --app-cctp-icon-base:#681126; }
.app-cctp-header-icon-com { --app-cctp-icon-light:#ffc75c; --app-cctp-icon-mid:#dc8e13; --app-cctp-icon-dark:#8e5100; --app-cctp-icon-edge:#ffda82; --app-cctp-icon-base:#663900; }
.app-cctp-header-icon-them { --app-cctp-icon-light:#c889ff; --app-cctp-icon-mid:#8b42d1; --app-cctp-icon-dark:#54208c; --app-cctp-icon-edge:#d9adff; --app-cctp-icon-base:#3d1469; }
.app-cctp-header-icon-pho { --app-cctp-icon-light:#5be2b1; --app-cctp-icon-mid:#16a878; --app-cctp-icon-dark:#05704f; --app-cctp-icon-edge:#8af0cc; --app-cctp-icon-base:#034f39; }
.app-cctp-header-icon-account { --app-cctp-icon-light:#69c9f0; --app-cctp-icon-mid:#248fc1; --app-cctp-icon-dark:#15557f; --app-cctp-icon-edge:#98dcf7; --app-cctp-icon-base:#103d5d; }
.app-cctp-header-icon[aria-current="page"] .app-cctp-header-icon-visual,
.app-cctp-header-icon[aria-expanded="true"] .app-cctp-header-icon-visual { box-shadow: inset 0 0 0 2px #fff,0 2px 7px rgba(0,0,0,.35); }
.app-cctp-header-icon:active .app-cctp-header-icon-visual { transform: translate3d(0,2px,0) scale(.97); box-shadow: inset 0 2px 4px rgba(0,0,0,.28),0 1px 2px rgba(0,0,0,.3); }
