*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f3f4f6;color:#1f2937;min-height:100vh}#root{min-height:100vh}.app{min-height:100vh;display:flex;flex-direction:column}.app.embed-mode{background:#fff}.app.embed-mode .app-layout{min-height:calc(100vh - 52px)}.tab-nav{display:flex;gap:0;background:#fff;border-bottom:1px solid #e5e7eb;padding:0 24px}.tab-btn{display:flex;align-items:center;gap:8px;padding:14px 20px;border:none;background:none;font-family:inherit;font-size:14px;font-weight:600;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s,border-color .15s}.tab-btn:hover:not(:disabled){color:#2563eb}.tab-btn.active{color:#2563eb;border-bottom-color:#2563eb}.tab-btn:disabled{opacity:.45;cursor:not-allowed}.app-layout{display:flex;flex:1;min-height:0}.sidebar{width:38%;max-width:420px;min-width:320px;background:#fff;border-right:1px solid #e5e7eb;overflow-y:auto;display:flex;flex-direction:column}.main-content{flex:1;min-width:0;display:flex;flex-direction:column;background:#f9fafb}.panel-header{display:flex;align-items:center;gap:8px;background:#1e3a5f;color:#fff;padding:12px 16px;font-weight:700;font-size:14px;border-radius:8px 8px 0 0;margin:16px 16px 0}.template-picker{display:flex;flex-direction:column;flex:1;min-height:0}.template-list{padding:12px 16px 16px;overflow-y:auto;flex:1}.template-card{display:flex;gap:12px;width:100%;padding:10px;margin-bottom:10px;border:2px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;text-align:left;font-family:inherit;transition:border-color .15s,box-shadow .15s}.template-card:hover{border-color:#93c5fd}.template-card.selected{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb}.template-thumb{width:72px;height:92px;object-fit:cover;border-radius:4px;flex-shrink:0;background:#f3f4f6}.template-card-body h3{margin:0 0 4px;font-size:13px;font-weight:700;color:#1f2937}.template-card-body p{margin:0;font-size:11px;line-height:1.4;color:#6b7280}.personalize-form{padding:16px;overflow-y:auto;flex:1}.personalize-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.personalize-header h2{margin:0;font-size:16px;font-weight:700}.form-section{margin-bottom:24px}.form-section h3{margin:0 0 12px;font-size:13px;font-weight:700;color:#374151}.form-section label{display:block;margin-bottom:12px;font-size:12px;font-weight:600;color:#4b5563}.form-section input[type=text],.form-section input[type=email],.form-section textarea{display:block;width:100%;margin-top:4px;padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:13px;font-weight:400;color:#1f2937}.form-section textarea{resize:vertical;min-height:80px}.form-section input:focus,.form-section textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb26}.field-optional{font-size:11px;font-weight:400;color:#9ca3af}.field-hint{display:block;margin-top:4px;font-size:11px;font-weight:400;color:#9ca3af}.field-error{display:block;margin-top:4px;font-size:11px;font-weight:500;color:#dc2626}.label-row{display:flex;align-items:center;gap:8px}.badge{font-size:10px;font-weight:600;color:#2563eb;background:#eff6ff;padding:2px 8px;border-radius:10px}.logo-upload{display:flex;align-items:center;gap:8px;margin-top:4px}.logo-preview{width:48px;height:36px;object-fit:contain;border:1px solid #e5e7eb;border-radius:4px;background:#f9fafb}.logo-size-control{margin-top:10px}.logo-size-control>span{display:block;font-size:12px;font-weight:600;color:#4b5563}.slider-row{display:flex;align-items:center;gap:10px;margin-top:4px}.slider-row input[type=range]{flex:1;accent-color:#2563eb}.slider-value{min-width:40px;font-size:12px;font-weight:500;color:#6b7280;text-align:right}.file-input{display:none}.color-picker-row{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}.color-swatch{width:28px;height:28px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0}.color-swatch.active{border-color:#2563eb;box-shadow:0 0 0 2px #fff,0 0 0 4px #2563eb}.color-input{width:32px;height:32px;border:none;padding:0;cursor:pointer;background:none}.compliance-links{display:flex;align-items:center;gap:12px;margin-top:8px}.compliance-links a{font-size:11px;color:#2563eb;text-decoration:none}.compliance-links a:hover{text-decoration:underline}.compliance-ehl.equal-housing{flex-shrink:0}.form-footer{padding-top:8px;border-top:1px solid #e5e7eb;margin-top:8px}.btn-primary{width:100%;padding:12px 20px;background:#2563eb;color:#fff;border:none;border-radius:8px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:background .15s}.btn-primary:hover:not(:disabled){background:#1d4ed8}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{padding:6px 14px;background:#fff;color:#374151;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}.btn-secondary:hover{background:#f9fafb;border-color:#9ca3af}.btn-text{padding:4px 8px;background:none;border:none;color:#6b7280;font-family:inherit;font-size:12px;cursor:pointer}.btn-text:hover{color:#dc2626}.preview-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px;color:#9ca3af}.preview-empty h3{margin:16px 0 8px;font-size:18px;font-weight:700;color:#6b7280}.preview-empty p{margin:0;font-size:14px}.empty-icon{color:#d1d5db}.preview-panel{flex:1;display:flex;flex-direction:column;min-height:0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;background:#1e3a5f;color:#fff}.preview-toolbar-title{font-weight:700;font-size:14px}.preview-controls{display:flex;align-items:center;gap:16px}.page-indicator{font-size:13px;font-weight:500}.zoom-controls{display:flex;align-items:center;gap:8px;background:#ffffff26;border-radius:6px;padding:2px 8px}.zoom-controls button{background:none;border:none;color:#fff;font-size:16px;cursor:pointer;padding:2px 6px;line-height:1}.zoom-controls button:disabled{opacity:.4;cursor:not-allowed}.zoom-controls span{font-size:12px;min-width:36px;text-align:center}.preview-canvas{flex:1;overflow:auto;padding:24px;display:flex;justify-content:center;align-items:flex-start;background-image:linear-gradient(#e5e7eb 1px,transparent 1px),linear-gradient(90deg,#e5e7eb 1px,transparent 1px);background-size:20px 20px;background-color:#f3f4f6;-webkit-user-select:none;user-select:none}.preview-scaler-wrap{flex-shrink:0}.preview-scaler{box-shadow:0 4px 24px #0000001f;transform-origin:top left;-webkit-user-select:none;user-select:none}.preview-scaler .flyer{-webkit-user-select:none;user-select:none}@media(max-width:900px){.app-layout{flex-direction:column}.sidebar{width:100%;max-width:none;min-width:0;max-height:50vh;border-right:none;border-bottom:1px solid #e5e7eb}}.flyer{width:816px;height:1056px;background:#fff;font-family:Poppins,Arial,Helvetica,sans-serif;font-weight:400;color:#1a1a1a;padding:28px 36px 16px;box-sizing:border-box;display:flex;flex-direction:column;position:relative}.accent-surface{background-color:var(--brand-color, #9b9b9b)}.flyer-logo-bar{width:46%;min-width:320px;height:66px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:18px;overflow:hidden}.flyer-logo-bar--has-logo{height:auto;min-height:66px;justify-content:flex-start;padding:4px 12px;overflow:visible}.flyer-logo-placeholder{font-weight:700;font-size:28px;color:#1a1a1a}.flyer-logo-img{max-width:90%;height:calc(var(--logo-base-height, 59px) * var(--logo-scale, 1));width:auto;object-fit:contain;object-position:left center}.flyer-hero{border-radius:16px;padding:36px 40px;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:300px;margin-bottom:22px;overflow:hidden}.flyer-hero-text{flex:1;min-width:0;max-width:58%}.flyer-hero-title{font-size:58px;font-weight:700;color:#fff;line-height:1.02;margin:0;letter-spacing:.5px}.flyer-hero-line{width:100%;height:2px;background:#fff;margin:12px 0 10px}.flyer-hero-subtitle{font-size:17px;font-weight:400;color:#fff;margin:0;line-height:1.35}.flyer-hero-icon{flex-shrink:0;width:42%;min-width:260px;height:260px;display:flex;align-items:center;justify-content:center;overflow:hidden}.flyer-hero-graphic{width:100%;height:100%;object-fit:contain;object-position:center;transform:scale(var(--hero-graphic-scale, 2.35));transform-origin:center center}.flyer-description{text-align:center;font-size:15px;line-height:1.5;margin:0 20px 20px;font-weight:400}.flyer-highlights-header{border-radius:10px;padding:10px 20px;text-align:center;margin-bottom:14px}.flyer-highlights-header span{color:#fff;font-weight:700;font-size:16px;letter-spacing:.5px}.flyer-highlights-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;margin-bottom:28px;padding:0 8px}.flyer-highlights-list{list-style:disc;padding-left:20px;margin:0;font-size:14px;line-height:1.55}.flyer-highlights-list li{margin-bottom:2px}.flyer-highlights-sublist{list-style:disc;padding-left:16px;margin:2px 0 0}.flyer-highlights-list strong{font-weight:700}.flyer-contact-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px;padding:0 4px}.flyer-contact-info{font-size:14px;line-height:1.6}.flyer-contact-info p{margin:0}.flyer-contact-name,.flyer-contact-title{font-weight:700;font-size:15px}.flyer-contact-line{display:flex;align-items:center;gap:6px}.flyer-contact-line svg{width:16px;height:16px;flex-shrink:0}.flyer-cta{display:flex;flex-direction:column;justify-content:center}.flyer-cta-title{font-size:26px;font-weight:700;margin:0 0 8px;line-height:1.2}.flyer-cta-sub{font-size:14px;margin:0;font-weight:400}.flyer-footer{display:flex;align-items:flex-end;gap:12px;margin-top:auto}.flyer-disclaimer{flex:1;padding:0 14px 0 0}.flyer-disclaimer p{font-size:9px;line-height:1.45;margin:0;color:#1a1a1a;font-weight:400}.equal-housing{display:flex;align-items:center;justify-content:center;flex-shrink:0}.equal-housing-img{display:block;object-fit:contain}.equal-housing-img--flyer{width:72px;height:auto}.equal-housing-img--small{width:48px;height:auto}
