@font-face {
  font-family: Manrope;
  src: url('./assets/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --canvas: #f2f2f2;
  --paper: #fff;
  --stripe: #e4e4e7;
  --line: #dedee2;
  --ink: #101010;
  --muted: #606065;
  --accent: #985211;
  --accent-light: #ca7b29;
  --orange-gradient: linear-gradient(150deg, #ac5d13, #985010);
  --green: #266348;
  --green-bg: #dcf7e8;
  --red: #a52a2a;
  --red-bg: #fae5e5;
  --yellow: #795914;
  --yellow-bg: #fbf2c9;
  --blue: #284ca6;
  --blue-bg: #eff3ff;
  --purple: #684393;
  --purple-bg: #f5effb;
  --panel-shadow: 0 7px 15px #1818170a;
  --heading: Manrope, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--heading); letter-spacing: -.035em; }
h1 { font-size: 24px; line-height: 1.3; font-weight: 720; }
h2 { font-size: 20px; font-weight: 660; line-height: 1.35; }
h2 svg, .button svg, a svg { flex: none; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: default; opacity: .45; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid #a75912; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus { position: fixed; z-index: 100; top: 10px; left: 10px; background: white; padding: 12px; border-radius: 6px; }
main:focus { outline: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--accent);
  background: transparent;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.button:not([disabled]):hover { background-color: #faf1e7; }
.button.primary { color: #fff; background: var(--orange-gradient); box-shadow: 0 2px 3px #7d3d1510; }
.button.primary:not([disabled]):hover { filter: brightness(.92); }
.button.secondary { background: #fff; border-color: #e8e8eb; box-shadow: 0 1px 2px #0000000a; }
.button.danger { background: #bc2e28; color: #fff; }
.button.danger:not([disabled]):hover { background: #a12621; }
.button.danger-ghost { color: #b52828; }
.button.danger-ghost:not([disabled]):hover { background: #fae5e5; }
.button.icon-only { width: 36px; min-height: 36px; padding: 0; }
.logo-box { display: grid; flex: none; place-items: center; }
.logo-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.muted { color: var(--muted); font-size: 14px; }
.green-text { color: var(--green); }

.login { display: grid; grid-template-columns: 55% 45%; min-height: 100svh; background: #121212; color: #fff; }
.login-brand {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 48px clamp(40px, 4.45vw, 80px);
  background-image: radial-gradient(circle, #ffd29a0d .75px, transparent 1.2px),
    linear-gradient(0deg, #1d0e05a0, transparent 25%),
    radial-gradient(ellipse at 33% 41%, #8e472382, transparent 59%),
    radial-gradient(ellipse at 76% 70%, #a76024, #5a2d14 65%, #311808 100%);
  background-size: 36px 36px, cover, cover, cover;
}
.login-mark { display: flex; align-items: center; gap: 12px; width: fit-content; }
.login-mark .logo-box { width: 44px; height: 44px; border: 1px solid #ffffff45; border-radius: 13px; background: #1d100bb3; }
.login-mark strong, .login-mobile strong { display: block; font-family: var(--heading); font-weight: 800; }
.login-mark div > span { display: block; margin-top: 2px; color: #f0d4ba; font-size: 10px; letter-spacing: .21em; text-transform: uppercase; }
.login-pitch { align-self: center; padding: 0 0 8px; }
.hero-copy { font: 690 clamp(40px, 3.95vw, 70px)/1.06 var(--heading); letter-spacing: -.034em; }
.hero-copy span { color: #fbd76e; }
.login-pitch > p:nth-child(2) { max-width: 320px; margin-top: 21px; color: #f1d4bd; line-height: 1.55; }
.login-features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; gap: 13px; }
.login-features > div { padding: 15px 16px 16px; border: 1px solid #ffffff16; border-radius: 16px; background: #391a0a70; }
.login-features strong { display: block; margin-top: 12px; font-size: 14px; font-weight: 650; }
.login-features small { display: block; margin-top: 3px; font-size: 12px; color: #f1d4bd; }
.feature-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: #ffffff20; }
.login-copyright { display: flex; align-items: end; justify-content: space-between; color: #d8b89b; font-size: 11px; }
.login-side { display: grid; place-items: center; padding: 55px 32px; background: radial-gradient(ellipse at 87% 8%, #261d157a, transparent 34%); }
.login-content { width: min(100%, 380px); }
.login-content h1 { font-size: 28px; line-height: 42px; font-weight: 720; }
.login-content h1 + p { color: #a8a8ad; margin: 3px 0 32px; font-size: 14px; line-height: 20px; }
.login-content form > label:not(.remember) { display: block; margin-bottom: 9px; color: #adadb1; font-weight: 750; font-size: 10px; letter-spacing: .19em; text-transform: uppercase; }
.login-content form > input, .password-control input { width: 100%; height: 48px; border: 1px solid #666469; border-radius: 12px; background: #ffffff0c; color: white; padding: 0 16px; font-size: 14px; }
.login-content input::placeholder { opacity: 1; color: #a7a7b2; }
.login-content form > input { margin-bottom: 22px; }
.login-content :is(input[type="email"],input[type="password"],input[type="text"]):focus {
  outline: none; border-color: #bd822f; box-shadow: 0 0 0 3px #b873272f; background: #ffffff13;
}
.password-control { position: relative; }
.password-control input { padding-right: 51px; }
.password-control .button { position: absolute; right: 9px; top: 6px; border-radius: 8px; color: #a4a4aa; }
.password-control .button svg { width: 21px; height: 21px; }
.password-control .button:hover { background-color: #ffffff15; }
.login-content .remember { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 14px 0 12px; min-height: 34px; color: #acacb0; font-size: 14px; cursor: pointer; }
.remember input { margin: 0; accent-color: #ab5c17; width: 15px; height: 15px; }
.login-content .login-submit { width: 100%; height: 48px; border-radius: 12px; background: linear-gradient(135deg,#8a431d,#99501b 42%,#a4581c 67%,#e4a03b 100%); box-shadow: 0 6px 24px #dd812538; }
.login-credit { margin-top: 32px; text-align: center; font-size: 11px; color: #a0a0a5; }
.login-mobile { display: none; }

.layout { --side-width: 256px; min-height: 100svh; }
.layout.collapsed { --side-width: 70px; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  width: var(--side-width);
  color: white;
  background-image: radial-gradient(circle,#ffe0a023 .75px,transparent 1px),
    linear-gradient(160deg,#a45a20 0%,#ba6e2c 46%,#e29428 100%);
  background-size: 40px 40px, cover;
  display: flex;
  flex-direction: column;
}
.sidebar-brand { height: 64px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ffffff2d; }
.sidebar-brand .logo-box { width: 36px; height: 36px; background: #ffffff25; border-radius: 13px; }
.sidebar-brand div > strong { display: block; font: 800 16px/1.15 var(--heading); letter-spacing: -.02em; white-space: nowrap; }
.sidebar-brand div > span { display: block; margin-top: 3px; font-size: 9px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #fff3e9; }
.sidebar .button.collapse { position: absolute; background: #fff; color: #8b541c; top: 52px; right: -12px; width: 24px; min-height: 24px; box-shadow: 0 2px 8px #33290535; border-radius: 50%; }
.sidebar .collapse svg { transform: rotate(180deg); width: 13px; height: 13px; }
.collapsed .sidebar .collapse svg { transform: none; }
.sidebar nav { display: grid; gap: 2px; align-content: start; padding: 16px 8px; }
.sidebar nav > p { margin: 0 8px 9px; font-size: 9px; line-height: 16px; letter-spacing: .2em; text-transform: uppercase; font-weight: 750; color: #fff3e9; }
.nav-link { position: relative; display: flex; align-items: center; border-radius: 12px; gap: 12px; height: 48px; padding-inline: 10px; font-size: 14px; text-decoration: none; color: #fff; font-weight: 560; }
.nav-link:hover { background: #40200b36; }
.nav-link:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.nav-link[aria-current] { background: #ffffff30; }
.nav-link[aria-current]::before { content:''; position: absolute; inset: 13px auto 13px 0; width: 2px; border-radius: 3px; background: #fff; }
.nav-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 8px; }
.nav-link[aria-current] .nav-icon { background: #ffffff24; }
.version { margin-top: auto; padding: 16px; font-size: 11px; text-align: center; font-weight: 650; }
.collapsed :is(.sidebar-brand div,.nav-label,.sidebar nav > p) { display: none; }
.collapsed .sidebar-brand { justify-content: center; }
.collapsed .nav-link { justify-content: center; padding: 0; }
.work { display: flex; flex-direction: column; margin-left: var(--side-width); min-height: 100svh; min-width: 0; }
.topbar { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 56px; flex: none; padding: 0 24px; background: #fff; border-bottom: 1px solid #a1a1a7; }
.top-title { font-weight: 720; font-size: 16px; }
.account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.global-search { display: flex; height: 34px; align-items: center; gap: 7px; border: 1px solid #ccccd1; border-radius: 8px; padding: 0 11px; color: #141416; background: #e4e4e7; font-size: 12px; }
.global-search:hover { background: #f0f0f2; }
kbd { font: inherit; color: var(--muted); font-size: 10px; }
.global-search kbd { margin-left: 6px; }
.account-profile { display: flex; align-items: center; gap: 8px; border-left: 1px solid #dedee0; padding-left: 9px; }
.account-profile strong, .account-profile small { display: block; font-size: 13px; line-height: 1.2; }
.account-profile small { margin-top: 3px; font-size: 10px; }
.account-icon { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; color: var(--accent); background: #fcf1e5; }
.button.logout { color: #141416; }
.button.mobile-menu, .button.mobile-close, .button.scrim { display: none; }
.work > main { flex: 1; width: 100%; min-width: 0; padding: 24px; }
.work > footer { padding: 9px 24px; border-top: 1px solid #d6d6da; background: #fff; color: #525258; text-align: center; font-size: 12px; }

.page-heading, .dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-heading p { margin-top: 3px; line-height: 1.4; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.panel { min-width: 0; margin: 0 0 24px; border-radius: 12px; background: var(--paper); box-shadow: var(--panel-shadow); }
.metric-grid { display: grid; gap: 16px; margin: 0 0 24px; }
.metric-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dashboard-head { align-items: flex-end; }
.dashboard-head p { color: var(--accent); font-size: 12px; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-head h1 { margin-top: 2px; }
.dashboard-head time { padding-bottom: 2px; text-transform: capitalize; font-size: 14px; }
.metric { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 24px; }
.metric-label { font-size: 12px; font-weight: 680; text-transform: uppercase; }
.metric-value { margin-top: 5px; font: 760 36px/1.1 var(--heading); letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.metric-value.green { color: #387b61; }
.metric-value.red { color: #c42b2b; }
.metric-value.yellow { color: #8b6716; }
.metric-caption { margin-top: 5px; color: var(--muted); font-size: 12px; }
.metric-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 12px; }
.metric-icon.amber { background: var(--orange-gradient); color: white; }
.metric-icon.neutral { background: #d9d9de; }
.metric-icon.green { background: var(--green-bg); color: var(--green); }
.metric-icon.yellow { background: var(--yellow-bg); color: var(--yellow); }
.metric-icon.red { background: var(--red-bg); color: var(--red); }
.dash-stat { align-items: flex-start; border: 1px solid #9b9b9d; box-shadow: none; padding: 20px; }
.dash-stat .metric-icon { width: 44px; height: 44px; }
.dash-stat .metric-icon.red { background: #c8342b; color: #fff; }
.income { padding: 24px; position: relative; overflow: hidden; }
.income::before, .due::before { position: absolute; inset: 0 0 auto; height: 4px; content:''; background: linear-gradient(90deg,#a35b14,#f0bc48 65%,#f6d877); }
.income-head, .detail-membership-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel h2 { display: flex; align-items: center; gap: 8px; }
.income h2 svg { width: 40px; height: 40px; padding: 10px; background: linear-gradient(135deg,#a76521,#dd9a28); border-radius: 12px; color: #fff; margin-right: 3px; }
.segments { padding: 4px; display: flex; align-items: center; gap: 3px; background: #e4e4e7; border-radius: 8px; }
.segments button { min-height: 25px; border: 0; border-radius: 5px; padding: 0 9px; background: transparent; color: #121214; font-size: 11px; white-space: nowrap; }
.segments button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px #0002; }
.segments button:hover { background: #fafafa; }
.income-value { margin-top: 10px; font: 760 38px/1.1 var(--heading); letter-spacing: -.045em; }
.due-grid { align-items: start; }
.due { position: relative; overflow: hidden; margin: 0; }
.due.today::before { background: linear-gradient(90deg,#b62e2d,#edb4ad); }
.due.soon::before { background: linear-gradient(90deg,#ae7b22,#ead5ad); }
.due > h2, .heading-panel > h2 { padding: 23px 24px 16px; }
.due .table-wrap { max-height: 418px; }
.due .button { color: var(--green); padding: 0 6px; min-height: 32px; font-size: 12px; }
.activity-panel { padding: 24px; }
.activity-panel > p { margin-top: 4px; }
.activity { padding: 0; margin: 12px 0 0; list-style: none; }
.activity li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.activity li time { margin-left: auto; color: var(--muted); }
.activity li p { color: var(--muted); margin-top: 3px; }
.payment-metrics { gap: 24px; }
.payment-metrics .metric { min-height: 112px; padding: 20px; align-items: flex-start; }
.payment-metrics .metric-icon { width: 40px; height: 40px; }
.payment-metrics .metric-value { font-size: 24px; color: var(--ink); }
.payment-metrics .metric-label { font-size: 10px; letter-spacing: .12em; }
.payment-metrics .metric-label.green { color: var(--green); }
.payment-metrics .metric-label.red { color: var(--red); }
.payment-metrics .metric-label.yellow { color: var(--yellow); }

.filters { padding: 20px 24px; }
.filters.compact { padding: 12px; }
.member-filters { display: grid; grid-template-columns: minmax(0,1fr) 158px; gap: 14px; align-items: end; }
.result-count { margin-top: 8px; color: var(--muted); font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span:first-child:not(.sr-only), .filter-label { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .03em; font-weight: 680; }
.field input, .field textarea, .field select, .picker-trigger {
  width: 100%;
  min-height: 38px;
  min-width: 0;
  padding: 7px 12px;
  color: var(--ink);
  background: #f3f3f4;
  border: 1px solid #cdced2;
  border-radius: 5px;
  font-size: 14px;
}
.field select { appearance: none; padding-right: 29px; }
.select-wrap { display: block; position: relative; min-width: 0; }
.select-wrap svg { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); pointer-events: none; color: #5f5f65; }
.field textarea { resize: vertical; }
:is(.field input,.field textarea,.field select,.search-input input,.picker-trigger):focus { outline: 2px solid #ae6016; outline-offset: 1px; }
.search-input { display: flex; align-items: center; position: relative; min-width: 0; }
.search-input > svg { position: absolute; left: 12px; pointer-events:none; }
.search-input > input { width: 100%; min-width: 0; min-height: 37px; padding: 7px 10px 7px 39px; background: #f9f9fa; color: var(--ink); border: 1px solid #d3d3d6; border-radius: 5px; font-size: 14px; }
.search-input input::placeholder, .field :is(input,textarea)::placeholder { color: #5e5e65; opacity: 1; }
.payment-filters { display: grid; grid-template-columns: minmax(160px,1.55fr) minmax(145px,.73fr) minmax(290px,2fr) auto; align-items: end; gap: 20px; }
.payment-filters .filter-label { color: var(--muted); font-size: 10px; margin: 0 0 7px 3px; }
.payment-filters .field > span:first-child:not(.sr-only) { color: var(--muted); font-size: 10px; margin-left: 3px; }
.date-range > div { display: flex; align-items: center; gap: 8px; }
.date-range .field { flex: 1 1 0; }
.date-range > div > svg { flex: none; color: var(--muted); }
.date-range input { font-size: 12px; }
.report-filters-panel { padding: 16px; }
.report-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.report-filters .field { width: 190px; }
.report-stat { min-width: 0; min-height: 84px; padding: 16px; border-radius: 12px; box-shadow: var(--panel-shadow); font-size: 14px; }
.report-stat strong { display: block; margin-top: 3px; font: 800 24px/1.1 var(--heading); overflow-wrap: anywhere; }
.report-stat.green { background: #edf9ef; color: var(--green); }
.report-stat.red { background: #fbeeee; color: var(--red); }
.report-stat.blue { background: var(--blue-bg); color: var(--blue); }
.report-stat.purple { background: var(--purple-bg); color: var(--purple); }

.table-panel { overflow: hidden; }
.table-wrap { overflow: auto; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { border-collapse: collapse; width: 100%; background: white; font-size: 14px; text-align: left; }
th { font-size: 12px; font-weight: 570; text-transform: uppercase; white-space: nowrap; text-align: left; }
th, td { padding: 12px 16px; }
td strong, td small { display: block; }
td small { margin-top: 3px; font-size: 12px; }
td strong { font-weight: 600; }
td:last-child, th:last-child { padding-right: 16px; }
tbody tr:nth-child(even) { background: var(--stripe); }
.end-aligned :is(th,td):last-child { text-align: right; }
.plans-table tbody tr { height: 64px; }
.members-table tbody tr { height: 56px; }
.members-table :is(th,td):nth-child(2) { width: 30%; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.row-actions .button { padding: 0 8px; font-size: 12px; min-height: 32px; }
.row-actions .button.icon-only { width: 32px; padding: 0; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 2px 11px; border-radius: 20px; white-space: nowrap; font-size: 12px; font-weight: 540; line-height: 1.1; letter-spacing: 0; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.yellow { background: var(--yellow-bg); color: var(--yellow); }
.pill.neutral { background: #e8e8eb; color: #363638; }
.pill.amber { background: #f8eee2; color: var(--accent); }
.pill.blue { background: #315ec6; color: white; }
.member-name { display: flex; align-items: center; gap: 12px; min-width: 125px; }
.avatar { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; font-weight: 700; font-size: 12px; background: #e4f4ea; color: #327057; }
.avatar-1 { background: #f5e8db; color: #994c14; }
.avatar-2 { background: #f8e6ee; color: #a23c61; }
.avatar-3 { background: #ddf6ef; color: #38645e; }
.avatar-4 { background: #f7edda; color: #84601b; }
.folio { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #49494e; font-size: 12px; }
.pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; background: white; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pagination > div { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.pagination .button { min-height: 34px; color: var(--ink); padding-inline: 12px; }
.table-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.table-heading h2 { font-family: inherit; font-size: 14px; font-weight: 680; text-transform: uppercase; color: var(--muted); letter-spacing: .035em; }
.empty { padding: 20px; text-align: center; color: var(--muted); }
.inset .table-wrap { margin: 12px 24px 24px; }

.check-panel { padding: 23px 24px 24px; }
.check-panel h2 { margin-bottom: 32px; }
.check-panel .search-input input { height: 48px; background: white; font-size: 16px; }
.check-search, .picker { position: relative; }
.suggestions, .suggestion-empty {
  position: absolute;
  z-index: 1;
  inset: calc(100% + 5px) 0 auto;
  max-height: 320px;
  overflow: auto;
  border-radius: 8px;
  padding: 5px;
  margin: 0;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 9px 17px #0002;
}
.suggestions li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; padding: 9px 12px; border-radius: 5px; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: #faeee0; }
.suggestion-empty { padding: 13px 15px; color: var(--muted); font-size: 14px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; font-size: 14px; }
.breadcrumb > svg { color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-panel { padding: 24px; }
.member-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.member-detail-head > .avatar { width: 64px; height: 64px; background: #f9eee3; color: var(--accent); font: 800 24px/1 var(--heading); }
.member-detail-title p { margin: 3px 0 4px; }
.member-detail-head .actions { margin-left: auto; }
.member-detail-head .actions .field { width: 157px; }
.detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px 16px; }
.detail-field { display: flex; align-items: center; gap: 12px; min-width: 0; }
.detail-field > svg { flex: none; }
.detail-field p { font-size: 14px; margin-bottom: 3px; }
.detail-field strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.detail-bottom { display: flex; gap: 38px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #e4e4e6; margin-top: 24px; }
.membership-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding: 16px; border-radius: 8px; margin-top: 30px; background: var(--stripe); }
.membership-grid .button { width: 27px; min-height: 26px; margin-left: 5px; color: var(--ink); }
.membership-grid .button svg { width: 14px; height: 14px; }

dialog { max-height: calc(100svh - 32px); max-width: calc(100vw - 32px); color: var(--ink); }
dialog::backdrop { background: #000c; }
body:has(dialog[open]) { overflow: hidden; }
.modal { width: 512px; padding: 24px; border: 1px solid #d7d7dc; border-radius: 8px; background: var(--canvas); box-shadow: 0 12px 45px #0003; }
.modal.narrow { width: 448px; }
.modal h2 { padding-right: 28px; margin-bottom: 16px; font-size: 18px; letter-spacing: -.025em; }
.modal .modal-close { position: absolute; top: 10px; right: 10px; width: 28px; min-height: 28px; color: #4c4c51; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.form-grid.single { grid-template-columns: minmax(0,1fr); }
.form-grid + .form-grid { margin-top: 18px; }
fieldset.form-grid legend { width: 100%; margin-bottom: 14px; padding: 0 0 6px; border-bottom: 1px solid #b7b7bc; text-transform: uppercase; font-size: 12px; font-weight: 750; line-height: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.modal .field input, .modal .field textarea, .picker-trigger { background: #fff; }
.modal .field input { min-height: 36px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-intro, .confirm-copy { margin-bottom: 14px; color: #3f3f47; font-size: 14px; line-height: 1.5; }
.form-error { color: #9d2727; padding: 8px 0 0; font-size: 13px; }
.reminder-message { margin-top: 15px; }
.picker > label { margin-bottom: 7px; }
.picker-trigger { display: flex; justify-content: space-between; align-items: center; }
.picker-popover { position: absolute; z-index: 1; width: 100%; top: calc(100% + 5px); padding: 6px; background: #fff; border: 1px solid #cfcfd1; border-radius: 6px; box-shadow: 0 7px 13px #0002; }
.picker-list { max-height: 160px; overflow: auto; }
.picker-list button { display: flex; height: auto; min-height: 31px; width: 100%; justify-content: flex-start; font-size: 13px; color: var(--ink); }
.command { width: 560px; padding: 0; border: 1px solid var(--line); border-radius: 12px; margin: min(18vh,160px) auto 0; background: #fff; overflow: hidden; }
.command::backdrop { background: #0008; }
.command-top { display: flex; align-items: center; padding: 8px 12px; gap: 10px; border-bottom: 1px solid var(--line); }
.command-top .search-input { flex: 1; }
.command-top input { background: #fff; border-color: transparent; }
.command-top .key { padding: 4px 6px; background: #eeeef1; border: 1px solid #dedee0; border-radius: 4px; color: var(--muted); font-size: 10px; }
#command-results { padding: 6px; max-height: min(430px, 58vh); overflow: auto; }
.command-label { padding: 8px 10px 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 700; }
.command-item { display: flex; align-items: center; gap: 11px; padding: 6px 10px; color: var(--ink); padding-inline: 12px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.command-item > svg:last-child { margin-left: auto; opacity: .7; }
.command-item[aria-selected="true"], .command-item:hover { background: #f1f1f3; }
.command-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 5px; background: #eeeeef; }
.command-icon svg { width: 14px; height: 14px; }
.command-item small { margin-left: 4px; color: var(--muted); }
.command-footer { padding: 10px 13px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.command-footer kbd { margin-inline: 6px 2px; border: 1px solid var(--line); border-radius: 3px; padding: 2px; }
.notice { position: fixed; z-index: 5; right: 20px; bottom: 20px; max-width: calc(100% - 32px); border-radius: 9px; background: #fff; color: var(--ink); font-size: 14px; }
.notice.shown { padding: 13px 17px; border: 1px solid var(--line); box-shadow: 0 4px 19px #0002; }

@media (max-width: 1250px) {
  .payment-filters { grid-template-columns: minmax(135px,1fr) minmax(125px,.55fr) minmax(235px,1.25fr) auto; gap: 12px; }
  .payment-filters .date-range > div { gap: 4px; }
  .date-range input { padding-inline: 6px; }
}
@media (max-width: 1099px) {
  .layout { --side-width: 225px; }
  .payment-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; }
  .payment-filters > :first-child { grid-column: span 2; }
  .payment-filters .date-range { grid-column: span 2; }
  .member-detail-head { flex-wrap: wrap; }
  .member-detail-head .actions { width: 100%; margin-left: 0; }
  .due-grid { grid-template-columns: minmax(0,1fr) !important; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-side { min-height: 100svh; }
  .login-mobile { display: flex; align-items: center; flex-direction: column; gap: 6px; margin-bottom: 39px; text-align: center; }
  .login-mobile .logo-box { margin-bottom: 13px; width: 80px; height: 80px; border-radius: 25px; background: linear-gradient(130deg,#75411f,#c07e34); }
  .login-mobile strong { font-size: 24px; }
  .login-mobile > span:last-child { font-size: 14px; color: #aaaab0; }
}
@media (max-width: 767px) {
  .work { margin-left: 0; }
  .layout, .layout.collapsed { --side-width: min(256px,85vw); }
  .sidebar { visibility: hidden; }
  .drawer-open .sidebar { visibility: visible; overflow: auto; }
  .sidebar .button.collapse { display: none; }
  .sidebar .button.mobile-close { display: inline-flex; color: #fff; margin-left: auto; }
  .collapsed .sidebar .sidebar-brand { justify-content: flex-start; }
  .collapsed :is(.sidebar-brand div,.nav-label,.sidebar nav > p) { display: block; }
  .collapsed .nav-link { justify-content: flex-start; padding-inline: 10px; }
  .drawer-open .button.scrim { display: block; position: fixed; z-index: 3; inset: 0; width: 100%; min-height: 100vh; background: #0008; border-radius: 0; }
  .drawer-open .button.scrim:hover { background: #0008; }
  .button.mobile-menu { display: inline-flex; margin-left: -5px; color: var(--ink); }
  .topbar { justify-content: flex-start; padding-inline: 16px; }
  .account-profile, .global-search kbd { display: none; }
  .global-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .global-search { width: 34px; justify-content: center; padding: 0; }
  .work > main { padding: 18px 16px; }
  .metric-value { font-size: 31px; }
}
@media (max-width: 575px) {
  .metric-grid.three, .metric-grid.two { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .metric { padding: 16px; }
  .metric-value { font-size: 30px; }
  .page-heading, .dashboard-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-heading p { font-size: 14px; }
  .income, .check-panel, .detail-panel, .activity-panel { padding: 17px; }
  .income-head, .detail-membership-head { flex-wrap: wrap; }
  .segments { flex-wrap: wrap; }
  .segments button { padding-inline: 6px; }
  .member-filters { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .member-filters > .field { max-width: 160px; }
  .detail-grid, .membership-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .payment-filters { grid-template-columns: minmax(0,1fr) auto; }
  .payment-filters .date-range { grid-column: auto; }
  .date-range > div { align-items: stretch; flex-direction: column; }
  .date-range > div > svg { display: none; }
  .date-range input { width: 100%; }
  .report-filters .field { width: 100%; }
  .report-filters .field > span:first-child { font-size: 11px; }
  .heading-panel > h2 { padding-inline: 16px; }
  .inset .table-wrap { margin-inline: 16px; }
  .form-grid { gap: 12px; }
  .modal { padding: 18px; }
  .activity li { gap: 6px; }
}
@media (forced-colors: active) {
  .panel, .metric, .login-features > div, .nav-link[aria-current] { border: 1px solid CanvasText; }
  .pill, .avatar, .metric-icon { border: 1px solid currentColor; }
}
