.member-page, .member-report { display:grid; gap:18px; }
.member-page .member-hero { padding:26px; background:linear-gradient(120deg,#e9e2d3,#fbf9f2 75%); border-color:#b8aa8a; }
.member-page .member-hero h1 { font-family:var(--font-heading); margin:8px 0 10px; font-size:clamp(25px,4vw,34px); }
.member-hero p + p { margin-top:10px; }
.member-join-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:18px; align-items:start; }
.member-page .member-price { font-family:var(--font-heading); color:var(--green); font-size:34px; font-weight:700; margin:12px 0; }
.member-price span { font:400 14px var(--font-body); color:var(--ink-soft); }
.member-benefits { padding-left:20px; margin:20px 0; color:var(--ink); font-size:14px; line-height:1.9; }
.member-page .member-auth .field { display:grid; gap:7px; margin:16px 0; font-size:14px; }
.member-auth input { min-height:46px; width:100%; border:1px solid var(--line); border-radius:8px; background:#fffefa; padding:10px 12px; color:var(--ink); }
.member-page .button-primary { background:var(--green); color:#fffefa; min-height:44px; }
.member-page button:disabled { cursor:not-allowed; opacity:.6; transform:none; }
.member-page button:focus-visible, .member-page input:focus-visible, .member-page summary:focus-visible { outline:3px solid var(--gold-dark); outline-offset:3px; }
.member-auth-tabs { display:flex; gap:8px; margin-top:14px; }
.member-auth-tabs button { min-height:42px; padding:8px 20px; border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--ink); }
.member-auth-tabs [aria-pressed="true"] { background:var(--gold-pale); border-color:var(--gold-dark); }
.member-text-button { display:inline-block; min-height:42px; padding:8px 5px; margin-right:12px; border:0; background:transparent; color:var(--gold-dark); text-decoration:underline; text-underline-offset:4px; font-size:13px; }
.member-page .member-small, .member-auth small { color:var(--ink-soft); font-size:12px; line-height:1.8; }
.member-page .member-small { margin-top:10px; }
.member-page .member-account { border-top:1px solid var(--line); padding-top:14px; overflow-wrap:anywhere; }
.member-payment-methods { display:grid; gap:9px; margin-top:14px; }
.member-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }
.member-products button { display:grid; gap:8px; padding:14px 10px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--surface); text-align:left; min-width:0; line-height:1.6; }
.member-products [aria-pressed="true"] { border-color:var(--green); background:#e6eee1; }
.member-products span { font-size:12px; }
.member-payment-methods .button { min-height:46px; font-size:14px; }
.member-page .member-error, .member-page .member-notice { padding:12px 16px; border-radius:8px; margin:0; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.member-error { background:#f5e8e1; border:1px solid #a56a50; color:#713a24; }
.member-notice { background:#e9eee4; border:1px solid #a8b59f; color:#263d35; }
.member-messages:empty { display:none; }
.member-account-bar { display:flex; justify-content:space-between; align-items:center; gap:14px; overflow-wrap:anywhere; }
.member-systems { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.member-subtabs { position:relative; display:flex; gap:7px; width:100%; min-width:0; overflow-x:auto; padding:6px 2px 10px; scrollbar-width:thin; }
.member-subtabs [role="tab"] { display:grid; justify-items:center; gap:9px; flex:0 0 108px; min-height:96px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); white-space:nowrap; font:600 14px var(--font-body); box-shadow:0 3px 8px #263d3508; }
.member-subtabs [aria-selected="true"] { color:#fffaf0; background:var(--green); border-color:var(--green); }
.member-icon { display:block; width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.member-tab-symbol { display:grid; place-items:center; width:36px; height:36px; border:1px solid #b5a17b70; border-radius:11px; background:#b5a17b14; }
.member-subtabs [aria-selected="true"] .member-tab-symbol { border-color:#fffaf060; background:#fffaf012; }
#app .member-page .member-card-heading { display:flex; align-items:center; gap:12px; margin:12px 0 16px; padding:12px; border:1px solid #b5a17b65; border-radius:10px; background:#f2ecdf; line-height:1.5; font-size:19px; }
.member-heading-symbol { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:11px; background:#e6dcc8; color:var(--gold-dark); }
.member-card-heading > span:last-child { min-width:0; overflow-wrap:anywhere; }
.member-system-details,.member-renewal { padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--surface); font-size:13px; line-height:1.9; }
.member-system-details > summary,.member-renewal > summary { min-height:32px; cursor:pointer; color:var(--gold-dark); font-weight:600; }
.member-system-details[open] > summary,.member-renewal[open] > summary { margin-bottom:12px; }
.member-topic { scroll-margin-top:110px; }
.member-page .member-insight { font-size:16px; color:var(--ink); margin:14px 0; }
.member-topic details { margin:18px 0; padding:12px 14px; background:var(--surface-muted); border-radius:8px; font-size:13px; line-height:1.8; }
.member-topic summary { cursor:pointer; }
.member-topic details ul { padding-left:20px; }
.member-branches { display:grid; gap:12px; margin-top:16px; }
.member-branches > details { padding:14px; margin:0; border-left:3px solid var(--gold); background:#f5f1e7; border-radius:0 8px 8px 0; }
.member-branches > details > summary { font-size:14px; font-weight:600; }
.member-branches > details > summary span { display:block; font-size:12px; font-weight:400; color:var(--gold-dark); margin-top:5px; }
.member-branches > details[open] > summary { margin-bottom:12px; }
.member-page .member-condition { color:var(--gold-dark); font-size:12px; margin-bottom:8px; }
.member-page .member-action { margin-top:10px; }
.member-action strong { display:block; color:var(--ink); }
.member-page .member-question { margin-top:20px; padding-top:15px; border-top:1px solid var(--line); color:var(--green); font-weight:600; }
.member-service-note { margin-top:10px; }
.member-interview { scroll-margin-top:20px; }
.interview-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0 0 24px; padding:0; list-style:none; }
.interview-steps li { display:grid; justify-items:center; gap:6px; color:var(--ink-soft); text-align:center; font-size:12px; }
.interview-steps li span { display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; }
.interview-steps [aria-current] { color:var(--green); font-weight:700; }
.interview-steps [aria-current] span { color:white; background:var(--green); border-color:var(--green); }
.interview-fields { border:0; padding:0; margin:0; min-width:0; }
.interview-fields legend { font-size:18px; font-family:var(--font-heading); margin-bottom:10px; color:var(--ink); font-weight:700; }
.interview-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:16px 0; }
.interview-choice { display:flex; align-items:center; gap:10px; min-height:54px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fbf9f2; font-size:14px; line-height:1.7; cursor:pointer; }
.interview-choice:has(input:checked) { background:#e8eee5; border-color:var(--green); }
.interview-choice input { width:18px; height:18px; flex:0 0 18px; accent-color:var(--green); }
.interview-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; flex-wrap:wrap; }
.interview-note { display:grid; gap:8px; font-size:14px; }
.interview-note textarea { width:100%; max-width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; font:inherit; line-height:1.8; background:#fffefa; color:var(--ink); }
.script-logic { display:grid; gap:10px; list-style:none; padding:0; margin:18px 0; }
.script-logic li { padding:14px; border-left:3px solid var(--gold); border-radius:0 8px 8px 0; background:#f2ecdf; }
.script-logic li strong { color:var(--gold-dark); font-size:14px; }
.script-facts { padding:14px; border:1px solid var(--line); border-radius:10px; margin:18px 0; background:#eff2eb; font-size:13px; line-height:1.9; }
.script-facts ul,.script-calibration ul { padding-left:20px; }
#membership-open { white-space:nowrap; }
@media(max-width:760px) {
  .member-join-grid,.member-systems { grid-template-columns:1fr; }
  .member-page .member-hero { padding:20px; }
  .member-account-bar { align-items:start; }
  .interview-choices { grid-template-columns:1fr; }
  #membership-open { padding:0 8px; font-size:11px; }
  .top-actions { gap:4px; flex-wrap:wrap; justify-content:flex-end; }
}
