/* A shared application shell; recipient and account data flows are unchanged. */
body .builder-topbar{height:auto;min-height:78px;display:flex;flex-wrap:wrap;gap:12px;padding:14px 26px;max-width:100%;}
body .builder-topbar .logo{flex:0 0 auto;font-size:1.6rem}
body .builder-topbar .builder-mode-switch{flex:0 1 auto;min-width:0;max-width:100%;order:0}
body .builder-topbar .top-actions{display:flex;flex:1 1 420px;min-width:0;max-width:100%;justify-content:flex-end;flex-wrap:wrap;overflow:visible;width:auto;gap:8px;margin-left:auto}
body .builder-topbar .local-pill{display:none}
body .builder-topbar .top-actions button{white-space:nowrap;padding:10px 12px;font-size:.875rem}
body .builder-topbar .language-select{width:116px;min-width:0}
body .free-service-notice{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:0;padding:9px 16px;font-size:.8125rem;line-height:1.4;background:#edf5fc;color:#486177}
body .workspace{grid-template-columns:240px minmax(0,1fr);max-width:1600px;background:#f3f7fc}
body .workspace>.toolbox{padding:24px 20px;min-width:0}
body .toolbox-head h1{font-size:1.35rem;margin:10px 0;line-height:1.2}
body .toolbox-head p{font-size:.8125rem;margin-bottom:12px}
body .toolbox .toolbox-list{margin-top:16px;gap:6px}
body .toolbox .tool-button{min-height:44px;padding:8px 10px;font-size:.875rem;gap:8px}
body .toolbox .tool-icon{width:28px;height:28px;font-size:1rem}
body .usage-pricing{margin:6px 0 10px}
body .usage-pricing summary{font-size:.8125rem;padding:10px}
body .business-privacy-link{font-size:.75rem;margin:0 0 16px}
body .toolbox-bottom{display:none}
body .editor{padding:22px clamp(18px,3vw,48px) 32px;min-width:0}
.workspace-filebar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-bottom:18px}
.workspace-filebar button{font-size:.8125rem;padding:9px 12px;min-height:40px}
body .editor-top{margin-bottom:14px;max-width:900px;margin-left:auto;margin-right:auto}
body .editor-top h2{font-size:1.15rem;margin:4px 0}
body .editor-top .reset-button{padding:8px 10px;font-size:.75rem}
.workspace-quickstart{display:flex;flex-wrap:wrap;gap:7px;max-width:900px;margin:0 auto 10px}
.workspace-chip{border:1px solid #cfdce9;background:#fff;color:#355777;border-radius:20px;padding:7px 12px;font:inherit;font-size:.8125rem;min-height:36px;text-align:left}
.workspace-chip:hover{border-color:#006be6;background:#eaf4ff}
.workspace-storage{font-size:.75rem;color:#62738a;margin:8px auto 15px;max-width:900px;line-height:1.5}
body .editor>.workspace-filebar{max-width:900px;margin-left:auto;margin-right:auto}
body .paper{max-width:900px}
body .paper-inner{padding:32px clamp(22px,3vw,44px)}
body .paper-header{margin-bottom:20px}
.workspace-form-options{margin:14px 0 18px;border-block:1px solid #e8edf3;padding:10px 0;font-size:.8125rem;color:#52677d}
.workspace-form-options summary,.workspace-guide>summary,.field-settings>summary{cursor:pointer;padding:6px 0;font-weight:650}
.workspace-form-options[open] summary{margin-bottom:10px}
body .field-list{margin-top:16px;gap:12px}
body .field-card{padding:14px 16px}
body .field-head{margin-bottom:6px}
body .field-card>.editor-caption{margin-bottom:3px}
body .field-card>.editor-caption .field-label{margin-bottom:4px}
.field-settings{color:#52677d;font-size:.8125rem;margin-top:5px}
.field-settings>summary{font-weight:500}
.field-settings[open]{padding-bottom:8px}
.field-settings[open]>summary{margin-bottom:9px}
.field-settings .editor-caption{margin-top:10px}
body .field-card .field-footer{margin-top:6px}
.workspace-guide{max-width:900px;margin:24px auto 0;border-top:1px solid #dce5ee;padding-top:12px;color:#52677d;font-size:.875rem}
.workspace-guide-content{padding:18px 0}
.workspace-guide-content h2{font-size:1.2rem;margin:0 0 20px}
.workspace-guide-content .side-step{margin-bottom:16px}
.workspace-guide-content .side-note{font-size:.8125rem;line-height:1.5}
body .document-workspace{grid-template-columns:240px minmax(0,1fr)}
body .document-sidebar{padding:24px 20px}
body .document-sidebar .document-sidebar-actions>button:nth-child(-n+4){display:none}
body .document-stage{min-width:0}
body .document-stage .workspace-storage{max-width:none;margin:0 0 14px}
body .document-stage .workspace-filebar{margin-bottom:8px}
body .document-paper .doc-text:empty{min-height:90px;cursor:text}
body .document-paper .doc-text:empty::before{color:#8a96a4}
body .workspace-filling .free-service-notice{display:none}
@media(max-width:1000px){body .builder-topbar .top-actions{flex-basis:100%;justify-content:flex-end}body .builder-topbar .builder-mode-switch{margin-left:auto}body .workspace{grid-template-columns:210px minmax(0,1fr)}body .document-workspace{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:750px){
 body .builder-topbar{display:flex;min-height:0;padding:12px 14px;gap:10px}
 body .builder-topbar .logo{font-size:1.35rem}
 body .builder-topbar .builder-mode-switch{order:2;width:100%;flex:1 1 100%;margin:0;justify-content:center}
 body .builder-topbar .builder-mode-switch button{flex:1;padding:8px 5px;font-size:.8125rem;min-width:0}
 body .builder-topbar .top-actions{flex:1 1 auto;max-width:100%;width:auto;gap:6px;justify-content:flex-end}
 body .builder-topbar .language-select{width:100px;font-size:16px}
 body:not(.document-mode):not(.project-mode) .builder-topbar .top-actions{flex-basis:100%}
 body .builder-topbar .top-actions button{padding:9px 10px;font-size:.8125rem;min-height:40px}
 body .builder-topbar #libraryButton{flex:1;white-space:normal}
 body .free-service-notice{font-size:.75rem;padding:7px 10px;gap:5px}
 body .workspace{display:flex;flex-direction:column}
 body .workspace>.toolbox{padding:14px;border:0;border-bottom:1px solid #dde5ed}
 body .toolbox-head h1{font-size:1.1rem;margin:0 0 6px}
 body .toolbox-head h1 br{display:none}
 body .toolbox-head p{margin:0 0 8px}
 body .toolbox .toolbox-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:10px}
 body .toolbox .tool-button{flex-direction:column;justify-content:center;padding:6px 2px;gap:3px;font-size:.6875rem;min-height:58px;overflow-wrap:anywhere;text-align:center}
 body .toolbox .tool-icon{height:24px;width:24px;font-size:.875rem}
 body .toolbox .usage-pricing{margin:0 0 10px;display:block}
 body .toolbox .usage-pricing summary{padding:8px 10px}
 body .business-privacy-link{display:block;margin:0 0 12px}
 body .toolbox .use-case-nav{display:none}
 body .editor{padding:14px 10px 24px}
 .workspace-filebar{gap:5px;margin-bottom:12px}
 .workspace-filebar button{padding:8px;font-size:.75rem;flex:1 1 auto}
 .workspace-filebar button:last-child{flex-basis:100%}
 body .editor-top{gap:8px;margin-bottom:10px}
 body .editor-top h2{font-size:1rem}
 body .editor-top .reset-button{max-width:145px;white-space:normal}
 .workspace-chip{font-size:.75rem;padding:6px 9px;min-height:34px}
 .workspace-storage{font-size:.75rem;margin-bottom:10px}
 body .paper-inner{padding:22px 16px}
 body .field-card{padding:12px}
 body .field-card .field-footer{flex-wrap:wrap}
 body .field-card input,body .field-card textarea,body .field-card select{font-size:16px}
 body .field-card .field-footer>input{width:100%}
 body .document-workspace{display:block}
 body .document-sidebar{padding:12px 14px}
 body .document-sidebar.doc-more-open .document-sidebar-actions>button:nth-child(-n+4){display:none}
 body .document-mode .builder-topbar .top-actions{max-width:none}
 body .document-stage .workspace-filebar{margin-bottom:8px}
 body .document-stage .workspace-storage{font-size:.75rem}
}
@media(prefers-reduced-motion:reduce){.workspace *{scroll-behavior:auto!important}}
/* Override legacy small-screen hiding: filling and account access stay reachable. */
@media(max-width:750px){
 body .builder-topbar .top-actions .subtle-button{display:inline-flex;align-items:center;justify-content:center}
 body .free-service-notice>strong,body .free-service-notice>span{width:auto}
 body .toolbox .tool-button{white-space:normal;line-height:1.2}
 body .toolbox .tool-button>span:last-child{min-width:0;max-width:100%;overflow-wrap:anywhere}
}
/* Desktop form: fluid paper fills the viewport between equally sized sidebars. */
.workspace-controlrail{display:contents}
@media(min-width:1000px){
 body #builderView{width:100%;max-width:none;grid-template-columns:240px minmax(0,1fr)}
 body #builderView .editor{display:grid;grid-template-columns:minmax(0,1fr) 240px;column-gap:24px;row-gap:14px;align-content:start;align-items:start;justify-content:center;padding:26px 24px 32px}
 body #builderView .editor>.paper{grid-column:1;grid-row:1;width:100%;max-width:none;margin:0}
 body #builderView .workspace-controlrail{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:18px;min-width:0;padding:24px 20px;background:#f4f8fc;border:1px solid #e1e9f2;border-radius:12px}
 body #builderView .workspace-controlrail .editor-top{order:0;display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;width:100%}
 body #builderView .workspace-controlrail .editor-top h2{font-size:1.15rem;margin:4px 0 0}
 body #builderView .workspace-controlrail .editor-top .eyebrow{font-size:.72rem}
 body #builderView .workspace-controlrail .reset-button{font-size:.75rem;padding:8px 10px;white-space:normal;line-height:1.35}
 body #builderView .workspace-controlrail .workspace-filebar{order:1;display:grid;grid-template-columns:1fr;gap:6px;margin:0;width:100%;padding-bottom:15px;border-bottom:1px solid #dfe7f0}
 body #builderView .workspace-controlrail .workspace-filebar button{width:100%;min-height:44px;padding:8px 10px;font-size:.875rem;line-height:1.35;text-align:left;white-space:normal}
 body #builderView .workspace-controlrail .workspace-quickstart{order:2;display:grid;gap:6px;margin:0;width:100%}
 body #builderView .workspace-controlrail .workspace-chip{min-height:44px;padding:8px 10px;font-size:.875rem;line-height:1.35;border-radius:7px;width:100%}
 body #builderView .workspace-controlrail .workspace-storage{order:3;font-size:.75rem;line-height:1.5;margin:0;color:#66768b}
 body #builderView .editor>.help-line{grid-column:1;grid-row:2;margin:0;width:100%}
 body #builderView .editor>.workspace-guide{grid-column:1/-1;grid-row:3;width:100%;max-width:none;margin:0}
}
/* Keep mode buttons in the same header column in every desktop/tablet mode. */
@media(min-width:751px){
 body .builder-topbar{display:grid;grid-template-columns:210px auto minmax(0,1fr)}
 body .builder-topbar .builder-mode-switch{margin-left:0}
 body .builder-topbar .top-actions{grid-column:3}
}
@media(min-width:751px) and (max-width:1050px){
 body .builder-topbar{grid-template-columns:180px auto minmax(0,1fr)}
}
