
:root{
  --bg:#f4f7fb;--card:#fff;--text:#1f2937;--muted:#667085;--line:#d8e0e9;
  --primary:#0b5cb8;--primary2:#084a95;--soft:#eaf3ff;--success:#14804a;--warn:#8a5a00;
  --radius:16px;--shadow:0 12px 28px rgba(15,23,42,.07);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.wrapper{max-width:1080px;margin:auto;padding:26px 16px 60px}
.hero{background:linear-gradient(135deg,#0b5cb8,#123d70);color:#fff;border-radius:22px;padding:28px 30px;box-shadow:var(--shadow)}
.hero h1{margin:0 0 8px;font-size:clamp(28px,4vw,42px)}
.hero p{margin:0;max-width:820px;opacity:.96}
.hero .tag{display:inline-block;margin-top:14px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);padding:8px 11px;border-radius:999px;font-size:13px}
.steps{display:flex;gap:8px;margin:18px 0;overflow:auto}
.step{flex:1;min-width:160px;background:#fff;border:1px solid var(--line);padding:11px 13px;border-radius:12px;color:var(--muted);font-weight:700;text-align:center}
.step.active{background:var(--soft);color:var(--primary);border-color:#9cc7f4}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}
.screen{display:none}.screen.active{display:block}
h2{margin:0 0 6px;font-size:26px}.sub{color:var(--muted);margin:0 0 22px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{margin-bottom:17px}.field label.title{display:block;font-weight:750;margin-bottom:7px}
input,select,textarea{width:100%;padding:12px 13px;border:1px solid #c9d2dc;border-radius:10px;font:inherit;color:var(--text);background:#fff}
textarea{min-height:92px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:#62a5e9;box-shadow:0 0 0 3px rgba(11,92,184,.1)}
.hint{font-size:13px;color:var(--muted);margin-top:6px}
.options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.option{border:1px solid var(--line);padding:12px;border-radius:11px;display:flex;gap:10px;align-items:flex-start}
.option:hover{background:#fbfdff;border-color:#b8d2ed}
input[type=checkbox],input[type=radio]{width:18px;height:18px;margin-top:2px;accent-color:var(--primary)}
.preset{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:8px 0 18px}
.preset button{border:1px solid var(--line);background:#fff;padding:12px;border-radius:11px;font-weight:750;cursor:pointer}
.preset button:hover{border-color:#9cc7f4;background:#f7fbff}
.note{padding:12px 14px;border-radius:10px;background:#f8fafc;border:1px solid var(--line);font-size:14px;color:#475467;margin:14px 0}
.warn{background:#fff8e6;border-color:#f1d28a;color:#74540f}
details{border:1px solid var(--line);border-radius:12px;padding:0 14px;margin-top:14px;background:#fbfcfe}
details summary{cursor:pointer;padding:13px 0;font-weight:800;color:#344054}
.advanced{padding-bottom:14px}
.actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px;flex-wrap:wrap}
button{font:inherit}
.btn{border:0;border-radius:10px;padding:12px 17px;font-weight:800;cursor:pointer}
.btn-gray{background:#e9eef4;color:#344054}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary2)}
.btn-success{background:var(--success);color:#fff}.btn-outline{background:#fff;border:1px solid var(--line);color:#344054}
.output-tools{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.tab{border:0;border-radius:9px;padding:9px 12px;background:#eef2f6;color:#475467;font-weight:800;cursor:pointer}
.tab.active{background:#dbeafe;color:#0b5cb8}
.output{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.preview{padding:26px;line-height:1.67}.preview h1{font-size:32px}.preview h2{font-size:21px;margin-top:28px}
.code{display:none;width:100%;min-height:440px;border:0;border-radius:0;padding:16px;background:#0f172a;color:#e2e8f0;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.code.active{display:block}.preview.hidden{display:none}
.summary{background:#f8fafc;border:1px solid var(--line);border-radius:11px;padding:13px;font-size:14px}
.small{font-size:13px;color:var(--muted)}
footer{text-align:center;color:var(--muted);font-size:13px;margin-top:22px}
@media(max-width:800px){.grid,.options,.preset{grid-template-columns:1fr}.card{padding:18px}.step{min-width:130px}}

[hidden]{display:none!important} .step{cursor:pointer} .option:has(input:checked){background:var(--soft);border-color:#9cc7f4} .error{color:#a12020} .review-list{line-height:1.7} .status{min-height:24px;margin-top:12px} fieldset{border:0;padding:0;margin:0 0 18px} legend{font-weight:750;margin-bottom:10px} .field input[aria-invalid=true]{border-color:#b42318} .preset{grid-template-columns:repeat(4,1fr)} .check{display:flex;gap:10px;align-items:flex-start;margin:12px 0} .check input{flex-shrink:0} a{color:var(--primary)} @media(max-width:800px){.preset{grid-template-columns:1fr 1fr}}

.preview,.summary,.note{overflow-wrap:anywhere} button:focus-visible,a:focus-visible{outline:3px solid #62a5e9;outline-offset:3px}
