:root {
  color-scheme: light;
  --ink: #172e47;
  --muted: #546677;
  --bg: #f3f5f6;
  --paper: #fff;
  --line: #d5dce0;
  --accent: #125f52;
  --soft: #e3efe9;
  font:
    16px/1.5 "Source Sans 3",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
:root.dark {
  color-scheme: dark;
  --ink: #e4eef5;
  --muted: #adc0d0;
  --bg: #0f1d2a;
  --paper: #182a39;
  --line: #384d5b;
  --accent: #88d4b5;
  --soft: #243f39;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
input,
button,
select,
textarea {
  font: inherit;
}
button,
.button {
  background: #163750;
  border: 1px solid #163750;
  color: white;
  border-radius: 5px;
  padding: 0.66rem 1rem;
  font-weight: 620;
  cursor: pointer;
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
.light,
.tab {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
a {
  color: var(--accent);
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(15px, 5vw, 80px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.mast a {
  font-size: 0.84rem;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 720;
  line-height: 1.25;
}
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 480;
  font-size: 0.78rem;
}
.verify {
  max-width: 1040px;
  margin: 10vh auto 7vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8%;
  padding: 0 24px;
}
.verify aside {
  padding: 2rem 0;
}
.eyebrow {
  color: var(--accent);
  font-weight: 680;
  font-size: 0.84rem;
}
.verify h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 12ch;
  line-height: 1.07;
  letter-spacing: -0.045em;
  margin: 14px 0;
}
.verify p,
footer,
.muted {
  color: var(--muted);
}
.sample {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 2rem;
}
.sample span,
.sample b {
  display: block;
}
.sample span {
  font-size: 0.8rem;
  color: var(--muted);
}
.paper,
.metric,
dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 32px);
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 1.8rem;
}
h2 {
  font-size: 1.28rem;
  margin: 0 0 18px;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 620;
  font-size: 0.86rem;
  margin: 0 0 14px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #92a1ac;
  border-radius: 4px;
  padding: 0.62rem 0.75rem;
}
input:disabled {
  background: var(--bg);
}
:focus-visible {
  outline: 3px solid #2693bb;
  outline-offset: 2px;
}
.actions,
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.or {
  font-size: 0.8rem;
  color: var(--muted);
  margin: -7px 0 7px;
}
.success,
.message {
  margin-top: 16px;
  background: var(--soft);
  padding: 14px;
}
.success {
  color: var(--accent);
}
#support {
  display: inline-block;
  margin-top: 16px;
  font-weight: bold;
}
#support[hidden],
[hidden] {
  display: none !important;
}
footer {
  margin: 0 auto;
  padding: 22px;
  max-width: 1000px;
  font-size: 0.83rem;
  border-top: 1px solid var(--line);
}
.shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  max-width: 1500px;
  margin: auto;
}
.rail {
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tab {
  border: 0;
  text-align: left;
  background: transparent;
}
.tab.active {
  background: var(--soft);
  color: var(--accent);
}
.workspace {
  padding: 18px clamp(14px, 3vw, 44px) 90px;
  min-width: 0;
}
.workspace header,
.toolbar {
  margin-bottom: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.metric {
  padding: 15px;
  border-top: 3px solid var(--accent);
}
.metric small,
.metric b {
  display: block;
}
.metric b {
  font-size: 1.32rem;
  font-variant-numeric: tabular-nums;
}
.tablewrap {
  overflow: auto;
  margin: 12px 0 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
th,
td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 0.77rem;
  color: var(--muted);
  background: var(--bg);
}
td button {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
}
.login {
  max-width: 440px;
  margin: 8vh auto;
}
.toast:not(:empty) {
  position: fixed;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  background: #163750;
  color: white;
  border-radius: 5px;
  padding: 10px 16px;
  z-index: 5;
}
.empty {
  padding: 18px;
  background: var(--paper);
  color: var(--muted);
}
dialog {
  color: var(--ink);
  max-height: 90dvh;
  width: min(580px, 94vw);
}
dialog::backdrop {
  background: #102438aa;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.line {
  border: 1px solid var(--line);
  padding: 12px;
  margin: 10px 0;
}
.bottom {
  display: none;
}
.print-only {
  display: none;
}
.doc {
  max-width: 780px;
  margin: 24px auto;
  padding: 32px;
  background: var(--paper);
}
#challenge {
  margin: 12px 0;
}
#result:not(:empty) {
  margin-top: 12px;
}
#dialogbody [role="alert"] {
  color: #a4402a;
}
.mask .amount {
  filter: blur(6px);
  user-select: none;
}
@media (max-width: 700px) {
  .verify {
    grid-template-columns: 1fr;
    margin: 20px auto;
    gap: 15px;
  }
  .verify aside {
    padding: 5px 0;
  }
  .verify h1 {
    max-width: unset;
  }
  .sample {
    margin-top: 12px;
  }
  .mast {
    padding: 12px;
  }
  .shell {
    display: block;
  }
  .rail {
    flex-flow: row wrap;
    gap: 3px;
    padding: 8px;
  }
  .rail .tab {
    padding: 7px 10px;
    font-size: 0.85rem;
  }
  .workspace {
    padding-top: 0;
  }
  .bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    left: 0;
    right: 0;
    justify-content: space-around;
    padding: 5px 0;
  }
  .bottom button {
    font-size: 0.78rem;
  }
  .login {
    margin: 28px 12px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .doc {
    padding: 15px;
    margin: 8px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .mast .light {
    padding: 6px 8px;
  }
}
@media print {
  @page {
    margin: 15mm;
  }
  body {
    background: white;
    color: black;
  }
  .mast,
  .toolbar,
  .toast,
  dialog,
  .bottom,
  .noprint {
    display: none !important;
  }
  .doc {
    padding: 0;
    margin: 0;
    max-width: none;
  }
  .tablewrap {
    overflow: visible;
    border: 0;
  }
  td,
  th {
    white-space: normal;
  }
  tr {
    break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
  .print-only {
    display: block;
  }
}
