:root {
  color-scheme: light;
  font-family: 'DM Sans', 'PingFang TC', 'Noto Sans TC', system-ui, sans-serif;
  color: #172e2a;
  background: #f7f8f4;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  border-bottom: 1px solid #d5e0d8;
  background: #fcfdf9;
}
.mast {
  max-width: 760px;
  margin: auto;
  padding: 16px 26px;
  display: flex;
  gap: 12px;
  align-items: center;
  letter-spacing: 0.04em;
}
.mark {
  width: 26px;
  height: 26px;
  border: 7px solid #167256;
  border-radius: 8px 8px 8px 2px;
}
main {
  max-width: 660px;
  margin: clamp(20px, 6vh, 70px) auto;
  padding: clamp(22px, 5vw, 44px);
  background: #fff;
  border: 1px solid #d5e0d8;
  border-radius: 16px;
  box-shadow: 0 8px 30px #1d3b2c0b;
}
h1 {
  font-size: clamp(1.65rem, 5vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
p {
  margin: 10px 0 18px;
}
strong {
  font-weight: 650;
}
form {
  margin: 16px 0 0;
}
label:not(.check) {
  display: block;
  font-weight: 650;
  margin: 16px 0 6px;
}
input:not([type='hidden']):not([type='checkbox']),
select {
  width: 100%;
  border: 1px solid #93a59c;
  background: white;
  color: inherit;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  min-height: 46px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.check input {
  width: 19px;
  height: 19px;
  accent-color: #145e49;
}
button,
.button {
  display: inline-block;
  border: 1px solid #12543f;
  background: #135c46;
  border-radius: 7px;
  padding: 10px 20px;
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #0b4935;
}
button.secondary,
.button.secondary {
  background: white;
  color: #174b39;
  border-color: #a8b8af;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d79827;
  outline-offset: 3px;
}
a {
  color: #075e45;
}
details {
  padding: 10px 0;
  border-bottom: 1px solid #e2e9e3;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.hint,
small {
  color: #526557;
}
.notice,
output {
  display: block;
  background: #edf6ee;
  border-left: 3px solid #418963;
  padding: 12px 16px;
  margin: 16px 0;
}
.error {
  color: #78281d;
  background: #fff1e9;
  padding: 12px;
  border-radius: 6px;
}
code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
}
.otp {
  font-size: 1.6rem;
  letter-spacing: 0.25em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
hr {
  border: 0;
  border-top: 1px solid #e0e6df;
  margin: 22px 0;
}
@media (max-width: 700px) {
  main {
    margin: 15px 12px;
  }
  .mast {
    padding: 13px 20px;
  }
}

.admin.workspace main {
  max-width: 900px;
}
.admin nav,
.admin-search,
.member-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
.admin nav {
  padding: 0 0 16px;
  border-bottom: 1px solid #dce6df;
  margin-bottom: 20px;
}
.admin nav form {
  margin: 0;
}
.admin nav button {
  padding: 4px 12px;
}
.admin nav .operator {
  margin-inline-start: auto;
  color: #53665a;
  overflow-wrap: anywhere;
}
.admin-search {
  align-items: stretch;
  gap: 8px;
}
.admin-search input {
  flex: 1 1 190px;
  min-width: 0;
  width: auto;
}
.admin-qr {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}
.admin h2 {
  font-size: 1.22rem;
  margin-top: 30px;
}
.admin h2 small {
  font-size: 0.86rem;
  font-weight: 450;
}
.admin .table-wrap {
  overflow-x: auto;
}
.admin table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.admin th,
.admin td {
  text-align: start;
  border-bottom: 1px solid #dce6df;
  padding: 11px 8px;
}
.admin th,
.member-facts dt {
  font-size: 0.85rem;
  color: #526557;
}
.member-facts {
  align-items: start;
  padding: 14px 0;
}
.member-facts dd {
  margin: 4px 0 0;
  font-weight: 650;
}
