/* Premier Kings: app screens (auth, join, members area). Requires tokens.css + components.css.
   The member area is mostly light with a dark royal header: it's a working tool (brief §4.1). */

/* ---------------------------------------------------------------- Shared bits */
.pk-card { background: var(--pk-white); border: 1px solid var(--pk-border); border-radius: 16px; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; margin: 0; min-width: 0; }
fieldset.pk-card, fieldset.pk-pay-summary { border-style: solid; }
.pk-card legend, .pk-pay-summary legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.pk-card legend + *, .pk-pay-summary legend + * { clear: both; }
.pk-h4 { font-size: var(--pk-text-h4); font-weight: 700; margin: 0; }
.pk .pk-h3, .pk .pk-h4 { font-family: var(--pk-font-body); text-transform: none; letter-spacing: normal; }
.pk-app-title { margin-bottom: 24px; font-size: clamp(28px, 3.5vw, 40px); }
.pk-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.pk-form-grid__full { grid-column: 1 / -1; }
.pk-field--inline { flex-direction: row; align-items: center; gap: 8px; }
.pk-field--inline select { min-height: 44px; width: auto; }
.pk-field--password { position: relative; }
.pk-field__toggle { position: absolute; right: 6px; top: 30px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--pk-text-muted); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.pk-field--password input { padding-right: 48px; }
.pk-field__aside { align-self: flex-end; font-size: 13px; font-weight: 700; }
.pk-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; min-height: 24px; }
.pk-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pk-royal-600); flex: none; }
.pk-toggle { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.pk-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pk-toggle__track { width: 44px; height: 26px; border-radius: 999px; background: var(--pk-grey-400); position: relative; flex: none; transition: background var(--pk-dur) var(--pk-ease); }
.pk-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: var(--pk-white); transition: transform var(--pk-dur) var(--pk-ease); box-shadow: var(--pk-shadow-sm); }
.pk-toggle input:checked + .pk-toggle__track { background: var(--pk-success); }
.pk-toggle input:checked + .pk-toggle__track::after { transform: translateX(18px); }
.pk-toggle input:focus-visible + .pk-toggle__track { outline: 3px solid var(--pk-focus); outline-offset: 2px; }
.pk-upload-field { flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
.pk-upload-field > span { display: flex; flex-direction: column; gap: 4px; }
.pk-upload { width: 96px; height: 96px; border-radius: 999px; border: 2px dashed var(--pk-border); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; background: var(--pk-grey-100); color: var(--pk-text-muted); font-weight: 700; font-size: 28px; flex: none; }
.pk-upload img { width: 100%; height: 100%; object-fit: cover; }
.pk-upload img[hidden], .pk-upload span[hidden] { display: none; }
.pk-avatar--40 { width: 40px; height: 40px; font-size: 14px; }
.pk-app-preview { display: flex; align-items: center; gap: 10px; padding: 24px; border: 2px dashed var(--pk-border); border-radius: 12px; color: var(--pk-text-muted); }

.pk-stepper { display: flex; align-items: center; min-height: 52px; border: 1px solid var(--pk-border); border-radius: var(--pk-radius-md); background: var(--pk-grey-100); max-width: 320px; }
.pk-stepper__btn { width: 52px; height: 52px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--pk-royal-600); border-radius: var(--pk-radius-md); }
.pk-stepper__btn:disabled { color: var(--pk-grey-400); cursor: not-allowed; }
.pk-stepper__value { flex: 1; text-align: center; font-weight: 700; font-size: 17px; }
.pk-quick-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-strip-year { margin: 4px 0 -8px; font-size: var(--pk-text-xs); font-weight: 700; letter-spacing: .08em; color: var(--pk-text-muted); }

