:root { color-scheme: dark; --size: 20px; --bg: #07111f; --card: #111d2e; --ink: #f7fbff; --muted: #9db0c8; --accent: #70e1c1; --warn: #ffc66d; --line: #263b55; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top, #18304a, var(--bg) 34rem); color: var(--ink); font: var(--size)/1.48 system-ui, sans-serif; min-height: 100vh; }
body.contrast { --bg: #000; --card: #000; --ink: #fff; --muted: #fff; --accent: #00ffb3; --line: #fff; }
header, main, footer { width: min(920px, 100%); margin: auto; padding: 1rem max(1rem, env(safe-area-inset-left)); }
header { display: flex; justify-content: space-between; align-items: center; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 0; font-size: 1.6rem; } h2 { font-size: 1.18rem; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .14em; font-size: .68rem; margin-bottom: .15rem; }
.health { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
#health-dot { width: .7rem; height: .7rem; border-radius: 50%; background: #8795a8; } #health-dot.online { background: #34d399; box-shadow: 0 0 12px #34d399; }
.card { background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 18px 50px #0003; }
.scope { border-left: 4px solid var(--accent); padding-left: .8rem; color: var(--muted); }
.toolbar { display: flex; gap: .55rem; flex-wrap: wrap; }
button, input, select { font: inherit; color: var(--ink); background: #192a40; border: 1px solid #3a506b; border-radius: 12px; padding: .68rem .85rem; }
button { font-weight: 720; cursor: pointer; min-height: 48px; } button:active { transform: translateY(1px); }
.answer { min-height: 13rem; border-color: #357b72; } #bullets { padding-left: 1.3rem; } #bullets li { margin: .7rem 0; }
#full-answer { color: #d9e5f2; white-space: pre-wrap; } #warnings { color: var(--warn); font-weight: 700; }
.revision { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; position: sticky; bottom: .4rem; z-index: 2; }
#prompt-form { grid-column: 1/-1; } #prompt-form label { display: block; color: var(--muted); font-size: .78rem; margin-bottom: .25rem; }
#prompt-form div { display: flex; gap: .5rem; } #prompt { flex: 1; min-width: 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; } .section-title h2 { margin: 0; }
#turns { list-style: none; padding: 0; } #turns li { border-top: 1px solid var(--line); padding: .7rem 0; } #turns strong { color: var(--accent); }
#sessions { width: 100%; margin: .5rem 0 1rem; } .danger-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: .7rem 0; } .danger { border-color: #d65a6f; }
#devices { padding-left: 1.2rem; } #devices li { margin: .5rem 0; } #devices button { margin-left: .6rem; min-height: 36px; padding: .3rem .6rem; }
footer { color: var(--muted); text-align: center; font-size: .72rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
@media (max-width: 620px) { .revision { grid-template-columns: repeat(2, 1fr); } header { align-items: flex-end; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
