:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #252a2d;
  background: #fff;
  line-height: 1.8;
  letter-spacing: 0;
  --accent: #176459;
  --border: #d5dcda;
  --danger: #ae263b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #c44c65;
  outline-offset: 4px;
}
.skip-link { position: absolute; top: -100px; left: 16px; padding: 8px; background: #fff; }
.skip-link:focus { top: 8px; }
.site-header, main, footer { width: min(100% - 40px, 800px); margin-inline: auto; }
.site-header { padding-block: 24px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; text-decoration: none; color: inherit; }
.brand img { width: 32px; height: 32px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
nav a[aria-current="page"] { color: #252a2d; font-weight: 700; text-decoration-thickness: 2px; }
main { padding-block: 32px 48px; }
h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.4; }
h2 { margin: 32px 0 12px; font-size: 21px; line-height: 1.5; }
p { margin: 12px 0; }
.version, .hint { color: #53605b; font-size: 14px; }
.contents { border-block: 1px solid var(--border); margin-block: 24px; padding-block: 12px; }
.notice { border-left: 4px solid var(--accent); background: #f1f7f5; padding: 12px 20px; margin-block: 24px; }
.notice h2 { margin-top: 0; }
.warning { border-left-color: var(--danger); background: #fff3f4; }
ol, ul { padding-inline-start: 26px; }
li { margin-block: 8px; }
form { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 8px; }
label { display: block; margin-block: 16px 6px; font-weight: 600; }
input[type="email"], input[type="password"], input[type="text"] {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #7d8d87;
  border-radius: 4px;
  padding: 12px;
  color: inherit;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; cursor: pointer; }
input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 6px; accent-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
button {
  border: 1px solid var(--accent);
  border-radius: 4px;
  min-height: 48px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  white-space: normal;
}
button.secondary { color: var(--accent); background: #fff; }
button.danger { background: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .5; cursor: not-allowed; }
button:not(:disabled):hover { filter: brightness(.9); }
#status { min-height: 2em; }
#status[data-error="true"] { color: #9a2034; }
footer { padding-block: 24px 40px; border-top: 1px solid var(--border); font-size: 14px; }
@media (max-width: 480px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  main { padding-top: 24px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  .notice { padding-inline: 16px; }
  .actions { flex-direction: column; align-items: stretch; }
  nav { gap: 8px 18px; }
}
@media print {
  .site-header, footer, .contents, .skip-link, form { display: none; }
  main { width: 100%; padding: 0; }
  h2 { break-after: avoid; }
}
