/*
 * Isolated preview only: shared REBUILD app-header depth treatment.
 * Scoped to the single direct-child application header so nested `.top`
 * elements used by tools and cards remain untouched.
 */
main.app > header.top {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: linear-gradient(
    180deg,
    #fffdf9 0%,
    #fdf8f2 62%,
    #f6eee4 100%
  );
  border-bottom-color: rgba(139, 125, 109, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(121, 108, 94, 0.12);
}

main.app > header.top::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 7px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #f5ede3 0%,
    #e9decf 52%,
    #d9cbbb 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(91, 82, 72, 0.18),
    0 2px 2px rgba(50, 47, 43, 0.2);
}

main.app > header.top::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 1%;
  bottom: -20px;
  left: 1%;
  height: 13px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(52, 49, 45, 0.18) 0%,
    rgba(52, 49, 45, 0.09) 45%,
    rgba(52, 49, 45, 0) 100%
  );
  filter: blur(2px);
}
