:root {
  font: 16px/1.53 system-ui, sans-serif;
  color: #e6f4ec;
  background: #101c1d;
  color-scheme: dark;
  --surface: #182929;
  --edge: #35514e;
  --muted: #b5c9c4;
  --accent: #87e5bc;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.top {
  min-height: 65px;
  padding: 14px max(22px, calc((100vw - 940px) / 2));
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--edge);
}
.brand { font-size: 1.18rem; font-weight: 750; color: inherit; text-decoration: none; }
.brand span { color: var(--accent); }
.local, .back { font-size: .92rem; color: var(--muted); }
main { margin: 0 auto; max-width: 984px; padding: 38px 22px 65px; }
h1 { margin: 0 0 13px; font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.16; letter-spacing: -.035em; }
h2 { margin: 0 0 9px; font-size: 1.23rem; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.card { border: 1px solid var(--edge); border-radius: 15px; padding: 21px; background: var(--surface); margin-top: 20px; }
.narrow { max-width: 480px; }
.card > div.stack:not(:empty) { margin-top: 16px; }
.row, .item, .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.item { justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--edge); }
.item:last-child { padding-bottom: 0; }
.bar { justify-content: space-between; margin-bottom: 20px; }
.stack { display: grid; gap: 12px; }
.stack label { display: grid; gap: 5px; }
button, .button, input, select {
  font: inherit;
  color: inherit;
  border-radius: 8px;
  border: 1px solid #42605a;
  background: #112021;
  min-height: 42px;
  padding: 8px 12px;
}
input { min-width: 0; max-width: 100%; }
button, .button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .58; cursor: wait; }
.primary { background: var(--accent); border-color: var(--accent); color: #142e27; font-weight: 670; }
.danger { color: #ffc0bd; }
:focus-visible { outline: 2px solid #bff4da; outline-offset: 3px; }
#message { padding: 12px 15px; border: 1px solid #79a58f; background: #1c3c33; border-radius: 8px; overflow-wrap: anywhere; }
#message.error { border-color: #d29188; background: #412b2a; }
.break { overflow-wrap: anywhere; }
.diff { margin: 0; padding: 11px 0; border-top: 1px solid var(--edge); white-space: pre-wrap; overflow-wrap: anywhere; }
summary { cursor: pointer; }
@media (max-width: 600px) {
  main { padding-top: 27px; }
  .card { padding: 15px; }
}
