/* Formy.li Studio 3.0 — actual Google Forms-inspired question canvas.
 * Builder-only overrides; public/manager content and data remain untouched.
 */
#formyly-root.fy29-design.fy29-editor-open{
 --fy3-purple:#673ab7;--fy3-border:#dadce0;--fy3-text:#202124;--fy3-bg:#f0ebf8;
 background:var(--fy3-bg)!important;color:var(--fy3-text)!important;
}
#formyly-root.fy29-design.fy29-editor-open .fy29-appbar{
 box-shadow:none!important;border-bottom:0!important;min-height:62px!important;padding:7px max(18px,calc((100vw - 1300px)/2))!important;
}
#formyly-root.fy29-design.fy29-editor-open .fy29-top-tabs{box-shadow:0 1px 2px #24163217!important;min-height:48px!important;gap:35px!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-top-tabs button{font-size:14px!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-top-left{flex:1!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-document-name{width:min(400px,38vw)!important;max-width:400px!important}
#formyly-root.fy29-design.fy29-editor-open #fy-builder-form{max-width:770px!important;margin:23px auto 0!important}
#formyly-root.fy29-design.fy29-editor-open #fy-builder-form .fy-main-editor{background:transparent!important;padding:0!important}
#formyly-root.fy29-design.fy29-editor-open .fy27-form-intro{padding:22px 24px 16px!important;border:1px solid var(--fy3-border)!important;border-top:10px solid var(--fy3-purple)!important;border-radius:10px!important;min-height:0!important;margin-bottom:12px!important}
#formyly-root.fy29-design.fy29-editor-open .fy27-form-intro input[name=title]{font-size:31px!important;font-weight:550!important;line-height:1.2!important;letter-spacing:-.4px!important;padding:3px 0 10px!important;border-bottom:1px solid #fff!important}
#formyly-root.fy29-design.fy29-editor-open .fy27-form-intro textarea[name=description]{min-height:44px!important;font-size:14px!important;resize:vertical!important;margin:0!important}
#formyly-root.fy29-design.fy29-editor-open .fy27-form-intro input:focus,
#formyly-root.fy29-design.fy29-editor-open .fy27-form-intro textarea:focus{border-bottom:2px solid var(--fy3-purple)!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card{padding:17px 23px 14px!important;border-radius:10px!important;border:1px solid var(--fy3-border)!important;margin:0 0 12px!important;background:#fff!important;box-shadow:0 1px 2px #0000000c!important;min-height:100px!important;}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card.fy27-selected,
#formyly-root.fy29-design.fy29-editor-open .fy-field-card:focus-within{padding-left:18px!important;border-left:6px solid var(--fy3-purple)!important;border-top-color:#d7c8f0!important;border-right-color:#d7c8f0!important;border-bottom-color:#d7c8f0!important;box-shadow:0 2px 6px #38205912!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card .fy27-question-head{position:absolute!important;top:10px!important;right:12px!important;margin:0!important;min-height:32px!important;z-index:1}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card .fy27-question-type{display:none!important;width:185px!important;max-width:185px!important;font-size:13px!important;min-height:36px!important;border:1px solid #dadce0!important;color:#3c4043!important;border-radius:6px!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card.fy27-selected .fy27-question-type,
#formyly-root.fy29-design.fy29-editor-open .fy-field-card:focus-within .fy27-question-type{display:block!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card .field-label{display:block!important;width:calc(100% - 55px)!important;margin:5px 0 4px!important;border:0!important;border-bottom:1px solid transparent!important;border-radius:0!important;background:transparent!important;font-size:16px!important;line-height:1.4!important;font-weight:600!important;padding:7px 0!important;color:#202124!important;box-shadow:none!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card.fy27-selected .field-label{width:calc(100% - 210px)!important;background:#f6f3fc!important;padding:9px 10px!important;border-bottom:2px solid var(--fy3-purple)!important;border-radius:5px 5px 0 0!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card .fy27-answer-sample{font-size:13px!important;color:#5f6368!important;max-width:66%!important;padding:9px 0 8px!important;border-color:#dadce0!important;min-height:25px!important;margin:0 0 1px!important;}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card .fy27-question-head .fy-drag{opacity:.58!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card .fy29-choices-editor{margin-top:6px!important;min-height:0!important;padding:4px 0 4px!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card:not(.fy27-selected) .fy29-choice-row input{pointer-events:none!important;color:#5f6368!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card:not(.fy27-selected) .fy29-choice-row button,
#formyly-root.fy29-design.fy29-editor-open .fy-field-card:not(.fy27-selected) .fy29-add-choice{display:none!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card .fy27-question-bottom{border-top:1px solid #e8eaed!important;margin-top:15px!important}
#formyly-root.fy29-design.fy29-editor-open .fy-field-card .fy27-extra summary{color:#5f6368!important;font-size:12px!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-event-summary{background:#fff!important;border-color:#dadce0!important;color:#202124!important;box-shadow:none!important;border-radius:10px!important;padding:16px 18px!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-event-glyph{color:var(--fy3-purple)!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-event-summary small{color:#5f6368!important}
#formyly-root.fy29-design.fy29-editor-open .fy27-add-trigger{background:#fff!important;border:1px dashed #b9abd4!important;color:#673ab7!important;border-radius:10px!important;min-height:48px!important;font-weight:600!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-float-tools{position:absolute;top:126px;left:calc(100% + 13px)!important;right:auto!important;bottom:auto!important;flex-direction:column!important;padding:7px 4px!important;border-radius:10px!important;border-color:#dadce0!important;z-index:15!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-float-tools button{font-size:22px!important;min-height:39px!important;min-width:40px!important}
#formyly-root.fy29-design.fy29-editor-open .fy27-savebar{background:#fff!important;border:1px solid var(--fy3-border)!important;border-radius:10px!important;margin-top:14px!important;padding:13px 19px!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-responses-placeholder{border-color:#dadce0!important}
#formyly-root.fy29-design.fy29-editor-open .fy29-shortener{background:#f9f5ff!important}
/* Hide the toolbar on non-questions tabs, even if the old 2.7 nav is hidden. */
#formyly-root.fy29-design.fy29-editor-open[data-fy29-current-tab="settings"] .fy29-float-tools,
#formyly-root.fy29-design.fy29-editor-open[data-fy29-current-tab="events"] .fy29-float-tools,
#formyly-root.fy29-design.fy29-editor-open[data-fy29-current-tab="responses"] .fy29-float-tools,
#formyly-root.fy29-design.fy29-editor-open[data-fy29-current-tab="preview"] .fy29-float-tools{display:none!important}
@media(max-width:850px){
 #formyly-root.fy29-design.fy29-editor-open #fy-builder-form{width:calc(100% - 30px)!important;max-width:650px!important;margin:14px auto 0!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-float-tools{position:fixed!important;top:auto!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;right:15px!important;left:auto!important;box-shadow:0 3px 18px #38204e28!important;flex-direction:column!important;overflow:visible!important;border-radius:14px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-float-tools:not(.fy3-open) button:not([data-fy29-tool="add"]){display:none!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-float-tools button[data-fy29-tool="add"]{background:#673ab7!important;color:#fff!important;font-size:28px!important;min-width:45px!important;min-height:45px!important;border-radius:11px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-float-tools.fy3-open button{display:grid!important}
 #formyly-root.fy29-design.fy29-editor-open .fy-field-card.fy27-selected .field-label{width:100%!important;padding-right:10px!important;margin-top:37px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy-field-card.fy27-selected .fy27-question-head{top:7px!important}
}
@media(max-width:650px){
 #formyly-root.fy29-design.fy29-editor-open .fy29-appbar{padding:7px 9px!important;gap:4px!important;min-height:54px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-logo .fy27-brand-mark svg{width:25px!important;height:25px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-document-name{width:85px!important;font-size:12px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-separator{margin:0 4px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-theme{display:none!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-top-tabs{gap:15px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-top-tabs button{font-size:13px!important}
 #formyly-root.fy29-design.fy29-editor-open #fy-builder-form{width:calc(100% - 20px)!important;margin:12px auto 0!important;padding-bottom:65px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy27-form-intro{padding:16px 17px 9px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy27-form-intro input[name=title]{font-size:23px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy27-form-intro textarea[name=description]{font-size:13px!important;min-height:34px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy-field-card{padding:14px 17px!important;min-height:92px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy-field-card.fy27-selected{padding-left:12px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy-field-card .field-label{width:calc(100% - 36px)!important;font-size:15px!important;margin:4px 0!important}
 #formyly-root.fy29-design.fy29-editor-open .fy-field-card .fy27-answer-sample{max-width:90%!important;font-size:12px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy-field-card .fy27-question-type{width:170px!important;max-width:170px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-event-summary{padding:14px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-event-summary small{font-size:11px!important}
 #formyly-root.fy29-design.fy29-editor-open .fy27-savebar{margin-bottom:18px!important}
}
#formyly-root.fy29-design.fy29-editor-open .fy29-float-tools .fy3-more-tools{display:none!important}
@media(max-width:850px){
 #formyly-root.fy29-design.fy29-editor-open .fy29-float-tools .fy3-more-tools{display:grid!important;border:1px solid #eee!important;border-radius:10px!important;font-size:22px!important;min-height:37px!important;color:#5f6368!important}
 #formyly-root.fy29-design.fy29-editor-open .fy29-float-tools.fy3-open .fy3-more-tools{order:-1}
}
@media(max-width:850px){
 #formyly-root.fy29-design.fy29-editor-open .fy29-float-tools:not(.fy3-open) button.fy3-more-tools{display:grid!important}
}
