:root{--accent:#0f766e;--accent-dark:#0b5f59;--accent-soft:#e9f7f5;--ink:#172033;--muted:#667085;--line:#dfe5ec;--line-strong:#cbd5df;--surface:#fff;--surface-soft:#f6f8fb;--workspace:#e9edf3;--danger:#b42318;--shadow:0 14px 38px rgba(15,23,42,.12);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.45;color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-size:15px}
button,input,select,textarea{font:inherit}
button,a{touch-action:manipulation}
button{color:inherit}
a{color:var(--accent)}
svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}
.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}
.skip-link{position:fixed;left:12px;top:-60px;z-index:9999;padding:10px 14px;border-radius:8px;background:#fff;color:var(--ink);box-shadow:var(--shadow);font-weight:700}.skip-link:focus{top:12px}
.studio-header{height:68px;display:grid;grid-template-columns:220px minmax(190px,1fr) auto auto;align-items:center;gap:18px;padding:0 20px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.98);position:relative;z-index:20}
.studio-brand{display:flex;align-items:center}.studio-brand img{display:block;width:178px;height:auto;max-height:39px}
.project-identity{display:flex;align-items:center;gap:12px;min-width:0}.project-identity input{width:min(320px,100%);border:0;border-radius:8px;padding:8px 10px;background:transparent;font-weight:700;color:var(--ink)}.project-identity input:hover,.project-identity input:focus{background:var(--surface-soft);outline:none}.save-state{display:flex;align-items:center;gap:6px;color:#527066;font-size:12px;white-space:nowrap}.save-state i,.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#22c55e}.save-state.is-saving i{background:#f59e0b}
.header-links{display:flex;align-items:center;gap:4px}.header-links a{padding:7px 9px;border-radius:7px;color:#536173;text-decoration:none;font-size:13px;font-weight:650;white-space:nowrap}.header-links a:hover{background:var(--surface-soft);color:var(--ink)}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.button,.icon-button,.toolbar-button,.page-indicator,.zoom-value{border:1px solid var(--line-strong);background:#fff;border-radius:9px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;cursor:pointer;font-weight:700}.button:hover,.icon-button:hover,.toolbar-button:hover,.page-indicator:hover,.zoom-value:hover{border-color:#9ba8b7;background:#f8fafc}.button:focus-visible,.icon-button:focus-visible,.toolbar-button:focus-visible,.page-indicator:focus-visible,.zoom-value:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(15,118,110,.2);outline-offset:1px}.icon-button{width:38px;padding:0}.icon-button:disabled{opacity:.38;cursor:not-allowed}.button-primary{background:var(--accent);border-color:var(--accent);color:#fff}.button-primary:hover{background:var(--accent-dark);border-color:var(--accent-dark)}.button-secondary{background:#f0fdfa;border-color:#9bd6cf;color:#0b5f59}.button-ghost{border-color:transparent;background:transparent}.button-small{min-height:32px;padding:6px 10px;font-size:13px}.text-button{padding:5px 0;border:0;background:none;color:var(--accent);font-weight:750;cursor:pointer}.text-button:hover{text-decoration:underline}.text-button.danger{color:var(--danger)}
.studio-shell{height:calc(100vh - 68px);min-height:660px;display:grid;grid-template-columns:258px minmax(430px,1fr) 368px;background:var(--workspace);border-bottom:1px solid var(--line)}
.template-sidebar,.inspector{min-width:0;background:#fff;overflow:hidden;display:flex;flex-direction:column}.template-sidebar{border-right:1px solid var(--line);padding:18px 14px 14px}.inspector{border-left:1px solid var(--line)}
.sidebar-heading,.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.sidebar-heading h1,.panel-heading h2{font-size:20px;line-height:1.2;margin:2px 0 0;letter-spacing:-.02em}.eyebrow{margin:0;color:var(--accent);font-size:11px;line-height:1.2;font-weight:850;letter-spacing:.13em;text-transform:uppercase}.count-badge{min-width:32px;height:28px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);font-size:13px;font-weight:800}
.search-field{height:40px;margin:14px 0 10px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line-strong);border-radius:9px;background:#fff}.search-field svg{width:18px;color:#718096}.search-field input{min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:13px}
.filter-scroll{display:flex;gap:6px;overflow:auto;padding:1px 0 10px;scrollbar-width:none}.filter-scroll::-webkit-scrollbar{display:none}.filter-button{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#fff;color:#536173;padding:6px 9px;font-size:12px;font-weight:750;cursor:pointer}.filter-button.is-active{background:var(--ink);border-color:var(--ink);color:#fff}
.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;overflow:auto;padding:1px 3px 14px 1px;align-content:start}.template-card{border:1px solid var(--line);border-radius:10px;padding:6px;background:#fff;text-align:left;cursor:pointer}.template-card:hover{border-color:#9eb0bf;box-shadow:0 5px 16px rgba(15,23,42,.08)}.template-card.is-active{border:2px solid var(--accent);padding:5px}.template-card canvas{display:block;width:100%;height:auto;aspect-ratio:160/216;background:#fff;border:1px solid #e5e9ee}.template-card strong{display:block;margin-top:6px;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-card small{display:block;color:var(--muted);font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-note{margin:0;padding:10px;border:1px solid #c9e8e3;border-radius:9px;background:#f2fbfa;color:#47635f;font-size:11.5px;line-height:1.45}
.canvas-workspace{min-width:0;display:grid;grid-template-rows:54px minmax(0,1fr) 32px;overflow:hidden}.canvas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 14px;background:#f9fafb;border-bottom:1px solid var(--line)}.toolbar-group{display:flex;align-items:center;gap:6px;min-width:0}.toolbar-group label{color:#667085;font-size:12px;font-weight:750}.toolbar-group select{height:34px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;padding:0 26px 0 9px;font-size:12px}.toolbar-button{min-height:34px;padding:5px 9px;font-size:12px}.toolbar-title{min-width:0;text-align:center}.toolbar-title strong,.toolbar-title span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar-title strong{font-size:13px}.toolbar-title span{color:var(--muted);font-size:10.5px}.toolbar-end{justify-content:flex-end}.canvas-toolbar .icon-button{width:34px;min-height:34px}.canvas-toolbar .icon-button svg{width:17px}.page-indicator,.zoom-value{min-height:34px;padding:5px 8px;font-size:11.5px}.page-indicator{min-width:54px}.zoom-value{min-width:49px}.toolbar-check{display:flex!important;align-items:center;gap:5px!important;white-space:nowrap}.toolbar-check input{accent-color:var(--accent)}
.canvas-stage{position:relative;overflow:auto;padding:30px;display:flex;align-items:flex-start;justify-content:center;background:var(--workspace)}.canvas-paper{position:relative;flex:0 0 auto;background:#fff;box-shadow:0 16px 42px rgba(15,23,42,.18);transform-origin:top center}.canvas-paper canvas{display:block;width:100%;height:100%}.canvas-paper.show-safe-area:after{content:"";position:absolute;inset:6%;border:1px dashed rgba(14,116,144,.35);pointer-events:none}.workspace-status{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 12px;background:#fafbfc;border-top:1px solid var(--line);color:#738091;font-size:10.5px}.workspace-status span{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inspector-tabs{height:54px;display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);background:#fbfcfd}.inspector-tabs button{position:relative;border:0;background:transparent;color:#667085;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:750;cursor:pointer}.inspector-tabs button svg{width:17px}.inspector-tabs button.is-active{color:var(--accent)}.inspector-tabs button.is-active:after{content:"";position:absolute;left:20%;right:20%;bottom:-1px;height:2px;background:var(--accent)}
.inspector-body{overflow:auto;padding:18px}.inspector-panel{min-height:100%}.panel-heading{margin-bottom:15px}.completion-card{border:1px solid #c9e8e3;border-radius:11px;padding:12px;background:#f4fbfa;margin-bottom:14px}.completion-copy{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#49615e}.completion-copy strong{color:var(--accent-dark);font-size:14px}.completion-track{height:6px;margin:8px 0;border-radius:99px;background:#dfece9;overflow:hidden}.completion-track i{display:block;width:0;height:100%;border-radius:inherit;background:var(--accent);transition:width .25s}.completion-card p{margin:0;color:#5f6f6d;font-size:11.5px}
.form-section{padding:14px 0;border-top:1px solid var(--line)}.form-section:first-of-type{border-top:0;padding-top:0}.form-section h3{margin:0 0 11px;font-size:13px}.field{display:grid;gap:5px;margin-bottom:10px;color:#4c5969;font-size:12px;font-weight:700}.field>span{display:flex;justify-content:space-between;gap:10px}.field b{font-weight:650;color:#8a96a4}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--ink);padding:9px 10px;font-size:13px;font-weight:500}.field textarea{resize:vertical;line-height:1.5;min-height:74px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-help{margin:6px 0 0;color:#7a8795;font-size:11.5px;line-height:1.45}.color-field input{height:40px;padding:4px}.range-field{display:grid;gap:7px;margin:12px 0;color:#4c5969;font-size:12px;font-weight:700}.range-field span{display:flex;justify-content:space-between}.range-field b{color:var(--accent);font-weight:800}.range-field input{width:100%;accent-color:var(--accent)}
.photo-row{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:9px;margin-bottom:12px}.photo-preview{width:44px;height:44px;border-radius:12px;background:#e8f3f2;color:#0b5f59;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:850;background-position:center;background-size:cover}.photo-row>div:nth-child(2){min-width:0}.photo-row strong,.photo-row small{display:block}.photo-row strong{font-size:12px}.photo-row small{color:var(--muted);font-size:10.5px}.photo-row .danger{grid-column:3}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid #edf0f3}.switch-row>span{min-width:0}.switch-row strong,.switch-row small{display:block}.switch-row strong{font-size:12px}.switch-row small{margin-top:2px;color:var(--muted);font-size:10.5px}.switch-row input{width:38px;height:21px;accent-color:var(--accent)}
.section-order{display:grid;gap:6px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#f9fafb}.order-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:5px;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff}.order-item input{accent-color:var(--accent)}.order-item span{font-size:11.5px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-item button{width:27px;height:27px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer;font-size:13px}.order-item button:disabled{opacity:.35}.order-help{margin:8px 2px 14px}.editor-sections{display:grid;gap:10px}.section-editor{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.section-editor>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;cursor:pointer;font-size:12.5px;font-weight:800}.section-editor>summary::-webkit-details-marker{display:none}.section-editor>summary:after{content:"+";font-size:18px;color:#8491a0}.section-editor[open]>summary:after{content:"−"}.section-editor-body{padding:0 12px 12px;border-top:1px solid var(--line)}.entry-card{position:relative;padding:11px 0 2px;border-bottom:1px solid var(--line)}.entry-card:last-of-type{border-bottom:0}.entry-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.entry-title strong{font-size:11.5px}.remove-entry{border:0;background:none;color:var(--danger);font-size:11px;font-weight:750;cursor:pointer}.add-entry{width:100%;margin-top:10px;border:1px dashed #9eb6b2;border-radius:8px;background:#f4fbfa;color:var(--accent-dark);padding:8px;font-size:12px;font-weight:800;cursor:pointer}.add-entry:hover{background:#e9f7f5}.design-note{padding:12px;border-radius:10px;background:#f7f8fa;border:1px solid var(--line)}.design-note strong{font-size:12px}.design-note p{margin:5px 0 0;color:var(--muted);font-size:11.5px}
.mobile-actions{display:none}.tool-content{max-width:1160px;margin:0 auto;padding:72px 24px 34px}.tool-content-lead{max-width:780px}.tool-content h2{font-size:27px;line-height:1.18;letter-spacing:-.025em;margin:7px 0 14px}.tool-content p{font-size:16px;line-height:1.72;color:#536173}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:34px 0}.guide-grid article,.content-columns article{border:1px solid var(--line);border-radius:14px;padding:22px;background:#fff}.guide-grid span{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:9px;background:var(--accent-soft);color:var(--accent-dark);font-size:12px;font-weight:850}.guide-grid h3{font-size:17px;margin:13px 0 6px}.guide-grid p{margin:0;font-size:14.5px}.content-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.content-columns h2{font-size:21px}.content-columns p{font-size:15px}.privacy-panel{display:grid;grid-template-columns:.8fr 1.2fr;gap:28px;align-items:center;margin:24px 0;padding:26px;border:1px solid #c9e8e3;border-radius:14px;background:#f4fbfa}.privacy-panel h2{font-size:22px;margin-bottom:0}.privacy-panel p{margin:0;font-size:15px}.faq-list{max-width:880px;margin:46px auto 0}.faq-list>h2{text-align:center}.faq-list details{border-bottom:1px solid var(--line);padding:16px 0}.faq-list summary{cursor:pointer;font-size:16px;font-weight:800}.faq-list details p{margin:9px 0 0;font-size:15px}.related-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:42px auto 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}.related-links strong{margin-right:4px;font-size:13px}.related-links a{padding:8px 11px;border:1px solid #d9e1e8;border-radius:9px;background:#fff;color:#1d5f5a;text-decoration:none;font-size:13px;font-weight:750}.related-links a:hover{border-color:#8fc8c1;background:#f4fbfa}.tool-ad-container{max-width:970px;min-height:110px;margin:28px auto 10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:center;overflow:hidden}.ad-label{display:block;margin-bottom:7px;color:#8994a2;font-size:10px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.studio-footer{border-top:1px solid var(--line);padding:28px 24px 38px;text-align:center;color:#697687}.studio-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px}.studio-footer a{color:#4d5a69;text-decoration:none;font-size:13px;font-weight:700}.studio-footer p{margin:14px auto 0;max-width:760px;font-size:12px;line-height:1.5}
.studio-dialog{width:min(920px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;border:0;border-radius:16px;background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.28);overflow:hidden}.studio-dialog::backdrop{background:rgba(15,23,42,.58)}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--line)}.dialog-header h2{margin:3px 0 2px;font-size:22px}.dialog-header p:not(.eyebrow){margin:0;color:var(--muted);font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--line);background:#fafbfc}.preview-pages{max-height:calc(100vh - 190px);overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;padding:22px;background:var(--workspace)}.preview-page{display:grid;gap:7px;justify-items:center}.preview-page canvas{display:block;width:100%;height:auto;max-width:520px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.14)}.preview-page span{font-size:11px;color:#667085}.export-dialog{width:min(690px,calc(100vw - 28px))}.export-options{display:grid;gap:8px;padding:18px 20px}.export-option{display:grid;grid-template-columns:auto 52px 1fr;gap:10px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.export-option.is-selected{border-color:#6ab6ad;background:#f4fbfa}.export-option input{accent-color:var(--accent)}.format-icon{width:44px;height:38px;border-radius:8px;background:#edf2f7;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:900}.export-option strong,.export-option small{display:block}.export-option strong{font-size:13px}.export-option small{color:var(--muted);font-size:11.5px}.export-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 20px}.export-note{margin:6px 20px 16px;color:#687586;font-size:11.5px}.progress-dialog{width:min(420px,calc(100vw - 28px));padding:28px;text-align:center}.progress-dialog h2{margin:14px 0 4px}.progress-dialog p{margin:0;color:var(--muted)}.progress-ring{width:68px;height:68px;margin:auto;border:6px solid #e4eeec;border-top-color:var(--accent);border-radius:50%;display:flex;align-items:center;justify-content:center}.progress-ring span{font-size:12px;font-weight:850}.progress-bar{height:7px;margin-top:22px;border-radius:99px;background:#e7ecef;overflow:hidden}.progress-bar span{display:block;width:0;height:100%;background:var(--accent);transition:width .2s}.toast-region{position:fixed;right:18px;bottom:18px;z-index:1000;display:grid;gap:8px}.toast{max-width:330px;padding:11px 14px;border-radius:9px;background:#172033;color:#fff;box-shadow:var(--shadow);font-size:13px}.toast.error{background:#8f231c}
@media(max-width:1240px){.studio-header{grid-template-columns:190px 1fr auto}.header-links{display:none}.studio-shell{grid-template-columns:232px minmax(400px,1fr) 344px}.template-sidebar{padding-left:11px;padding-right:11px}.inspector-body{padding:15px}}
@media(max-width:980px){.studio-header{height:60px;grid-template-columns:170px 1fr auto;padding:0 12px;gap:8px}.studio-brand img{width:155px}.save-state{display:none}.desktop-action,.header-actions>.icon-button{display:none}.studio-shell{height:auto;min-height:0;grid-template-columns:210px minmax(0,1fr)}.template-sidebar{height:calc(100vh - 60px);position:sticky;top:0}.canvas-workspace{height:calc(100vh - 60px);min-height:640px}.inspector{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);max-height:none}.inspector-body{max-width:760px;width:100%;margin:auto;overflow:visible}.mobile-actions{position:sticky;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);background:#fff;padding-bottom:env(safe-area-inset-bottom)}.mobile-actions button{height:54px;border:0;background:#fff;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:800}.mobile-actions button.is-primary{background:var(--accent);color:#fff}.mobile-actions svg{width:18px}.tool-content{padding-top:54px}}
@media(max-width:700px){.studio-header{grid-template-columns:142px 1fr auto}.studio-brand img{width:135px}.project-identity input{font-size:12px;padding-left:4px}.header-actions .button-primary{padding:8px 10px;font-size:0}.header-actions .button-primary svg{width:20px}.studio-shell{display:flex;flex-direction:column}.template-sidebar{position:static;width:100%;height:auto;max-height:none;padding:14px}.template-grid{display:flex;overflow:auto;padding-bottom:9px}.template-card{flex:0 0 108px}.sidebar-note{display:none}.canvas-workspace{height:600px;min-height:600px}.canvas-toolbar{padding:6px 8px}.toolbar-title{display:none}.toolbar-group:first-child label,.toolbar-group:first-child select{display:none}.toolbar-check{display:none!important}.canvas-stage{padding:20px 12px}.inspector-tabs{position:sticky;top:0;z-index:4}.inspector-body{padding:15px 14px}.field-row{grid-template-columns:1fr}.tool-content{padding:45px 17px 26px}.tool-content h2{font-size:23px}.guide-grid,.content-columns,.privacy-panel{grid-template-columns:1fr}.guide-grid{gap:12px}.privacy-panel{gap:10px}.studio-footer{padding-left:17px;padding-right:17px}.preview-pages{grid-template-columns:1fr}.export-settings{grid-template-columns:1fr}}
@media(max-width:420px){.project-identity{display:none}.studio-header{grid-template-columns:1fr auto}.toolbar-end .page-button,.page-indicator{display:none}.canvas-workspace{height:540px;min-height:540px}.template-card{flex-basis:96px}.photo-row{grid-template-columns:44px 1fr auto}.photo-row .button-small{grid-column:3}.photo-row .danger{grid-column:3}.section-order{padding:7px}.order-item{grid-template-columns:auto minmax(0,1fr) auto auto}}
@media print{.studio-header,.studio-shell,.mobile-actions,.tool-content,.studio-footer,.tool-ad-container{display:none!important}}
