.mode{display:inline-flex;background:#fff;border:2px solid var(--plum);border-radius:999px;padding:4px;gap:4px;margin-top:8px;flex-wrap:wrap}
.seg{font:inherit;font-weight:700;font-size:1rem;min-height:44px;padding:0 22px;border-radius:999px;border:0;background:transparent;color:var(--plum);cursor:pointer}
.seg[aria-pressed="true"]{background:var(--plum);color:#fff}
.cfg-wrap{padding:0 0 72px}
.cfg{background:#fff;border-radius:28px;box-shadow:0 14px 40px rgba(59,32,50,.1);border:1px solid #F1E3D3;overflow:clip}
.cfg-top{padding:20px 24px;border-bottom:1px solid #F1E3D3}
.stepper{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 10px}
.stepper button{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 10px;border-radius:999px;border:2px solid transparent;background:transparent;font:inherit;font-weight:600;color:var(--plum);cursor:pointer}
.stepper .n{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--peach);color:var(--plum);font-weight:800;font-size:.95rem}
.stepper button[aria-current="step"]{border-color:var(--plum)}
.stepper button[aria-current="step"] .n{background:var(--ink);color:#fff}
.cfg[data-mode="all"] .stepper{display:none}
.cfg[data-mode="all"] .cfg-top{display:none}
.cfg-body{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;padding:28px 28px 32px}
.cfg-form fieldset{border:0;margin:0;padding:0;min-width:0}
.cfg-form legend{padding:0;margin-bottom:8px}
.cfg-form legend h2{font-size:1.7rem;margin:0}
.cfg-form legend h2:focus-visible{outline-offset:6px}
.step{margin-bottom:28px!important}
.cfg[data-mode="all"] .step{border-bottom:1px solid #F1E3D3;padding-bottom:28px!important}
.cfg[data-mode="wizard"] .step[hidden]{display:none}
.cfg[data-mode="all"] .nav-btns{display:none}
.opts{display:grid;gap:10px;grid-template-columns:1fr}
.opts-row{grid-template-columns:repeat(2,1fr)}
.opts-pos{grid-template-columns:repeat(2,1fr)}
.opt{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 16px;border:2px solid var(--line);border-radius:16px;background:#fff;cursor:pointer}
.opt input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.opt::before{content:"";flex:none;width:22px;height:22px;border-radius:50%;border:2px solid var(--plum);background:#fff}
.opt:has(input:checked){border-color:var(--ink);background:#FFF1EA;box-shadow:inset 0 0 0 1px var(--ink)}
.opt:has(input:checked)::before{background:radial-gradient(circle,var(--ink) 0 45%,#fff 50%);border-color:var(--ink)}
.opt:has(input:focus-visible),.sw-opt:has(input:focus-visible){outline:3px solid var(--plum);outline-offset:3px;box-shadow:0 0 0 6px #fff}
.opt .lbl{display:flex;flex-direction:column;line-height:1.35;font-weight:600}
.opt small{font-weight:400;color:var(--muted);font-size:.9rem}
.swatches{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.sw-opt{position:relative;display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 16px 6px 12px;border:2px solid var(--line);border-radius:999px;cursor:pointer;background:#fff}
.sw-opt input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.sw-opt .dot{width:36px;height:36px;border-radius:50%;flex:none;border:2px solid var(--plum);display:grid;place-items:center}
.dot-custom{background:conic-gradient(#E8573C,#F0A93C,#2E9E8F,#3C6FD8,#7F3FA0,#E8699E,#E8573C)}
.sw-opt .sname{font-weight:600;font-size:1rem;line-height:1.2}
.sw-opt:has(input:checked){border-color:var(--ink);background:#FFF1EA;box-shadow:inset 0 0 0 1px var(--ink)}
.sw-opt:has(input:checked) .dot::after{content:"";width:12px;height:20px;border:solid #fff;border-width:0 4px 4px 0;transform:rotate(45deg) translate(-1px,-2px);filter:drop-shadow(0 0 2px rgba(0,0,0,.9))}
.field{margin:14px 0}
.field label,.check{font-weight:700}
.field label{display:block;margin-bottom:6px}
input[type=text],input[type=number]{width:100%;min-height:48px;padding:8px 14px;font:inherit;border:2px solid var(--line);border-radius:12px;color:var(--plum);background:#fff}
input[type=color]{width:96px;height:48px;padding:2px;border:2px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}
input[type=range]{width:100%;min-height:44px;accent-color:var(--ink)}
.check{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
.check input{width:24px;height:24px;accent-color:var(--ink);flex:none}
fieldset.sub{margin:18px 0!important}
fieldset.sub legend{font-weight:700;font-size:1.1rem;margin-bottom:8px}
.two-f{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.small{font-size:.95rem}
.err{color:#9C2F1A;font-weight:700;min-height:1.4em;margin:6px 0 0}
.copy-status{min-height:1.6em;font-weight:700;color:#1B6B3A;margin:10px 0}
.note{background:#FFF1EA;border:2px solid var(--ink);border-radius:14px;padding:14px 18px;margin-top:10px}
.prof-list{grid-template-columns:1fr!important;margin:14px 0!important}
.prof-list li{padding:14px 18px!important}
.prof-list h3{font-size:1.1rem!important}
.nav-btns{display:flex;justify-content:space-between;gap:12px;margin-top:8px}
.cfg-preview iframe{width:100%;height:480px;border:2px solid var(--line);border-radius:16px;background:#fff}
.ph2{font-size:1.4rem;margin:0 0 .2em}
#code{overflow:auto}
@media (max-width:900px){.cfg-body{grid-template-columns:1fr;padding:20px 16px}.cfg-top{padding:14px 12px}.two-f{grid-template-columns:1fr}}
@media (max-width:480px){.opts-row,.opts-pos{grid-template-columns:1fr}}
@media (max-width:640px){.mode{display:flex;width:100%;border-radius:28px}.seg{flex:1 1 auto;padding:0 12px}}

dialog#paste{width:min(980px,100% - 24px);max-height:min(90vh,860px);padding:0;border:0;border-radius:28px;background:var(--cream);color:var(--plum);box-shadow:0 30px 80px rgba(59,32,50,.4);overflow:hidden;flex-direction:column}
dialog#paste[open]{display:flex}
dialog#paste::backdrop{background:rgba(59,32,50,.6)}
body:has(dialog[open]){overflow:hidden}
.dlg-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:24px 28px 16px;border-bottom:1px solid #EBD9C6;background:#fff}
.dlg-head h2{font-size:1.7rem;margin:0 0 .2em}
.dlg-x{flex:none;width:48px;height:48px;border-radius:50%;border:2px solid var(--plum);background:#fff;color:var(--plum);font-size:1.8rem;line-height:1;cursor:pointer}
.dlg-x:hover{background:var(--plum);color:#fff}
.dlg-body{display:grid;grid-template-columns:300px 1fr;gap:0;overflow:hidden;min-height:0;flex:1}
.plats{border:0;margin:0;padding:20px;overflow:auto;border-inline-end:1px solid #EBD9C6;display:grid;gap:8px;align-content:start;min-width:0}
.plats legend{font-weight:800;font-size:1.05rem;padding:0 0 8px}
.plat{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 12px;border:2px solid var(--line);border-radius:16px;background:#fff;cursor:pointer;font-weight:700;line-height:1.25}
.plat input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.plat .pi{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:.95rem}
.plat:nth-of-type(3) .pi,.plat:nth-of-type(8) .pi{color:var(--plum)}
.plat:has(input:checked){border-color:var(--ink);background:#FFF1EA;box-shadow:inset 0 0 0 1px var(--ink)}
.plat:has(input:focus-visible){outline:3px solid var(--plum);outline-offset:3px;box-shadow:0 0 0 6px #fff}
.dlg-panel{padding:24px 28px;overflow:auto;background:#fff;min-width:0}
.dlg-panel:focus-visible{outline-offset:-4px}
.dlg-panel h3{font-size:1.5rem}
.psteps{margin:0 0 1em;padding:0;list-style:none;counter-reset:p}
.psteps li{counter-increment:p;position:relative;padding:8px 52px 8px 0;margin-bottom:6px;min-height:40px}
.psteps li::before{content:counter(p);position:absolute;inset-inline-start:0;top:6px;width:34px;height:34px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:.95rem}
.pnote{background:#FFF1EA;border-radius:12px;padding:12px 16px;color:var(--plum)}
.warn{background:#FFF1EA;border:2px solid var(--ink);border-radius:12px;padding:14px 18px}
pre.quote{background:var(--cream);border:1px solid #EBD9C6;border-radius:12px;padding:14px 16px;white-space:pre-wrap;font:inherit;margin:0 0 12px}
.dlg-foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 28px;border-top:1px solid #EBD9C6;background:#fff}
@media (prefers-reduced-motion:no-preference){
 dialog#paste{transition:opacity .25s ease,transform .25s ease,display .25s allow-discrete,overlay .25s allow-discrete}
 dialog#paste:not([open]){opacity:0;transform:translateY(16px) scale(.98)}
 dialog#paste[open]{opacity:1;transform:none}
 @starting-style{dialog#paste[open]{opacity:0;transform:translateY(16px) scale(.98)}}
 dialog#paste::backdrop{transition:background-color .25s ease,display .25s allow-discrete,overlay .25s allow-discrete}
 dialog#paste:not([open])::backdrop{background:rgba(59,32,50,0)}
 @starting-style{dialog#paste[open]::backdrop{background:rgba(59,32,50,0)}}
}
@media (max-width:760px){dialog#paste{max-height:94vh;border-radius:20px}.dlg-body{grid-template-columns:1fr;overflow:auto;display:block}.plats{border-inline-end:0;border-bottom:1px solid #EBD9C6;grid-template-columns:1fr 1fr;overflow:visible}.plats legend{grid-column:1/-1}.dlg-panel{overflow:visible}.dlg-head{padding:16px}.dlg-panel,.dlg-foot{padding-inline:16px}}
@media (max-width:760px){.plat{min-height:48px;padding:4px 8px;gap:8px;font-size:.98rem}.plat .pi{width:32px;height:32px;font-size:.8rem;border-radius:10px}.plats{padding:14px 16px}}
.pback{margin:1.4em 0 0}
.dlg-panel{scroll-margin-top:0}

/* Keep long content (the code block) from widening the form past the screen. */
.cfg-body>*,.cfg-form,fieldset.step,.field{min-width:0}
fieldset{min-inline-size:0}
.cfg-form pre,#code{max-width:100%;overflow:auto}
[hidden]{display:none!important}

/* The dialog frame keeps one size whichever platform is chosen; the instructions scroll inside it. */
dialog#paste{height:min(90vh,800px);max-height:none}
dialog#paste .dlg-panel{overflow:auto}
@media (max-width:760px){dialog#paste{height:94vh;height:94dvh}}
@media (min-width:761px){.pback{display:none}}

/* Statement step (step 4). */
.box{border:2px solid var(--line);border-radius:16px;padding:14px 16px;margin:14px 0}
/* .cfg-form fieldset removes fieldset borders; this one is a box (same specificity, later in the file). Its legend floats so the title sits inside the frame like the other boxes. */
fieldset.box{margin:14px 0;padding:14px 16px;border:2px solid var(--line)}
fieldset.box>legend{float:right;width:100%;margin-bottom:4px}
fieldset.box>legend+*{clear:both}
.box h3{font-size:1.15rem;margin:0 0 4px}
.box legend h3{margin:0}
details.box summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.st-item{display:flex;gap:8px;align-items:center;margin:8px 0}
.st-item input{flex:1}
.st-item-in{flex:1;display:grid;gap:6px;min-width:0}
/* Statement languages: one input per language, tagged only when there are two. */
.st-langs-opts{display:flex;flex-wrap:wrap;gap:4px 24px}
.ml-row{display:flex;gap:8px;align-items:center}
.ml-row+.ml-row{margin-top:6px}
.ml-row>input,.ml-row>textarea{flex:1;min-width:0}
.ml-tag{flex:none;min-width:4.5em;font-size:.9rem;font-weight:700;color:var(--muted)}
.st-plang{margin:0 0 10px}
@media (max-width:480px){.ml-row{flex-direction:column;align-items:stretch;gap:2px}.ml-tag{min-width:0}}
.st-remove{flex:none;width:44px;height:44px;border-radius:50%;border:2px solid var(--plum);background:#fff;color:var(--plum);font:inherit;font-size:1.4rem;line-height:1;cursor:pointer}
.st-remove:hover{background:var(--plum);color:#fff}
.sugg{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0}
.chip{min-height:44px;padding:6px 14px;border:2px solid var(--line);border-radius:999px;background:#fff;color:var(--plum);font:inherit;font-size:.95rem;cursor:pointer;text-align:start}
.chip:hover{border-color:var(--plum)}
input[type=email],input[type=tel],input[type=date],textarea{width:100%;min-height:48px;padding:8px 14px;font:inherit;border:2px solid var(--line);border-radius:12px;color:var(--plum);background:#fff}
textarea{min-height:88px;resize:vertical}
#page-block{margin-top:22px}
#page-block h3{font-size:1.3rem;margin:0 0 .4em}
#st-preview{height:640px}
/* The statement preview sits under the widget preview only when both show (the all-in-one mode). */
#w-preview:not([hidden])+#s-preview{margin-top:18px}
/* The previews stay in view while the form scrolls (desktop). In the all-in-one mode the statement preview slides over the widget preview. */
@media (min-width:901px){.cfg[data-mode="wizard"] .cfg-preview>div{position:sticky;top:16px;background:#fff}#st-preview{height:min(640px,calc(100vh - 150px))}}
.help-under-check{margin:0 0 8px;padding-inline-start:36px}
.dlg-panel h4{font-size:1.2rem;margin:1.4em 0 .5em}
/* Code in the paste window reads left to right; the developer message mixes Hebrew lines and code lines, so each line takes its own direction. */
#paste-pc,#paste-wsite{direction:ltr;text-align:left}
#paste-q{unicode-bidi:plaintext}