/* ---------------------------------------------------------------- Auth (P14) */
.pk-auth { display: grid; min-height: calc(100vh - 64px); }
@media (min-width: 1024px) { .pk-auth { grid-template-columns: 1fr 1fr; min-height: calc(100vh - 80px); } }
.pk-auth__panel { display: none; position: relative; overflow: hidden; background: var(--pk-royal-950); color: var(--pk-white); padding: 64px; }
@media (min-width: 1024px) { .pk-auth__panel { display: flex; align-items: center; } }
.pk-auth__panel-inner { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.pk-auth__slogan { font-family: var(--pk-font-display); font-size: 44px; line-height: 1.05; text-transform: uppercase; margin: 8px 0 0; }
.pk-auth__panel .pk-lead { color: var(--pk-text-inverse-muted); }
.pk-logo__mark--lg { width: 64px; height: 68px; }
.pk-logo__mark--sm { width: 28px; height: 30px; }
.pk-logo__word--sm { font-family: var(--pk-font-display); font-size: 17px; letter-spacing: .03em; color: var(--pk-white); }
.pk-auth__form { display: flex; align-items: center; justify-content: center; padding: 32px var(--pk-gutter) 64px; }
.pk-auth__card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.pk-auth__alt { text-align: center; font-size: 14px; color: var(--pk-text-muted); margin: 16px 0 0; }

/* ---------------------------------------------------------------- Join (P4/P5) */
.pk-steps-indicator { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pk-steps-indicator li { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; color: var(--pk-grey-400); }
.pk-steps-indicator li span { height: 4px; border-radius: 999px; background: var(--pk-grey-200); }
.pk-steps-indicator li.is-done span, .pk-steps-indicator li.is-current span { background: var(--pk-gold-500); }
.pk-steps-indicator li.is-current, .pk-steps-indicator li.is-done { color: var(--pk-text); }
.pk-steps-indicator--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 479px) { .pk-steps-indicator li { font-size: 11px; } }
.pk-code-input { font-family: var(--pk-font-display) !important; font-size: 32px !important; letter-spacing: .3em; text-align: center; max-width: 260px; min-height: 60px !important; }
.pk-join__code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pk-join__code-actions .pk-btn--ghost, .pk-verified-email .pk-btn--ghost { color: var(--pk-link); min-height: 44px; padding: 0; font-size: 15px; }
.pk-verified-email { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 20px; border-radius: var(--pk-radius-md); background: var(--pk-success-100); color: var(--pk-success); }
.pk-verified-email > span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.pk-verified-email form { margin: 0; }
.pk-join { display: flex; flex-direction: column; gap: 24px; }
.pk-join.is-stepping .pk-join__step:not(.is-active) { display: none; }
.pk-join__nav { display: flex; justify-content: space-between; gap: 12px; }
.pk-join__nav[hidden] { display: none; }
.pk-welcome { gap: 20px; }
.pk-welcome .pk-player-card { width: 100%; max-width: 360px; text-align: left; }
.pk-next-steps { width: 100%; text-align: left; background: var(--pk-bg-subtle); border-radius: var(--pk-radius-md); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pk-next-steps p { display: flex; align-items: center; gap: 10px; margin: 0; }

/* ---------------------------------------------------------------- Payment summary & status (§6.5) */
.pk-pay-summary { background: var(--pk-royal-900); border: 0; border-radius: var(--pk-radius-lg); padding: clamp(20px, 3vw, 28px); color: var(--pk-white); display: flex; flex-direction: column; gap: 14px; margin: 0; min-width: 0; }
.pk-pay-summary .pk-h3, .pk-pay-summary .pk-h4 { color: var(--pk-white); }
.pk-pay-summary__line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(233, 190, 58, .2); color: var(--pk-text-inverse-muted); font-size: 15px; }
.pk-pay-summary__line .pk-num { color: var(--pk-white); white-space: nowrap; }
.pk-pay-summary__total { display: flex; justify-content: space-between; align-items: baseline; }
.pk-pay-summary__total .pk-num { font-family: var(--pk-font-display); font-size: 32px; color: var(--pk-gold-400); }
.pk-pay-summary__secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--pk-grey-400); }

.pk-pay-status { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); background: var(--pk-white); border-radius: var(--pk-radius-lg); box-shadow: var(--pk-shadow-md); }
.pk-pay-status .pk-h1, .pk-pay-status .pk-h2 { text-wrap: balance; }
.pk-pay-status__icon { width: 88px; height: 88px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.pk-pay-status--success .pk-pay-status__icon { background: var(--pk-success-100); color: var(--pk-success); }
.pk-pay-status__icon--crown { background: var(--pk-gold-100) !important; color: var(--pk-gold-700) !important; }
.pk-pay-status--failed .pk-pay-status__icon { background: var(--pk-danger-100); color: var(--pk-danger); }
.pk-pay-status--pending .pk-pay-status__icon { width: 56px; height: 56px; border: 4px solid var(--pk-warning); border-top-color: transparent; animation: pk-spin 900ms linear infinite; }
.pk-pay-status__amount { font-family: var(--pk-font-display); font-size: var(--pk-text-stat); line-height: 1; margin: 0; color: var(--pk-royal-900); }

/* ---------------------------------------------------------------- Member shell (§6.3) */
.pk--member { background: var(--pk-bg-subtle); }
.pk-header--member { position: sticky; }
.pk-header__bar--wide { max-width: 1280px; height: 64px !important; }
.pk-header__label { font-size: 12px; color: var(--pk-grey-400); border-left: 1px solid var(--pk-border-inverse); padding-left: 10px; margin-left: 2px; white-space: nowrap; }
.pk-header--member .pk-logo { gap: 8px; white-space: nowrap; }
@media (max-width: 400px) { .pk-header__label { display: none; } }
.pk-menu { position: relative; }
.pk-menu__trigger { list-style: none; cursor: pointer; border-radius: 999px; display: flex; }
.pk-menu__trigger::-webkit-details-marker { display: none; }
.pk-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--pk-white); border-radius: var(--pk-radius-md); box-shadow: var(--pk-shadow-lg); padding: 8px; display: flex; flex-direction: column; z-index: 70; }
.pk-menu__name { display: flex; flex-direction: column; padding: 8px 12px 10px; margin: 0 0 4px; border-bottom: 1px solid var(--pk-border); font-size: 14px; }
.pk-menu__name span { color: var(--pk-text-muted); font-size: 13px; }
.pk .pk-menu__panel a, .pk-menu__panel button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; border-radius: 8px; color: var(--pk-grey-800); font: inherit; font-size: 15px; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.pk .pk-menu__panel a:hover, .pk-menu__panel button:hover { background: var(--pk-royal-50); color: var(--pk-royal-700); }
.pk-menu__panel form { margin: 0; }

