:root {
  --bg: #fbf6ea; --paper: #fffdf7; --ink: #1f2328; --muted: #62676e; --line: #e4dccb;
  --accent: #2f6fdb; --accent-ink: #fff; --ok: #2f9e5b; --wait: #d99a1c; --bad: #d1495b;
  --font: "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1d21; --paper: #23262b; --ink: #ece7dc; --muted: #a0a6ae; --line: #3a3e45;
          --accent: #6ea0ff; --accent-ink: #10131a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 19px; line-height: 1.7;
       letter-spacing: .01em; word-spacing: .08em; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px);
       border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent);
        color: var(--accent-ink); font-weight: 800; }
.status { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wait); }
.status.ready .dot { background: var(--ok); }
.status.error .dot { background: var(--bad); }
.hero { padding: 48px 0 8px; }
h1 { font-size: clamp(32px, 6vw, 50px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
.lead { font-size: 21px; max-width: 34em; margin: 0; }
.note { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 10px;
        padding: 10px 14px; font-size: 17px; max-width: 40em; }
section { margin: 44px 0; }
h2 { font-size: 27px; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.step { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink);
        color: var(--bg); font-size: 18px; flex: none; }
p { margin: 0 0 12px; }
kbd { font-family: inherit; font-size: .9em; background: var(--paper); border: 1px solid var(--line); border-bottom-width: 2px;
      border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.keys { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px 26px; flex-wrap: wrap; font-size: 17px; color: var(--muted); }
label { display: block; font-size: 16px; color: var(--muted); margin: 16px 0 6px; }
textarea, input[type="text"], .rich { width: 100%; font: inherit; font-size: 21px; line-height: 1.7; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; outline: none; }
textarea { resize: vertical; display: block; }
textarea:focus, input[type="text"]:focus, .rich:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.rich { min-height: 108px; }
.rich p { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; }
.grid.three { gap: 20px; }
article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; font-size: 21px; line-height: 1.85; }
article h3 { font-size: 24px; margin-bottom: 10px; }
article p:last-child { margin-bottom: 0; }
button { font: inherit; font-size: 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
         padding: 9px 16px; cursor: pointer; }
.ico { width: 1.2em; height: 1.2em; vertical-align: -0.24em; flex: none; }
button .ico { margin-right: 4px; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
.settings { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; background: var(--paper); border: 1px solid var(--line);
            border-radius: 14px; padding: 16px 20px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; color: var(--ink); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
input[type="range"] { width: 130px; accent-color: var(--accent); }
.about .grid > div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 17px; }
.about p { margin: 0; }
footer { color: var(--muted); font-size: 14px; padding-top: 8px; padding-bottom: 40px; }
