:root {
  color-scheme: light;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #192c22;
  background: #f3f7f4;
  line-height: 1.55;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; padding: clamp(16px, 5vw, 48px); }

main {
  max-width: 520px;
  margin: clamp(16px, 8vh, 80px) auto 0;
  padding: clamp(20px, 6vw, 38px);
  background: #fff;
  border: 1px solid #d8e5dc;
  border-radius: 20px;
}

h1 { margin: 0 0 10px; font-size: clamp(26px, 7vw, 36px); line-height: 1.2; }
p { margin: 0 0 20px; color: #496050; }
form, #result { display: grid; gap: 8px; }
#result { margin-top: 20px; }
label { font-weight: 650; }

input {
  width: 100%;
  min-width: 0;
  border: 1px solid #9aafa2;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: inherit;
}

button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid #146044;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  color: #fff;
  background: #146044;
  cursor: pointer;
}

.secondary { background: #fff; color: #146044; }
:focus-visible { outline: 3px solid #306bbb; outline-offset: 2px; }
#open > .button { display: flex; }
#back { display: inline-block; margin-top: 12px; color: #146044; }
#status { margin: 14px 0 0; }