.pk-shell { flex: 1; display: flex; width: 100%; max-width: 1280px; margin: 0 auto; }
.pk-shell__main { flex: 1; min-width: 0; padding: clamp(20px, 3vw, 32px) var(--pk-gutter) calc(88px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .pk-shell__main { padding-bottom: 48px; } }
.pk-member-nav { display: none; }
@media (min-width: 1024px) {
  .pk-member-nav { display: flex; flex-direction: column; gap: 2px; width: 220px; flex: none; padding: 24px 16px; border-right: 1px solid var(--pk-border); background: var(--pk-white); }
}
.pk .pk-member-nav__item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--pk-grey-800); min-height: 44px; }
.pk .pk-member-nav__item:hover { background: var(--pk-royal-50); color: var(--pk-royal-700); }
.pk .pk-member-nav__item[aria-current="page"] { background: var(--pk-royal-100); color: var(--pk-royal-600); }
.pk-member-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--pk-white); border-top: 1px solid var(--pk-border); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 1024px) { .pk-member-tabs { display: none; } }
.pk .pk-member-tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; min-height: 56px; font-size: 11px; font-weight: 700; color: var(--pk-text-muted); }
.pk .pk-member-tabs a[aria-current="page"] { color: var(--pk-royal-600); }
.pk-dues-banner { flex-wrap: wrap; }
.pk-dues-banner > span { flex: 1; min-width: 200px; }

/* ---------------------------------------------------------------- App screens */
.pk-app { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.pk-app--narrow { max-width: var(--pk-container-narrow); }
.pk-app__h1 { font-family: var(--pk-font-display); font-weight: 400; font-size: clamp(26px, 3vw, 32px); line-height: 1.05; text-transform: uppercase; margin: 0; }
.pk-app__intro { display: grid; gap: 16px; align-items: center; }
@media (min-width: 768px) { .pk-app__intro { grid-template-columns: 1fr minmax(280px, 340px); } }
.pk-app__section { display: flex; flex-direction: column; gap: 10px; }
.pk-app__section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pk-app__section-head h2 { font-family: var(--pk-font-body); font-size: 15px; font-weight: 700; margin: 0; text-transform: none; }
.pk .pk-app__section-head a { font-size: 14px; font-weight: 700; }
.pk-app__note { font-size: 14px; }
.pk-dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.pk-next-run-card { gap: 8px; }

.pk-standing { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: var(--pk-radius-pill); width: fit-content; }
.pk-standing--good { background: var(--pk-success-100); color: var(--pk-success); }
.pk-standing--owing { background: var(--pk-warning-100); color: var(--pk-warning); }
.pk-standing--suspended { background: var(--pk-danger-100); color: var(--pk-danger); }
.pk-standing--lg { font-size: 15px; padding: 8px 16px; }
.pk-standing-card { background: var(--pk-royal-900); border-radius: 16px; padding: 24px; color: var(--pk-white); display: flex; flex-direction: column; gap: 14px; }
.pk-standing-card__line { margin: 0; font-size: 16px; color: var(--pk-text-inverse-muted); }
.pk-standing-card__line strong { color: var(--pk-white); }

.pk-month-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pk-month-strip__cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pk-month-strip__box { width: 100%; aspect-ratio: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--pk-border); background: var(--pk-white); color: var(--pk-royal-950); }
.pk-month-strip__label { font-size: 11px; font-weight: 700; color: var(--pk-text-muted); }
.pk-month-strip__cell--paid .pk-month-strip__box { background: var(--pk-gold-500); border-color: var(--pk-gold-500); }
.pk-month-strip__cell--due .pk-month-strip__box { border: 1.5px solid var(--pk-warning); }
.pk-month-strip__cell--overdue .pk-month-strip__box { background: var(--pk-danger); border-color: var(--pk-danger); color: var(--pk-white); }
.pk-month-strip__cell--pre .pk-month-strip__box { background: repeating-linear-gradient(45deg, var(--pk-grey-200) 0 4px, transparent 4px 8px); }
.pk-month-strip__cell.is-selected .pk-month-strip__box { box-shadow: 0 0 0 2px var(--pk-royal-600); background: var(--pk-royal-100); border-color: var(--pk-royal-600); color: var(--pk-royal-600); }
.pk-month-strip--dark .pk-month-strip__box { background: transparent; border-color: rgba(201, 191, 221, .35); }
.pk-month-strip--dark .pk-month-strip__cell--paid .pk-month-strip__box { background: var(--pk-gold-500); color: var(--pk-royal-950); }
.pk-month-strip--dark .pk-month-strip__cell--overdue .pk-month-strip__box { background: var(--pk-danger); }
.pk-month-strip--dark .pk-month-strip__cell--due .pk-month-strip__box { border-color: var(--pk-gold-400); }
.pk-month-strip--dark .pk-month-strip__label { color: var(--pk-text-inverse-muted); }
@media (min-width: 480px) { .pk-month-strip:not(.pk-month-strip--dark) { grid-template-columns: repeat(12, 1fr); } }

