:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #16233a;
  background: #f4f7fc;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 36px 16px 56px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(37, 84, 212, 0.08), transparent 48%),
    radial-gradient(ellipse at 88% 12%, rgba(99, 102, 241, 0.06), transparent 42%),
    #f4f7fc;
}
main { max-width: 720px; margin: auto; }
header {
  margin-bottom: 18px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid #e1e8f5;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 6px 24px rgba(20, 35, 62, 0.045);
}
header > p:first-child {
  margin: 0 0 6px;
  letter-spacing: 0.14em;
  font-size: 11.5px;
  font-weight: 700;
  color: #2554d4;
}
h1 {
  margin: 0 0 8px;
  font-size: clamp(23px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #132138;
}
h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 750;
  color: #16243b;
}
h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  color: #1d3150;
}
p, footer { line-height: 1.65; }
#product-description { margin: 0 0 6px; font-size: 14px; color: #364966; font-weight: 600; }
#product-scope { margin: 0 0 14px; font-size: 12.5px; color: #677993; }
header nav { margin-top: 12px; }
header nav p {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #edf2fa;
  border: 1px solid #dfe7f4;
  font-size: 12.5px;
  color: #7c8da6;
}
header nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 8px;
  color: #3f5270;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
header nav a:hover {
  background: #ffffff;
  color: #2554d4;
}
header nav a[aria-current="page"] {
  background: #2554d4;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 84, 212, 0.24);
}
#notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #eef4ff;
  border: 1px solid #cdddfa;
  color: #20449e;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
}
#notice.error {
  background: #fff2f4;
  border-color: #f3c4cb;
  color: #b42334;
}
section, details {
  margin: 14px 0;
  padding: 22px 24px;
  border: 1px solid #e1e8f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(20, 35, 62, 0.035);
}
section section {
  padding: 0;
  border: 0;
  box-shadow: none;
}
details {
  padding: 16px 20px;
  background: #fbfdff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
details[open] {
  background: #ffffff;
  border-color: #c7d7f4;
}
summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  color: #1f3968;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "▸";
  display: inline-block;
  color: #2554d4;
  transition: transform 0.15s ease;
}
details[open] > summary { margin-bottom: 16px; }
details[open] > summary::before { transform: rotate(90deg); }
form { display: grid; gap: 14px; }
form p { margin: 0; color: #5f708a; font-size: 13px; }
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: #364966;
}
input, select, button {
  font: inherit;
  min-height: 42px;
  border: 1px solid #d4dfef;
  border-radius: 10px;
  padding: 9px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input, select {
  background: #ffffff;
  color: #16233a;
  font-size: 14px;
}
input:focus, select:focus {
  outline: none;
  border-color: #2554d4;
  box-shadow: 0 0 0 3px rgba(37, 84, 212, 0.14);
}
button {
  background: #2554d4;
  border-color: #2554d4;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 84, 212, 0.2);
}
button:hover:not(:disabled) {
  background: #1d44b4;
  border-color: #1d44b4;
}
button:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
button[type=button] {
  background: #f0f5ff;
  border-color: #c8d9f8;
  color: #2149b8;
  box-shadow: none;
}
button[type=button]:hover:not(:disabled) {
  background: #e3edff;
  border-color: #9cb8f4;
}
#member > button { margin: 8px 8px 8px 0; padding: 8px 16px; min-height: 38px; font-size: 13px; }
#logout { background: #fff5f6; border-color: #f0c9cd; color: #b42334; box-shadow: none; }
#logout:hover:not(:disabled) { background: #ffe5e8; border-color: #e49aa3; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #93b7f4;
  outline-offset: 2px;
}
.error { color: #b42334; }
a { color: #2554d4; text-underline-offset: 3px; }
#orders p {
  font-size: 13px;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 10px;
  background: #f7faff;
  border: 1px solid #e4ecf8;
  overflow-wrap: anywhere;
}
#checkout {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: #2554d4;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  margin: 14px 0;
}
#qr {
  display: block;
  max-width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e1e8f5;
  background: #ffffff;
  object-fit: contain;
}
.password-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
}
.password-field > input { flex: 1 1 0; width: 0; min-width: 0; }
.password-field > .password-toggle { flex: none; min-width: 58px; padding: 8px 12px; white-space: nowrap; }
.password-rule, .password-feedback {
  font-size: 12px;
  line-height: 1.6;
  color: #6b7d97;
  overflow-wrap: anywhere;
}
form .password-rule, form .password-feedback { margin-top: 6px; }
.password-feedback { font-variant-numeric: tabular-nums; }
footer {
  font-size: 12px;
  color: #74849c;
  padding: 16px 4px;
  text-align: center;
}
[hidden] { display: none !important; }
@media (max-width: 560px) {
  body { padding: 18px 12px 40px; }
  header, section { padding: 18px 16px; }
  details { padding: 14px 16px; }
}
