:root { --bg: #0b0a1c; --card: #15133a; --line: #2a2763; --ink: #f2f1fa; --muted: #a9a6cc; --sky: #56b4e3; --good: #3ecf8e; --bad: #f07a7a;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, Arial, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(1200px 600px at 80% -10%, rgba(86, 180, 227, .14), transparent), var(--bg); color: var(--ink); font: 15px/1.55 var(--font); min-height: 100vh; }
h1, h2 { margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--ink); color: #17133a; cursor: pointer; }
button:hover { background: #fff; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
input, textarea { width: 100%; font: inherit; color: var(--ink); background: #0f0e2a; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; resize: vertical; }
label { display: grid; gap: 6px; margin: 14px 0; font-weight: 600; font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.row input { flex: 1; min-width: 0; }
/* sign-in */
.login { display: grid; place-items: center; padding: 16px; }
.narrow { width: 100%; max-width: 380px; text-align: center; }
.narrow form { text-align: left; }
.narrow button { width: 100%; margin-top: 6px; }
.lumi { display: block; margin: 0 auto 8px; height: auto; }
.error { color: var(--bad); margin: 0; }
/* panel */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.top nav { display: flex; gap: 10px; align-items: center; }
.top a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { height: auto; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px clamp(16px, 4vw, 40px) 40px; max-width: 1100px; margin: 0 auto; }
.wide { grid-column: 1 / -1; }
.pill { display: inline-block; margin: 6px 0 10px; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; background: var(--line); }
.pill.good { background: rgba(62, 207, 142, .16); color: var(--good); }
.pill.bad { background: rgba(240, 122, 122, .16); color: var(--bad); }
pre { white-space: pre-wrap; word-break: break-word; background: #0f0e2a; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; }
.stats { display: flex; gap: 24px; margin: 8px 0 12px; }
.stats b { display: block; font-size: 30px; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13px; }
.days { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 13px; }
.chat { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; margin-top: 8px; }
.msg { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 80%; white-space: pre-wrap; }
.msg.me { justify-self: end; background: var(--ink); color: #17133a; }
.msg.lumi { justify-self: start; background: #0f0e2a; border: 1px solid var(--line); }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { button, .top a { transition: background .15s ease; } }
