:root{--bg:#f7f8fc;--surface:#fff;--surface2:#f0f2f7;--text:#111827;--muted:#667085;--line:#e4e7ec;--primary:#635bff;--primary2:#5147e8;--shadow:0 14px 40px rgba(16,24,40,.08);--radius:22px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}button,input{font:inherit}.topbar{height:70px;background:rgba(255,255,255,.88);backdrop-filter:blur(18px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(20px,calc((100% - 1180px)/2));gap:35px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:9px;font-weight:850;font-size:21px}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:11px;overflow:hidden;background:transparent;}.brand-mark img{ display:block; width:120%; height:120%; object-fit:contain;}.desktop-nav{display:flex;gap:35px;font-size:14px;color:var(--muted);font-weight:650;flex:1}.desktop-nav a:hover,.text-link:hover{color:var(--primary)}

.icon-btn{border:1px solid var(--line);background:var(--surface);border-radius:12px;width:40px;height:40px;cursor:pointer;color:var(--text)}main{max-width:1180px;margin:auto}.page{display:none;padding:40px 20px 70px}.page.active{display:block}.hero{min-height:610px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:30px}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;color:var(--primary)}h1{font-size:clamp(44px,6vw,76px);line-height:.98;margin:12px 0 22px;letter-spacing:-.055em}h1 span{color:var(--primary)}h2{font-size:30px;letter-spacing:-.035em;margin:7px 0 12px}h3{margin:0 0 8px}p{color:var(--muted);line-height:1.65}.hero-copy>p{font-size:18px;max-width:590px}.hero-actions{display:flex;gap:12px;margin:28px 0}.btn{border:0;border-radius:13px;padding:13px 18px;font-weight:800;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:8px}.btn.primary{background:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary2)}.btn.secondary{background:var(--surface);border:1px solid var(--line);color:var(--text)}.trust-row{display:flex;gap:16px;flex-wrap:wrap;color:#667085;font-size:12px}.hero-art{height:520px;position:relative;display:grid;place-items:center}.hero-phone{width:255px;height:475px;border:10px solid #111827;border-radius:42px;background:#fff;box-shadow:0 35px 70px rgba(16,24,40,.18);padding:15px;transform:rotate(5deg);position:relative;z-index:2}.phone-top{height:25px;width:80px;background:#111827;border-radius:20px;margin:auto}.phone-screen{height:395px;border-radius:28px;background:linear-gradient(150deg,#eef0ff,#fff1f7);margin-top:10px;display:grid;place-items:center;overflow:hidden}.mini-photo{font-size:130px}.mini-bubble{background:#fff;border:7px solid #111827;border-radius:22px;padding:10px 15px;font-weight:950;transform:rotate(-8deg);margin-top:-70px}.sticker-card{position:absolute;background:#fff;border:7px solid #fff;box-shadow:0 15px 35px rgba(16,24,40,.16);border-radius:24px;padding:18px 22px;font-weight:950;font-size:32px;z-index:4}.s1{left:5%;top:16%;transform:rotate(-14deg)}.s2{right:4%;top:20%;transform:rotate(12deg)}.s3{left:9%;bottom:18%;font-size:23px;transform:rotate(9deg)}.s4{right:8%;bottom:14%;transform:rotate(-12deg)}.ad-slot{height:90px;background:var(--surface2);border:1px dashed #cfd4dc;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:10px;color:#98a2b3;font-size:11px}.ad-slot div{font-size:15px}.section{padding:75px 0 0}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.section-head h2{margin-bottom:0}.text-link{color:var(--primary);font-weight:800;font-size:14px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature-card{padding:26px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);position:relative}.feature-icon{font-size:34px}.feature-card p{font-size:14px;margin-bottom:25px}.arrow{font-size:20px;color:var(--primary);position:absolute;right:24px;bottom:22px}.template-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.template-grid.large{grid-template-columns:repeat(4,1fr)}.template-card{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:10px;cursor:pointer;transition:.18s;box-shadow:0 5px 20px rgba(16,24,40,.04)}.template-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#c7c9ff}.template-art{aspect-ratio:1;border-radius:14px;display:grid;place-items:center;position:relative;overflow:hidden}.template-art .art-main{font-weight:950;text-align:center;line-height:1.05;padding:10px;font-size:26px}.template-name{padding:12px 4px 4px;font-size:13px;font-weight:800}.template-cat{padding:0 4px 8px;font-size:11px;color:var(--muted)}.photo-banner{margin-top:80px;border-radius:28px;background:#171b2d;color:#fff;padding:45px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.photo-banner p{color:#b9bfd1}.photo-banner .eyebrow{color:#aeb4ff}.banner-emoji{font-size:110px;transform:rotate(8deg)}.page-head{padding:25px 0 30px}.page-head h1{font-size:50px;margin:9px 0 10px}.page-head p{margin:0}.page-head.center{text-align:center}.search-wrap{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 14px;display:flex;align-items:center;width:min(400px,100%);margin-top:20px}.search-wrap span{font-size:22px;color:#98a2b3}.search-wrap input{border:0;outline:0;background:transparent;width:100%;padding:14px 10px;color:var(--text)}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 13px;color:var(--muted);cursor:pointer;font-size:12px;font-weight:750}.chip.active{background:var(--primary);border-color:var(--primary);color:#fff}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:850px;margin:20px auto}.upload-card{border:2px dashed #cdd2dc;border-radius:26px;background:var(--surface);padding:55px 30px;text-align:center;cursor:pointer;color:var(--text)}.upload-card:hover{border-color:var(--primary);background:#fbfbff}.upload-card>span{font-size:54px}.upload-card h2{font-size:23px}.upload-card p{font-size:14px}.upload-card b{display:inline-block;background:var(--primary);color:#fff;border-radius:11px;padding:10px 14px;font-size:13px}.privacy-note{text-align:center;color:var(--muted);font-size:12px;margin:25px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px}.canvas-panel,

.editor-controls{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.canvas-toolbar{height:64px;border-bottom:1px solid var(--line);padding:0 14px;display:flex;align-items:center;gap:12px}.toolbar-actions{margin-left:auto;display:flex;gap:7px}.small-btn{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:9px 12px;font-size:12px;font-weight:750;cursor:pointer;color:var(--text)}.canvas-wrap{background:repeating-conic-gradient(#f0f1f4 0 25%,#fff 0 50%) 50%/26px 26px;padding:30px;display:grid;place-items:center}.canvas-wrap canvas{width:min(100%,600px);height:auto;border-radius:12px;box-shadow:0 20px 50px rgba(0,0,0,.12)}.canvas-actions{padding:14px;display:flex;gap:9px}.canvas-actions .btn{flex:1}.editor-controls{padding:20px}.control-section{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.control-section:last-child{border:0;margin:0}.control-section h3{font-size:13px}.input{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 12px;background:var(--bg);color:var(--text);outline:0}.control-row{margin-top:10px}.control-row label{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:10px}.control-row input[type=range]{flex:1}.emoji-row{display:flex;flex-wrap:wrap;gap:7px}.emoji-btn{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:var(--bg);cursor:pointer;font-size:21px}.switch-line{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-top:14px}.button-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hint{font-size:11px;line-height:1.5}.sheet-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.sheet-preview-wrap{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow);display:grid;place-items:center}.sheet-preview-wrap canvas{width:min(100%,700px);height:auto;background:#fff;border-radius:12px}.sheet-side{display:grid;gap:12px}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px}.stat-card span{font-size:12px;color:var(--muted)}.stat-card strong{display:block;font-size:35px;margin-top:4px}.full{width:100%}footer{border-top:1px solid var(--line);padding:35px max(20px,calc((100% - 1180px)/2));display:flex;gap:30px;align-items:center;color:var(--muted);font-size:12px;flex-wrap:wrap}footer div:first-child{display:grid;gap:4px;flex:1}footer strong{color:var(--text);font-size:15px}footer div:nth-child(2){display:flex;gap:18px}.modal{position:fixed;inset:0;background:rgba(10,14,25,.68);display:grid;place-items:center;padding:20px;z-index:50}.modal.hidden{display:none}.modal-card{width:min(560px,100%);background:var(--surface);border-radius:24px;padding:16px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:4px 0 12px}.modal video{width:100%;border-radius:15px;background:#111;max-height:65vh;object-fit:cover}.modal .btn{margin-top:12px}.error{color:#b42318;font-size:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#111827;color:#fff;padding:11px 15px;border-radius:11px;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:70}.toast.show{opacity:1;transform:translate(-50%,0)}body.dark{--bg:#0c1020;--surface:#151a2b;--surface2:#1d2336;--text:#f5f7fb;--muted:#a7afc0;--line:#2b3348;--shadow:0 15px 45px rgba(0,0,0,.25)}body.dark .topbar{background:rgba(12,16,32,.9)}body.dark .canvas-wrap{background:repeating-conic-gradient(#252b3a 0 25%,#171c2a 0 50%) 50%/26px 26px}@media(max-width:900px){.hero{grid-template-columns:1fr;min-height:auto;padding:50px 0}.hero-art{height:420px}.template-grid{grid-template-columns:repeat(3,1fr)}.template-grid.large{grid-template-columns:repeat(3,1fr)}.editor-layout,.sheet-layout{grid-template-columns:1fr}.editor-controls{order:2}.feature-grid{grid-template-columns:1fr}.sheet-side{grid-template-columns:1fr 1fr}.sheet-side .hint{grid-column:1/-1}}@media(max-width:620px){.topbar{height:62px;padding:0 14px}.desktop-nav{display:none}.page{padding:25px 14px 50px}.hero h1{font-size:48px}.hero-copy>p{font-size:16px}.hero-art{height:360px}.hero-phone{width:200px;height:370px}.phone-screen{height:300px}.mini-photo{font-size:90px}.sticker-card{font-size:22px;padding:12px;border-width:5px}.template-grid,.template-grid.large{grid-template-columns:repeat(2,1fr);gap:10px}.page-head h1{font-size:39px}.upload-grid{grid-template-columns:1fr}.photo-banner{padding:30px;display:block}.banner-emoji{font-size:70px;margin-top:20px}.canvas-wrap{padding:12px}.canvas-actions{flex-direction:column}.sheet-side{grid-template-columns:1fr}.sheet-preview-wrap{padding:10px}footer{display:grid}footer div:nth-child(2){flex-wrap:wrap}.s1{left:0}.s2{right:0}.s3{left:0}.s4{right:0}}

/* StickerSnap SaaS additions */
.billing-switch{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:22px 0 8px;padding:12px 16px;border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc}.billing-switch strong{font-size:13px}.billing-switch em{font-size:12px;font-style:normal;font-weight:800}.switch{position:relative;width:48px;height:26px;display:inline-block}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;inset:0;border-radius:999px;background:#cbd5e1;cursor:pointer;transition:.2s}.slider:before{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 4px rgba(0,0,0,.2)}.switch input:checked+.slider{background:#111827}.switch input:checked+.slider:before{transform:translateX(22px)}.hidden{display:none!important}.pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:28px}.price-card{position:relative;border:1px solid #e5e7eb;border-radius:24px;padding:26px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.06)}.price-card.featured{border:2px solid #111827;transform:translateY(-6px)}.plan-top-right{display:flex;align-items:center;gap:8px;margin-left:auto}.popular{font-size:10px;font-weight:800;background:#111827;color:#fff;padding:6px 9px;border-radius:999px;white-space:nowrap}.plan-label {  position: relative;display: inline-block;}.popular {  position: absolute;  left: 20;bottom:200%; font-size: 10px; font-weight: 700; white-space: nowrap; lineheight: 1;}.plan-icon{font-size:30px}.price{font-size:34px;font-weight:900;margin:12px 0}.price span{font-size:15px;font-weight:600;color:#667085}.price-card ul{padding-left:20px;min-height:145px;line-height:1.9}.trust-box{display:flex;gap:20px;flex-wrap:wrap;margin:30px 0;padding:18px;border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc}.dashboard-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:24px}.dash-card,.account-card,.auth-card{border:1px solid #e5e7eb;border-radius:20px;padding:24px;background:#fff;box-shadow:0 10px 25px rgba(15,23,42,.05)}.dash-card span,.account-card span{display:block;color:#667085;font-size:13px}.dash-card strong,.account-card strong{display:block;font-size:22px;margin:7px 0 10px}.account-card{display:grid;gap:20px}.account-actions{display:flex;gap:12px;flex-wrap:wrap}.narrow{max-width:820px;margin:auto}.auth-card{display:grid;gap:14px;max-width:520px;margin:auto}.auth-card label{display:grid;gap:7px;font-weight:700}.auth-card input,.auth-card textarea{padding:12px 14px;border:1px solid #d0d5dd;border-radius:10px;font:inherit}.site-footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:30px 5%;border-top:1px solid #e5e7eb;color:#667085}.site-footer nav{display:flex;gap:16px;flex-wrap:wrap}.site-footer a{color:inherit}.toast{position:fixed;bottom:24px;right:24px;background:#111827;color:#fff;padding:12px 16px;border-radius:12px;opacity:0;pointer-events:none;transition:.2s;z-index:99}.toast.show{opacity:1}.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important}.dark .billing-switch{background:#0f172a;border-color:#263244}.dark .price-card,.dark .dash-card,.dark .account-card,.dark .auth-card{background:#111827;border-color:#263244}.dark .trust-box{background:#0f172a;border-color:#263244}.dark .site-footer{border-color:#263244}@media(max-width:980px){.pricing-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.plan-top-right{gap:5px}.popular{font-size:9px;padding:5px 7px}.pricing-grid,.dashboard-grid{grid-template-columns:1fr}.price-card.featured{transform:none}}

/* Payment trust and security messaging */
.payment-trust{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px;font-size:10px;font-weight:800;color:#667085}.payment-trust span{padding:5px 7px;border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc}.payment-policy{margin-top:16px;padding:18px;border:1px solid #e5e7eb;border-radius:16px;background:#fff}.payment-policy strong{display:block;margin-bottom:7px}.payment-policy span{display:block;color:#667085;font-size:12px;line-height:1.6}.payment-policy nav{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:12px;font-weight:800;color:#4f46e5}.dark .payment-trust span,.dark .payment-policy{border-color:#263244;background:#0f172a}.dark .payment-policy span{color:#a7afc0}
/* Discourage casual copying while preserving form-field usability. */
body{-webkit-user-select:none;user-select:none}input,textarea,select,[contenteditable="true"]{-webkit-user-select:text;user-select:text}

/* Refined pricing selector and plan cards */
.billing-choice{display:flex;justify-content:center;align-items:stretch;gap:8px;width:min(560px,100%);margin:28px auto 34px;padding:7px;border:1px solid #d9dee8;border-radius:18px;background:#f4f6fa;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.billing-option{position:relative;flex:1;border:0;border-radius:13px;background:transparent;padding:13px 18px;cursor:pointer;color:#667085;text-align:center;transition:.2s;display:grid;gap:3px;font:inherit}
.billing-option span{font-size:15px;font-weight:850;color:inherit}.billing-option small{font-size:11px;color:inherit}.billing-option b{justify-self:center;display:inline-flex;align-items:center;background:#111827;color:#fff;border-radius:999px;padding:3px 8px;font-size:9px;letter-spacing:.04em;text-transform:uppercase;margin-top:2px}.billing-option.active{background:#fff;color:#111827;box-shadow:0 5px 16px rgba(15,23,42,.10)}
.plan-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.plan-label{font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#667085;background:#f2f4f7;border-radius:999px;padding:6px 9px}.plan-action{width:100%;margin-top:4px}.plan-features{min-height:210px!important}.pricing-head{text-align:center}.pricing-head>div{width:100%}
@media(max-width:650px){.billing-choice{width:100%;margin-bottom:26px}.billing-option{padding:12px 8px}.billing-option b{right:4px}.plan-features{min-height:0!important}}

/* Professional editor layer controls */
.control-count{float:right;font-size:10px;color:var(--muted);font-weight:700}.layer-panel{display:grid;gap:6px;max-height:220px;overflow:auto}.layer-item{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:7px;width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);cursor:pointer;text-align:left}.layer-item.selected{border-color:var(--primary);box-shadow:0 0 0 2px rgba(99,91,255,.12);background:rgba(99,91,255,.06)}.layer-item strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-item small{font-size:10px;color:var(--muted)}.layer-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:8px}.danger-btn{color:#b42318}.full{width:100%}.canvas-wrap canvas{touch-action:none;cursor:grab}.canvas-wrap canvas:active{cursor:grabbing}
/* Social sharing popup */
.share-card{width:min(620px,100%);padding:22px}.share-subtitle{margin:5px 0 0;color:var(--muted);font-size:13px}.native-share-btn{width:100%;border:0;border-radius:14px;padding:14px 16px;background:#111827;color:#fff;font:inherit;font-weight:850;cursor:pointer;margin:4px 0 14px}.share-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.social-btn{border:1px solid var(--line);border-radius:13px;padding:12px;background:var(--surface);color:var(--text);font:inherit;font-weight:750;cursor:pointer;text-align:left;display:flex;align-items:center;gap:10px;transition:.18s}.social-btn:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(15,23,42,.08)}.social-btn span{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-weight:900;background:var(--surface2)}.share-note{font-size:11px;line-height:1.55;color:var(--muted);margin:14px 2px 0}.dark .social-btn{background:#111827}.dark .native-share-btn{background:#f8fafc;color:#111827}@media(max-width:520px){.share-grid{grid-template-columns:1fr}.share-card{padding:17px}}

.hd-ad-box{text-align:center;padding:18px 8px 8px}.hd-icon{font-size:42px}.hd-ad-box h3{margin:6px 0}.hd-ad-box p{color:var(--muted);font-size:13px}.hd-ad-box small{display:block;margin-top:10px;color:var(--muted)}

/* Realtime Database-powered template library badges */
.template-card{position:relative;}
.template-new,.template-access{position:absolute;top:10px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.04em;backdrop-filter:blur(6px);}
.template-new{left:10px;background:#111827;color:#fff;}
.template-access{right:10px;background:rgba(255,255,255,.88);color:#374151;text-transform:capitalize;}

/* Sticker editor: keep the canvas/work area fixed while the controls scroll independently. */
.editor-layout{height:calc(100vh - 110px);min-height:620px;align-items:stretch;}
.canvas-panel{position:sticky;top:90px;height:calc(100vh - 110px);min-height:620px;display:flex;flex-direction:column;overflow:hidden;}
.canvas-wrap{flex:1;min-height:0;overflow:auto;}
.editor-controls{height:calc(100vh - 110px);min-height:620px;overflow-y:auto;overflow-x:hidden;padding:12px 16px 24px;overscroll-behavior:contain;scrollbar-gutter:stable;}

.editor-controls::-webkit-scrollbar{width:6px}
.editor-controls::-webkit-scrollbar-thumb{background:#cfd4dc;border-radius:99px}.editor-controls::-webkit-scrollbar-track{background:transparent}
.control-section{margin-bottom:10px;padding:0;border-bottom:1px solid var(--line);}
.control-section:last-child{border:0}.control-toggle{width:100%;border:0;background:transparent;color:var(--text);padding:13px 2px;display:flex;align-items:center;gap:15px;cursor:pointer;text-align:left;}
.control-toggle h3{font-size:13px;margin:0;flex:1}.section-arrow{font-size:18px;line-height:1;transition:transform .18s ease;color:var(--muted);width:24px;height:24px;display:grid;place-items:center;border-radius:7px;}
.control-toggle:hover .section-arrow{background:var(--surface2);color:var(--text)}
.control-section:not(.open)>.control-toggle .section-arrow{transform:rotate(-90deg)}
.control-section:not(.open)>:not(.control-toggle){display:none}
.control-section.open>.control-toggle .section-arrow{transform:rotate(0deg)}
@media(max-width:900px){.editor-layout{height:auto;min-height:0}.canvas-panel{position:relative;top:auto;height:auto;min-height:0}.canvas-wrap{flex:none;overflow:visible}.editor-controls{height:560px;min-height:0;max-height:560px;overflow-y:auto;overscroll-behavior:contain;order:2}.editor-layout{display:grid;grid-template-columns:1fr;gap:20px}}
.footer-brand{
  display:grid;
  gap:6px;
  flex:1;
}

.footer-logo{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  color:var(--text);
}

.footer-logo-mark{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
}

.footer-logo-mark img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.control-section.collapsible {
  margin-bottom: 15px;
}
.color-grid {
  margin-bottom: 15px;
}


#fontSelect {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.control-row label::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(15%);
  pointer-events: none;
  font-size: 16px;
  color: #737986;
}

.profile-mini{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:inherit;font-size:12px;font-weight:850;margin-right:8px}.profile-mini img{width:34px;height:34px;border-radius:10px;border:2px solid #fff;box-shadow:0 2px 9px rgba(15,23,42,.14)}.account-avatar-row{display:flex;align-items:center;gap:13px}.account-avatar-row img{width:54px;height:54px;border-radius:16px;border:1px solid #e5e7eb}.account-avatar-row>div{min-width:0}.account-avatar-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:650px){.profile-mini span{display:none}.profile-mini{margin-right:2px}}

/* ===== StickerSnap Professional Editor Upgrade ===== */
.pro-section .pro-body{display:grid;gap:10px;padding:0 2px 14px}.pro-grid2{display:grid;grid-template-columns:1fr 1fr;gap:9px}.pro-grid2 label{display:grid;gap:6px;font-size:11px;color:var(--muted)}.pro-grid2 input[type=range]{width:100%}.pro-filter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.filter-chip{border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:10px;padding:9px 7px;font-size:11px;font-weight:750;cursor:pointer}.filter-chip:hover{border-color:var(--primary)}.pro-preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pro-section .tool-row{display:flex;flex-wrap:wrap;gap:6px}.pro-section .tool-row .small-btn{flex:1;min-width:80px}.pro-section input[type=number],.pro-section select{width:100%;box-sizing:border-box}.draw-overlay{z-index:4;touch-action:none}.canvas-wrap.drop-active{outline:3px dashed var(--primary);outline-offset:-8px;background:#f2f1ff}.favorite-template{position:absolute;z-index:3;right:8px;top:8px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#f59e0b;font-size:22px;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.1)}.favorite-template.active{background:#fff7df}.template-art{position:relative}.pro-export-card{width:min(600px,100%)}.projects-toolbar{display:flex;gap:10px;margin-bottom:20px}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.project-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.project-thumb{height:150px;display:grid;place-items:center;font-size:58px;background:linear-gradient(135deg,#eef0ff,#fff5eb)}.project-card-body{padding:15px}.project-card-body strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-card-body small{display:block;color:var(--muted);font-size:10px;margin:5px 0 12px}.project-actions{display:flex;gap:6px;flex-wrap:wrap}.empty-projects{grid-column:1/-1;text-align:center;padding:70px;color:var(--muted);background:var(--surface);border:1px dashed var(--line);border-radius:18px}.editor-controls{scroll-behavior:smooth}.pro-section .control-toggle h3{margin:0}.pro-section .control-toggle{min-height:44px}.pro-section .small-btn{min-height:36px}.pro-section .color-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pro-section .color-grid label{font-size:11px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:8px}.pro-section .color-grid input[type=color]{width:42px;height:30px;padding:2px}.pro-section .switch-line{margin-top:3px}.pro-section .button-grid{gap:7px}.pro-section .button-grid .small-btn{min-width:0}.pro-section input[type=range]{accent-color:var(--primary)}
@media(max-width:900px){.project-grid{grid-template-columns:1fr 1fr}.pro-grid2{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.project-grid{grid-template-columns:1fr}.projects-toolbar{flex-direction:column}.pro-grid2{grid-template-columns:1fr}.pro-filter-grid{grid-template-columns:1fr 1fr}}

/* Canva-style contextual object actions */
.canvas-wrap{position:relative;}
.object-action-bar{position:absolute;z-index:20;display:flex;align-items:center;gap:4px;padding:5px;background:rgba(20,24,36,.96);border:1px solid rgba(255,255,255,.12);border-radius:11px;box-shadow:0 8px 24px rgba(0,0,0,.22);transform:translate(-50%,0);white-space:nowrap;}
.object-action-bar.hidden{display:none;}
.object-action{width:34px;height:32px;border:0;border-radius:7px;background:transparent;color:#fff;display:grid;place-items:center;font-size:16px;cursor:pointer;}
.object-action:hover{background:rgba(255,255,255,.14);}
.object-action.danger:hover{background:rgba(220,38,38,.8);}
.object-action:focus-visible{outline:2px solid #fff;outline-offset:1px;}
@media(max-width:620px){.object-action-bar{padding:4px;gap:2px}.object-action{width:32px;height:30px;font-size:15px;}}

/* User-adjustable editor workspace and toolbar sizing */
:root{--editor-work-height:calc(100vh - 110px);--editor-toolbar-width:340px;--editor-divider-width:8px}
.editor-layout{grid-template-columns:minmax(0,1fr) var(--editor-divider-width) var(--editor-toolbar-width);height:var(--editor-work-height);}
.editor-layout>.editor-resize-handle{width:var(--editor-divider-width);cursor:col-resize;position:relative;align-self:stretch;display:grid;place-items:center;touch-action:none;user-select:none;z-index:5}
.editor-resize-handle::before{content:"";width:4px;height:72px;border-radius:999px;background:var(--line);transition:.15s}
.editor-resize-handle:hover::before,.editor-resize-handle.dragging::before{background:var(--primary);height:100px}
.canvas-panel,.editor-controls{height:var(--editor-work-height);}
.layout-btn{white-space:nowrap}
.layout-popover{position:fixed;z-index:120;width:min(330px,calc(100vw - 24px));background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 18px 55px rgba(15,23,42,.2)}
.layout-popover[hidden]{display:none}
.layout-popover h3{margin:0 0 4px;font-size:14px}.layout-popover p{margin:0 0 14px;font-size:11px;color:var(--muted);line-height:1.5}
.layout-control{display:grid;gap:7px;margin:13px 0}.layout-control label{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:750}.layout-control output{color:var(--primary);font-weight:850}.layout-control input[type=range]{width:100%;accent-color:var(--primary)}
.layout-popover .layout-actions{display:flex;gap:8px;margin-top:14px}.layout-popover .layout-actions button{flex:1}
@media(max-width:900px){
  :root{--editor-work-height:auto}
  .editor-layout{grid-template-columns:1fr;height:auto}
  .editor-layout>.editor-resize-handle{display:none}
  .canvas-panel{height:auto}
  .editor-controls{height:560px}
  .layout-popover .desktop-only{display:none}
}
