.fg-shell{max-width:1240px;margin:0 auto;padding:32px 24px 54px;color:#4b2d46}.fg-intro{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:26px}.fg-intro .eyebrow{font:700 11px system-ui;letter-spacing:.16em;color:#9d6a35}.fg-intro h1{font:500 clamp(32px,4.5vw,54px)/1.05 Georgia,serif;letter-spacing:-.04em;margin:12px 0}.fg-intro p{font-size:14px;line-height:1.7;max-width:47ch;color:#77616e;margin:0}.fg-back{font:650 13px system-ui;color:#6b3c5d;text-decoration:none;white-space:nowrap;padding:12px 0}.fg-workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:24px;align-items:start}.fg-controls{background:#fffdf8;border:1px solid #e3d7db;border-radius:20px;padding:20px;display:grid;gap:22px}.fg-section{border:0;padding:0;margin:0;min-width:0}.fg-section legend{font:700 13px system-ui;letter-spacing:.01em;margin-bottom:13px}.fg-section legend b{color:#b08a52;font-variant-numeric:tabular-nums;margin-right:8px}.fg-themes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.fg-theme{padding:5px 3px 7px;display:grid;gap:6px;justify-items:center;border:1px solid #e1d2d9;border-radius:12px;background:#fffdf9;color:#59364e;min-height:78px;font:650 10px system-ui;cursor:pointer}.fg-theme i{display:block;width:100%;height:38px;border-radius:8px;background:linear-gradient(135deg,var(--fg-a),var(--fg-b));position:relative;overflow:hidden}.fg-theme i:after{content:'✧';color:var(--fg-c);position:absolute;inset:0;text-align:center;font:34px Georgia}.fg-theme[aria-pressed=true]{outline:2px solid #6a3a59;outline-offset:2px;background:#f3e9ef}.fg-field{display:grid;gap:7px;margin:12px 0 0;font:600 12px/1.4 system-ui}.fg-field input,.fg-field textarea,.fg-field select{width:100%;font:400 14px/1.5 system-ui;background:#fff;color:#513249;border:1px solid #d9c7d1;border-radius:9px;padding:10px 12px;min-height:44px;box-sizing:border-box}.fg-field textarea{resize:vertical;min-height:88px}.fg-field input[type=range]{padding:4px;accent-color:#633853;border:0;background:transparent}.fg-section .fg-preset{margin-bottom:15px}.fg-stickers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.fg-stickers button{min-height:64px;display:grid;justify-items:center;align-content:center;gap:6px;padding:7px 1px;border-radius:10px;border:1px solid #deccd5;background:#fbf4ed;color:#6b3f5b;font:600 10px system-ui;cursor:pointer}.fg-stickers svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.fg-slider-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fg-hint{font:400 11px/1.6 system-ui!important;color:#7f6975!important;margin:9px 0!important}.fg-remove{padding:8px 12px;min-height:40px;background:#fff;color:#7a4560;border:1px solid #d9c7d0;border-radius:8px;font:600 12px system-ui;cursor:pointer}.fg-preview-area{position:sticky;top:104px;min-width:0}.fg-preview-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;font:600 11px system-ui;color:#8b7180;letter-spacing:.08em;text-transform:uppercase}.fg-preview-meta span:first-child{display:flex;align-items:center;gap:7px}.fg-preview-meta span:first-child:before{content:'';display:block;width:7px;height:7px;border-radius:50%;background:#789d78}.fg-preview{padding:20px;border:1px solid #e5dadd;background:#eee7e3;border-radius:20px;display:flex;align-items:center;justify-content:center;min-height:340px}.fg-preview canvas{display:block;max-width:100%;max-height:min(56vh,calc(100dvh - 245px));width:auto;height:auto;box-shadow:0 12px 36px #30203424;border-radius:4px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}.fg-preview canvas:active{cursor:grabbing}.fg-toolbar{display:flex;gap:10px;margin:16px 0 0;align-items:center}.fg-download{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;background:#5b334e;color:white;border:1px solid #5b334e;border-radius:11px;padding:12px 20px;font:700 14px system-ui;cursor:pointer;flex:1}.fg-download svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.fg-reset{background:#fffdf9;border:1px solid #d5c1cd;color:#694359;border-radius:11px;padding:12px 16px;min-height:48px;font:600 12px system-ui;cursor:pointer}.fg-status{font:500 12px/1.6 system-ui;color:#526851;min-height:20px;margin:12px 0 0}.fg-privacy{font:400 11px/1.7 system-ui;color:#8b7180;max-width:65ch}.fg-shell button:disabled{opacity:.42;cursor:default}.fg-shell :focus-visible{outline:3px solid #ad853e;outline-offset:3px}.fg-reset-dialog{padding:26px;border:1px solid #ddcbd4;border-radius:18px;background:#fffaf3;color:#513249;max-width:390px;width:calc(100% - 40px)}.fg-reset-dialog::backdrop{background:#2d142b88}.fg-reset-dialog h2{font:500 28px Georgia;margin:0 0 12px}.fg-reset-dialog p{font:14px/1.6 system-ui}.fg-reset-dialog div{display:flex;gap:10px;margin-top:20px}.fg-reset-dialog button{padding:12px;min-height:44px;border:1px solid #bfa1b2;border-radius:9px;color:#59334c;background:#fff}.fg-reset-dialog #fg-reset-confirm{background:#5b334e;color:white}.fg-section .fg-counter{font:500 11px system-ui;color:#8b7180;float:right}.fg-section .fg-secondary{font:400 11px/1.5 system-ui;margin:10px 0 0;color:#886d7c}@media(max-width:900px){.fg-shell{padding:24px 18px 36px}.fg-workspace{grid-template-columns:280px minmax(0,1fr);gap:16px}.fg-controls{padding:16px}.fg-preview{padding:12px;min-height:250px}.fg-preview canvas{max-height:65vh}.fg-intro p{font-size:13px}}@media(max-width:650px){.fg-shell{padding:22px 14px 30px}.fg-intro{display:block;margin-bottom:20px}.fg-intro h1{font-size:38px}.fg-back{display:inline-block;margin-top:8px}.fg-workspace{display:flex;flex-direction:column;gap:18px}.fg-preview-area{position:static;order:0;width:100%}.fg-controls{order:1;width:100%;box-sizing:border-box;padding:18px;gap:22px}.fg-preview{min-height:0;padding:10px;border-radius:14px}.fg-preview canvas{width:auto;max-height:55vh;max-width:100%}.fg-toolbar{margin-top:12px;gap:7px}.fg-download{font-size:13px;padding:10px}.fg-reset{font-size:11px;padding:10px}.fg-privacy{font-size:10px}.fg-theme{font-size:11px;min-height:78px}.fg-theme i{height:42px}.fg-stickers button{min-height:70px;font-size:11px}.fg-field textarea{min-height:76px}.fg-preview-meta{font-size:10px}.fg-status{font-size:11px}.fg-section legend{font-size:14px}.fg-intro p{font-size:13px}}@media(prefers-reduced-motion:no-preference){.fg-theme,.fg-stickers button,.fg-download{transition:background .16s,box-shadow .16s,transform .16s}.fg-theme:hover,.fg-stickers button:hover{transform:translateY(-2px)}.fg-download:hover{background:#733e63}}@media(prefers-reduced-motion:reduce){.fg-shell *{scroll-behavior:auto!important;transition:none!important}}

.fg-jump{display:none}.fg-controls{scroll-margin-top:100px}@media(max-width:650px){.fg-jump{display:inline-flex;align-items:center;min-height:32px;color:#65415b;text-decoration:underline;letter-spacing:0;text-transform:none}.fg-preview-meta>span:nth-child(2){display:none}}

/* Image-led templates, still light and approachable around the canvas. */
.fg-workspace{grid-template-columns:350px minmax(0,1fr)}.fg-shell{max-width:1320px}.fg-themes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fg-theme{font-size:12px;min-height:118px;gap:8px;padding:7px 7px 11px}.fg-theme i{height:82px;background-size:cover!important;background-position:center!important}.fg-theme i:after{display:none}.fg-theme[data-fg-theme=plum] i{background-image:url('/assets/greeting-v2/deepavali-jewel-thumb.webp')!important}.fg-theme[data-fg-theme=cream] i{background-image:url('/assets/greeting-v2/deepavali-lotus-thumb.webp')!important}.fg-preview{padding:12px;background:linear-gradient(135deg,#e8ddd1,#f6eee4);border-radius:14px}.fg-preview canvas{max-height:min(68vh,calc(100dvh - 215px));box-shadow:0 14px 40px #30203430}.fg-photo-note{font:11px/1.6 system-ui;color:#826977;margin:8px 0}.fg-photo-input{font-size:12px!important;padding:9px!important;overflow:hidden}.fg-photo-input::file-selector-button{background:#f4e8ed;color:#613650;border:0;border-radius:6px;padding:8px;margin-right:7px;font:600 11px system-ui;cursor:pointer}.fg-photo-remove{margin-top:8px}.fg-intro p{max-width:61ch}@media(max-width:900px){.fg-workspace{grid-template-columns:280px minmax(0,1fr)}}@media(max-width:650px){.fg-preview canvas{max-height:58vh}.fg-theme i{height:95px}.fg-photo-input{max-width:100%}}

.fg-branding{display:flex;gap:9px;align-items:center;font:12px/1.5 system-ui;margin-top:12px}.fg-branding input{accent-color:#60374f;width:18px;height:18px}.fg-share{min-height:48px;border:1px solid #69405b;border-radius:11px;background:#fffaf2;color:#60374f;font:650 13px system-ui;padding:10px 17px}.fg-theme[data-fg-theme=sandakan] i{background-image:url('/assets/greeting-v2/sandakan-thumb.webp')!important}.fg-theme[data-fg-theme=sabah] i{background-image:url('/assets/greeting-v2/sabah-thumb.webp')!important}.fg-theme[data-fg-theme=malaysia] i{background-image:url('/assets/greeting-v2/malaysia-thumb.webp')!important}.fg-theme[data-fg-theme=peacock] i{background-image:url('/assets/greeting-v2/peacock-thumb.webp')!important}.fg-templates-note{font:11px/1.6 system-ui;color:#806674;margin:10px 0 0}.fg-toolbar{flex-wrap:wrap}.fg-reset{flex-basis:auto}@media(max-width:650px){.fg-share{min-height:46px;padding:10px 12px}.fg-reset{flex:0 0 100%}.fg-download,.fg-share{flex:1}}
