:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #18251e;
  background: #f2f7f3;
  --green: #2e7d32;
  --border: #d6e4d8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.container { width: min(100% - 2rem, 65rem); margin-inline: auto; }
.bar { background: #132b1d; color: #fff; }
.nav, .title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.nav { min-height: 4rem; }
.wordmark { font-size: 1.35rem; font-weight: 750; }
main { padding-block: 1.5rem 3rem; }
h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.65rem); line-height: 1.15; }
h2 { font-size: 1.2rem; margin-top: 0; }
p { line-height: 1.55; }
#message:empty { display: none; }
#message[data-error="true"] { color: #9a2d24; }
.panel, .metrics > div { padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: .8rem; }
.panel + .panel { margin-top: 1rem; }
.login { max-width: 28rem; margin: 1rem auto; }
.login form, .org { display: grid; gap: .5rem; }
.org { max-width: 28rem; margin-top: .75rem; }
label, dt { font-size: .875rem; font-weight: 650; }
input, select, button {
  font: inherit; min-height: 2.75rem; border: 1px solid var(--border);
  border-radius: .5rem; padding: .55rem .85rem; color: inherit;
}
input, select { background: #fff; min-width: 0; }
button { border-color: var(--green); background: var(--green); color: #fff; font-weight: 650; cursor: pointer; }
button.secondary { background: #fff; color: #24532b; border-color: var(--border); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #39843e; outline-offset: 2px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .75rem; }
dd { margin: .3rem 0 0; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.notice { font-size: .875rem; background: #e5f1e7; padding: .75rem; border-radius: .5rem; }
.operations { list-style: none; margin: 0; padding: 0; }
.operations li { padding: .65rem 0; border-top: 1px solid var(--border); }
.operations li button { display: block; width: 100%; text-align: left; }
.operations li span { display: block; margin-top: .25rem; font-weight: 400; font-size: .875rem; color: #405748; }
.detail-metrics dd { font-size: 1rem; }
.result-view { margin-block: 1.25rem; border-top: 1px solid var(--border); padding-top: 1rem; overflow-wrap: anywhere; }
.result-view h3 { margin: 0 0 .5rem; }
.result-view p { margin: .4rem 0 .75rem; white-space: pre-line; }
.result-view h4 { margin: 1rem 0 .5rem; }
.result-view ul { margin: .4rem 0 1rem; padding-inline-start: 1.25rem; }
.result-view li + li { margin-top: .4rem; }
.scan-components { display: grid; gap: .65rem; }
.scan-component { border: 1px solid var(--border); border-radius: .6rem; padding: .75rem; }
.scan-component h5 { margin: 0; font-size: 1rem; }
.scan-component p { margin-bottom: 0; }
@media (max-width: 36rem) {
  .detail-metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); }
  .detail-metrics > div { padding: .75rem; }
}
summary { cursor: pointer; font-weight: 650; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f2f7f3; padding: .75rem; }
