:root { color-scheme: light; font: 16px/1.6 'Inter', 'Hiragino Sans', system-ui, sans-serif; background: #f9f8f4; color: #172d26; }
* { box-sizing: border-box; }
body { margin: 0; }
header, main { width: min(1152px, 92%); margin: auto; }
header { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid #b3c0b5; }
.wordmark { font-size: 1.25rem; font-weight: 650; letter-spacing: -.045em; }
.wordmark i { background: #21523f; color: #fff; font-style: normal; font-weight: 400; padding: .07rem .45rem; margin-right: .25rem; border-radius: .3rem; }
button, select, textarea { font: inherit; }
button, select { min-height: 44px; cursor: pointer; background: #fff; color: #214635; border: 1px solid #9baa9f; border-radius: .4rem; padding: .45rem .8rem; }
button[aria-pressed=true], .primary { background: #21523f; border-color: #21523f; color: white; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #ac4f16; outline-offset: 3px; }
.intro { padding: clamp(2.5rem, 5vw, 4.5rem) 0 2rem; }
h1, h2, p, dl { margin: 0; }
h1 { font: 600 clamp(2.45rem, 6vw, 5rem)/1.2 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif; letter-spacing: -.055em; }
h2 { font-size: 1.15rem; }
.intro p, .spec-heading p { margin-top: .75rem; color: #425a4d; }
.workspace { border-top: 2px solid #334f40; display: grid; grid-template-columns: minmax(200px, .85fr) minmax(0, 2fr); gap: clamp(1.3rem, 4vw, 3.5rem); padding: 1.7rem 0; }
nav select { margin: .8rem 0; width: 100%; }
#items button { display: flex; text-align: start; gap: .65rem; align-items: baseline; width: 100%; background: transparent; border: 0; border-top: 1px solid #bfcbc0; border-radius: 0; padding: .9rem .4rem; }
#items button[aria-current=true] { background: #e6ede2; color: #214635; box-shadow: inset 3px 0 #21523f; }
#items small, #identity { font-family: ui-monospace, monospace; color: #485c4f; }
.spec-heading h2 { font: 600 clamp(1.6rem, 3.2vw, 2.5rem)/1.35 'Hiragino Mincho ProN', Georgia, serif; letter-spacing: -.04em; }
iframe { display: block; width: 100%; height: 380px; border: 1px solid #bdcbbd; border-radius: .6rem; margin-top: 1.3rem; background: #f4f6ef; }
.notes dl { margin: .8rem 0 1rem; }
dt { color: #244c39; font-weight: 650; font-size: .9rem; margin-top: .8rem; }
dd { margin: .12rem 0; }
.tray { display: grid; grid-template-columns: .85fr 2fr; gap: clamp(1.3rem, 4vw, 3.5rem); margin: 1rem 0 3rem; padding: 1.6rem 0; border-top: 2px solid #334f40; }
.tray textarea { display: block; width: 100%; padding: .65rem; margin: .4rem 0 .65rem; border: 1px solid #9baa9f; border-radius: .4rem; color: inherit; background: white; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#feedback { margin-top: .6rem; }
.sr { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
@media (max-width: 680px) { .workspace, .tray { grid-template-columns: minmax(0, 1fr); } .intro { padding-top: 2rem; } .tray { gap: .8rem; } }

#items { max-height: 34rem; overflow-y: auto; }
footer { width: min(1152px, 92%); margin: 0 auto 2rem; padding-top: 1rem; border-top: 1px solid #b3c0b5; display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer a { color: #24573f; }
@media (max-width: 680px) { #items { max-height: 11rem; } }
