:root {
  color-scheme: light;
  font-family: ui-serif, Georgia, "Noto Serif TC", serif;
  color: #2e3933;
  background: #f7f4eb;
  --green: #365d47;
  --line: #cdd4c6;
  --warm: #98612d;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header,
main,
footer {
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding: 28px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
.eyebrow,
.step {
  font:
    12px/1.6 ui-sans-serif,
    sans-serif;
  letter-spacing: 0.14em;
}
.eyebrow {
  margin-top: 32px;
}
.step {
  color: var(--warm);
  margin-bottom: 8px;
}
h1 {
  font-size: clamp(38px, 8vw, 66px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 20px 0 24px;
}
h2 {
  font-size: clamp(23px, 4vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  margin: 8px 0 18px;
}
p {
  line-height: 1.9;
}
.lead {
  font-size: 21px;
}
.privacy-note {
  border-left: 3px solid #b78350;
  padding-left: 16px;
  font-size: 16px;
  color: #515d50;
}
section {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 24px;
}
label {
  display: block;
  margin-top: 20px;
  font-size: 17px;
}
input[type="password"],
input[type="text"],
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  font:
    16px/1.6 ui-monospace,
    SFMono-Regular,
    monospace;
  padding: 13px 14px;
  margin-top: 8px;
  border: 1px solid #9da994;
  border-radius: 8px;
  background: #fffdf6;
  color: #253d2f;
}
input:disabled {
  color: #5c685c;
  background: #eeeee4;
}
button {
  font:
    16px/1.5 ui-sans-serif,
    sans-serif;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 22px;
  margin-top: 18px;
  border: 1px solid var(--green);
  border-radius: 28px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}
button:disabled {
  background: #e4e7dc;
  color: #687161;
  border-color: #c8cdbf;
  cursor: default;
}
.secondary {
  background: #fffdf6;
  color: var(--green);
}
.text-button {
  background: transparent;
  color: var(--green);
  border-color: transparent;
  padding-left: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font:
    16px/1.8 ui-sans-serif,
    sans-serif;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 5px 0 0;
  accent-color: var(--green);
}
.backup {
  padding: 16px;
  background: #eeeee1;
  border-radius: 10px;
}
.hint {
  font:
    15px/1.9 ui-sans-serif,
    sans-serif;
  color: #53604f;
}
.identity-meta {
  margin: 28px 0 0;
  padding: 20px;
  background: #ebeede;
  border-radius: 12px;
}
.identity-meta dt {
  font:
    13px/1.8 ui-sans-serif,
    sans-serif;
  color: #53604f;
}
.identity-meta dd {
  font:
    16px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  margin: 4px 0 16px;
}
.identity-meta dd:last-child {
  margin-bottom: 0;
}
.status {
  font:
    16px/1.9 ui-sans-serif,
    sans-serif;
  color: #284e37;
  overflow-wrap: anywhere;
  min-height: 30px;
  margin-top: 24px;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 10px;
  background: #fffdf6;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ac6f32;
  outline-offset: 4px;
}
footer {
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
@media (max-width: 480px) {
  header,
  main,
  footer {
    padding: 20px;
  }
  header {
    font-size: 16px;
  }
  .lead {
    font-size: 19px;
  }
  button:not(.text-button) {
    width: 100%;
  }
  .identity-meta {
    padding: 16px;
  }
  h1 {
    margin-top: 24px;
  }
  section {
    margin-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

fieldset {
  min-width: 0;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
legend {
  font: 16px/1.8 ui-sans-serif, sans-serif;
  padding: 0 6px;
}
.check { min-height: 44px; }

#agent-continuation { resize: vertical; overflow-wrap: anywhere; }