.pk-player-card { position: relative; overflow: hidden; background: var(--pk-royal-900); border-radius: 16px; padding: 20px; color: var(--pk-white); display: flex; flex-direction: column; gap: 12px; }
.pk-player-card .pk-court-lines g { stroke: rgba(233, 190, 58, .14); }
.pk-player-card__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.pk-player-card__number { font-family: var(--pk-font-display); font-size: 48px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--pk-gold-400); }
.pk-player-card__body { position: relative; display: flex; flex-direction: column; gap: 2px; }
.pk-player-card__name { font-size: 18px; }
.pk-player-card__meta { font-size: 14px; color: var(--pk-text-inverse-muted); }
.pk-player-card__foot { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--pk-gold-400); }
.pk-player-card--compact { padding: 16px; gap: 8px; }
.pk-player-card--compact .pk-player-card__number { font-size: 36px; }
.pk-player-card--compact .pk-player-card__name { font-size: 16px; }

.pk .pk-notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--pk-radius-md); border: 1px solid var(--pk-border); background: var(--pk-white); color: var(--pk-text); align-items: flex-start; }
.pk .pk-notice:hover { border-color: var(--pk-royal-500); color: var(--pk-text); }
.pk-notice__pin { width: 20px; height: 20px; flex: none; color: var(--pk-gold-600); margin-top: 2px; }
.pk-notice--pinned { border-color: var(--pk-gold-500) !important; }
.pk-notice__text { display: flex; flex-direction: column; gap: 4px; }
.pk-notice__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pk-text-muted); }
.pk-notice__by { font-size: 14px; margin: 0; }
.pk-notice-list { display: flex; flex-direction: column; gap: 10px; }

.pk-list-card { background: var(--pk-white); border-radius: var(--pk-radius-md); border: 1px solid var(--pk-border); overflow: hidden; }
.pk .pk-list-card__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--pk-border); font-size: 14px; color: var(--pk-text); min-height: 44px; align-items: center; }
.pk .pk-list-card__row:last-child { border-bottom: 0; }
.pk .pk-list-card__row:hover { background: var(--pk-royal-50); color: var(--pk-text); }

.pk-stat-tile { background: var(--pk-white); border-radius: var(--pk-radius-md); padding: 18px 20px; border: 1px solid var(--pk-border); display: flex; flex-direction: column; gap: 2px; }
.pk-stat-tile--gold { background: var(--pk-gold-100); border-color: transparent; width: fit-content; min-width: 240px; }
.pk-stat-tile__num { font-family: var(--pk-font-display); font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }

.pk-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; background: var(--pk-white); border-radius: var(--pk-radius-md); overflow: hidden; border: 1px solid var(--pk-border); }
.pk-table th { position: sticky; top: 0; background: var(--pk-grey-100); font-size: 13px; font-weight: 700; color: var(--pk-grey-800); }
.pk-table th, .pk-table td { text-align: left; padding: 12px 16px; font-size: 14px; }
.pk-table tbody tr { border-top: 1px solid var(--pk-border); }
.pk-table tbody tr:nth-child(even) { background: var(--pk-grey-100); }
@media (max-width: 767px) {
  .pk-table, .pk-table tbody, .pk-table tr, .pk-table td { display: block; }
  .pk-table { border: 0; background: none; }
  .pk-table thead { display: none; }
  .pk-table tbody tr { background: var(--pk-white) !important; border: 1px solid var(--pk-border); border-radius: var(--pk-radius-md); margin-bottom: 10px; padding: 8px 4px; }
  .pk-table td { padding: 6px 12px; display: flex; justify-content: space-between; gap: 12px; }
  .pk-table td[data-label]::before { content: attr(data-label); color: var(--pk-text-muted); font-weight: 500; }
}

.pk-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pk-filters__search { flex: 1 1 240px; }

