/* Shared settings dialog. No layout overrides belong in a skin. */
.luforms-theme-settings{box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid var(--line,#c6b58f);border-radius:6px;background:var(--paper-light,#fbf5e7);color:var(--ink,#382f25);box-shadow:0 18px 70px #16223526;overflow:auto}
.luforms-theme-settings::backdrop{background:#17233855;backdrop-filter:none}
.theme-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.theme-dialog-head h2{margin:0;font-size:24px;color:inherit}
.luforms-theme-settings button{min-height:40px;border:0;background:transparent;color:var(--primary,#325973);font:inherit;cursor:pointer}
.theme-dialog-head button{font-size:26px;width:40px}
.luforms-theme-settings fieldset{border:0;padding:0;margin:0;min-width:0}
.luforms-theme-settings legend{font-weight:600;font-size:16px}
.theme-help,.theme-save-status{font-size:13px;color:var(--muted,#756650);margin:8px 0 20px}
.theme-options{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.theme-option{position:relative;display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line,#c6b58f);border-radius:4px;cursor:pointer;background:var(--paper,#f5edda)}
.theme-option:has(:checked){outline:2px solid var(--primary,#325973);outline-offset:1px}
.theme-option input{position:absolute;right:16px;top:16px;width:18px;height:18px;accent-color:var(--primary,#325973)}
.theme-option:has(:focus-visible){outline:3px solid var(--primary,#325973);outline-offset:3px}
.theme-option strong{font-size:16px;font-weight:500}.theme-option small{font-size:12px;color:var(--muted,#756650);line-height:1.6}
.theme-swatch{height:86px;border:1px solid #c6b58f;background:#f5edda;display:flex;gap:7px;align-items:flex-end;padding:16px;box-sizing:border-box}
.theme-swatch i{height:20px;width:20px;background:#8f382d;border-radius:2px}.theme-swatch i:nth-child(2){background:#325973}.theme-swatch i:nth-child(3){background:#a68b51}
.swatch-scholarly{border:4px double #ae8e4f}.swatch-minimal{background:#fff;border-color:#dae3ee}.swatch-minimal i{background:#2563eb}.swatch-minimal i:nth-child(2){background:#dbeafe}.swatch-minimal i:nth-child(3){background:#e2e8f0}
.theme-save-status{margin:20px 0 0;min-height:21px}.theme-dialog-foot{display:flex;justify-content:flex-end;margin-top:16px}
.theme-dialog-foot button{padding:8px 22px;background:var(--primary,#325973);color:white;border-radius:3px}
.account-menu [data-theme-settings]{width:100%;text-align:left;font:inherit;color:inherit;display:flex;align-items:center;gap:10px;background:none;border:0;padding:10px 12px;cursor:pointer}
@media(max-width:480px){.luforms-theme-settings{padding:20px}.theme-options{grid-template-columns:1fr}.theme-swatch{height:64px}}
