:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #251c2a; background: #f8f5f7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: #35243c; color: white; display: flex; justify-content: space-between; align-items: center; padding: 1rem max(1rem, calc((100vw - 80rem)/2)); min-height: 4.25rem; }
main { max-width: 82rem; margin: auto; padding: 1rem; }
h1 { margin: .75rem 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { margin: 0 0 .8rem; font-size: 1.35rem; }
h3 { margin: 0 0 .8rem; }
nav, .row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
nav { margin-bottom: 1.75rem; }
a { color: #62346d; }
button { border: 1px solid #684372; background: #684372; color: white; padding: .45rem .8rem; cursor: pointer; border-radius: .45rem; font: inherit; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #9860b1; outline-offset: 2px; }
input, select, textarea { display: block; padding: .45rem; border: 1px solid #aa9caf; border-radius: .4rem; font: inherit; width: 100%; }
label { display: block; margin-bottom: .65rem; }
.panel, .metrics article { background: white; border: 1px solid #e5dbe7; border-radius: .8rem; padding: 1rem; margin-bottom: 1rem; }
.metrics, .columns { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.metrics b { font-size: 1.6rem; display: block; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .6rem; border-bottom: 1px solid #ece4ee; text-align: left; vertical-align: top; }
td button { margin: .15rem .35rem .15rem 0; }
table + .row, .scroll + .row { margin-top: .8rem; }
small { color: #554a59; }
#login { max-width: 25rem; }
#message, #editor-error { color: #8b244b; }
dialog { max-height: 90vh; width: min(28rem, 94vw); border: 1px solid #ad99b2; border-radius: .8rem; padding: 1.2rem; }
dialog::backdrop { background: #211826a0; }
details div { min-width: 12rem; overflow-wrap: anywhere; }
