:root { color-scheme:light }
body { background:#faf6ec; color:#173e40; font-family:Inter,system-ui,sans-serif }
main { max-width:1100px; padding:clamp(12px,3vw,28px); margin:auto }
main > :not(.layout):not(.embed-tools), body > footer { display:none }
.layout { margin-top:0; gap:16px }
.panel { background:#fffdf8; border:1px solid #c6d7cd; padding:clamp(12px,2.2vw,24px) }
.panel label,.panel .fine { color:#355359 }
.panel input,.panel select { background:#fffdf8; color:#183e41; border-color:#849d98 }
.panel .note,.panel .stat { background:#eaf1e9; color:#183e41; border-color:#91aea4 }
.panel button { background:#09645f; color:white }
.panel button:hover { background:#084f4d }
#results { background:#12383d; color:#fffaf0 }
#results :is(label,.fine,.stat small) { color:#dbe7df }
#results .stat { background:#21494a; color:#fffaf0 }
.embed-tools { display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; margin:.8rem 0 0 }
.embed-tools button { display:inline-flex; align-items:center; gap:.5rem; font:600 .9rem system-ui; color:#154e4b; background:#f5dfa3; padding:.55rem .9rem; min-height:44px }
.embed-tools textarea { display:block; width:100%; min-height:6em }
@media(max-width:520px){.view-options,.mirror-controls,.layout,.formgrid {grid-template-columns:minmax(0,1fr)} .wide {grid-column:1}}
.embed-tools [hidden] { display:none }
html body { background:#faf6ec }
main .layout #birth-form .formgrid label, main .layout label[for="sample-select"] { color:#245852!important }
main #birth-form input, main #birth-form select { color:#183e41; background:#fffdf8; border-color:#849d98 }
@media(max-width:520px){body main{padding:8px} .layout>.panel{padding:14px}}
