:root {
  color-scheme: light;
  --blue: #003e90;
  --cyan: #009ee0;
  --pale: #d5edfa;
  --orange: #f49e00;
  --text: #15213b;
  --line: #c9dff0;
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #f7fbfd; color: var(--text); }
header { padding: 2rem max(1rem, calc((100% - 760px) / 2)); color: white; background: linear-gradient(100deg, var(--blue), var(--cyan)); border-bottom: 30px solid transparent; position: relative; }
header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -30px; height: 30px; background: linear-gradient(var(--cyan),var(--cyan)) left 4px / 28% 6px no-repeat, linear-gradient(var(--blue),var(--blue)) left 12px / 50% 6px no-repeat, linear-gradient(var(--orange),var(--orange)) left 20px / 76% 6px no-repeat; }
h1,h2 { margin: 0 0 .5rem; line-height: 1.15; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
h2 { color: var(--blue); font-size: 1.4rem; }
p { margin: .5rem 0 1rem; }
.eyebrow { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
main { width: min(100% - 2rem, 620px); margin: 3rem auto; flex: 1; }
.card { padding: 1.5rem; background: white; border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: 6px; box-shadow: 0 8px 26px #003e9010; }
form { display: grid; gap: .75rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
section + h3 { margin-top: 1.5rem; }
#admin-tools { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
#admin-tools h3 { margin-top: 1.5rem; }
.post { margin: .75rem 0; padding: 1rem; border-left: 4px solid var(--cyan); background: #f7fbfd; }
.post-title { margin: 0 0 .4rem; color: var(--blue); }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.muted { color: #4a5870; }
.area-item { margin-bottom: .5rem; }
.task-list { padding-left: 1.25rem; }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.overdue { color: #a11b12; font-weight: 700; }
.recovery-key { padding: .8rem; border: 1px solid var(--line); background: #f7fbfd; font: 700 1rem/1.5 monospace; overflow-wrap: anywhere; user-select: all; }
label { font-weight: 700; }
input,textarea,select { width: 100%; padding: .7rem .75rem; border: 1px solid #91a6b8; border-radius: 4px; font: inherit; }
textarea { min-height: 7rem; resize: vertical; }
fieldset { margin: .25rem 0; border: 1px solid var(--line); border-radius: 4px; }
input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.check-row { display: flex; align-items: center; gap: .5rem; }
.check-row input { width: auto; }
.button-row { display: flex; flex-wrap: wrap; gap: .5rem; }
button { justify-self: start; padding: .7rem 1rem; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: white; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
details { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
summary { color: var(--blue); font-weight: 700; cursor: pointer; }
details form { margin-top: 1rem; }
.error { min-height: 1.5rem; color: #a11b12; }
.notice { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 4px solid var(--orange); background: #fff3d7; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem max(1rem, calc((100% - 760px) / 2)); background: var(--blue); color: white; }
footer a { color: white; }
@media (max-width: 480px) { header { padding-block: 1.5rem; } .card { padding: 1rem; } .form-grid { grid-template-columns: 1fr; } }
