:root{font:16px/1.6 'Segoe UI',Tahoma,sans-serif;color:#283449;background:#f5f5fa;--purple:#574477}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border-bottom:1px solid #e3dfeb;padding:18px max(20px,calc((100vw - 1100px)/2))}.brand{font-size:21px;font-weight:750;color:var(--purple)}small{display:block;font-size:11px;font-weight:500;color:#6d657b}main{max-width:1140px;margin:auto;padding:30px 24px}.hero{display:flex;justify-content:space-between;align-items:center;gap:28px;margin:12px 0 26px}.eyebrow{font-size:12px;letter-spacing:.06em;color:#78638b;font-weight:750}h1{font-size:clamp(31px,5vw,47px);line-height:1.25;margin:9px 0 15px;letter-spacing:-.03em}h2{font-size:21px;margin:0}.intro{font-size:18px;color:#656a7c;max-width:760px}.hero-icon{flex-shrink:0;width:110px;height:110px;border-radius:33px;background:#e8e0f2;color:#685183;font-size:40px;font-weight:650;display:grid;place-items:center;transform:rotate(-7deg);position:relative}.hero-icon span{position:absolute;bottom:-8px;inset-inline-end:-6px;border:5px solid #f5f5fa;border-radius:50%;background:#dbeee4;width:44px;height:44px;font-size:25px;display:grid;place-items:center}p{margin:7px 0 15px}button,select,textarea,input{font:inherit}button,select{border:1px solid #d8d0e3;border-radius:11px;background:white;color:#40354f;padding:10px 14px}button{cursor:pointer;font-weight:650}button:hover{background:#eee8f6}.primary{background:var(--purple);color:white;border-color:var(--purple)}.primary:hover{background:#46355f}button:disabled{opacity:.45;cursor:default}button:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible,.paragraph:focus-visible{outline:3px solid #947bb4;outline-offset:3px}.editor-panel,.settings,.speech-panel,.reader-panel{background:white;border:1px solid #e1dce9;border-radius:22px;padding:24px;margin-bottom:18px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.section-head label{font-weight:700}#character-count{font-size:12px;color:#6a6578}textarea{display:block;width:100%;resize:vertical;min-height:160px;padding:16px;border:1px solid #d7d2df;border-radius:13px;background:#fdfcff;color:inherit;line-height:1.8;unicode-bidi:plaintext}.editor-actions,.settings,.voice-settings,.speech-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.editor-actions{margin-top:14px}.editor-actions p,.speech-title p,footer{font-size:12px;color:#6d6b7a;margin:0}.editor-actions p{flex:1;min-width:230px}.settings{gap:20px}.settings label,.voice-settings label{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px}.settings input[type=range]{width:100px;accent-color:var(--purple)}output{font-variant-numeric:tabular-nums;font-weight:750;min-width:25px}.settings .check{margin-inline-start:auto}.check input{accent-color:var(--purple)}.speech-panel{background:linear-gradient(135deg,#fdfbff,#f2f8f4)}.speech-title{display:flex;align-items:center;gap:15px;margin-bottom:18px}.speech-title>span{width:49px;height:49px;border-radius:16px;background:white;display:grid;place-items:center;color:#78628d;font-weight:750;direction:ltr}.speech-title p{margin-top:4px}.voice-settings select{max-width:350px;font-size:13px}.voice-settings input{width:110px;accent-color:var(--purple)}#voice-status{font-size:13px;color:#5d6476;margin:15px 0}#speech-status{font-size:13px;font-weight:650;color:#644d7b;min-height:22px;margin:12px 0 0}.reader-panel{--page:#fffcf3;--text:#303238;--highlight:#eee3a9;--muted:#e8e0c6;background:var(--page);color:var(--text);padding:25px}.reader-panel[data-theme=mint]{--page:#f0faf5;--text:#193f36;--highlight:#cae9da;--muted:#c9e1d5}.reader-panel[data-theme=night]{--page:#202b3c;--text:#f4f3ed;--highlight:#3e5066;--muted:#4b586a}.reader-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--muted);padding-bottom:17px;margin-bottom:20px}.reader-toolbar p{margin:0;font-size:13px;font-weight:650}.reader-toolbar>div{display:flex;gap:7px;flex-wrap:wrap}.reader-toolbar button{font-size:12px}.paragraph{font-size:var(--font,25px);line-height:var(--line,1.9);word-spacing:var(--words,0em);letter-spacing:normal;padding:20px 22px;border-radius:15px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere;cursor:pointer;border:2px solid transparent;transition:background .18s,border-color .18s;unicode-bidi:plaintext}.paragraph.active{background:var(--highlight);border-color:var(--muted)}.paragraph-number{display:block;font-size:12px;line-height:1.5;font-weight:700;opacity:.8;margin-bottom:7px}.reader-panel.focus-mode .paragraph:not(.active){display:none}.empty{padding:30px;color:var(--text)}footer{padding:10px 4px 20px}:fullscreen{overflow:auto;padding:35px}:fullscreen .paragraph{max-width:1100px;margin:15px auto}@media(prefers-reduced-motion:reduce){.paragraph{transition:none}}@media(max-width:650px){header{padding:15px}.brand{font-size:17px}main{padding:20px 13px}.hero-icon{display:none}.editor-panel,.settings,.speech-panel,.reader-panel{padding:17px}.section-head{align-items:start}.settings{gap:15px}.settings label{width:100%;justify-content:space-between}.settings .check{justify-content:start}.settings input[type=range]{width:140px}.voice-settings label{width:100%}.voice-settings select{width:100%;max-width:100%}.reader-toolbar{align-items:start;flex-direction:column}.paragraph{padding:15px}.speech-actions button{font-size:13px}.editor-actions button{font-size:13px}header label>span{display:none}header select{max-width:120px}}
