/* Staff family accounts: readable records, explicit access controls and
   printable policy evidence. This layer never styles personal account pages. */
.gp-family-records { display: grid; gap: 24px; min-width: 0; }
.gp-family-records > .sc-heading { margin-bottom: 0; }
.gp-family-records .sc-heading p { max-width: 68ch; }
.gp-account-search { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.gp-account-search > .sc-input { flex: 1; min-width: 240px; margin: 0; }
.gp-account-search input { margin: 0; width: 100%; min-height: 44px; }
.gp-account-search > .sc-btn { min-height: 44px; margin: 0; }
.gp-account-layout { display: grid; grid-template-columns: minmax(240px, 285px) minmax(0, 1fr); gap: 24px; align-items: start; }
.gp-account-directory { min-width: 0; }
.gp-account-directory > .gp-record-caption { min-height: 22px; margin: 0 0 10px; }
.gp-account-results { display: grid; gap: 10px; max-height: 950px; overflow-y: auto; scrollbar-width: thin; padding: 1px 4px 3px 1px; }
.gp-account-result { display: grid; gap: 13px; width: 100%; min-width: 0; padding: 16px; text-align: left; color: var(--ink); border: 1px solid #e3e9f1; border-radius: 12px; background: #fff; cursor: pointer; box-shadow: 0 1px 2px #172b4d03; }
.gp-account-result:hover { border-color: #b8ccee; background: #fcfdff; }
.gp-account-result.is-selected { border-color: #9ab9ef; box-shadow: inset 3px 0 0 #3169cf; background: #f5f8ff; }
.gp-account-result-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.gp-account-result-top > span:last-child { display: grid; min-width: 0; gap: 4px; }
.gp-account-result strong { font-size: .875rem; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.gp-account-result small { font-size: .75rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.gp-account-result-players { color: #536d8c; font-size: .8125rem; line-height: 1.55; overflow-wrap: anywhere; }
.gp-account-result-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid #e8edf5; padding-top: 12px; color: #6b7d93; font-size: .6875rem; line-height: 1.5; }
.gp-account-result-foot .sc-badge { font-size: .6875rem; }
.gp-record-avatar { display: inline-grid; flex: none; place-items: center; width: 38px; height: 42px; border: 1px solid #ebdfe4; border-radius: 10px; background: #fff2f4; color: #ad3045; font-size: .8125rem; font-weight: 650; }
.gp-record-avatar-large { width: 52px; height: 58px; font-size: 1.125rem; border-radius: 12px; }
.gp-account-detail { display: grid; gap: 20px; min-width: 0; }
.gp-account-detail > .sc-empty { border: 1px dashed #d8e2ef; border-radius: 14px; padding: 70px 26px; background: #fafcff; }
.gp-account-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 4px 0 2px; }
.gp-account-heading-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gp-account-heading-name > div { min-width: 0; }
.gp-account-heading h2 { margin: 3px 0 6px; color: var(--ink); font: 650 1.5rem/1.3 var(--sans); letter-spacing: -.03em; overflow-wrap: anywhere; }
.gp-account-heading p:not(.gp-record-eyebrow) { color: var(--muted); font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.gp-record-eyebrow { color: #a63448; font-size: .6875rem; line-height: 1.5; font-weight: 600; letter-spacing: .025em; margin: 0 0 4px; }
.gp-account-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #e3e9f2; background: #fff; border-radius: 12px; overflow: hidden; }
.gp-account-metric { display: grid; gap: 10px; padding: 18px 15px; border-right: 1px solid #e8edf4; min-width: 0; }
.gp-account-metric:last-child { border-right: 0; }
.gp-account-metric > span { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.gp-account-metric > strong { color: #203b5c; font-size: clamp(1.0625rem,1.65vw,1.5rem); line-height: 1.3; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gp-account-metric.is-overdue { background: #fff7f8; }
.gp-account-metric.is-overdue > strong { color: #ad3045; }
.gp-account-pending { grid-column: 1/-1; border-top: 1px solid #e8edf4; padding: 12px 15px; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.gp-account-restricted { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; padding: 15px 18px; border: 1px solid #efdae0; border-radius: 10px; background: #fff8f9; }
.gp-account-restricted p { flex: 1; min-width: 170px; color: #8c5360; font-size: .8125rem; line-height: 1.6; }
.gp-account-restricted > .sc-btn { min-height: 34px; }
.gp-account-tabs { display: flex; flex-wrap: wrap; gap: 7px 19px; margin: 0; }
.gp-account-tabs > button { flex: none; padding: 10px 0; font-size: .75rem; }
.gp-record-sections { display: grid; gap: 20px; min-width: 0; }
.gp-record-panel { padding: 22px; min-width: 0; }
.gp-record-panel .sc-panel-head { gap: 14px; align-items: flex-start; }
.gp-record-panel .sc-panel-head h2 { font-size: 1rem; }
.gp-record-panel .sc-panel-head p { font-size: .8125rem; line-height: 1.6; }
.gp-record-panel .sc-panel-head > .sc-btn { flex: none; font-size: .75rem; min-height: 36px; padding: 8px 11px; }
.gp-record-caption { color: var(--muted); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.gp-record-facts { display: grid; gap: 0; margin: 0; }
.gp-record-facts > div { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(0,1fr); gap: 20px; padding: 11px 0; border-bottom: 1px solid #edf1f6; }
.gp-record-facts > div:last-child { border-bottom: 0; }
.gp-record-facts dt { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.gp-record-facts dd { color: #2c4260; margin: 0; font-size: .8125rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.gp-record-player-summary { display: grid; gap: 0; }
.gp-record-player-summary > article { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid #edf1f6; }
.gp-record-player-summary > article:last-child { border-bottom: 0; padding-bottom: 0; }
.gp-record-player-summary > article > div { flex: 1; min-width: 0; }
.gp-record-player-summary h3, .gp-record-player h3 { color: var(--ink); margin: 0 0 5px; font: 650 .9375rem/1.45 var(--sans); letter-spacing: -.015em; overflow-wrap: anywhere; }
.gp-record-player-summary p, .gp-record-player-summary small { color: var(--muted); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.gp-record-player-summary .sc-btn { font-size: .75rem; min-height: 36px; padding: 8px 10px; flex: none; }
.gp-record-registration-list { display: grid; gap: 16px; }
.gp-record-registration { min-width: 0; padding: 18px; border: 1px solid #e3e9f2; border-radius: 11px; background: #fff; }
.gp-record-registration-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.gp-record-registration-top > div { min-width: 0; }
.gp-record-registration h3 { color: var(--ink); margin: 0 0 8px; font: 650 .9375rem/1.5 var(--sans); letter-spacing: -.015em; overflow-wrap: anywhere; }
.gp-record-registration-top > .sc-badge { flex: none; font-size: .6875rem; }
.gp-registration-money { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; padding: 18px 0; margin: 0; }
.gp-registration-money > div { display: grid; gap: 6px; }
.gp-registration-money dt { color: var(--muted); font-size: .6875rem; }
.gp-registration-money dd { margin: 0; color: #2c4260; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gp-record-registration-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid #e9eef5; margin-top: 14px; }
.gp-registration-money + .gp-record-registration-foot { margin-top: 0; }
.gp-record-registration-foot > .gp-record-caption { max-width: 36ch; }
.gp-record-registration-foot .sc-btn { font-size: .75rem; min-height: 36px; padding: 8px 11px; }
.gp-record-versions { margin-top: 14px; color: var(--muted); font-size: .75rem; }
.gp-record-versions summary { cursor: pointer; }
.gp-record-versions > .sc-btn { margin-top: 10px; }
.gp-record-players, .gp-record-notes, .gp-record-restrictions { display: grid; gap: 18px; }
.gp-record-player { border: 1px solid #e3e9f2; border-radius: 11px; padding: 19px; }
.gp-record-player > header { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #e9eef5; margin-bottom: 7px; }
.gp-record-intake { display: grid; gap: 12px; }
.gp-record-resources { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.gp-record-resources:empty { display: none; }
.gp-record-resource { display: inline-block; color: #315f9d; text-decoration: none; font-size: .8125rem; font-weight: 550; line-height: 1.65; margin-top: 6px; overflow-wrap: anywhere; }
.gp-record-resource:hover { text-decoration: underline; text-underline-offset: 3px; }
.gp-record-transaction { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding: 17px 0; border-bottom: 1px solid #e9eef5; }
.gp-record-transaction:last-child { border-bottom: 0; }
.gp-record-transaction > div:first-child { flex: 1; min-width: 0; }
.gp-record-transaction h3 { margin: 0 0 5px; color: var(--ink); font-size: .875rem; line-height: 1.5; font-weight: 600; }
.gp-record-transaction p { color: #536d8c; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.gp-record-transaction small { color: var(--muted); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.gp-record-transaction-note { margin-top: 7px; white-space: pre-wrap; }
.gp-record-reference { display: block; margin-top: 7px; }
.gp-record-transaction-amount { display: grid; justify-items: end; gap: 10px; flex: none; }
.gp-record-transaction-amount strong { font-size: .9375rem; color: #263f60; font-weight: 650; }
.gp-record-transaction-amount .sc-badge { font-size: .6875rem; }
.gp-record-note { padding: 19px; border: 1px solid #e4e9f2; border-radius: 10px; background: #fbfcfe; }
.gp-record-note > div { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.gp-record-note strong { font-size: .8125rem; color: #3e5879; }
.gp-record-note time { font-size: .6875rem; color: var(--muted); }
.gp-record-note > p, .gp-record-note-body { margin: 0; color: #405571; font-size: .875rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.gp-record-restriction { padding: 18px; border: 1px solid #e3e9f2; border-radius: 11px; }
.gp-record-restriction.is-active { border-color: #efd4dc; background: #fffafb; }
.gp-record-restriction > header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 15px; }
.gp-record-restriction h3 { margin: 0 0 5px; font-size: .9375rem; line-height: 1.5; font-weight: 650; }
.gp-record-restriction > .sc-btn { margin-top: 15px; }
.gp-record-restriction > .gp-record-facts { margin-top: 12px; }
.gp-record-loading, .gp-record-error { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 25px; border: 1px solid #e1e8f2; border-radius: 12px; background: #fff; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.gp-record-loading-dot { width: 8px; height: 8px; border-radius: 50%; background: #5781c5; box-shadow: 0 0 0 5px #eaf1fc; }
.gp-record-error { color: #9c3547; border-color: #efdae0; }
.gp-record-error p { flex: 1; min-width: 180px; }
.gp-record-form { display: grid; gap: 22px; }
.gp-record-form-intro { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.gp-record-form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.gp-record-form-fields > .sc-input:has(textarea) { grid-column: 1/-1; }
.gp-record-form input, .gp-record-form select, .gp-record-form textarea { margin: 0; }
.gp-record-form small { line-height: 1.6; }
.gp-record-form-actions { justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); }
.gp-record-form-actions .sc-btn { min-height: 44px; }
.gp-record-dialog { width: min(720px,calc(100vw - 36px)); }
.gp-confirmation-dialog { width: min(900px,calc(100vw - 36px)); }
.gp-confirmation-tools { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.gp-confirmation-document { color: #253c59; background: #fff; font-size: .875rem; line-height: 1.7; }
.gp-confirmation-brand { display: flex; align-items: center; gap: 15px; padding: 0 0 22px; border-bottom: 3px solid var(--club-red,#c9253d); margin-bottom: 24px; }
.gp-confirmation-brand img { object-fit: contain; flex: none; }
.gp-confirmation-brand p { font-size: .6875rem; letter-spacing: .09em; font-weight: 650; color: #a63548; margin: 0 0 3px; }
.gp-confirmation-brand h2 { margin: 0; font: 650 1.25rem/1.4 var(--sans); letter-spacing: -.025em; }
.gp-confirmation-status { padding: 17px 19px; border-radius: 9px; margin-bottom: 20px; border: 1px solid #d8e8e0; background: #f3faf6; color: #386d55; }
.gp-confirmation-status.is-legacy { border-color: #ecdcae; background: #fffbf0; color: #805e26; }
.gp-confirmation-status strong { font-size: .875rem; }
.gp-confirmation-status p { font-size: .8125rem; line-height: 1.7; margin: 5px 0 0; }
.gp-confirmation-section { padding-top: 24px; margin-top: 24px; border-top: 1px solid #e0e7f1; }
.gp-confirmation-section h3 { margin: 0 0 13px; color: #203b5e; font: 650 1rem/1.5 var(--sans); }
.gp-confirmation-section .gp-record-facts > div { grid-template-columns: minmax(130px,.55fr) minmax(0,1fr); }
.gp-confirmation-policy { margin-top: 20px; }
.gp-confirmation-installments { margin-top: 20px; }
.gp-confirmation-policy h4, .gp-confirmation-installments h4 { margin: 0 0 8px; color: #3b526f; font-size: .875rem; font-weight: 650; }
.gp-confirmation-policy p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: #465c78; font-size: .875rem; line-height: 1.8; }
.gp-confirmation-footer { border-top: 1px solid #e0e7f1; padding-top: 20px; margin-top: 28px; font-size: .75rem; line-height: 1.65; color: #6c7c92; }
@media(max-width:1200px) {
  .gp-account-layout { grid-template-columns: 240px minmax(0,1fr); gap: 18px; }
  .gp-account-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gp-account-metric:nth-child(2) { border-right: 0; }
  .gp-account-metric:nth-child(-n+2) { border-bottom: 1px solid #e8edf4; }
  .gp-account-metric > strong { font-size: 1.35rem; }
  .gp-record-panel { padding: 19px; }
  .gp-record-panel .sc-panel-head { flex-wrap: wrap; }
  .gp-record-player-summary > article { flex-wrap: wrap; }
  .gp-record-player-summary .sc-btn { margin-left: 51px; }
}
@media(max-width:980px) {
  .gp-account-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .gp-account-results { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 370px; }
  .gp-account-results > .gp-record-loading, .gp-account-results > .gp-record-error, .gp-account-results > .sc-empty { grid-column: 1/-1; }
  .gp-record-player-summary > article { flex-wrap: nowrap; }
  .gp-record-player-summary .sc-btn { margin-left: 0; }
}
@media(max-width:650px) {
  .gp-family-records { gap: 20px; }
  .gp-account-search { padding: 18px; gap: 12px; }
  .gp-account-search > .sc-input { min-width: 0; flex-basis: 100%; }
  .gp-account-search > .sc-btn { flex: 1; }
  .gp-account-results { grid-template-columns: minmax(0,1fr); max-height: 335px; }
  .gp-account-result { padding: 15px; }
  .gp-account-heading { align-items: flex-start; flex-wrap: wrap; }
  .gp-account-heading h2 { font-size: 1.25rem; }
  .gp-account-heading > .sc-btn { margin-left: 66px; min-height: 40px; }
  .gp-account-tabs { gap: 0 18px; }
  .gp-account-tabs > button { font-size: .8125rem; min-height: 44px; }
  .gp-record-panel { padding: 18px; }
  .gp-record-panel .sc-panel-head > .sc-btn { min-height: 42px; font-size: .8125rem; }
  .gp-record-facts > div, .gp-confirmation-section .gp-record-facts > div { grid-template-columns: minmax(0,1fr); gap: 5px; padding: 12px 0; }
  .gp-record-facts dt, .gp-record-facts dd { font-size: .875rem; }
  .gp-record-registration { padding: 16px; }
  .gp-record-registration-top { flex-wrap: wrap; }
  .gp-registration-money { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .gp-registration-money dt { font-size: .75rem; }
  .gp-record-registration-foot > .sc-actions { width: 100%; }
  .gp-record-registration-foot .sc-btn { min-height: 44px; font-size: .8125rem; width: 100%; }
  .gp-record-player-summary > article { flex-wrap: wrap; }
  .gp-record-player-summary .sc-btn { margin-left: 51px; min-height: 42px; font-size: .8125rem; }
  .gp-record-player { padding: 16px; }
  .gp-record-note { padding: 16px; }
  .gp-record-note strong { font-size: .875rem; }
  .gp-record-note time { font-size: .75rem; }
  .gp-record-form-fields { grid-template-columns: minmax(0,1fr); }
  .gp-record-form-actions .sc-btn { flex: 1; }
  .gp-confirmation-tools { justify-content: stretch; }
  .gp-confirmation-tools > .sc-btn { flex: 1; min-height: 44px; }
  .gp-confirmation-brand h2 { font-size: 1.125rem; }
}
@media print {
  body.gp-print-registration > * { display: none !important; }
  body.gp-print-registration > dialog.gp-confirmation-dialog[open] { display: block !important; position: static !important; width: 100% !important; max-width: none !important; height: auto !important; max-height: none !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  body.gp-print-registration dialog::backdrop { display: none; }
  .gp-confirmation-dialog > .dialog-inner { padding: 0 !important; }
  .gp-confirmation-dialog .dialog-head, .gp-confirmation-tools { display: none !important; }
  .gp-confirmation-document { font-size: 10pt; line-height: 1.55; }
  .gp-confirmation-brand, .gp-confirmation-section > h3, .gp-confirmation-policy > h4 { break-after: avoid; }
  .gp-confirmation-status, .gp-confirmation-document .gp-record-facts > div { break-inside: avoid; }
  .gp-confirmation-section { margin-top: 16pt; padding-top: 14pt; }
  .gp-confirmation-status { background: none !important; }
  .gp-confirmation-policy p { color: #253c59; font-size: 10pt; }
  .gp-confirmation-document .gp-record-facts > div { grid-template-columns: minmax(120px,.55fr) minmax(0,1fr); }
  .gp-confirmation-document .gp-record-resource::after { content: " (" attr(href) ")"; font-weight: 400; overflow-wrap: anywhere; }
}
