/* Studio 3.1: single add action, lean question editor, compact mobile layout. */
#formyly-root.fy31-clean.fy29-editor-open .fy29-float-tools,
#formyly-root.fy31-clean.fy29-editor-open .fy29-event-summary,
#formyly-root.fy31-clean.fy29-editor-open .fy27-add-menu,
#formyly-root.fy31-clean.fy29-editor-open .fy27-native-tools{display:none!important}
#formyly-root.fy31-clean.fy29-editor-open .fy29-top-tabs{justify-content:center!important;gap:8px!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none!important;padding:0 12px!important}
#formyly-root.fy31-clean.fy29-editor-open .fy29-top-tabs button{flex:0 0 auto!important;padding:12px 13px!important;white-space:nowrap!important;color:#5f6368!important}
#formyly-root.fy31-clean.fy29-editor-open .fy29-top-tabs button.is-active{color:#673ab7!important}
#formyly-root.fy31-clean.fy29-editor-open .fy27-add-bar{margin:10px 0 8px!important}
#formyly-root.fy31-clean.fy29-editor-open .fy27-add-trigger{
 background:#fff!important;border:1px solid #d7cde7!important;border-radius:11px!important;
 box-shadow:0 1px 2px rgba(35,25,55,.04)!important;color:#673ab7!important;
 min-height:48px!important;padding:10px 16px!important;font-size:14px!important;font-weight:650!important;
}
#formyly-root.fy31-clean.fy29-editor-open .fy27-add-trigger:hover{background:#f6f1ff!important;border-color:#b5a1db!important}
#formyly-root.fy31-clean.fy29-editor-open .fy27-add-trigger span{font-size:20px!important}
#formyly-root.fy31-clean.fy29-editor-open .fy27-savebar{
 padding:9px 7px!important;border:0!important;box-shadow:none!important;
 background:transparent!important;margin:6px auto 14px!important;border-radius:0!important;
 max-width:770px!important;
}
#formyly-root.fy31-clean.fy29-editor-open .fy27-savebar>.fy-switch{
 padding:7px 9px!important;font-size:12px!important;line-height:1.4!important;
 color:#63666f!important;align-items:center!important;background:transparent!important;
}
#formyly-root.fy31-clean.fy29-editor-open .fy27-savebar>.fy-switch input{flex-shrink:0!important}
#formyly-root.fy31-clean.fy29-editor-open .fy27-savebar a{font-size:inherit!important}
#formyly-root.fy31-clean.fy29-editor-open .fy-field-card{margin-bottom:10px!important;box-shadow:0 1px 1px #20212408!important}
#formyly-root.fy31-clean.fy29-editor-open .fy-field-card .fy27-extra{margin-top:3px!important}
#formyly-root.fy31-clean.fy29-editor-open .fy-field-card:not(.fy27-selected) .fy27-extra{display:none!important}
#formyly-root.fy31-clean.fy29-editor-open #fy-builder-form{padding-bottom:22px!important}
#formyly-root.fy31-clean.fy29-editor-open .fy-footer,
#formyly-root.fy31-clean.fy29-editor-open footer.fy-site-footer{display:none!important}
body.fy31-chooser-open{overflow:hidden!important}
.fy31-chooser-backdrop[hidden]{display:none!important}
.fy31-chooser-backdrop{position:fixed;inset:0;z-index:2147483000;background:rgba(23,17,34,.42);display:flex;justify-content:center;align-items:center;padding:20px;overscroll-behavior:contain}
.fy31-chooser{width:min(490px,100%);max-height:calc(100dvh - 50px);overflow-y:auto;border:1px solid #e4dfe9;background:#fff;box-shadow:0 24px 85px #160f2a35;border-radius:16px;padding:20px 20px 18px;color:#202124;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;outline:none}
.fy31-chooser-handle{display:none}
.fy31-chooser-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 15px;gap:10px}
.fy31-chooser-head h2{font-size:19px;line-height:1.3;font-weight:650;margin:0;color:#202124}
.fy31-chooser-close{appearance:none;border:0;background:#f4f2f7;border-radius:50%;width:34px;height:34px;font-size:25px;line-height:30px;color:#55515d;cursor:pointer}
.fy31-chooser-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.fy31-chooser-grid button{display:flex;align-items:center;gap:9px;min-height:52px;padding:10px 12px;text-align:left;border:1px solid #e8e6ec;background:#fff;border-radius:10px;color:#2d2934;font-size:13px;font-weight:550;cursor:pointer;transition:background .15s,border .15s}
.fy31-chooser-grid button:hover,.fy31-chooser-grid button:focus-visible{background:#f6f1ff;border-color:#ae96db;outline:none}
.fy31-type-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;background:#f2edfa;color:#673ab7;font-size:17px;border-radius:8px}
.fy31-chooser-other{margin-top:14px;border-top:1px solid #eceaf0;padding-top:12px}
.fy31-chooser-other summary{cursor:pointer;color:#673ab7;font-size:13px;font-weight:650;list-style:none;padding:4px 0 10px}
.fy31-chooser-other summary::after{content:'⌄';float:right;font-size:16px}
.fy31-chooser-other[open] summary::after{content:'⌃'}
.fy31-chooser-other .fy31-chooser-grid{margin-top:3px}
@media(max-width:620px){
 #formyly-root.fy31-clean.fy29-editor-open .fy29-top-tabs{gap:0!important;justify-content:space-between!important;padding:0 5px!important}
 #formyly-root.fy31-clean.fy29-editor-open .fy29-top-tabs button{font-size:12px!important;flex:1 1 0!important;min-width:0!important;padding:12px 4px!important}
 #formyly-root.fy31-clean.fy29-editor-open .fy27-add-trigger{min-height:48px!important;padding:10px!important}
 #formyly-root.fy31-clean.fy29-editor-open .fy27-savebar{padding:4px!important;margin:4px 0 12px!important}
 .fy31-chooser-backdrop{align-items:flex-end;padding:0}
 .fy31-chooser{width:100%;border-radius:18px 18px 0 0;padding:12px 16px calc(16px + env(safe-area-inset-bottom,0px));max-height:86dvh;box-shadow:0 -12px 45px #160f2a31;animation:fy31-slide .18s ease-out}
 .fy31-chooser-handle{display:block;width:42px;height:4px;background:#d6d2dc;border-radius:6px;margin:0 auto 16px}
 .fy31-chooser-head h2{font-size:18px}
 .fy31-chooser-grid{gap:8px}
 .fy31-chooser-grid button{min-height:51px;padding:9px;font-size:13px}
 @keyframes fy31-slide{from{transform:translateY(20px);opacity:.7}to{transform:translateY(0);opacity:1}}
}
@media(prefers-reduced-motion:reduce){.fy31-chooser{animation:none!important}}
[dir=rtl] .fy31-chooser-grid button{text-align:right;direction:rtl}
