:root {
  color-scheme: light;
  --ink: #172d28; --muted: #4d655b; --green: #075f50; --line: #d6e0d9;
  --paper: #fff; --canvas: #f2f5f2; --error: #872e22;
  font-family: system-ui, "Segoe UI", Tahoma, sans-serif; font-size: 100%; line-height: 1.5;
  color: var(--ink); background: var(--canvas);
}
* { box-sizing: border-box }
body { margin: 0 }
a { color: var(--green); text-underline-offset: .18em }
a:hover { color: #11483c }
button, input, select, textarea { font: inherit }
button, .button { display: inline-block; border: 1px solid #a4b4aa; border-radius: .45rem; padding: .53rem .9rem; background: white; color: var(--ink); text-decoration: none; cursor: pointer }
button:hover, .button:hover { background: #edf5ef }
.primary, .primary:hover { background: var(--green); border-color: var(--green); color: white; font-weight: 650 }
:focus-visible { outline: 3px solid #2c8f82; outline-offset: 3px }
input, select, textarea { width: 100%; margin-top: .32rem; padding: .62rem .75rem; border: 1px solid #99aca0; border-radius: .38rem; background: white; color: var(--ink) }
input[type=checkbox] { width: 1.15rem; height: 1.15rem }
textarea { resize: vertical }
label { display: block; font-weight: 630 }
.field { margin: 0 0 1.05rem }
small, .meta { display: block; color: var(--muted); font-size: .89rem }
small { margin-top: .2rem }
h1, h2 { line-height: 1.16; letter-spacing: -.025em }
h1 { margin: .1em 0 .5em; font-size: clamp(2rem, 4vw, 2.65rem) }
h2 { margin: .25em 0 .75em; font-size: 1.22rem }
p { margin: .55rem 0 1.15rem }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.55rem 0 }
.public { padding: clamp(.6rem, 3vw, 2.25rem) }
.form-shell, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 3vw, 2rem) }
.form-shell { position: relative; max-width: 39rem; margin: 0 auto; box-shadow: 0 3px 13px #18302508 }
.form-top, .title-row, .actions, .account, .pages { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap }
.form-top, .title-row { justify-content: space-between }
.form-top { border-bottom: 1px solid var(--line); margin-bottom: 1.65rem; padding-bottom: .8rem }
.brand { color: var(--green) }
.has-switch { padding-inline-end: 5rem }
.language-link { position: absolute; inset-block-start: clamp(1rem, 3vw, 2rem); inset-inline-end: clamp(1rem, 3vw, 2rem); color: var(--green); border: 0; padding: 0; background: transparent; text-decoration: underline }
.lead { color: var(--muted); margin-top: -.2rem }
.receipt { display: grid; gap: .35rem; margin: 1.25rem 0; padding: 1rem; background: #e5f3e9; border-radius: .5rem }
.receipt strong { font-family: ui-monospace, monospace; overflow-wrap: anywhere; text-align: start }
.alert, .notice { padding: .75rem 1rem; border-radius: .4rem; max-width: 70rem }
.alert { color: var(--error); background: #fdf0ec }
.notice { background: #e0f1e8 }
.errorlist { color: var(--error); margin: .2rem 0 .55rem; padding-inline-start: 1.2rem }
[aria-invalid=true] { border-color: var(--error) }
.topbar { background: #113c32; color: white }
.navwrap { min-height: 4.2rem; max-width: 78rem; margin: auto; padding: .65rem 1.4rem; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap }
.topbar a, .topbar button { color: white }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none }
.wordmark strong { font-weight: 800; letter-spacing: .05em }
.wordmark span { border-inline-start: 1px solid #80a097; padding-inline-start: .7rem }
.topbar nav { display: flex; gap: 1rem }
.topbar nav a { text-decoration: none }
.account { margin-inline-start: auto }
.link { background: none; border: none; text-decoration: underline; padding: 0 }
.link:hover { background: transparent }
.workspace { max-width: 78rem; margin: auto; padding: clamp(1rem, 3vw, 2rem) 1.4rem 4rem }
.title-row { margin: 1rem 0 }
.title-row h1 { margin: .2rem 0 }
.narrow { max-width: 46rem; margin-top: 1rem }
.metrics { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem }
.metrics a { display: flex; align-items: baseline; gap: .55rem; padding: .55rem 1rem; background: white; border: 1px solid var(--line); border-radius: .5rem; text-decoration: none }
.metrics strong { font-size: 1.4rem }
.filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .75rem; padding: 1rem; margin-bottom: 1rem }
.filters label { flex: 1 1 8.5rem; min-width: 0; font-size: .9rem }
.filters a { padding: .55rem 0 }
.tablewrap { padding: 0; overflow: auto }
table { border-collapse: collapse; width: 100%; min-width: 42rem }
th, td { text-align: start; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle }
th { color: var(--muted); font-size: .87rem; background: #f8faf8 }
tr:last-child td { border-bottom: 0 }
.empty { color: var(--muted); padding: 2.5rem 1rem; text-align: center }
.state { display: inline-block; border-radius: .4rem; font-size: .9rem; padding: .14rem .55rem; background: #e9eeeb; color: #344d40 }
.state.new { background: #d9eee6; color: #195342 }
.state.open { background: #fff0d6; color: #704908 }
.columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); gap: 1.1rem; align-items: start }
.message { white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext }
.timeline { list-style: none; padding: 0; margin: 0 0 1.6rem }
.timeline li { padding: .55rem 0 .55rem .9rem; border-inline-start: 2px solid #b5d2c3 }
.timeline .meta { display: inline }
dt { color: var(--muted); font-size: .9rem } dd { margin: .15rem 0 .8rem; font-weight: 650 }
.action-form, .actions, .pages { margin: .8rem 0 1.2rem }
.action-form select { margin-bottom: .5rem }
.settings { margin: 0 0 1.15rem } summary { cursor: pointer; font-weight: 630 } details[open] summary { margin-bottom: 1rem }
.code { font: .9rem/1.5 ui-monospace, monospace }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@media (max-width: 700px) {
  .columns { grid-template-columns: 1fr }
  .navwrap { gap: .7rem 1rem; padding-inline: 1rem }
  .workspace { padding: 1.1rem .7rem 3rem }
  .account { gap: .5rem }
  .filters label { flex-basis: 42% }
}
