:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17233a; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(100%, 760px); margin: 0 auto; padding: 28px 18px 48px; }
.masthead { padding: 28px 4px 32px; }
.eyebrow { color: #2665a8; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.12; margin: 12px 0; }
h2 { font-size: 1.45rem; margin-bottom: 10px; }
h3 { font-size: 1.1rem; }
.masthead p, .hint { color: #596b82; line-height: 1.6; }
.card { background: white; border: 1px solid #dde6f1; border-radius: 18px; box-shadow: 0 10px 28px #203b6110; padding: 24px; margin-bottom: 24px; }
form { display: grid; gap: 10px; }
label { font-weight: 650; margin-top: 8px; }
input, textarea { width: 100%; border: 1px solid #b8c8da; border-radius: 10px; padding: 12px 13px; background: #fff; color: inherit; font: inherit; }
input:focus, textarea:focus { outline: 3px solid #c9e3ff; border-color: #3279bd; }
button { border: 0; border-radius: 10px; padding: 12px 16px; font: inherit; font-weight: 700; color: white; background: #176eb3; cursor: pointer; }
button:hover { background: #0c5794; }
form button { margin-top: 10px; }
.form-actions, .record-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.form-actions button { margin-top: 10px; }
.record-actions { margin-top: 14px; }
.record-actions button { padding: 9px 14px; }
.delete-confirmation { border-top: 1px solid #dde6f1; margin-top: 14px; padding-top: 14px; }
.delete-confirmation p { margin-bottom: 0; }
.button-quiet { color: #1762a0; background: #e9f2fb; white-space: nowrap; }
.button-quiet:hover { background: #d5e9fa; }
.button-danger-quiet { color: #a32924; background: #fff0ed; }
.button-danger-quiet:hover { background: #ffe1da; }
.button-danger { color: white; background: #ad302a; }
.button-danger:hover { background: #8f231e; }
button:disabled { opacity: .55; cursor: not-allowed; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.section-heading h2, .section-heading h3 { margin: 0; }
.record-section { margin-top: 24px; }
.record-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.record-list li { background: white; border: 1px solid #dde6f1; border-radius: 13px; padding: 16px 18px; overflow-wrap: anywhere; }
.record-list strong { display: block; margin-bottom: 8px; }
.record-list p { margin-bottom: 10px; white-space: pre-wrap; line-height: 1.5; }
.record-list time { color: #6f8096; font-size: .83rem; }
.notice { padding: 13px 16px; border-radius: 10px; background: #e8f6ea; color: #1d6731; }
.notice.error { background: #fff0ed; color: #a32924; }
footer { margin-top: 34px; color: #77879b; font-size: .8rem; }
[hidden] { display: none !important; }
@media (max-width: 520px) { .shell { padding: 14px 14px 36px; } .masthead { padding-top: 20px; } .card { padding: 18px; } .section-heading { align-items: center; } }
