.coaster-backdrop{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;background:#2b2925a6;backdrop-filter:blur(5px);color:#39322c;font-family:inherit}.coaster-backdrop *{box-sizing:border-box}.coaster-dialog{display:flex;flex-direction:column;width:min(1020px,100%);max-height:calc(100dvh - 40px);background:#fffdf9;border-radius:20px;box-shadow:0 20px 90px #18150f40;overflow:hidden}.coaster-dialog header{display:flex;align-items:center;justify-content:space-between;padding:22px 30px;border-bottom:1px solid #e9e0d5;gap:20px}.coaster-dialog h1{font-size:25px;margin:4px 0 6px;line-height:1.2}.coaster-dialog header p{font-size:12px;margin:0;color:#756757}.coaster-step-count,.coaster-eyebrow{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#986247}.coaster-dialog button{font:inherit;border:1px solid #dfd4c6;border-radius:10px;background:#fffdf9;color:#55483d;padding:11px 15px;cursor:pointer;line-height:1.4}.coaster-dialog button:focus-visible,.coaster-dialog input:focus-visible,.coaster-dialog canvas:focus-visible{outline:2px solid #b86b51;outline-offset:3px}.coaster-dialog button[disabled]{opacity:.5;cursor:wait}.coaster-dialog .coaster-close{padding:8px;display:grid;place-items:center;border:0;background:#f1e9df;flex-shrink:0}.coaster-dialog button svg{display:block;flex-shrink:0}.coaster-steps{display:flex;justify-content:center;gap:30px;padding:15px 20px;border-bottom:1px solid #eee6dc;font-size:11px;color:#8a7d70}.coaster-steps span{display:flex;gap:8px;align-items:center}.coaster-steps b{display:grid;place-items:center;width:22px;height:22px;background:#f0e9df;border-radius:50%;font-size:10px;font-weight:500}.coaster-steps .current{color:#85513c}.coaster-steps .current b{background:#b86b51;color:white}.coaster-stage{overflow:auto;padding:28px 30px;min-height:0}.coaster-dialog h2{font-size:27px;margin:0 0 16px;line-height:1.2}.coaster-intro{max-width:520px;margin:24px auto 40px;text-align:center}.coaster-intro>p{font-size:14px;line-height:1.7;color:#756757}.coaster-dialog .coaster-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:180px;width:100%;margin:26px 0 12px;border:1.5px dashed #c4a98f;background:#f7f1e8}.coaster-upload strong{font-size:16px}.coaster-upload span{font-size:11px}.coaster-upload.is-drag-over{background:#efe5db;border-color:#b86b51}.coaster-dialog .coaster-note{font-size:11px;line-height:1.6;color:#897b6b}.coaster-workspace{display:grid;grid-template-columns:1fr 380px;gap:36px;align-items:start}.coaster-preview{width:min(100%,360px);margin:0 auto}.coaster-canvas{position:relative;box-shadow:0 10px 20px #39322c18;overflow:hidden;border-radius:18px}.coaster-canvas canvas{display:block;width:100%;height:auto;touch-action:none;cursor:grab}.coaster-canvas:active canvas{cursor:grabbing}.coaster-safe{position:absolute;inset:7.5%;border:1px dashed #ffffffcc;border-radius:10px;outline:1px dashed #34302d66;pointer-events:none}.coaster-preview-caption{display:block;text-align:center;font-size:10px;line-height:1.5;color:#8a7d70;margin-top:14px}.coaster-quality{text-align:center;font-size:11px;color:#914128;margin:12px 0}.coaster-design-view>.coaster-note{text-align:center}.coaster-controls h2{font-size:24px}.coaster-controls fieldset{border:0;padding:0;margin:0 0 17px;min-width:0}.coaster-controls legend,.coaster-controls>label{font-size:12px;color:#665749;margin-bottom:9px;display:block}.coaster-layouts,.coaster-fonts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.coaster-dialog .coaster-layouts button{font-size:10px;padding:9px 4px;display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0}.coaster-layout-icon{display:block;width:40px;height:40px;background:#d8c7b8;position:relative;border:3px solid #f2e9da}.coaster-layout-icon.full{background:linear-gradient(150deg,#d5e4e6 45%,#b58d73 46%);border:0}.coaster-layout-icon.signature:before{content:'';position:absolute;inset:3px 3px 8px;border-radius:50%;background:#b58d73}.coaster-layout-icon.arch:before{content:'';position:absolute;inset:2px 3px 8px;border-radius:18px 18px 1px 1px;background:#b58d73}.coaster-dialog button[aria-pressed=true]{border-color:#b86b51;background:#f5ece2;color:#754831;box-shadow:inset 0 0 0 .5px #b86b51}.coaster-palettes{display:flex;flex-wrap:wrap;gap:6px}.coaster-dialog .coaster-palettes button{display:flex;align-items:center;gap:6px;font-size:10px;padding:8px}.coaster-palettes button span{width:16px;height:16px;border-radius:50%;background:linear-gradient(120deg,var(--paper) 33%,var(--ink) 34% 66%,var(--gold) 67%);border:1px solid #0001}.coaster-name-label span{font-size:10px;color:#958777}.coaster-name-label input{display:block;width:100%;margin-top:8px;padding:10px 12px;border:1px solid #d9cfc0;border-radius:9px;background:#fffdf9;font:inherit;color:#39322c}.coaster-dialog .coaster-fonts button{font-size:10px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;overflow:hidden}.coaster-fonts button span{font-size:18px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.coaster-zoom{display:block;width:100%;margin-top:9px;accent-color:#b86b51}.coaster-photo-actions{display:flex;gap:8px}.coaster-dialog .coaster-photo-actions button{padding:8px 12px;font-size:11px}.coaster-review{text-align:center;max-width:550px;margin:0 auto}.coaster-review .coaster-preview{width:min(100%,280px)}.coaster-review>p{font-size:13px}.coaster-status{padding:0 30px;font-size:12px;color:#a34f3f;min-height:20px;flex-shrink:0}.coaster-dialog footer{display:flex;justify-content:space-between;gap:14px;padding:18px 30px;border-top:1px solid #e9e0d5;flex-shrink:0}.coaster-dialog footer button{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px}.coaster-dialog footer button[hidden]{display:none}.coaster-dialog .coaster-next{background:#b86b51;color:#fffdf9;border-color:#b86b51;margin-left:auto}.coaster-intro .coaster-preview{width:200px}.coaster-controls input[type=range]{padding:0}
@media(max-width:650px){.coaster-backdrop{padding:8px}.coaster-dialog{max-height:calc(100dvh - 16px);border-radius:14px}.coaster-dialog header{padding:15px 18px}.coaster-dialog h1{font-size:21px}.coaster-steps{gap:15px;padding:12px;font-size:10px}.coaster-stage{padding:18px}.coaster-workspace{display:flex;flex-direction:column;gap:20px}.coaster-design-view,.coaster-controls{width:100%}.coaster-design-view .coaster-preview{width:min(100%,230px)}.coaster-design-view>.coaster-note{display:none}.coaster-controls h2{font-size:21px;margin-bottom:15px}.coaster-preview-caption{font-size:9px;margin-top:9px}.coaster-quality{font-size:10px;margin:8px 0}.coaster-dialog footer{padding:12px 18px}.coaster-status{padding:0 18px;font-size:11px}.coaster-intro{margin:12px auto}.coaster-dialog h2{font-size:23px}.coaster-intro>p{font-size:13px}.coaster-review .coaster-preview{width:min(100%,240px)}}

/* Match the established mug wizard shell and controls. */
.coaster-backdrop{padding:24px;background:#30282075}
.coaster-dialog{width:min(900px,100%);max-height:min(900px,calc(100dvh - 48px));background:#faf8f4;border-radius:24px;box-shadow:0 20px 80px #21190b30}
.coaster-dialog.is-intro-dialog{width:min(720px,100%)}
.coaster-dialog:not(.is-intro-dialog){height:min(780px,calc(100dvh - 48px))}
.coaster-dialog header{padding:16px 24px 10px;align-items:center;border:0;flex-shrink:0}
.coaster-dialog header>div{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.coaster-dialog h1{font:500 23px Georgia,serif;margin:0}
.coaster-dialog header p{font-size:13px;color:#786d62}
.coaster-step-count,.coaster-intro>.coaster-eyebrow{display:none}
.coaster-dialog button{border-color:#ded8cd;border-radius:12px;padding:12px 18px;color:#39322c}
.coaster-dialog .coaster-close{padding:0;width:36px;height:36px;border:1px solid #ded8cd;border-radius:50%;background:transparent}
.coaster-steps{justify-content:flex-start;gap:16px;padding:8px 24px 12px;border-bottom:1px solid #e8e2d8;flex-shrink:0}
.coaster-steps>span{gap:7px;font-size:11px;color:#8b8176}
.coaster-steps b{width:21px;height:21px;border:1px solid #d7cfc1;background:transparent;font-size:11px}
.coaster-steps .current{color:#804c39}.coaster-steps .current b{border-color:#b86b51}
.coaster-steps .complete b{background:#f3ece3;color:#914128;border-color:#d8c7b8}
.coaster-stage{flex:1;padding:26px 30px;overscroll-behavior:contain}
.coaster-stage.is-intro{padding:28px 36px}
.coaster-intro{max-width:480px;margin:0 auto;text-align:center}
.coaster-dialog h2{font:500 29px Georgia,serif;letter-spacing:-.025em;margin:5px 0 10px}
.coaster-intro>h2{font-size:28px;margin:0 0 10px}
.coaster-intro>p:not(.coaster-note):not(.coaster-upload-included){max-width:440px;margin:0 auto 20px;font-size:14px;line-height:1.6;color:#796f63}
.coaster-dialog .coaster-upload{min-height:160px;gap:8px;padding:20px;margin:0 auto;border:1px dashed #b8a993;border-radius:16px;background:#f5f0e6}
.coaster-dialog .coaster-upload .coaster-upload-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fffaf3;color:#a97859;margin-bottom:4px}
.coaster-upload strong{font-size:15px;font-weight:600}.coaster-upload>span:last-child{font-size:13px;color:#756757}
.coaster-intro>.coaster-note{font-size:11px;line-height:1.5;margin:12px 0 0}
.coaster-upload-included{font-size:12px;line-height:1.5;color:#914128;margin:5px 0 0}
.coaster-status{min-height:0;font-size:13px;line-height:1.5;padding:0 30px}.coaster-status:not(:empty){padding-top:10px;padding-bottom:10px}
.coaster-dialog footer{align-items:center;padding:16px 30px;background:#faf8f4;border-color:#e8e2d8;gap:16px}
.coaster-dialog footer button{font-size:13px;line-height:1.5;min-height:42px}
.coaster-dialog footer [data-action=back]{background:transparent;border:0;padding-left:0}
.coaster-dialog .coaster-next{min-width:155px;color:#fff}
.coaster-controls h2{font-size:29px}.coaster-controls fieldset{padding:18px 0;margin:0;border-bottom:1px solid #e5ded3}.coaster-controls legend,.coaster-controls>label{font-size:13px;line-height:1.5;color:#66594d}
.coaster-controls legend{font-weight:600}.coaster-dialog .coaster-layouts button,.coaster-dialog .coaster-palettes button,.coaster-dialog .coaster-fonts button,.coaster-dialog .coaster-photo-actions button{font-size:13px;line-height:1.5}
.coaster-name-label{margin-top:16px}.coaster-name-label input{border-radius:8px;min-height:42px;font-size:13px}.coaster-photo-actions{flex-wrap:wrap}.coaster-dialog .coaster-photo-actions button{min-height:40px;padding:9px 12px}
@media(max-width:600px){.coaster-backdrop{padding:0;align-items:flex-end}.coaster-dialog{width:100%;max-height:calc(100dvh - 12px);border-radius:20px 20px 0 0}.coaster-dialog:not(.is-intro-dialog){height:calc(100dvh - 12px)}.coaster-dialog header{padding:14px 16px 8px}.coaster-dialog header>div{display:block}.coaster-dialog h1{font-size:21px}.coaster-dialog header p{font-size:11px;margin-top:4px}.coaster-steps{padding:6px 16px 10px;gap:13px;justify-content:space-between}.coaster-steps>span>span{display:none}.coaster-steps .current>span{display:inline}.coaster-stage{padding:23px 20px}.coaster-stage.is-intro{padding:24px 20px}.coaster-intro>h2{font-size:25px}.coaster-dialog .coaster-upload{min-height:150px}.coaster-dialog footer{padding:14px 20px max(16px,env(safe-area-inset-bottom))}.coaster-dialog .coaster-next{flex:1}.coaster-status{padding-left:20px;padding-right:20px}}

.coaster-text-colour-label{display:flex!important;align-items:center;justify-content:space-between;margin:16px 0;padding:16px 0;border-bottom:1px solid #e5ded3}.coaster-text-colour{width:48px;height:40px;padding:4px;border:1px solid #ded8cd;border-radius:8px;background:#fffdf9;cursor:pointer}

.coaster-text-colours{display:flex;flex-wrap:wrap;gap:8px}.coaster-dialog .coaster-text-colours button{display:flex;align-items:center;gap:7px;min-height:40px;padding:9px 12px;font-size:13px}.coaster-text-colours button span{width:18px;height:18px;border:1px solid #cabca8;border-radius:50%;flex-shrink:0}

.coaster-text-size{display:block;width:100%;margin-top:12px;accent-color:#b86b51;padding:0}

/* Once a photo is chosen, replacement is a secondary action. */
.coaster-intro.has-photo .coaster-preview{width:min(100%,220px);margin:18px auto 0}
.coaster-intro.has-photo .coaster-preview-caption{margin:10px auto 18px;max-width:240px;line-height:1.5}
.coaster-dialog .coaster-intro.has-photo .coaster-upload{width:auto;min-height:42px;display:inline-flex;flex-direction:row;gap:8px;margin:0 auto;padding:10px 16px;border:1px solid #ded8cd;background:#fffdf9;border-radius:12px}
.coaster-dialog .coaster-intro.has-photo .coaster-upload .coaster-upload-icon{width:20px;height:20px;margin:0;background:transparent;border-radius:0}
.coaster-intro.has-photo .coaster-upload-icon svg{width:20px;height:20px}
.coaster-intro.has-photo .coaster-upload>span:last-child,.coaster-intro.has-photo>.coaster-note,.coaster-intro.has-photo>.coaster-upload-included{display:none}
.coaster-intro.has-photo .coaster-upload strong{font-size:13px;font-weight:500}
@media(max-width:600px){.coaster-intro.has-photo .coaster-preview{width:min(100%,190px)}}

/* Ordinary section headings avoid native fieldset legend spacing. */
.coaster-controls .coaster-option-section{padding:16px 0;margin:0;border-bottom:1px solid #e5ded3}
.coaster-controls .coaster-option-section:first-of-type{padding-top:0}
.coaster-controls .coaster-option-section h3{font-family:inherit;font-size:13px;font-weight:600;line-height:1.5;letter-spacing:0;color:#66594d;margin:0 0 10px;padding:0}

/* Keep all three journey labels readable on small screens. */
@media (max-width: 600px) {
  .coaster-steps > span > span { display: inline; }
  .coaster-steps { gap: 8px; }
  .coaster-steps > span { font-size: 11px; gap: 5px; }
}

/* Stack the preview before controls rather than squeezing it on tablets. */
@media (min-width: 651px) and (max-width: 850px) {
 .coaster-workspace { display: flex; flex-direction: column; gap: 24px; }
 .coaster-design-view, .coaster-controls { width: 100%; }
 .coaster-design-view .coaster-preview { width: min(100%, 280px); }
}
