:root {
  font-family: system-ui, -apple-system, sans-serif;
  color: #1d3027;
  background: #f3f6ef;
  color-scheme: light;
  font-synthesis: none;
  --muted: #53665b;
  --line: #d2dfd3;
  --green: #22563e;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.12; letter-spacing: -.045em; }
h2 { font-size: 1.28rem; letter-spacing: -.026em; line-height: 1.25; }
p { color: var(--muted); line-height: 1.5; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #217f69; outline-offset: 3px; }
.shell { width: min(100% - 2rem, 58rem); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.bar, .brand { display: flex; align-items: center; }
.bar { justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { gap: .65rem; font-weight: 750; text-decoration: none; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .7rem; color: #fff; background: var(--green); }
.heading { margin: 2.75rem 0 1.4rem; }
.heading p, .center-panel h1 + p, .dialog-inner h2 + p { margin-top: .55rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; padding-bottom: 2rem; }
.card, .center-panel, dialog { border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.card, .center-panel, .dialog-inner { padding: clamp(1.1rem, 4vw, 1.75rem); }
.center-panel { max-width: 31rem; margin: clamp(1.5rem, 8vw, 5rem) auto; }
.card-head, .actions { display: flex; gap: .55rem .65rem; align-items: center; flex-wrap: wrap; }
.card-head { justify-content: space-between; margin-bottom: .75rem; }
.card p { overflow-wrap: anywhere; }
.status { font-size: .84rem; font-weight: 650; border-radius: 1.2rem; color: #45554c; background: #eef2ee; padding: .26rem .65rem; }
.status.active { background: #ddf0e3; color: #215438; }
.actions, .fields { margin-top: 1.15rem; }
.fields { display: grid; gap: .5rem; min-width: 0; }
.fields label { font-size: .9rem; font-weight: 650; }
.fields input + label, .fields .copy-field + label { margin-top: .35rem; }
.fields .primary { justify-self: start; }
.fields > .primary { margin-top: .45rem; }
input:not([type=hidden]) { width: 100%; min-width: 0; min-height: 2.7rem; border: 1px solid #a9bcad; border-radius: .5rem; padding: .63rem .75rem; background: #fff; color: inherit; }
input[readonly] { background: #f8faf7; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
#copy-state:not(:empty) { margin-top: .45rem; font-size: .875rem; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; padding: .45rem .8rem; border: 1px solid transparent; border-radius: .5rem; font-weight: 650; text-decoration: none; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #17432f; }
.secondary { background: #fff; border-color: #a9bcad; color: #254a36; }
.secondary:hover, .quiet:hover { background: #edf4ee; }
.quiet { color: var(--green); background: transparent; }
.notice { background: #e6f3e8; color: #215036; padding: .75rem .9rem; margin: .9rem 0; border-radius: .5rem; }
.notice.error { background: #fcebe7; color: #8a2d20; }
dialog { width: min(100% - 1.5rem, 32rem); max-height: calc(100dvh - 2rem); padding: 0; color: inherit; overflow: auto; }
dialog::backdrop { background: rgb(18 38 27 / .58); }
@media (max-width: 690px) {
  .cards { grid-template-columns: 1fr; }
  .heading { margin-top: 1.8rem; }
  input:not([type=hidden]) { font-size: 1rem; }
}
