/* 中性高對比介面；只有獨立預覽規則由驗證結果透過 CSSOM 改寫。 */
:root{font-family:system-ui,sans-serif;color:#192332;background:#f3f5f7;line-height:1.6;color-scheme:light}*{box-sizing:border-box}body{margin:0}main{max-width:860px;margin:auto;padding:32px 24px 70px}nav{display:flex;justify-content:space-between;gap:20px}a{color:#174f83}h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.15;letter-spacing:-.035em}.eyebrow{letter-spacing:.16em;font-size:.8rem;color:#46546b;margin-top:48px}fieldset{border:1px solid #8390a0;border-radius:10px;padding:18px;margin:18px 0;background:#fff;min-width:0}legend{font-weight:700;padding:0 6px}label{display:block;font-weight:600;margin:10px 0 5px}input,textarea{font:inherit;color:inherit;background:#fff;border:1px solid #65758c;border-radius:5px;padding:10px;width:100%;max-width:100%}textarea{font-family:ui-monospace,monospace;font-size:.85rem;white-space:pre}button{font:inherit;font-weight:600;padding:9px 14px;border:1px solid #55677d;border-radius:6px;background:#fff;color:#192332;cursor:pointer}#generate{background:#203f60;color:#fff}button:disabled{opacity:.55;cursor:not-allowed}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}:focus-visible{outline:3px solid #aa4a00;outline-offset:3px}[aria-invalid=true]{border:2px solid #a31d27}#status{border-left:4px solid #576b83;padding:10px 14px;min-height:48px;background:#e7edf4}#gradient-preview{min-height:160px;min-width:min(240px,100%);border:2px solid #576575;border-radius:8px}#summary{overflow-wrap:anywhere}details{border-bottom:1px solid #a8b2bf;padding:12px 0}summary{cursor:pointer;font-weight:600}dialog{max-width:min(90vw,480px);border:1px solid #576b83;border-radius:12px;padding:24px}dialog::backdrop{background:#0008}[hidden]{display:none!important}@media(max-width:400px){main{padding:20px 12px}fieldset{padding:12px}button{width:100%}h1{font-size:2rem}}