.pk-receipt-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pk-receipt-actions__buttons { display: flex; gap: 8px; }
.pk-receipt { background: var(--pk-white); border-radius: var(--pk-radius-lg); padding: clamp(20px, 4vw, 32px); box-shadow: var(--pk-shadow-md); display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.pk-receipt__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 3px solid var(--pk-gold-500); }
.pk-logo--ink, .pk .pk-logo--ink { color: var(--pk-royal-900); }
.pk-logo--ink .pk-logo__sub { color: var(--pk-text-muted); }
.pk-receipt__no { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pk-receipt__meta { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.pk-receipt__meta dt { color: var(--pk-text-muted); }
.pk-receipt__meta dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.pk-receipt__ref { font-size: 13px; }
.pk-receipt__items { display: flex; flex-direction: column; border-top: 1px solid var(--pk-border); border-bottom: 1px solid var(--pk-border); }
.pk-receipt__items > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.pk-receipt__total { display: flex; justify-content: space-between; align-items: baseline; }
.pk-receipt__total .pk-num { font-family: var(--pk-font-display); font-size: 36px; color: var(--pk-royal-900); }
.pk-receipt__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--pk-text-muted); }

.pk-profile-facts { flex-direction: row; flex-wrap: wrap; gap: 20px 40px; }
.pk-profile-facts > div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }

.pk-directory { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pk-directory__item { display: flex; flex-direction: column; background: var(--pk-white); border-radius: 16px; overflow: hidden; border: 1px solid var(--pk-border); }
.pk .pk-directory__card { display: block; color: inherit; }
.pk-directory__card .pk-player-card { border-radius: 0; }
.pk-directory__actions { display: grid; grid-template-columns: 1fr 1fr; }
.pk .pk-directory__actions a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 14px; font-weight: 700; color: var(--pk-royal-600); }
.pk .pk-directory__actions a + a { border-left: 1px solid var(--pk-border); color: var(--pk-success); }
.pk-contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- Executive area (E1–E6) */
.pk-member-nav__heading { margin: 20px 14px 6px; font-size: var(--pk-text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pk-accent-text); }
.pk-stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pk-stat-tile--warning { border-left: 4px solid var(--pk-warning); }
.pk-stat-tile--danger { border-left: 4px solid var(--pk-danger); }
.pk-stat-grid .pk-stat-tile__num { font-size: 32px; }
.pk-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pk-attention { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--pk-radius-md); background: var(--pk-white); border: 1px solid var(--pk-border); flex-wrap: wrap; }
.pk-attention > .pk-icon { color: var(--pk-gold-600); }
.pk-attention--danger { border-color: var(--pk-danger); }
.pk-attention--danger > .pk-icon { color: var(--pk-danger); }
.pk-attention__text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pk-attention__text .pk-muted { font-size: 13px; }
.pk-attention__actions { display: flex; gap: 8px; align-items: center; }
.pk-attention form, .pk-notice form { margin: 0; }
.pk .pk-wa-link { color: var(--pk-success); min-height: 36px; padding: 0 8px; }

.pk-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--pk-text-muted); }
.pk-legend li { display: flex; align-items: center; gap: 6px; }
.pk-ledger-cell { display: inline-block; width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--pk-border); background: var(--pk-white); vertical-align: middle; }
.pk-ledger-cell--paid { background: var(--pk-gold-500); border-color: var(--pk-gold-500); }
.pk-ledger-cell--due { border: 1.5px solid var(--pk-warning); }
.pk-ledger-cell--overdue { background: var(--pk-danger); border-color: var(--pk-danger); }
.pk-ledger-cell--pre { background: repeating-linear-gradient(45deg, var(--pk-grey-200) 0 3px, transparent 3px 6px); }
.pk-ledger { display: none; overflow-x: auto; background: var(--pk-white); border: 1px solid var(--pk-border); border-radius: var(--pk-radius-md); }
.pk-ledger__table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.pk-ledger__table th, .pk-ledger__table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--pk-border); white-space: nowrap; }
.pk-ledger__table thead th { position: sticky; top: 0; background: var(--pk-grey-100); font-weight: 700; color: var(--pk-grey-800); z-index: 1; }
.pk-ledger__table .pk-ledger__member { position: sticky; left: 0; background: var(--pk-white); text-align: left; padding-left: 14px; min-width: 190px; z-index: 2; box-shadow: 1px 0 0 var(--pk-border); }
.pk-ledger__table thead .pk-ledger__member { background: var(--pk-grey-100); z-index: 3; }
.pk-ledger__member a { font-weight: 700; margin-right: 6px; }
.pk-ledger__table .pk-standing { font-size: 12px; padding: 3px 10px; }
.pk-ledger-list { display: flex; flex-direction: column; gap: 8px; }
.pk-ledger-list__item { background: var(--pk-white); border: 1px solid var(--pk-border); border-radius: var(--pk-radius-md); padding: 4px 14px; }
.pk-ledger-list__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; cursor: pointer; min-height: 44px; }
.pk-ledger-list__item summary::-webkit-details-marker { display: none; }
.pk-ledger-list__item[open] { padding-bottom: 14px; }
.pk-ledger-list__item .pk-standing { font-size: 12px; padding: 3px 10px; }
@media (min-width: 900px) { .pk-ledger { display: block; } .pk-ledger-list { display: none; } }

