.member-page {
  --ink: #242b27; --muted: #5d6861; --line: #dce0d8; --paper: #fcfcf8;
  --accent: #234b3c; --tint: #e5eee4; --serif: Georgia, Cambria, "Times New Roman", serif;
  margin: 0; color: var(--ink); background: var(--paper);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.member-page *, .member-page *::before, .member-page *::after {box-sizing: border-box}
.member-page [hidden] {display: none !important}
.member-page a {color: inherit; text-underline-offset: .23em}
.member-page a:hover {color: var(--accent)}
.member-page :is(a, button, input, textarea, select, summary):focus-visible {outline: 3px solid #698d77; outline-offset: 3px}
.member-page :is(h1,h2,h3,p,ul,ol) {margin: 0}
.member-page h1, .member-page h2, .member-page a, .member-page p, .member-page strong, .member-page label {overflow-wrap: anywhere}
.member-page h1, .member-page h2 {font-family: var(--serif); font-weight: 500; text-wrap: pretty}
.member-page h1 {font-size: clamp(2.4rem,5vw,4.2rem); line-height: 1.02; letter-spacing: -.05em}
.member-page h2 {font-size: clamp(1.55rem,2.8vw,2.15rem); line-height: 1.15; letter-spacing: -.035em}
.member-shell {width: min(100% - clamp(32px,8vw,112px),1240px); margin-inline: auto}
.member-head {background: #fff; border-bottom: 1px solid var(--line)}
.member-head .member-shell {min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 10px}
.member-brand {display: flex; gap: 10px; align-items: center; min-width: 0; text-decoration: none; font: 500 clamp(1.4rem,3vw,2.1rem)/1.05 var(--serif); letter-spacing: -.05em}
.member-brand img {object-fit: contain; width: auto; height: auto; max-width: min(100px,20vw); max-height: 40px}
.member-icon {width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle}
.member-back {display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; max-width: 48%; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; text-decoration: none; font-weight: 600}
.member-back .member-icon {width: 16px}
.member-auth {display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); max-width: 1120px; margin-block: clamp(30px,6vh,76px); background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden}
.member-auth-form {padding: clamp(25px,5vw,82px); align-self: center}
.member-auth h1 {margin-bottom: 31px}
.member-auth .member-switch {display: flex; flex-wrap: wrap; justify-content: start; align-items: baseline; gap: 4px 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .91rem}
.member-switch a, .member-forgot a {font-weight: 650; color: var(--accent)}
.member-forgot {text-align: end; font-size: .86rem; margin-top: -6px}
.member-editorial {position: relative; min-height: 510px; isolation: isolate; display: flex; align-items: end; padding: clamp(24px,4vw,60px); overflow: hidden; background: #3d5146; color: white}
.member-editorial::after {content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(15,28,23,.94), rgba(20,32,24,.26) 58%,transparent 85%); z-index: -1}
.member-editorial img {width: 100%; height: 100%; object-fit: cover; object-position: 62% center; position: absolute; inset: 0; z-index: -2}
.member-editorial:not(.with-photo) {background: repeating-linear-gradient(120deg,transparent 0 54px,rgba(255,255,255,.065) 54px 55px),#374d40}
.member-editorial-copy {max-width: 26rem}
.member-editorial h2 {font-size: clamp(2.2rem,4.4vw,4rem); letter-spacing: -.055em}
.member-editorial p {max-width: 24rem; margin-top: 12px; color: #f4f5ec; font-size: 1rem; line-height: 1.6}
.member-workspace {display: grid; grid-template-columns: minmax(180px,225px) minmax(0,1fr); gap: clamp(24px,4vw,64px); padding-block: clamp(26px,4.5vw,62px) 76px; align-items: start}
.member-body, .member-side {min-width: 0}
.member-side {background: #fff; border: 1px solid var(--line); padding: 12px; border-radius: 14px}
.member-identity {display: flex; align-items: center; gap: 11px; padding: 8px 4px 17px; border-bottom: 1px solid var(--line)}
.member-avatar {display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; border-radius: 50%; color: var(--accent); background: var(--tint); font: 500 1.2rem var(--serif)}
.member-identity div {min-width: 0}
.member-identity strong, .member-identity div span {display: block; line-height: 1.4}
.member-identity div span {font-size: .76rem; color: var(--muted); overflow-wrap: anywhere}
.member-nav {display: grid; gap: 2px; padding-top: 12px}
.member-nav a, .member-nav button, .member-page button.member-menu-toggle {display: flex; gap: 10px; align-items: center; padding: 10px 9px; width: 100%; color: var(--ink); background: transparent; border: 0; border-radius: 7px; text-align: start; text-decoration: none; font: 540 .9rem/1.4 system-ui; cursor: pointer}
.member-nav a[aria-current], .member-nav a:hover, .member-nav button:hover {color: var(--accent); background: var(--tint)}
.member-nav a[aria-current] {font-weight: 740}
.member-nav .member-icon {width: 18px; height: 18px}
.member-extra, .member-nav form {margin: 9px 0 0; padding-top: 9px; border-top: 1px solid var(--line)}
.member-page .member-menu-toggle:not([hidden]) {display: none}
.member-body>h1 {margin: 5px 0 25px}
.member-welcome {display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; overflow: hidden; border-radius: 14px; background: #dfe8dc; color: #203e30}
.member-welcome>div {align-self: center; padding: clamp(20px,3.5vw,42px)}
.member-welcome p {font-size: .87rem; color: #3c5a48; margin-bottom: 9px; font-weight: 630}
.member-welcome h1 {font-size: clamp(2rem,3.8vw,3.6rem)}
.member-welcome img {width: clamp(110px,14vw,205px); height: 100%; min-height: 142px; max-height: 210px; object-fit: cover; object-position: 65% center}
.member-stats {display: grid; grid-template-columns: repeat(auto-fit,minmax(min(140px,100%),1fr)); gap: 10px; margin: 16px 0 22px}
.member-stats a {display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 6px; padding: clamp(12px,1.5vw,20px); background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; min-width: 0}
.member-stats a:hover {border-color: #8da490}
.member-stat-icon {grid-column: 2; grid-row: 1; color: var(--accent)} .member-stats strong {grid-column: 1; grid-row: 1; font-size: 1.6rem; font-weight: 630; line-height: 1.1; letter-spacing: -.04em}
.member-stats a>span:last-child {grid-column: 1/-1; color: var(--muted); font-size: .83rem}
.member-card {background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(17px,2.5vw,32px); min-width: 0}
.member-card+.member-card, .member-actions+.member-card {margin-top: 16px}
.member-card h2 {margin-bottom: 16px}
.member-grid {display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); align-items: start; gap: 16px}
.member-grid>.member-card {margin: 0}
.member-form {display: grid; gap: 17px}
.member-form label, .member-field {display: grid; gap: 6px}
.member-form label {font-weight: 610; font-size: .89rem}
.member-field small {color: var(--muted); font-size: .82rem}
.member-form input:not([type=checkbox]), .member-form textarea, .member-form select {width: 100%; min-width: 0; padding: 12px 14px; background: #fff; color: var(--ink); border: 1px solid #b4bdb4; border-radius: 8px; font: 400 16px/1.45 system-ui}
.member-form textarea {resize: vertical; min-height: 115px}
.member-page button, .member-button {display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 19px; min-height: 43px; background: var(--accent); color: white; border: 1px solid var(--accent); border-radius: 8px; cursor: pointer; font: 625 .92rem/1.45 system-ui; text-decoration: none; width: fit-content}
.member-form>button:hover, .member-actions button:hover {background: #143b2e; color: white}
.member-auth .member-form>button {width: 100%}
.member-password {position: relative; display: block}
.member-password input[type=password],.member-password input[type=text] {padding-inline-end: 54px}
.member-form .member-reveal {display: grid; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); place-items: center; width: 40px; height: 40px; color: var(--muted); cursor: pointer; border-radius: 6px}
.member-reveal input {position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer}
.member-reveal:focus-within {outline: 2px solid #698d77}
.member-reveal:has(:checked) {color: var(--accent); background: var(--tint)}
.member-page .member-note {margin: 0 0 18px; border-radius: 6px; border-inline-start: 3px solid #538369; padding: 11px 14px; background: #eaf1e8}
.member-page .member-error {background: #fff1ed; border-color: #b04e35}
.member-list {display: grid}
.member-list article {padding: 14px 0; border-bottom: 1px solid var(--line)}
.member-list article:last-child {border: 0; padding-bottom: 0}
.member-row {display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px}
.member-row>h2 {margin-bottom: 0}
.member-row>a, .member-actions a {font-weight: 590; color: var(--accent); font-size: .9rem}
.member-row .member-states {display: flex; flex-wrap: wrap; gap: 5px}
.member-states span {padding: 3px 8px; border-radius: 5px; background: #f1f4ed; color: #405b47; font-size: .76rem}
.member-states span+span {background: #f6f3ed; color: #605342}
.member-list time, .member-muted {font-size: .84rem; color: var(--muted)}
.member-order-row {display: grid; grid-template-columns: minmax(105px,1.1fr) minmax(0,1fr) auto}
.member-order-row>strong {font-variant-numeric: tabular-nums}
.member-empty {padding: 24px 0 3px; display: grid; justify-items: start; gap: 11px}
.member-empty>.member-icon {width: 32px; height: 32px; color: #869683}
.member-empty p {font-size: .95rem; color: var(--muted)}
.member-empty a {font-size: .9rem; color: var(--accent); font-weight: 650}
.member-empty a .member-icon {width: 15px; margin-inline-start: 3px}
.member-actions {display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px}
.member-actions:not(:first-child) {margin-top: 13px}
.member-card>p, .member-card .member-form, .member-list article>p {margin-top: 10px}
.member-table {border-collapse: collapse; width: 100%; margin-top: 20px}
.member-table :is(th,td) {border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: end; overflow-wrap: anywhere; font-variant-numeric: tabular-nums}
.member-table :is(th,td):first-child {text-align: start}
.member-table th {font-size: .8rem; color: var(--muted)}
.member-total {font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.18rem}
.member-address {white-space: pre-line}
@media (max-width: 760px) {
  .member-head .member-shell {min-height: 65px}
  .member-auth {grid-template-columns: 1fr; max-width: 540px; margin-block: 24px}
  .member-auth-form {padding: clamp(23px,6vw,42px)}
  .member-auth h1 {margin-bottom: 22px}
  .member-editorial {min-height: 190px; padding: 24px}
  .member-editorial img {object-position: center 48%}
  .member-editorial h2 {font-size: 1.8rem}
  .member-editorial p {font-size: .91rem; margin-top: 6px}
  .member-workspace {grid-template-columns: 1fr; gap: 20px; padding-block: 18px 48px}
  .member-side {padding: 9px 13px}
  .member-side:has(.member-menu-toggle:not([hidden])) {display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 7px}
  .member-identity {padding: 2px 0; border: 0}
  .member-identity .member-avatar {width: 31px; height: 31px; font-size: 1rem}
  .member-page .member-menu-toggle:not([hidden]) {display: flex; width: auto; font-size: .8rem; line-height: 1.2; padding: 5px 7px; min-height: 38px; max-width: 34vw}
  .member-side .member-nav {grid-column: 1/-1}
  .member-menu-toggle[aria-expanded=false]:not([hidden])+.member-nav {display: none}
  .member-welcome img {width: min(22vw,120px); min-height: 105px}
  .member-table {font-size: .83rem}
}
@media (max-width: 490px) {
  .member-stats {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px}
  .member-back {padding: 7px 9px; gap: 4px}
  .member-auth {border-radius: 13px}
  .member-order-row {grid-template-columns: minmax(0,1fr) auto}
  .member-order-row .member-states {grid-column: 1/-1; grid-row: 2}
  .member-order-row>strong {grid-column: 2; grid-row: 1}
  .member-table :is(td,th) {padding: 8px 3px}
}
@media print {
  .member-page {background: #fff; color: #111}
  .member-side, .member-back, .member-noprint, .member-actions, .member-menu-toggle, .member-stats {display: none!important}
  .member-workspace, .member-grid {display: block}
  .member-workspace, .member-head .member-shell {padding: 0; width: 100%}
  .member-head .member-shell {min-height: 35px}
  .member-body>h1 {font-size: 27px}
  .member-card {border: 0; padding: 0}
  .member-card h2 {font-size: 20px}
  .member-table tr, .member-list article {break-inside: avoid}
}
.member-email {display: grid; gap: 4px; margin: 0; overflow-wrap: anywhere}
.member-email span {font-size: .84rem; color: var(--muted)}
.member-email strong {font-weight: 550}
.member-totals, .member-total {width: min(100%,26rem); margin-inline-start: auto}
.member-totals {display: grid; gap: 6px; margin-block: 16px 0}
.member-totals>div, .member-total {display: flex; justify-content: space-between; align-items: baseline; gap: 12px}
.member-totals dt {color: var(--muted)}
.member-totals dd {margin: 0; font-variant-numeric: tabular-nums}
.member-totals small {display: block; font-size: .78rem}
.member-shipping {margin-top: 16px}
.member-conversation {margin: 14px 0 0; gap: 10px}
.member-list.member-conversation article {max-width: min(90%,42rem); padding: 12px 17px; border: 0; border-radius: 12px}
.member-list.member-conversation .member-customer {justify-self: end; background: var(--tint)}
.member-list.member-conversation .member-staff {justify-self: start; background: #f1f2ec}
