:root {
  --paper: #edf3f9;
  --ink: #101e36;
  --edge: #d7e2ef;
  --pn-navy: #0a1e38;
  --pn-solid: #174dbb;
  --accent: #174dbb;
  --pn-cyan: #62edfa;
  --pn-card: #f9fcff;
  --pn-shadow: 0 12px 32px #0d28460c, 0 2px 4px #0d284608;
}

body { background: radial-gradient(ellipse at 96% 0,#dceafb 0,transparent 38rem),var(--paper); }
.bar { min-height: 66px; }
.bar .brandlogo { padding: 4px; background: #f1f7ff; }
:where(button, input, select, textarea) { font-size: 1rem; }
button { transition: background-color .16s,border-color .16s,box-shadow .16s; }
button.primary { background: #174dbb; border-color: #174dbb; color: #fff; }
button.primary:hover:not(:disabled) { background: #123d97; }
button.primary:disabled { color: #52627d; background: #e1e8f3; border-color: #e1e8f3; }
button.lite { background: #f5f9ff; border-color: #d4e0ef; }
button.lite:hover { background: #e6f0ff; }
:is(input,select,textarea):not([type=checkbox]):not([type=radio]) { min-width: 0; }
label > :is(input,select,textarea):not([type=checkbox]):not([type=radio]) { min-height: 46px; }
.pageactions { gap: 10px; }
.pageactions button { min-height: 44px; }
.pageheading {
  padding: clamp(18px,3vw,36px);
  border: 1px solid #d3dfed;
  border-radius: 22px;
  background: linear-gradient(118deg,#fff 0%,#edf6ff 74%,#e2f2fc);
  box-shadow: var(--pn-shadow);
}
.pageheading h1 { letter-spacing: -.055em; }
.panel, .session-players { border-radius: 18px; box-shadow: var(--pn-shadow); }
.empty { background: #f7fbff; border-radius: 16px; }
.navstrip { background: linear-gradient(160deg,#0e294c,#081a33 60%); }
.navstrip .on, .navstrip .on:hover { background: #153c64; color: #9cf3ff; box-shadow: inset 3px 0 #5ce9fa; }
#sheet, #guideDialog { border: 1px solid #d8e4f2; box-shadow: 0 24px 68px #081a4350; }
#sheet::backdrop, #guideDialog::backdrop { background: #07172d99; }
#sheet .sheethead { gap: 12px; }
#sheet #close { flex-shrink: 0; min-width: 44px; min-height: 44px; }
#entry > button:last-child { min-height: 48px; }
.login-card:has(#appAuthForm) { border-radius: 26px; box-shadow: 0 28px 76px #0a274529; }
.login-card:has(#appAuthForm) .login-brand {
  background: linear-gradient(145deg,#04162c42,#05274699), url(court.webp) center / cover;
}
.venue-choice { box-shadow: var(--pn-shadow); border-top: 3px solid #3a79dd; }
.account-hero { color: #fff; background: linear-gradient(125deg,#0a2241,#174c77); }
.account-hero small { color: #d0e4fa; }
.account-hero .lite { color: #173e71; }
.account-setting { padding-inline: 7px; }
.more-tile { background: linear-gradient(140deg,#fff,#eaf3ff); }
.more-icon, .manage-icon { background: #dfedff; color: #164ea2; }
.manage-grid .manage-group { padding: clamp(14px,2vw,23px); }
.manage-tile { min-height: 66px; }
.directory .dirhead { border-radius: 10px 10px 0 0; }
.directory .dirrow { min-height: 58px; }
.balancecard, .payHero { background: linear-gradient(128deg,#081e39,#153f70 65%,#146083); }
.kpis > div { box-shadow: var(--pn-shadow); }
.fundbar button { min-height: 46px; }
.salelayout { align-items: start; }
.salelayout > :last-child { min-width: 0; }
.producttile { border-radius: 14px; box-shadow: var(--pn-shadow); }
.producttile img { border-radius: 9px; }
#currentCart button { min-width: 44px; min-height: 44px; }

.hero.todayhead.pn-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 26px;
  padding: clamp(22px,4vw,52px);
  margin-bottom: 24px;
  background: linear-gradient(90deg,#06162f 0%,#061a35e8 38%,#0c254883 75%,#0a2e4977),url(court.webp) center 60% / cover;
  box-shadow: 0 18px 36px #112d5330;
}
.pn-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto -12% -40% 36%;
  height: 68%;
  transform: rotate(-20deg);
  border-top: 1px solid #74eeff66;
  background: linear-gradient(#65e8fe20,transparent 38%);
  pointer-events: none;
}
.pn-hero-content { max-width: 620px; }
.pn-hero-content > small { color: #a7cfed; font-size: .9rem; }
.pn-hero h1 { font-size: clamp(2rem,4vw,3.5rem); letter-spacing: -.06em; margin: 4px 0 16px; }
.pn-feature { display: grid; gap: 3px; margin-bottom: 12px; }
.pn-feature span { color: #92effa; font-size: .875rem; font-weight: 650; }
.pn-feature strong { color: #fff; font-size: clamp(1.65rem,3.5vw,2.6rem); letter-spacing: -.045em; }
.pn-home-metrics { display: flex; gap: clamp(14px,4vw,42px); margin: 12px 0; }
.pn-home-metrics div { display: flex; flex-direction: column-reverse; gap: 3px; }
.pn-home-metrics dt { color: #d0e7fb; font-size: .86rem; }
.pn-home-metrics dd { margin: 0; color: white; font-size: 1.3rem; font-weight: 760; }
.pn-hero-action { margin-top: 8px; min-height: 46px; background: var(--pn-cyan); border-color: transparent; color: #10253d; }
.pn-hero-action:hover { background: #adf5ff; }
.pn-schedule-heading { gap: 12px; flex-wrap: wrap; }
.pn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pn-actions .datepick { margin: 0; width: auto; }
.shiftgrid .shiftcard { box-shadow: var(--pn-shadow); border-radius: 17px; }

.session-screen { max-width: 1320px; }
.session-screen .sessionhead {
  background: linear-gradient(108deg,#0a1d38 0%,#102e54e8 50%,#123d65ad),url(court.webp) center 72% / cover;
}
.pn-session-layout {
  display: grid;
  grid-template-columns: minmax(240px,.8fr) minmax(0,1.6fr);
  align-items: start;
  gap: 16px;
}
.pn-court-board {
  min-width: 0;
  border-radius: 18px;
  padding: 14px;
  background: #112847;
  color: #eef8ff;
  box-shadow: var(--pn-shadow);
}
.pn-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pn-board-heading h2 { margin: 0; color: #fff; font-size: 1.05rem; }
.pn-board-heading > span, .pn-court-board .meta { color: #c7daf1; }
.pn-court-board .meta { margin-bottom: 0; }
.pn-courts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.pn-court {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: start;
  min-height: 72px;
  min-width: 0;
  padding: 10px;
  text-align: left;
  background: #18375c;
  color: #ecf7ff;
  border-color: #4d719b;
}
.pn-court:hover, .pn-court.is-playing { background: #16476a; border-color: #78e7f7; }
.pn-court-lines {
  position: absolute;
  z-index: -1;
  inset: 16% 8%;
  border: 1px solid #a4cfff3b;
  background: linear-gradient(90deg,transparent 49%,#a4cfff3b 49%,#a4cfff3b 51%,transparent 51%);
}
.pn-court-title { display: grid; gap: 2px; }
.pn-court-title span { color: #b7e7fb; font-size: .8rem; }
.pn-court-players { display: block; margin-top: 6px; font-size: .85rem; overflow-wrap: anywhere; }
.pn-court-roster { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.pn-court-roster div { min-width: 0; border-radius: 10px; padding: 9px; background: #eef5fe; overflow-wrap: anywhere; }
.session-screen .session-players .rows { grid-template-columns: minmax(0,1fr); }
.session-screen .rostercard { display: grid; grid-template-columns: minmax(0,1fr); }
.session-screen .rostercard .rowactions { justify-content: space-between; }
.session-screen .playercard { text-align: left; }
.session-screen #dock:not(:empty) { gap: 8px; }

@media (min-width:920px) {
  body:has(.navstrip) main {
    width: min(calc(100% - 200px), 1460px);
    margin: 0 auto 0 max(200px, calc((100% - 1260px) / 2));
    padding-inline: clamp(24px,3vw,56px);
  }
  .salelayout > :last-child { position: sticky; top: 84px; }
}
@media (max-width:760px) {
  .hero.todayhead.pn-hero { border-radius: 18px; }
  .pageheading { border-radius: 17px; }
  .pn-session-layout { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .pn-court-board { padding: 10px; border-radius: 14px; }
  .pn-courts { display: flex; overflow-x: auto; padding-bottom: 3px; scroll-snap-type: x proximity; }
  .pn-court { flex: 0 0 clamp(106px,31%,160px); scroll-snap-align: start; }
  .session-screen #dock:not(:empty) { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .phoneMenu { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .phoneMenu .on { background: #deedff; color: #123d97; }
  #sheet:has(#entry):not(:has(.account-panel))[open] { max-height: min(90dvh,880px); }
  #sheet #entry > button:last-child {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-block: 10px 0;
    box-shadow: 0 -8px 12px #fff;
  }
  .salelayout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:375px) {
  .bar .topGuide { padding-inline: 6px; font-size: .76rem; }
  .bar .brand { font-size: .79rem; }
  .bar #account { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion:reduce) {
  button { transition: none; }
}
.shiftcard[data-status="open"] .shiftstatus { color: #175185; background: #e1f2ff; }
.shiftcard[data-status="review"] .shiftstatus { color: #865518; background: #fff0d5; }
.pn-action-list { display: grid; gap: 8px; }
.pn-action-item { display: grid; gap: 4px; padding: 12px; text-align: start; min-height: 54px; }
.pn-action-item small { font-size: .875rem; font-weight: 500; }
.pn-action-item:hover { background: #edf5ff; }
@media (max-width:760px) {
  .pn-court { flex-basis: calc((100% - 16px) / 3); min-width: 86px; }
  .pn-court-board .meta { display: none; }
}

.pn-player-name { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; max-width: 100%; }
.pn-player-name > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.pn-gender {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin: 0;
  align-self: start;
  color: #174787;
  background: #deebff;
}
.pn-gender-female { color: #664198; background: #eee5fd; }
.pn-gender i { position: absolute; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; }
.pn-gender-male i { top: 8px; left: 5px; }
.pn-gender-male::before {
  content: ''; position: absolute; width: 6px; height: 1.5px; top: 8px; left: 11px;
  transform: rotate(-45deg); background: currentColor;
}
.pn-gender-male::after {
  content: ''; position: absolute; width: 5px; height: 5px; top: 5px; left: 12px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
}
.pn-gender-female i { top: 4px; left: 6.5px; }
.pn-gender-female::before, .pn-gender-female::after { content: ''; position: absolute; background: currentColor; }
.pn-gender-female::before { width: 1.5px; height: 6px; top: 11px; left: 10px; }
.pn-gender-female::after { width: 6px; height: 1.5px; top: 14px; left: 7.5px; }
.pn-court-number { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.pn-court-title .pn-court-time { color: #9df7ff; font-weight: 650; white-space: nowrap; }
.pn-court-choice { border: 0; margin: 0 0 10px; padding: 0; }
.pn-court-choice legend { margin-bottom: 8px; font-weight: 700; }
.pn-court-choice > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(96px,1fr)); gap: 8px; }
.pn-court-option { position: relative; margin: 0; cursor: pointer; }
.pn-court-option input { position: absolute; inset-inline-start: 8px; inset-block-start: 8px; opacity: 0; }
.pn-court-option > span {
  display: grid; gap: 4px; min-height: 62px; padding: 9px;
  border: 1px solid #d2e0ef; border-radius: 12px; background: #f4f8ff;
}
.pn-court-option small { font-size: .8rem; }
.pn-court-option input:checked + span { border-color: #174dbb; background: #dcecff; box-shadow: inset 0 0 0 1px #174dbb; }
.pn-court-option input:focus-visible + span { outline: 2px solid #174dbb; outline-offset: 2px; }
.pn-shift-danger { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e7d5da; }
.pn-shift-danger button { color: #9b2543; }
button.primary.pn-danger { background: #9b2543; border-color: #9b2543; }
.pn-schedule-controls {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 16px; margin: 0 0 22px; background: white; border: 1px solid var(--edge); border-radius: 16px;
}
.pn-schedule-controls h2, .pn-schedule-controls p { margin: 0; }
.pn-schedule-controls p { margin-top: 4px; }
.pn-schedule-actions, .pn-day-control { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pn-schedule-actions { gap: 12px; }
.pn-day-control > button, .pn-create-shift { min-height: 44px; }
.pn-day-control .datepick { min-height: 44px; width: auto; margin: 0; }
.pn-schedule-group { margin: 0 0 22px; }
.pn-schedule-group h2 { margin: 0 0 10px; font-size: 1.1rem; }
.pn-qr-preview { display: grid; justify-items: center; padding: 12px; border-radius: 16px; background: #edf5fe; }
.pn-qr-preview canvas { display: block; width: min(100%, 310px, 36vh); height: auto; border-radius: 12px; box-shadow: 0 10px 26px #0b204739; }

.pn-wallet-dock { margin: 12px 0; }
.pn-wallet-dock button { min-height: 44px; }
.pn-wallet-tabs { margin-bottom: 14px; }
.pn-wallet-summary, .pn-wallet-insights { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.pn-wallet-summary > *, .pn-wallet-insights > * { margin: 0; min-width: 0; }
.pn-wallet-balance { padding: 22px; }
.pn-balance-link { min-height: 40px; margin-top: 12px; color: #fff; border-color: #ffffff65; background: #ffffff18; }
.pn-wallet-month-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.pn-wallet-month-totals div { display: grid; gap: 4px; padding: 9px; background: #edf5ff; border-radius: 10px; overflow-wrap: anywhere; }
.pn-wallet-month-totals div:last-child { background: #fff1ed; color: #7c352b; }
.pn-wallet-entry { width: 100%; padding: 3px 8px; text-align: left; border-color: transparent; }
.pn-wallet-entry:hover { background: #edf5ff; }
.pn-wallet-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 12px; }
.pn-wallet-card { display: grid; gap: 6px; padding: 14px; border-radius: 14px; text-align: left; background: #f1f7ff; border: 1px solid #d7e4f5; }
.pn-wallet-card h3 { margin: 0; }
.pn-shared-wallet:hover { border-color: #6d99da; background: #e9f2ff; }
.pn-shared-options { margin: 0; }
.pn-shared-options summary { min-height: 44px; min-width: 44px; text-align: center; }
@media (max-width:760px) {
  .pn-schedule-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .pn-create-shift { justify-self: start; }
  .pn-court-title .pn-court-time { font-size: .76rem; }
  .pn-wallet-summary, .pn-wallet-insights { grid-template-columns: minmax(0,1fr); gap: 10px; }
  body:has(.pn-wallet-dock) main { padding-bottom: calc(162px + env(safe-area-inset-bottom)); }
  .pn-wallet-dock {
    position: fixed; z-index: 4; inset-inline: 0; bottom: calc(60px + env(safe-area-inset-bottom));
    margin: 0; padding: 8px 14px; background: white; border-top: 1px solid var(--edge);
  }
  .pn-wallet-dock button { width: 100%; }
  .pn-wallet-tabs button { font-size: .82rem; }
}
.pn-gender { border-radius: 50%; }
@media (max-width:760px) {
  .pn-wallet-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .pn-wallet-tabs button { min-height: 44px; padding-inline: 2px; white-space: nowrap; }
  .pn-wallet-balance { padding: 15px 18px; }
  .pn-wallet-balance .pn-balance-link { margin-top: 6px; }
  .pn-wallet-month { padding: 12px; }
  .pn-wallet-month label { margin-bottom: 8px; }
}

body[data-test-workspace] .bar .brand::after {
  content: "Dữ liệu thử"; display: inline-block; margin-inline-start: 7px; padding: 3px 7px;
  border-radius: 999px; color: #65470d; background: #fff1cf; font-size: .75rem; font-weight: 700;
}
.pn-day-timeline { display: grid; gap: 12px; }
button.shiftcard.pn-shift-row {
  display: grid; grid-template-columns: minmax(175px,1fr) minmax(160px,1.2fr) minmax(100px,auto);
  gap: 16px; align-items: center; width: 100%; text-align: left;
  padding: 18px 20px; background: #fff; border-left: 4px solid #5a9aee;
}
button.shiftcard.pn-shift-row[data-status="closed"] { border-left-color: #a9bbcf; }
button.shiftcard.pn-shift-row:hover { background: #f3f9ff; }
.pn-shift-time, .pn-shift-bookings, .pn-shift-access { display: grid; gap: 6px; min-width: 0; }
.pn-shift-time > strong { font-size: clamp(1.25rem,2vw,1.65rem); letter-spacing: -.04em; }
.pn-shift-time > span, .pn-shift-bookings > span, .pn-shift-space { font-size: .87rem; color: #3c5270; }
.pn-shift-bookings > span:first-child { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.pn-shift-bookings .capacity { display: block; margin: 1px 0; height: 6px; }
.pn-shift-access { justify-items: end; }
.pn-shift-open { color: #164da6; font-weight: 750; }
.pn-auth .login-content h1 { font-size: clamp(1.7rem,4vw,2.4rem); margin-bottom: 8px; }
.pn-auth form { display: grid; gap: 10px; }
.pn-auth form label, .pn-auth form p { margin: 0; }
.pn-auth form > .primary { margin-top: 4px; }
.pn-password-field > label { display: block; }
.pn-password-control { position: relative; margin-top: 7px; }
#appAuthForm .pn-password-control input,
#registerForm .pn-password-control input { width: 100%; margin: 0; min-height: 52px; padding-inline-end: 68px; }
#appAuthForm .pn-password-control > button.pn-password-toggle,
#registerForm .pn-password-control > button.pn-password-toggle {
  position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
  min-height: 44px; min-width: 52px; margin: 0; padding: 0 9px; border-radius: 9px;
  background: #edf4ff; border-color: transparent; color: #184c9a;
}
.pn-auth-switch { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 16px; }
.pn-auth-switch .lite { min-height: 44px; }
#pnVisualGuide {
 width: min(560px,calc(100% - 20px)); max-height: calc(100% - 20px); max-height: calc(100dvh - 20px);
 border: 1px solid var(--edge); border-radius: 20px; padding: 14px; color: var(--ink); overflow: hidden;
}
#pnVisualGuide[open] { display: flex; flex-direction: column; }
#pnVisualGuide::backdrop { background: #081c38ac; }
.pn-guide-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.pn-guide-figure { margin: 0 auto; max-width: 440px; }
.pn-guide-image { width: 100%; height: auto; display: block; border-radius: 12px; background: #edf4ff; }
.pn-guide-figure figcaption { padding: 6px 0 2px; color: #456180; font-size: .8rem; text-align: center; }
.pn-guide-actions.pageactions { flex-shrink: 0; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--edge); gap: 8px; }
.pn-guide-actions button { min-height: 44px; flex: 1 1 auto; }
.pn-guide-copy h3 { margin: 3px 0; }
.pn-guide-copy p { margin: 5px 0 10px; line-height: 1.45; }
.pn-guide-os { display: flex; gap: 8px; }
.pn-guide-os button { min-height: 44px; }
.pn-guide-os [aria-pressed=true] { color: #113875; background: #e3f0ff; border-color: #6c9ed7; }
.pn-install-prompt { margin-top: 16px; }
#sheet:has(.pn-qr-editor) { width: min(740px, calc(100% - 20px)); max-width: 740px; }
.pn-qr-editor { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 15px; }
.pn-qr-editor textarea { width: 100%; }
#sheet:has(.pn-notice-center)[open] {
  position: fixed; inset: 70px 14px auto auto; margin: 0;
  width: min(500px,calc(100% - 22px)); max-height: min(76dvh,720px); padding: 15px;
}
.pn-notice-tools, .pn-notice-tools > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pn-notice-tools { justify-content: space-between; }
.pn-notice-tools button { min-height: 42px; }
.pn-notice-tools button[aria-pressed=true] { color: #123e82; background: #e4efff; border-color: #c4dcfa; }
.pn-notice-tools button:disabled { opacity: .55; }
#noticeList h3 { font-size: .9rem; color: #456180; margin: 16px 0 6px; }
.pn-notice-row { display: grid; grid-template-columns: 40px minmax(0,1fr) 12px; width: 100%; gap: 10px; align-items: center; text-align: left; margin-bottom: 6px; }
.pn-notice-row.unread { background: #edf5ff; border-color: #d5e8fc; }
.pn-notice-row small { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.pn-notice-icon { display: grid; place-items: center; height: 36px; width: 36px; border-radius: 12px; color: #1e539a; background: #dceafe; }
.pn-notice-dot { width: 8px; height: 8px; border-radius: 50%; background: #1d65c0; }
.pn-admin-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.pn-admin-metric { display: grid; gap: 7px; justify-items: start; text-align: left; padding: 14px; background: #edf5ff; color: #153b75; }
.pn-admin-metric strong { font-size: 1.55rem; }
.pn-admin-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.pn-admin-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--edge); }
.pn-admin-row h3, .pn-admin-row p { margin: 0 0 2px; }
@media(max-width:760px) {
  .pn-auth { display: block !important; }
  .pn-auth .login-brand { display: none !important; }
  .pn-auth .login-content { padding: 20px; }
  button.shiftcard.pn-shift-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; padding: 12px; }
  .pn-shift-bookings { grid-row: 2; grid-column: 1 / -1; }
  .pn-shift-access { grid-row: 1; grid-column: 2; }
  #sheet:has(.pn-notice-center)[open] { inset: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .pn-qr-editor { grid-template-columns: minmax(0,1fr); }
  .pn-qr-editor canvas { width: min(100%,270px,35vh); }
}

.venue-setup .venue-setup-steps {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px;
  list-style: none; padding: 0; margin: 0 0 16px;
}
.venue-setup .venue-setup-steps li {
  display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px;
  border: 1px solid #d7e2f1; border-radius: 12px; background: #fff; line-height: 1.3;
}
.pn-setup-step-number {
  display: grid; place-items: center; flex: none; width: 25px; height: 25px; border-radius: 50%;
  background: #e9f0f9; color: #36567a; font-size: .8rem; font-weight: 750;
}
.venue-setup .venue-setup-steps li[aria-current=step] { background: #e7f1ff; border-color: #80a9dd; }
.venue-setup .venue-setup-steps li[aria-current=step] .pn-setup-step-number { background: #174dbb; color: #fff; }
.venue-setup .venue-setup-steps .is-complete { color: #27476d; }
.pn-setup-panel { background: #fff; border-radius: 16px; }
.pn-setup-ready { font-size: 1rem; font-weight: 650; }
.pn-setup-next { display: grid; gap: 7px; list-style: none; padding: 0; }
.pn-setup-next li { display: grid; gap: 3px; background: #eef5fd; border-radius: 10px; padding: 10px 12px; }
.pn-setup-next li > span { color: #425977; font-size: .88rem; }
.pn-setup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pn-setup-actions > button { min-height: 44px; }
@media(max-width:460px) {
 .venue-setup .venue-setup-steps li { align-items: flex-start; flex-direction: column; font-size: .78rem; padding: 7px; }
 .pn-setup-actions > button { width: 100%; }
}

.pn-guide-os { flex-wrap: wrap; margin-bottom: 6px; }

.account-support { display: grid; gap: 12px; }
.account-contact { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #eef4fc; }
.account-contact > div { flex: 1; min-width: 0; }
.account-contact strong,.account-contact span:not(.navicon) { display: block; }
.account-contact span:not(.navicon) { color: #415a78; margin-top: 3px; font-variant-numeric: tabular-nums; }
.account-contact .account-copy { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: 0; padding: 6px; }
.account-contact-link { display: grid; place-items: center; min-height: 44px; border-radius: 10px; background: #1847cd; color: #fff; font-weight: 700; text-decoration: none; }
.account-contact-link:focus-visible,.account-contact-link:hover { background: #153baf; color: #fff; }
.account-support .account-removal { margin: 0; padding: 10px 0; border: 0; border-top: 1px solid var(--edge); border-radius: 0; background: transparent; text-align: left; color: #933340; }
.account-version { color: #506685; }

.debt-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.debt-summary:empty { display: none; }
.debt-summary > div { padding: 14px; border-radius: 14px; color: #143b68; background: #e8f1fe; }
.debt-summary span,.debt-summary strong { display: block; }
.debt-summary strong { margin-top: 5px; font-size: clamp(1.15rem,4vw,1.7rem); overflow-wrap: anywhere; }
.debt-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.debt-head h2 { margin: 0; }
.debt-filters { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 10px; margin: 12px 0; }
.debt-filters label { margin: 0; }
.debt-list { display: grid; gap: 8px; }
.debt-customer { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; }
.debt-customer span { min-width: 0; overflow-wrap: anywhere; }
.debt-customer strong { flex: none; color: #1847a0; }
.debt-customer small,.debt-list .reportline small { display: block; color: #506685; }
.debt-detail { padding: 12px; border: 1px solid var(--edge); border-radius: 12px; margin: 8px 0; }
.debt-detail p { white-space: pre-wrap; overflow-wrap: anywhere; }
.debt-detail .primary { margin-top: 10px; }

.sale-receipt { padding: clamp(10px,3vw,22px); border: 1px solid var(--edge); border-radius: 14px; background: #fff; }
.sale-receipt-quick { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.sale-receipt-head { text-align: center; border-bottom: 1px dashed #b9c8de; padding-bottom: 12px; }
.sale-receipt-head img { display: block; margin: 0 auto 6px; width: 44px; height: 44px; object-fit: contain; }
.sale-receipt-head h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.sale-receipt-head span { color: #425b78; font-size: .875rem; font-variant-numeric: tabular-nums; }
.sale-receipt-meta { display: grid; gap: 6px; margin: 12px 0; font-size: .9rem; }
.sale-receipt-meta div { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; }
.sale-receipt-meta dd { text-align: end; margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.sale-receipt table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; font-variant-numeric: tabular-nums; }
.sale-receipt th,.sale-receipt td { text-align: right; padding: 9px 4px; border-bottom: 1px solid #dae5f3; white-space: normal; }
.sale-receipt th:first-child { text-align: left; width: 38%; overflow-wrap: anywhere; }
.sale-receipt th:nth-child(2) { width: 9%; }
.sale-receipt thead { background: #edf3fb; color: #2a4768; }
.sale-receipt tbody th { font-weight: 600; }
.sale-receipt-totals .reportline,.sale-receipt-payment .reportline { gap: 8px; }
.sale-receipt-totals .reportline strong,.sale-receipt-payment .reportline strong { white-space: nowrap; }
.sale-receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 10px 0 4px; padding: 12px 8px; background: #e8f0ff; color: #153c82; border-radius: 8px; font-weight: 700; }
.sale-receipt-total strong { font-size: clamp(1rem,4.5vw,1.4rem); white-space: nowrap; }
.sale-receipt-qr { text-align: center; border-top: 1px dashed #b9c8de; padding-top: 14px; margin-top: 14px; }
.sale-receipt-qr small { display: block; margin-top: 4px; }
.sale-receipt-qr img { display: block; width: min(100%,200px); height: auto; margin: 8px auto 0; }
.dir-mobile-level { display: none; }
.directory .dir-count { color: #174687; }
@media(max-width:700px) {
 .directory button.dirrow { grid-template: "person count" auto "date date" auto / minmax(0,1fr) auto; gap: 6px 12px; padding: 13px 12px; }
 .directory .dirrow.female { background: white; }
 .directory .dirrow .dirname { grid-area: person; }
 .directory .dirrow .dirname small { display: block; margin: 2px 0 0; color: #506685; }
 .directory .dir-count { grid-area: count; align-self: start; padding: 4px 8px; font-size: .83rem; border-radius: 8px; background: #eaf2ff; }
 .directory .dirrow > .dir-last:nth-child(even) { grid-area: date; color: #506685; font-size: .85rem; text-align: left; }
 .directory .dir-level,.directory .dir-credit { display: none; }
 .dir-mobile-level { display: inline; }
}
@media(max-width:390px) {
 .debt-filters { grid-template-columns: 1fr; }
 .sale-receipt th,.sale-receipt td { padding-inline: 2px; }
}
@media print {
 .sale-receipt { border: 0; padding: 0; break-inside: avoid; }
 .sale-receipt-quick { display: none; }
}
