.member-tools{max-width:900px;margin-inline:auto;padding-inline:clamp(24px,7vw,52px)}
.member-tools .member-nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin:24px 0 12px;padding:0 0 10px;border-bottom:1px solid #cdd4d5;letter-spacing:0}
.member-tools .member-nav a{padding:8px 2px;font-weight:700;font-size:14px}
.member-tools .member-nav a[aria-current=location]{border-bottom:2px solid #26495b;color:#26495b}
.member-tools .member-panel{padding:12px 0 24px;border:0;background:none;text-align:left}
.member-tools .member-panel h2{font-size:clamp(23px,4vw,32px);margin:0 0 16px;letter-spacing:-.04em}
.member-tools .member-panel h3{margin:18px 0 8px;font-size:16px}
.member-cards{display:grid;gap:10px}
.member-card{padding:16px 18px;border-radius:10px;background:#fff;border:1px solid #dce2e1}
.member-card p{margin:4px 0;font-size:14px}
.member-card .member-count{font-size:26px;font-weight:700;color:#26495b}
.member-card summary{cursor:pointer;font-weight:700}
.member-profile{max-width:430px}
.member-profile label{display:block;margin:12px 0}
.member-profile input{display:block;width:100%;margin-top:4px;padding:10px;min-height:44px;border:1px solid #a6b2b9;background:#fff;border-radius:6px;font:inherit}
.member-profile button{cursor:pointer}
.member-extra{padding-top:12px;border-top:1px solid #cdd4d5}
.member-tools [hidden]{display:none!important}

body:has(.member-tools .member-nav a[href="#bookings"][aria-current="location"]),
.member-tools:has(.member-nav a[href="#bookings"][aria-current="location"]) {
  background-color: #fff;
}

/* Booking cancel: rectangle matching the Log out button. */
html body main.member-tools #bookings .member-card > button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px; min-height: 42px; padding: 8px 18px;
  border: 1px solid #4b6359 !important; border-radius: 2px !important;
  background: #4b6359 !important; color: #fff !important; cursor: pointer;
}
html body main.member-tools #bookings .member-card > button:disabled { opacity: .55; cursor: default; }

/* Tabs (larger) with small grey buttons beside them. Same layer as the site-wide type rules. */
@layer club-desktop-standard {
  html body main.member-tools .member-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 16px; margin:22px 0 12px; padding:0 0 8px; border-bottom:1px solid #cdd4d5; }
  html body main.member-tools .member-bar .member-nav { margin:0 !important; padding:0 !important; border:0 !important; gap:4px 22px; }
  html body main.member-tools .member-bar .member-nav a { font-size:16px !important; line-height:24px !important; padding:8px 2px !important; }
  html body main.member-tools .member-bar .member-actions { display:flex; flex-wrap:wrap; gap:6px; }
  html body main.member-tools .member-bar a.member-chip {
    display:inline-flex !important; align-items:center; min-height:30px !important; padding:4px 10px !important; box-sizing:border-box;
    border:1px solid #d3d7da !important; border-radius:4px !important; background:#f1f2f3 !important; color:#50585e !important;
    font-size:12px !important; line-height:18px !important; font-weight:500 !important; text-decoration:none !important; }
  html body main.member-tools .member-bar a.member-chip[hidden] { display:none !important; }
}

/* Buttons beside the tabs on wide screens, at the bottom of the page on phones. */
@layer club-desktop-standard {
  html body main.member-tools .member-actions a.member-chip {
    display:inline-flex !important; align-items:center; min-height:30px !important; padding:4px 10px !important; box-sizing:border-box;
    border:1px solid #d3d7da !important; border-radius:4px !important; background:#f1f2f3 !important; color:#50585e !important;
    font-size:12px !important; line-height:18px !important; font-weight:500 !important; text-decoration:none !important; }
  html body main.member-tools .member-actions a.member-chip[hidden] { display:none !important; }
  html body main.member-tools > .member-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin:36px 0 0; padding:14px 0 96px; border-top:1px solid #e2e6e8; }
  html body main.member-tools .member-late { color:#7a5b2e; }
  /* the page title is the same size as the timetable title */
  @media (min-width:761px) { html body main.member-account.member-tools.account-dashboard-width > h1.club-page-title { font-size:39px !important; line-height:48px !important; } }
}
