:root { color-scheme: light; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; color: #26352f; background: #f4f7f4; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.auth-card, .panel, .error-card { width: min(100% - 2rem, 42rem); margin: 3rem auto; padding: 2rem; border: 1px solid #dbe5dc; border-radius: 1rem; background: #fff; box-shadow: 0 8px 28px #26352f0d; }
.auth-card { max-width: 28rem; }
.page-shell { width: min(100% - 2rem, 52rem); margin: 3rem auto; }
.page-heading { margin-bottom: 1.5rem; }
.site-header { background: #fff; border-bottom: 1px solid #dbe5dc; }
.header-inner { width: min(100% - 2rem, 64rem); min-height: 4.5rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header .brand { text-decoration: none; font-size: 1.15rem; }
.nav-list, .record-list { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.nav-link, .auth-link, .record-link { color: #286349; font-weight: 700; }
.inline-form { display: inline; }
.logout-button { padding: .4rem; border: 0; background: transparent; color: #286349; font: inherit; cursor: pointer; }
.auth-nav, .actions, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.messages { width: min(100% - 2rem, 52rem); margin: 1rem auto; }
.message { padding: .75rem 1rem; border-radius: .5rem; background: #eaf3ec; }
.record-list { display: grid; gap: 0; }
.record-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #e5ece6; }
.record-title { overflow-wrap: anywhere; }
.record-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: -.25rem 0 1.25rem; color: #5d6d63; font-size: .95rem; }
.pagination { justify-content: center; margin-top: 1.5rem; }
.page-link { padding: .5rem .75rem; border-radius: .4rem; background: #eef4ef; color: #286349; }
.page-link[aria-disabled="true"] { color: #7d8980; }
.button-secondary { color: #286349; background: #eaf3ec; }
.button-danger { color: #fff; background: #9c3434; }
.warning { color: #8b2424; }
.record-summary { padding: 1rem; background: #f4f7f4; border-radius: .5rem; }
.brand { color: #286349; font-weight: 700; }
h1 { margin: .4rem 0 1rem; font-size: 1.8rem; }
.intro { color: #5d6d63; line-height: 1.7; }
.field { display: grid; gap: .5rem; margin: 1.2rem 0; }
label { font-weight: 700; }
input, textarea { width: 100%; padding: .8rem; border: 1px solid #aebeb1; border-radius: .5rem; font: inherit; }
textarea { min-height: 13rem; resize: vertical; }
input:focus, textarea:focus, a:focus-visible, button:focus-visible { outline: 3px solid #82b59a; outline-offset: 2px; }
.button { display: inline-block; padding: .75rem 1.1rem; border: 0; border-radius: .55rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { color: #fff; background: #286349; }
.field-error, .error-box { color: #8b2424; }
.error-box { margin: 1rem 0; padding: .9rem; border-left: 4px solid #b43b3b; background: #fff5f4; }
.error-card { border-top: 5px solid #b43b3b; }
.error-code { color: #8b2424; font-weight: 700; }
.record-body { line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 36rem) { .auth-card, .panel, .error-card { margin: 1rem auto; padding: 1.25rem; } h1 { font-size: 1.5rem; } .header-inner, .record-row { align-items: flex-start; flex-direction: column; padding-top: .75rem; padding-bottom: .75rem; } }
