:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic",sans-serif;color:#202b3c;background:#eef1f5;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid #dbe1e9;background:white;color:#263449;border-radius:7px;padding:9px 12px;font-weight:600}button:hover{background:#f0f4fc}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:#315fea;color:white;border-color:#315fea}.primary:hover{background:#234bd1}.danger{color:#b13847}.top{height:72px;background:#fff;display:flex;align-items:center;padding:0 24px;gap:20px;border-bottom:1px solid #dce2ec}.logo{display:flex;gap:12px;align-items:center;min-width:240px}.mark{background:#162b46;color:#fff;border-radius:10px;font-size:22px;width:40px;height:40px;display:grid;place-items:center}.logo strong{display:block;font-size:16px}.logo small{display:block;color:#78849a;font-size:10px;letter-spacing:.14em;margin-top:3px}.actions{display:flex;align-items:center;gap:7px;flex:1;justify-content:flex-end}.badge{font-size:10px;border:1px solid #d6def1;color:#4e6387;padding:4px 8px;border-radius:5px;white-space:nowrap}.workspace{height:calc(100vh - 105px);display:grid;grid-template-columns:245px minmax(280px,1fr) 320px}.left,.right{background:#fff;overflow:auto}.left{border-right:1px solid #dce2ec;padding:20px 14px}.right{border-left:1px solid #dce2ec;padding:20px}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:13px}.muted{color:#8792a4;font-size:12px}.section-row{padding:13px 10px;margin:5px 0;border:1px solid transparent;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:8px}.section-row.active{background:#eef3ff;border-color:#c9d8ff;color:#315fea}.section-row span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.section-row small{color:#9ca6b8}.row-controls{display:flex;gap:5px;justify-content:center;margin-top:16px;flex-wrap:wrap}.row-controls button{padding:6px 10px}.preview-area{overflow:hidden;display:flex;flex-direction:column;background:#e9edf3}.preview-tools{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;gap:12px}.switch{display:flex;background:#dce2eb;padding:3px;border-radius:8px}.switch button{background:transparent;border:0;padding:6px 16px;font-size:12px}.switch button.active{background:#fff;box-shadow:0 1px 4px #0001}.canvas{flex:1;min-height:0;padding:0 24px 24px;display:flex;justify-content:center}.canvas iframe{height:100%;width:100%;border:0;background:#fff;border-radius:5px;box-shadow:0 8px 35px #17233316;transition:width .2s}.canvas.mobile iframe{width:390px;max-width:100%}.right h3{margin:0 0 6px;font-size:15px}.group{border-top:1px solid #e9edf3;margin-top:20px;padding-top:18px}.group-title{font-size:11px;font-weight:800;color:#6f7d94;letter-spacing:.12em;margin-bottom:14px}.field{display:block;margin-bottom:14px;font-size:12px;color:#59667b}.field input,.field textarea,.field select{display:block;width:100%;padding:9px 10px;border:1px solid #dce2e9;border-radius:6px;color:#263449;background:#fff;margin-top:7px}.field textarea{resize:vertical;min-height:74px}.field input[type=color]{height:38px;padding:3px}.field input[type=checkbox]{width:auto;display:inline}.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hint{font-size:11px;color:#8792a4;line-height:1.7}.bottom{height:33px;background:#fff;border-top:1px solid #dce2ec;display:flex;align-items:center;justify-content:space-between;padding:0 24px;font-size:11px;color:#778498}.status{color:#427663}.toast{position:fixed;bottom:45px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#183044;color:#fff;border-radius:8px;z-index:50;box-shadow:0 4px 20px #0002}.hidden{display:none!important}dialog{border:0;border-radius:16px;padding:0;box-shadow:0 30px 100px #0014;max-width:1100px;width:94vw;max-height:90vh}dialog::backdrop{background:#17273bbb}.dialog-head{display:flex;justify-content:space-between;padding:24px 28px;border-bottom:1px solid #e6eaf0;align-items:center}.dialog-head h2{margin:0;font-size:22px}.dialog-head p{color:#7b879a;margin:8px 0 0;font-size:13px}.templates{padding:24px;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.template-card{border:1px solid #dce2e9;border-radius:10px;overflow:hidden}.thumb{height:190px;position:relative;background:#f4f5f7;overflow:hidden}.thumb iframe{width:1200px;height:750px;border:0;transform:scale(.28);transform-origin:top left;pointer-events:none}.template-info{padding:15px}.template-info strong{display:block;margin-bottom:5px}.template-info p{color:#8290a5;font-size:11px;margin:0 0 14px}.template-buttons{display:flex;gap:6px}.template-buttons button{font-size:12px;flex:1}.preview-dialog{width:95vw;max-width:1350px;height:92vh;max-height:92vh}.preview-dialog iframe{width:100%;height:calc(100% - 86px);border:0}.floating-preview-controls{display:flex;gap:10px}.image-preview{width:100%;border-radius:8px;margin-bottom:10px;max-height:160px;object-fit:contain;background:#f4f5f6}.quick-add{display:flex;gap:6px;margin-top:22px}.quick-add select{width:140px;border:1px solid #dce2e9;border-radius:6px;background:white}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #315fea;outline-offset:2px}@media(max-width:1100px){.workspace{grid-template-columns:190px minmax(250px,1fr) 270px}.top{padding:0 14px;gap:8px}.logo{min-width:180px}.actions{gap:3px}.actions button{font-size:12px;padding:8px}.badge{display:none}.canvas{padding:0 12px 14px}.templates{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.top{height:auto;flex-wrap:wrap;padding:12px}.actions{flex-wrap:wrap;justify-content:flex-start}.workspace{height:auto;display:flex;flex-direction:column}.left{max-height:220px;order:0}.preview-area{height:650px;order:1}.right{order:2}.bottom{height:auto;padding:12px;gap:10px}.templates{grid-template-columns:1fr}.thumb iframe{transform:scale(.32)}.preview-tools{padding:12px}.logo{flex:1}.dialog-head{padding:18px}.dialog-head h2{font-size:18px}}

