:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #1c2928;
  background: #f3f6f4;
  --accent: #155d4a;
  --muted: #4e6260;
  --line: #d7e1dd;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 50rem); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { display: inline-flex; gap: .65rem; align-items: center; font-weight: 750; }
.mark {
  width: 1.35rem;
  height: 1.15rem;
  border-radius: .25rem;
  background: var(--accent);
  position: relative;
}
.mark::before {
  content: "";
  position: absolute;
  top: -.2rem;
  left: 0;
  background: inherit;
  width: .63rem;
  height: .35rem;
  border-radius: .2rem .2rem 0 0;
}
main { padding-block: clamp(2.5rem, 7vw, 5rem); }
.auth { max-width: 27rem; margin-inline: auto; }
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.06em; line-height: 1.1; margin: 0 0 1rem; }
p, small { color: var(--muted); }
p { line-height: 1.5; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: .85rem; }
label { display: block; font-weight: 650; }
input, button { font: inherit; }
button {
  border: 1px solid var(--accent);
  border-radius: .45rem;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  padding: .6rem .9rem;
  cursor: pointer;
}
button:hover:not(:disabled) { filter: brightness(.89); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #297d66; outline-offset: 3px; }
.quiet {
  color: var(--accent);
  background: #e9f2ec;
  border-color: #c9dad1;
}
.upload-panel {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1.25rem;
  margin-top: 1.65rem;
}
.upload-panel > div { min-width: 0; }
.upload-panel input { max-width: 100%; margin-block: .65rem .4rem; }
.upload-panel small { display: block; }
progress { width: 100%; accent-color: var(--accent); }
.status:empty { margin-block: 0; }
.status { font-size: .95rem; }
.status.error { color: #942b26; }
.pairing {
  display: grid;
  gap: .25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: .85rem 1rem;
  font-size: .9rem;
}
.pairing strong {
  color: var(--accent);
  font: 700 1.65rem ui-monospace, monospace;
  letter-spacing: .12em;
}
