
.dpcd-shell{--ink:#283842;--muted:#72818a;--cyan:#29a8c5;--line:#dce6ea;--soft:#f3f8fa;max-width:1180px;margin:40px auto;padding:0 20px;color:var(--ink);font-family:inherit}
.dpcd-top{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}.dpcd-kicker{font-size:11px;letter-spacing:.16em;font-weight:800;color:var(--cyan)}.dpcd-top h2{font-size:clamp(34px,5vw,56px);line-height:1;margin:7px 0 10px;letter-spacing:-.045em}.dpcd-top p{max-width:640px;color:var(--muted);font-size:16px}.dpcd-badge{border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-size:12px;font-weight:700;white-space:nowrap}
.dpcd-grid{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(420px,1.15fr);gap:18px}.dpcd-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 18px 50px rgba(38,57,67,.06)}
.dpcd-step{display:flex;align-items:center;gap:10px;margin:2px 0 12px}.dpcd-step span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--soft);font-size:10px;font-weight:800;color:var(--cyan)}.dpcd-step h3{margin:0;font-size:15px}.dpcd-step:not(:first-child){margin-top:24px}
.dpcd-options{display:flex;flex-wrap:wrap;gap:8px}.dpcd-choice{appearance:none;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:11px;padding:10px 13px;font-weight:700;cursor:pointer}.dpcd-choice.is-active{border-color:var(--cyan);box-shadow:0 0 0 2px rgba(41,168,197,.12);color:#1687a2}
.dpcd-patterns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dpcd-pattern{appearance:none;border:1px solid var(--line);background:#fff;border-radius:14px;padding:10px;cursor:pointer;text-align:left}.dpcd-pattern.is-active{border-color:var(--cyan);box-shadow:0 0 0 2px rgba(41,168,197,.12)}.dpcd-pattern img{width:100%;height:90px;object-fit:contain;background:var(--soft);border-radius:9px}.dpcd-pattern span{display:block;margin-top:7px;font-size:12px;font-weight:700}
.dpcd-upload{display:block;margin-top:12px;border:1px dashed #b9cbd2;border-radius:14px;padding:14px;cursor:pointer}.dpcd-upload strong,.dpcd-upload span{display:block}.dpcd-upload strong{font-size:13px}.dpcd-upload span{font-size:12px;color:var(--muted);margin-top:3px}.dpcd-upload input{margin-top:10px;font-size:12px;max-width:100%}
.dpcd-preview-head{display:flex;justify-content:space-between;align-items:center;gap:18px}.dpcd-preview-head>div span{display:block;font-size:10px;letter-spacing:.14em;color:var(--cyan);font-weight:800}.dpcd-preview-head strong{font-size:15px}.dpcd-depth{font-size:11px;padding:7px 9px;border-radius:999px;background:var(--soft);font-weight:700}
.dpcd-preview{min-height:430px;display:grid;place-items:center;padding:30px}.dpcd-coaster{position:relative;width:min(360px,75vw);aspect-ratio:1;background:linear-gradient(145deg,#f7fafb,#dde7eb);box-shadow:0 30px 45px rgba(36,54,64,.18), inset -15px -17px 30px rgba(87,109,119,.1), inset 12px 12px 24px rgba(255,255,255,.9);overflow:hidden}.dpcd-coaster.is-circle{border-radius:50%}.dpcd-coaster.is-square{border-radius:10%}.dpcd-groove{position:absolute;inset:3.1%;border:2px solid rgba(49,69,78,.18);border-radius:inherit;z-index:2;pointer-events:none}.dpcd-coaster img{position:absolute;inset:7%;width:86%;height:86%;object-fit:contain;mix-blend-mode:multiply;opacity:.72;z-index:1}
.dpcd-safe-note{font-size:12px;color:var(--muted);text-align:center;margin-top:-8px}.dpcd-export{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.dpcd-export>div:first-child{display:flex;justify-content:space-between;align-items:end}.dpcd-export h3{margin:3px 0 0;font-size:20px}.dpcd-export-btn{width:100%;border:0;border-radius:14px;padding:14px 18px;margin-top:14px;background:var(--cyan);color:#fff;font-weight:800;cursor:pointer}.dpcd-export-btn.is-locked{background:#30434d}.dpcd-member-cta{margin-top:12px;background:var(--soft);border-radius:14px;padding:14px}.dpcd-member-cta strong,.dpcd-member-cta span{display:block}.dpcd-member-cta strong{font-size:13px}.dpcd-member-cta span{font-size:12px;color:var(--muted);margin-top:3px}.dpcd-member-cta>div{display:flex;gap:12px;flex-wrap:wrap;margin-top:9px}.dpcd-member-cta a,.dpcd-member-cta button{border:0;background:none;padding:0;color:#1687a2;font:inherit;font-size:12px;font-weight:800;text-decoration:none;cursor:pointer}.dpcd-export-note{font-size:12px;color:var(--muted)}
@media(max-width:820px){.dpcd-grid{grid-template-columns:1fr}.dpcd-top{align-items:flex-start;flex-direction:column}.dpcd-preview{min-height:350px;padding:20px}.dpcd-panel{padding:18px}}

.dpcd-upload.is-uploading{opacity:.65;pointer-events:none}
.dpcd-upload.is-success{border-color:var(--cyan);background:rgba(41,168,197,.05)}

.dpcd-export-btn:disabled{opacity:.6;cursor:wait}

/* 0.4.2 shape-aware preview */
.dpcd-coaster.is-hexagon{clip-path:polygon(50% 0,93.3% 25%,93.3% 75%,50% 100%,6.7% 75%,6.7% 25%)}
.dpcd-coaster.is-octagon{clip-path:polygon(29.3% 0,70.7% 0,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0 70.7%,0 29.3%)}


/* 0.4.3 – shape-aware preview safe area + generation notice */
.dpcd-coaster img[data-pattern-preview]{
  position:absolute;
  object-fit:contain;
  mix-blend-mode:multiply;
  opacity:.72;
  z-index:1;
  transition:width .2s ease,height .2s ease,inset .2s ease,clip-path .2s ease;
}

.dpcd-generating-note{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border:1px solid rgba(41,168,197,.32);
  border-radius:14px;
  background:rgba(41,168,197,.06);
}
.dpcd-generating-note[hidden]{display:none!important}
.dpcd-generating-note strong,
.dpcd-generating-note span{display:block}
.dpcd-generating-note strong{
  font-size:13px;
  color:var(--ink);
}
.dpcd-generating-note div>span{
  margin-top:2px;
  font-size:12px;
  line-height:1.4;
  color:var(--muted);
}
.dpcd-generating-spinner{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:50%;
  border:2px solid rgba(41,168,197,.18);
  border-top-color:var(--cyan);
  border-right-color:var(--cyan);
  animation:dpcd-spin .8s linear infinite;
  box-shadow:0 0 0 4px rgba(41,168,197,.05);
}
@keyframes dpcd-spin{to{transform:rotate(360deg)}}


/* 0.5.0 – SVG preflight modal */
.dpcd-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:999999;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(20,31,37,.58);
  backdrop-filter:blur(7px);
}
.dpcd-modal-backdrop[hidden]{display:none!important}
.dpcd-modal{
  position:relative;
  width:min(520px,calc(100vw - 32px));
  border-radius:22px;
  background:#fff;
  padding:26px;
  box-shadow:0 30px 80px rgba(18,29,35,.3);
  color:var(--ink);
}
.dpcd-modal h3{
  margin:6px 36px 8px 0;
  font-size:28px;
  line-height:1.08;
  letter-spacing:-.03em;
}
.dpcd-modal>p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}
.dpcd-preflight-details{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:var(--soft);
  font-size:13px;
  line-height:1.45;
}
.dpcd-preflight-details:empty{display:none}
.dpcd-preflight-details p{margin:4px 0}
.dpcd-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--ink);
  font-size:22px;
  cursor:pointer;
}
.dpcd-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
  flex-wrap:wrap;
}
.dpcd-modal-primary,
.dpcd-modal-secondary{
  border-radius:12px;
  padding:11px 15px;
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.dpcd-modal-primary{
  border:0;
  background:var(--cyan);
  color:#fff;
}
.dpcd-modal-secondary{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
}


/* 0.5.2 – Keychain-style generator header */
.dpcd-shell{
  padding-top:38px;
}

.dpcd-tool-card{
  position:relative;
  overflow:hidden;
  margin:0 0 18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 18px 50px rgba(38,57,67,.06);
}

.dpcd-tool-accent{
  position:absolute;
  top:0;
  left:30px;
  width:64px;
  height:4px;
  border-radius:0 0 4px 4px;
  background:var(--cyan);
}

.dpcd-tool-head{
  min-height:114px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:25px 30px 23px;
}

.dpcd-tool-copy h2{
  margin:0 0 7px;
  font-size:30px;
  line-height:1.08;
  letter-spacing:-.035em;
  font-weight:500;
  color:var(--ink);
}

.dpcd-tool-copy p{
  margin:0;
  max-width:650px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.dpcd-tool-runtime{
  flex:0 0 auto;
  white-space:nowrap;
  border:1px solid rgba(41,168,197,.23);
  border-radius:999px;
  padding:9px 14px;
  background:rgba(41,168,197,.045);
  color:var(--ink);
  font-size:11px;
  line-height:1;
  font-weight:700;
}

/* Old free-standing hero styles are no longer used. */
.dpcd-top{display:none!important}

@media(max-width:760px){
  .dpcd-shell{padding-top:22px}
  .dpcd-tool-head{
    min-height:0;
    align-items:flex-start;
    flex-direction:column;
    gap:16px;
    padding:24px 20px 20px;
  }
  .dpcd-tool-accent{
    left:20px;
    width:58px;
  }
  .dpcd-tool-copy h2{
    font-size:26px;
  }
  .dpcd-tool-runtime{
    white-space:normal;
  }
}


/* 0.5.4 – mobile usability */
@media (max-width: 820px){
  .dpcd-shell{
    width:100%;
    max-width:100%;
    margin:18px auto 28px;
    padding:0 12px;
    box-sizing:border-box;
    overflow:hidden;
  }

  .dpcd-tool-card,
  .dpcd-panel{
    border-radius:18px;
  }

  .dpcd-tool-head{
    padding:22px 18px 18px;
  }

  .dpcd-tool-copy h2{
    font-size:27px;
    line-height:1.08;
  }

  .dpcd-tool-copy p{
    font-size:13px;
    line-height:1.45;
  }

  .dpcd-tool-runtime{
    align-self:flex-start;
    max-width:100%;
    padding:8px 11px;
    font-size:10px;
  }

  .dpcd-grid{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
  }

  .dpcd-panel{
    min-width:0;
    padding:16px;
  }

  .dpcd-step{
    margin-bottom:10px;
  }

  .dpcd-step:not(:first-child){
    margin-top:20px;
  }

  .dpcd-step h3{
    font-size:15px;
  }

  .dpcd-options{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .dpcd-choice{
    min-height:46px;
    width:100%;
    padding:10px 8px;
    font-size:13px;
    line-height:1.25;
    text-align:center;
    touch-action:manipulation;
  }

  [data-thickness]{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .dpcd-patterns{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .dpcd-pattern{
    min-width:0;
    padding:8px;
    border-radius:12px;
    touch-action:manipulation;
  }

  .dpcd-pattern img{
    height:92px;
  }

  .dpcd-pattern span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .dpcd-upload{
    padding:13px;
  }

  .dpcd-upload input{
    display:block;
    width:100%;
    max-width:100%;
    margin-top:10px;
    font-size:13px;
  }

  .dpcd-preview-panel{
    padding:15px;
  }

  .dpcd-preview-head{
    align-items:flex-start;
    gap:10px;
  }

  .dpcd-preview-head strong{
    font-size:14px;
  }

  .dpcd-depth{
    flex:0 0 auto;
    font-size:10px;
    padding:6px 8px;
  }

  .dpcd-preview{
    min-height:0;
    padding:18px 4px 14px;
  }

  .dpcd-coaster{
    width:min(82vw,360px);
    max-width:100%;
  }

  .dpcd-safe-note{
    margin-top:2px;
    padding:0 4px;
    font-size:11px;
    line-height:1.45;
  }

  .dpcd-export{
    margin-top:16px;
    padding-top:16px;
  }

  .dpcd-export>div:first-child{
    align-items:center;
  }

  .dpcd-export h3{
    font-size:20px;
  }

  .dpcd-export-btn{
    min-height:50px;
    padding:14px 12px;
    font-size:14px;
    touch-action:manipulation;
  }

  .dpcd-member-cta{
    padding:13px;
  }

  .dpcd-member-cta>div{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .dpcd-member-cta a,
  .dpcd-member-cta button{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    font-size:13px;
  }

  .dpcd-generating-note{
    align-items:flex-start;
    padding:12px;
  }

  .dpcd-modal-backdrop{
    align-items:end;
    padding:10px;
  }

  .dpcd-modal{
    width:100%;
    max-width:none;
    max-height:calc(100dvh - 20px);
    overflow:auto;
    border-radius:20px;
    padding:22px 18px 18px;
  }

  .dpcd-modal h3{
    font-size:25px;
    padding-right:30px;
  }

  .dpcd-modal-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .dpcd-modal-primary,
  .dpcd-modal-secondary{
    width:100%;
    min-height:46px;
  }

  .dpcd-modal-close{
    width:38px;
    height:38px;
    top:12px;
    right:12px;
  }
}

@media (max-width: 430px){
  .dpcd-shell{
    padding:0 8px;
  }

  .dpcd-tool-card,
  .dpcd-panel{
    border-radius:16px;
  }

  .dpcd-tool-head{
    padding:20px 15px 16px;
  }

  .dpcd-tool-copy h2{
    font-size:25px;
  }

  .dpcd-panel{
    padding:14px;
  }

  .dpcd-options{
    grid-template-columns:1fr 1fr;
  }

  [data-thickness]{
    grid-template-columns:repeat(3,1fr);
  }

  .dpcd-choice{
    min-height:44px;
    font-size:12px;
  }

  .dpcd-patterns{
    grid-template-columns:1fr 1fr;
  }

  .dpcd-pattern img{
    height:82px;
  }

  .dpcd-preview-head{
    flex-wrap:wrap;
  }

  .dpcd-depth{
    margin-left:auto;
  }

  .dpcd-coaster{
    width:min(88vw,330px);
  }

  .dpcd-export>div:first-child{
    flex-wrap:wrap;
    gap:5px;
  }

  .dpcd-export h3{
    font-size:19px;
  }
}

/* Prevent accidental horizontal overflow from long SVG/file names. */
.dpcd-shell *,
.dpcd-shell *::before,
.dpcd-shell *::after{
  box-sizing:border-box;
}
.dpcd-shell img,
.dpcd-shell svg{
  max-width:100%;
}
.dpcd-upload,
.dpcd-export-note,
.dpcd-generating-note,
.dpcd-member-cta,
.dpcd-preflight-details{
  overflow-wrap:anywhere;
}

html.dpcd-modal-open,
html.dpcd-modal-open body{
  overflow:hidden!important;
}
@media (hover:none) and (pointer:coarse){
  .dpcd-choice,
  .dpcd-pattern,
  .dpcd-export-btn,
  .dpcd-modal button,
  .dpcd-member-cta a,
  .dpcd-member-cta button{
    -webkit-tap-highlight-color:transparent;
  }
}


/* 0.6.11 — Pattern thumbnails: consistent black/white artwork.
   Visual treatment only; STL/vector generation is untouched. */
.dpcd-pattern img,
.dpcd-pattern-card img,
[data-pattern-url] img {
    filter: grayscale(1) contrast(1.35) brightness(0.82);
    mix-blend-mode: multiply;
}

/* Keep thumbnail canvas clean and neutral. */
.dpcd-pattern,
.dpcd-pattern-card,
[data-pattern-url] {
    background: #fff;
}



/* 0.6.13 — All motif previews render solid black.
   This affects display only; vector/raster processing and STL export remain unchanged. */
.dpcd-coaster img,
.dpcd-coaster img[data-pattern-preview] {
    filter: grayscale(1) brightness(0) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

/* Pattern cards: black artwork on a neutral white thumbnail canvas. */
.dpcd-pattern img,
.dpcd-pattern-card img,
[data-pattern-url] img {
    filter: grayscale(1) brightness(0) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    background: #fff !important;
}


/* 0.6.14 — Correct monochrome preview rendering.
   White background stays white; gray/dark artwork becomes black.
   Visual only; STL/vector processing is unchanged. */
.dpcd-coaster img,
.dpcd-coaster img[data-pattern-preview],
.dpcd-pattern img,
.dpcd-pattern-card img,
[data-pattern-url] img {
    filter: grayscale(1) contrast(1000%) brightness(1) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

.dpcd-pattern img,
.dpcd-pattern-card img,
[data-pattern-url] img {
    background: #fff !important;
}


/* 0.6.15 — High-quality monochrome previews.
   Preserve browser anti-aliasing instead of hard-thresholding pixels. */
.dpcd-coaster img,
.dpcd-coaster img[data-pattern-preview] {
    filter: grayscale(1) contrast(175%) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    image-rendering: auto !important;
}

.dpcd-pattern img,
.dpcd-pattern-card img,
[data-pattern-url] img {
    filter: grayscale(1) contrast(185%) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    image-rendering: auto !important;
    background: #fff !important;
}


/* 0.6.16 — High-quality thumbnail rendering.
   Softer monochrome conversion keeps fine SVG/PNG anti-aliasing intact. */
.dpcd-pattern img,
.dpcd-pattern-card img,
[data-pattern-url] img {
    filter: grayscale(1) contrast(125%) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    image-rendering: auto !important;
    object-fit: contain !important;
    background: #fff !important;
}


/* 0.6.18 — Shape-aware groove preview for polygon coasters.
   Hexagonal and Octagonal now draw the groove as the same polygon as the coaster,
   rather than clipping a rectangular border. STL geometry is unchanged. */

.dpcd-coaster.is-hexagon .dpcd-groove,
.dpcd-coaster.is-octagon .dpcd-groove {
    border: 0 !important;
    border-radius: 0 !important;
    inset: 3.1% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
}

/* True hexagonal groove line. */
.dpcd-coaster.is-hexagon .dpcd-groove {
    clip-path: polygon(
        50% 0,
        93.301% 25%,
        93.301% 75%,
        50% 100%,
        6.699% 75%,
        6.699% 25%
    ) !important;
    background-image:
        linear-gradient(rgba(49,69,78,.20), rgba(49,69,78,.20)) !important;
}

/* Cut out the center so only a slim polygon ring remains. */
.dpcd-coaster.is-hexagon .dpcd-groove::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: rgba(247,251,252,.96);
    clip-path: polygon(
        50% 0,
        93.301% 25%,
        93.301% 75%,
        50% 100%,
        6.699% 75%,
        6.699% 25%
    );
}

/* True octagonal groove line. */
.dpcd-coaster.is-octagon .dpcd-groove {
    clip-path: polygon(
        29.289% 0,
        70.711% 0,
        100% 29.289%,
        100% 70.711%,
        70.711% 100%,
        29.289% 100%,
        0 70.711%,
        0 29.289%
    ) !important;
    background-image:
        linear-gradient(rgba(49,69,78,.20), rgba(49,69,78,.20)) !important;
}

/* Cut out the center so only a slim polygon ring remains. */
.dpcd-coaster.is-octagon .dpcd-groove::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: rgba(247,251,252,.96);
    clip-path: polygon(
        29.289% 0,
        70.711% 0,
        100% 29.289%,
        100% 70.711%,
        70.711% 100%,
        29.289% 100%,
        0 70.711%,
        0 29.289%
    );
}


/* 0.6.19 — Keep SVG/PNG motif solid black in polygon previews.
   0.6.18's polygon groove center mask visually washed out the artwork.
   Preserve the hex/oct groove while ensuring artwork renders above it. */

.dpcd-coaster.is-hexagon .dpcd-groove,
.dpcd-coaster.is-octagon .dpcd-groove {
    z-index: 1 !important;
    pointer-events: none !important;
}

.dpcd-coaster.is-hexagon .dpcd-groove::after,
.dpcd-coaster.is-octagon .dpcd-groove::after {
    z-index: 0 !important;
    pointer-events: none !important;
}

/* Pattern/artwork must always sit above the groove visualization. */
.dpcd-coaster .dpcd-pattern,
.dpcd-coaster .dpcd-pattern-layer,
.dpcd-coaster .dpcd-artwork,
.dpcd-coaster svg.dpcd-pattern,
.dpcd-coaster canvas {
    position: relative;
    z-index: 3 !important;
}

/* SVG motifs: black artwork without changing white/transparent negative space. */
.dpcd-coaster .dpcd-pattern svg,
.dpcd-coaster .dpcd-pattern-layer svg,
.dpcd-coaster .dpcd-artwork svg {
    opacity: 1 !important;
}

.dpcd-coaster .dpcd-pattern svg path,
.dpcd-coaster .dpcd-pattern svg polygon,
.dpcd-coaster .dpcd-pattern svg circle,
.dpcd-coaster .dpcd-pattern svg ellipse,
.dpcd-coaster .dpcd-pattern svg rect,
.dpcd-coaster .dpcd-pattern-layer svg path,
.dpcd-coaster .dpcd-pattern-layer svg polygon,
.dpcd-coaster .dpcd-pattern-layer svg circle,
.dpcd-coaster .dpcd-pattern-layer svg ellipse,
.dpcd-coaster .dpcd-pattern-layer svg rect {
    opacity: 1 !important;
}

/* PNG/canvas vector preview: don't fade the generated black motif. */
.dpcd-coaster canvas,
.dpcd-coaster .dpcd-pattern img,
.dpcd-coaster .dpcd-pattern-layer img,
.dpcd-coaster .dpcd-artwork img {
    opacity: 1 !important;
}


/* 0.6.21 — Match Coaster Designer top accent bar to Keychain Generator. */
.dpcd-tool-accent {
    background: #2ab5e0 !important;
}




/* 0.6.23 — Mobile-only preview sizing/centering.
   Desktop remains unchanged. */
@media (max-width: 640px) {

    /* Never clip the coaster on mobile. */
    .dpcd-preview-card,
    .dpcd__preview-card,
    .dpcd-preview,
    .dpcd-live-preview,
    .dpcd-coaster-wrap,
    .dpcd-coaster-stage,
    .dpcd-preview-stage {
        overflow: visible !important;
    }

    /* Center the preview area without altering desktop behavior. */
    .dpcd-coaster-wrap,
    .dpcd-coaster-stage,
    .dpcd-preview-stage,
    .dpcd-live-preview {
        width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Smaller, centered coaster model on phones. */
    .dpcd-coaster {
        width: min(78vw, 430px) !important;
        height: min(78vw, 430px) !important;
        max-width: 430px !important;
        max-height: 430px !important;
        margin: 22px auto 18px !important;
        left: auto !important;
        right: auto !important;
        translate: none !important;
        transform-origin: center center !important;

        /* Flat mobile presentation: remove all drop shadows. */
        box-shadow: none !important;
        filter: none !important;
    }

    /* Also remove pseudo-element shadow/glow layers if defined elsewhere. */
    .dpcd-coaster::before,
    .dpcd-coaster::after {
        box-shadow: none !important;
        filter: none !important;
    }
}

/* Slightly smaller again on narrow Android phones. */
@media (max-width: 420px) {
    .dpcd-coaster {
        width: 74vw !important;
        height: 74vw !important;
        max-width: 360px !important;
        max-height: 360px !important;
        margin-top: 18px !important;
        margin-bottom: 16px !important;
    }
}


/* 0.6.24 — Mobile preview depth aligned with Social Tag Generator.
   Keep the coaster itself completely flat on mobile; only the card keeps its
   normal subtle elevation. Desktop remains unchanged. */
@media (max-width: 640px) {

    /* No shadow/glow on the coaster object itself. */
    .dpcd-coaster,
    .dpcd-coaster::before,
    .dpcd-coaster::after {
        box-shadow: none !important;
        filter: none !important;
        text-shadow: none !important;
    }

    /* Remove any radial/blurred halo from preview wrappers around the object. */
    .dpcd-coaster-wrap,
    .dpcd-coaster-stage,
    .dpcd-preview-stage,
    .dpcd-live-preview {
        box-shadow: none !important;
        filter: none !important;
        background-image: none !important;
    }

    /* Pseudo layers used for decorative depth must also stay flat on phones. */
    .dpcd-coaster-wrap::before,
    .dpcd-coaster-wrap::after,
    .dpcd-coaster-stage::before,
    .dpcd-coaster-stage::after,
    .dpcd-preview-stage::before,
    .dpcd-preview-stage::after,
    .dpcd-live-preview::before,
    .dpcd-live-preview::after {
        box-shadow: none !important;
        filter: none !important;
        background-image: none !important;
        opacity: 0 !important;
    }

    /* Match the Social Tag Generator feel: subtle depth only on the preview card. */
    .dpcd-preview-card,
    .dpcd__preview-card {
        box-shadow: 0 10px 28px rgba(35, 58, 70, .055) !important;
    }
}


/* 0.6.25 — Flat mobile cards, matching the cleaner Social Tag presentation.
   Desktop shadows remain untouched. */
@media (max-width: 640px) {

    .dpcd,
    .dpcd-card,
    .dpcd__card,
    .dpcd-panel,
    .dpcd-controls,
    .dpcd__controls,
    .dpcd-preview-card,
    .dpcd__preview-card,
    .dpcd-pattern-card,
    .dpcd-pattern,
    .dpcd-upload,
    .dpcd-upload-box,
    .dpcd-export,
    .dpcd__export {
        box-shadow: none !important;
        filter: none !important;
    }

    /* Also neutralize decorative pseudo-element shadows on mobile cards. */
    .dpcd-card::before,
    .dpcd-card::after,
    .dpcd__card::before,
    .dpcd__card::after,
    .dpcd-panel::before,
    .dpcd-panel::after,
    .dpcd-controls::before,
    .dpcd-controls::after,
    .dpcd__controls::before,
    .dpcd__controls::after,
    .dpcd-preview-card::before,
    .dpcd-preview-card::after,
    .dpcd__preview-card::before,
    .dpcd__preview-card::after {
        box-shadow: none !important;
        filter: none !important;
    }

    /* Keep cards defined by their border/background instead of depth. */
    .dpcd-card,
    .dpcd__card,
    .dpcd-panel,
    .dpcd-controls,
    .dpcd__controls,
    .dpcd-preview-card,
    .dpcd__preview-card {
        border-color: #dfe7eb !important;
    }
}


/* 0.6.26 — Remove the remaining mobile shadow from the top
   "Coaster Designer" tool header card. Desktop remains unchanged. */
@media (max-width: 640px) {
    .dpcd-tool-card,
    .dpcd-tool-card::before,
    .dpcd-tool-card::after {
        box-shadow: none !important;
        filter: none !important;
    }

    .dpcd-tool-card {
        border-color: #dfe7eb !important;
    }
}
