:root { font: 16px/1.45 system-ui, sans-serif; color: #21392e; background: #e9eee8; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; gap: .65rem; align-items: center; padding: 1rem max(1rem, calc((100vw - 840px)/2)); background: #213b30; color: white; }
header span { font-size: .66rem; letter-spacing: .12em; color: #c8d7c8; }
header strong { font-size: 1.05rem; white-space: nowrap; }
header small { margin-left: auto; text-align: right; }
main { max-width: 840px; margin: 0 auto; padding: 1.25rem 1rem 6rem; }
h1 { margin: .1rem 0 1rem; font-size: clamp(1.4rem, 4vw, 2rem); }
details { margin-bottom: .7rem; border: 1px solid #ccd6cb; border-radius: .55rem; background: white; }
summary { padding: .65rem .85rem; font-weight: 700; cursor: pointer; }
.group { padding: .25rem .85rem .85rem; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
label { display: grid; gap: .22rem; font-size: .88rem; font-weight: 600; }
input, select, textarea, button { font: inherit; border: 1px solid #bac8bc; border-radius: .35rem; padding: .5rem .55rem; }
input, select, textarea { width: 100%; color: #21392e; background: #f9fbf8; min-height: 2.6rem; }
textarea { min-height: 3.1rem; resize: vertical; }
.wide { grid-column: 1 / -1; }
fieldset { margin: 0; border: 1px solid #dce4da; border-radius: .35rem; }
fieldset > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
fieldset output { display: inline-block; margin-top: .4rem; font-size: .86rem; }
footer { background: #f7f9f5; border: 1px solid #ccd6cb; border-radius: .5rem; margin-top: 1rem; position: sticky; bottom: .5rem; padding: .65rem; display: flex; align-items: center; gap: .7rem; justify-content: space-between; }
footer div:last-child { display: flex; gap: .4rem; flex-wrap: wrap; }
button { cursor: pointer; font-size: .88rem; }
button[type=submit] { background: #266047; color: white; border-color: #266047; font-weight: 700; white-space: nowrap; }
button:disabled { opacity: .55; cursor: default; }
#notice { font-size: .88rem; }
#notice[data-state=error], #notice[data-state=conflict], #notice[data-state=retry] { color: #96251d; }
@media (max-width: 540px) {
  .group { grid-template-columns: 1fr; }
  main { padding-top: .85rem; }
  footer { align-items: flex-start; flex-direction: column; }
}
