:root {
  color-scheme: light;
  --ink: #172f32;
  --muted: #4d6569;
  --line: #d7e3e1;
  --paper: #f0f6f5;
  --accent: #006451;
  --dark: #183f3b;
  font: 16px/1.65 Tahoma, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1 { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.35; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
small { font-size: .86rem; color: var(--muted); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; min-height: 2.75rem; border: 0; border-radius: .55rem; padding: .5rem 1rem; color: white; background: var(--accent); }
button[disabled] { opacity: .7; cursor: wait; }
button.secondary { background: #e2eeeb; color: var(--dark); }
button.quiet { background: transparent; padding: .2rem .45rem; color: inherit; }
button:hover { filter: brightness(.92); }
:focus-visible { outline: 3px solid #1979ae; outline-offset: 3px; }
.wrap { width: min(1050px, calc(100% - 2rem)); margin-inline: auto; }
.topbar { background: var(--dark); color: white; }
.nav, .navlinks, .fields { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.nav { min-height: 3.8rem; justify-content: space-between; }
.nav a { color: inherit; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.brand { display: flex; gap: .55rem; align-items: center; font-weight: bold; }
.mark { background: #c9efdf; color: var(--dark); padding: 0 .46rem; border-radius: .45rem; font-size: 1.18rem; }
main.wrap { padding-block: 2rem 3rem; }
.intro { margin-block-end: 1.35rem; }
.intro > a { display: inline-block; margin-block-end: .6rem; }
.grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.panel { background: white; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 2.5vw, 1.55rem); min-width: 0; }
.auth { max-width: 460px; margin: min(10vh, 5rem) auto; }
.stack { display: grid; gap: .85rem; }
.stack > button { justify-self: start; }
.section { margin-block-start: 1rem; }
label { display: grid; gap: .3rem; }
label > small { display: inline; }
input:not([type=hidden], [type=checkbox]), textarea, select {
  display: block; min-height: 2.75rem; width: 100%; color: var(--ink); background: white;
  padding: .46rem .6rem; border: 1px solid #afc1bf; border-radius: .45rem;
}
input[type=file] { min-width: 0; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: .5rem; }
.muted { color: var(--muted); }
.quota dl { margin: .25rem 0 0; }
.quota dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .52rem 0; border-top: 1px solid var(--line); }
.quota dd { margin: 0; }
.remaining { margin: 0; color: var(--accent); font-size: 1.35rem; font-weight: bold; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .65rem .5rem; text-align: start; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: normal; }
.tag { display: inline-block; background: #e7eff4; color: #23465d; padding: .06rem .5rem; border-radius: .35rem; white-space: nowrap; }
.tag.ready { background: #daf2e7; color: #075242; }
.tag.failed, .notice.error { background: #fff0ef; color: #831e21; }
.notice { background: #dcf2ea; color: #06483c; padding: .65rem .85rem; border-radius: .5rem; }
.utterance, .account, .audit { padding: .75rem 0; border-top: 1px solid var(--line); }
.utterance { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .65rem; scroll-margin-block-start: 1rem; }
.utterance p { margin: 0; overflow-wrap: anywhere; }
.stamp { color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; }
.task { display: grid; gap: .65rem; border: 1px solid var(--line); min-width: 0; border-radius: .5rem; }
.fields > label { flex: 1 1 10rem; }
.account summary { cursor: pointer; overflow-wrap: anywhere; }
.account form { margin-top: .65rem; }
[data-copy-status]:empty { display: none; }
@media (max-width: 660px) { .grid { grid-template-columns: 1fr; } }
