html { color-scheme: dark; }
body { background: #000; color: #ddd; font: 1rem/1.15 ui-monospace, monospace; margin: 0; }
main { display: grid; justify-items: center; gap: 1.4rem; padding: 1rem; }
h1 { margin: 0; border: 1px solid #38ba37; padding: .45rem .65rem; font-size: 1rem;
     font-weight: normal; letter-spacing: .35em; text-transform: uppercase; text-align: center; }
section { position: relative; border: 1px solid #38ba37; padding: .6rem .35rem .35rem; min-width: min(15rem, 85vw); }
h2 { position: absolute; inset: -.6em auto auto 50%; transform: translateX(-50%); margin: 0;
     background: #990e0e; color: #fff; font: inherit; white-space: nowrap; padding: 0 .15rem; }
ul { padding: 0; margin: 0; list-style: none; }
button, input { font: inherit; color: inherit; background: #000; }
li button { display: block; width: 100%; text-align: left; padding: .1rem .2rem; border: 0; cursor: pointer; }
li button:hover, li button:focus { background: #990e0e; color: white; }
:focus-visible { outline: 1px solid white; outline-offset: -1px; }
form { display: grid; gap: .7rem; padding: .4rem; }
label { display: flex; gap: .8rem; justify-content: space-between; }
input { max-width: 11ch; border: 1px solid #38ba37; padding: .15rem; }
form button, #back { border: 1px solid #38ba37; padding: .25rem .5rem; cursor: pointer; }
#status { max-width: 34ch; margin: .5rem .2rem .2rem; }
#status:empty { display: none; }
table { margin: .6rem .2rem; border-collapse: collapse; }
th, td { padding: .3rem; text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { border-bottom: 1px solid #38ba37; }
a { color: #c6efc4; }

section { max-width: 100%; min-width: min(15rem, 85vw); box-sizing: border-box; }
h2 { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.report-form { max-width: 25rem; }
.report-table { max-width: calc(100vw - 3rem); overflow: auto; }
.report-table th, .report-table td { white-space: nowrap; }
.report-table:focus-visible { outline-offset: -1px; }
