:root { --accent: #6c5ce7; --bg: #f7f7fb; }
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: var(--bg); color: #222; }
header { background: var(--accent); color: #fff; padding: 16px 24px; }
header h1 { margin: 0 0 8px; font-size: 1.4rem; }
nav a { color: #fff; margin-right: 20px; text-decoration: none; font-weight: 500; }
nav a:hover { text-decoration: underline; }
main { max-width: 800px; margin: 24px auto; padding: 0 16px; }
h2 { border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
h3 { color: var(--accent); margin-top: 28px; }
ul { list-style: none; padding: 0; }
li { background: #fff; margin: 6px 0; padding: 12px 16px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
li a { text-decoration: none; color: #333; font-weight: 500; }
li a:hover { color: var(--accent); }
.ok { color: #00b894; font-weight: 600; }
.bar { background: #ddd; border-radius: 10px; height: 18px; overflow: hidden; }
.bar > div { background: var(--accent); height: 100%; }
button { background: var(--accent); color: #fff; border: none; padding: 10px 24px; border-radius: 6px; font-size: 1rem; cursor: pointer; }
button:hover { opacity: .9; }
#chat { min-height: 200px; background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
#chat .me { color: var(--accent); font-weight: 600; }
#chat .ai { color: #444; }
#inp { width: 75%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; }
footer { text-align: center; color: #888; padding: 24px; font-size: .85rem; }
small { color: #777; }
