/* The same working layout as the K-Bar builder, sized for the wider display. */
.sword-customizer{margin-top:0;border:0;padding-top:0}
.sword-builder-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sword-intro{max-width:62ch;margin:0 0 2rem;font-size:1.125rem;line-height:1.6}
.sword-config-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2.5rem;align-items:start;max-width:none}
.sword-options{gap:1.75rem}
.sword-option-group{border-color:#d9dccf;border-radius:16px;padding:1.5rem}
.sword-option-group>legend{font-size:1.35rem;font-weight:700;padding:0 .5rem}
.sword-options label{font-weight:600}
.sword-options input[type=text],.sword-options select{border-color:#aeb4a3;font-size:1rem;min-height:48px}
.sword-options .sword-approval-check{font-weight:400}
.sword-options .sword-approval-check input{width:22px;height:22px;margin-right:0}
.sword-kbar-choice{gap:12px;margin-bottom:16px}
.sword-kbar-choice input{margin-right:0}
.sword-section-grid{gap:1.25rem}
.sword-wording-group h3{font-size:1.1rem;font-weight:700;margin:.75rem 0}
.sword-wording-group+.sword-wording-group{border-top:1px solid #d9dccf;padding-top:1rem;margin-top:1.5rem}
.sword-top-fields{padding:0;gap:1rem}
.sword-top-fields label{margin-top:.5rem}
.sword-live-panel{position:sticky;top:1.5rem;min-width:0;border:1px solid #d9dccf;border-radius:16px;padding:1.4rem;background:var(--background);text-align:center}
.sword-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;text-align:left}
.sword-preview-heading h2{font-size:1.4rem;margin:0}
.sword-preview-heading span{font-size:.9rem;color:var(--muted-foreground);white-space:nowrap}
.sword-live-panel .sword-preview-viewport{height:auto;aspect-ratio:2.1;min-height:210px}
.sword-live-panel .sword-layout-jump{margin-top:0}
.sword-live-panel .sword-field-note{margin:12px 0 0}
#sword-layout-hint{color:var(--foreground)}
#sword-engraving-summary{margin:0 0 20px}
#sword-builder-error:empty,#sword-draft-status:empty{display:none}
#sword-builder-error{padding:1rem;border:1px solid #bd8d7c;border-radius:8px;background:#fff6ef;color:#793b27;margin:0}
.sword-options .desk-continue{min-height:48px}
.sword-options .desk-continue:disabled{opacity:.5;cursor:not-allowed}
.sword-examples{margin-top:3rem;padding-top:2rem;border-top:1px solid #d9dccf}
.sword-examples h2{font-size:1.7rem;font-weight:600;margin-bottom:1.5rem}
.sword-examples .sword-product-layout{margin-inline:0;max-width:800px}
.preview-enlarge-dialog.sword-approval-dialog{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;overscroll-behavior:contain}
.sword-approval-dialog .sword-preview-viewport{height:auto;aspect-ratio:2.1;min-height:0;max-height:48dvh}
.sword-approval-dialog .preview-enlarge-header h2{font-size:1.125rem;line-height:1.35}
.sword-approval-dialog .preview-enlarge-header button{min-height:44px;white-space:nowrap}
[hidden]{display:none!important}
@media(max-width:950px){.sword-config-layout{grid-template-columns:1fr;gap:1.75rem}.sword-live-panel{position:static;grid-row:1}.sword-option-group{padding:1rem}}
@media(max-width:450px){.sword-preview-heading{display:block}.sword-preview-heading span{display:block;margin-top:.5rem}.sword-live-panel{padding:1rem}.sword-kbar-choice{grid-template-columns:1fr}.sword-top-fields{grid-template-columns:1fr;gap:0}.sword-approval-dialog .preview-enlarge-header{gap:8px}.sword-approval-dialog .preview-enlarge-header h2{font-size:1rem}}
