:root { --bg:#fbf7f2; --card:#fff; --ink:#2a2430; --muted:#7a7080; --accent:#e8743b; --accent-d:#c85a26; --line:#eadfd3; --ok:#2e8b57; --warn:#c98a00; --err:#c0392b; --radius:14px; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--ink); }
.top { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 24px; background:var(--card); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; flex-wrap:wrap; }
.brand { font-weight:800; font-size:22px; color:var(--accent); text-decoration:none; letter-spacing:-.5px; }
.brand span { font-weight:400; font-size:13px; color:var(--muted); margin-left:10px; letter-spacing:0; }
nav { display:flex; gap:6px; align-items:center; }
nav a, button.link { color:var(--ink); text-decoration:none; padding:6px 12px; border-radius:8px; background:none; border:0; font:inherit; cursor:pointer; }
nav a.on, nav a:hover, button.link:hover { background:#f6ece2; }
nav form { margin:0; }
main { max-width:1080px; margin:0 auto; padding:24px; }
h1 { font-size:26px; margin:0 0 6px; } h2 { font-size:18px; margin:0 0 10px; } h3 { font-size:15px; margin:0 0 6px; }
.muted { color:var(--muted); font-size:14px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-bottom:16px; }
.grid { display:grid; gap:16px; } .grid.two { grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); } .grid.three { grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
label { display:block; font-weight:600; font-size:14px; margin:12px 0 4px; }
label.inline { display:inline-flex; gap:8px; align-items:center; font-weight:500; margin:4px 12px 4px 0; }
input[type=text],input[type=email],input[type=password],input[type=time],input[type=number],select,textarea { width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:10px; font:inherit; background:#fff; }
input:focus,select:focus,textarea:focus { outline:2px solid #f6c3a5; border-color:var(--accent); }
input[type=range] { width:100%; accent-color:var(--accent); }
.btn { display:inline-block; background:var(--accent); color:#fff; border:0; padding:10px 18px; border-radius:10px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; }
.btn:hover { background:var(--accent-d); } .btn.ghost { background:#fff; color:var(--ink); border:1px solid var(--line); } .btn.ghost:hover { background:#f6ece2; } .btn.danger { background:var(--err); } .btn.small { padding:5px 10px; font-size:14px; }
.flash { padding:12px 16px; border-radius:10px; margin-bottom:16px; } .flash.ok { background:#e6f4ec; color:#1d5e3a; } .flash.err { background:#fbe9e7; color:#8e2a1f; } .flash.warn { background:#fff4d6; color:#7a5a00; }
.pill { display:inline-block; padding:2px 10px; border-radius:99px; font-size:13px; background:#eee; } .pill.ok { background:#e6f4ec; color:#1d5e3a; } .pill.err { background:#fbe9e7; color:#8e2a1f; } .pill.warn { background:#fff4d6; color:#7a5a00; }
.check { display:flex; align-items:center; gap:10px; padding:6px 0; } .check .dot { width:10px; height:10px; border-radius:50%; background:var(--line); } .check .dot.ok { background:var(--ok); } .check .dot.warn { background:var(--warn); }
.tpl { cursor:pointer; border:2px solid var(--line); border-radius:var(--radius); padding:18px; background:#fff; text-align:left; font:inherit; width:100%; }
.tpl:hover { border-color:var(--accent); } .tpl.rec { border-color:var(--accent); background:#fff8f3; } .tpl b { display:block; font-size:18px; }
.editor { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:20px; align-items:start; } @media (max-width:860px) { .editor { grid-template-columns:1fr; } }
.sticky { position:sticky; top:84px; }
details.block { border:1px solid var(--line); border-radius:12px; padding:8px 12px; margin-bottom:8px; background:#fff; }
details.block summary { cursor:pointer; display:flex; align-items:center; gap:10px; list-style:none; }
details.block summary::-webkit-details-marker { display:none; }
details.block .grow { flex:1; } details.block.off { opacity:.55; }
.move button { border:1px solid var(--line); background:#fff; border-radius:6px; cursor:pointer; padding:0 7px; }
.bar { display:flex; align-items:center; gap:8px; font-size:13px; margin:4px 0; } .bar i { display:block; height:10px; border-radius:5px; background:var(--accent); min-width:3px; } .bar span.l { width:110px; flex:none; } .bar span.t { width:40px; text-align:right; flex:none; color:var(--muted); }
.actions { position:sticky; bottom:0; background:rgba(251,247,242,.95); padding:12px 0; border-top:1px solid var(--line); display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }
table { width:100%; border-collapse:collapse; } th,td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); font-size:14px; } 
pre.script { white-space:pre-wrap; font:inherit; background:#fdfaf6; border:1px solid var(--line); border-radius:10px; padding:16px; }
code { background:#f6ece2; padding:1px 6px; border-radius:5px; font-size:.92em; } pre code { display:block; padding:12px; overflow:auto; }
.guide h2 { margin-top:26px; } .guide table td:first-child { white-space:nowrap; }
.row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; } .row > * { flex:0 0 auto; } .row > .grow { flex:1; }
.hero { text-align:center; padding:50px 0 20px; } .hero h1 { font-size:38px; }

.inline-player { display:block; width:100%; min-width:260px; margin-top:8px; }
.listen { min-width:120px; }
