:root{color-scheme:light;--bg:#f3f6fb;--card:#ffffff;--text:#15202b;--muted:#4f5f73;--border:#d3dde8;--accent:#0d5f86;--accent-hover:#0b4f70;--ok:#14743f;--error:#b6342a;--weak:#c4493a;--fair:#c28a22;--good:#33874e;--strong:#0d5f86}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:"Segoe UI",Tahoma,Arial,sans-serif;line-height:1.45;padding:1rem}.card{width:min(100%,900px);margin:0 auto;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:1.2rem;box-shadow:0 8px 24px rgba(12,34,53,.08)}.top-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.9rem;padding:.2rem 0 .35rem;border-bottom:1px solid var(--border)}.top-controls{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:end;gap:.45rem;min-width:0;padding:.4rem .5rem;border:1px solid var(--border);border-radius:12px;background:#f7fbff}.theme-control{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;min-width:118px}.theme-label{display:block;margin:0;font-size:.78rem;font-weight:600;color:var(--muted);letter-spacing:.02em}.theme-select{width:118px;height:38px;margin-top:0;flex:0 0 auto;padding-top:.35rem;padding-bottom:.35rem}.brand-block{display:flex;align-items:center;gap:.8rem;min-width:0}.site-logo{width:64px;height:64px;object-fit:contain;border-radius:12px;border:1px solid var(--border);background:#fff;flex:0 0 auto}h1{margin:0;font-size:1.55rem}h2{margin:0 0 .5rem;font-size:1.05rem}h3.sub-title{margin:.9rem 0 .45rem;font-size:.98rem}.lead{margin:.35rem 0 0;color:var(--muted);max-width:54ch;font-size:.94rem}.panel{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;align-items:start}.settings-card{margin-top:.8rem;border:1px solid var(--border);border-radius:12px;background:#fff;padding:.8rem;padding-top:.8rem;border-top:1px solid var(--border)}.primary-panel{margin-top:1rem;border:2px solid #8eb8d7;border-radius:14px;background:linear-gradient(180deg,#f7fbff 0,#eef6ff 100%);padding:1rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.hidden{display:none!important}.lang-switch{display:inline-flex;border:1px solid var(--border);border-radius:10px;overflow:hidden;flex:0 0 auto;background:#eef3fa}.lang-btn{border-radius:0;background:0 0;color:var(--text);min-width:50px;min-height:38px;padding:.5rem .7rem;font-size:.84rem}.lang-btn.active{background:var(--accent);color:#fff}.label-inline,label,legend{font-weight:600}.label-inline{display:block;margin-top:.45rem;margin-bottom:.25rem}.field-label-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:.45rem}.strength-mount{margin-top:.7rem}.value-badge{background:#edf4fd;border:1px solid var(--border);border-radius:999px;padding:.08rem .5rem;font-weight:700}.select,input[type=number],input[type=text],textarea{width:100%;margin-top:.4rem;border:1px solid var(--border);border-radius:10px;padding:.62rem .72rem;font-size:1rem;color:var(--text);background:#fff}input[type=range]{width:100%;margin:.25rem 0 0}.checks{margin-top:.75rem;border:1px solid var(--border);border-radius:10px;padding:.75rem;display:grid;gap:.55rem}.check-item{display:flex;align-items:center;gap:.5rem;font-weight:500}.actions{margin-top:1rem}.generate-cta{width:100%;min-height:58px;font-size:1.12rem;letter-spacing:.01em;background:linear-gradient(180deg,#0f6f9e 0,#0b4f70 100%);box-shadow:0 8px 16px rgba(11,79,112,.28);border:1px solid #0a4b68}.generate-cta:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(11,79,112,.32)}.generate-cta:focus-visible{outline:4px solid rgba(15,111,158,.32)}.result-row{display:grid;grid-template-columns:1fr auto;gap:.5rem}.result-tools{margin-top:.85rem;margin-bottom:.85rem;display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.export-label{font-weight:700;color:var(--muted)}.challenge-wrap{margin-top:.6rem;border:1px dashed var(--border);border-radius:10px;padding:.6rem;background:#fbfdff}#turnstileContainer{margin-top:.55rem}input[type=text]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace}.result-output{resize:vertical;min-height:140px;max-height:280px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;border:2px solid #3f84b0;background:#fff;box-shadow:0 2px 8px rgba(15,95,134,.12);font-size:.96rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace}.meter-panel{background:#f9fbfe;border:1px solid #e2e9f1;border-radius:8px;padding:.35rem .5rem}.meter-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.8rem;font-size:.82rem}.meter-title{display:inline-flex;align-items:center;gap:.35rem;position:relative}.help-tooltip{display:inline-flex;justify-content:center;align-items:center;width:1.1rem;height:1.1rem;border-radius:999px;border:1px solid var(--border);color:var(--accent);font-weight:700;font-size:.74rem;background:#eef3fa;cursor:help}.tooltip-text{position:absolute;left:0;top:calc(100% + .35rem);width:min(320px,90vw);padding:.45rem .55rem;border-radius:8px;border:1px solid var(--border);background:#fff;color:var(--text);font-size:.78rem;line-height:1.35;box-shadow:0 8px 16px rgba(0,0,0,.12);visibility:hidden;opacity:0;transition:opacity .15s ease;z-index:5}.help-tooltip:focus+.tooltip-text,.help-tooltip:hover+.tooltip-text,.meter-title:focus-within .tooltip-text,.meter-title:hover .tooltip-text{visibility:visible;opacity:1}.meter-track{width:100%;height:4px;border-radius:999px;background:#edf2f8;overflow:hidden}.meter-bar{display:block;height:100%;width:0;transition:width .25s ease,background .25s ease}.meter-bar.weak{background:var(--weak)}.meter-bar.fair{background:var(--fair)}.meter-bar.good{background:var(--good)}.meter-bar.strong{background:var(--strong)}.status{display:none;min-height:1.25rem;margin:.6rem 0;border-radius:10px;padding:.55rem .65rem;border:1px solid transparent;font-weight:600}.status.is-visible{display:block}.status.status-success{color:#0f5c30;background:#e9f7ef;border-color:#9ad3ae}.status.status-info{color:#114e6f;background:#e8f3fb;border-color:#9ec3dc}.status.status-error{color:#8f2922;background:#fdeeee;border-color:#e9b2ad}.hint{margin:.4rem 0 0;color:var(--muted);font-size:.9rem}.local-note{margin-bottom:.6rem}.site-footer{padding-top:.8rem}.site-footer p{margin:.25rem 0;color:var(--muted);font-size:.92rem}.site-footer a{color:var(--accent);font-weight:700;text-decoration:none}.site-footer a:hover{text-decoration:underline}.history-list{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}.history-scroll{max-height:300px;overflow-y:auto;padding-right:.2rem}.history-item{border:1px solid var(--border);border-radius:10px;background:#fbfdff;padding:.55rem;display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-width:0}.history-main{min-width:0;width:100%}.history-value{display:block;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.history-meta{font-size:.82rem;color:var(--muted)}.history-details{margin-top:.4rem;max-width:100%}.history-details summary{cursor:pointer;color:var(--accent);font-size:.85rem}.history-all{margin-top:.45rem;max-height:150px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.stats-grid{margin-top:.65rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.stats-card{border:1px solid var(--border);border-radius:10px;background:#fbfdff;padding:.45rem .55rem}.stats-label{display:block;color:var(--muted);font-size:.78rem}.stats-lines{display:grid;gap:.22rem;margin-top:.2rem}.stats-line{display:flex;align-items:center;justify-content:space-between;gap:.4rem}.stats-indicator{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.stats-value{display:inline-block;margin-top:0;font-size:.92rem;letter-spacing:.01em}.api-accordion{display:grid;gap:.45rem}.api-item{border:1px solid var(--border);border-radius:10px;background:#fbfdff;padding:.2rem .65rem .55rem;min-width:0}.api-item summary{cursor:pointer;font-weight:600;color:var(--accent);padding:.35rem 0}.api-item pre{margin-top:.2rem;max-width:100%;overflow:auto}.api-item code{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.api-item code.hljs{display:block;padding:.65rem .75rem;border-radius:8px;white-space:pre;overflow-x:auto;overflow-wrap:normal;word-break:normal}.api-copy-btn{margin-top:.2rem;margin-bottom:.15rem;min-height:34px;padding:.4rem .62rem;font-size:.84rem}.sample-list{margin:0;padding-left:1.1rem;display:grid;gap:.25rem}.sample-list a{color:var(--accent);font-weight:600;text-decoration:none}.sample-list a:hover{text-decoration:underline}pre{margin:.3rem 0 0;padding:.65rem .75rem;border-radius:8px;background:#0f172a;color:#e2e8f0;overflow-x:auto;font-size:.85rem}code{background:#f0f4fa;border-radius:6px;padding:.08rem .26rem}pre code{background:0 0;color:inherit;padding:0}button{border:0;border-radius:10px;padding:.65rem .9rem;min-height:40px;font-size:.95rem;font-weight:700;cursor:pointer;background:var(--accent);color:#fff}button:hover{background:var(--accent-hover)}button:disabled{opacity:.75;cursor:not-allowed}button.secondary{background:#eef3fa;color:var(--text);border:1px solid var(--border)}button.secondary:hover{background:#e4ecf8}.theme-btn{white-space:nowrap}#copy.is-copied{background:#1f7a45;color:#fff;border-color:#1a673b}.history-item button.is-copied{background:#1f7a45;color:#fff;border-color:#1a673b}.api-copy-btn.is-copied{background:#1f7a45;color:#fff;border-color:#1a673b}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(13,95,134,.24);outline-offset:1px}@media (max-width:760px){.card{padding:1rem}.settings-grid{grid-template-columns:1fr}.top-row{grid-template-columns:1fr;align-items:stretch;gap:.65rem}.top-controls{grid-template-columns:minmax(0,1fr) auto;justify-content:stretch;width:100%}.theme-control{min-width:0}.brand-block{align-items:flex-start}.site-logo{width:52px;height:52px}.theme-select{width:100%}.result-row{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-item{flex-direction:column;align-items:stretch}}@media (max-width:460px){.stats-grid{grid-template-columns:1fr}}html[data-theme=dark]{color-scheme:dark;--bg:#0d1722;--card:#132233;--text:#e8f1fb;--muted:#9db4c8;--border:#284057;--accent:#4a9ed0;--accent-hover:#3d89b8;--ok:#7dd8a0;--error:#ff9a92;--weak:#ff8a7f;--fair:#e0b04d;--good:#64c384;--strong:#62b0de}html[data-theme=dark] .card{box-shadow:0 14px 28px rgba(0,0,0,.35)}html[data-theme=dark] .site-logo{background:#0f1d2d}html[data-theme=dark] .settings-card{background:#14273a}html[data-theme=dark] .primary-panel{border-color:#2f5d7a;background:linear-gradient(180deg,#173047 0,#13283d 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}html[data-theme=dark] .lang-btn{background:0 0}html[data-theme=dark] .lang-btn.active{background:var(--accent);color:#f6fbff}html[data-theme=dark] .top-controls{background:#15283b;border-color:#35516a}html[data-theme=dark] .lang-switch{background:#1b3046;border-color:#35516a}html[data-theme=dark] .value-badge{background:#1a334a}html[data-theme=dark] .select,html[data-theme=dark] input[type=number],html[data-theme=dark] input[type=text],html[data-theme=dark] textarea{background:#0f2031;color:var(--text);border-color:#35516a}html[data-theme=dark] .api-item,html[data-theme=dark] .challenge-wrap,html[data-theme=dark] .checks,html[data-theme=dark] .history-item,html[data-theme=dark] .meter-panel,html[data-theme=dark] .stats-card{background:#15283b}html[data-theme=dark] .help-tooltip{background:#1c3348;border-color:#35516a;color:#9dd3f1}html[data-theme=dark] .tooltip-text{background:#0f2031;border-color:#35516a}html[data-theme=dark] .meter-panel{border-color:#2f4a62}html[data-theme=dark] .meter-track{background:#21384d}html[data-theme=dark] .result-output{border-color:#4a8ab3;box-shadow:0 3px 9px rgba(0,0,0,.28)}html[data-theme=dark] .status.status-success{color:#c5efd4;background:#173929;border-color:#2f7d56}html[data-theme=dark] .status.status-info{color:#cae7fb;background:#173246;border-color:#3f7294}html[data-theme=dark] .status.status-error{color:#ffd5d2;background:#441f23;border-color:#a55357}html[data-theme=dark] code{background:#21364a}html[data-theme=dark] button.secondary{background:#1c3348;color:var(--text);border-color:#35516a}html[data-theme=dark] button.secondary:hover{background:#27445d}html[data-theme=dark] #copy.is-copied{background:#2b8f57;border-color:#3ca16a;color:#f2fff8}html[data-theme=dark] .history-item button.is-copied{background:#2b8f57;border-color:#3ca16a;color:#f2fff8}html[data-theme=dark] .api-copy-btn.is-copied{background:#2b8f57;border-color:#3ca16a;color:#f2fff8}