:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #182d41; background: #f7f9fa; font-size: 16px; letter-spacing: 0; }
* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
body { margin: 0; }
a { color: #103b70; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #103b70; border-radius: 6px; background: #103b70; color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.35; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:hover:not(:disabled), .button:hover { filter: brightness(.94); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #2790c2; outline-offset: 3px; }
.secondary { background: #fff; color: #103b70; border-color: #bccbd5; }
.compact { padding: 8px 12px; font-size: 14px; }
.icon-button { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; font-size: 25px; background: transparent; color: #182d41; border-color: transparent; }
.icon-button.secondary { border-color: #bccbd5; background: #fff; }
.text-button { display: inline; background: none; color: #103b70; border: 0; padding: 0; min-height: 44px; text-align: left; }
.danger { color: #923333; }
.destructive { background: #943737; border-color: #943737; }
.staff-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #dce4e9; background: #fff; padding: max(14px, env(safe-area-inset-top)) max(24px, calc((100% - 1240px) / 2)) 14px; }
.brand { display: flex; min-width: 0; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; }
.brand img { object-fit: contain; flex: 0 0 40px; }
.brand small { display: block; font-size: 12px; color: #586b7a; font-weight: 450; margin-top: 4px; }
.staff-header > button { flex-shrink: 0; }
main { max-width: 1288px; margin: auto; padding: 24px 24px max(40px, env(safe-area-inset-bottom)); }
nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
nav a { text-decoration: none; }
nav [aria-current] { font-weight: 650; }
.title-row, .actions, .list-heading, .detail-title, .grant-title, .event-title { display: flex; align-items: center; gap: 12px; }
.title-row, .list-heading, .detail-title, .grant-title, .event-title { justify-content: space-between; }
.title-row { margin-block: 28px 22px; flex-wrap: wrap; }
.actions { flex-wrap: wrap; }
h1 { font-size: 28px; margin: 6px 0 0; line-height: 1.2; }
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 17px; margin: 0; }
.eyebrow { color: #586b7a; font-size: 14px; margin: 0; }
.terms { font-size: 14px; line-height: 1.7; margin: 0; padding-block: 15px; border-block: 1px solid #dce4e9; }
.filters { display: flex; align-items: end; gap: 12px; margin-block: 24px; }
.filters > label { flex: 1; max-width: 600px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
input, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #aebfca; border-radius: 5px; background: #fff; color: #182d41; padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 400; }
textarea { resize: vertical; }
input:disabled, textarea:disabled { background: #f1f4f6; opacity: 1; color: #526273; }
.list-heading { gap: 16px; margin-block: 22px 16px; flex-wrap: wrap; }
.muted { color: #586b7a; font-size: 13px; line-height: 1.6; }
.account-list { border-block: 1px solid #dce4e9; }
.account-columns, .account-row { display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(210px, 1fr) minmax(150px, 1fr) 128px; align-items: center; gap: 24px; padding: 16px; }
.account-columns { padding-block: 12px; background: #edf2f5; font-size: 12px; color: #526273; }
.account-row { background: #fff; border-top: 1px solid #e6ecef; }
.account-row > * { min-width: 0; }
.account-identity { display: grid; align-content: center; }
.account-identity .email { line-height: 1.5; }
.email { overflow-wrap: anywhere; }
.status { display: inline-block; font-size: 12px; font-weight: 650; }
.green { color: #126343; }
.amber { color: #895000; }
.red { color: #923333; }
.row-balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.row-balances dt { font-size: 12px; color: #586b7a; }
.row-balances dd { font-size: 22px; font-weight: 650; margin: 4px 0 0; }
.expiration { font-size: 13px; line-height: 1.6; color: #526273; }
.mobile-label { display: none; }
.empty { padding: 32px 16px; text-align: center; color: #586b7a; }
.access { padding-block: 40px; }
.access h2 { margin-bottom: 20px; }
.notice { padding: 12px 14px; border-left: 3px solid #287ba3; background: #edf5fa; line-height: 1.6; overflow-wrap: anywhere; font-size: 14px; }
.notice.error { border-color: #ae3838; background: #fff0ef; color: #882b2b; }
dialog { width: min(780px, calc(100% - 24px)); max-height: calc(100dvh - 32px); border: 1px solid #bdccd7; border-radius: 8px; padding: 0; color: #182d41; background: #fff; box-shadow: 0 12px 70px #182d4133; }
dialog::backdrop { background: #15243670; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #dce4e9; }
.dialog-head h2 { font-size: 20px; }
.dialog-body { padding: 24px; }
.dialog-body > .actions { margin-top: 20px; }
.detail-title { flex-wrap: wrap; align-items: start; }
.detail-title h3 { flex: 1; min-width: 160px; line-height: 1.6; }
.wallet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-block: 24px; padding-block: 18px; border-block: 1px solid #dce4e9; }
.wallet dt { font-size: 12px; color: #586b7a; }
.wallet dd { font-size: 25px; font-weight: 650; margin: 6px 0 0; }
.checkout-list { margin-bottom: 24px; }
.checkout-row { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-block: 16px; border-bottom: 1px solid #e6ecef; font-size: 14px; }
.checkout-row code { flex-basis: 100%; font-size: 12px; overflow-wrap: anywhere; }
.grant-row { padding-block: 20px; border-bottom: 1px solid #e6ecef; }
.grant-facts { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 8px 18px; font-size: 14px; }
.grant-facts dt { color: #586b7a; }
.grant-facts dd { margin: 0; overflow-wrap: anywhere; }
.history { margin-top: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding-block: 18px; border-bottom: 1px solid #e6ecef; font-size: 14px; }
.event-title { flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.event-title time { font-size: 12px; color: #586b7a; }
.timeline p { margin-block: 6px; overflow-wrap: anywhere; }
.reason { white-space: pre-wrap; line-height: 1.6; }
.timeline code { font-size: 12px; overflow-wrap: anywhere; }
fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
fieldset > * + * { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 20px; }
#expiration-zone { margin-top: 8px; }
@media (max-width: 900px) {
  .account-columns { display: none; }
  .account-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; }
  .account-row > button { justify-self: end; }
  .expiration { display: grid; }
  .mobile-label { display: block; font-size: 12px; }
}
@media (max-width: 600px) {
  .staff-header { padding-inline: 16px; gap: 12px; }
  .brand { font-size: 13px; gap: 8px; }
  .staff-header > button { padding: 8px 10px; font-size: 13px; }
  main { padding: 22px 16px 40px; }
  .title-row { align-items: start; }
  .title-row > .actions { width: 100%; }
  h1 { font-size: 26px; }
  .filters { flex-wrap: wrap; }
  .filters > label { flex-basis: 100%; }
  .account-row { grid-template-columns: minmax(0,1fr) auto; padding: 18px 12px; gap: 18px 12px; }
  .account-identity, .row-balances { grid-column: 1 / -1; }
  .row-balances { max-width: 320px; }
  .dialog-head { padding-inline: 16px; }
  .dialog-body { padding: 20px 16px; }
  .detail-title h3 { flex-basis: 100%; }
  .dialog-head h2 { font-size: 18px; }
  .wallet { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 20px; }
  .form-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .form-grid input[type=number] { max-width: 120px; }
  .grant-facts { grid-template-columns: 64px minmax(0,1fr); gap: 8px 12px; }
}