.template-card .thumb{cursor:pointer}
#commonComponents{border-top:1px solid #e9edf3;margin-top:20px;padding-top:18px}#commonComponents button{display:block;width:100%;text-align:left;margin-bottom:8px;font-size:12px}.component-editor{padding:24px 32px;max-width:760px;margin:auto}.component-editor .field{font-size:13px}.component-editor .field input[type=checkbox]{margin-right:10px;width:20px;height:20px;vertical-align:middle}.form-field-editor{border:1px solid #dce5f0;border-radius:12px;padding:20px;margin:20px 0}.form-field-editor strong{display:block;margin-bottom:15px;font-size:13px}.component-notice{background:#f0f5fb;padding:18px;border-radius:9px;font-size:12px;line-height:1.8;color:#526781}

.logo-editor{margin:25px 0;padding:22px;border:1px solid #cbd9f4;border-radius:12px;background:#f7faff}.logo-editor h3{margin-top:0;font-size:18px}.logo-editor .image-preview{background:repeating-conic-gradient(#e6ebf2 0% 25%,white 0% 50%) 50%/20px 20px}

.seo-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:28px;padding:28px}.seo-group{border:1px solid #dce5ef;border-radius:12px;padding:20px;margin-bottom:18px}.seo-group>summary{font-size:16px;font-weight:700;cursor:pointer;margin-bottom:18px}.seo-group .hint{display:block;overflow-wrap:anywhere}.seo-card{background:#fff;border:1px solid #dce5ef;border-radius:12px;padding:18px;margin:18px 0;overflow-wrap:anywhere}.seo-card h3{color:#2357a4;margin:8px 0}.seo-card p{line-height:1.7;margin:8px 0}.seo-domain{color:#637789;font-size:12px}.seo-image{display:block;width:100%;max-height:220px;object-fit:contain;border-radius:8px;background:#eef3f6}#seoSummary{min-width:0}#seoSummary dl{font-size:12px;overflow-wrap:anywhere}#seoSummary dt{font-weight:700;margin-top:14px}#seoSummary dd{margin:4px 0;color:#637789}#seoLDPreview{white-space:pre-wrap;overflow-wrap:anywhere;background:#eef3f6;padding:16px;border-radius:8px;font-size:11px;line-height:1.7}@media(max-width:760px){.seo-layout{grid-template-columns:1fr;padding:18px}}

.seo-entry{width:100%;margin:14px 0;text-align:left}

#seoDialog{width:min(1150px,96vw)}#seoSummary pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#f2f5f8;padding:12px;line-height:1.6}.seo-favicon{width:48px;height:48px;object-fit:contain}.output-help{padding:8px 14px;font-size:12px;line-height:1.7;color:#5e6876}#exportHelp{max-width:740px}#exportHelp .export-body{padding:24px}.demo-notice{padding:14px;border:1px solid #d9d5e8;border-radius:10px;background:#f6f3fb;font-size:12px;line-height:1.7;margin-bottom:14px}
#seoSummary{position:sticky;top:68px;align-self:start;max-height:72vh;overflow:auto;padding:4px}#seoDialog .dialog-head{position:sticky;top:-1px;z-index:5;background:#fff}@media(max-width:760px){#seoSummary{position:static;max-height:none;overflow:visible}}

#videoDialog{width:min(1050px,95vw);max-height:94vh;overflow:auto} .video-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(270px,1.2fr);gap:24px;padding:20px} .video-preview{display:flex;flex-direction:column;align-items:center;gap:12px} #videoCanvas{display:block;width:auto;max-width:100%;height:420px;max-height:55vh;object-fit:contain;background:#eee;border-radius:8px} #videoResult{width:100%;max-height:440px;background:#10141d;border-radius:8px} #videoDownload{display:block;padding:12px 20px;border-radius:8px;background:#23725e;color:white;text-align:center;text-decoration:none;font-weight:700} #videoDownload[hidden]{display:none} #videoProgress{width:100%;height:18px} #videoDurations{max-height:220px;overflow:auto;padding:8px} #videoDurations label{font-size:12px} .video-help{color:#526270;font-size:13px;line-height:1.7} @media(max-width:720px){.video-layout{grid-template-columns:1fr}#videoCanvas{height:300px}}

.banner-builder-dialog{width:min(1120px,95vw);max-width:95vw;max-height:92vh;overflow:auto}.bb-grid{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:22px;padding:18px}.bb-fields{display:grid;gap:10px;align-content:start}.bb-fields .field{display:grid;gap:5px}.bb-fields input:not([type=checkbox]),.bb-fields select{max-width:100%;box-sizing:border-box}.bb-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bb-colors input{width:100%;height:42px}#bbCanvas{width:100%;height:auto;display:block;background:repeating-conic-gradient(#e9e9e9 0% 25%,#fff 0% 50%) 50% / 22px 22px;border:1px solid #ccc;border-radius:8px}.bb-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}@media(max-width:760px){.bb-grid{grid-template-columns:1fr}}

.bb-image-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 18px}.bb-image-tools label{display:grid;gap:4px;font-size:12px}.bb-image-tools input[type=range]{width:100%}.bb-image-tools input[type=file]{max-width:100%;font-size:12px}.bb-image-tools button{align-self:end}@media(max-width:700px){.bb-image-tools{grid-template-columns:1fr}}

.bb-size-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bb-size-fields input{width:100%;min-width:0}