.pk-cash-member { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.pk-role-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pk-notice--admin { align-items: center; }
.pk-notice--admin .pk-notice__text { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- Store (P10–P12, M16, E7) */
.pk-header__cart { position: relative; flex: none; margin-left: auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--pk-radius-md); color: var(--pk-white); }
.pk-header__cart:hover { background: rgba(233, 190, 58, .12); }
.pk-header__cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pk-gold-500); color: var(--pk-royal-950); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
@media (min-width: 1024px) { .pk-header__nav { margin-inline: auto; } .pk-header__cart { margin-left: 0; } }
@media (min-width: 1024px) and (max-width: 1199px) { .pk-header__bar { gap: 16px; } .pk .pk-header__nav a { padding: 10px 8px; } }

.pk-store-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pk-app .pk-store-bar { margin-bottom: 0; }
.pk .pk-cart-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--pk-radius-pill); background: var(--pk-royal-900); color: var(--pk-white); font-weight: 700; font-size: 14px; }
.pk .pk-cart-pill:hover { background: var(--pk-royal-800); }
.pk-container > .pk-app--narrow { margin-inline: auto; }

.pk-product-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 479px) { .pk-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.pk .pk-product { display: flex; flex-direction: column; gap: 8px; color: var(--pk-text); }
.pk-product__img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--pk-radius-md); overflow: hidden; background-color: var(--pk-grey-100); }
.pk-product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--pk-dur) var(--pk-ease); }
.pk-product:hover .pk-product__img img { transform: scale(1.03); }
.pk-product__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--pk-grey-400); }
.pk-product__flag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--pk-radius-pill); background: var(--pk-danger); color: var(--pk-white); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pk-product--sold-out .pk-product__img img { opacity: .55; }
.pk-product__name { font-size: 16px; }
.pk-product__price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }

.pk-product-detail { display: grid; gap: 32px; }
@media (min-width: 900px) { .pk-product-detail { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }
.pk-product-gallery { display: flex; flex-direction: column; gap: 12px; }
.pk-product-gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--pk-radius-lg); overflow: hidden; background-color: var(--pk-grey-100); }
.pk-product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pk-product-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pk-product-gallery__thumb { padding: 0; aspect-ratio: 1; border: 2px solid transparent; border-radius: var(--pk-radius-md); overflow: hidden; cursor: pointer; background: var(--pk-grey-100); }
.pk-product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-product-gallery__thumb[aria-current="true"] { border-color: var(--pk-gold-500); }
.pk-product-detail__info { display: flex; flex-direction: column; gap: 14px; }
.pk-product-detail__name { font-family: var(--pk-font-display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.pk-product-detail__price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pk-product-detail__price .pk-num { font-family: var(--pk-font-display); font-size: 32px; color: var(--pk-royal-900); }
.pk-product-detail__hint, .pk-product-detail__summary { margin: 0; }
.pk-product-detail__low { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--pk-warning); font-weight: 700; font-size: 14px; }
.pk-product-form { gap: 18px; }
.pk-product-form fieldset { border: 0; padding: 0; margin: 0; }
.pk-product-form legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.pk-size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-size-chip { position: relative; }
.pk-size-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pk-size-chip span { display: flex; align-items: center; justify-content: center; min-width: 52px; min-height: 48px; padding: 0 14px; border: 1px solid var(--pk-border); border-radius: var(--pk-radius-md); background: var(--pk-white); font-weight: 700; }
.pk-size-chip input:checked + span { border: 2px solid var(--pk-gold-500); background: var(--pk-gold-100); }
.pk-size-chip input:focus-visible + span { outline: 3px solid var(--pk-focus); outline-offset: 2px; }
.pk-size-chip input:disabled + span { opacity: .5; }
.pk-custom-print { display: grid; grid-template-columns: 1fr 88px; gap: 8px; }
.pk-custom-print input { text-transform: uppercase; }
.pk-stepper--qty { max-width: 180px; }
.pk-stepper input.pk-stepper__value { width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 17px; text-align: center; -moz-appearance: textfield; appearance: textfield; min-height: 0; padding: 0; box-shadow: none; }
.pk-stepper input.pk-stepper__value::-webkit-inner-spin-button, .pk-stepper input.pk-stepper__value::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pk-stepper--sm { min-height: 40px; max-width: 132px; }
.pk-stepper--sm .pk-stepper__btn { width: 40px; height: 40px; }
.pk-stepper--sm input.pk-stepper__value { font-size: 15px; }
.pk-product-detail__pickup { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; color: var(--pk-text-muted); }
.pk-product-detail__description { margin-top: 40px; max-width: 72ch; }

.pk-cart { display: grid; gap: 24px; }
@media (min-width: 960px) { .pk-cart { grid-template-columns: 1fr 380px; align-items: start; } .pk-cart__checkout { position: sticky; top: 100px; } }
.pk-cart__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pk-cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px; background: var(--pk-white); border: 1px solid var(--pk-border); border-radius: var(--pk-radius-md); }
.pk-cart-line--problem { border-color: var(--pk-danger); }
.pk-cart-line__img { width: 72px; height: 72px; border-radius: var(--pk-radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--pk-grey-400); background-color: var(--pk-grey-100); }
.pk-cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.pk-cart-line__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk .pk-cart-line__name { font-weight: 700; color: var(--pk-text); }
.pk-cart-line__controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pk-cart-line__controls form { margin: 0; }
.pk .pk-cart-line__remove { color: var(--pk-text-muted); }
.pk-cart-line__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 700; text-align: right; }
.pk-cart-line__price .pk-muted { font-weight: 400; font-size: 13px; }
@media (max-width: 479px) { .pk-cart-line { grid-template-columns: 56px 1fr; } .pk-cart-line__img { width: 56px; height: 56px; } .pk-cart-line__price { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; } }
.pk-cart__checkout .pk-h3 { color: var(--pk-white); margin: 0 0 8px; }
.pk-cart__checkout .pk-form { gap: 14px; }
.pk-cart__checkout label { color: var(--pk-white); }
.pk-cart__checkout .pk-field__helper, .pk-cart__receipt-to, .pk-cart__pickup { color: var(--pk-text-inverse-muted); font-size: 14px; }
.pk-cart__receipt-to, .pk-cart__pickup { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.pk .pk-cart__checkout a { color: var(--pk-gold-400); }
.pk-cart__blocked { margin: 0; color: var(--pk-gold-400); font-size: 14px; text-align: center; }

.pk-order-status { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pk-order-status__step { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pk-radius-pill); background: var(--pk-grey-200); color: var(--pk-grey-600); font-size: 13px; font-weight: 700; }
.pk-order-status__step.is-done { background: var(--pk-success-100); color: var(--pk-success); }
.pk-order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.pk-order-items li { display: flex; justify-content: space-between; gap: 12px; }
.pk-pay-status .pk-order-items { width: 100%; max-width: 420px; }
.pk-pay-status .pk-order-status { justify-content: center; }
.pk-order-pickup { text-align: left; }
.pk-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pk-order-card { display: flex; flex-direction: column; gap: 12px; }
.pk-order-card__head > div { display: flex; flex-direction: column; gap: 2px; }
.pk-order-card__items { font-size: 16px; }
.pk-order-card__details summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--pk-link); min-height: 32px; display: flex; align-items: center; }
.pk-order-card__details[open] summary { margin-bottom: 8px; }
.pk-order-card__details p { margin: 10px 0 0; font-size: 14px; }

.pk-store-orders__buyer, .pk-store-orders td:first-child { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.pk-store-orders__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pk-store-orders__status { margin: 0; }
.pk-store-orders__status select { min-height: 40px; border: 1px solid var(--pk-border); border-radius: var(--pk-radius-sm); padding: 0 8px; font: inherit; font-size: 14px; background: var(--pk-white); }
.pk-store-orders__by { display: block; font-size: 12px; margin-top: 4px; }
@media (max-width: 767px) { .pk-store-orders td:first-child, .pk-store-orders__buyer { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; } .pk-store-orders__items { text-align: right; } }
.pk-pack-list, .pk-stock-list { list-style: none; margin: 0; padding: 4px 20px; }
.pk-pack-list li, .pk-stock-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.pk-pack-list li + li, .pk-stock-list li + li { border-top: 1px solid var(--pk-border); }
.pk-stock__name { display: flex; flex-direction: column; gap: 2px; }
.pk .pk-stock__name a { font-weight: 700; color: var(--pk-text); }
.pk-stock__qty { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.pk-stock--low .pk-stock__qty { color: var(--pk-warning); font-weight: 700; }
.pk-stock--out .pk-stock__qty { color: var(--pk-danger); font-weight: 700; }
.pk-stock__form { display: flex; align-items: center; gap: 8px; margin: 0; }
.pk-stock__form input[type="number"] { width: 88px; min-height: 40px; border: 1px solid var(--pk-border); border-radius: var(--pk-radius-sm); padding: 0 10px; font: inherit; }

/* ---------------------------------------------------------------- Elections (M9–M15, E8) */

.pk-election-hero { display: flex; flex-direction: column; gap: 4px; }
.pk-election-status { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--pk-radius-lg); background: var(--pk-royal-950); color: var(--pk-white); }
.pk-election-status .pk-muted { color: var(--pk-text-inverse-muted); }
.pk-election-status .pk-alert { color: var(--pk-text); }
.pk-election-countdown { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pk-election-countdown .pk-num { font-family: var(--pk-font-display); font-size: 36px; color: var(--pk-gold-400); line-height: 1; }

.pk-position-list { display: flex; flex-direction: column; gap: 10px; }
.pk-position { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--pk-white); border: 1px solid var(--pk-border); border-radius: var(--pk-radius-md); }
.pk-position__name { font-size: 15px; }
.pk-position__candidates { display: flex; flex-direction: column; gap: 6px; }
.pk-position__candidate summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 44px; }
.pk-position__candidate summary::-webkit-details-marker { display: none; }
.pk-position__candidate summary > span:last-child { display: flex; flex-direction: column; }
.pk-position__candidate summary .pk-muted { font-size: 13px; }
.pk-position__manifesto { margin: 6px 0 4px 50px; font-size: 14px; color: var(--pk-grey-800); white-space: pre-line; }
.pk-results__row--tied .pk-results__bar span { background: var(--pk-warning); }
.pk-results__note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--pk-warning); font-weight: 700; }
.pk-avatar--40 { object-fit: cover; }

