:root {
  font-family: system-ui, sans-serif;
  color-scheme: light dark;
  --accent: #0f7a5c;
  --bg: #f5f7f6;
  --panel: #fff;
  --ink: #172d27;
  --muted: #53655e;
  --line: #d3dfda;
  --error: #9a3028;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px max(16px, calc((100% - 960px) / 2));
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
header nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.brand {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-weight: 500;
  color: var(--muted);
}
main {
  max-width: 850px;
  margin: 24px auto;
  padding: 0 16px;
  min-height: 65vh;
}
h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.25;
}
h2 {
  font-size: 1.25rem;
}
h1,
h2,
h3 {
  margin: 0 0 12px;
}
p {
  margin: 0 0 12px;
}
section,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.narrow {
  max-width: 480px;
  margin-inline: auto;
}
form {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 600;
}
input,
select,
textarea,
button {
  font: inherit;
  min-width: 0;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}
button,
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 9px 15px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
button.secondary,
.secondary {
  background: var(--panel);
  color: var(--accent);
  border-color: var(--line);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.danger {
  background: var(--error);
  border-color: var(--error);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.muted {
  color: var(--muted);
}
.error {
  color: var(--error);
  font-weight: 600;
}
.status {
  font-weight: 700;
  color: var(--accent);
}
.item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child {
  border: 0;
}
img {
  max-width: 100%;
  height: auto;
}
.qr {
  width: 220px;
}
.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.only-phone {
  display: none;
}
@media (max-width: 700px), (pointer: coarse) {
  .only-phone {
    display: inline-block;
    margin: 4px 0 12px;
  }
  .only-desktop {
    display: none;
  }
}
.screenshot {
  max-width: 360px;
  max-height: 420px;
  object-fit: contain;
}
footer {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14201c;
    --panel: #1c2c26;
    --ink: #e5f0ea;
    --muted: #b0c5bb;
    --line: #3c5147;
    --accent: #57c4a0;
    --error: #ffaaa2;
  }
  button,
  .button {
    color: #102820;
  }
  .danger {
    color: #39201b;
  }
}
@media (max-width: 420px) {
  header nav {
    order: 3;
    flex-basis: 100%;
  }
  section,
  .panel {
    padding: 14px;
  }
  .actions > * {
    max-width: 100%;
  }
}
