/* Member workspace. Public page keeps its original composition, with fluid width. */
:root { --page-gutter: clamp(40px, 5vw, 96px); --container: calc(100% - var(--page-gutter) * 2); }
.site-header--member .site-navigation { margin-left: auto; }
.header-account { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-shrink: 0; }
.header-balance { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); white-space: nowrap; font-size: 13px; }
.header-balance > span { font-size: 19px; }
.header-balance strong { font-weight: 600; }
.header-balance small { color: var(--muted); font-size: 11px; }
.account-dropdown { position: relative; }
.account-toggle { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border: 1px solid var(--border); border-radius: 10px; background: #171719; cursor: pointer; list-style: none; color: var(--ivory); font-size: 13px; }
.account-toggle::-webkit-details-marker { display: none; }
.account-toggle::marker { content: ''; }
.account-toggle:hover, .account-dropdown[open] .account-toggle { border-color: var(--border-gold); }
.account-toggle:focus-visible, .account-menu a:focus-visible, .account-menu button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.account-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--gold-light); background: #2b251b; }
.account-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { color: var(--muted); flex-shrink: 0; transition: transform .15s; }
.account-dropdown[open] .account-chevron { transform: rotate(180deg); }
.account-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 260px; max-width: calc(100vw - 40px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; padding: 8px; color: var(--ivory); background: #171719; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 48px #0008; z-index: 60; }
.account-menu-heading { padding: 12px 12px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.account-menu-heading strong, .account-menu-heading span { display: block; overflow-wrap: anywhere; }
.account-menu-heading strong { font-size: 14px; font-weight: 600; }
.account-menu-heading span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.account-menu nav { display: grid; }
.account-menu a, .account-menu button { display: block; padding: 10px 12px; border: 0; border-radius: 6px; font-size: 13px; line-height: 1.4; text-align: left; background: none; color: var(--ivory); }
.account-menu a:hover, .account-menu button:hover { background: #28251e; color: var(--gold-light); }
.account-menu .account-admin { color: var(--gold-light); }
.account-menu .account-about { color: var(--muted); }
.account-menu form { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 6px; }
.account-menu button { width: 100%; cursor: pointer; color: #d4aaa4; }
.app-page { background: #0b0c0e; font-size: 14px; }
.app-page::before { display: none; }
.app-page .site-header { background: #0e0f11; }
.app-page .header-inner { min-height: 78px; }
.app-page .page-shell { padding: 28px 0 64px; min-height: calc(100vh - 230px); }
.app-page h1, .app-page h2, .app-page h3 { font-family: var(--sans); letter-spacing: -.025em; overflow-wrap: anywhere; }
.app-page h1 { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.2; margin-bottom: 10px; }
.app-page h2 { font-size: 20px; line-height: 1.35; margin-bottom: 12px; }
.app-page h3 { font-size: 16px; line-height: 1.4; }
.app-page .eyebrow { font-size: 10px; letter-spacing: .14em; margin-bottom: 10px; }
.app-page .page-heading { margin-bottom: 28px; }
.app-page .page-heading p, .app-page .panel-heading p, .welcome-line { font-size: 14px; color: var(--muted); max-width: 70ch; margin-bottom: 0; }
.member-navigation { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; padding: 6px; background: #111214; border: 1px solid var(--border); border-radius: 12px; width: fit-content; max-width: 100%; }
.member-navigation a { display: inline-flex; gap: 10px; align-items: center; padding: 10px 18px; color: #aaaab0; border-radius: 7px; font-size: 13px; transition: color .2s, background .2s; }
.member-navigation a span { color: var(--gold); font-size: 18px; line-height: 1; }
.member-navigation a.is-active { background: #25231d; color: var(--gold-light); }
.member-navigation a:hover { color: #fff; background: #1c1d20; }
.app-page .dashboard-hero { padding: 0; margin-bottom: 28px; border: 0; align-items: center; gap: 20px; }
.app-page .dashboard-hero h1 { font-size: clamp(24px, 2.3vw, 34px); }
.app-page .member-badge { padding: 12px 18px; min-width: 210px; background: #121315; border: 1px solid var(--border); border-radius: 10px; }
.app-page .member-badge strong { font-size: 14px; font-family: var(--sans); }
.app-page .member-badge span, .app-page .member-badge small { font-size: 11px; }
.member-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card { border: 1px solid var(--border); border-radius: 12px; background: #141518; padding: 24px; min-width: 0; }
.stat-card > span { font-size: 12px; color: var(--muted); }
.stat-card strong { display: block; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.35; font-weight: 600; margin: 14px 0 8px; overflow-wrap: anywhere; }
.stat-card strong small { font-size: 12px; font-weight: 400; }
.stat-card p { font-size: 12px; color: var(--muted); margin: 0; }
.stat-card--gold { border-color: var(--border-gold); background: linear-gradient(120deg, #262118, #171614); }
.stat-card--gold strong { color: var(--gold-light); }
.app-page .panel { border-radius: 12px; background: #141518; box-shadow: none; min-width: 0; }
.app-page .dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 24px; }
.app-page .dashboard-panel, .app-page .profile-summary { padding: 26px; }
.app-page .dashboard-panel--wide { grid-row: auto; }
.app-page .profile-summary { grid-column: 1 / -1; }
.app-page .profile-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.app-page .profile-summary dl div { display: block; border: 0; padding: 0; }
.app-page .profile-summary dd { margin: 6px 0 0; font-size: 15px; }
.app-page .panel-title-row { margin-bottom: 22px; align-items: center; gap: 12px; }
.app-page .panel-title-row a { font-size: 12px; }
.app-page .compact-list article { padding: 20px 0; }
.app-page .compact-list h3 { font-family: var(--sans); font-size: 17px; margin-bottom: 8px; }
.app-page .compact-list p { font-size: 13px; }
.app-page .panel-empty { min-height: 150px; padding: 26px 16px; }
.app-page .panel-empty span { font-size: 26px; opacity: .65; }
.app-page .event-mini-list h3 { font-size: 15px; }
.app-page .event-mini-list p { font-size: 12px; }
.app-page .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-page .timeline-item { padding: 26px; border: 1px solid var(--border); border-radius: 12px; background: #141518; gap: 24px; margin: 0; align-items: start; }
.app-page .timeline-item::before, .app-page .timeline::before { display: none; }
.app-page .timeline-item > time { position: static; width: 88px; flex-shrink: 0; padding: 12px; background: #222019; border-radius: 8px; }
.app-page .timeline-item > time strong { font-size: 30px; font-family: var(--sans); }
.app-page .timeline-item > div { min-width: 0; }
.app-page .timeline-item h2 { font-size: 19px; }
.timezone-label { color: var(--muted); font-size: 12px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 30px; white-space: nowrap; }
.member-profile-grid { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.8fr); gap: 24px; align-items: start; }
.identity-card { overflow: hidden; }
.identity-cover { display: flex; align-items: center; justify-content: flex-end; height: 140px; padding: 20px 30px; background: linear-gradient(120deg, #30281b, #181817); border-bottom: 1px solid var(--border-gold); }
.identity-cover img { opacity: .6; }
.identity-content { padding: 0 28px 28px; }
.app-page .profile-monogram { margin: -32px 0 22px; position: relative; width: 70px; height: 70px; font-size: 28px; background: #c6a15b; color: #111; border: 5px solid #141518; border-radius: 16px; font-family: var(--sans); }
.identity-content h2 { margin-bottom: 3px; font-size: 23px; }
.identity-content > p { color: var(--muted); font-size: 13px; }
.identity-balance { padding: 22px 0; margin-top: 26px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.identity-balance > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.identity-balance strong { color: var(--gold-light); font-size: 28px; overflow-wrap: anywhere; }
.identity-balance small { font-size: 12px; font-weight: 400; }
.identity-since { margin: 20px 0 0; }
.profile-details { display: grid; gap: 24px; }
.account-details { padding: 28px; }
.account-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; margin: 28px 0 0; }
.account-data > div { border-top: 1px solid var(--border); padding-top: 16px; }
.account-data dt { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.account-data dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.security-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; }
.security-card p { color: var(--muted); margin-bottom: 0; max-width: 55ch; font-size: 13px; }
.security-card .button { flex-shrink: 0; }
.app-page .button { padding: 12px 20px; font-size: 12px; border-radius: 7px; letter-spacing: .025em; }
.app-page .form-panel { padding: 28px; }
.app-page .panel-heading { margin-bottom: 24px; }
.security-form { max-width: 620px; margin-inline: auto; }
.security-note { color: var(--muted); overflow-wrap: anywhere; }
.password-cancel { margin-top: 22px; }
.password-cancel button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }
.app-page .admin-grid { grid-template-columns: minmax(300px, .65fr) minmax(0, 1.6fr); gap: 24px; align-items: start; }
.app-page .stats-grid strong { font-size: 32px; font-family: var(--sans); }
.app-page .stats-grid article { border-radius: 12px; padding: 24px; }
.app-page .user-row { flex-wrap: wrap; gap: 14px; }
.app-page .user-main { min-width: 140px; }
.app-page .user-main h3 { font-size: 15px; }
.app-page .user-row form { margin-left: auto; }
.app-page .site-footer { padding: 28px 0; }
.app-page .footer-inner { gap: 24px; align-items: center; }
.app-page .footer-inner .brand small, .app-page .footer-links { display: none; }
.app-page .footer-inner .brand strong { font-size: 17px; }
.app-page .footer-inner p { font-size: 11px; max-width: 70ch; margin-bottom: 0; }
.app-page .empty-state { padding: 40px 24px; }
.app-page .empty-state h2 { font-size: 22px; }
.app-page .empty-symbol { font-size: 30px; }
.auth-page h1 { font-size: clamp(30px, 4vw, 48px); }
.auth-page .panel-heading h1 { font-size: 30px; }
@media (max-width: 1100px) {
    .site-navigation { gap: 15px; }
    .site-navigation > a { font-size: 12px; }
    .app-page .dashboard-grid, .member-profile-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .security-card { flex-direction: column; align-items: flex-start; }
    .app-page .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    :root { --page-gutter: 24px; --container: calc(100% - var(--page-gutter) * 2); }
    .app-page .page-shell { padding-top: 20px; }
    .member-navigation { width: 100%; gap: 4px; margin-bottom: 24px; }
    .member-navigation a { flex: 1 1 calc(50% - 4px); padding: 9px 12px; font-size: 12px; }
    .app-page .dashboard-hero { align-items: flex-start; }
    .app-page .member-badge { min-width: 0; width: 100%; }
    .member-stats, .app-page .dashboard-grid, .member-profile-grid, .app-page .admin-grid { grid-template-columns: minmax(0, 1fr); }
    .member-stats { gap: 12px; }
    .stat-card { padding: 20px; }
    .app-page .profile-summary dl, .account-data { grid-template-columns: 1fr; }
    .app-page .profile-summary { grid-column: auto; }
    .app-page .dashboard-panel, .app-page .profile-summary, .account-details, .security-card { padding: 22px; }
    .app-page .timeline-item { padding: 20px; gap: 16px; }
    .app-page .timeline-item > time { width: 76px; }
    .app-page .page-heading--row { align-items: flex-start; gap: 14px; }
    .timezone-label { white-space: normal; }
    .app-page .footer-inner { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 1050px) {
    .site-header--member .site-navigation, .site-header--member .menu-toggle { display: none; }
    .site-header--member .header-inner { gap: 16px; }
    .header-account { gap: 14px; }
}
@media (max-width: 600px) {
    .site-header--member .brand > span { display: none; }
    .site-header--member .brand-mark { width: 38px; height: 38px; }
    .header-account { gap: 12px; }
    .header-balance { gap: 5px; font-size: 12px; }
    .header-balance small { display: none; }
    .account-name { max-width: 95px; }
    .account-toggle { gap: 7px; font-size: 12px; padding: 6px; }
}
@media (max-width: 480px) {
    .app-page .timeline-item > time { width: 100%; min-height: auto; display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 12px 16px; }
    .app-page .timeline-item > time strong { font-size: 26px; }
}
