:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222b36;
  background: #eef2f5;
  --muted: #596777;
  --line: #e2e8ed;
  --accent: #367f6e;
  --surface: #fff;
  --soft: #f3f6f8;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 36px 20px; }
.member-card { max-width: 940px; margin: 0 auto; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.member-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.subscription-note, .checkout { min-width: 0; }
.checkout { padding-left: 32px; border-left: 1px solid var(--line); }
h1, h2 { margin: 0 0 18px; font-size: 1.5rem; line-height: 1.3; }
h2 { font-size: 1.125rem; }
p { margin: 0 0 16px; font-size: 1rem; line-height: 1.8; }
.subscription-note > p:last-child { margin-bottom: 0; }
.price-label { margin-bottom: 4px; }
.pricing-section { margin-top: 24px; }
.pricing-section h2 { margin-bottom: 12px; }
.prices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.price-card { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.price-card h3 { margin: 0 0 12px; font-size: 1rem; }
.price-card h3 span { display: inline-block; margin-left: 6px; font-size: .875rem; font-weight: 400; color: var(--muted); }
.original-price { color: var(--muted); font-size: .875rem; }
.current-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.current-price > span { font-size: .875rem; color: var(--muted); }
.prices p { margin: 0; }
.prices strong { font-size: 1.5rem; color: var(--accent); font-weight: 700; }
.hint { color: var(--muted); font-size: .875rem; line-height: 1.65; margin: 10px 0; }
.billing-note { margin-top: 18px; }
.notice { font-size: .875rem; line-height: 1.6; padding: 10px 12px; margin-bottom: 14px; border-radius: 6px; background: var(--soft); overflow-wrap: anywhere; }
.notice.error { color: #a42c2c; background: #fff0f0; }
button, .primary-link { display: block; width: 100%; padding: 12px 14px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; margin-top: 10px; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:hover:not(:disabled), .primary-link:hover { filter: brightness(.92); }
.secondary { background: var(--soft); color: inherit; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .875rem; color: var(--muted); }
.text-button { width: auto; margin: 0; padding: 5px 0; background: none; color: var(--accent); font-size: .875rem; font-weight: 400; }
code { display: block; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.6; padding: 6px 0; }
#expiry { font-size: .875rem; color: var(--muted); margin: 6px 0 16px; }
#enter { margin-bottom: 16px; }
details { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
details p { font-size: .875rem; margin: 12px 0 4px; line-height: 1.6; }
summary { cursor: pointer; font-size: .875rem; line-height: 1.6; color: var(--muted); }
label, footer { font-size: .875rem; }
input, select { width: 100%; font: inherit; font-size: .9375rem; padding: 10px; border: 1px solid #b8c5d1; border-radius: 6px; margin: 8px 0 0; background: var(--surface); color: inherit; }
select { display: block; }
footer { margin-top: 18px; color: var(--muted); }
a { color: var(--accent); }
.order { font-size: .875rem; line-height: 1.6; margin-top: 12px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #497bdd; outline-offset: 3px; }
@media (max-width: 720px) {
  body { padding: 16px 12px; }
  .member-card { padding: 22px; }
  .member-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .checkout { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; color: #e4ebf3; background: #11171d; --muted: #adb9c7; --line: #35404b; --accent: #80cbb4; --surface: #1b232c; --soft: #28333f; }
  button, .primary-link { background: #367f6e; color: #fff; }
  .text-button { background: none; color: var(--accent); }
  .secondary { background: var(--soft); }
  .notice.error { background: #432929; color: #ffc6c6; }
}
