/* Builder controls only; never exported to a generated site. */
.fp-design-dialog [hidden],#site-design-selector[hidden],#site-design-selector [hidden],[data-design-site][hidden]{display:none!important}
#site-design-selector{margin:0 0 36px;color:#182335}
#site-design-selector fieldset,.fp-design-dialog fieldset{border:0;padding:0;min-width:0}
#site-design-selector legend,.fp-design-dialog legend{font-size:20px;font-weight:700;margin:0 0 10px}
#site-design-selector fieldset>p{margin-bottom:20px;color:#566375}
.fp-design-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0 20px}
.fp-design-choice{position:relative;border:1px solid #ced5df;border-radius:8px;padding:12px;cursor:pointer;display:grid;gap:7px;align-content:start;background:#fff;color:#182335}
.fp-design-choice:has(input:checked){outline:2px solid #3959c2;outline-offset:1px}
.fp-design-choice:focus-within{box-shadow:0 0 0 4px #3959c233}
.fp-design-choice>input{position:absolute;right:18px;top:18px;z-index:1;width:16px;height:16px;accent-color:#3959c2;border-radius:50%;box-shadow:0 0 0 4px #fff}
.fp-design-choice>strong{font-size:15px}.fp-design-choice>span:last-child{font-size:13px;line-height:1.5;color:#566375}
.fp-design-screenshot{display:block;width:100%;height:auto;aspect-ratio:18/13;object-fit:contain;border:1px solid #e0e5ec;border-radius:4px;background:#f2f4f8}
.fp-design-photo{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.5}
.fp-design-photo input{width:18px;height:18px;accent-color:#3959c2}
.fp-design-dialog{width:min(1080px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;background:#fafbfd;color:#182335;border:1px solid #ced5df;border-radius:12px;padding:28px;font:14px/1.6 system-ui,sans-serif;box-shadow:0 24px 80px #0004}
.fp-design-dialog::backdrop{background:#102034a6}
.fp-design-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:14px}
.fp-design-dialog h2{font-size:25px;line-height:1.25;font-weight:700;overflow-wrap:anywhere}
.fp-design-dialog-head p{font-size:11px;letter-spacing:.1em;color:#566375;margin-bottom:4px}
.fp-design-dialog [data-close]{font-size:28px;line-height:1;width:40px;height:40px;border:0;background:transparent;color:#182335;flex-shrink:0}
.fp-design-dialog fieldset{margin-top:22px}
.fp-design-colors{display:flex;gap:28px;margin:22px 0}
.fp-design-colors label{display:flex;align-items:center;gap:12px}
.fp-design-colors input{height:36px;width:44px;border:1px solid #ced5df;background:white;cursor:pointer;padding:3px}
.fp-design-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:24px}
.fp-design-actions button{padding:11px 18px;border-radius:5px;background:#223a52;color:#fff;font-weight:600;border:1px solid #223a52;cursor:pointer}
.fp-design-actions [data-apply]{margin-left:auto;background:#fff;color:#223a52}
.fp-design-actions button:disabled{opacity:.4;cursor:not-allowed}
.fp-design-actions a{color:#284daf;text-decoration:underline;font-weight:600}
.fp-design-dialog :is(button,a,input):focus-visible{outline:3px solid #3959c2;outline-offset:3px}
.fp-design-dialog [data-status]{margin-top:16px;color:#3e5061}
.fp-design-dialog [data-error]{color:#a32928;font-weight:600}
.fp-design-dialog iframe{width:100%;height:650px;border:1px solid #ced5df;margin-top:20px;background:#fff;border-radius:4px}
@media(max-width:620px){.fp-design-dialog{padding:20px}.fp-design-choices{grid-template-columns:1fr}.fp-design-colors{flex-wrap:wrap;gap:12px}.fp-design-actions [data-apply]{margin-left:0}.fp-design-dialog iframe{height:500px}}
