.header-link{border:0;background:#f5f3fa;border-radius:6px;padding:9px 12px;font-size:12px;white-space:nowrap;color:#544967}.builder-header{position:relative;gap:16px}.document-identity{flex:1}.document-identity span{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-status{margin-left:0}.builder-header #download-menu-button{min-height:37px;font-size:12px;padding:10px 14px;box-shadow:none;white-space:nowrap}.download-menu{position:absolute;right:24px;top:58px;width:260px;padding:6px;border:1px solid #e4dfed;border-radius:9px;background:#fff;box-shadow:0 16px 45px #30234222;z-index:20}.download-menu button{display:block;width:100%;text-align:left;border:0;background:white;border-radius:5px;padding:13px;color:#30293d}.download-menu button:hover{background:#f4f1fb}.download-menu strong{display:block;font-size:13px}.download-menu span{display:block;font-size:10px;color:#8b8398;margin-top:5px}.inspector-heading{display:grid;grid-template-columns:1fr auto;padding-bottom:22px}.inspector-kicker{grid-column:1/-1}.inspector-heading h1{font-size:25px;letter-spacing:-1px}.editor-history{display:flex;gap:3px;align-items:center}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e8e2ef;background:#fff;border-radius:6px;min-width:31px;min-height:31px;font-size:19px;color:#6d6180;padding:3px 7px}.icon-button:disabled{opacity:.35;cursor:default}.inspector-tabs{justify-content:space-between;gap:12px}.inspector-tabs button{flex:1}.editor-controls input[type=color]{padding:3px;width:44px;height:34px;cursor:pointer}.custom-colors{margin:26px 0 0;border:0;padding:0;display:flex;flex-wrap:wrap;gap:11px}.custom-colors legend{font-size:12px;color:#514b5d;margin-bottom:10px}.custom-colors label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:10px}.current-design{padding:12px;border:1px solid #e7e2ed;border-radius:8px;background:#f9f7fc}.current-design>img{width:100%;aspect-ratio:1.8;object-fit:cover;object-position:top;border-radius:4px}.current-design>div{margin-top:12px;display:flex;flex-direction:column;gap:5px}.current-design strong{font-size:13px}.current-design span{font-size:10px;color:#8c8298}.plain-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid #e2dbea;border-radius:6px;background:#fff;min-height:35px;padding:8px 12px;font-size:11px;color:#5d4e75;cursor:pointer}.plain-button:hover{background:#f2eefb}.current-design .plain-button{width:100%;margin-top:13px}.preview-actions{display:flex;align-items:center;gap:12px}.image-drop{display:flex!important;min-height:140px!important;margin:9px 0 0!important;background:#f8f6fc!important;border:1px dashed #ccc2df;border-radius:8px;align-items:center;justify-content:center;text-align:center;cursor:pointer;overflow:hidden}.image-drop img{width:100%;max-height:220px;object-fit:cover;display:block}.image-drop span{font-size:12px!important;color:#847297!important}.image-drop b{display:block;font-size:26px;font-weight:400;margin-bottom:8px}.image-drop small{display:block;margin-top:7px;font-size:10px;color:#a095af}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.image-control:focus-within .image-drop{outline:2px solid var(--editor-purple);outline-offset:3px}.section-editor{border:1px solid #e7e1ee;border-radius:8px;margin-bottom:12px;overflow:hidden}.section-editor summary{cursor:pointer;list-style:none;padding:15px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600;background:#faf8fd}.section-editor summary::-webkit-details-marker{display:none}.section-editor summary:after{content:'＋';color:#a396b7}.section-editor[open] summary:after{content:'−'}.section-editor-inner{padding:0 14px 16px}.section-toggle{display:flex!important;align-items:center;justify-content:flex-start!important;gap:8px!important;margin:13px 0 0!important;font-size:11px!important}.section-toggle input{width:15px;min-height:15px;accent-color:var(--editor-purple)}.item-divider{height:1px;background:#ece7f3;margin-top:19px}.field-error{border-color:#c47a53!important}.field-error-note{color:#a45534;font-size:10px;line-height:1.6;margin-top:8px}.mobile-editor-switch{display:none}
.workspace-dialog{width:min(1120px,calc(100% - 48px));max-height:calc(100dvh - 56px);padding:30px;border:1px solid #e5dfed;border-radius:14px;color:#2c2437;background:#fbfafc;box-shadow:0 30px 100px #23133240;overflow:auto}.workspace-dialog::backdrop,.full-preview-dialog::backdrop{background:#29203977;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.dialog-heading .inspector-kicker{font-size:10px;letter-spacing:1.4px;color:#a194b1;margin-bottom:10px}.dialog-heading h2{font-size:32px;font-weight:650;letter-spacing:-1.1px}.dialog-close{font-size:23px;min-width:34px;min-height:34px;flex-shrink:0}.dialog-description{font-size:13px;color:#8b7e9b;line-height:1.8;margin-top:14px}.design-filters{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 20px}.design-filters button{border:1px solid #e5dfec;border-radius:5px;background:white;color:#8a7a9e;font-size:12px;padding:9px 15px;min-height:37px}.design-filters button[aria-pressed=true]{background:#292032;color:white;border-color:#292032}.design-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.design-choice{border:1px solid #e3dcea;background:white;border-radius:8px;overflow:hidden;text-align:left;padding:0;position:relative;color:#372b49;min-width:0}.design-choice img{width:100%;aspect-ratio:1.7;object-fit:cover;object-position:top;display:block;border-bottom:1px solid #ebe5f0}.design-choice-text{padding:13px 14px;display:block}.design-choice strong{display:block;font-size:14px;font-weight:600}.design-choice small{display:block;font-size:10px;color:#9b8dab;margin-top:5px}.design-choice.selected{outline:2px solid #6a54db;outline-offset:2px}.design-choice.selected:after{content:'✓';position:absolute;right:12px;top:12px;background:#6a54db;color:white;border-radius:50%;width:25px;height:25px;text-align:center;line-height:25px}.dialog-footer{position:sticky;bottom:-30px;background:#fbfafcf2;display:flex;align-items:center;gap:15px;border-top:1px solid #e7e1ee;padding:20px 0 0;margin-top:27px;z-index:3}.dialog-footer p{font-size:11px;color:#9b8dab;margin-right:auto}.brief-layout{display:grid;grid-template-columns:1fr 1fr;gap:36px;margin-top:26px}.brief-layout>*,.brief-preview{min-width:0}.brief-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:11px;color:#8b7e9b}.brief-preview-heading .plain-button{font-size:11px;min-height:32px;padding:6px 10px}.brief-preview-viewport{position:relative;width:100%;height:clamp(300px,calc(100dvh - 370px),520px);overflow:hidden;border:1px solid #e5dfec;border-radius:6px;background:#fff}.brief-preview-viewport iframe{position:absolute;left:0;top:0;display:block;border:0;transform-origin:top left;background:#fff}.brief-preview .brief-preview-hint{font-size:11px;line-height:1.6;margin:0 0 10px;color:#786785}.brief-preview p{font-size:12px;color:#9b8dab;margin-top:12px}.brief-fields label{display:block;margin:0 0 8px;font-size:12px;font-weight:550;color:#68577b}.brief-fields input,.brief-fields textarea{width:100%;padding:12px;border:1px solid #ded5e8;border-radius:6px;background:white;font-size:14px;color:#3e2e50;margin-bottom:19px;line-height:1.6;resize:vertical}.brief-fields #new-title{font-size:23px;line-height:1.45;font-weight:600;letter-spacing:-.5px}.projects-dialog{width:min(820px,calc(100% - 48px))}.project-actions{display:flex;gap:12px;margin:24px 0}.file-label{font-size:12px}.projects-list{display:grid;gap:12px}.project-row{display:grid;grid-template-columns:95px minmax(0,1fr) auto;gap:17px;align-items:center;border:1px solid #e4dceb;border-radius:8px;padding:13px;background:white}.project-row>img{width:95px;height:70px;object-fit:cover;object-position:top;border-radius:4px}.project-meta{min-width:0}.project-meta input{width:100%;border:1px solid transparent;border-radius:4px;font-size:14px;font-weight:600;padding:5px 3px;color:#473755;background:white;min-width:0}.project-meta input:hover,.project-meta input:focus{border-color:#d5c9e1}.project-meta p{font-size:10px;color:#a195ad;margin-top:6px;line-height:1.7}.project-row-actions{display:flex;gap:5px;flex-wrap:wrap;max-width:180px;justify-content:flex-end}.project-row-actions button{font-size:10px;min-height:32px;padding:7px 9px}.project-row.active{border-color:#af9ee7;background:#faf8ff}.restore-button{margin-top:16px}.empty-projects{padding:35px;text-align:center;color:#a092af;font-size:13px;background:#f5f1fa;border-radius:8px}.full-preview-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:white}.full-preview-dialog[open]{display:flex;flex-direction:column}.full-preview-bar{display:flex;align-items:center;gap:20px;padding:14px 24px;background:#fff;border-bottom:1px solid #e7e1ee;color:#584866;min-height:61px;flex-shrink:0}.full-preview-bar strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}#full-preview-close{flex:0 0 auto;white-space:nowrap;min-width:44px;min-height:44px}.full-preview-bar .full-preview-close-label{color:inherit;margin:0}.full-preview-bar .full-preview-close-icon{font-size:22px;line-height:1;color:inherit;margin:0}.full-preview-bar span{font-size:11px;color:#a295b0;margin-left:auto}.full-preview-dialog iframe{width:100%;flex:1;min-height:0;border:0}
@media(max-width:1050px){.preview-actions{gap:7px}.canvas-label{display:none}.builder-header{gap:11px}.document-identity span{max-width:160px}.header-link{font-size:11px}.canvas-document{max-width:150px}.canvas-document #current-template-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:760px){.builder-body{padding-bottom:62px}.builder-header{min-height:68px;flex-wrap:nowrap;padding:11px 14px;gap:9px;position:sticky;top:0;z-index:15}.builder-header .document-identity{display:none}.builder-header .save-status{margin-left:auto;font-size:9px;max-width:93px}.builder-header #download-menu-button{font-size:10px;padding:9px 11px}.header-link{padding:9px 10px;font-size:11px}.download-menu{right:13px;top:58px}.inspector-heading{padding:25px 21px 22px;grid-template-columns:1fr auto;gap:7px}.inspector-kicker{grid-column:1/-1}.inspector-heading h1{grid-column:1;font-size:27px}.editor-history{grid-column:2;grid-row:2}.editor-controls{height:calc(100dvh - 130px);overflow-y:auto}.inspector-tabs{position:sticky;top:0}.editor-preview{display:none;height:calc(100dvh - 130px);min-height:0;overflow:hidden}.builder-body.preview-mode .editor-controls{display:none}.builder-body.preview-mode .editor-preview{display:flex}.editor-toolbar{padding:12px 14px;min-height:58px}.preview-actions{gap:8px}.canvas-document{max-width:95px;font-size:10px}.canvas-document .page-symbol{display:none}.preview-actions>.plain-button{font-size:10px;padding:7px 9px}.viewport-switch button{font-size:9px;padding:6px 7px}.canvas-area{padding:16px 13px;min-height:0;overflow:auto;flex:1}.preview-device,.preview-device.mobile{height:calc(100dvh - 248px);min-height:360px;flex:1;width:100%}.preview-device iframe,.preview-device.mobile iframe{height:100%;min-height:350px}.preview-device.mobile{border-width:5px;border-radius:20px}.canvas-caption{display:none}.mobile-editor-switch{position:fixed;bottom:0;left:0;right:0;padding:9px 20px;min-height:62px;background:#fff;border-top:1px solid #e7dfef;display:flex;gap:8px;z-index:14}.mobile-editor-switch button{width:50%;border:0;border-radius:6px;background:#f5f1fa;color:#9a89ad;font-size:13px;min-height:43px}.mobile-editor-switch button[aria-pressed=true]{background:#6a55db;color:#fff}.workspace-dialog{width:calc(100% - 24px);padding:22px;max-height:calc(100dvh - 24px);border-radius:10px}.dialog-heading h2{font-size:26px}.dialog-description{font-size:12px}.design-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.design-choice strong{font-size:12px}.design-choice small{font-size:9px;line-height:1.6}.design-choice-text{padding:11px}.design-filters{gap:6px;margin-block:18px}.design-filters button{font-size:10px;padding:8px 10px}.dialog-footer{bottom:-22px;gap:9px;padding-top:15px}.dialog-footer p{font-size:10px;max-width:160px}.dialog-footer .button{font-size:11px;gap:8px;padding:10px 12px}.brief-layout{display:block;margin-top:22px}.brief-preview{display:block;margin-bottom:25px}.brief-preview-viewport{height:260px}.brief-preview-heading{margin-bottom:9px}.brief-preview #brief-preview-name{font-size:11px;margin-top:7px}.brief-fields input,.brief-fields textarea{font-size:16px}.project-row{grid-template-columns:67px minmax(0,1fr);gap:10px;padding:11px}.project-row>img{width:67px;height:65px}.project-row-actions{grid-column:1/-1;max-width:none;justify-content:flex-end}.project-meta input{font-size:14px}.project-actions{flex-wrap:wrap}.full-preview-bar{padding:11px 14px;gap:10px}.full-preview-bar>span,.full-preview-bar .full-preview-close-label{display:none}.full-preview-bar strong{margin-right:auto;font-size:12px}.custom-colors label{font-size:12px}.section-editor summary{font-size:14px}}
@media(max-width:390px){.workspace-dialog{padding:18px}.dialog-heading h2{font-size:23px}.dialog-footer{bottom:-18px;flex-wrap:wrap}.dialog-footer p{max-width:none;width:100%;margin-bottom:3px}.design-library{gap:11px}.builder-header .save-status{max-width:87px}}

.preview-device{position:relative}.preview-device iframe{position:absolute;left:0;top:0;transform-origin:top left;min-height:0!important}.preview-device.mobile iframe{min-height:0!important}

#create-dialog .dialog-heading{position:sticky;top:-30px;z-index:5;background:#fbfafc;margin:-30px -30px 0;padding:30px 30px 0}#create-dialog .dialog-heading>div{min-width:0}#create-dialog .dialog-close{min-width:44px;min-height:44px}#create-dialog .dialog-close:focus-visible,#full-preview-close:focus-visible{outline:2px solid var(--editor-purple);outline-offset:3px}@media(max-width:760px){#create-dialog .dialog-heading{top:-22px;margin:-22px -22px 0;padding:22px 22px 0}}@media(max-width:390px){#create-dialog .dialog-heading{top:-18px;margin:-18px -18px 0;padding:18px 18px 0}}
