.player-page,.pr-detail-modal{--pr-edge:color-mix(in srgb,var(--line) 72%,var(--paper));--pr-surface:color-mix(in srgb,var(--soft) 50%,var(--paper))}
.pr-heading,.pr-tools,.pr-toolbar,.pr-segments,.pr-account,.pr-search,.pr-context,.pr-tabs,.pr-footer,.pr-footer>div,.pr-subhead,.pr-wallet,.pr-event{display:flex;align-items:center}
.pr-heading{gap:12px}
.pr-panel{overflow:hidden}.pr-toolbar,.pr-subhead,.pr-wallet,.pr-footer,.pr-event{justify-content:space-between;gap:10px}
.pr-toolbar{flex-wrap:wrap;padding:16px 18px;border-bottom:1px solid var(--pr-edge)}.pr-tools{gap:7px}
.pr-segments{padding:3px;gap:2px;border:1px solid var(--line);background:var(--pr-surface);border-radius:9px}
.pr-segment{padding:6px 10px;font-size:.875rem;color:var(--muted);border-radius:6px;white-space:nowrap}
.pr-segment b{font-size:.75rem;margin-inline-start:2px;font-weight:550;font-variant-numeric:tabular-nums}
.pr-segment[aria-pressed=true]{background:var(--paper);color:var(--green);font-weight:650;box-shadow:0 1px 3px #15291d20,inset 0 0 0 1px var(--line)}
.pr-search{min-width:0;gap:6px;padding:0 10px;background:var(--paper);border:1px solid var(--line);border-radius:7px;color:var(--muted)}
.pr-search:focus-within{border-color:var(--green)}.pr-search input[type=search]{min-width:0;width:clamp(155px,18vw,254px);height:38px;background:none;border:0;margin:0;padding:0;box-shadow:none;outline:none;font-size:.875rem;color:var(--ink)}
.pr-filter,.pr-icon{display:inline-grid;place-items:center;position:relative;color:var(--green);border-radius:7px}
.pr-filter{width:39px;height:39px;border:1px solid var(--line)}.pr-filter.set,.pr-filter:hover,.pr-icon:hover{background:var(--soft)}
.pr-filter>b{position:absolute;right:-4px;top:-5px;font:600 .7rem/1.3 system-ui;background:var(--green);color:var(--paper);border-radius:9px;padding:1px 4px}
.pr-clear{display:flex;align-items:center;gap:5px;margin:6px 18px;padding:5px;color:var(--green);font-size:.8rem}
.pr-table-wrap{overflow:auto}.pr-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.pr-table th,.pr-table td{padding:8px 12px;text-align:left;white-space:nowrap}
.pr-table thead th{background:var(--pr-surface);font-size:.8rem;color:var(--muted);font-weight:580;border-bottom:1px solid var(--line)}
.pr-table tbody td,.pr-table tbody th{border-bottom:1px solid var(--pr-edge);font-size:.9rem}
.pr-table tbody tr:last-child>*{border-bottom:0}.pr-table tbody tr:focus-within,.pr-table tbody tr:hover{background:var(--pr-surface)}
.pr-table th:first-child{padding-left:18px}.pr-table .pr-end{width:50px;text-align:center}.pr-table .pr-amount{text-align:right}.pr-table tbody .pr-amount{font-size:.955rem;font-weight:640;color:var(--ink)}.pr-table .pr-login{font-size:.8rem;color:var(--muted)}
.pr-account{padding:3px 0;gap:10px;text-align:left;color:var(--ink);font-weight:640;max-width:20ch}
.pr-username{text-overflow:ellipsis;overflow:hidden}.pr-monogram{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:9px;background:var(--soft);border:1px solid var(--line);font:600 15px/1 Georgia,serif;color:var(--green)}
.pr-type{display:inline-flex;align-items:center;white-space:nowrap;border-radius:5px;padding:2px 8px;font-size:.76rem;font-weight:600}
.pr-cash{background:#e4f1ea;color:#285846}.pr-credit{background:#f4ead8;color:#775426}
.night .pr-cash{background:#283f34;color:#b8dcc5}.night .pr-credit{background:#423725;color:#ecd1a2}
.pr-state{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:.81rem}.pr-state::before{content:'';width:5px;height:5px;background:var(--green);border-radius:50%}.pr-state.off::before{background:var(--muted)}
.pr-icon{width:34px;height:34px}.pr-icon svg{width:17px;height:17px}.pr-empty{display:grid;justify-items:center;gap:10px;padding:48px 16px;color:var(--muted)}
#layer .pr-detail-modal{width:min(720px,100%);display:flex;flex-direction:column;overflow:hidden}
.pr-detail-modal .panelhead{flex:none;padding:18px 22px}.pr-detail-modal .panelhead h2{overflow-wrap:anywhere}
.pr-detail-modal .mcontent{overflow:auto;overscroll-behavior:contain;padding:0 22px;min-height:0}
.pr-detail-modal .pr-tabs{position:sticky;top:0;z-index:1;background:var(--paper);overflow-x:auto;margin:0;padding-top:4px}.pr-profile-panel[hidden]{display:none}.pr-profile-panel:not(#pr-panel-profile){padding:12px 0 18px}.pr-detail-modal .pr-footer{justify-content:flex-start;gap:8px}
.pr-wallet{padding:15px 16px;background:var(--pr-surface);border:1px solid var(--line);border-radius:10px;align-items:flex-start}
.pr-wallet>div>span,.pr-event small,.pr-context,.pr-limit{font-size:.8125rem;color:var(--muted)}
.pr-wallet strong{display:block;margin-top:4px;font-size:1.65rem;line-height:1.25;font-variant-numeric:tabular-nums;letter-spacing:-.035em}.pr-wallet strong small{font-size:.82rem;letter-spacing:0;font-weight:500;color:var(--muted)}
.pr-context{justify-content:space-between;gap:10px;margin:9px 2px 18px;overflow-wrap:anywhere}
.pr-tabs{border-bottom:1px solid var(--line);gap:12px;margin:0 0 12px}.pr-tab{padding:9px 2px;color:var(--muted);font-size:.875rem;border-bottom:2px solid transparent;white-space:nowrap}
.pr-tab[aria-pressed=true]{color:var(--green);border-bottom-color:var(--green);font-weight:650}
.pr-subhead{min-height:35px}.pr-subhead h3{font-size:.875rem}.pr-events{list-style:none;margin:0;padding:0}.pr-events li{border-bottom:1px solid var(--pr-edge)}
.pr-event{width:100%;padding:11px 1px;text-align:left;color:var(--ink)}button.pr-event:hover{background:var(--pr-surface)}
.pr-event-id,.pr-event-value{display:grid;gap:3px;min-width:0}.pr-event-id b{font:550 .815rem/1.4 ui-monospace,monospace;overflow-wrap:anywhere}.pr-event-value{justify-items:end;white-space:nowrap;font-size:.94rem;font-variant-numeric:tabular-nums}
.pr-event .done{color:var(--green)}.pr-event .waiting{color:#89601a}.pr-event .failed{color:#a94435}.night .pr-event .waiting{color:#e7c886}.night .pr-event .failed{color:#efaa97}
.pr-footer{padding:16px 0;margin-top:12px;border-top:1px solid var(--line);flex-wrap:wrap}.pr-footer>div{gap:5px}.pr-limit{display:block;margin-top:4px}.pr-balance-row{margin-bottom:16px}
@media(max-width:1060px) and (min-width:721px){.pr-table th,.pr-table td{padding-inline:8px}.pr-account{gap:6px}.pr-table .pr-login{font-size:.75rem}.pr-monogram{display:none}}
@media(max-width:720px){
  .player-page .pagehead{flex-wrap:nowrap;align-items:center}.pr-heading{gap:7px}.pr-heading h1{font-size:1.6rem}
  .pr-toolbar{gap:10px;padding:12px}.pr-segments{max-width:100%}.pr-segment{min-height:35px;padding:5px 9px}
  .pr-tools{width:100%}.pr-search{flex:1}.pr-search input[type=search]{width:100%;font-size:1rem;height:40px}.pr-filter{height:42px;width:42px;flex:none}
  .pr-table{min-width:0;table-layout:fixed}.pr-table .pr-owner,.pr-table .pr-status,.pr-table .pr-login{display:none}
  .pr-table th,.pr-table td{padding:6px 4px}.pr-table th:first-child{padding-left:10px;width:36%}.pr-table th:nth-child(3){width:16%}.pr-table th:nth-child(4){width:34%}.pr-table th.pr-end{width:14%}
  .pr-icon{width:100%;height:44px}.pr-account{min-height:44px;max-width:100%;gap:0}.pr-monogram{display:none}
  .pr-table tbody .pr-amount{font-size:.86rem}.pr-type{padding:2px 5px;font-size:.72rem}.pr-table .pr-amount small{font-size:.65rem}
  .pr-detail-modal .panelhead,.pr-detail-modal .mcontent{padding-inline:16px}.pr-tab{min-height:44px}
}

/* Member directory */
.pr-sr{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.player-page .pagehead .actions{display:flex;align-items:center;gap:7px}
.player-page .pr-toolbar{align-items:center;justify-content:flex-start;gap:10px 16px}
.player-page .pr-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-inline-start:auto}
.player-page .pr-search input[type=search]{width:clamp(150px,15vw,250px)}
.pr-entity{min-width:0}.pr-entity agent-parent-picker{margin:0}
.pr-entity .desk-select-trigger,.pr-date-toggle{border:1px solid var(--line);background:var(--paper);color:var(--ink);font-size:.875rem;font-weight:500;border-radius:7px;min-height:40px;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.pr-entity .desk-select-trigger{margin:0;width:auto;max-width:220px;padding:8px 28px 8px 11px}
.pr-entity .picker-caption{min-width:0;overflow:hidden;text-overflow:ellipsis}
.pr-date-toggle{padding:7px 11px}.pr-date-toggle:hover,.pr-entity .desk-select-trigger:hover{background:var(--pr-surface)}
.pr-date-toggle svg,.pr-entity .desk-select-trigger svg{color:var(--green)}
.pr-table-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:0 18px;border-bottom:1px solid var(--pr-edge)}
.pr-view-list,.pr-meta{display:flex;align-items:center}
.pr-view-list{gap:20px}.pr-view{display:flex;align-items:center;gap:7px;padding:14px 0 11px;border-bottom:3px solid transparent;font-size:.875rem;font-weight:540;color:var(--muted);white-space:nowrap}
.pr-view[aria-pressed=true]{border-color:var(--green);color:var(--green);font-weight:660}
.pr-meta{gap:10px;font-size:.8125rem;color:var(--muted)}
.pr-reset{color:var(--green);text-decoration:underline;text-underline-offset:2px}
.pr-grid-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.member-grid{width:100%;text-align:left;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.member-grid th,.member-grid td{padding:10px 12px;white-space:nowrap;border-bottom:1px solid var(--pr-edge);background:var(--paper);vertical-align:middle;text-align:left;font-size:.875rem}
.member-grid thead th{font-size:.8125rem;color:var(--muted);font-weight:560;background:var(--pr-surface);padding-block:10px}
.member-grid th:first-child{position:sticky;left:0;z-index:1;padding-left:18px}.member-grid tbody tr:hover>*{background:var(--pr-surface)}
.member-grid tbody tr:last-child>*{border-bottom:0}
.member-grid .num{text-align:right}.member-grid .pr-balance,.member-grid .neg,.member-grid .pos{font-weight:650}.member-grid .neg{color:#a7413f}.member-grid .pos{color:var(--green)}.night .member-grid .neg{color:#f29c96}
.pr-wallet-cell,.pr-wallet-steps{display:flex;align-items:center}
.pr-wallet-cell{justify-content:flex-end;gap:12px}.pr-wallet-amount{display:inline-block;min-width:8ch}
.pr-wallet-steps{gap:4px}
.pr-wallet-step{display:grid;place-items:center;width:29px;height:29px;padding:0;border:1px solid var(--pr-edge);border-radius:6px;background:var(--paper);color:var(--green);font:500 1.1rem/1 system-ui}
.pr-wallet-step[data-a="playerCreditDown"]{color:#884a43}.night .pr-wallet-step[data-a="playerCreditDown"]{color:#dfb1a6}
.pr-wallet-step:hover:enabled,.pr-wallet-step:focus-visible{background:var(--pr-surface);border-color:currentColor}
.pr-wallet-step:disabled{color:var(--muted);opacity:.45;cursor:default}
.pr-row-tools{display:grid;grid-template-columns:34px 34px;grid-template-areas:"quick more";align-items:center;justify-content:end;justify-items:center;gap:3px}
.pr-row-tools:has(>.pr-account-switch){grid-template-columns:40px 34px 34px;grid-template-areas:"enabled quick more"}
.pr-row-tools>.pr-account-switch{grid-area:enabled}.pr-row-tools>.pr-icon{grid-area:quick}.pr-row-tools>[data-a="memberActions"]{grid-area:more}
.pr-row-tools>[data-a="memberActions"] svg{width:20px;height:20px}
.member-grid thead th:last-child{width:1%;text-align:center}
.member-grid tbody tr.pr-disabled>*{color:var(--muted);background:color-mix(in srgb,var(--line) 45%,var(--paper))}
.member-grid .pr-disabled :is(.pr-account,.pr-repeat,.pr-state,.pr-type,.pr-monogram){color:var(--muted)}
.member-grid .pr-disabled :is(.pr-type,.pr-monogram){background:color-mix(in srgb,var(--line) 74%,var(--paper))}
.pr-stack{display:grid;gap:1px}.pr-stack>b{font-weight:550}.pr-stack small{color:var(--muted);font-size:.78rem;font-weight:430}
.pr-repeat{color:#915c25}.night .pr-repeat{color:#e4be91}.member-grid .pr-account{max-width:none}
#layer .modal:has(.pr-commands){width:min(320px,100%)}#layer .modal:has(.pr-commands) .mcontent{padding:8px}
.pr-commands{display:grid;gap:3px}.pr-commands button{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;border-radius:7px}.pr-commands button:hover,.pr-commands button:focus-visible{background:var(--soft)}
#layer .pr-calendar{width:min(348px,100%)}.pr-calendar .panelhead{padding:13px 16px}.pr-calendar .panelhead h2{font-size:1.04rem}.pr-calendar .mcontent{padding:14px 16px}
.pr-presets{display:flex;flex-wrap:wrap;gap:5px}.pr-presets button,.pr-month-step{padding:5px 7px;font-size:.82rem;border:1px solid var(--line);border-radius:6px;color:var(--green)}
.pr-presets button:hover,.pr-presets button[aria-pressed=true]{background:var(--soft)}
.pr-month-heading{display:flex;align-items:center;justify-content:space-between;margin:15px 0 9px}.pr-month-step{display:grid;place-items:center;min-width:31px;min-height:30px}.pr-month-step.prev svg{transform:rotate(180deg)}
.pr-month-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:2px 0;font-variant-numeric:tabular-nums}
.pr-month-grid>b{color:var(--muted);font-size:.74rem;font-weight:500;padding:6px 0}
.pr-day{padding:6px 0;font-size:.9rem;border-radius:5px;min-height:32px}.pr-day.edge{background:var(--green);color:var(--paper)}.pr-day.inside,.pr-day:not(.edge):hover{background:var(--soft)}.pr-day[aria-current=date]{font-weight:750;text-decoration:underline;text-underline-offset:3px}
.pr-date-fields{margin-top:13px}.pr-date-fields input[type=date]{min-width:0;font-size:.84rem}
@media(min-width:721px){#layer .overlay:has(.pr-calendar){background:transparent;backdrop-filter:none}#layer .pr-calendar{position:fixed;border:1px solid var(--line)}}
@media(max-width:1150px){.pr-table-head{padding-inline:14px}.member-grid th,.member-grid td{padding-inline:9px}.player-page .pr-toolbar{padding:13px 14px}.pr-view-list{gap:14px}}
@media(max-width:900px){.player-page .pr-search{flex:1 1 190px}.player-page .pr-search input[type=search]{width:100%}}
@media(max-width:720px){
  .player-page .pagehead{flex-wrap:wrap}.player-page .pagehead .actions{margin-left:auto}.player-page .pr-toolbar{padding:12px;gap:10px}
  .player-page .pr-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%;flex-basis:100%}
  .pr-entity{grid-column:1}.pr-date-toggle{grid-column:2;justify-content:center;font-size:.8rem}.pr-entity .desk-select-trigger{width:100%;max-width:none}
  .player-page .pr-search{flex-basis:100%}.player-page .pr-search input[type=search]{width:100%;min-width:0}
  .pr-table-head{padding:0 12px;gap:0}.pr-view-list{width:100%;gap:16px}.pr-view{min-height:43px;padding:9px 0 6px;font-size:.84rem}.pr-view .ico{display:none}.pr-meta{padding:5px 0 7px}
  .member-grid th,.member-grid td{padding:8px;font-size:.84rem}.member-grid th:first-child{padding-left:10px}.member-grid .pr-icon{width:34px;height:40px}
  .member-grid .pr-account{min-height:40px}.member-grid.members :is(th,td):nth-child(2),.member-grid.members :is(th,td):nth-child(6){display:none}
  .member-grid.members .pr-op .pr-icon:not([data-a="memberActions"]){display:none}
  .member-grid.members .pr-row-tools{grid-template-columns:34px;grid-template-areas:"more"}
  .member-grid.members .pr-row-tools:has(>.pr-account-switch){grid-template-columns:40px 34px;grid-template-areas:"enabled more"}
  .pr-wallet-cell{flex-direction:column-reverse;align-items:flex-end;gap:3px}.pr-wallet-step{width:34px;height:32px}
  .member-grid .pr-stack small{font-size:.75rem}.member-grid .pr-state{font-size:.76rem}
  .member-grid.finance th:first-child{box-shadow:1px 0 0 var(--line)}.pr-date-fields{grid-template-columns:1fr 1fr}
  .pr-date-fields .field{min-width:0}.pr-meta .pr-reset{padding-left:0}
}

.pr-account-filters{display:flex;align-items:center;flex-wrap:wrap;gap:5px 14px}
.pr-online-switch{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 2px;font-size:.875rem;font-weight:550;color:var(--muted);white-space:nowrap}
.pr-online-switch[aria-checked=true]{color:var(--green)}
.pr-switch-track{display:inline-flex;align-items:center;padding:2px;width:30px;height:17px;border:1px solid var(--muted);border-radius:14px;background:var(--pr-surface)}
.pr-switch-track::after{content:"";width:11px;height:11px;border-radius:50%;background:var(--muted)}
.pr-account-switch{display:inline-grid;place-items:center;min-width:40px;min-height:40px;padding:0 4px;border-radius:7px}
:is(.pr-online-switch,.pr-account-switch)[aria-checked=true] .pr-switch-track{background:var(--green);border-color:var(--green);justify-content:flex-end}
:is(.pr-online-switch,.pr-account-switch)[aria-checked=true] .pr-switch-track::after{background:var(--paper)}
@media(max-width:720px){.pr-account-filters{width:100%;justify-content:space-between;gap:4px 8px}.pr-online-switch{min-height:44px}}

.pr-account .pr-online-dot{display:inline-block;width:8px;height:8px;margin-inline-start:6px;border-radius:50%;background:#009c83;vertical-align:middle}
.night .pr-account .pr-online-dot{background:#40d5b3}

.pr-state.off{color:#a53532}
.pr-profile-section :is(input,textarea)[readonly]{color:var(--muted);background:color-mix(in srgb,var(--line) 44%,var(--paper));border-color:transparent;box-shadow:none;cursor:text}
.pr-profile-section.pr-profile-facts .formgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
.pr-profile-section{border:0;padding:0;min-width:0;margin:18px 0}
.pr-profile-section legend{font-size:.96rem;padding:0;margin:0 0 10px;font-weight:650}
.pr-profile-section .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.pr-profile-section .field{min-width:0}
.pr-profile-section textarea{display:block;width:100%;margin-top:5px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);padding:9px 11px;font:inherit;line-height:1.35;min-height:40px;resize:vertical}
.pr-profile-section textarea:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.pr-profile-pause{display:none;grid-column:1/-1;color:var(--muted);font-size:.86rem}
.pr-profile-section:has(select[name="enabled"] option[value="off"]:checked) .pr-profile-pause{display:block}
form[data-form="memberEdit"] .formop{position:sticky;bottom:0;background:var(--paper);margin:0 -22px;padding:12px 22px;border-top:1px solid var(--line)}
@media(max-width:560px){
  .pr-detail-modal .mcontent{padding-inline:15px}
  .pr-profile-section .formgrid{grid-template-columns:minmax(0,1fr)}
  .pr-profile-section.pr-profile-facts .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  form[data-form="memberEdit"] .formop{margin-inline:-15px;padding-inline:15px}
}
.pr-state.off::before{background:currentColor}
.night .pr-state.off{color:#f5a49f}

.player-page .pr-search{padding-inline-start:4px;gap:2px}.pr-search-trigger{order:-1;display:grid;place-items:center;align-self:stretch;min-width:32px;color:var(--muted);padding:0 6px}.pr-search-trigger:hover{color:var(--green)}
