@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Quicksand:wght@500;600;700&family=Pacifico&display=swap');
:root{--pink:#e84d9b;--pink-dark:#c93480;--pink-pale:#fff0f7;--ink:#50465e;--muted:#91869c;--line:#f0dce8;--paper:#fffdfd;--lav:#f1edff}
*{box-sizing:border-box}body{margin:0;background:#fff9fc;color:var(--ink);font-family:'DM Sans',sans-serif;background-image:radial-gradient(#f4dce9 .7px,transparent .7px);background-size:15px 15px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e99ac6;outline-offset:2px}
.topbar{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 3%;background:rgba(255,247,251,.96);border-bottom:1px solid #f1d9e6;position:sticky;top:0;z-index:20;backdrop-filter:blur(12px);flex-wrap:wrap}.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:45px;height:45px;border-radius:15px;background:#ffe2f0;color:#df4c9a;font-size:33px;box-shadow:inset 0 0 0 1px #f7c6df;transform:rotate(-7deg)}.brand strong{display:block;font:25px 'Pacifico',cursive;color:#c54b91}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:700;color:#9c7e95}.top-note{font:17px 'Pacifico',cursive;color:#a77998}.top-note span{color:#e84d9b}.top-actions,.toolbar-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.download-btn,.quiet-btn,.mini-btn,.selected-tools button{border:1px solid var(--line);border-radius:12px;padding:10px 13px;font-weight:700;font-size:12px}.download-btn{background:var(--pink);border-color:var(--pink);color:white;box-shadow:0 5px 14px #e84d9b26}.download-btn:hover{background:var(--pink-dark)}.quiet-btn,.mini-btn,.selected-tools button{background:#fff;color:#7d6579}.quiet-btn:hover,.mini-btn:hover,.selected-tools button:hover{background:#fff0f7}.app-shell{display:grid;grid-template-columns:minmax(245px,300px) minmax(320px,1fr) minmax(245px,300px);gap:18px;padding:20px 2.2%;max-width:1800px;margin:auto;align-items:start}.panel{background:#fffdfd;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 30px #b67b9b0b;overflow:hidden}.section{padding:19px;border-bottom:1px solid #f5e8ef}.section:last-child{border-bottom:0}.section-heading{display:flex;align-items:center;gap:9px;margin-bottom:15px}.section-heading h2{font:700 15px 'Quicksand',sans-serif;margin:0;color:#5d4c62}.step{display:grid;place-items:center;width:27px;height:27px;background:#fff0f7;color:#d44d94;border-radius:9px;font-size:10px;font-weight:700}.upload-zone{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:135px;border:1.5px dashed #eab8d4;border-radius:15px;background:#fff8fc;color:#a18b9f;text-align:center;padding:15px;cursor:pointer}.upload-zone.dragover{background:#ffe8f4;border-color:var(--pink)}.upload-icon{font-size:25px;color:var(--pink);line-height:1}.upload-zone strong{color:#8d6480;font-size:13px}.upload-zone span{font-size:11px}.upload-zone small{font-size:9px;margin-top:4px}.upload-status,.helper{font-size:11px;color:#9a8c9c;line-height:1.5;margin:10px 0 0}.filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:17px}.filter-chip{display:flex;align-items:center;gap:5px;justify-content:center;flex-direction:column;border:1px solid #f0dfe9;background:white;border-radius:10px;padding:8px 3px;font-size:10px;color:#88758a}.filter-chip.active{border-color:#e68bb9;background:#fff2f8;color:#c34488}.filter-swatch{width:29px;height:25px;border-radius:7px;background:linear-gradient(135deg,#f2c2dc,#a4b9d7)}.filter-swatch.pink{background:linear-gradient(135deg,#f7b6d8,#d66d9d)}.filter-swatch.dreamy{background:linear-gradient(135deg,#e8d5ff,#fff0d9)}.filter-swatch.vintage{background:linear-gradient(135deg,#c99e70,#eee0b9)}.filter-swatch.mono{background:linear-gradient(135deg,#eee,#444)}.filter-swatch.bright{background:linear-gradient(135deg,#fff1a9,#f7a5d6)}.range-control{display:block;margin:13px 0}.range-control>label,.range-control>span{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8b788b;margin-bottom:7px}.range-control output{font-weight:700;color:#c84e91}input[type=range]{width:100%;accent-color:var(--pink);cursor:pointer}.field-label{display:block;font-size:10px;color:#99849a;font-weight:700;margin:12px 0 6px}.text-input{width:100%;border:1px solid #efdeea;border-radius:10px;padding:10px 11px;color:#6f5c70;background:#fffafd;font-size:12px;min-width:0}.text-input:focus{border-color:#e9a1c7;outline:none}.color-row{display:flex;gap:10px;margin-top:10px}.color-dot{width:29px;height:29px;border:3px solid white;border-radius:50%;background:var(--dot);box-shadow:0 0 0 1px #ead7e3}.color-dot.selected{box-shadow:0 0 0 2px var(--pink)}.workspace{min-width:0}.workspace-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:3px 2px 14px;font-size:10px;font-weight:700;letter-spacing:1.1px;color:#a28a9e;flex-wrap:wrap}.live-dot{display:inline-block;width:7px;height:7px;background:#71c6a2;border-radius:50%;margin-right:6px;box-shadow:0 0 0 4px #e4f7ee}.canvas-stage{min-height:640px;display:flex;align-items:center;justify-content:center;padding:30px 16px;border:1px solid #f0dce8;border-radius:22px;background:linear-gradient(145deg,#fff6fb,#fffdfb 48%,#f5f0ff);overflow:hidden;position:relative}.canvas-stage:before,.canvas-stage:after{content:"✦";position:absolute;color:#e9c3da;font-size:22px}.canvas-stage:before{left:6%;top:7%}.canvas-stage:after{right:7%;bottom:8%;font-size:30px}.card{position:relative;isolation:isolate;width:min(100%,360px);aspect-ratio:2/3;background:#fff0f6;border:9px solid #fffafc;outline:1px solid #efd6e4;border-radius:8px;box-shadow:0 18px 45px #a47b962e;overflow:hidden;transition:aspect-ratio .2s,background .2s}.card.square{aspect-ratio:1/1}.card.polaroid{aspect-ratio:2/2.45;border-bottom-width:42px}.card.mini{width:min(76%,280px);aspect-ratio:2/3}.paper-texture{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.58;background-image:radial-gradient(#dba5c2 1px,transparent 1px);background-size:17px 17px}.paper-texture.torn{background:linear-gradient(135deg,transparent 10%,#ffffff55 10% 20%,transparent 20% 40%,#ffffff55 40% 48%,transparent 48%)}.paper-texture.graph{background-image:linear-gradient(#d9c7f4 1px,transparent 1px),linear-gradient(90deg,#d9c7f4 1px,transparent 1px);background-size:18px 18px}.paper-texture.lace{background-image:radial-gradient(circle at 50% 50%,transparent 40%,#d7b5d1 42%,transparent 46%);background-size:17px 17px}.paper-texture.glitter{background-image:radial-gradient(#fff 1px,transparent 1.5px),radial-gradient(#d8a3c9 1px,transparent 1.5px);background-position:0 0,7px 9px;background-size:13px 15px}.paper-texture.polka{background-image:radial-gradient(#e9a9ca 2px,transparent 2.5px);background-size:20px 20px}.paper-texture.gingham{background-image:linear-gradient(90deg,#eebbd4 50%,transparent 50%),linear-gradient(#eebbd4 50%,transparent 50%);background-size:20px 20px;opacity:.18}.tape{position:absolute;z-index:3;background:#f4b5d2a8;box-shadow:0 1px 2px #9e688422;pointer-events:none}.tape-top{width:92px;height:22px;top:2%;left:8%;transform:rotate(-12deg);background:repeating-linear-gradient(90deg,#f4b5d2c9 0 8px,#fff0f7c9 8px 14px)}.tape-side{width:22px;height:72px;right:3%;top:47%;transform:rotate(8deg);background:repeating-linear-gradient(0deg,#d6c6f6c9 0 8px,#fff0f7c9 8px 14px)}.photo-window{position:absolute;z-index:1;left:12%;top:10%;width:76%;height:65%;background:#f8dce9;overflow:hidden;border:5px solid #fffafc;box-shadow:0 3px 10px #9f779326;touch-action:none;cursor:grab}.photo-window:active{cursor:grabbing}.card.square .photo-window{height:57%;top:10%}.card.polaroid .photo-window{height:64%}.card.mini .photo-window{height:65%}.photo-window img{position:absolute;max-width:none;user-select:none;-webkit-user-drag:none;transform-origin:center center;touch-action:none}.empty-photo{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#b879a0;text-align:center}.empty-photo span{font-size:40px}.empty-photo strong{font:700 12px 'Quicksand',sans-serif}.empty-photo small{font-size:10px}.card-title,.card-note,.profile-preview,.message-preview{position:absolute;z-index:2;left:8%;right:8%;text-align:center;color:#a64f89;overflow-wrap:anywhere;pointer-events:none}.card-title{top:77%;font:clamp(15px,2.4vw,24px) 'Pacifico',cursive}.card-note{top:90%;font-size:11px;color:#bb78a0}.card.square .card-title{top:71%}.card.square .card-note{top:87%}.card.polaroid .card-title{top:77%}.card.polaroid .card-note{top:89%}.profile-preview{top:82%;font-size:8px;font-weight:700;line-height:1.4}.message-preview{top:86%;font-size:8px;line-height:1.3}.card.square .profile-preview{top:77%}.card.square .message-preview{top:82%}.card-stamp{position:absolute;z-index:2;right:5%;top:5%;width:46px;height:46px;border:1.5px solid #d98db5;border-radius:50%;display:grid;place-content:center;text-align:center;font-size:7px;font-weight:700;line-height:1.2;color:#bd6598;transform:rotate(10deg);pointer-events:none}.deco{position:absolute;z-index:4;user-select:none;touch-action:none;cursor:grab;line-height:1;white-space:nowrap}.deco:active{cursor:grabbing}.deco-heart{font-size:36px;color:#e75e9d;transform:rotate(-15deg)}.deco-star{font-size:27px;color:#dca5bd}.deco-bow{font-size:30px}.deco-flower{font-size:27px;color:#d98eae}.extra-sticker{position:absolute;z-index:5;display:grid;place-items:center;min-width:25px;min-height:25px;line-height:1;cursor:grab;touch-action:none;user-select:none;transform-origin:center center}.extra-sticker.selected-sticker{outline:1.5px dashed #df4d9b;outline-offset:5px;border-radius:4px}.holo-overlay{position:absolute;inset:0;z-index:6;pointer-events:none;opacity:0;background:linear-gradient(115deg,transparent 0 20%,#ff9ed933 30%,#fff9 35%,#a5f3fc55 42%,#d9b4ff55 52%,transparent 68%),repeating-linear-gradient(135deg,transparent 0 9px,#fff4 10px 11px);mix-blend-mode:screen}.card.holo .holo-overlay{opacity:var(--holo-strength,.45)}.workspace-foot{text-align:center;color:#b39aac;font:13px 'Pacifico',cursive;padding:18px 0}.workspace-foot span{color:#e58ab8}.sticker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:13px}.sticker{min-width:0;aspect-ratio:1;border:1px solid #f2dfeb;border-radius:12px;background:#fff9fc;font-size:25px;display:grid;place-items:center}.sticker:hover{background:#fff0f7;border-color:#e6a3c7;transform:translateY(-1px)}.shape-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.shape-btn{display:flex;align-items:center;gap:8px;justify-content:flex-start;border:1px solid #efdeea;background:white;border-radius:10px;padding:10px;font-size:11px;color:#88758a}.shape-btn.selected{border-color:#e68bb9;background:#fff2f8;color:#c34488}.shape-icon{display:inline-block;width:17px;height:24px;border:2px solid #d89cbd;border-radius:2px}.square-shape{width:20px;height:20px}.polaroid-shape{width:18px;height:23px;border-bottom-width:6px}.mini-shape{width:13px;height:19px}.tip-card{display:flex;align-items:flex-start;gap:10px;background:#fff7fb;border-radius:12px;padding:11px;margin-top:8px}.tip-card p{font-size:11px;line-height:1.5;margin:0;color:#9a8498}.full-download{width:calc(100% - 30px);margin:0 15px 15px}.selected-tools{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:12px;margin-top:10px;background:#fff;border:1px solid var(--line);border-radius:15px}.selected-tools strong{font-size:11px;margin-right:4px}.selected-tools button{padding:8px;font-size:10px}.selected-tools .danger-btn{color:#bd477e}.selected-tools .helper{margin:0 4px}.check-row{display:flex;align-items:center;gap:7px;font-size:11px;color:#8b788b;margin-top:13px}.check-row input{accent-color:var(--pink)}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.footer{text-align:center;padding:20px;color:#ad96a8;font-size:11px}.footer span:first-child{font-weight:700;color:#c65a96}
@media(max-width:1200px){.app-shell{grid-template-columns:minmax(230px,280px) minmax(300px,1fr);}.right-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.right-panel .section{border-right:1px solid #f5e8ef}.right-panel .full-download{align-self:center}.canvas-stage{min-height:560px}}
@media(max-width:760px){.topbar{position:static;padding:12px 4%;}.top-note{display:none}.top-actions{width:100%;}.top-actions button{flex:1;padding:9px 7px}.app-shell{display:flex;flex-direction:column;padding:12px;gap:12px}.workspace{order:0;width:100%}.left-panel{order:1;width:100%}.right-panel{order:2;width:100%;display:block}.right-panel .section{border-right:0}.canvas-stage{min-height:480px;padding:25px 12px}.card{width:min(82%,340px)}.card.mini{width:min(68%,260px)}.workspace-toolbar{align-items:flex-start}.toolbar-actions{justify-content:flex-end}.selected-tools{position:static}.brand strong{font-size:22px}}
@media print{body{background:white}.topbar,.app-shell,.footer{display:none!important}}

/* REAL LAYOUT: centered card, side tool panels, details below */
.app-shell {
  display: grid;
  grid-template-columns: minmax(230px, 285px) minmax(320px, 1fr) minmax(230px, 285px);
  grid-template-areas:
    "left workspace right"
    "details details details";
  gap: 18px;
  align-items: start;
}
.left-panel { grid-area: left; }
.workspace { grid-area: workspace; }
.right-panel { grid-area: right; grid-column: auto; display: block; }
.bottom-details {
  grid-area: details;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}
.detail-panel {
  min-width: 0;
  background: #fffdfd;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 30px #b67b9b0b;
  overflow: hidden;
}
.detail-panel .section { height: 100%; border-bottom: 0; }
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr);
    grid-template-areas:
      "workspace workspace"
      "left right"
      "details details";
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: flex;
    flex-direction: column;
  }
  .workspace, .left-panel, .right-panel, .bottom-details {
    width: 100%;
    max-width: none;
  }
  .bottom-details { display: grid; grid-template-columns: minmax(0, 1fr); }
}

/* Tablet layout: keep tools beside the card on wider tablets */
@media (min-width: 761px) and (max-width: 1100px) {
  .app-shell {
    display: grid;
    grid-template-columns: minmax(185px, 0.8fr) minmax(260px, 1.2fr) minmax(185px, 0.8fr);
    grid-template-areas: "left workspace right" "details details details";
    gap: 10px;
    padding: 12px;
  }
  .left-panel { grid-area: left; }
  .workspace { grid-area: workspace; grid-column: auto; grid-row: auto; }
  .right-panel { grid-area: right; grid-column: auto; display: block; }
  .section { padding: 12px; }
  .canvas-stage { min-height: 420px; padding: 16px 8px; }
  .card { width: min(100%, 320px); }
  .workspace-toolbar { letter-spacing: .5px; }
  .toolbar-actions { gap: 4px; }
  .toolbar-actions .mini-btn { padding: 7px; font-size: 10px; }
}

/* Custom washi tape styles */
.washi-tape{display:block;min-width:0;min-height:0;border-radius:2px;cursor:grab;box-shadow:0 2px 5px #9e688433;opacity:.88}
.washi-tape.tape-stripes{background:repeating-linear-gradient(90deg,#f4b5d2 0 8px,#fff0f7 8px 14px)}
.washi-tape.tape-dots{background-color:#ffd3e6;background-image:radial-gradient(#fff8fc 1.8px,transparent 2px);background-size:10px 9px}
.washi-tape.tape-hearts{background-color:#f6b6d2;background-image:radial-gradient(ellipse at center,#fff7fb 0 2px,transparent 2.5px);background-size:15px 12px}
.washi-tape.tape-gingham{background-color:#e6d9ff;background-image:linear-gradient(90deg,#ffffffb8 50%,transparent 50%),linear-gradient(#ffffff80 50%,transparent 50%);background-size:12px 8px}
.washi-tape.tape-holo{background:linear-gradient(110deg,#ffb7df,#b7f4f1,#fff,#d9c0ff,#ffe5a8)}
.holo-controls{margin-top:16px;padding-top:12px;border-top:1px solid #f5e8ef}
.holo-label{margin-top:0;letter-spacing:.3px}


/* Background Studio editor */
.studio-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:5px;margin:0 0 14px;background:#fff4fa;border:1px solid #f3dce9;border-radius:13px}
.studio-tab{min-width:0;border:1px solid transparent;border-radius:9px;padding:9px 3px;background:transparent;color:#9b7892;font-size:10px;font-weight:700;white-space:nowrap}
.studio-tab.active{background:#fff;border-color:#edc1d9;color:#c34488;box-shadow:0 2px 6px #b56c9412}
.studio-panel[hidden]{display:none!important}
.studio-panel{min-width:0}
.studio-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:5px 0 10px;color:#735b72;font-size:11px}
.studio-panel-heading .mini-btn{padding:8px;font-size:10px}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.theme-card{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:5px;border:1px solid #f0deea;border-radius:11px;background:#fff;color:#826b80;font-size:9px;font-weight:600;line-height:1.25;text-align:center;overflow-wrap:anywhere}
.theme-card:hover{border-color:#e5a4c7;background:#fff8fc}
.theme-card.selected{border-color:#d96aa6;background:#fff0f7;box-shadow:0 0 0 1px #e9a5c9}
.theme-swatch{display:grid;place-items:center;min-height:43px;border-radius:7px;font-size:20px;color:#9d5b85}
.swatch-coquette{background:repeating-linear-gradient(45deg,#fff0f6 0 9px,#f8d7e7 9px 12px)}
.swatch-kpop{background:linear-gradient(135deg,#e9dcff,#d8fbf4,#ffe4f1)}
.swatch-kawaii{background:radial-gradient(#eea8cd 2px,transparent 3px),#fff0f7;background-size:13px 13px}
.swatch-vintage{background:linear-gradient(135deg,#f0dfc1,#fff6e5);color:#967754}
.swatch-strawberry{background:repeating-linear-gradient(45deg,#ffe4ed 0 8px,#fff7f2 8px 16px)}
.swatch-lavender{background:linear-gradient(135deg,#e9e0ff,#f9e9f5);color:#8e7cbb}
.swatch-blue{background:linear-gradient(#cce9ff,#f7fdff);color:#659bc1}
.swatch-mint{background:radial-gradient(#83c3a7 2px,transparent 3px),#e8f7ef;background-size:14px 14px}
.swatch-buttercream{background:repeating-linear-gradient(90deg,#fff0d5 0 8px,#fff9eb 8px 16px);color:#b38b48}
.swatch-holographic{background:linear-gradient(115deg,#ffb7df,#b7f4f1,#fff,#d9c0ff,#ffe5a8)}
.swatch-starlight{background:radial-gradient(#fff 1px,transparent 2px),linear-gradient(135deg,#7773a8,#d6c9f5);background-size:12px 12px;color:#fff}
.swatch-minimal{background:linear-gradient(135deg,#fffdf8,#f2e9ef);color:#bcaab8}
.input-with-swatch{display:flex;align-items:center;gap:9px}
.input-with-swatch>span{font-size:10px;color:#8f7b8d;font-weight:700;letter-spacing:.3px}
.color-input{width:48px;height:36px;padding:3px;border-radius:9px;cursor:pointer;flex:0 0 48px}
.palette-actions{display:flex;gap:8px;margin-top:15px}
.palette-actions .mini-btn{width:100%}
.favorites-heading{display:flex;flex-direction:column;gap:1px;margin:16px 0 8px;color:#795f76;font-size:11px}
.favorites-heading .helper{margin:0;font-size:10px}
.saved-palettes{display:grid;gap:6px}
.saved-palette{display:flex;align-items:center;gap:6px;min-width:0}
.saved-palette-apply{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:7px;border:1px solid #efdeea;border-radius:9px;background:#fff;color:#7e687b;font-size:10px;text-align:left}
.saved-palette-apply:hover{background:#fff4fa;border-color:#e6a3c7}
.saved-palette-apply>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.saved-palette-swatch{width:25px;height:25px;flex:0 0 25px;border:1px solid #ead9e5;border-radius:7px}
.saved-palette-remove{width:29px;height:29px;border:1px solid #f0dce8;border-radius:8px;background:#fff;color:#ba6b91;font-size:18px}
.paper-texture.finish-grain::after,.paper-texture.finish-glitter::after,.paper-texture.finish-pearl::after{content:"";position:absolute;inset:0;pointer-events:none}
.paper-texture.finish-grain::after{opacity:var(--finish-strength,.16);background-image:radial-gradient(#a28c7b .7px,transparent 1px);background-size:9px 11px}
.paper-texture.finish-glitter::after{opacity:var(--finish-strength,.16);background-image:radial-gradient(#fff 1px,transparent 1.7px),radial-gradient(#c5a6d7 1px,transparent 1.7px);background-position:0 0,6px 8px;background-size:17px 19px}
.paper-texture.finish-pearl::after{opacity:var(--finish-strength,.16);background:linear-gradient(115deg,#fff9,#f9d7ec,#d8f7f3,#e8d8ff)}
@media(max-width:760px){.theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-tab{font-size:9px;padding:9px 1px}.studio-panel-heading{align-items:flex-start}.theme-swatch{min-height:38px}}

.background-frame{position:absolute;inset:2.5%;z-index:0;pointer-events:none;border:1px solid var(--frame-color,#d7b4d0);border-radius:2px;opacity:.48}
.background-frame.none{display:none}
.background-frame.torn{inset:3.5%;border:1px solid var(--frame-color,#d7b4d0);box-shadow:inset 0 0 0 3px #ffffff30}
.background-frame.lace{inset:3%;border:0;background-image:radial-gradient(circle,var(--frame-color,#d7b4d0) 1px,transparent 1.6px),radial-gradient(circle,var(--frame-color,#d7b4d0) 1px,transparent 1.6px),radial-gradient(circle,var(--frame-color,#d7b4d0) 1px,transparent 1.6px),radial-gradient(circle,var(--frame-color,#d7b4d0) 1px,transparent 1.6px);background-size:8px 8px;background-repeat:no-repeat;background-position:top left,top right,bottom left,bottom right;opacity:.4}

.hex-input{width:94px;min-width:0;flex:1;padding:8px 9px;font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase}
.hex-input[aria-invalid="true"]{border-color:#d94b73;background:#fff4f5}

/* Photo-only filter overlays: clipped by .photo-window and excluded from scrapbook decorations. */
.photo-filter-overlay{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;opacity:var(--filter-strength,1);mix-blend-mode:screen}.photo-filter-overlay[hidden]{display:none}.photo-filter-overlay.light-leak{background:radial-gradient(ellipse at 0% 0%,#ff8b49 0%,#ffb36b88 22%,transparent 68%),linear-gradient(125deg,transparent 38%,#ffd18a55 52%,transparent 70%)}.photo-filter-overlay.glitch-overlay{mix-blend-mode:screen;background:repeating-linear-gradient(0deg,transparent 0 7px,#fff2 8px 9px,transparent 10px 15px);opacity:calc(var(--filter-strength,1)*.7)}
.filter-chip .filter-swatch.dreamy-soft{background:linear-gradient(135deg,#f7d8ef,#fff5d9)}.filter-chip .filter-swatch.vintage-film{background:linear-gradient(135deg,#b98a61,#f1e1bd)}.filter-chip .filter-swatch.y2k{background:linear-gradient(135deg,#ff8bd3,#8ce8f2,#c6a3ff)}.filter-chip .filter-swatch.cozy{background:linear-gradient(135deg,#d7aa78,#f7e4c9)}.filter-chip .filter-swatch.monochrome{background:linear-gradient(135deg,#fff,#222)}.filter-chip .filter-swatch.light-leak-swatch{background:linear-gradient(135deg,#ff814b,#ffdf9b,#d5a0c9)}.filter-chip .filter-swatch.icy{background:linear-gradient(135deg,#b7e7ff,#6a9fc9,#f5fcff)}.filter-chip .filter-swatch.glitch{background:linear-gradient(90deg,#ff4b9c 0 35%,#fff 35% 65%,#00d8ef 65%)}

/* Custom photocard typography controls */
.text-customizer{margin-top:12px;padding:11px;border:1px solid #f0d5e4;border-radius:12px;background:#fff8fc}.text-customizer>summary{cursor:pointer;color:#a64f89;font-weight:700;font-size:12px;padding:2px 0 8px}.text-style-card{padding:10px 0;border-top:1px dashed #efd5e3}.text-style-card>strong,.text-customizer>strong{display:block;font-size:12px;color:#9c507b;margin-bottom:7px}.text-customizer hr{border:0;border-top:1px dashed #efd5e3;margin:10px 0}.text-customizer .range-control{margin:8px 0}.text-customizer .range-control label{font-size:11px}


