:root {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  color: #182836;
  background: #f4f7fa;
  --line: #dce4ec;
  --accent: #17664e;
  --muted: #526478;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
.shell { width: min(100% - 2rem, 34rem); margin: clamp(1.4rem, 7dvh, 4.5rem) auto; }
.brand { color: inherit; display: inline-flex; align-items: center; gap: .7rem; font-size: 1.1rem; font-weight: 700; text-decoration: none; margin-bottom: 1.25rem; }
.brand svg { color: var(--accent); }
.card { background: #fff; border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 4vw, 2rem); box-shadow: 0 10px 32px #1b3f6112; }
h1 { margin: 0 0 .35rem; font-size: clamp(1.45rem, 5vw, 1.8rem); line-height: 1.25; }
h2 { font-size: 1rem; margin: 0 0 .45rem; }
p { margin: 0 0 .85rem; color: var(--muted); }
form { display: grid; gap: .75rem; }
label { display: grid; gap: .25rem; font-size: .92rem; font-weight: 650; }
input, select, button, .button { font: inherit; }
input, select { width: 100%; min-height: 44px; padding: .55rem .68rem; background: #fff; color: inherit; border: 1px solid #c5d1dd; border-radius: .4rem; }
button, .button { background: #fff; color: #22394d; border: 1px solid #c5d1dd; min-height: 44px; padding: .5rem .73rem; border-radius: .45rem; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
button:hover, .button:hover { background: #f3f7f8; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .button.primary:hover { background: #135641; }
:focus-visible { outline: 3px solid #39886e; outline-offset: 3px; }
[hidden] { display: none !important; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .8rem; }
.actions.stacked > * { flex: 1 0 100%; }
.qr { display: block; width: min(100%, 245px); height: auto; margin: .6rem auto; border-radius: .35rem; }
.notice { padding: .55rem .7rem; border-radius: .4rem; background: #edf6f2; color: #14543c; margin-bottom: .85rem; }
.notice.error { color: #841e25; background: #f9e9eb; }
.recovery { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: .4rem; padding: .65rem; background: #f2f6f8; margin: 0; list-style: none; border-radius: .4rem; }
code { color: #182836; overflow-wrap: anywhere; }
form .helper { font-weight: 400; color: var(--muted); font-size: .82rem; }