.pk-election-card { display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--pk-gold-500); }
.pk-election-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pk-election-card__count { margin: 0; }
.pk-election-card__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }



.pk-ballot { display: flex; flex-direction: column; gap: 20px; padding-bottom: 90px; }
.pk-ballot__position { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 90px; }
.pk-ballot__legend { font-family: var(--pk-font-display); text-transform: uppercase; font-size: 20px; margin-bottom: 6px; padding: 0; }
.pk-ballot__option { position: relative; display: block; cursor: pointer; }
.pk-ballot__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pk-ballot__card { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--pk-border); border-radius: var(--pk-radius-md); background: var(--pk-white); }
.pk-ballot__option--abstain .pk-ballot__card { min-height: 48px; color: var(--pk-text-muted); }
.pk-ballot__who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pk-ballot__who .pk-muted { font-size: 13px; }
.pk-ballot__check { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--pk-border); display: flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.pk-ballot__option input:checked + .pk-ballot__card { border-color: var(--pk-gold-500); box-shadow: 0 0 0 1px var(--pk-gold-500); background: var(--pk-gold-100); }
.pk-ballot__option input:checked + .pk-ballot__card .pk-ballot__check { background: var(--pk-gold-500); border-color: var(--pk-gold-500); color: var(--pk-royal-950); }
.pk-ballot__option input:focus-visible + .pk-ballot__card { outline: 3px solid var(--pk-focus); outline-offset: 2px; }
.pk-ballot__footer { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--pk-royal-950); color: var(--pk-white); border-radius: var(--pk-radius-md); box-shadow: var(--pk-shadow-lg); z-index: 5; }
@media (max-width: 767px) { .pk--member .pk-ballot__footer { bottom: 72px; } }

.pk-ballot-review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pk-ballot-review li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--pk-border); }
.pk-ballot-review__position { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pk-text-muted); }

.pk-vote-done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px 0; }
.pk-vote-done h1, .pk-vote-done p { margin: 0; }
.pk-vote-done__code { font-family: var(--pk-font-display); font-size: 40px; letter-spacing: .08em; color: var(--pk-royal-900); padding: 8px 20px; border: 2px dashed var(--pk-gold-500); border-radius: var(--pk-radius-md); }

.pk-results { display: flex; flex-direction: column; gap: 22px; }
.pk-results__position { display: flex; flex-direction: column; gap: 10px; }
.pk-results__name { font-family: var(--pk-font-display); text-transform: uppercase; font-weight: 400; font-size: 20px; margin: 0; }
.pk-results__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.pk-results__who { display: inline-flex; align-items: center; gap: 8px; color: var(--pk-grey-600); font-weight: 500; }
.pk-results__row--winner .pk-results__who { color: var(--pk-text); }
.pk-results__row--winner .pk-results__who .pk-icon { color: var(--pk-gold-600); }
.pk-results__count { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--pk-text-muted); }
.pk-results__bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--pk-grey-200); overflow: hidden; }
.pk-results__bar span { display: block; height: 100%; background: var(--pk-grey-400); border-radius: 999px; }
.pk-results__row--winner .pk-results__bar span { background: var(--pk-gold-500); }
.pk-results__abstain { margin: 0; font-size: 13px; }
.pk-results__turnout { margin: 8px 0 0; font-size: 16px; }


@media print {
  .pk-header, .pk-member-nav, .pk-member-tabs, .pk-dues-banner, .pk-no-print, .pk-footer { display: none !important; }
  .pk--member, .pk-shell__main { background: #fff; padding: 0; }
  .pk-receipt { box-shadow: none; max-width: none; border: 1px solid #ccc; }
  .pk-table--print, .pk-table--print tbody, .pk-table--print tr, .pk-table--print td { display: revert !important; }
  .pk-table--print thead { display: table-header-group !important; }
}
