:root { font: 16px/1.5 system-ui, sans-serif; color: #222923; background: #eeeee9; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 34rem; margin: auto; padding: 1.5rem; }
section, form { background: white; padding: 1rem; border-radius: .8rem; }
section { margin-top: 1rem; }
#renew { color: #20583e; font-weight: 600; }
form, label { display: grid; gap: .55rem; }
form { gap: 1rem; }
.onboarding-heading h2 { margin: 0; }
.onboarding-heading p { margin: .45rem 0 0; }
.onboarding-guide summary { cursor: pointer; color: #20583e; font-weight: 650; }
.onboarding-guide li + li { margin-top: .55rem; }
.onboarding-guide ol { padding-left: 1.5rem; }
.onboarding-guide p { margin-bottom: 0; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; }
.field small, .field-hint { font-size: .875rem; color: #4d5b51; }
.approval-code { display: inline-block; padding: .35rem .8rem; border-radius: .45rem; background: #dfefe2; font-size: 1.6rem; letter-spacing: .15em; }
section form { padding: 0; }
details label { margin-top: .7rem; }
input, select, textarea, button { font: inherit; padding: .55rem .7rem; border: 1px solid #849586; border-radius: .55rem; }
input, textarea { min-width: 0; width: 100%; }
.message { margin: .5rem 0; padding: .55rem .75rem; border-radius: .65rem; white-space: pre-wrap; overflow-wrap: anywhere; background: #f0f1ee; }
.message.question { background: #dfefe2; margin-left: 1.5rem; }
.message.answer { margin-right: 1.5rem; }
#new-chat { margin-top: .75rem; }
#journal-content { display: grid; gap: .65rem; margin: .75rem 0; }
#journal-content button { text-align: left; background: #f0f1ee; color: #20583e; max-width: 100%; overflow-wrap: anywhere; }
#journal-content article + article { border-top: 1px solid #dce1d8; padding-top: .65rem; }
#journal-feedback:empty, #journal-password-feedback:empty { display: none; }
button { justify-self: start; background: #20583e; color: white; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #426cca; outline-offset: 2px; }
