:root { color-scheme: light; font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202721; background: #fbfcfa; }
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(100% - 2.5rem, 760px); margin: 2.5rem auto; }
.admin-page { max-width: 660px; }
.home-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-bottom: .6rem; font-size: .9rem; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #dce0da; padding-bottom: 1.2rem; }
.page-header a { flex-shrink: 0; font-size: .9rem; }
h1 { font-size: 2.4rem; line-height: 1.15; margin: 0; font-weight: 650; letter-spacing: -.04em; }
h2 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 .7rem; }
h3 { font-size: 1rem; margin: 0 0 .35rem; }
p { margin: .7rem 0 1.1rem; }
a { color: #285838; text-underline-offset: .18em; }
.eyebrow { font-size: .8rem; color: #576458; margin: 0 0 .3rem; }
button, input, textarea { font: inherit; }
button { border: 1px solid #315b3b; border-radius: 5px; background: #315b3b; color: white; cursor: pointer; padding: .65rem 1rem; min-height: 44px; }
button:hover { background: #25492e; }
button:disabled { opacity: .55; cursor: default; }
button.secondary { color: #285838; background: transparent; border-color: #a4b2a6; }
button.secondary:hover { background: #edf1eb; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, video:focus-visible { outline: 3px solid #bc881e; outline-offset: 3px; }
fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
label { display: block; font-weight: 600; margin-top: 1.2rem; margin-bottom: .3rem; }
input, textarea { color: inherit; background: white; border: 1px solid #abb5aa; border-radius: 4px; padding: .65rem; width: 100%; }
input[type="date"] { max-width: 14rem; }
input[type="file"] { padding: .5rem; font-size: .9rem; }
textarea { resize: vertical; }
.optional, .hint { color: #5c675d; font-size: .85rem; font-weight: 400; }
.hint { margin: .4rem 0 1rem; }
video { display: block; width: 100%; max-height: 65vh; background: #17201a; border-radius: 5px; object-fit: contain; }
#preview { margin-top: 1rem; max-height: 320px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
progress { width: 100%; accent-color: #315b3b; }
.notice { background: #f6f0dc; border: 1px solid #d5c58f; padding: 1rem; border-radius: 5px; margin-top: 1.5rem; }
.error { color: #992823; background: #fff3f1; border-left: 3px solid #b64038; padding: .7rem .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry { margin-top: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #dce0da; scroll-margin-top: 1rem; }
.entry-caption { white-space: pre-wrap; overflow-wrap: anywhere; }
.analysis { margin-top: 1.1rem; }
.analysis p { margin: .4rem 0 .6rem; }
.recent { border-top: 1px solid #dce0da; margin-top: 2rem; padding-top: 1.4rem; }
.recent ul { padding-left: 1.25rem; }
.recent li { margin-bottom: .55rem; }
.recent button { padding: .15rem .5rem; min-height: 34px; font-size: .85rem; margin-left: .5rem; }
footer { color: #5c675d; font-size: .8rem; margin: 2rem 0 1rem; border-top: 1px solid #dce0da; padding-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 420px) { .page { width: calc(100% - 2rem); margin-top: 1.5rem; } .page-header { align-items: flex-start; } h1 { font-size: 2rem; } .page-header a { font-size: .8rem; } }

.journal-photo, #preview { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain; background: #edf0e9; border-radius: 8px; margin-top: 1rem; }

.phone-help { margin: 1.5rem 0; border: 1px solid #dce0da; border-radius: 5px; padding: .85rem 1rem; font-size: .9rem; }
.phone-help summary { cursor: pointer; font-weight: 600; }
.phone-help summary:focus-visible { outline: 3px solid #bc881e; outline-offset: 3px; }
.phone-help p:last-child { margin-bottom: 0; }
