/* One continuous paint layer, shared by the library and Studio material cards.
   Keep the mask on decoration so text, focus rings and tilt remain unclipped. */
.cc-sculpted-surface {
  --cc-sculpture-shadow: color-mix(
    in srgb,
    var(--cc-shadow-ink) 20%,
    transparent
  );
  position: relative;
  isolation: isolate;
  background: none;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(
      8px 8px 10px var(--cc-material-shade, var(--cc-sculpture-shadow))
    )
    drop-shadow(-6px -6px 10px var(--cc-material-light, #ffffff60));
}
.cc-sculpted-surface::before,
.cc-sculpted-surface::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--cc-sculpture-rise, 48px)) 0 0;
  box-sizing: border-box;
  pointer-events: none;
}
.cc-sculpted-surface::before {
  border: 1px solid var(--cc-glass-edge);
  border-radius: 26px;
  background: var(
    --cc-sculpture-paint,
    var(--cc-glass-solid, var(--cc-surface))
  );
}
.cc-sculpted-surface::after {
  display: none;
}
@supports (mask-image: linear-gradient(#000, #000)) {
  .cc-sculpted-surface::before,
  .cc-sculpted-surface::after {
    border: 0;
    border-radius: 0;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
  }
  .cc-sculpted-surface::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M120 0H360Q480 0 480 100V110Q480 190 590 190H880Q1000 190 1000 290V900Q1000 1000 880 1000H120Q0 1000 0 900V100Q0 0 120 0Z'/%3E%3C/svg%3E");
  }
  .cc-sculpted-surface::after {
    display: block;
    opacity: 0.4;
    background: var(--cc-glass-edge);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='white' stroke-width='2' vector-effect='non-scaling-stroke' d='M120 0H360Q480 0 480 100V110Q480 190 590 190H880Q1000 190 1000 290V900Q1000 1000 880 1000H120Q0 1000 0 900V100Q0 0 120 0Z'/%3E%3C/svg%3E");
  }
}
@media (forced-colors: active) {
  .cc-sculpted-surface {
    filter: none;
  }
  .cc-sculpted-surface::before {
    mask-image: none;
    border: 1px solid CanvasText;
    border-radius: 26px;
    background: Canvas;
  }
  .cc-sculpted-surface::after {
    display: none;
  }
}
