:root { color-scheme: light; font-family: system-ui, sans-serif; color: #172f32; background: #f4f7f6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; padding: 1rem max(5vw, 1rem); border-bottom: 1px solid #d5e0dc; background: #fff; }
.brand { font-size: 1.2rem; font-weight: 750; }
main { max-width: 76rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
h1 { margin: 0 0 1.2rem; font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: 1.3rem; margin: 0 0 1rem; }
button, input { font: inherit; border: 1px solid #aebfba; border-radius: .45rem; padding: .65rem .8rem; }
button { cursor: pointer; color: #172f32; background: #fff; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid #067161; outline-offset: 3px; }
button[type="submit"] { background: #135c52; color: #fff; }
form { display: grid; gap: .9rem; max-width: 26rem; }
form label { display: grid; gap: .3rem; }
.archive { display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); gap: 1rem; }
nav, section { background: #fff; border: 1px solid #d5e0dc; padding: 1rem; border-radius: .6rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
nav li + li, ol li + li { margin-top: .65rem; }
nav button { width: 100%; text-align: left; }
nav button[aria-current="true"] { background: #e3f2ed; border-color: #428577; }
.message { padding: .95rem; border: 1px solid #d5e0dc; border-radius: .5rem; overflow-wrap: anywhere; }
.message[data-role="assistant"] { background: #f0f7f5; }
.message p { white-space: pre-wrap; margin: .55rem 0; }
.message time { font-size: .82rem; color: #52635f; margin-left: .65rem; }
.message a { display: inline-block; color: #0e6255; margin: .25rem .7rem .25rem 0; }
@media (max-width: 42rem) { .archive { grid-template-columns: 1fr; } nav { max-height: 15rem; overflow: auto; } }
