body{font-size:13px}.wordmark{font-size:29px!important;letter-spacing:-1.9px}.small{font-size:11px;color:#727272}.side-nav svg{width:17px;height:17px;flex:none}.side-nav .active:before{display:none}.page{max-width:1580px}.page-intro{max-width:650px}.field{display:grid;gap:8px;margin:0 0 18px;font-size:11px;color:#555}.field input:not([type=checkbox]):not([type=range]):not([type=color]),.field textarea,.field select,select.filter{width:100%;padding:11px 12px;border:1px solid #ddd;border-radius:7px;background:#fff;color:#303030;min-height:39px;font:inherit}.field textarea{resize:vertical;min-height:75px}.field input[type=color]{width:100%;height:38px;border:1px solid #ddd;padding:3px;background:white;border-radius:7px}input[type=range]{accent-color:#444;width:100%}input[type=checkbox]{accent-color:#444}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.stack{display:grid;gap:20px}.muted{color:#777;font-size:11px;line-height:1.7}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.metric-value{display:block;margin:16px 0}.metric-top{min-height:auto}.metric{min-height:145px}.main-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-bottom:22px}.panel-title{margin:0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;font-weight:500;color:#777;background:#fafafa}td,th{padding:16px;border-bottom:1px solid #eee;white-space:nowrap}td:first-child{font-weight:600}td .button{padding:7px 9px;min-height:30px;font-size:10px}.actions{display:flex;gap:6px}.badge{display:inline-block;background:#f1f1f1;color:#666;border-radius:20px}.badge.active{color:#333;background:#e8e8e8}.survey-card{padding:17px 0;border-bottom:1px solid #eee;display:flex;justify-content:space-between;gap:12px}.survey-card:last-child{border:0}.survey-card strong{font-size:12px}.survey-card p{margin:7px 0;font-size:11px;color:#777}.bar-row{margin:22px 0}.bar-label{display:flex;justify-content:space-between;gap:12px;font-size:11px;margin-bottom:10px}.bar-track{height:10px;background:#f2f2f2;border-radius:4px;overflow:hidden}.bar-track span{height:100%;display:block;background:#6e6e6e;border-radius:4px}.bar-row:nth-child(even) .bar-track span{background:#aaa}.tabs{display:flex;gap:4px;border-bottom:1px solid #eee;margin-bottom:25px;padding-bottom:12px}.tabs button{border:0;border-radius:6px;background:transparent;padding:9px 12px;font-size:11px;color:#777}.tabs button.active{background:#eee;color:#222}.editor-layout{display:grid;grid-template-columns:minmax(310px,.85fr) minmax(440px,1.4fr);gap:22px;align-items:start}.editor-controls{padding:22px}.preview-shell{position:sticky;top:93px;border:1px solid #ddd;border-radius:13px;background:#eee;overflow:hidden}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;background:#fafafa;border-bottom:1px solid #ddd;gap:8px}.preview-toolbar button{padding:7px 10px;min-height:30px}.checkout-scroll{height:calc(100vh - 228px);min-height:490px;overflow:auto;padding:26px;background:#eee}.checkout{max-width:780px;margin:auto;background:#fff;padding:30px;min-height:100%;transition:max-width .2s;border:1px solid #e3e3e3;border-radius:8px}.checkout.mobile{max-width:360px;padding:20px}.shop-logo{font-size:17px;letter-spacing:3px;font-weight:700;margin-bottom:25px}.checkout h2{font-size:21px;letter-spacing:-.5px;margin:12px 0}.order-note{font-size:11px;color:#888}.confirmed{display:inline-grid;place-items:center;border:1px solid #999;border-radius:50%;height:30px;width:30px}.order-summary{margin-top:25px;border-top:1px solid #eee;padding-top:15px}.product{display:flex;align-items:center;gap:13px;padding:12px 0;font-size:11px}.product-icon{height:45px;width:42px;background:#e8e5e0;border-radius:7px;display:grid;place-items:center;font-size:22px;color:#777}.product span:nth-child(2){flex:1}.total{display:flex;justify-content:space-between;padding-top:16px;border-top:1px solid #eee;font-size:14px}.survey-block{margin-top:24px;overflow:hidden}.survey-question{margin:0;line-height:1.4}.survey-description{line-height:1.6}.survey-answers{display:flex}.survey-answers.vertical{flex-direction:column}.survey-answers.horizontal{flex-wrap:wrap}.survey-answers.tiles{display:grid;grid-template-columns:1fr 1fr}.answer{font:inherit;text-align:inherit;cursor:pointer;line-height:1.5;transition:background .15s}.answer:hover{background:var(--hover)!important}.answer:focus-visible,.survey-block input:focus-visible,.survey-block textarea:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.survey-send{font:inherit;border:0;cursor:pointer;margin-top:16px;padding:12px 20px}.survey-block textarea,.other-input{width:100%;padding:12px;border:1px solid #ddd;font:inherit;margin-top:12px}.survey-success{padding:30px 0;text-align:center}.number-pair{display:grid;grid-template-columns:1fr 64px;gap:10px;align-items:center}.option-row{display:flex;gap:6px;margin-bottom:9px;align-items:center}.option-row input{min-width:0;flex:1;padding:10px;border:1px solid #ddd;border-radius:6px}.mini{border:1px solid #ddd;border-radius:5px;background:white;padding:7px;color:#555}.rule{border:1px solid #e6e6e6;border-radius:8px;padding:13px;margin:12px 0}.rule .field{margin-bottom:10px}.rule-values{display:flex;gap:8px}.rule-values input{width:100%;min-width:0;padding:9px;border:1px solid #ddd;border-radius:6px}.rule-summary{padding:15px;border-radius:8px;background:#f4f4f4;font-size:11px;line-height:1.8}.match{font-size:10px;padding:10px;background:#f1f1f1;border-top:1px solid #ddd;color:#555}.empty{padding:45px;text-align:center;color:#777;line-height:1.8}.settings-grid{display:grid;grid-template-columns:1.5fr .8fr;gap:22px}.price{font-size:36px;font-weight:500;letter-spacing:-2px;margin:20px 0 10px}.price small{font-size:12px;letter-spacing:0;color:#777}dialog{border:1px solid #ddd;border-radius:15px;padding:30px;max-width:660px;width:calc(100% - 35px);box-shadow:0 20px 90px #0002}dialog::backdrop{background:#0005}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{margin:0;font-size:22px;letter-spacing:-.6px}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.template{border:1px solid #ddd;border-radius:10px;text-align:left;background:#fafafa;padding:22px;color:#333}.template strong{display:block;margin-bottom:10px}.template p{font-size:11px;line-height:1.6;margin:0;color:#777}.template:hover{background:#eee}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#333;color:white;z-index:100;border-radius:9px;font-size:12px;display:none}.error{color:#a22727;font-size:12px;padding:10px 0}.preview-error{color:#a22727;font-size:11px}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #777;outline-offset:3px}.selected-device{background:#e8e8e8!important}.text-link{border:0;background:none;text-decoration:underline;font:inherit;color:#555;cursor:pointer}.tip{cursor:help;border-bottom:1px dotted #999}.answer-meta{font-size:10px;color:#777}.form-footer{display:flex;gap:8px;align-items:center;margin-top:22px}.editor-hint{font-size:10px;color:#777}.smiley{font-size:24px;display:block;margin-bottom:5px}.survey-block input[type=range]{width:100%}.range-labels{display:flex;justify-content:space-between;font-size:11px;margin-top:8px}.filter{min-width:170px;width:auto!important}.preview-order{max-width:180px;font-size:10px;padding:7px;border:1px solid #ddd;border-radius:6px;background:white}.hr{border:0;border-top:1px solid #eee;margin:24px 0}.freetext{padding:14px;background:#f7f7f7;margin:10px 0;border-radius:7px;font-size:12px;line-height:1.6}@media(max-width:1150px){.editor-layout{grid-template-columns:340px minmax(0,1fr)}.checkout-scroll{padding:13px}.checkout{padding:20px}.page{padding:28px 22px}.sidebar{width:215px}.main-grid{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.preview-toolbar{flex-wrap:wrap}}@media(max-width:850px){.editor-layout,.settings-grid{grid-template-columns:1fr}.preview-shell{position:static}.checkout-scroll{height:650px}.sidebar{width:190px}.page-head{flex-wrap:wrap}.side-nav button{padding:12px 10px}}@media(max-width:700px){.sidebar{width:100%;height:auto}.side-nav{overflow:auto;display:flex}.side-nav button{flex:none}.side-nav svg{display:none}.sidebar-bottom{display:none}.metrics{gap:9px}.metric{padding:15px}.metric-value{font-size:28px!important}.two{grid-template-columns:1fr 1fr}.page{padding:25px 16px}.template-grid{grid-template-columns:1fr}.preview-toolbar{padding:12px}.checkout-scroll{min-height:430px;height:620px}.head-actions{width:100%}.page h1{font-size:29px}}
.field{padding:0;border:0;border-radius:0}.editor-controls{max-height:calc(100vh - 215px);overflow-y:auto;scrollbar-width:thin}.tip{position:relative}.tip:hover::after,.tip:focus::after{content:attr(data-tip);position:absolute;top:calc(100% + 10px);left:0;width:220px;z-index:30;background:#333;color:#fff;font-size:11px;line-height:1.7;padding:12px;border-radius:7px;box-shadow:0 4px 14px #0002}.survey-send:hover{filter:brightness(1.12)}.survey-send:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.survey-block input[type=range]{accent-color:var(--focus)}@media(max-width:850px){.editor-controls{max-height:none;overflow:visible}}
/* surveyd workspace: one viewport, one content scroller. */
:root{--ink:#22243e;--muted:#73758a;--line:#e6e7f1;--accent:#6d5ce8;background:#f5f5fb;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html,body{height:100%;overflow:hidden}body{font-size:13px;background:#f5f5fb}.app-shell{height:100dvh;min-height:0;overflow:hidden}.content-column{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}.sidebar{height:100%;width:232px;position:relative;top:auto;overflow:hidden;background:linear-gradient(165deg,#fcfbff 0%,#f0effa 70%,#eaeaf9 100%);border-right:1px solid #e2e1f0;padding:28px 18px 22px}.sidebar-head{padding:0 11px 31px}.wordmark{color:#292548!important;font-weight:800!important;letter-spacing:-1.8px}.wordmark:before{content:'s';font-size:22px;letter-spacing:-1px;display:grid;place-items:center;width:33px;height:33px;border-radius:11px;background:linear-gradient(145deg,#8d7bfa,#6452db);color:white;box-shadow:0 5px 13px #7560dc32;margin-right:6px}.wordmark-os{color:#9893b2;font-size:9px}.workspace{border-color:#e5e2f1;border-radius:12px;box-shadow:0 3px 10px #30215c04;padding:11px}.workspace-icon{background:#e9e5ff;color:#7764cf;border-radius:10px}.workspace strong{color:#39364f}.workspace small{color:#7d7894}.nav-label{color:#9690ad;font-size:9px;letter-spacing:.12em}.side-nav{gap:7px}.side-nav button{font-size:12px;line-height:1.4;font-weight:550;color:#77738e;padding:13px 14px;transition:background .15s,color .15s}.side-nav button svg{color:#948cae}.side-nav button:hover{background:#e8e5f6;color:#514294}.side-nav button.active{color:#6955d0;background:#e6e0ff;box-shadow:none}.side-nav button.active svg{color:#7560de}.sidebar-bottom{border-color:#dedbec}.connection-caption{color:#77708f;line-height:1.7}.sidebar-bottom .small{color:#8c859f;font-size:10px}.topbar{position:relative;top:auto;flex:none;height:66px;background:#ffffffd9;border-color:#e7e6f0;padding:0 32px}.crumb{color:#9a95ac;font-size:11px}.crumb strong{color:#55506b}.avatar{background:#eae6ff;color:#7661cd;border:3px solid #f8f6ff;font-size:10px;height:33px;width:33px}
#main-content{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d6d0e9 transparent;scroll-padding-top:20px}.page{max-width:1580px;min-height:100%;padding:28px 32px 32px;margin:0 auto;position:relative;background:radial-gradient(ellipse 600px 260px at 95% 0%,#e9e6ff80,transparent)}.page-head{margin-bottom:25px;gap:16px;align-items:center;min-height:85px}.page h1{font-size:29px;font-weight:650;letter-spacing:-1.1px;color:#29263f;line-height:1.2}.eyebrow{display:flex;align-items:center;gap:6px;font-size:8px;letter-spacing:.16em;color:#9487bc;margin-bottom:10px}.spark{font-size:16px;color:#8b74ee;line-height:1}.page-intro{font-size:12px;color:#858095;margin-top:8px;line-height:1.7}.head-actions{gap:8px}.button{font-size:11px;font-weight:550;border-color:#e1ddec;border-radius:9px;color:#5c5472;background:#fff;box-shadow:0 2px 3px #30204d03;padding:10px 14px;min-height:37px}.button:hover{background:#f5f1ff;border-color:#d2c9ed;color:#64519e;transform:none}.button.dark{background:linear-gradient(135deg,#8a70ee,#6b54d4);border-color:#7961de;color:white;box-shadow:0 4px 10px #795cdb22}.button.dark:hover{background:#7155d6;color:white}.button[aria-pressed=true]{background:#eae3ff;border-color:#d9cdfc;color:#755bd4}.panel{border:1px solid #e6e3f0;background:#ffffff;border-radius:14px;box-shadow:0 4px 18px #3d2d6614}.panel-pad{padding:22px;margin-bottom:0}.panel-title{font-size:13px;font-weight:650;letter-spacing:-.2px;color:#39334f}.panel-sub{font-size:11px;color:#898296;line-height:1.7}.panel-head{gap:14px;flex-wrap:wrap}.metrics{gap:15px;margin-bottom:21px}.metric{min-height:140px;padding:19px 20px;border:1px solid #e5dff6;position:relative;overflow:visible;box-shadow:0 4px 17px #30205a07;background:linear-gradient(130deg,#f3efff,#fff)}.metric:nth-child(2){background:linear-gradient(130deg,#eaf7f2,#fff);border-color:#daeee5}.metric:nth-child(3){background:linear-gradient(130deg,#fff3e6,#fff);border-color:#f2e4d1}.metric:nth-child(4){background:linear-gradient(130deg,#edf1ff,#fff);border-color:#e0e5f4}.metric-top{font-size:10px;font-weight:500;line-height:1.6;color:#807092;min-height:29px}.metric-top:after{content:'↗';font-size:14px;width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:#e9dfff;color:#9b80dc;flex:none;margin-left:5px}.metric:nth-child(2) .metric-top:after{background:#dff1e8;color:#64a58b}.metric:nth-child(3) .metric-top:after{background:#fae9d5;color:#c29b69}.metric:nth-child(4) .metric-top:after{background:#e0e6fc;color:#899cdb}.metric-value{font-size:31px!important;letter-spacing:-1.4px;font-weight:600;margin:10px 0 8px;color:#514174;line-height:1.15}.metric:nth-child(2) .metric-value{color:#477463}.metric:nth-child(3) .metric-value{color:#9c784b}.metric:nth-child(4) .metric-value{color:#53658e}.metric-foot{font-size:9px;color:#9a90a5}.tip{border:0}.tip:hover::after,.tip:focus::after{background:#393049;width:215px}.main-grid{gap:21px;margin-bottom:21px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.main-grid>.panel{min-width:0}.survey-card{border-color:#eeebf4;padding:17px 0}.survey-card strong{font-size:12px;color:#514661}.survey-card p{font-size:10px;color:#93899f;line-height:1.7;max-width:260px}.badge{border:1px solid #e6dfef;background:#f4f1fa;color:#9a86b3;font-size:9px;padding:5px 9px}.badge.active{background:#e8f5ee;color:#62967b;border-color:#d9eddf}.badge.paused{background:#fff3e5;color:#b3936c;border-color:#f4e5cc}.bar-track{height:12px;background:#f3f0f8;border-radius:5px}.bar-track span{background:linear-gradient(90deg,#a18aee,#c1aff5);border-radius:5px}.bar-row:nth-child(2) .bar-track span{background:linear-gradient(90deg,#8abca9,#b1d8c5)}.bar-row:nth-child(3) .bar-track span{background:linear-gradient(90deg,#e4bb8b,#f2d3ad)}.bar-row:nth-child(4) .bar-track span{background:linear-gradient(90deg,#8e9fd3,#bdc8ea)}.bar-row:nth-child(5) .bar-track span{background:linear-gradient(90deg,#c098c8,#dcbde0)}.bar-row{margin:20px 0}.bar-label{color:#7e718c;font-size:11px}.bar-label span:last-child{color:#a89bad;font-variant-numeric:tabular-nums}.filter,.preview-order{border:1px solid #e4dfed!important;border-radius:8px!important;color:#85748e!important;background:#fff!important;min-width:145px;font-size:10px!important}.table-wrap{overflow-x:auto;overflow-y:visible}table{font-size:11px}th{background:#faf9fd;color:#a193ad;font-size:10px}td,th{padding:14px 17px;border-color:#f1edf6}td{color:#8b7e97}td:first-child{color:#71627f;font-weight:500}.text-link{color:#8a6fb0;text-decoration:none}.text-link:hover{text-decoration:underline}.muted{color:#8b8096}.field{color:#7d708e;font-size:11px;gap:7px;margin-bottom:16px}.field input:not([type=checkbox]):not([type=range]):not([type=color]),.field textarea,.field select{border-color:#e4dfed;background:#fefeff;color:#655373;border-radius:8px;padding:10px 11px;min-height:37px}.field input:focus,.field textarea:focus,.field select:focus{border-color:#baa6ed}.field input[type=color]{height:34px;border-color:#e5dfef;background:white;border-radius:7px}.two{gap:12px}.field textarea{min-height:67px}.mini{color:#93829f;border-color:#e5ddef;border-radius:6px}.option-row input{border-color:#e5ddef;color:#7d6d8b}.rule{border-color:#e8e1f3;background:#fdfbff;padding:15px;border-radius:10px}.rule-summary{background:#f1ebfc;color:#9481ae;border:1px solid #e9e0f7}.rule-values input{border-color:#e5ddef;color:#806f8f}.error{color:#ad626d}.hr{border-color:#eee8f6;margin:20px 0}.form-footer{margin-top:17px}.editor-layout{grid-template-columns:minmax(300px,.8fr) minmax(400px,1.2fr);gap:22px;align-items:start;min-height:calc(100dvh - 230px)}.editor-controls{padding:20px;max-height:none;overflow:visible}.tabs{position:relative;top:auto;gap:3px;background:#f6f3fc;border:1px solid #eee8f8;border-radius:10px;padding:4px;margin-bottom:21px}.tabs button{flex:1;padding:10px 8px;font-weight:550;color:#b09cc0;border-radius:7px}.tabs button.active{background:#fff;color:#8b6bb1;box-shadow:0 2px 7px #6142810e}.preview-shell{position:relative;top:auto;overflow:hidden;min-height:calc(100dvh - 230px);background:#efecf8;border-color:#e2d9f1;box-shadow:0 5px 24px #6c448810;border-radius:14px}.preview-toolbar{background:#faf8ff;border-color:#e8dff4;padding:12px;flex-wrap:wrap;gap:8px}.preview-toolbar .button{font-size:10px;padding:7px 10px;min-height:31px;box-shadow:none}.preview-toolbar .actions{gap:3px}.preview-order{min-width:140px;max-width:175px}.match{padding:10px 16px;background:#eeebf8;border:0;color:#a591b6;font-size:9px;line-height:1.6}.match:before{content:'';display:inline-block;background:#a3c9b4;height:5px;width:5px;border-radius:50%;margin-right:7px;vertical-align:middle}.checkout-scroll{height:auto;min-height:0;max-height:none;overflow:visible;padding:21px;background:radial-gradient(ellipse at 95% 0%,#e1d8f8,transparent 75%),#f1edf8}.checkout{min-height:0;padding:24px;border-radius:11px;border-color:#e9e2f3;box-shadow:0 4px 18px #7a548510;color:#39313e}.checkout.mobile{max-width:350px}.checkout h2{font-size:19px}.shop-logo{font-size:14px;letter-spacing:2px;color:#514650;margin-bottom:20px}.order-note{color:#a393a6;font-size:10px}.checkout .muted{font-size:10px;color:#a492a8}.confirmed{border-color:#d0c3d8;color:#9a83a9}.survey-block{margin-top:20px}.survey-description{font-size:11px}.order-summary{padding-top:15px;margin-top:21px;border-color:#f0eaf3}.order-summary>strong{font-size:11px;color:#97829f}.product{font-size:10px;color:#a28da9;padding:10px 0}.product-icon{background:#eee8e3;color:#baa495;width:36px;height:38px;border-radius:7px}.total{font-size:12px;border-color:#efe7f2;color:#8f789d}.control-group{border:1px solid #eee7f5;border-radius:9px;margin:0 0 13px;background:#fff}.control-group>summary{cursor:pointer;list-style:none;font-size:11px;font-weight:600;padding:13px 14px;color:#93809f;position:relative}.control-group>summary::-webkit-details-marker{display:none}.control-group>summary:after{content:'+';position:absolute;right:14px;top:12px;color:#b8a4c5;font-weight:400}.control-group[open]>summary:after{content:'−'}.control-group>summary span{display:block;font-size:9px;font-weight:400;margin-top:5px;color:#b8a7c0}.group-content{padding:8px 14px 1px}.control-group .two{gap:11px}.settings-grid{grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);align-items:start}.settings-grid>.stack{gap:20px}.settings-grid>section{background:radial-gradient(ellipse at top right,#e7dcfa,transparent 65%),#fff}.price{color:#8a70a5;letter-spacing:-1.2px}.price small{color:#b3a0be}.freetext{background:#f7f2fc;color:#a08aad}.answer-meta{color:#b7a0bf}#toast{background:#7c6494;box-shadow:0 7px 28px #67418526;border:1px solid #bba6ca;border-radius:10px}.template{background:#fcfaff;border-color:#ece3f4}.template:hover{background:#f2eafa;border-color:#d8c3e9}.template strong{color:#9c7bb1}.template p{color:#b49bc4}dialog{border-color:#e1d4eb;box-shadow:0 20px 90px #51306320}.modal-head h2{color:#8a6ca0;font-size:22px}.empty{color:#ae96bc}.editor-hint{font-size:9px;color:#af9cbd}.editor-hint:before{content:'';height:5px;width:5px;border-radius:50%;background:#c2b3d3;margin-right:6px;display:inline-block}input[type=range],input[type=checkbox]{accent-color:#9c80bc}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #ac8bc8;outline-offset:3px}
@media(min-width:1450px){.page{padding-inline:40px}.editor-layout{grid-template-columns:minmax(360px,.8fr) minmax(500px,1.2fr)}}
@media(max-width:1100px){.sidebar{width:205px;padding-inline:13px}.page{padding:23px}.page-head{min-height:90px}.page h1{font-size:27px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.main-grid{grid-template-columns:1fr 1fr}.panel-head .filter{width:100%!important}.editor-layout{grid-template-columns:minmax(260px,.85fr) minmax(320px,1.15fr);gap:16px}.editor-controls{padding:15px}.checkout-scroll{padding:13px}.checkout{padding:19px}.settings-grid{grid-template-columns:1fr 300px}.metric{min-height:129px}}
@media(max-width:900px){.sidebar{width:185px}.wordmark{font-size:25px!important}.wordmark:before{width:27px;height:29px;font-size:18px}.main-grid{grid-template-columns:1fr}.editor-layout{grid-template-columns:minmax(230px,1fr) minmax(285px,1.1fr)}.preview-toolbar{justify-content:flex-start}.settings-grid{grid-template-columns:1fr}.page-intro{font-size:11px}.page-head{flex-wrap:wrap}.page-editor .head-actions{width:auto}.editor-controls .two{grid-template-columns:1fr 1fr}.checkout h2{font-size:17px}}
@media(max-width:760px){.sidebar{width:73px;padding:23px 10px}.sidebar-head{padding:0 0 25px;justify-content:center}.wordmark{font-size:0!important;gap:0}.wordmark:before{font-size:23px;width:36px;height:36px;margin:0}.wordmark-os,.workspace,.nav-label,.sidebar-bottom{display:none}.side-nav{gap:9px}.side-nav button{font-size:0;padding:13px;justify-content:center;min-height:43px}.side-nav button svg{width:19px;height:19px;display:block}.topbar{padding:0 23px}.page{padding:22px}.editor-layout{grid-template-columns:minmax(240px,.9fr) minmax(280px,1.1fr)}}
@media(max-width:650px){.app-shell{display:flex;flex-direction:column}.sidebar{width:100%;height:auto;flex:none;padding:11px 15px;display:flex;flex-direction:row;align-items:center;gap:15px;border-right:0;border-bottom:1px solid #e5def0;position:relative}.sidebar-head{padding:0}.wordmark{font-size:0!important}.wordmark:before{width:28px;height:28px;border-radius:9px;font-size:18px}.side-nav{display:flex;flex:1;gap:4px;justify-content:flex-end;overflow:visible}.side-nav button{width:auto;min-height:35px;padding:9px}.side-nav button svg{width:17px;height:17px}.content-column{flex:1;min-height:0;width:100%}.topbar{height:47px;padding:0 18px}.crumb{font-size:10px}.avatar{height:27px;width:27px;font-size:8px}.page{padding:20px 16px;min-height:100%}.page-head{min-height:100px;align-content:start;gap:16px;margin-bottom:21px}.page h1{font-size:26px}.page-intro{font-size:11px}.eyebrow{font-size:7px;margin-bottom:8px}.head-actions{width:100%;flex-wrap:wrap}.head-actions .button{font-size:10px;min-height:34px;padding:9px 11px}.head-actions .filter{flex:1}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:17px}.metric{padding:15px;min-height:137px}.metric-top{font-size:9px}.metric-value{font-size:25px!important;letter-spacing:-1px}.metric-top:after{height:20px;width:20px;font-size:11px}.panel-pad{padding:18px}.main-grid{gap:17px;margin-bottom:17px}.editor-layout{display:flex;flex-direction:column;min-height:0}.editor-controls,.preview-shell{width:100%;min-height:0}.editor-controls{max-height:none;overflow:visible;padding:17px}.preview-shell{position:relative;top:auto}.preview-toolbar{justify-content:space-between}.checkout-scroll{height:auto;max-height:none;min-height:0;padding:14px;overflow:visible}.checkout{padding:19px}.settings-grid{display:grid;grid-template-columns:1fr}.filter{min-width:145px}.template-grid{grid-template-columns:1fr}.survey-card p{max-width:200px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
/* Keep color in surfaces; retain clear reading contrast in labels and controls. */
.app-shell{animation:none}.page-intro,.muted,.panel-sub,.small{color:#706a80}.eyebrow{color:#786391}.side-nav button{color:#6d647f}.side-nav button.active{color:#6247b5}.workspace small,.connection-caption{color:#746880}.sidebar-bottom .small{color:#796d87}.crumb{color:#7d748a}.metric-top{color:#6e617f}.metric-foot{color:#7c7088}.bar-label{color:#655674}.bar-label span:last-child{color:#7f6e8c}.survey-card strong{color:#4f405f}.survey-card p{color:#796b86}.badge{color:#78598f}.badge.active{color:#467259}.badge.paused{color:#8b6835}.field{color:#685778}.field input:not([type=checkbox]):not([type=range]):not([type=color]),.field textarea,.field select{color:#514060}.filter,.preview-order{color:#695477!important}.control-group>summary{color:#725584}.control-group>summary span{color:#897295}.tabs button{color:#8a729e}.tabs button.active{color:#74518f}.match{color:#7c6593}.order-note{color:#88748f}.checkout .muted{color:#84718d}.order-summary>strong{color:#745981}.product{color:#7c6588}.total{color:#715780}.editor-hint{color:#867291}.rule-summary{color:#74528d}.freetext{color:#7e5c92}.answer-meta{color:#8a6c9d}td{color:#756181}td:first-child{color:#65506f}th{color:#8b7599}.template strong{color:#80529d}.template p{color:#8a6a9f}.price{color:#785090}.price small{color:#887093}.empty{color:#8b6c9b}.mini{color:#856894}
/* Consistent section spacing, without adjacent or overlapping result cards. */
.page-results{display:flex;flex-direction:column;gap:22px}.page-results>.page-head,.page-results>.metrics,.page-results>.main-grid{margin-bottom:0}.page-results>.panel:first-of-type .panel-head{margin-bottom:0}.page-results .main-grid{align-items:start}.page-results>.panel{min-width:0}.page-results .table-wrap{margin-top:17px}.page-results .metric{min-width:0}.page-results .metrics{flex:none}.deleted-surveys{margin-top:22px;padding:18px 22px;border:1px solid var(--line);border-radius:12px;background:#fff}.deleted-surveys summary{cursor:pointer;font-size:12px;color:#777}.actions [data-action=delete]{color:#a45164;border-color:#ecd7dc}.actions [data-action=delete]:hover{background:#fff1f3}.appearance-toggle{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:6px 0;cursor:pointer}.appearance-toggle strong{display:block;font-size:12px;font-weight:600;color:#534761}.appearance-toggle small{display:block;max-width:390px;font-size:11px;line-height:1.7;color:#83748f;margin-top:7px}.appearance-toggle input{appearance:none;width:38px;height:22px;flex:none;border-radius:20px;background:#d7d2e2;position:relative;cursor:pointer;transition:background .15s}.appearance-toggle input:before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;background:#fff;border-radius:50%;box-shadow:0 1px 4px #0002;transition:transform .15s}.appearance-toggle input:checked{background:#7861cd}.appearance-toggle input:checked:before{transform:translateX(16px)}
.template-grid{gap:18px}.template{padding:0;overflow:hidden;background:#fff;text-align:left;border:1px solid #e4dfec;border-radius:13px;transition:border-color .15s,box-shadow .15s}.template:hover{border-color:#ab95de;background:#fff;box-shadow:0 6px 18px #795aaf14}.template>p{padding:14px 16px 16px;margin:0;font-size:11px;color:#70617e;line-height:1.65}.template-preview{background:#f4f1fa;padding:20px;min-height:185px;display:flex;flex-direction:column;justify-content:center;gap:10px;pointer-events:none}.mini-question{font-size:10px;line-height:1.5;font-weight:650;color:#58496d}.mini-options{display:flex;gap:5px;flex-direction:column}.mini-options>span{background:#fff;border:1px solid #e6e0ef;padding:6px 8px;border-radius:5px;font-size:8px;color:#93829f}.mini-options>span.mini-chosen{border-color:#c7b6e6;background:#e9dff9;color:#8064a3}.mini-submit{font-size:7px;color:#fff;background:#8970b0;padding:7px 10px;align-self:flex-start;border-radius:5px}.mini-smileys{display:flex;gap:9px;margin:13px 0}.mini-smileys span{flex:1;text-align:center;background:white;border:1px solid #e3d9ee;border-radius:7px;font-size:24px;padding:7px;color:#a38cba}.template-plus{font-size:30px;font-weight:300;color:#b2a1c7;align-self:center}.mini-line{height:6px;background:#ddd5e9;width:45%;align-self:center;border-radius:4px}.mini-line.wide{width:70%}
.color-list{display:flex;flex-direction:column;padding:0 15px 5px}.color-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid #f1edf6;position:relative}.color-row:last-child{border-bottom:0}.color-label{font-size:11px;color:#796387}.color-picker{position:relative}.color-picker>summary{display:flex;align-items:center;gap:9px;cursor:pointer;padding:6px 8px;border:1px solid #e7e0ef;background:#fff;border-radius:7px;list-style:none;min-width:125px}.color-picker>summary::-webkit-details-marker{display:none}.color-swatch{height:21px;width:21px;flex:none;display:block;border:1px solid #00000016;border-radius:5px}.color-value{font-size:10px;letter-spacing:.025em;font-variant-numeric:tabular-nums;color:#776383}.color-chevron{margin-left:auto;color:#a391b1}.color-popover{position:absolute;right:0;top:calc(100% + 7px);width:230px;padding:16px;border:1px solid #e3d8ed;border-radius:11px;background:white;box-shadow:0 10px 40px #33204426;z-index:40}.color-popover .field{font-size:10px;margin-bottom:12px}.color-popover input{font-family:ui-monospace,SFMono-Regular,monospace!important;letter-spacing:.03em}.color-popover input[aria-invalid=true]{border-color:#ba6578!important}.palette{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}.palette button{width:100%;aspect-ratio:1;padding:0;border:1px solid #0002;border-radius:5px;cursor:pointer}.palette button:hover{outline:2px solid #c4b2d9;outline-offset:2px}.control-group{overflow:visible}.group-content:not(.two):not(.color-list){padding:12px 15px 3px}.control-group>summary{padding:15px}.editor-layout{grid-template-columns:minmax(310px,.85fr) minmax(390px,1.15fr);align-items:start}.preview-shell{min-height:0}.survey-stage{padding:34px;min-height:330px;background:radial-gradient(ellipse at 100% 0%,#e5dcf6,transparent 70%),#f4f1f8;display:flex;justify-content:center;align-items:flex-start}.survey-stage .survey-block{margin:0;width:100%;max-width:620px;box-shadow:0 5px 25px #51316b0a}.survey-stage.mobile .survey-block{max-width:330px}.survey-stage.mobile{padding:25px 16px}.survey-stage .empty{line-height:1.9;font-size:12px}.preview-toolbar{align-items:center}.preview-shell{position:sticky;top:22px}.survey-send{font-size:12px}.editor-controls #editor-error:empty{display:none}.editor-controls #save-state{margin-top:20px}
/* Minimal workspace palette. Survey styling and color controls retain their own colors. */
html[data-theme=minimal]{--ink:#272727;--muted:#767676;--line:#e6e6e6;--accent:#686868;background:#f5f5f5}
html[data-theme=minimal] body{background:#f5f5f5}html[data-theme=minimal] .sidebar{background:#f1f1f1;border-color:#e3e3e3}html[data-theme=minimal] .wordmark{color:#303030!important}html[data-theme=minimal] .wordmark:before{background:#4b4b4b;box-shadow:none}html[data-theme=minimal] .workspace-icon,html[data-theme=minimal] .avatar{background:#e9e9e9;color:#666;border-color:#f4f4f4}html[data-theme=minimal] .workspace,html[data-theme=minimal] .sidebar-bottom{border-color:#e3e3e3}html[data-theme=minimal] .side-nav button.active{background:#fff;color:#393939}html[data-theme=minimal] .side-nav button:hover{background:#e7e7e7;color:#333}html[data-theme=minimal] .side-nav svg{color:#888}html[data-theme=minimal] .topbar{background:#fafafa;border-color:#e6e6e6}html[data-theme=minimal] .page{background:#f5f5f5}html[data-theme=minimal] .panel{background:#fff;border-color:#e6e6e6;box-shadow:0 2px 8px #2c2c2c03}html[data-theme=minimal] .metric{background:#fff;border-color:#e6e6e6}html[data-theme=minimal] .metric-value{color:#444}html[data-theme=minimal] .metric-top:after{background:#f0f0f0;color:#888}html[data-theme=minimal] .button{background:#fff;border-color:#ddd;color:#555;box-shadow:none}html[data-theme=minimal] .button.dark{background:#393939;color:#fff;border-color:#393939}html[data-theme=minimal] .button:hover{background:#efefef}html[data-theme=minimal] .button.dark:hover{background:#555}html[data-theme=minimal] .bar-track{background:#f0f0f0}html[data-theme=minimal] .bar-track span{background:#888}html[data-theme=minimal] .bar-row:nth-child(even) .bar-track span{background:#b2b2b2}html[data-theme=minimal] .badge{background:#f1f1f1;color:#666;border-color:#e8e8e8}html[data-theme=minimal] th{background:#fafafa}html[data-theme=minimal] td,html[data-theme=minimal] th{border-color:#eee}html[data-theme=minimal] .tabs{background:#f0f0f0;border-color:#e6e6e6}html[data-theme=minimal] .tabs button.active{background:#fff;color:#444}html[data-theme=minimal] .control-group,html[data-theme=minimal] .color-picker>summary{border-color:#e4e4e4}html[data-theme=minimal] .preview-toolbar{background:#fafafa;border-color:#e3e3e3}html[data-theme=minimal] .preview-shell{border-color:#e3e3e3;background:#eee;box-shadow:none}html[data-theme=minimal] .survey-stage{background:#eee}html[data-theme=minimal] .match{background:#f0f0f0;color:#777}html[data-theme=minimal] .match:before{background:#aaa}html[data-theme=minimal] .appearance-toggle input:checked{background:#666}html[data-theme=minimal] .rule-summary,html[data-theme=minimal] .rule,html[data-theme=minimal] .freetext{background:#f4f4f4;border-color:#e5e5e5}html[data-theme=minimal] .template-preview{background:#f1f1f1}html[data-theme=minimal] .mini-chosen{background:#e5e5e5!important;border-color:#ccc!important}html[data-theme=minimal] .mini-submit{background:#666}html[data-theme=minimal] .mini-smileys span{border-color:#ddd;color:#888}html[data-theme=minimal] .mini-line{background:#ddd}html[data-theme=minimal] .spark{color:#999}html[data-theme=minimal] .page h1,html[data-theme=minimal] .panel-title,html[data-theme=minimal] .workspace strong,html[data-theme=minimal] .survey-card strong{color:#393939}html[data-theme=minimal] :is(.small,.page-intro,.eyebrow,.muted,.panel-sub,.metric-top,.metric-foot,.bar-label,.bar-label span:last-child,.field,.color-label,.control-group>summary,.control-group>summary span,.editor-hint,.text-link,.tabs button,.price,.price small,.badge,.survey-card p,td,td:first-child,th,.connection-caption,.sidebar-bottom .small,.workspace small,.crumb,.crumb strong,.appearance-toggle strong,.appearance-toggle small,.rule-summary,.answer-meta,.freetext,.empty){color:#737373}html[data-theme=minimal] .field :is(input,textarea,select),html[data-theme=minimal] .filter,html[data-theme=minimal] .preview-order{color:#555!important;border-color:#ddd!important}html[data-theme=minimal] .button[aria-pressed=true]{background:#e5e5e5;color:#444}html[data-theme=minimal] #toast{background:#444;border-color:#666}html[data-theme=minimal] input[type=range],html[data-theme=minimal] input[type=checkbox]{accent-color:#666}
@media(max-width:1100px){.editor-layout{grid-template-columns:minmax(270px,.9fr) minmax(320px,1.1fr)}.survey-stage{padding:23px}.page-results{gap:19px}}
@media(max-width:900px){.editor-layout{grid-template-columns:minmax(230px,1fr) minmax(280px,1.1fr)}.color-picker>summary{min-width:109px;gap:6px}.survey-stage{padding:18px}.color-popover{width:215px}.page-results .main-grid{grid-template-columns:1fr}}
@media(max-width:650px){.editor-layout{display:flex}.preview-shell{position:relative;top:auto}.survey-stage{padding:20px 15px}.page-results{gap:17px}.appearance-toggle{gap:12px}.template-preview{min-height:165px}.color-popover{width:225px}}
.color-popover{width:255px}.color-sliders{display:grid;gap:13px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #eee8f4}.color-slider-label{display:grid;gap:8px;font-size:10px;color:#7c698b}.color-slider-label>span{display:flex;justify-content:space-between}.color-slider-label output{font-variant-numeric:tabular-nums;color:#93809f}.color-slider-label input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:9px;min-height:0;padding:0;border:1px solid #0000000c;border-radius:8px;margin:0;cursor:pointer;background:linear-gradient(to right,#fff,#777)}.color-slider-label input[data-color-slider=h]{background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)!important}.color-slider-label input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:15px;height:15px;border:2px solid white;background:#fff;border-radius:50%;box-shadow:0 0 0 1px #0004,0 1px 4px #0003}.color-slider-label input[type=range]::-moz-range-thumb{width:12px;height:12px;border:2px solid #fff;background:#fff;border-radius:50%;box-shadow:0 0 0 1px #0004}html[data-theme=minimal] .color-slider-label input[data-color-slider=h]{accent-color:initial}
.builder-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 15px}.builder-section-heading:first-child{margin-top:0}.builder-section-heading h2{font-size:12px;color:#5c4c6b;font-weight:650;margin:0}.builder-section-heading>span{font-size:10px;color:#9d8aaa}.builder-section-heading .button{font-size:10px;padding:7px 10px;min-height:30px}.block-list{display:grid;gap:8px;margin-bottom:22px}.block-list-row{border:1px solid #e8e1f1;border-radius:9px;background:#fcfaff;overflow:hidden}.block-list-row.is-selected{border-color:#b6a0df;background:#f3edff;box-shadow:0 0 0 1px #cbb9e522}.block-select{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:12px;border:0;background:none;color:#73617e;cursor:pointer}.block-select>span:last-child{min-width:0}.block-select strong{font-size:11px;font-weight:550;display:block;line-height:1.6;overflow-wrap:anywhere}.block-select small{font-size:9px;color:#a08bab;display:block;line-height:1.6;margin-top:3px}.block-index{font-size:10px;width:22px;height:22px;display:grid;place-items:center;border-radius:6px;background:white;border:1px solid #e4dced;flex:none}.block-tools{display:flex;justify-content:flex-end;gap:5px;padding:0 10px 9px}.block-tools .mini{padding:4px 7px;font-size:11px;min-width:25px}.block-properties{border:1px solid #e6ddee;border-radius:10px;padding:16px;background:#fff}.block-properties .builder-section-heading{margin-top:0;padding-bottom:12px;border-bottom:1px solid #eee7f5}.checkbox-line{display:flex;align-items:center;gap:7px;min-height:35px;font-size:11px}.checkbox-line input{width:15px;height:15px}.design-scope{border-bottom:1px solid #eee7f4;padding-bottom:10px;margin-bottom:18px}.block-special-colors .field{max-width:240px}.block-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:none}.block-template{background:#fff;border:1px solid #e8e0f2;border-radius:10px;padding:0 0 14px;text-align:left;overflow:hidden;cursor:pointer;color:#776186}.block-template:hover{border-color:#a78acb;box-shadow:0 4px 13px #724b9e12}.block-template-visual{height:90px;background:#f7f3fc;display:flex;align-items:center;justify-content:center;padding:12px;overflow:hidden}.block-template strong{font-size:10px;display:block;margin:12px 12px 5px;font-weight:600}.block-template small{font-size:9px;display:block;margin:0 12px;color:#a08bad;line-height:1.6}.block-mini-faces{display:flex;gap:5px;width:100%;align-items:center}.block-mini-faces svg{width:18%;min-width:0;height:auto}.block-mini-stars{display:flex;color:#f1b044;width:100%;justify-content:center}.block-mini-stars svg{width:22px;height:25px}.block-mini-circles{display:flex;gap:6px}.block-mini-circles span{display:grid;place-items:center;border:1px solid #bcb0cb;border-radius:50%;width:22px;height:22px;font-size:9px;color:#9786a4}.block-mini-input{padding:9px 11px;border:1px solid #dfd5e9;background:#fff;border-radius:5px;width:100%;font-size:9px;color:#aa99b7;display:flex;justify-content:space-between}.block-mini-input.multiline{height:57px}.block-mini-choice{font-size:11px;color:#a18bb2;line-height:1.8}.block-mini-range{height:5px;width:95%;background:#d9cde6;border-radius:5px;position:relative}.block-mini-range i{position:absolute;left:60%;top:-4px;width:13px;height:13px;border-radius:50%;background:#a18abb;box-shadow:0 0 0 3px #fff}.block-mini-heading{font-size:12px;font-weight:600;color:#9a80af}.block-mini-heading small{display:block;font-size:8px;font-weight:400;margin-top:6px;color:#b8a5c7}.survey-builder-title{margin:0;line-height:1.4}.survey-builder-intro{margin:9px 0 24px;line-height:1.7}.survey-block-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:start}.survey-item{grid-column:span 6;min-width:0}.survey-item.width-half{grid-column:span 3}.survey-item.width-third{grid-column:span 2}.survey-item h3{font-size:14px;line-height:1.6;margin:0;overflow-wrap:anywhere}.required-mark{font-size:11px;color:#b99bc7;margin-left:4px}.survey-item p{line-height:1.6}.survey-item-input{min-width:0}.builder-choices{display:flex;flex-wrap:wrap;align-items:stretch}.builder-choices.vertical{flex-direction:column}.builder-choices.grid{display:grid;grid-template-columns:1fr 1fr}.builder-choice{display:flex;align-items:center;gap:8px;border:0;background:none;padding:6px 0;font:inherit;color:inherit;text-align:left;cursor:pointer;min-height:34px;line-height:1.6}.builder-choices.radio .builder-choice{background:transparent!important}.choice-indicator{display:grid;place-items:center;width:18px;height:18px;border:1.5px solid #a9a9a9;border-radius:50%;font-size:10px;color:var(--block-accent);flex:none;line-height:1}.choice-indicator.square{border-radius:4px}.builder-choice.chosen .choice-indicator{border-color:var(--block-accent)}.builder-choice.chosen .square{background:var(--block-accent);color:#fff}.builder-choices.tiles .builder-choice{padding:11px 13px}.builder-choices.buttons .builder-choice{padding:8px 13px;border:1px solid #ddd;border-radius:7px}.builder-choices.buttons .choice-indicator{display:none}.builder-stars{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.builder-stars button{border:0;background:none;padding:2px;cursor:pointer;color:#e1e4e7;width:31px;height:36px;transition:transform .1s}.builder-stars button:hover{transform:scale(1.12);color:var(--star)}.builder-stars button.filled{color:var(--star)}.builder-stars svg{width:100%;height:100%}.rating-caption{font-size:10px;margin-left:8px;color:inherit;opacity:.65}.builder-faces{display:flex;justify-content:space-between;align-items:start;gap:10px}.builder-faces button{border:0;background:none;min-width:0;flex:1;max-width:65px;padding:3px;cursor:pointer;border-radius:10px}.builder-faces svg{width:100%;height:auto;display:block;transition:transform .15s}.builder-faces button:hover svg{transform:scale(1.09)}.builder-faces small{display:block;font-size:9px;line-height:1.5;margin-top:6px;color:inherit}.builder-faces button[aria-pressed=true]{box-shadow:0 0 0 2px #ded6ea}.builder-circles{display:flex;flex-wrap:wrap;gap:9px;justify-content:space-between}.builder-circles button{border:0;background:none;padding:0;display:grid;gap:7px;justify-items:center;color:inherit;cursor:pointer}.number-circle{display:grid;place-items:center;width:25px;height:25px;border:1.5px solid;border-radius:50%;font-size:10px;color:var(--block-accent)}.builder-circles small{font-size:10px;color:inherit;opacity:.7}.builder-slider output{font-size:16px;display:block;margin-bottom:10px;font-variant-numeric:tabular-nums}.survey-item :is(select,textarea,input[type=text]){font:inherit;max-width:100%;width:100%;padding:11px 12px;border:1px solid #ddd;border-radius:7px;background:#fff;color:inherit}.survey-item textarea{resize:vertical;min-height:90px}.survey-item input[type=range]{width:100%;accent-color:var(--block-accent)}.builder-other{margin-top:10px}.survey-item .range-labels{font-size:10px;opacity:.65;gap:12px;margin-top:12px}.survey-block>.survey-send{margin-top:25px}.survey-stage .survey-block{max-width:760px}.survey-stage.mobile .survey-block{max-width:350px}.survey-stage.mobile .survey-item{grid-column:span 6}.survey-item :is(button,select,input,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:3px}.survey-item .preview-error{font-size:10px;color:#ba5868;margin-top:9px}.result-question{margin:22px 0 15px}.template-preview .block-mini-faces{margin:12px 0}.template-preview .block-mini-faces svg{width:18%}html[data-theme=minimal] .block-list-row,html[data-theme=minimal] .block-properties,html[data-theme=minimal] .block-template{border-color:#e4e4e4;background:#fff}html[data-theme=minimal] .block-list-row.is-selected{background:#f2f2f2;border-color:#aaa}html[data-theme=minimal] .block-template-visual{background:#f4f4f4}html[data-theme=minimal] :is(.block-select,.block-select small,.builder-section-heading h2,.builder-section-heading>span,.block-template strong,.block-template small){color:#777}html[data-theme=minimal] .block-mini-circles span{border-color:#bbb;color:#777}
@media(max-width:1100px){.block-library{grid-template-columns:1fr 1fr}.block-properties{padding:12px}.builder-section-heading{flex-wrap:wrap}.builder-circles{gap:7px}.number-circle{width:23px;height:23px}.builder-faces{gap:5px}}
@media(max-width:650px){.block-library{grid-template-columns:1fr 1fr}.survey-item.width-third,.survey-item.width-half{grid-column:span 6}.builder-stars button{width:29px}.survey-stage{padding:16px 12px}.builder-faces{gap:8px}}
/* Large multi-question forms share the page scroll without a sticky preview trap. */
.preview-shell{position:relative;top:auto}.mini-composite{display:grid;gap:9px}.mini-composite .block-mini-stars{justify-content:flex-start}.mini-composite .block-mini-input{padding:6px 8px}.mini-composite .block-mini-choice{font-size:9px}dialog:has(.block-library){max-width:790px;max-height:calc(100dvh - 40px);overflow-y:auto}.block-template-visual{height:78px}.block-template{padding-bottom:11px}.block-template strong{margin-top:9px}
/* Selection mechanics and their visual indicators are independent. */
.builder-choice{text-align:var(--answer-align,left);justify-content:var(--content-justify,flex-start)}.builder-choices.horizontal,.builder-choices.grid{justify-content:var(--content-justify,flex-start)}.builder-choices.vertical{align-items:stretch}.builder-stars{justify-content:var(--content-justify,flex-start)}.builder-stars button:hover{color:inherit}.builder-stars button.filled,.builder-stars button.filled:hover{color:var(--star,#e5a009)}.builder-stars button{transition:color .1s,transform .1s}.block-mini-stars{color:#e5a009}.survey-item{grid-column:1/-1!important}.survey-item :is(select,textarea,input[type=text]),.builder-other{text-align:var(--answer-align,left)}.survey-item .range-labels{text-align:initial}.survey-submit-row{margin-top:25px;width:100%}.survey-submit-row .survey-send{margin-top:0;display:inline-flex;justify-content:center}.builder-circles{display:grid;grid-template-columns:repeat(min(var(--circle-count),11),minmax(0,1fr));gap:5px;width:100%;justify-content:stretch}.builder-circles button{width:100%;min-width:0;gap:7px;justify-items:center;min-height:44px}.builder-circles .number-circle{width:min(100%,27px);height:auto;aspect-ratio:1;box-sizing:border-box}.builder-circles small{font-size:10px}.survey-stage.mobile .builder-circles{gap:3px}.survey-stage.mobile .number-circle{width:min(100%,25px)}.survey-stage.mobile .builder-circles small{font-size:9px}.survey-stage.mobile .survey-item{min-width:0}.survey-stage.mobile .builder-stars{gap:2px}.survey-stage.mobile .builder-stars button{width:28px}.survey-stage.mobile .builder-faces{gap:6px}
/* Mobile overflow safeguards apply to the actual components, not just the preview frame. */
.survey-block,.survey-item,.survey-item-input,.builder-choices,.builder-choice{min-width:0}.survey-builder-title,.survey-builder-intro,.survey-item h3,.survey-item p,.survey-item small,.range-labels span{overflow-wrap:anywhere;word-break:normal}.builder-choice{max-width:100%;white-space:normal}.builder-choice>span:last-child{min-width:0;overflow-wrap:anywhere}.builder-choices.vertical>.builder-choice{width:100%}.builder-choices.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-circles button{grid-template-columns:minmax(0,1fr);min-width:0}.builder-circles .number-circle{min-width:0;max-width:100%;width:25px}.survey-stage.mobile .builder-circles .number-circle{min-width:0;max-width:100%;width:25px}.survey-item input[type=range]{display:block;margin-inline:0;min-width:0;max-width:100%}.builder-faces{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.builder-faces button{width:100%;max-width:65px;justify-self:center;min-width:0}.builder-faces small{overflow-wrap:anywhere}.range-labels>span{min-width:0;max-width:48%}.range-labels>span:last-child{text-align:right}.survey-send{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.6;box-sizing:border-box;text-align:center}.survey-item :is(select,textarea,input[type=text]){min-width:0;box-sizing:border-box}.survey-item textarea{resize:vertical}.builder-slider output{overflow-wrap:anywhere}
dialog:has(.full-survey-templates){max-width:1050px;max-height:calc(100dvh - 44px);overflow-y:auto}.full-survey-templates{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.template-start-blank{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid #eee8f4;font-size:11px;color:#887297}.full-survey-templates .template-preview{height:240px;min-height:240px;justify-content:flex-start;padding:17px;overflow:hidden;position:relative}.full-survey-templates .template-preview:after{content:'';position:absolute;bottom:0;left:0;right:0;height:23px;background:linear-gradient(transparent,#f4f1fa)}.full-survey-templates .mini-question{font-size:10px;line-height:1.5}.full-survey-templates .mini-composite{gap:11px}.template-mini-block>span{font-size:8px;display:block;color:#8e759f;margin-bottom:6px;line-height:1.5}.template-mini-block .block-mini-stars{justify-content:flex-start}.template-mini-block .block-mini-stars svg{width:16px;height:18px}.template-mini-block .mini-options>span{font-size:7px;padding:4px 6px}.template-mini-block .block-mini-faces{max-width:180px}.template-card-copy{padding:15px 16px 17px}.template-card-copy .template-question{font-size:12px;color:#675273;line-height:1.6;margin:0 0 8px;font-weight:600}.template-card-copy .template-description{font-size:10px;color:#95809f;line-height:1.7;margin:0 0 11px}.template-block-count{font-size:9px;color:#b09bb9;line-height:1.7;display:block}html[data-theme=minimal] .full-survey-templates .template-preview:after{background:linear-gradient(transparent,#f1f1f1)}html[data-theme=minimal] .template-card-copy :is(.template-question,.template-description,.template-block-count),html[data-theme=minimal] .template-mini-block>span{color:#777}@media(max-width:850px){.full-survey-templates{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.full-survey-templates{grid-template-columns:1fr}.full-survey-templates .template-preview{height:210px;min-height:210px}dialog:has(.full-survey-templates){padding:20px}.template-start-blank{font-size:10px}}
/* Fonts are served locally; survey typography does not alter the dashboard font. */
.survey-block :is(button,input,textarea,select){font-family:inherit}.survey-item :is(h3,p,small){font-family:inherit}.survey-block .builder-slider input[type=range]{appearance:none;-webkit-appearance:none;height:8px;border:0;border-radius:99px;padding:0;background:linear-gradient(to right,var(--slider-color,#6d5ce8) 0%,var(--slider-color,#6d5ce8) var(--slider-progress,0%),var(--slider-track,#e7e2f0) var(--slider-progress,0%),var(--slider-track,#e7e2f0) 100%);accent-color:var(--slider-color,#6d5ce8);cursor:pointer}.survey-block .builder-slider input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:19px;height:19px;background:var(--slider-color,#6d5ce8);border:3px solid #fff;border-radius:50%;box-shadow:0 1px 5px #0003;cursor:grab}.survey-block .builder-slider input[type=range]::-moz-range-thumb{width:14px;height:14px;background:var(--slider-color,#6d5ce8);border:3px solid #fff;border-radius:50%;box-shadow:0 1px 5px #0003;cursor:grab}.survey-block .builder-slider input[type=range]:active::-webkit-slider-thumb{cursor:grabbing}.builder-slider{padding-block:4px 8px}.full-survey-templates .template-preview:after{display:none}.full-survey-templates .mini-composite{gap:var(--mini-gap,9px)}.template-preview .template-mini-block>span{color:inherit;opacity:.8}.template-preview .mini-options>span{border-color:var(--mini-border);border-radius:var(--mini-radius);color:inherit;background:#ffffff99}.template-preview .mini-options>span:first-child{background:var(--mini-selection)}.template-preview .block-mini-choice{color:inherit}.template-preview .block-mini-input{color:inherit;border-color:var(--mini-border);border-radius:var(--mini-radius)}.template-preview .block-mini-range{background:var(--mini-border)}.template-preview .block-mini-range i{background:var(--mini-button)}.template-preview .block-mini-circles span{color:inherit;border-color:var(--mini-button)}
/* Final monochrome rendering includes inline colors, SVGs and top-layer dialogs.
   Keep original design values intact so switching back restores every survey color. */
html[data-theme=minimal] .app-shell,
html[data-theme=minimal] dialog,
html[data-theme=minimal] #toast{filter:grayscale(1)}
html[data-theme=minimal] dialog::backdrop{background:#0005;backdrop-filter:grayscale(1)}
html[data-theme=minimal] .metric:nth-child(n) .metric-value{color:#444}
html[data-theme=minimal] .metric:nth-child(n) .metric-top:after{background:#eee;color:#888}
html[data-theme=minimal] dialog{border-color:#ddd;box-shadow:0 20px 90px #0002}
html[data-theme=minimal] .modal-head h2{color:#444}
html[data-theme=minimal] :is(button,a,input,select,textarea,summary):focus-visible{outline-color:#888}
html[data-theme=minimal] .color-popover{border-color:#ddd;box-shadow:0 10px 40px #0002}
/* One predictable, inset dropdown indicator across the workspace and survey fields. */
select,.field select,select.filter,.preview-order,.survey-item select{appearance:none;-webkit-appearance:none;box-sizing:border-box;min-width:0;max-width:100%;padding-right:36px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:14px 14px!important;line-height:1.5;text-overflow:ellipsis;cursor:pointer}.survey-item select{padding-left:36px!important}.active-surveys-panel{display:flex;flex-direction:column;align-self:start;min-height:0}.active-surveys-panel .panel-head{margin-bottom:10px}.active-surveys-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:28px 15px 20px;min-width:0}.active-empty-icon{display:grid;place-items:center;width:35px;height:35px;border:1px solid #e6dfef;border-radius:10px;background:#f7f3fc;color:#a28bb5;font-size:22px;margin-bottom:3px}.active-surveys-empty strong{font-size:12px;font-weight:550;color:#7a6688}.active-surveys-empty p{font-size:11px;line-height:1.8;color:#9b87a9;margin:0;max-width:265px}.active-surveys-panel>.form-footer{margin-top:12px;justify-content:center;padding-bottom:4px}.active-surveys-panel:has(.survey-card)>.form-footer{justify-content:flex-start}.active-surveys-panel .survey-card{align-items:flex-start;min-width:0}.active-surveys-panel .survey-card>div{min-width:0}.active-surveys-panel .survey-card strong,.active-surveys-panel .survey-card p{overflow-wrap:anywhere}html[data-theme=minimal] .active-empty-icon{background:#f4f4f4;color:#999;border-color:#e4e4e4}html[data-theme=minimal] .active-surveys-empty strong{color:#666}html[data-theme=minimal] .active-surveys-empty p{color:#888}
/* Minimal chrome stays neutral; survey design tools retain their actual colors. */
html[data-theme=minimal] .app-shell,
html[data-theme=minimal] dialog,
html[data-theme=minimal] #toast{filter:none}
html[data-theme=minimal] dialog::backdrop{backdrop-filter:none}
html[data-theme=minimal] .metric:nth-child(n) .metric-value{color:#111}
html[data-theme=minimal] :is(.page h1,.panel-title,.builder-section-heading h2,.appearance-toggle strong,.workspace strong,.survey-card strong,.active-surveys-empty strong,.modal-head h2){color:#1a1a1a}
html[data-theme=minimal] :is(.field,.control-group>summary,.color-label,.block-select strong,.crumb strong){color:#454545}
html[data-theme=minimal] .side-nav button.active{color:#171717}
html[data-theme=minimal] .metric-top{color:#606060}
html[data-theme=minimal] .template-preview{background:var(--template-surface,#f4f1fa)}
html[data-theme=minimal] .full-survey-templates .mini-options>span:first-child{background:var(--mini-selection)!important;border-color:var(--mini-border)!important}
html[data-theme=minimal] .template-preview .block-mini-range i{background:var(--mini-button)}
html[data-theme=minimal] .template-preview .block-mini-circles span{border-color:var(--mini-button);color:inherit}
html[data-theme=minimal] .template-preview .block-mini-smileys span{color:inherit}
html[data-theme=minimal] :is(.mini,.color-value,.color-chevron,.nav-label,.wordmark-os,.block-tools,.deleted-surveys summary){color:#747474}
html[data-theme=minimal] .mini{border-color:#ddd;background:#fff}
html[data-theme=minimal] .color-popover{background:#fff}
html[data-theme=minimal] .survey-block :is(button,input,select,textarea):focus-visible{outline-color:var(--focus,#777)}
/* Customer-type rules use the same complete field treatment as other selects. */
.rule-values{min-width:0}.rule-values select{display:block;flex:1;width:100%;min-width:0;min-height:39px;padding:10px 36px 10px 12px;border:1px solid #e4dfed;border-radius:8px;background-color:#fff;color:#655373;font:inherit;font-size:11px;line-height:1.5;box-shadow:none}.rule-values select:focus-visible{outline:2px solid #ac8bc8;outline-offset:3px}html[data-theme=minimal] .rule-values select{border-color:#ddd;background-color:#fff;color:#111!important}html[data-theme=minimal] .rule-values select:focus-visible{outline-color:#888}
/* Normal workspace palette: deep aubergine, lavender and mint. */
.theme-options{position:relative}.theme-options h3{font-size:12px;font-weight:600;margin:0 0 18px}.theme-swatches{position:absolute;top:-4px;right:0;display:flex;gap:5px}.theme-swatches span{width:20px;height:20px;border-radius:50%;border:1px solid #0001}.theme-options .field{margin-bottom:10px}
/* Alternative workspace palette: Mint Green #4ADE80 / Charcoal #111827 / Off White #F9FAFB. */

/* Fourth workspace palette: coral and white, with dark readable typography. */
/* Final workspace: neutral by default, semantic color only in charts/statuses. */
.preview-shell,.preview-toolbar,html[data-theme=minimal] .preview-shell,html[data-theme=minimal] .preview-toolbar{background:#fff}
.survey-stage,.survey-stage.mobile,html[data-theme=minimal] .survey-stage{background:#fff}
html[data-theme=minimal] .button.dark,html[data-theme=minimal] .button.dark:hover,html[data-theme=minimal] .button.dark:focus-visible{background:#333;color:#fff!important;border-color:#333}
.survey-block .builder-choice.chosen .square{color:var(--choice-mark,#fff);background:var(--block-accent,#444);border-color:var(--block-accent,#444)}
html[data-theme=minimal] .bar-row:nth-child(6n+1) .bar-track span{background:#95b3a4}
html[data-theme=minimal] .bar-row:nth-child(6n+2) .bar-track span{background:#9baed0}
html[data-theme=minimal] .bar-row:nth-child(6n+3) .bar-track span{background:#c7ae8c}
html[data-theme=minimal] .bar-row:nth-child(6n+4) .bar-track span{background:#b6a2c6}
html[data-theme=minimal] .bar-row:nth-child(6n+5) .bar-track span{background:#cc9eaa}
html[data-theme=minimal] .bar-row:nth-child(6n+6) .bar-track span{background:#8ebbc2}
html[data-theme=minimal] .badge.active,html[data-theme=minimal] .active-surveys-panel .panel-head>.badge{color:#356b4c;background:#e5f3e9;border-color:#d1e8d7}
html[data-theme=minimal] .badge.paused{color:#926a2b;background:#faf0de;border-color:#efdfbf}
html[data-theme=minimal] .badge.draft{color:#66769a;background:#edf0f8;border-color:#dde3f0}
/* All preview states use the chosen design tokens, including formerly fixed colors. */
.survey-block .builder-choice:hover,.survey-block .builder-choices.radio .builder-choice:hover{background:var(--hover)!important}
.survey-block .builder-choice{color:var(--answer-color);border-color:var(--answer-border)}
.survey-block .choice-indicator{border-color:var(--answer-border)}
.survey-block .builder-choices.buttons .builder-choice{border-color:var(--answer-border);border-width:var(--answer-border-width);border-radius:var(--answer-radius)}
.survey-block .builder-faces button,.survey-block .builder-stars button,.survey-block .builder-circles button{color:inherit}
.survey-block .builder-stars button{color:#e1e4e7}
.survey-block .builder-stars button.filled{color:var(--star)}
.survey-block .builder-faces button[aria-pressed=true]{box-shadow:0 0 0 2px var(--block-accent)}
.survey-block :is(input,textarea)::placeholder{color:var(--placeholder-color,#777);opacity:1}
html[data-theme=minimal] .survey-block :is(input,textarea)::placeholder{color:var(--placeholder-color,#777)}
.survey-block .builder-other {
  color: var(--answer-color);
  border-color: var(--answer-border);
  border-width: var(--answer-border-width);
  border-radius: var(--answer-radius);
  padding: 11px 13px;
  min-height: 42px;
}
.survey-block .builder-circles button:not([aria-pressed=true]):hover .number-circle{background:var(--hover)!important}
.editor-controls .tabs{flex-wrap:wrap}.editor-controls .tabs button{min-width:70px}.survey-reward{border-top:1px solid #e5e5e5;margin-top:24px;padding-top:22px}.survey-reward h3{margin:0 0 10px;font-size:17px;font-weight:600}.survey-reward p{font-size:12px;line-height:1.8;margin:0 0 17px}.reward-code-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center}.reward-code-row code{font-family:ui-monospace,monospace;letter-spacing:.08em;padding:13px 18px;border:1px dashed #aaa;border-radius:7px;overflow-wrap:anywhere;max-width:100%;user-select:all}.reward-code-row .survey-send{margin:0}.reward-copy-state{display:block;font-size:11px;margin-top:12px}
/* Shared mobile page-heading rhythm across all five workspace screens. */
@media(max-width:650px){
.page{padding:20px 16px}
.page-head{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;align-content:start;min-height:0;gap:16px;margin:0 0 22px;width:100%}
.page-head>div{min-width:0;max-width:100%}
.page h1{font-size:26px;line-height:1.25;letter-spacing:-.8px;margin:0;white-space:normal;overflow-wrap:anywhere;text-wrap:balance}
.page-head .eyebrow{margin:0 0 8px;line-height:1.5}
.page-head .page-intro{font-size:11px;line-height:1.7;margin:8px 0 0;overflow-wrap:anywhere}
.page-head .head-actions,.page-editor .page-head .head-actions{width:100%;justify-content:flex-start;flex-wrap:wrap;gap:8px}
.page-results{gap:22px}
.page-results>.page-head{margin-bottom:0}
}

/* Website palette for the workspace. Survey artwork keeps its own colors. */
html[data-theme=minimal] {
  color-scheme: light;
  --ink: #171717;
  --muted: #555155;
  --line: #dedadd;
  --accent: #ef7165;
  --workspace-bg: #fff;
  --workspace-card: #fff;
  --workspace-control: #f7f6f6;
  color: var(--ink);
  background: var(--workspace-bg);
}

html[data-theme=minimal] :is(body,.app-shell,.content-column,.sidebar,.topbar) {
  background: var(--workspace-bg);
}
html[data-theme=minimal] :is(.metric,.panel,.workspace,dialog,.template-card,.template-start-blank,.deleted-surveys,.color-popover) {
  background: var(--workspace-card);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}
html[data-theme=minimal] :is(.page h1,.panel-title,.metric:nth-child(n) .metric-value,.workspace strong,.survey-card strong,.builder-section-heading h2,.modal-head h2,.appearance-toggle strong,.crumb strong,.template-card-copy .template-question,td,td:first-child) {
  color: var(--ink);
}
html[data-theme=minimal] :is(.eyebrow,.page-intro,.panel-sub,.metric-top,.metric-foot,.crumb,.nav-label,.wordmark-os,.workspace small,.connection-caption,.survey-card p,.active-surveys-empty strong,.active-surveys-empty p,.bar-label,.bar-label span:last-child,.muted,.small,.field,.editor-hint,.empty,th,.rule-summary,.answer-meta,.color-label,.color-value,.control-group>summary,.control-group>summary span,.builder-section-heading>span,.template-card-copy .template-description,.template-card-copy .template-block-count,.settings-footer p,.deleted-surveys summary,.price,.price small,.appearance-toggle small) {
  color: var(--muted);
}
html[data-theme=minimal] :is(.workspace-icon,.connection-badge,.active-empty-icon,.button,.mini,.tabs,.block-select,.block-index,.rule,.color-trigger,.badge.neutral,.table-wrap th,.bar-track) {
  background: var(--workspace-control);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme=minimal] .metric:nth-child(n) .metric-top:after {
  background: var(--workspace-control);
  color: #a9362c;
}
html[data-theme=minimal] .metric {border-color:var(--line)}
html[data-theme=minimal] :is(.side-nav button,.tabs button,.block-select strong,.block-select small,.text-link,.inline-link,.text-button) {
  color: var(--muted);
}
html[data-theme=minimal] :is(.side-nav button.active,.tabs button.active,.button[aria-pressed=true],.button:hover) {
  color: var(--ink);
  background: #fff0ee;
  border-color: #d98d85;
}
html[data-theme=minimal] .side-nav button.active::before {background:var(--accent)}
html[data-theme=minimal] .button.dark:is(:link,:visited,:hover,:focus-visible),
html[data-theme=minimal] button.button.dark {
  background: var(--accent);
  border-color: #a9362c;
  color: #211614!important;
}
html[data-theme=minimal] :is(.field input:not([type=checkbox]):not([type=range]):not([type=color]),.field textarea,.field select,.filter,.option-row input,.rule-values input,.rule-values select) {
  color: var(--ink)!important;
  background-color: var(--workspace-control);
  border-color: var(--line);
}
html[data-theme=minimal] :is(.field,.option-row,.rule-values) :is(input,textarea)::placeholder {
  color: var(--muted);
}
html[data-theme=minimal] :is(th,td,.survey-card,.control-group,.settings-details,.table-wrap) {
  border-color: var(--line);
}
html[data-theme=minimal] .bar-row:nth-child(n) .bar-track span {background:var(--accent)}
html[data-theme=minimal] :is(button,a,input,select,textarea,summary):focus-visible {outline-color:#b83f34}

/* Match native dropdowns and editor controls to the workspace palette. */
html[data-theme=minimal] .page {
  background: var(--workspace-bg);
  color: var(--ink);
}
html[data-theme=minimal] :is(.filter,.preview-order) {
  background-color: var(--workspace-control)!important;
  border-color: var(--line)!important;
  color: var(--ink)!important;
}
html[data-theme=minimal] :is(.preview-toolbar,.editor-controls .control-group,.color-picker>summary,.template,.template:hover,.avatar,.match,.save-state,.empty,.selected-device,.badge:not(.active,.paused,.draft)) {
  background-color: var(--workspace-control);
  border-color: var(--line);
  color: var(--muted);
}
html[data-theme=minimal] .preview-toolbar {border-bottom:1px solid var(--line)}
html[data-theme=minimal] .selected-device {background-color:#fff0ee!important;color:var(--ink)}
html[data-theme=minimal] .side-nav button:hover {background:#fff0ee;color:var(--ink)}
html[data-theme=minimal] .wordmark {color:var(--ink)!important}
html[data-theme=minimal] .wordmark:before {background:var(--accent)}
html[data-theme=minimal] .survey-stage {color-scheme:light;color:#292929}
html[data-theme=minimal] .survey-stage .empty {background:transparent;color:#595959}
html[data-theme=minimal] :is(.block-list-row,.block-properties,.block-template,.rule-summary) {
  background: var(--workspace-card);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme=minimal] .block-list-row.is-selected {
  background: #fff0ee;
  border-color: #d98d85;
}
html[data-theme=minimal] .block-template-visual {
  background: var(--workspace-control);
  color: var(--muted);
}
html[data-theme=minimal] .active-surveys-panel .panel-head>.badge {
  background: var(--workspace-control);
  border-color: var(--line);
  color: var(--muted);
}

/* Keep editor controls distinct from the customer-facing preview. */
html[data-theme=minimal] :is(.sidebar,.sidebar-bottom,.topbar,.preview-shell,.block-properties .builder-section-heading,.design-scope,.color-sliders) {
  border-color: var(--line);
}
html[data-theme=minimal] :is(.side-nav button,.tabs button,.block-select,.mini,.text-button,.text-link,.inline-link,.preview-toolbar button,.template-start-blank,.summary-label,.color-slider-label,.color-slider-label output,.color-chevron,.editor-hint) {
  color: var(--muted);
}
html[data-theme=minimal] :is(.side-nav button.active,.tabs button.active,.preview-toolbar .selected-device,.block-select strong,.button,.mini:hover) {
  color: var(--ink);
}
html[data-theme=minimal] :is(.field input:not([type=checkbox]):not([type=range]):not([type=color]),.field textarea,.field select,.option-row input,.rule-values input,.rule-values select,.preview-order) {
  background-color: var(--workspace-control);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme=minimal] :is(.field,.option-row,.rule-values) :is(input,textarea)::placeholder {
  opacity: 1;
}
html[data-theme=minimal] .preview-shell {
  background: var(--workspace-card);
}

html[data-theme=minimal] .editor-controls .tabs button:not(.active) {
  color: var(--muted);
}

/* Questions are edited inside their cards, with optional controls folded away. */
.question-card-header { display: flex; align-items: flex-start; }
.question-card-header .block-select { flex: 1; min-width: 0; }
.question-fields { padding: 14px; background: var(--workspace-card); border-top: 1px solid var(--line); }
.question-menu { position: relative; flex: none; margin: 7px; }
.question-menu summary { list-style: none; padding: 6px 10px; cursor: pointer; color: var(--ink); }
.question-menu summary::-webkit-details-marker { display: none; }
.question-menu .block-tools {
  position: absolute;
  inset: 100% 0 auto auto;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 6px;
  min-width: 120px;
  background: var(--workspace-card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.question-options, .question-type-group { border-top: 1px solid var(--line); margin-top: 14px; }
.question-options summary, .question-type-group summary { padding: 12px 0; cursor: pointer; font-size: 12px; font-weight: 600; }
.question-type-group .block-library { margin-bottom: 14px; }
.editor-controls .mobile-preview-tab { display: none; }
@media (max-width: 650px) {
  .editor-controls .mobile-preview-tab { display: inline-block; }
  .editor-layout:not([data-editor-tab="preview"]) .preview-shell { display: none; }
  .editor-layout[data-editor-tab="preview"] #controls,
  .editor-layout[data-editor-tab="preview"] #save-state { display: none; }
}
.block-list-row:has(.question-menu) { overflow: visible; }
.question-fields { border-radius: 0 0 9px 9px; }

.option-grip {
  flex: none;
  min-height: 36px;
  font-size: 18px;
  cursor: grab;
  touch-action: none;
}
.option-grip:active { cursor: grabbing; }
.option-drop-target { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.question-grip { margin: 7px 0 7px 7px; }
.sort-row { transition: transform 160ms ease; }
.sort-row.sort-dragged {
  position: relative;
  z-index: 3;
  transition: none;
  border-radius: 8px;
  background: var(--workspace-card);
  box-shadow: 0 5px 18px #0002;
}
@media (prefers-reduced-motion: reduce) {
  .sort-row { transition: none; }
}

html[data-theme=minimal] .question-fields .option-row[data-option-row] {
  gap: 6px;
  margin-bottom: 8px;
}
html[data-theme=minimal] .question-fields .option-row[data-option-row] input {
  min-height: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
html[data-theme=minimal] .question-fields .option-row[data-option-row] input {
  padding: 8px 10px;
  background-color: #fff !important;
}
html[data-theme=minimal] .editor-controls :is(.block-list-row, .block-select, .block-index, .question-grip) {
  background: #fff;
}
html[data-theme=minimal] .question-fields .field :is(input:not([type=checkbox]):not([type=range]):not([type=color]), textarea, select) {
  background-color: #fff;
}
html[data-theme=minimal] .question-fields .option-row[data-option-row] .mini {
  min-width: 40px;
  background: transparent;
  border: 0;
  color: var(--muted);
}
html[data-theme=minimal] .question-fields .option-row[data-option-row] .mini:hover,
html[data-theme=minimal] .question-fields .option-row[data-option-row] [data-action="block-option-delete"] {
  color: #a9362c;
}
html[data-theme=minimal] .question-fields .option-row[data-option-row] input:focus-visible {
  outline: none;
  box-shadow: inset 0 -2px #b83f34;
}
html[data-theme=minimal] .question-fields .option-row.sort-dragged {
  background: var(--workspace-card);
}
html[data-theme=minimal] .editor-controls :is([data-action="block-option-add"], [data-action="add-block"]) {
  margin-top: 8px;
  padding-inline: 4px;
  background: transparent;
  border: 0;
}
html[data-theme=minimal] .editor-controls :is([data-action="block-option-add"], [data-action="add-block"]):hover {
  color: #a9362c;
}

.preview-toolbar { flex-wrap: wrap; }

.survey-success .confirmed {
  width: 32px;
  height: 32px;
  border: 0;
  color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  .survey-success .confirmed :is(circle, path) {
    stroke-dasharray: 1;
    animation: draw-confirmation 320ms ease-out both;
  }
  .survey-success .confirmed path {
    animation-delay: 200ms;
  }
}
@keyframes draw-confirmation {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

html[data-theme=minimal] :is(.active-surveys-panel, .deleted-surveys) :is(.survey-card, .button:not(:hover)),
html[data-theme=minimal] .page-results .freetext {
  background: #fff;
}

html[data-theme=minimal] .deleted-surveys [data-action="purge-survey"] {
  color: #a9362c;
  border-color: #d98d85;
}

html[data-theme=minimal] .editor-controls .question-grip {
  background: transparent;
  border-color: transparent;
}
html[data-theme=minimal] .editor-controls .tabs,
html[data-theme=minimal] .editor-controls .tabs button,
html[data-theme=minimal] .editor-controls .control-group,
html[data-theme=minimal] .editor-controls .color-picker > summary,
html[data-theme=minimal] .editor-controls .field :is(input:not([type=checkbox]):not([type=range]):not([type=color]), textarea, select) {
  background-color: #fff;
}
html[data-theme=minimal] .editor-controls .tabs button.active {
  color: #a9362c;
  box-shadow: none;
}

html[data-theme=minimal] #modal {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 14px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-shadow: 0 16px 48px #21161424;
}
#modal::backdrop {
  background: #17171755;
}
#modal .modal-head {
  gap: 16px;
  margin-bottom: 14px;
}
html[data-theme=minimal] #modal .modal-head .mini {
  min-width: 36px;
  min-height: 36px;
  background: transparent;
  border: 0;
}
#modal .form-footer {
  flex-wrap: wrap;
  gap: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  #modal[open] {
    animation: modal-enter 180ms ease-out both;
  }
  #modal[open]::backdrop {
    animation: modal-backdrop-enter 180ms ease-out both;
  }
}
@keyframes modal-enter {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes modal-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.overview-panels > .panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 380px;
}
.overview-panels > .panel > :is(.panel-head, .form-footer) {
  flex-shrink: 0;
}
.overview-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.overview-panel-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.overview-panels .active-surveys-panel:has(.survey-card) > .form-footer {
  justify-content: flex-start;
}

.page-overview .metric {
  container-type: inline-size;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: start;
}
.page-overview .metric-value {
  margin: 0;
  text-align: left;
  font-size: clamp(28px, 19cqi, 44px) !important;
  line-height: 1;
}
.page-overview .metric:last-child .metric-value {
  font-size: clamp(24px, 17cqi, 44px) !important;
}
.page-overview .metric-foot {
  align-self: end;
}
