* { box-sizing: border-box }
body { margin: 0; background: #f5f5f7; color: #202124; font: 15px system-ui, sans-serif }
main { display: grid; grid-template-columns: minmax(275px, 31%) minmax(0, 1fr); min-height: 100dvh }
aside { padding: 14px; border-right: 1px solid #cbcbcf }
h1 { margin: 0 0 12px; font-size: 19px }
section { display: grid; align-content: start; justify-items: center; background: white; padding: 8px }
svg { width: min(100%, 100dvh); display: block }
form { display: grid; gap: 6px }
label { display: block }
label:has(input:not([type=checkbox])) { display: grid; gap: 2px }
input, textarea, button { font: inherit }
input:not([type=checkbox]), button { min-height: 38px }
button { cursor: pointer }
details { border-top: 1px solid #d0d0d5; padding-block: 9px }
summary { cursor: pointer; min-height: 30px }
textarea { width: 100%; min-height: 90px }
td { padding: 3px 6px }
#city-results button, #new-city-results button { display: block; width: 100%; text-align: left }
#inspection { min-height: 1.5em }
.chart-point { cursor: pointer; outline-offset: 4px }
@media (max-width: 680px) {
    main { grid-template-columns: 1fr }
    aside { border-right: 0; border-bottom: 1px solid #cbcbcf }
}
#aspect-objects { display: flex; flex-wrap: wrap; gap: 4px 9px }
#aspect-objects label { min-height: 26px }
#formulas { display: flex; flex-wrap: wrap; gap: 5px }
#formula-tooltip { display: block; white-space: pre-line }
#phases { display: flex; flex-wrap: wrap; gap: 7px }
dialog { max-width: min(100% - 24px, 360px); border: 1px solid #a9a9b0; border-radius: 7px }
@media print {
    main { display: flex; flex-direction: column-reverse }
    section { page-break-after: always }
    svg { width: min(100%, 180mm) }
    form, aside button, aside select, #status { display: none }
    * { print-color-adjust: exact }
}
nav { display:flex; gap:12px; padding:10px; border-bottom:1px solid #cbcbd2 }
nav a { color:inherit; text-decoration:none }
nav [aria-current] { font-weight:600 }
