/* Sticker studio, scoped to #stickers / .sd-section. */
.sd-section{background:#f4f3ef;color:#26393c;padding:72px max(24px,calc((100vw - 1240px)/2));scroll-margin-top:5px}
.sd-intro{max-width:850px;margin-bottom:36px}.sd-eyebrow,.sd-step{font-size:0.75rem;font-weight:700;letter-spacing:.16em;color:#246b6c}.sd-intro h2{font-size:clamp(2.375rem,4.7vw,4rem);line-height:1.05;letter-spacing:-.02em;margin:12px 0 8px}.sd-studio{max-width:720px;font-size:1.375rem;line-height:1.35;font-weight:600;color:#246b6c;margin:0 0 14px}.sd-lead{max-width:720px;font-size:1.1875rem;line-height:1.6}.sd-notice{margin-top:18px;padding-left:14px;border-left:3px solid #279c9a;font-size:0.8125rem;color:#496164}.sd-step{margin-bottom:16px}
.sd-designer{display:block;border:1px solid #cfdbd7;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 20px 65px #1d484c0b}
.sd-stage{padding:28px 32px 24px;background:#e9eeeb;display:flex;flex-direction:column;align-items:center;min-width:0}
.sd-stage-top{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.sd-view{font-size:0.6875rem;letter-spacing:.16em;font-weight:700;color:#54716e}.sd-dot{width:8px;height:8px;border-radius:50%;background:#279c9a;box-shadow:0 0 0 5px #279c9a18}
.sd-board{display:grid;grid-template-columns:36px 1fr;grid-template-rows:36px 1fr;width:100%;max-width:640px;margin:0 auto;background:#dce6e2;border:2px solid #344c4c;box-shadow:0 8px 24px #23473c08}
.sd-corner{background:#d4dfda;display:flex;align-items:flex-end;justify-content:flex-end;padding:0 4px 3px;font-size:0.5625rem;font-weight:700;color:#3f5a56;letter-spacing:.04em;user-select:none}
#sd-ruler-x,#sd-ruler-y{display:block;background:#e7eeea;width:100%;height:100%}
#sd-ruler-x{height:36px}#sd-ruler-y{width:36px}
.sd-sheet{position:relative;width:100%;line-height:0;background:#fbfaf6;overflow:hidden}
#sd-canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair;outline-offset:3px;background:transparent}
#sd-canvas[data-mode="select"]{cursor:grab}#sd-canvas[data-mode="erase"]{cursor:cell}
.sd-sheet.is-holo{background:linear-gradient(125deg,#f7d0ea 0%,#cde8ff 22%,#e8ffd4 42%,#ffe7b8 62%,#f3d0ff 82%,#cde8ff 100%)}
.sd-size-readout{width:100%;max-width:640px;margin:16px 0 0;padding:12px 16px;border-radius:12px;background:#fff;border:1px solid #c7d7d1;font-size:1rem;font-weight:700;color:#185355;text-align:center;line-height:1.45}
.sd-size-readout .sd-sheet-note{display:block;font-size:0.75rem;font-weight:600;color:#55716d;margin-top:4px}
.sd-face{font-size:0.8125rem;color:#315a59;text-align:center;margin:16px 0 0;max-width:900px}
.sd-caption{font-size:0.6875rem;text-align:center;max-width:900px;color:#586c6a;margin-top:8px;line-height:1.6}
.sd-controls{display:grid;grid-template-columns:1fr 1.2fr;gap:0 32px;padding:26px 32px}
.sd-draw-panel{min-width:0}
.sd-section button,.sd-section input,.sd-section select,.sd-section textarea{font:inherit}
.sd-section button{cursor:pointer;min-height:44px;border:1px solid #cddad7;border-radius:10px;background:#fff;color:#26393c;padding:10px 14px;font-size:0.875rem;font-weight:600;line-height:1.3;transition:background .15s,border-color .15s}
.sd-section button:hover:not(:disabled){background:#eaf5f1;border-color:#279c9a}
.sd-section button:disabled{opacity:.38;cursor:not-allowed}
.sd-section :focus-visible{outline:3px solid #167d80;outline-offset:3px}
.sd-section .sd-primary,.sd-section [aria-pressed="true"]{background:#246f70;color:#fff;border-color:#246f70}
.sd-section .sd-primary:hover:not(:disabled),.sd-section [aria-pressed="true"]:hover:not(:disabled){background:#185355;color:#fff}
.sd-tools{display:flex;flex-wrap:wrap;gap:8px}.sd-tools button{flex:1 1 110px}
.sd-mode{font-size:0.75rem;min-height:36px;line-height:1.5;color:#55716d;margin:14px 0}
.sd-section label{display:block;font-size:0.8125rem;font-weight:600;line-height:1.45}
.sd-section input[type="range"]{display:block;width:100%;margin-top:14px;accent-color:#246f70}
.sd-section input[type="color"]{display:block;width:100%;height:43px;margin-top:8px;padding:3px;border:1px solid #cbd8d4;border-radius:8px;background:#fff;cursor:pointer}
.sd-inkrow{display:grid;grid-template-columns:1fr 1.2fr;gap:20px;align-items:start}
.sd-inkrow output{color:#246f70;font-variant-numeric:tabular-nums}
.sd-secondary{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.sd-secondary button{font-size:0.75rem;padding:8px 12px}
.sd-paper{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.sd-paper button{font-size:0.8125rem}
.sd-text-panel{margin:0;padding:0 0 0 32px;border:0;border-left:1px solid #e0e7e4;min-width:0}
.sd-text-panel h3{font-size:1.4375rem;margin-bottom:10px}
.sd-textrow{display:grid;grid-template-columns:1fr 100px;gap:14px;align-items:end;margin-top:12px}
.sd-textrow button{height:46px}
.sd-fontrow{margin-top:12px}
#sd-font option[value="sans"]{font-family:Montserrat,"Segoe UI",sans-serif}
#sd-font option[value="serif"]{font-family:"Playfair Display",Georgia,serif}
#sd-font option[value="script"]{font-family:"Dancing Script","Segoe Script",cursive}
#sd-font option[value="hand"]{font-family:Pacifico,"Brush Script MT",cursive}
#sd-font option[value="block"]{font-family:"Bebas Neue",Impact,sans-serif}
.sd-hint{font-size:0.75rem;color:#58716b;line-height:1.7;margin-top:14px}
.sd-text-panel .sd-hint{margin-top:12px}
.sd-downloads{display:flex;gap:8px;flex-wrap:wrap;grid-column:1/-1;justify-content:flex-start;margin:22px 0 0;padding-top:20px;border-top:1px solid #e0e7e4}
.sd-downloads button{font-size:0.75rem}
.sd-order{margin-top:42px}
.sd-order-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px}
.sd-section fieldset{border:0;padding:0;min-width:0}
.sd-section legend{font-size:1.625rem;font-weight:600}
.sd-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}
.sd-custom-size{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:14px}
.sd-custom-size[hidden]{display:none}
.sd-privacy{max-width:650px;margin:26px 0 16px}
.sd-section .sd-submit{padding:15px 25px;font-size:1rem}
.sd-visual-action{margin:20px 0 6px}.sd-visual-action .sd-hint{margin-top:10px}.sd-section .sd-visual-action button{padding:14px 22px;font-size:1rem}
.sd-result{margin-top:32px;border:1px solid #8ac0b3;border-radius:16px;padding:24px;background:#e6f1ec}
.sd-result[hidden]{display:none}.sd-result h3{font-size:1.875rem;margin-bottom:10px}.sd-result p{max-width:750px;font-size:0.875rem}
.sd-section .sd-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;min-height:0!important}
.sd-section input:not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),.sd-section select,.sd-section textarea:not(.sd-sr-only){display:block;width:100%;min-height:44px;border:1px solid #cbd8d4;border-radius:8px;padding:10px 12px;background:#fff;color:#26393c;margin-top:7px;font-size:0.9375rem}
.sd-err{color:#9c3753;font-weight:700;margin:0 0 14px;font-size:0.875rem}.sd-err[hidden]{display:none}
.sd-section input[aria-invalid="true"],.sd-section textarea[aria-invalid="true"],.sd-section select[aria-invalid="true"]{border-color:#9c3753}
#sd-thanks{outline:none}#sd-thanks dl{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:6px 16px;margin:18px 0 8px;font-size:0.9375rem}#sd-thanks dt{opacity:.75}#sd-thanks dd{margin:0;overflow-wrap:anywhere;white-space:pre-line}#sd-thanks .sd-again{margin-top:16px}

/* 3D preview modal */
.sd-mockup{position:fixed;inset:0;margin:auto;width:min(980px,94vw);max-width:980px;max-height:94dvh;border:1px solid #cbdad3;border-radius:24px;padding:0;color:#26393c;background:#f4f3ef;box-shadow:0 30px 100px #0005;overflow:auto}
.sd-mockup::backdrop{background:#132a2cd9;backdrop-filter:blur(6px)}
.sd-mockup:not([open]){display:none}
.sd-mockup-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 30px;border-bottom:1px solid #dae3de}
.sd-mockup-header h3{font-size:2.375rem;line-height:1.1;margin-top:8px}
.sd-mockup-header .sd-eyebrow{font-size:0.625rem}
.sd-mockup-grid{display:grid;grid-template-columns:1.25fr 1fr;min-height:540px}
.sd-mockup-stage{display:flex;align-items:center;justify-content:center;min-width:0;min-height:420px;background:radial-gradient(ellipse at 48% 42%,#fffdf6 0,#e7efea 55%,#d7e4df 100%);border-radius:0 0 0 24px;perspective:900px;touch-action:none;cursor:grab;overflow:hidden}
.sd-mockup-stage.is-dragging{cursor:grabbing}
.sd-scene{width:min(86%,420px);height:min(66dvh,460px);display:flex;align-items:center;justify-content:center;transform-style:preserve-3d}
.sd-rig{position:relative;transform-style:preserve-3d;transform:rotateX(var(--sd-rx,12deg)) rotateY(var(--sd-ry,-18deg));transition:transform .08s linear;max-width:86%;max-height:86%}
.sd-sticker-wrap{position:relative;transform-style:preserve-3d;line-height:0;filter:drop-shadow(0 22px 24px #1a33367a) drop-shadow(0 2px 0 #0001)}
.sd-sticker-wrap img,.sd-sticker-wrap canvas{position:relative;z-index:2;display:block;width:min(380px,72vw);height:auto;max-height:min(56dvh,420px);object-fit:contain;user-select:none;pointer-events:none;transform:translateZ(1px)}
.sd-thickness{position:absolute;inset:0;z-index:0;transform:translateZ(-5px) translateY(4px);background:#c9c3b8;pointer-events:none}
.sd-holo{position:absolute;inset:0;z-index:3;pointer-events:none;mix-blend-mode:overlay;opacity:.58;transform:translateZ(2px);background:
  linear-gradient(var(--sd-holo,125deg),#ff8ad800 0%,#ff8ad8aa 16%,#7af0ff00 32%,#ffe27aaa 48%,#8dffc4aa 64%,#c9a6ffaa 80%,#ff8ad800 100%),
  conic-gradient(from var(--sd-holo,125deg),#ff7ad2, #ffe27a, #7dffc0, #7ad4ff, #c9a6ff, #ff7ad2);
  background-size:220% 220%, 100% 100%;
  background-position:var(--sd-holo-pos,20% 40%), center;
}
.sd-holo[hidden],.sd-thickness[hidden]{display:none}
.sd-peel{position:absolute;top:0;right:0;width:18%;max-width:58px;aspect-ratio:1;pointer-events:none;background:linear-gradient(135deg,#fff6 0 42%,#eee 42% 58%,#d8d4cc 58%);clip-path:polygon(28% 0,100% 0,100% 72%);filter:drop-shadow(-1px 2px 2px #0003);transform:translateZ(1px)}
.sd-mockup-info{padding:30px;align-self:center}
.sd-mockup-specs{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:16px 0}
.sd-mockup-specs dt{font-size:0.6875rem;color:#617871;margin-bottom:6px}
.sd-mockup-specs dd{font-size:1.1875rem;font-weight:600;line-height:1.3}
.sd-mockup-message{font-size:0.875rem;line-height:1.6;color:#4e6c64;margin:20px 0 26px}
.sd-rotation{padding:20px 0;border-block:1px solid #d6e2db}
.sd-rotation label{font-size:0.875rem}
.sd-rotation output{float:right;color:#246f70;font-variant-numeric:tabular-nums}
.sd-rotation input{accent-color:#246f70;width:100%;display:block;margin:18px 0 14px;min-height:24px}
.sd-rotation button{margin-top:16px}
.sd-mockup-disclaimer{font-size:0.6875rem;line-height:1.7;color:#61756d;margin-top:24px}
.sd-mockup #sd-close-mockup{font-size:0.75rem;white-space:nowrap}

@media(min-width:1500px){.sd-controls{padding:32px 38px}}
@media(max-width:850px){
  .sd-section{padding:48px 20px}
  .sd-stage{padding:20px 18px}
  .sd-stage-top{margin-bottom:12px}
  .sd-controls{padding:22px;gap:0 24px}
  .sd-text-panel{padding-left:24px}
  .sd-tools button{flex-basis:90px}
  .sd-order-grid{grid-template-columns:minmax(0,1fr);gap:26px}
}
@media(max-width:650px){
  .sd-controls{grid-template-columns:minmax(0,1fr);padding:20px 16px;gap:22px}
  .sd-text-panel{padding:20px 0 0;border:0;border-top:1px solid #e0e7e4}
  .sd-downloads{margin:0}
  .sd-board{grid-template-columns:28px 1fr;grid-template-rows:28px 1fr}
  #sd-ruler-x{height:28px}#sd-ruler-y{width:28px}
  .sd-stage{padding:18px 12px}
  .sd-view{font-size:0.625rem}
  .sd-face{font-size:0.75rem}
  .sd-inkrow{gap:20px}
  .sd-mode{min-height:0}
  .sd-size-readout{font-size:0.9375rem;padding:10px 12px}
  .sd-mockup{width:94vw;max-height:94dvh;border-radius:18px}
  .sd-mockup-header{padding:18px;gap:10px}
  .sd-mockup-header h3{font-size:1.8125rem}
  .sd-mockup-header .sd-eyebrow{font-size:0.5rem;letter-spacing:.1em}
  .sd-mockup-grid{grid-template-columns:minmax(0,1fr)}
  .sd-mockup-stage{border-radius:0;min-height:320px}
  .sd-mockup-info{padding:22px}
  .sd-mockup-message{margin:14px 0 18px}
  .sd-mockup-specs{margin-top:12px}
  .sd-rotation{padding-top:16px}
  .sd-mockup-disclaimer{margin-top:16px}
}
@media(max-width:420px){
  .sd-section{padding:40px 12px}
  .sd-controls{padding:18px 14px}
  .sd-stage{padding:18px 14px}
  .sd-tools button{padding:10px 6px;font-size:0.75rem}
  .sd-fields,.sd-custom-size{gap:12px}
  .sd-intro h2{font-size:2.375rem}
  .sd-lead{font-size:1rem}
  .sd-section select{font-size:0.8125rem}
  .sd-textrow{grid-template-columns:1fr 88px}
  .sd-paper{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
  .sd-section *,.sd-rig{transition:none!important}
}
@media(max-width:600px){#sd-thanks dl{grid-template-columns:minmax(0,1fr)}#sd-thanks dd{margin-bottom:6px}}

.sd-upload{margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid #e0e7e4}
.sd-upload #sd-upload{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}
.sd-upload #sd-upload-btn{width:100%}
.sd-upload .sd-hint{margin-top:10px}
#sd-img-tools{margin-top:14px}
#sd-img-tools[hidden]{display:none}
#sd-img-tools output{color:#246f70;font-variant-numeric:tabular-nums;font-weight:700}
#sd-canvas[data-cursor="resize"]{cursor:nwse-resize}
#sd-canvas[data-cursor="move"]{cursor:grab}

/* Estimated prices card at the end of #stickers. Numbers live in the HTML and sticker-strings.js. */
.sd-pricing{margin:42px 0 0;padding:28px 32px;background:#fff;border:1px solid #cfdbd7;border-radius:24px;box-shadow:0 20px 65px #1d484c0b;max-width:100%}
.sd-pricing h3{font-size:clamp(1.625rem,3vw,2.125rem);line-height:1.15;letter-spacing:-.02em;margin:0 0 20px;color:#26393c}
.sd-price-table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.5}
.sd-price-table th,.sd-price-table td{text-align:left;vertical-align:top;padding:14px 16px 14px 0;border-bottom:1px solid #e0e7e4}
.sd-price-table tr:last-child th,.sd-price-table tr:last-child td{border-bottom:0;padding-bottom:6px}
.sd-price-table th{font-weight:600;color:#26393c;width:46%;padding-right:24px}
.sd-price-table td{font-weight:600;color:#185355}
.sd-pricing-note{margin:18px 0 0;font-size:0.875rem;line-height:1.6;color:#4e6c64;max-width:720px}
.sd-pricing-privacy{margin:10px 0 0;font-weight:600}
@media(max-width:650px){
  .sd-pricing{padding:22px 18px;margin-top:32px;border-radius:18px}
  .sd-pricing h3{font-size:1.625rem;margin-bottom:14px}
  .sd-price-table,.sd-price-table tbody,.sd-price-table tr,.sd-price-table th,.sd-price-table td{display:block;width:100%}
  .sd-price-table th{padding:14px 0 2px;border:0;width:auto}
  .sd-price-table td{padding:0 0 14px;border-bottom:1px solid #e0e7e4}
  .sd-price-table tr:first-child th{padding-top:0}
  .sd-price-table tr:last-child td{border-bottom:0;padding-bottom:0}
  .sd-price-table td{font-size:0.9375rem}
}
@media(max-width:420px){
  .sd-pricing{padding:18px 14px}
  .sd-price-table{font-size:0.9375rem}
}

/* Live estimated price inside The sticker details. Tier numbers live in STICKER_PRICE_TIERS. */
.sd-estimate{margin:18px 0 4px;padding:16px 18px;background:#f4f8f7;border:1px solid #cfdbd7;border-radius:16px}
.sd-estimate-line{margin:0;font-size:1.0625rem;line-height:1.45;font-weight:700;color:#26393c}
#sd-estimate-value{color:#185355;font-variant-numeric:tabular-nums}
.sd-estimate-extra{margin:8px 0 0;font-size:0.8125rem;line-height:1.55;color:#4e6c64}
.sd-estimate-extra[hidden]{display:none}
.sd-estimate-foot{margin:10px 0 0;font-size:0.75rem;line-height:1.65;color:#58716b}
@media(max-width:650px){
  .sd-estimate{padding:14px;border-radius:14px}
  .sd-estimate-line{font-size:1rem}
}

/* White border (contour offset) slider in the design tools. */
.sd-border{margin-top:16px;padding-top:14px;border-top:1px solid #e0e7e4}
.sd-border output{color:#246f70;font-variant-numeric:tabular-nums;font-weight:700;margin-left:.35em}
.sd-border .sd-hint{margin-top:8px}
.sd-holo,.sd-thickness{-webkit-mask-source-type:alpha;mask-mode:alpha}

/* Fill to full size with white (Nov 13 2026) */
.sd-fill{margin-top:16px}.sd-fill button{width:100%}.sd-fill-note{color:#185355;font-weight:600}.sd-border.is-filled > label{opacity:.5}
/* Rulers must not size the board: on high-DPI phones the ruler bitmap (css size x devicePixelRatio) was stretching the board taller than the sheet (Nov 13 2026) */
#sd-ruler-y{height:0!important;min-height:100%}#sd-ruler-x{width:0!important;min-width:100%}

/* Nov 13 2026: center the selected text/image (left column, under Clear drawing) + corner resize cursor */
#sd-canvas[data-cursor="resize-ne"]{cursor:nesw-resize}
.sd-center{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.sd-center button{font-size:0.75rem;padding:8px 10px;display:inline-flex;align-items:center;gap:6px}
.sd-center svg{width:18px;height:18px;flex:none}
.sd-center button:disabled{opacity:.45;cursor:not-allowed}

/* Nov 13 2026: edit placed text on the canvas */
.ce-inplace,textarea.ce-inplace{position:absolute!important;z-index:5;margin:0!important;padding:0!important;border:2px dashed #157d80!important;border-radius:4px!important;background:rgba(255,255,255,.88)!important;text-align:center;white-space:pre;overflow:hidden;resize:none;outline:none;box-shadow:0 0 0 3px rgba(21,125,128,.18);min-height:0!important;max-width:none!important;display:block!important;box-sizing:border-box!important}

/* Nov 14 2026: single Preview button */
.sd-preview-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}.sd-preview-row .sd-hint{margin:0;flex:1 1 220px}

/* Nov 14 2026: curved lettering controls */
.ce-curve-row{margin-top:10px}.ce-curve-row label{display:flex;align-items:center;gap:6px;font-weight:600}.ce-curve-row label svg,.ce-curve-float svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;flex:none}.ce-curve-row output{margin-left:auto;font-weight:500;color:#157d80}.ce-curve-row input[type=range]{width:100%;accent-color:#157d80}
.ce-curve-float{position:absolute;z-index:6;display:flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid #157d80;border-radius:999px;background:#fff;color:#26393c;box-shadow:0 4px 14px rgba(20,50,50,.18);font:600 0.75rem/1 Outfit,system-ui,sans-serif;line-height:1}.ce-curve-float[hidden]{display:none}.ce-curve-float input[type=range]{width:110px;min-height:0;margin:0;padding:0;border:0;accent-color:#157d80}.ce-curve-float output{min-width:4.6em;text-align:right;white-space:nowrap}
/* Nov 14 2026: text rotation controls + on-canvas rotate cursor */
.ce-rotate-row{margin-top:10px}.ce-rotate-row label{display:flex;align-items:center;gap:6px;font-weight:600}.ce-rotate-row label svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}.ce-rotate-row output{margin-left:auto;font-weight:500;color:#157d80}.ce-rotate-row input[type=range]{width:100%;accent-color:#157d80}.ce-rotate-btns{display:flex;gap:6px;margin-top:6px}.ce-rotate-btns button{flex:1;min-height:36px;padding:4px 8px;border:1px solid #cbd8d4;border-radius:8px;background:#fff;color:#26393c;font:600 0.8125rem/1 Outfit,system-ui,sans-serif;cursor:pointer}.ce-rotate-btns button:hover{border-color:#157d80;color:#157d80}.ce-rotate-btns button:focus-visible{outline:2px solid #157d80;outline-offset:2px}
#sd-canvas[data-cursor="rotate"]{cursor:grab}

