/* Widget 1.2.0 (2026-12-02): the style presets of the generator page /widget/. Reads the colour tokens of the generator in both worlds: the source folder (--fg, --card)
   and the live page, which uses the reader's tokens (--ink, --surface), so each rule names the reader token first and the older one as the fallback. */
.options [hidden],label[hidden]{display:none !important}
.options fieldset.look{margin-top:10px}
.options .colour{display:flex;align-items:center;gap:8px;margin-top:4px}
.options .colour input[type=text]{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink,var(--fg));font:inherit;font-size:15px}
.options .colour input[type=color]{flex:none;width:44px;height:38px;padding:2px;border:1px solid var(--line);border-radius:9px;background:var(--bg);cursor:pointer}
.options input[aria-invalid=true]{border-color:#c2410c;outline:1px solid #c2410c}
.options details.tune{margin-top:8px}
.options details.tune>summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--muted)}
.options details.tune>label{margin-top:12px}
.options .hint{margin:4px 0 8px}
.preview-on{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:13px;font-weight:600;color:var(--muted)}
.preview-on select{padding:5px 8px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink,var(--fg));font:inherit;font-size:14px}
.preview{transition:background-color .2s}
.preview[data-page=light]{background:#fff;color:#1d1d1f;border-style:solid}
.preview[data-page=dark]{background:#111318;color:#ececf1;border-style:solid}
.preview[data-page=blue]{background:linear-gradient(135deg,#1f3b73,#3d6fd8);color:#fff;border-style:solid}
.preview[data-page=warm]{background:#f3ead8;color:#3b2f22;font-family:Georgia,"Times New Roman",serif;font-size:17px;border-style:solid}
@media (prefers-reduced-motion:reduce){.preview{transition:none}}

/* p122 widget security */
.secure{margin:.6rem 0 .2rem;padding:.65rem .8rem;border-left:4px solid var(--accent,#2f9e6b);border-radius:6px;background:var(--panel,rgba(47,158,107,.09));color:var(--ink,var(--fg,inherit));font-size:.92rem;line-height:1.45}
#faq ul{margin:.4rem 0 .6rem;padding-left:1.2rem}#faq li{margin:.3rem 0}
.actions button:disabled{opacity:.5;cursor:not-allowed}
