/*
 * RF United panel: the Players pages (Account, Character, Guild, Rebirth).
 *
 * Loaded after rfu-panel.css and reads its --pn-* tokens, which read the
 * Theme Designer's --rd-* values, so a different preset still repaints
 * these pages. Markup comes from includes/main/rfu_players_ui.php and the
 * pages themselves; every class here starts .pn- and sits under .pn-page.
 *
 * Shape of a page: a title with one line under it, the group's tabs on a
 * hairline, then the work. Forms are settings sheets - what a step is for
 * on the left, its fields on the right - rather than a card with tips
 * stacked in a second column of cards.
 *
 * The older theme forces fonts and submit-button fills with !important on
 * bare element selectors, so the few rules that must beat it say so too.
 */

/* =====================================================================
   FRAME
   ===================================================================== */

/* The page draws its own title; the shell's copy of it goes. The menu
   button lives in the same header and is fixed, so only the title hides. */
.rd-app.rd-topnav:has(.pn-page) .rd-topbar { padding-top: 0; padding-bottom: 0; }
.rd-app.rd-topnav:has(.pn-page) .rd-topbar-title { display: none; }
.rd-app:has(.pn-page) .rd-main { padding-top: 28px; }
@media (min-width: 768px) { .rd-app:has(.pn-page) .rd-main { padding-top: 36px; } }

.pn-page {
  display: grid;
  gap: 28px;
  min-width: 0;
  font-family: var(--pn-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--pn-ash);
}
.pn-page,
.pn-page :is(h1, h2, h3, h4, p, label, button, input, select, textarea, table, th, td, a, small, strong, li, dt, dd) {
  font-family: var(--pn-font) !important;
  letter-spacing: normal;
}
.pn-page :is(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
.pn-page :is(ul, ol) { padding: 0; list-style: none; }
.pn-page a { color: var(--pn-sky); text-decoration: none; }
.pn-page a:hover { color: var(--pn-frost); }
.pn-page :focus-visible { outline: 2px solid var(--pn-sky); outline-offset: 2px; }
.pn-num { font-variant-numeric: tabular-nums; }

/* ---- head ---- */
.pn-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
.pn-page-title { min-width: 0; max-width: 68ch; }
.pn-page-title h1 {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 0.005em !important;
  text-transform: uppercase;
  color: var(--pn-frost);
  text-wrap: balance;
}
.pn-page-title p { margin-top: 10px; font-size: 15px; color: var(--pn-ash); text-wrap: pretty; }
@media (min-width: 768px) { .pn-page-title h1 { font-size: 1.875rem; } }
.pn-page-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---- the group's tabs ---- */
.pn-tabs {
  display: flex;
  align-items: stretch;
  margin-top: -8px;
  box-shadow: inset 0 -1px 0 var(--pn-line-strong);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.pn-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .pn-tabs { -webkit-mask-image: none; mask-image: none; } }
.pn-tabs-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 20px;
  padding-right: 20px;
  border-right: 1px solid var(--pn-line-strong);
  font-size: 11px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pn-ash);
  line-height: 1;
  height: 20px;
  align-self: center;
}
.pn-tabs ul { display: flex; gap: 24px; flex-shrink: 0; padding-right: 32px !important; }
.pn-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pn-ash);
  white-space: nowrap;
  transition: color 160ms var(--pn-ease);
}
.pn-tabs a:hover { color: var(--pn-frost); }
.pn-tabs a[aria-current="page"] { color: var(--pn-frost); }
.pn-tabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pn-sky);
}
.pn-tabs a:focus-visible { outline-offset: -2px; }

/* =====================================================================
   SHEETS: what a step is for on the left, its fields on the right
   ===================================================================== */

.pn-sheet {
  max-width: 1040px;
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  min-width: 0;
}
.pn-sheet-wide { max-width: none; }
.pn-row { display: grid; gap: 16px; padding: 22px 18px; min-width: 0; }
.pn-row + .pn-row, .pn-sheet > .pn-flash + .pn-row { border-top: 1px solid var(--pn-line); }
.pn-row-intro h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pn-frost);
}
.pn-row-intro p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--pn-ash); max-width: 40ch; }
.pn-row-intro p + p { margin-top: 8px; }
.pn-row-body { display: grid; gap: 18px; align-content: start; min-width: 0; max-width: 480px; }
.pn-row-body-wide { max-width: none; }
@media (min-width: 900px) {
  .pn-row { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 40px; padding: 28px 32px; }
}

.pn-flash { display: grid; gap: 10px; padding: 18px 18px 0; }
@media (min-width: 900px) { .pn-flash { padding: 24px 32px 0; } }
.pn-flash:empty { display: none; }
.pn-flash + .pn-row { border-top: 0 !important; }

.pn-sheet-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 18px;
  border-top: 1px solid var(--pn-line);
  background: rgba(5, 7, 10, 0.32);
  border-radius: 0 0 var(--pn-radius-lg) var(--pn-radius-lg);
}
@media (min-width: 900px) { .pn-sheet-foot { padding: 20px 32px 20px calc(32px + 250px + 40px); } }
.pn-sheet-foot small { flex-basis: 100%; font-size: 12.5px; color: var(--pn-ash); }

/* A single block of content in a sheet: results, states, tables. */
.pn-sheet-body { padding: 22px 18px; min-width: 0; }
@media (min-width: 900px) { .pn-sheet-body { padding: 28px 32px; } }

/* The two-column work area used where a page has a real second column. */
.pn-work { display: grid; gap: 24px; align-items: start; min-width: 0; }
@media (min-width: 1100px) { .pn-work { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; } }
@media (min-width: 1440px) { .pn-work { grid-template-columns: minmax(0, 1fr) 360px; } }

/* =====================================================================
   FIELDS
   ===================================================================== */

.pn-page form { margin: 0; }
.pn-field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.pn-field > label, .pn-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pn-frost);
  margin: 0;
}
.pn-input {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
  transition: box-shadow 160ms var(--pn-ease);
}
.pn-input:hover { box-shadow: inset 0 0 0 1px rgba(238, 243, 248, 0.24); }
.pn-input:focus-within { box-shadow: inset 0 0 0 1px var(--pn-sky), 0 0 0 3px rgba(108, 192, 255, 0.18); }
.pn-page .pn-input :is(input, select, textarea) {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0 !important;
  border-radius: var(--pn-radius);
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
  color: var(--pn-frost) !important;
  font-size: 15px;
  font-weight: 500;
  caret-color: var(--pn-sky);
}
.pn-page .pn-input textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.pn-page .pn-input select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.pn-page .pn-input select option { background: var(--pn-surface); color: var(--pn-frost); }
.pn-input-select::after {
  content: "\f282";
  font-family: "bootstrap-icons" !important;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 13px;
  color: var(--pn-ash);
}
.pn-page .pn-input :is(input, textarea)::placeholder { color: rgba(154, 167, 180, 0.72) !important; opacity: 1; }
.pn-page .pn-input input:-webkit-autofill {
  -webkit-text-fill-color: var(--pn-frost);
  -webkit-box-shadow: 0 0 0 40px var(--pn-ground) inset !important;
}
.pn-input-secret input { letter-spacing: 0.08em; }
.pn-input-secret input:placeholder-shown { letter-spacing: normal; }
.pn-reveal {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: 2px;
  border: 0;
  border-radius: var(--pn-radius);
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pn-ash);
  font-size: 17px;
  cursor: pointer;
}
.pn-reveal:hover { color: var(--pn-frost); }
.pn-reveal[aria-pressed="true"] { color: var(--pn-sky); }
.pn-hint { display: block; font-size: 12.5px; line-height: 1.5; color: var(--pn-ash); }
.pn-hint a { font-weight: 600; }

/* The one-time-code box: six wide digits, read at a glance. */
.pn-page .pn-input-code input {
  height: 56px;
  font-size: 24px;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.42em;
  font-variant-numeric: tabular-nums;
  text-align: left;
  padding-left: 18px;
}
.pn-page .pn-input-code input::placeholder { letter-spacing: 0.42em; }
.pn-input-code { max-width: 280px; min-height: 56px; }

/* Live requirement checks under a field (rfu-panel.js). */
.pn-rules { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pn-rules li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--pn-ash); transition: color 160ms var(--pn-ease); }
.pn-rules li::before {
  content: "\f28a";
  font-family: "bootstrap-icons" !important;
  font-size: 11px;
  line-height: 1;
  color: rgba(154, 167, 180, 0.55);
}
.pn-rules li.pn-is-met { color: var(--pn-frost); }
.pn-rules li.pn-is-met::before { content: "\f26b"; color: var(--pn-good); }

/* Choice list: radio cards for picking a character or an option. */
.pn-choices { display: grid; gap: 8px; }
.pn-choice { position: relative; display: block; margin: 0; cursor: pointer; }
.pn-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pn-choice-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
  transition: box-shadow 160ms var(--pn-ease), background-color 160ms var(--pn-ease);
}
.pn-choice:hover .pn-choice-body { box-shadow: inset 0 0 0 1px rgba(238, 243, 248, 0.26); }
.pn-choice input:checked + .pn-choice-body { background: var(--pn-sky-tint); box-shadow: inset 0 0 0 1px var(--pn-sky); }
.pn-choice input:focus-visible + .pn-choice-body { outline: 2px solid var(--pn-sky); outline-offset: 2px; }
.pn-choice input:disabled + .pn-choice-body { opacity: 0.5; cursor: not-allowed; }
.pn-choice-tick {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--pn-ash);
}
.pn-choice input:checked + .pn-choice-body .pn-choice-tick { box-shadow: inset 0 0 0 5px var(--pn-sky); }
.pn-choice-copy { display: grid; min-width: 0; }
.pn-choice-copy strong { color: var(--pn-frost); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.pn-choice-copy small { font-size: 12.5px; color: var(--pn-ash); }
.pn-choice-meta { font-size: 13px; color: var(--pn-ash); font-variant-numeric: tabular-nums; text-align: right; }

/* =====================================================================
   BUTTONS (extends .pn-btn from rfu-panel.css)
   ===================================================================== */

.pn-page .pn-btn { min-height: 46px; }
.pn-page button.pn-btn { font-family: var(--pn-font) !important; }
.pn-page .pn-btn-primary,
.pn-page button[type="submit"].pn-btn-primary {
  background: var(--rd-btn-fill, #0b6fd6) !important;
  color: var(--rd-btn-ink, #fff) !important;
  border: 0 !important;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.9) !important;
}
.pn-page .pn-btn-primary:hover,
.pn-page button[type="submit"].pn-btn-primary:hover { background: var(--rd-btn-fill-hover, #095cb3) !important; }
.pn-page button[type="submit"].pn-btn-ghost,
.pn-page button[type="button"].pn-btn-ghost {
  background: rgba(5, 7, 10, 0.6) !important;
  color: var(--pn-frost) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
}
.pn-page button.pn-btn-ghost:hover { background: var(--pn-surface-2) !important; box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.5) !important; }
.pn-page .pn-btn-quiet,
.pn-page button.pn-btn-quiet {
  padding: 0 12px;
  background: transparent !important;
  color: var(--pn-ash) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pn-page .pn-btn-quiet:hover { color: var(--pn-frost) !important; background: var(--pn-surface-2) !important; }
.pn-page .pn-btn-danger,
.pn-page button.pn-btn-danger {
  background: transparent !important;
  color: #ffb3a8 !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 122, 0.5) !important;
}
.pn-page .pn-btn-danger:hover { background: rgba(255, 138, 122, 0.1) !important; color: #ffd4cd !important; }
.pn-page .pn-btn:disabled, .pn-page .pn-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.pn-page .pn-btn-sm { min-height: 36px; padding: 0 14px; font-size: 11.5px; }
.pn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }

/* =====================================================================
   MESSAGES AND STATES
   ===================================================================== */

.pn-note {
  --tone: var(--pn-sky);
  --tone-rgb: 108, 192, 255;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--pn-radius);
  background: rgba(var(--tone-rgb), 0.07);
  box-shadow: inset 0 0 0 1px rgba(var(--tone-rgb), 0.22);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(238, 243, 248, 0.84);
}
.pn-note-good { --tone: var(--pn-good); --tone-rgb: 74, 222, 128; }
.pn-note-warn { --tone: var(--pn-warn); --tone-rgb: 255, 189, 74; }
.pn-note-bad  { --tone: var(--pn-bad);  --tone-rgb: 255, 138, 122; }
.pn-note > i { font-size: 16px; line-height: 1.4; color: var(--tone); }
.pn-note strong { display: block; color: var(--pn-frost); font-weight: 650; }
.pn-note ul { margin-top: 4px !important; padding-left: 18px !important; list-style: disc !important; }
.pn-note li::marker { color: rgba(var(--tone-rgb), 0.7); }
.pn-note a { font-weight: 600; }
.pn-note p + p { margin-top: 6px; }

.pn-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 18px;
  align-items: start;
  padding: 4px 0;
}
.pn-state-mark {
  --tone-rgb: 108, 192, 255;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--pn-radius);
  background: rgba(var(--tone-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--tone-rgb), 0.3);
  color: rgb(var(--tone-rgb));
  font-size: 22px;
}
.pn-state-good .pn-state-mark { --tone-rgb: 74, 222, 128; }
.pn-state-warn .pn-state-mark { --tone-rgb: 255, 189, 74; }
.pn-state-bad .pn-state-mark  { --tone-rgb: 255, 138, 122; }
.pn-state-copy { padding-top: 2px; min-width: 0; }
.pn-state-copy h2 {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.125rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pn-frost);
  text-wrap: balance;
}
.pn-state-copy p { margin-top: 6px; font-size: 14.5px; max-width: 60ch; text-wrap: pretty; }
.pn-state-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) {
  .pn-state { grid-template-columns: minmax(0, 1fr); }
  .pn-state-actions { grid-column: 1; }
}

/* An empty board: a sheet whose only content is a state, given room. */
.pn-empty { padding: 32px 18px; }
@media (min-width: 900px) { .pn-empty { padding: 44px 32px; } }

/* =====================================================================
   BOARDS, NOTES, FACTS
   ===================================================================== */

.pn-board {
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  min-width: 0;
}
.pn-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--pn-line);
}
@media (min-width: 900px) { .pn-board-head { padding: 18px 24px; } }
.pn-board-head h2, .pn-h2 {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
  color: var(--pn-frost);
}
.pn-board-head p { margin-top: 2px; font-size: 13px; }
.pn-board-body { padding: 18px; min-width: 0; }
@media (min-width: 900px) { .pn-board-body { padding: 22px 24px; } }

.pn-notes h2 {
  font-size: 11px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: var(--pn-ash);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pn-line-strong);
}
.pn-notes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.pn-notes li + li { border-top: 1px solid var(--pn-line); }
.pn-notes li > i { font-size: 16px; line-height: 1.35; color: var(--pn-sky); }
.pn-notes strong { display: block; color: var(--pn-frost); font-size: 14px; font-weight: 650; }
.pn-notes p { margin-top: 2px; font-size: 13.5px; }

/* Key facts: a row of label over value. */
.pn-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 20px; }
.pn-facts dt {
  font-size: 10.5px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pn-ash);
}
.pn-facts dd { margin-top: 3px !important; color: var(--pn-frost); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* A balance or count shown in the page head. */
.pn-tally {
  display: inline-grid;
  gap: 2px;
  padding: 10px 16px;
  border-radius: var(--pn-radius);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  text-align: right;
}
.pn-tally small {
  font-size: 10.5px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pn-ash);
}
.pn-tally b { font-weight: 800; font-stretch: 112%; font-size: 1.375rem; line-height: 1.1; color: var(--pn-frost); font-variant-numeric: tabular-nums; }

/* Copyable value: a label, the value, a copy button. */
.pn-keyline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 14px;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
}
.pn-keyline small {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pn-ash);
}
.pn-keyline code {
  display: block;
  margin-top: 2px;
  padding: 0;
  background: none;
  color: var(--pn-frost);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}
.pn-copy {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--pn-radius);
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pn-ash);
  font-size: 16px;
  cursor: pointer;
}
.pn-copy:hover { color: var(--pn-frost); background: var(--pn-surface-2) !important; }
.pn-copy.pn-is-done { color: var(--pn-good); }

/* =====================================================================
   TABLES
   ===================================================================== */

.pn-table-wrap { overflow-x: auto; min-width: 0; scrollbar-color: var(--pn-surface-3) transparent; }
.pn-page table.pn-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
  color: rgba(238, 243, 248, 0.88);
  background: transparent;
}
.pn-page .pn-table th {
  padding: 12px 16px;
  font-size: 10.5px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: var(--pn-ash);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pn-line-strong);
}
.pn-page .pn-table td {
  padding: 13px 16px;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid var(--pn-line);
  background: transparent;
  color: inherit;
}
.pn-page .pn-table tbody tr:last-child td { border-bottom: 0; }
.pn-page .pn-table tbody tr:hover td { background: rgba(238, 243, 248, 0.025); }
.pn-page .pn-table :is(th, td):first-child { padding-left: 18px; }
.pn-page .pn-table :is(th, td):last-child { padding-right: 18px; }
@media (min-width: 900px) { .pn-page .pn-table :is(th, td):first-child { padding-left: 24px; } .pn-page .pn-table :is(th, td):last-child { padding-right: 24px; } }
.pn-table .pn-r { text-align: right; }
.pn-table .pn-num, .pn-table .pn-r { font-variant-numeric: tabular-nums; }
.pn-table .pn-strong { color: var(--pn-frost); font-weight: 650; }
.pn-table .pn-dim { color: var(--pn-ash); }

/* Below 720px a stacking table becomes one block per row. */
@media (max-width: 719px) {
  .pn-page .pn-table-stack thead { display: none; }
  .pn-page .pn-table-stack, .pn-page .pn-table-stack tbody { display: block; }
  .pn-page .pn-table-stack tr { display: grid; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--pn-line); }
  .pn-page .pn-table-stack tbody tr:last-child { border-bottom: 0; }
  .pn-page .pn-table-stack td { display: flex; justify-content: space-between; gap: 16px; padding: 0 !important; border: 0; text-align: right; }
  .pn-page .pn-table-stack td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 650;
    font-stretch: 108%;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pn-ash);
    text-align: left;
    padding-top: 2px;
  }
  .pn-page .pn-table-stack td.pn-lead { display: block; text-align: left; margin-bottom: 2px; }
  .pn-page .pn-table-stack td.pn-lead::before { display: none; }
}

/* Status pill. */
.pn-pill {
  --tone-rgb: 154, 167, 180;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--tone-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--tone-rgb), 0.28);
  color: rgb(var(--tone-rgb));
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.pn-pill-good { --tone-rgb: 74, 222, 128; }
.pn-pill-warn { --tone-rgb: 255, 189, 74; }
.pn-pill-bad  { --tone-rgb: 255, 138, 122; }
.pn-pill-sky  { --tone-rgb: 108, 192, 255; }

/* Pager. */
.pn-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-top: 1px solid var(--pn-line); font-size: 13px; }
@media (min-width: 900px) { .pn-pager { padding: 14px 24px; } }
.pn-pager-links { display: flex; flex-wrap: wrap; gap: 4px; }
.pn-pager-links a, .pn-pager-links span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--pn-radius);
  color: var(--pn-ash);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pn-pager-links a:hover { color: var(--pn-frost); background: var(--pn-surface-2); }
.pn-pager-links [aria-current="page"] { color: var(--pn-frost); background: var(--pn-sky-tint); box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.4); }

@media (prefers-reduced-motion: reduce) {
  .pn-tabs a, .pn-input, .pn-rules li, .pn-choice-body { transition: none; }
}

/* The overview's rule: short pages do not need the scroll dock. */
.rd-app:has(.pn-page) .rd-scroll-dock { display: none; }

/* =====================================================================
   ACCOUNT PIECES
   ===================================================================== */

.pn-stack { display: grid; gap: 16px; min-width: 0; }
.pn-otp-form { display: grid; gap: 14px; margin-top: 4px; }
.pn-page fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pn-row-body > p { font-size: 14.5px; color: rgba(238, 243, 248, 0.84); max-width: 60ch; }
.pn-em { color: var(--pn-frost); font-weight: 650; overflow-wrap: anywhere; }

/* A value shown read-only where a field would sit. */
.pn-value {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--pn-radius);
  background: rgba(238, 243, 248, 0.035);
  color: var(--pn-frost) !important;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pn-value-empty { color: var(--pn-ash) !important; font-weight: 500; font-style: italic; }

.pn-page .pn-input-voucher input {
  height: 56px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.pn-input-voucher { min-height: 56px; }
.pn-page .pn-input-voucher input::placeholder { letter-spacing: 0.12em; }
.pn-code { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* QR and its keys side by side. */
.pn-qr-pair { display: grid; gap: 16px; align-items: center; }
@media (min-width: 560px) { .pn-qr-pair { grid-template-columns: auto minmax(0, 1fr); gap: 24px; } }
.pn-qr {
  width: 184px;
  padding: 8px;
  border-radius: var(--pn-radius);
  background: #fff;
  line-height: 0;
}
.pn-qr img { width: 168px; height: 168px; image-rendering: pixelated; }
.pn-keys { display: grid; gap: 8px; max-width: 520px; }

/* A link's status: an icon, what it is, and the detail. */
.pn-link-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.pn-link-line > i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--pn-radius);
  background: var(--pn-surface-2);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
  color: var(--pn-ash);
  font-size: 18px;
}
.pn-link-line.pn-is-on > i { color: #8ea1ff; background: rgba(88, 101, 242, 0.12); box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.4); }
.pn-link-line div { display: grid; min-width: 0; }
.pn-link-line strong { color: var(--pn-frost); font-size: 15px; font-weight: 650; }
.pn-link-line span, .pn-link-line a { font-size: 13.5px; overflow-wrap: anywhere; }
.pn-row-body .pn-link-line + * { margin-top: 2px; }

/* Plain list with a tick in front of each line. */
.pn-ticks { display: grid; gap: 10px; }
.pn-ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--pn-ash); }
.pn-ticks li::before {
  content: "\f272";
  font-family: "bootstrap-icons" !important;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--pn-sky);
}
.pn-ticks strong { color: var(--pn-frost); font-weight: 650; }

/* What a voucher or reward gives: label on the left, amount on the right. */
.pn-yield { display: grid; max-width: 640px; }
.pn-yield > li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--pn-line);
  font-size: 14.5px;
}
.pn-yield > li:first-child { padding-top: 0; }
.pn-yield > li:last-child { border-bottom: 0; padding-bottom: 0; }
.pn-yield > li > i { color: var(--pn-sky); font-size: 15px; }
.pn-yield > li > span { color: rgba(238, 243, 248, 0.86); }
.pn-yield > li > b { color: var(--pn-frost); font-weight: 750; font-variant-numeric: tabular-nums; }
.pn-yield-items > ul { grid-column: 2 / -1; display: grid; gap: 4px; margin-top: 4px !important; font-size: 13.5px; color: var(--pn-ash); }

/* Race-coloured text for a character's race line. */
.pn-page small.pn-race-bellato, .pn-page span.pn-race-bellato { color: var(--pn-bellato); }
.pn-page small.pn-race-cora, .pn-page span.pn-race-cora { color: #c08cff; }
.pn-page small.pn-race-accretia, .pn-page span.pn-race-accretia { color: #ff7a70; }
.pn-crest-none { display: inline-block; background: var(--pn-surface-3); border-radius: 50%; }

/* =====================================================================
   CHARACTERS
   ===================================================================== */

/* ---- character picker: one button per character ---- */
.pn-picks { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.pn-picks::-webkit-scrollbar { display: none; }
.pn-page .pn-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 200px;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: var(--pn-radius);
  background: var(--pn-surface) !important;
  box-shadow: inset 0 0 0 1px var(--pn-line) !important;
  color: var(--pn-ash);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 160ms var(--pn-ease), background-color 160ms var(--pn-ease);
}
.pn-page .pn-pick:hover { box-shadow: inset 0 0 0 1px rgba(238, 243, 248, 0.24) !important; }
.pn-page .pn-pick[aria-selected="true"] { background: var(--pn-surface-2) !important; box-shadow: inset 0 0 0 1px var(--pn-sky) !important; }
.pn-pick-crest { width: 30px; height: 30px; flex-shrink: 0; }
.pn-pick-copy { display: grid; min-width: 0; }
.pn-pick-copy strong { color: var(--pn-frost); font-size: 15px; font-weight: 700; line-height: 1.25; }
.pn-pick-copy small { font-size: 12.5px; color: var(--pn-ash); white-space: nowrap; }
.pn-sheetset { display: grid; gap: 20px; min-width: 0; }
.pn-footnote { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pn-ash); }
.pn-footnote i { color: var(--pn-ash); }

/* ---- character head: the race's capital behind the name ---- */
.pn-hero {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px 18px;
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
}
.pn-hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(70%, 760px);
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85) brightness(0.62);
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.pn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--pn-surface) 30%, rgba(11, 15, 20, 0.55) 70%, rgba(11, 15, 20, 0.2));
}
.pn-hero-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pn-hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(5, 7, 10, 0.7);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
}
.pn-hero-crest { width: 38px; height: 38px; }
.pn-hero-class {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pn-ground);
  box-shadow: 0 0 0 2px var(--pn-surface);
}
.pn-hero-class img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-hero-name { min-width: 0; }
.pn-hero-name h2 {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.75rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--pn-frost);
  overflow-wrap: anywhere;
}
.pn-hero-name p { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; font-size: 14px; font-weight: 600; color: rgba(238, 243, 248, 0.82); }
.pn-hero.pn-race-bellato .pn-hero-name p > span:first-child { color: var(--pn-bellato); }
.pn-hero.pn-race-cora .pn-hero-name p > span:first-child { color: #c08cff; }
.pn-hero.pn-race-accretia .pn-hero-name p > span:first-child { color: #ff7a70; }
.pn-sep { color: var(--pn-ash); opacity: 0.6; }
.pn-hero-level { display: flex; align-items: flex-end; gap: 20px; }
.pn-hero-lv { display: grid; line-height: 1; }
.pn-hero-lv small {
  font-size: 10.5px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pn-ash);
}
.pn-hero-lv b { margin-top: 4px; font-weight: 800; font-stretch: 118%; font-size: 2.75rem; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-hero-xp { display: grid; gap: 6px; flex: 1; min-width: 140px; max-width: 260px; padding-bottom: 4px; }
.pn-hero-xp-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 650; color: var(--pn-ash); }
.pn-hero-xp-head b { color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-hero-xp-bar { display: block; height: 6px; border-radius: 3px; background: rgba(238, 243, 248, 0.1); overflow: hidden; }
.pn-hero-xp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--pn-sky); }
.pn-hero-extra { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) {
  .pn-hero { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 32px; padding: 28px 28px; }
  .pn-hero-name h2 { font-size: 2.25rem; }
  .pn-hero-xp { min-width: 200px; }
}

/* ---- body: loadout beside the ledgers ---- */
.pn-charbody { display: grid; gap: 20px; align-items: start; min-width: 0; }
.pn-charside { display: grid; gap: 20px; min-width: 0; }
@media (min-width: 1100px) { .pn-charbody { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* ---- loadout: armour on a 4-wide grid, accessories in a row ---- */
.pn-loadout { display: grid; gap: 22px; }
.pn-armour { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pn-slot-helmet { order: 1; } .pn-slot-upper { order: 2; } .pn-slot-lower { order: 3; } .pn-slot-gauntlet { order: 4; }
.pn-slot-shoe { order: 5; } .pn-slot-weapon { order: 6; } .pn-slot-shield { order: 7; } .pn-slot-cloak { order: 8; }
.pn-slot { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.pn-slot-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 92px;
  aspect-ratio: 1;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
}
.pn-slot.pn-is-empty .pn-slot-face {
  background: transparent;
  outline: 1px dashed rgba(238, 243, 248, 0.16);
  outline-offset: -1px;
  box-shadow: none;
}
.pn-slot-label {
  font-size: 10.5px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pn-ash);
  text-align: center;
}
.pn-slot.pn-is-empty .pn-slot-label { opacity: 0.6; }
.pn-acc h4 {
  margin: 0 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--pn-line);
  font-size: 10.5px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pn-ash);
}
.pn-acc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; }
.pn-slot-acc .pn-slot-face { max-width: 56px; }
.pn-slot-acc .pn-slot-label { font-size: 9.5px; letter-spacing: 0.08em; }
.pn-acc-none { font-size: 13.5px; color: var(--pn-ash); grid-column: 1 / -1; }
.pn-talics { display: inline-flex; gap: 2px; margin-left: 8px; vertical-align: middle; }
.pn-talics img { width: 10px; height: 16px; display: block; }

/* ---- ledgers ---- */
.pn-ledgers { display: grid; gap: 22px; }
.pn-ledgers h3 {
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--pn-ash);
}
.pn-ledger { display: grid; }
.pn-ledger > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--pn-line); }
.pn-ledger > div:last-child { border-bottom: 0; }
.pn-ledger dt { font-size: 14px; font-weight: 500; color: var(--pn-ash); }
.pn-ledger dd { margin: 0; text-align: right; font-size: 14.5px; font-weight: 650; color: var(--pn-frost); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pn-ledger > .pn-is-quiet dd { color: var(--pn-ash); font-weight: 500; }
.pn-ledger-gear dd { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }

/* ---- item tiles from rd_char_item(), redrawn ---- */
.pn-page .rd-item-face > img, .pn-page .rd-item > img { border-radius: 4px; }
.pn-page .rd-item-qty {
  right: 3px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(5, 7, 10, 0.88);
  font-family: var(--pn-font) !important;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pn-page .rd-item:focus-visible { outline: 2px solid var(--pn-sky); outline-offset: 3px; border-radius: 4px; }
.pn-page .rd-item-card {
  padding: 14px 16px;
  border: 0;
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface-2);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong), 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  color: var(--pn-ash);
  font-family: var(--pn-font) !important;
  font-size: 12.5px;
}
.pn-page .rd-item-card h4 { font-family: var(--pn-font) !important; font-size: 15px; font-weight: 700; color: var(--pn-frost); letter-spacing: 0; }
.pn-page .rd-item-card .rd-item-kind { color: var(--pn-sky); font-size: 10px; font-weight: 650; letter-spacing: 0.14em; }
.pn-page .rd-item-card td { color: rgba(238, 243, 248, 0.86); font-size: 12.5px; }
.pn-page .rd-item-card .rd-item-desc { color: var(--pn-ash); border-top-color: var(--pn-line); font-style: normal; }
.pn-page .pn-slot-face .rd-item { line-height: 0; }

@media (max-width: 559px) {
  .pn-armour { gap: 8px; }
  .pn-slot-label { font-size: 9.5px; letter-spacing: 0.06em; }
  .pn-page .pn-slot-face .rd-item-face { width: 48px; height: 48px; }
  .pn-page .pn-slot-face .rd-item-face > img { transform: scale(0.75); margin: -8px; }
}

/* Closed hover cards stay out of layout, or the ones near the right edge
   widen the page on phones. The script measures on hover, when it shows. */
.pn-page .rd-item:not(:hover):not(:focus-within) > .rd-item-card { display: none; }

/* A character named at the head of a sheet row. */
.pn-who { display: flex; align-items: center; gap: 12px; }
.pn-who-crest { width: 34px; height: 34px; flex-shrink: 0; }
.pn-who h2 { font-size: 16px; }
.pn-who p { margin-top: 2px; font-size: 13px; }

/* A field and its button on one line where there is room. */
.pn-inline-form { display: grid; gap: 10px; }
@media (min-width: 560px) { .pn-inline-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.pn-row-body:has(.pn-inline-form) { max-width: 560px; }

/* =====================================================================
   LOOK UP AND THE OTHER DATA PAGES
   ===================================================================== */

/* ---- the name search, under the title ---- */
.pn-lookup { display: grid; gap: 8px; max-width: 640px; }
.pn-input-lookup { min-height: 56px; padding: 4px 4px 4px 16px; gap: 10px; }
.pn-input-lookup > i { color: var(--pn-sky); font-size: 18px; }
.pn-page .pn-input-lookup input { height: 48px; padding: 0; font-size: 16px; }
.pn-input-lookup .pn-btn { min-height: 48px !important; flex-shrink: 0; }

/* ---- section switcher (data-rd-seg) ---- */
.pn-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: calc(var(--pn-radius) + 2px);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  overflow-x: auto;
  scrollbar-width: none;
  width: fit-content;
  max-width: 100%;
}
.pn-seg::-webkit-scrollbar { display: none; }
.pn-page .pn-seg-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--pn-radius);
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pn-ash) !important;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms var(--pn-ease), background-color 160ms var(--pn-ease);
}
.pn-page .pn-seg-item:hover { color: var(--pn-frost) !important; }
.pn-page .pn-seg-item[aria-selected="true"] { color: var(--pn-frost) !important; background: var(--pn-surface-3) !important; }
.pn-seg-count { font-size: 11.5px; font-weight: 700; color: var(--pn-ash); font-variant-numeric: tabular-nums; }
.pn-seg-item[aria-selected="true"] .pn-seg-count { color: var(--pn-sky); }
.pn-seg-item.pn-is-void { opacity: 0.55; }
.pn-page [role="tabpanel"]:not([hidden]) { display: grid; gap: 20px; min-width: 0; }

/* ---- class path: base, first job, final ---- */
.pn-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pn-path li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px 8px 8px;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line);
}
.pn-path li.pn-is-quiet { opacity: 0.55; }
.pn-path-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--pn-surface-2);
  color: var(--pn-ash);
}
.pn-path-icon img { width: 36px; height: 36px; object-fit: cover; display: block; max-width: none; }
.pn-path-copy { display: grid; min-width: 0; line-height: 1.25; }
.pn-path-copy small { font-size: 10px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pn-ash); }
.pn-path-copy b { font-size: 13.5px; font-weight: 700; color: var(--pn-frost); overflow-wrap: anywhere; }
@media (max-width: 559px) { .pn-path { grid-template-columns: minmax(0, 1fr); } }
.pn-ledgers-split { gap: 18px; }
@media (min-width: 1280px) { .pn-ledgers-split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } .pn-ledgers-split > section:last-child { grid-column: 1 / -1; } }

.pn-guildtag { display: inline-flex; align-items: center; gap: 6px; }
.pn-guildtag.pn-is-quiet { color: var(--pn-ash); font-weight: 500; }
.pn-guildname { display: inline-flex; align-items: center; gap: 6px; }

/* ---- bags ---- */
.pn-bags { display: grid; gap: 22px; }
.pn-bag-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pn-bag-head strong { color: var(--pn-frost); font-size: 14px; font-weight: 700; }
.pn-bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.pn-bag-grid .pn-slot { gap: 0; }
.pn-bag-grid .pn-slot-label { display: none; }
.pn-bag-grid .pn-slot-face { max-width: 72px; }
.pn-bag-void {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--pn-radius);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  font-size: 13.5px;
  color: var(--pn-ash);
}
.pn-bag-void strong { color: rgba(238, 243, 248, 0.86); font-weight: 600; margin-right: auto; }
@media (max-width: 559px) {
  .pn-bag-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pn-page .pn-bag-grid .rd-item-face { width: 48px; height: 48px; }
  .pn-page .pn-bag-grid .rd-item-face > img { transform: scale(0.75); margin: -8px; }
}

/* ---- force skills ---- */
.pn-headstat { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--pn-ash); }
.pn-headstat b { font-weight: 800; font-stretch: 112%; font-size: 1.25rem; color: var(--pn-sky); font-variant-numeric: tabular-nums; }
.pn-skillboard { display: grid; gap: 16px; }
@media (min-width: 900px) { .pn-skillboard { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; } }
.pn-skillgroup { padding: 14px; border-radius: var(--pn-radius); background: var(--pn-ground); box-shadow: inset 0 0 0 1px var(--pn-line); min-width: 0; }
.pn-skillgroup-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--pn-line); }
.pn-skillgroup-head h3 { margin-right: auto; font-weight: 800; font-stretch: 112%; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em !important; color: var(--pn-frost); }
.pn-skillgroup-count { font-size: 12.5px; color: var(--pn-ash); font-variant-numeric: tabular-nums; }
.pn-skillgroup-count b { color: var(--pn-frost); }
.pn-skillgroup-bar { flex-basis: 100%; height: 3px; border-radius: 2px; background: var(--pn-surface-3); overflow: hidden; }
.pn-skillgroup-bar i { display: block; height: 100%; background: var(--pn-sky); }
.pn-skilltier { margin: 12px 0 4px; font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-skillrow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 6px 0; }
.pn-skill-icon { grid-row: span 2; width: 32px; height: 32px; overflow: hidden; border-radius: 4px; }
.pn-skill-icon .papuy { transform: scale(0.5); transform-origin: 0 0; }
.pn-skillrow-name { font-size: 13.5px; font-weight: 600; color: rgba(238, 243, 248, 0.9); overflow-wrap: anywhere; }
.pn-skillrow-lv { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--pn-ash); font-variant-numeric: tabular-nums; }
.pn-skillrow.pn-is-gm .pn-skillrow-lv { color: var(--pn-good); }
.pn-skillrow.pn-is-unlearned { opacity: 0.55; }
.pn-skillmeter { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.pn-skillmeter i { height: 3px; border-radius: 2px; background: var(--pn-surface-3); }
.pn-skillmeter i.pn-on { background: var(--pn-sky); }
.pn-skillrow.pn-is-gm .pn-skillmeter i.pn-on { background: var(--pn-good); }

/* force mastery matrix */
.pn-fmgrid-wrap { overflow-x: auto; }
.pn-page table.pn-fmgrid { width: 100%; border-collapse: collapse; font-size: 13px; }
.pn-page .pn-fmgrid :is(th, td) { padding: 8px 10px; border: 0; border-bottom: 1px solid var(--pn-line); text-align: center; color: rgba(238, 243, 248, 0.86); background: transparent; font-variant-numeric: tabular-nums; }
.pn-page .pn-fmgrid thead th { font-size: 10.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pn-ash); }
.pn-page .pn-fmgrid tbody th { text-align: left; color: var(--pn-frost); font-weight: 650; }
.pn-page .pn-fmgrid td.pn-is-gm { color: var(--pn-good); font-weight: 700; }
.pn-page .pn-fmgrid td.pn-is-void { color: var(--pn-ash); opacity: 0.5; }

/* ---- mastery tiles ---- */
.pn-masterygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pn-masterytile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line);
}
.pn-masterytile.pn-is-gm { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35); }
.pn-masterytile.pn-is-zero { opacity: 0.6; }
.pn-masterytile-name { font-size: 13.5px; font-weight: 650; color: var(--pn-frost); }
.pn-masterytile-lv { font-weight: 800; font-stretch: 112%; font-size: 1.25rem; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-masterytile-lv small { margin-right: 4px; font-size: 10.5px; font-weight: 650; letter-spacing: 0.12em; color: var(--pn-ash); }
.pn-masterytile-pt { justify-self: end; font-size: 12px; color: var(--pn-ash); font-variant-numeric: tabular-nums; }
.pn-pill .bi { font-size: 11px; }
.pn-pill .pn-dot { width: 6px; height: 6px; background: currentColor; }

/* ---- cash history ---- */
.pn-cash { display: grid; gap: 16px; }
.pn-cashsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pn-cashsum > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--pn-radius); background: var(--pn-ground); box-shadow: inset 0 0 0 1px var(--pn-line); }
.pn-cashsum span { font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-cashsum b { font-weight: 800; font-stretch: 112%; font-size: 1.375rem; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-cashsum small { font-size: 12px; color: var(--pn-ash); }
.pn-cashsum small.pn-is-bad { color: var(--pn-bad); }
.pn-cashbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pn-cashfilter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  max-width: 420px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
}
.pn-cashfilter:focus-within { box-shadow: inset 0 0 0 1px var(--pn-sky), 0 0 0 3px rgba(108, 192, 255, 0.18); }
.pn-cashfilter i { color: var(--pn-ash); }
.pn-page .pn-cashfilter input { flex: 1; min-width: 0; height: 42px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--pn-frost) !important; font-size: 14.5px; outline: 0; }
.pn-cashcount { font-size: 13px; color: var(--pn-ash); font-variant-numeric: tabular-nums; }
.pn-page .pn-cash .pn-table-wrap { margin: 0 -18px; }
@media (min-width: 900px) { .pn-page .pn-cash .pn-table-wrap { margin: 0 -24px; } }
.pn-page .pn-table tr.pn-is-failed td { color: var(--pn-ash); }
.pn-cash-when small { display: block; font-size: 12px; color: var(--pn-ash); }
.pn-cash-none { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--pn-ash); }
.pn-cash-more { display: flex; justify-content: center; }

/* ---- quests ---- */
.pn-board-caption { font-size: 13px; line-height: 1.6; color: var(--pn-ash); max-width: 80ch; }
.pn-board-caption + .pn-board-caption, .pn-table-wrap + .pn-board-caption { margin-top: 12px; }
.pn-board-caption + .pn-table-wrap { margin-top: 14px; }
.pn-page .pn-table .pn-board-c { text-align: center; }
.pn-page .pn-table .pn-board-mono { font-variant-numeric: tabular-nums; color: var(--pn-ash); }
.pn-board-guild-empty { font-size: 12px; color: var(--pn-ash); }
.pn-masterygrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pn-masterytile { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "pill pill" "lv pt"; }
.pn-masterytile-name { grid-area: name; }
.pn-masterytile > .pn-pill { grid-area: pill; justify-self: start; }
.pn-masterytile-lv { grid-area: lv; }
.pn-masterytile-pt { grid-area: pt; }
.pn-page .pn-fmgrid td > span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- activity history: the search ---- */
.pn-logsearch { max-width: none; }
.pn-logsearch-fields { display: grid; gap: 14px; padding: 20px 18px 0; align-items: end; }
@media (min-width: 720px) { .pn-logsearch-fields { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; padding: 24px 24px 0; } }
.pn-logsearch-fields .pn-btn { min-height: 48px !important; }
.pn-page .pn-input input[type="date"] { color-scheme: dark; }
.pn-quick { display: grid; gap: 10px; padding: 16px 18px 20px; }
@media (min-width: 720px) { .pn-quick { padding: 16px 24px 22px; } }
.pn-quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pn-quick-label { min-width: 64px; font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-page .pn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
  color: rgba(238, 243, 248, 0.86) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pn-page .pn-chip small { font-size: 11.5px; color: var(--pn-ash); font-weight: 500; }
.pn-page .pn-chip:hover { box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.5) !important; }
.pn-page .pn-chip.rd-is-active { background: var(--pn-sky-tint) !important; box-shadow: inset 0 0 0 1px var(--pn-sky) !important; color: var(--pn-frost) !important; }
.pn-logsearch-foot { padding-left: 18px !important; }
@media (min-width: 720px) { .pn-logsearch-foot { padding: 18px 24px !important; } }
.pn-logsearch-foot .pn-ticks { gap: 6px; }
.pn-logsearch-foot .pn-ticks li { font-size: 13.5px; }

/* ---- the day: head stats ---- */
.pn-hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 20px; }
.pn-hero-stats dt { font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-hero-stats dd { margin: 2px 0 0; font-weight: 750; font-size: 15px; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-headstat.pn-is-neutral b { color: var(--pn-frost); }

/* ---- history files list ---- */
.pn-logfiles { display: grid; gap: 8px; }
.pn-page a.pn-logfile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  color: var(--pn-ash);
}
.pn-page a.pn-logfile:hover { box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.45); color: var(--pn-ash); }
.pn-logfile-time b { font-weight: 800; font-stretch: 112%; font-size: 1.25rem; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-logfile-copy { display: grid; min-width: 0; }
.pn-logfile-copy strong { color: var(--pn-frost); font-size: 14px; }
.pn-logfile-go { display: inline-flex; align-items: center; gap: 6px; color: var(--pn-sky); font-size: 13px; font-weight: 650; }

/* ---- categories ---- */
.pn-actlog { display: grid; gap: 18px; }
.pn-logtabs { display: grid; gap: 10px; }
.pn-logtabs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pn-page .pn-logtab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon count" "label label";
  align-items: center;
  gap: 6px 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--pn-radius);
  background: var(--pn-ground) !important;
  box-shadow: inset 0 0 0 1px var(--pn-line) !important;
  color: var(--pn-ash) !important;
  text-align: left;
  cursor: pointer;
}
.pn-page .pn-logtab:hover { box-shadow: inset 0 0 0 1px rgba(238, 243, 248, 0.24) !important; }
.pn-page .pn-logtab[aria-selected="true"] { background: var(--pn-surface-2) !important; box-shadow: inset 0 0 0 1px var(--pn-sky) !important; }
.pn-logtab > i { grid-area: icon; font-size: 16px; color: var(--pn-sky); }
.pn-logtab-count { grid-area: count; justify-self: end; font-weight: 800; font-stretch: 112%; font-size: 1.25rem; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-logtab-label { grid-area: label; font-size: 13px; font-weight: 600; }
.pn-logtabs-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; }
.pn-logtabs-empty > span { margin-right: 6px; color: var(--pn-ash); }
.pn-page .pn-logtab-mini {
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px var(--pn-line) !important;
  color: var(--pn-ash) !important;
  font-size: 12px;
  cursor: pointer;
}
.pn-page .pn-logtab-mini[aria-selected="true"] { color: var(--pn-frost) !important; box-shadow: inset 0 0 0 1px var(--pn-sky) !important; }

.pn-logpanel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--pn-line); }
.pn-logpanel-icon { color: var(--pn-sky); font-size: 16px; }
.pn-logpanel-head h3 { margin-right: auto; font-weight: 800; font-stretch: 112%; font-size: 15px; text-transform: uppercase; color: var(--pn-frost); }
.pn-logpanel-count { font-size: 13px; color: var(--pn-ash); font-variant-numeric: tabular-nums; }

/* ---- the timeline ---- */
.pn-timeline { display: grid; }
.pn-log-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 0 6px;
  border-top: 1px solid var(--pn-line);
  font-size: 13px;
  color: var(--pn-ash);
}
.pn-timeline > .pn-log-group:first-child { border-top: 0; }
.pn-log-group.pn-is-sub { border-top: 0; padding-top: 4px; }
.pn-log-time { font-weight: 800; font-stretch: 112%; font-size: 14px; color: var(--pn-sky); font-variant-numeric: tabular-nums; }
.pn-log-group strong { color: var(--pn-frost); font-size: 14px; font-weight: 700; }
.pn-log-group > span:not(.pn-log-time) { display: inline-flex; align-items: center; gap: 5px; }
.pn-logrow {
  display: grid;
  grid-template-columns: 16px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.pn-log-dir { font-weight: 800; font-size: 16px; text-align: center; }
.pn-log-gain { color: var(--pn-good); }
.pn-log-loss { color: var(--pn-bad); }
.pn-logrow-copy { display: grid; min-width: 0; }
.pn-logrow-copy strong { color: rgba(238, 243, 248, 0.92); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pn-logrow-copy small { font-size: 12.5px; color: var(--pn-ash); }
.pn-log-code { font-size: 11.5px; color: var(--pn-ash); font-variant-numeric: tabular-nums; }
.pn-log-amount { font-size: 13.5px; font-weight: 700; color: var(--pn-frost); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-log-wealth { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 2px 0 6px 28px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pn-log-wealth span { display: inline-flex; align-items: center; gap: 5px; }
.pn-log-wealth .pn-is-pay { color: var(--pn-bad); }
.pn-log-wealth .pn-is-rev { color: var(--pn-good); }
.pn-upgrade-level, .pn-upgrade-mat-head { padding: 4px 0 2px 28px; font-size: 12.5px; color: var(--pn-ash); }

/* =====================================================================
   SHOPS, PURCHASES, PAYOUTS
   ===================================================================== */

/* ---- filters ---- */
.pn-shopbar { display: grid; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--pn-line); }
@media (min-width: 720px) { .pn-shopbar { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); padding: 18px 24px; } }
.pn-shopbar .pn-field > label { font-size: 12px; color: var(--pn-ash); font-weight: 600; }
.pn-shopbar .pn-input { min-height: 44px; }
.pn-page .pn-shopbar .pn-input select { height: 44px; font-size: 14px; }

/* ---- one listing per item ---- */
.pn-wares { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pn-wares:empty { display: none; }
.pn-ware { min-width: 0; border-bottom: 1px solid var(--pn-line); }
.pn-ware form {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas: "art copy" "art buy";
  gap: 10px 16px;
  height: 100%;
  padding: 16px 18px;
  transition: background-color 160ms var(--pn-ease);
}
.pn-ware:hover form { background: rgba(238, 243, 248, 0.025); }
@media (min-width: 720px) { .pn-ware form { padding: 18px 24px; } }
/* Every listing draws its right rule; the last column's is clipped off. */
.pn-wares { overflow: hidden; }
.pn-ware { margin-right: -1px; box-shadow: inset -1px 0 0 var(--pn-line); }
.pn-ware-art { grid-area: art; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--pn-radius); background: var(--pn-ground); box-shadow: inset 0 0 0 1px var(--pn-line-strong); }
.pn-ware-art img { max-width: 56px; max-height: 56px; }
.pn-ware-copy { grid-area: copy; min-width: 0; }
.pn-ware-copy strong { display: block; color: var(--pn-frost); font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pn-ware-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.pn-ware-sold { font-size: 12.5px; color: var(--pn-ash); }
.pn-ware-buy { grid-area: buy; display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: end; }
.pn-ware-price { display: inline-flex; align-items: baseline; gap: 6px; }
.pn-ware-price b { font-weight: 800; font-stretch: 112%; font-size: 1.25rem; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-ware-price small { font-size: 12px; color: var(--pn-ash); }
.pn-page .pn-ware .pn-btn:disabled { opacity: 0.4; }

.pn-racetag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: rgba(238, 243, 248, 0.84); }
.pn-racetag-crest { width: 16px; height: 16px; }

/* ---- the order on the confirm step ---- */
.pn-receipt { max-width: 480px; }
.pn-receipt .pn-receipt-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--pn-line-strong); border-bottom: 0; }
.pn-receipt .pn-receipt-total dd { color: var(--pn-sky); }
.pn-page .pn-receipt dd select { min-width: 80px; height: 36px; padding: 0 8px; border-radius: var(--pn-radius); background: var(--pn-ground) !important; color: var(--pn-frost) !important; border: 1px solid var(--pn-line-strong) !important; }

/* ---- the old pager, redrawn ---- */
.pn-pager-legacy .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 !important; padding: 0; list-style: none; }
.pn-page .pn-pager-legacy .page-link {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 0 !important;
  border-radius: var(--pn-radius) !important;
  background: transparent !important;
  color: var(--pn-ash) !important;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none !important;
}
.pn-page .pn-pager-legacy .page-link:hover { background: var(--pn-surface-2) !important; color: var(--pn-frost) !important; }
.pn-page .pn-pager-legacy .active .page-link, .pn-page .pn-pager-legacy .page-item.active > * { background: var(--pn-sky-tint) !important; color: var(--pn-frost) !important; box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.4) !important; }
.pn-pager-legacy { justify-content: center; }

/* ---- payouts ---- */
.pn-gift-bank { margin-bottom: 18px; padding: 4px 14px; border-radius: var(--pn-radius); background: var(--pn-ground); box-shadow: inset 0 0 0 1px var(--pn-line); }
.pn-gift-bank dd { color: var(--pn-sky); }
.pn-board-body form { display: grid; gap: 18px; max-width: 480px; }
.pn-page .pn-table tr.pn-empty-row td { padding: 28px 24px; text-align: center; color: var(--pn-ash); }
.pn-datatable .dataTables_wrapper { padding: 0 18px 14px; color: var(--pn-ash); font-size: 13px; }
.pn-page .pn-datatable .dataTables_wrapper :is(input, select) { background: var(--pn-ground) !important; color: var(--pn-frost) !important; border: 1px solid var(--pn-line-strong) !important; border-radius: var(--pn-radius) !important; }

/* =====================================================================
   REALM
   ===================================================================== */

.pn-c { text-align: center; }
.pn-cell-sub { display: block; font-size: 12px; color: var(--pn-ash); }
.pn-times { margin-left: 4px; font-size: 12px; color: var(--pn-ash); font-variant-numeric: tabular-nums; }
.pn-racename { font-weight: 650; }
.pn-racename.pn-race-bellato, .pn-racetag.pn-race-bellato > span { color: var(--pn-bellato); }
.pn-racename.pn-race-cora, .pn-racetag.pn-race-cora > span { color: #c08cff; }
.pn-racename.pn-race-accretia, .pn-racetag.pn-race-accretia > span { color: #ff7a70; }
.pn-names { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.pn-names > span { padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--pn-line-strong); font-size: 12.5px; color: rgba(238, 243, 248, 0.86); }
.pn-page .pn-table thead th.pn-c { text-align: center; }

/* ---- the live strip: one figure leads, three follow ---- */
.pn-now {
  display: grid;
  gap: 18px;
  padding: 20px 18px;
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
}
@media (min-width: 900px) { .pn-now { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); align-items: center; padding: 24px 28px; gap: 32px; } }
.pn-now-lead { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.pn-now-lead small { font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-now-lead b { grid-column: 1 / -1; font-weight: 800; font-stretch: 118%; font-size: 3rem; line-height: 1; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-now-lead > span:last-child { grid-column: 1 / -1; margin-top: 6px; font-size: 13px; color: var(--pn-ash); }
.pn-live { width: 8px; height: 8px; border-radius: 50%; background: var(--pn-surface-3); }
.pn-live.pn-is-live { background: var(--pn-good); }
.pn-now-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 900px) { .pn-now-facts { padding-left: 32px; border-left: 1px solid var(--pn-line-strong); } }
.pn-now-facts > div { display: grid; gap: 2px; min-width: 0; }
.pn-now-facts dt { font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-now-facts dd { margin: 0; font-weight: 800; font-stretch: 112%; font-size: 1.5rem; line-height: 1.15; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-now-facts span { font-size: 12.5px; color: var(--pn-ash); }
@media (max-width: 479px) { .pn-now-facts { grid-template-columns: minmax(0, 1fr); } }

/* ---- charts ---- */
.pn-charts { display: grid; gap: 20px; }
@media (min-width: 1100px) { .pn-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pn-chart { margin: 0; min-width: 0; }
.pn-chart figcaption { margin-bottom: 6px; font-size: 13.5px; font-weight: 650; color: var(--pn-frost); }

/* ---- faction splits ---- */
.pn-splits { display: grid; gap: 24px; }
@media (min-width: 900px) { .pn-splits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.pn-split header h3 { font-weight: 800; font-stretch: 112%; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em !important; color: var(--pn-frost); }
.pn-split header p { font-size: 12.5px; }
.pn-split ul { display: grid; gap: 12px; margin-top: 14px !important; }
.pn-split li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.pn-split-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(238, 243, 248, 0.9); }
.pn-split-crest { width: 18px; height: 18px; }
.pn-split-val { font-weight: 750; font-size: 14.5px; color: var(--pn-frost); font-variant-numeric: tabular-nums; text-align: right; }
.pn-split-bar { display: block; height: 6px; border-radius: 3px; background: rgba(238, 243, 248, 0.08); overflow: hidden; }
.pn-split-bar i { display: block; height: 100%; border-radius: 3px; }
.pn-split .pn-race-bellato .pn-split-bar i { background: #a8840a; }
.pn-split .pn-race-cora .pn-split-bar i { background: #9a52ec; }
.pn-split .pn-race-accretia .pn-split-bar i { background: #dd3f35; }
.pn-split-pct { font-size: 12.5px; color: var(--pn-ash); text-align: right; font-variant-numeric: tabular-nums; }
.pn-split-total { display: flex; justify-content: space-between; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--pn-line); font-size: 13px; }
.pn-split-total b { color: var(--pn-frost); font-variant-numeric: tabular-nums; }

/* ---- chip wars ---- */
.pn-wartimes ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pn-wartimes li { display: grid; gap: 2px; padding: 18px; min-width: 0; }
.pn-wartimes li + li { border-left: 1px solid var(--pn-line); }
@media (min-width: 900px) { .pn-wartimes li { padding: 20px 24px; } }
.pn-wartimes small { font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-wartimes b { font-weight: 800; font-stretch: 112%; font-size: 1.625rem; line-height: 1.15; color: rgba(238, 243, 248, 0.7); font-variant-numeric: tabular-nums; }
.pn-wartimes li > span { font-size: 12.5px; color: var(--pn-ash); }
.pn-wartimes li.pn-is-next b { color: var(--pn-sky); }
.pn-wartimes li.pn-is-next small { color: var(--pn-frost); }
.pn-wartimes > p { padding: 10px 18px; border-top: 1px solid var(--pn-line); font-size: 12.5px; color: var(--pn-ash); }
@media (min-width: 900px) { .pn-wartimes > p { padding: 10px 24px; } }
@media (max-width: 559px) {
  .pn-wartimes ol { grid-template-columns: minmax(0, 1fr); }
  .pn-wartimes li + li { border-left: 0; border-top: 1px solid var(--pn-line); }
  .pn-wartimes li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .pn-wartimes li > span { display: none; }
}
.pn-records { display: grid; gap: 14px; }
@media (min-width: 720px) { .pn-records { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.pn-record { display: grid; gap: 12px; }
.pn-record-head { display: flex; align-items: center; gap: 10px; }
.pn-record-head strong { font-size: 15px; color: var(--pn-frost); }
.pn-record-crest { width: 26px; height: 26px; }
.pn-record dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pn-record dt { font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-record dd { margin: 2px 0 0; font-weight: 800; font-stretch: 112%; font-size: 1.25rem; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-record-bar { display: block; height: 6px; border-radius: 3px; background: rgba(238, 243, 248, 0.08); overflow: hidden; }
.pn-record-bar i { display: block; height: 100%; border-radius: 3px; }
.pn-record.pn-race-bellato .pn-record-bar i { background: #a8840a; }
.pn-record.pn-race-cora .pn-record-bar i { background: #9a52ec; }
.pn-record.pn-race-accretia .pn-record-bar i { background: #dd3f35; }
.pn-page .pn-table tr.pn-dayrow th {
  padding: 16px 18px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em !important;
  text-transform: none;
  color: var(--pn-frost);
  background: transparent;
  border-bottom: 1px solid var(--pn-line-strong);
}
@media (min-width: 900px) { .pn-page .pn-table tr.pn-dayrow th { padding-left: 24px; } }
@media (max-width: 719px) { .pn-page .pn-table-stack tr.pn-dayrow { display: block; padding: 14px 18px 4px; } .pn-page .pn-table-stack tr.pn-dayrow th { display: block; padding: 0; border: 0; } }

/* ---- council ---- */
.pn-council { display: grid; gap: 16px; }
.pn-council-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 22px 18px;
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 900px) { .pn-council-head { padding: 26px 28px; } }
.pn-council-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(60%, 640px);
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.55);
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.pn-council-title { display: flex; align-items: center; gap: 14px; }
.pn-council-crest { width: 42px; height: 42px; }
.pn-council-title h2 { font-weight: 800; font-stretch: 118%; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; color: var(--pn-frost); }
.pn-council-title p { margin-top: 4px; font-size: 13.5px; color: rgba(238, 243, 248, 0.8); }
.pn-council-meter { display: flex; gap: 4px; }
.pn-council-meter i { width: 18px; height: 6px; border-radius: 3px; background: rgba(238, 243, 248, 0.14); }
.pn-council-meter i.pn-is-on { background: var(--pn-sky); }
.pn-council-wings { display: grid; gap: 16px; }
@media (min-width: 1100px) { .pn-council-wings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pn-wing h3 { margin-bottom: 8px; font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.16em !important; text-transform: uppercase; color: var(--pn-ash); }
.pn-wing-pair { display: grid; gap: 10px; }
@media (min-width: 560px) { .pn-wing-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pn-seat {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--pn-radius);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
}
.pn-seat-archon { padding: 18px 20px; box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.35); }
@media (min-width: 900px) { .pn-seat-archon { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; } .pn-seat-archon .pn-seat-kd { grid-column: 2; grid-row: 1 / span 4; align-self: center; } }
.pn-seat-role { font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-seat-archon .pn-seat-role { color: var(--pn-sky); }
.pn-seat-name { font-weight: 800; font-stretch: 112%; font-size: 1.125rem; line-height: 1.2; color: var(--pn-frost); overflow-wrap: anywhere; }
.pn-seat-archon .pn-seat-name { font-size: 1.5rem; }
.pn-page .pn-seat-name a { color: var(--pn-frost); }
.pn-page .pn-seat-name a:hover { color: var(--pn-sky); }
.pn-seat-line { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: rgba(238, 243, 248, 0.84); }
.pn-seat-line > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-seat-ico { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.pn-seat-kd { display: flex; gap: 18px; margin-top: 4px !important; }
.pn-seat-kd dt { font-size: 10px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pn-ash); }
.pn-seat-kd dd { margin: 0; font-weight: 750; font-size: 14px; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-seat.pn-is-vacant { background: transparent; box-shadow: none; outline: 1px dashed rgba(238, 243, 248, 0.16); outline-offset: -1px; }
.pn-seat.pn-is-vacant .pn-seat-name { color: var(--pn-ash); font-size: 1rem; }
.pn-seat-note { font-size: 12.5px; color: var(--pn-ash); }

/* guild emblem: tinted back plate with the mark masked over it */
.pn-emblem { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; }
.pn-emblem-back { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; }
.pn-emblem-back img { width: 100%; height: 100%; display: block; }
.pn-emblem-mark { position: absolute; inset: 2px; }
.pn-emblem-lg { width: 34px; height: 34px; }

/* ---- pitboss ---- */
.pn-bosscount { font-size: 14px; color: var(--pn-ash); }
.pn-bosscount b { font-weight: 800; font-stretch: 112%; font-size: 1.5rem; color: var(--pn-frost); margin-right: 4px; font-variant-numeric: tabular-nums; }
.pn-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.pn-zone { border-radius: var(--pn-radius-lg); background: var(--pn-surface); box-shadow: inset 0 0 0 1px var(--pn-line); min-width: 0; }
.pn-zone.pn-has-up { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.3); }
.pn-zone header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--pn-line); }
.pn-zone h2 { font-size: 14.5px; font-weight: 700; color: var(--pn-frost); }
.pn-zone ul { padding: 6px 16px 10px !important; }
.pn-zone li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.pn-zone li + li { border-top: 1px solid var(--pn-line); }
.pn-boss-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pn-surface-3); }
.pn-is-up .pn-boss-dot { background: var(--pn-good); }
.pn-boss-name { color: rgba(238, 243, 248, 0.9); overflow-wrap: anywhere; }
.pn-boss-when { font-size: 12px; color: var(--pn-ash); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-is-up .pn-boss-when { color: var(--pn-good); font-weight: 650; }

/* ---- ban list ---- */
.pn-perpage { font-size: 13px; color: var(--pn-ash); }
.pn-page .pn-perpage form { display: flex; align-items: center; gap: 8px; margin: 0; }
.pn-page .pn-perpage label { display: flex; align-items: center; gap: 8px; margin: 0; }
.pn-page .pn-perpage select, .pn-page .pn-pager-legacy select {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--pn-line-strong) !important;
  border-radius: var(--pn-radius) !important;
  background-color: var(--pn-ground) !important;
  color: var(--pn-frost) !important;
  font-size: 13px;
}
.pn-page .pn-pager-legacy > div { width: 100%; }
.pn-page .pn-pager-legacy .text-muted { color: var(--pn-ash) !important; }
.pn-bantable td:first-child { max-width: 46ch; }

/* ---- rankings ---- */
.pn-rankbar { display: grid; gap: 14px; }
@media (min-width: 1100px) { .pn-rankbar { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.pn-cats { display: grid; gap: 8px; }
.pn-cats-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pn-cats-label { min-width: 84px; font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-page .pn-cat {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
  color: rgba(238, 243, 248, 0.84) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pn-page .pn-cat:hover { box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.5) !important; }
.pn-page .pn-cat[aria-selected="true"] { background: var(--pn-sky-tint) !important; box-shadow: inset 0 0 0 1px var(--pn-sky) !important; color: var(--pn-frost) !important; }
@media (max-width: 719px) {
  .pn-cats-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pn-cats-row::-webkit-scrollbar { display: none; }
  .pn-cats-label { min-width: auto; margin-right: 4px; }
  .pn-page .pn-cat { flex-shrink: 0; }
}
.pn-racefilter { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: calc(var(--pn-radius) + 2px); background: var(--pn-surface); box-shadow: inset 0 0 0 1px var(--pn-line); width: fit-content; }
.pn-page .pn-racefilter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--pn-radius);
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pn-ash) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pn-page .pn-racefilter-btn:hover { color: var(--pn-frost) !important; }
.pn-page .pn-racefilter-btn.pn-is-on { background: var(--pn-surface-3) !important; color: var(--pn-frost) !important; }
.pn-racefilter-crest { width: 16px; height: 16px; }
.pn-rankboard .pn-rank-caption { padding: 14px 18px 0; }
@media (min-width: 900px) { .pn-rankboard .pn-rank-caption { padding: 16px 24px 0; } }
.pn-rankboard .pn-table-wrap + .pn-rank-caption { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--pn-line); }
.pn-page .pn-ranktable :is(th, td).pn-rank-col { width: 52px; text-align: center; }
.pn-rank { font-weight: 700; font-size: 14px; color: var(--pn-ash); font-variant-numeric: tabular-nums; }
.pn-rank.pn-rank-top { font-weight: 800; font-stretch: 112%; font-size: 1.125rem; color: var(--pn-frost); }
.pn-page .pn-ranktable tbody tr:nth-child(-n+3) td { background: rgba(108, 192, 255, 0.035); }
.pn-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pn-player-ava { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 6px; background: var(--pn-ground); color: var(--pn-ash); }
.pn-player-ava img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.pn-player-live { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--pn-good); box-shadow: 0 0 0 2px var(--pn-surface); }
.pn-player-copy { display: grid; min-width: 0; }
.pn-page a.pn-player-name { color: var(--pn-frost); font-weight: 650; font-size: 14px; overflow-wrap: anywhere; }
.pn-page a.pn-player-name:hover { color: var(--pn-sky); }
.pn-player-copy small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pn-ash); font-variant-numeric: tabular-nums; }
.pn-player-crest { width: 14px; height: 14px; }
.pn-guild { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pn-guild-copy { display: grid; min-width: 0; }
.pn-guild-copy strong { color: var(--pn-frost); font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; }
.pn-guild-copy small { font-size: 12px; color: var(--pn-ash); }
@media (max-width: 899px) { .pn-ranktable { min-width: 760px; } }

/* The older theme fills every submit button with the accent at a
   specificity of five classes. Submit buttons that are not primary repeat
   their own class until they outrank it. */
.pn-page button[type="submit"].pn-btn-ghost.pn-btn-ghost.pn-btn-ghost.pn-btn-ghost {
  background: rgba(5, 7, 10, 0.6) !important;
  color: var(--pn-frost) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
}
.pn-page button[type="submit"].pn-btn-quiet.pn-btn-quiet.pn-btn-quiet.pn-btn-quiet {
  background: transparent !important;
  color: var(--pn-ash) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pn-page button[type="submit"].pn-btn-danger.pn-btn-danger.pn-btn-danger.pn-btn-danger {
  background: transparent !important;
  color: #ffb3a8 !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 122, 0.5) !important;
}
.pn-page button[type="submit"].pn-racefilter-btn.pn-racefilter-btn.pn-racefilter-btn.pn-racefilter-btn {
  background: transparent !important;
  color: var(--pn-ash) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pn-page button[type="submit"].pn-racefilter-btn.pn-is-on.pn-is-on.pn-is-on.pn-is-on { background: var(--pn-surface-3) !important; color: var(--pn-frost) !important; }
.pn-page button[type="submit"].pn-racefilter-btn.pn-racefilter-btn.pn-racefilter-btn.pn-racefilter-btn:hover { color: var(--pn-frost) !important; }
.pn-page button[type="submit"].pn-btn-ghost.pn-btn-ghost.pn-btn-ghost.pn-btn-ghost:hover { background: var(--pn-surface-2) !important; box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.5) !important; }
.pn-page button[type="submit"].pn-btn-danger.pn-btn-danger.pn-btn-danger.pn-btn-danger:hover { background: rgba(255, 138, 122, 0.1) !important; color: #ffd4cd !important; }
.pn-page .pn-ranktable td { white-space: nowrap; }

/* =====================================================================
   ACTIVITIES, RECRUIT AND THEIR STAFF PAGES
   ===================================================================== */

.pn-gap-top { margin-top: 12px !important; }
.pn-when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pn-pill-quiet { --tone-rgb: 154, 167, 180; }
.pn-page .pn-btn-block { display: flex; width: 100%; }
.pn-adm-body > * + * { margin-top: 16px; }
.pn-board-body > .pn-table-wrap { margin-left: -18px; margin-right: -18px; }
@media (min-width: 900px) { .pn-board-body > .pn-table-wrap { margin-left: -24px; margin-right: -24px; } }
.pn-board-body > .pn-table-wrap:last-child { margin-bottom: -18px; }
@media (min-width: 900px) { .pn-board-body > .pn-table-wrap:last-child { margin-bottom: -22px; } }
.pn-page .pn-tbl :is(th, td) { vertical-align: middle; }
.pn-page .pn-tbl td .pn-cell-sub { margin-top: 2px; }
.pn-page .pn-tbl td.pn-num, .pn-page .pn-tbl th.pn-num { text-align: right; }
.pn-stat-icon { display: none !important; }

/* ---- staff sub-heads ---- */
.pn-subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 28px 0 12px !important;
  padding-top: 20px;
  border-top: 1px solid var(--pn-line);
  font-size: 15px;
  font-weight: 700;
  color: var(--pn-frost);
}
.pn-board-body > .pn-subhead:first-child { margin-top: 0 !important; padding-top: 0; border-top: 0; }
.pn-subhead small { font-size: 13px; font-weight: 500; color: var(--pn-ash); }
.pn-subhead-end { margin-left: auto; }

/* ---- staff forms: a wrapping grid of fields ---- */
.pn-adm-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px 18px; align-items: end; }
.pn-adm-form > .pn-is-full, .pn-adm-form > .pn-actions, .pn-adm-form > .pn-hint, .pn-adm-form > p, .pn-adm-form > .pn-note, .pn-adm-form > .pn-subhead, .pn-adm-form > .pn-table-wrap, .pn-adm-form > .pn-checks { grid-column: 1 / -1; }
.pn-adm-form > .pn-is-wide { grid-column: span 2; }
@media (max-width: 559px) { .pn-adm-form > .pn-is-wide { grid-column: 1 / -1; } }
.pn-adm-field > label { font-size: 12.5px !important; color: var(--pn-ash) !important; font-weight: 600; }
.pn-page .pn-control {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0 !important;
  border-radius: var(--pn-radius);
  background: var(--pn-ground) !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
  color: var(--pn-frost) !important;
  font-size: 14.5px;
  color-scheme: dark;
}
.pn-page textarea.pn-control { padding: 10px 12px; line-height: 1.5; min-height: 96px; }
.pn-page .pn-control:hover { box-shadow: inset 0 0 0 1px rgba(238, 243, 248, 0.24) !important; }
.pn-page .pn-control:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--pn-sky), 0 0 0 3px rgba(108, 192, 255, 0.18) !important; }
.pn-page .pn-control::placeholder { color: rgba(154, 167, 180, 0.72) !important; }
.pn-page .pn-control:disabled { opacity: 0.5; }
.pn-page select.pn-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--pn-ash) 50%), linear-gradient(135deg, var(--pn-ash) 50%, transparent 50%) !important;
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  background-color: var(--pn-ground) !important;
}
.pn-page select.pn-control option { background: var(--pn-surface); color: var(--pn-frost); }
.pn-unit { position: relative; display: block; }
.pn-unit .pn-control { padding-right: 44px; }
.pn-unit-mark { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--pn-ash); pointer-events: none; }

/* checkboxes: the native box in the accent colour, with the words beside it */
.pn-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pn-check { display: inline-flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; color: rgba(238, 243, 248, 0.9); cursor: pointer; }
.pn-check input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pn-sky); cursor: pointer; }
.pn-check-box { display: none; }
.pn-check small, .pn-check-block small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--pn-ash); font-weight: 500; }
.pn-check strong { color: var(--pn-frost); font-weight: 650; }
.pn-check.pn-is-danger { color: #ffb3a8; }
.pn-check.pn-is-danger input { accent-color: #ff8a7a; }

/* rows of controls inside a table cell */
.pn-rowform, .pn-rowform-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pn-rowform .pn-control, .pn-rowform-inline .pn-control { min-height: 34px; width: auto; min-width: 90px; font-size: 13.5px; }
.pn-rowactions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pn-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--pn-radius);
  background: transparent !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
  color: var(--pn-ash) !important;
  cursor: pointer;
}
.pn-iconbtn:hover { color: var(--pn-frost) !important; box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.5) !important; }
.pn-iconbtn.pn-is-danger { color: #ffb3a8 !important; }
.pn-iconbtn.pn-is-good { color: var(--pn-good) !important; }
.pn-page button[type="submit"].pn-iconbtn.pn-iconbtn.pn-iconbtn.pn-iconbtn.pn-iconbtn { background: transparent !important; color: var(--pn-ash) !important; box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important; }
.pn-page button[type="submit"].pn-iconbtn.pn-is-danger.pn-is-danger.pn-is-danger.pn-is-danger { color: #ffb3a8 !important; }

.pn-tabletools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pn-tabletools .pn-perpage { margin-left: auto; }
.pn-fold { border-radius: var(--pn-radius); box-shadow: inset 0 0 0 1px var(--pn-line); }
.pn-fold + .pn-fold { margin-top: 8px; }
.pn-fold > summary { padding: 12px 16px; font-size: 14px; font-weight: 650; color: var(--pn-frost); cursor: pointer; list-style-position: inside; }
.pn-fold > summary::marker { color: var(--pn-sky); }
.pn-fold-body { padding: 0 16px 16px; }
.pn-danger { display: grid; gap: 12px; padding: 16px; border-radius: var(--pn-radius); box-shadow: inset 0 0 0 1px rgba(255, 138, 122, 0.35); background: rgba(255, 138, 122, 0.05); }
.pn-dangerzone { display: grid; gap: 12px; padding: 16px; border-radius: var(--pn-radius); box-shadow: inset 0 0 0 1px rgba(255, 138, 122, 0.35); background: rgba(255, 138, 122, 0.05); }
.pn-dangerzone-note { font-size: 12.5px; color: var(--pn-ash); }
.pn-total { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--pn-ash); }
.pn-total b { font-weight: 800; font-size: 1.125rem; color: var(--pn-frost); }
.pn-total.rd-is-met b { color: var(--pn-good); }
.pn-total.rd-is-unmet b { color: var(--pn-warn); }
.pn-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.pn-delta.pn-is-good { color: var(--pn-good); }
.pn-delta.pn-is-bad { color: var(--pn-bad); }
.pn-is-code, .pn-page code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; font-size: 0.92em; letter-spacing: 0.02em; color: var(--pn-frost); background: none; }
.pn-taglist { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.pn-taglist > * { padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--pn-line-strong); font-size: 12.5px; }

/* ---- figures: old stat tiles and the staff stats, one strip ---- */
.pn-figs, .pn-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 4px !important;
  border-radius: var(--pn-radius);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  overflow: hidden;
}
.pn-fig, .pn-stat { display: grid; gap: 2px; align-content: start; padding: 14px 16px; box-shadow: -1px 0 0 var(--pn-line); min-width: 0; }
.pn-fig dt, .pn-stat-label { font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-fig dd, .pn-stat-value { margin: 0; font-weight: 800; font-stretch: 112%; font-size: 1.375rem; line-height: 1.2; color: var(--pn-frost); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pn-fig > span, .pn-stat-meta { font-size: 12px; color: var(--pn-ash); }
.pn-fig.pn-is-good dd, .pn-stat .pn-is-good { color: var(--pn-good); }
.pn-fig.pn-is-warn dd { color: var(--pn-warn); }
.pn-fig.pn-is-bad dd { color: var(--pn-bad); }
.pn-stat-top { display: flex; justify-content: space-between; }
.pn-adm-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pn-adm-facts > div { padding: 10px 12px; border-radius: var(--pn-radius); background: var(--pn-ground); box-shadow: inset 0 0 0 1px var(--pn-line); }

/* ---- label and value rows ---- */
.pn-detail-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--pn-line); font-size: 14px; }
.pn-detail-row:last-child { border-bottom: 0; }
.pn-detail-key { display: inline-flex; align-items: center; gap: 8px; color: var(--pn-ash); }
.pn-detail-key > i { color: var(--pn-sky); }
.pn-detail-val { color: var(--pn-frost); font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.pn-detail-total { padding-top: 12px; border-top: 1px solid var(--pn-line-strong); }
.pn-detail-total .pn-detail-val { color: var(--pn-sky); }
.pn-form-actions { margin-top: 18px !important; }
.pn-actions-inline { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- requirements ---- */
.pn-reqs { display: grid; gap: 6px; }
.pn-req { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--pn-radius); background: var(--pn-ground); box-shadow: inset 0 0 0 1px var(--pn-line); font-size: 13.5px; }
.pn-req > i { font-size: 14px; }
.pn-req.pn-is-met > i { color: var(--pn-good); }
.pn-req.pn-is-unmet > i { color: var(--pn-bad); }
.pn-req > i + i { display: none; }
.pn-req-label, .pn-req > span { color: rgba(238, 243, 248, 0.9); min-width: 0; }
.pn-req-label i { display: none; }
.pn-req > b, .pn-req-value { font-weight: 700; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-req > b small, .pn-req-value small { font-weight: 500; color: var(--pn-ash); }
.pn-req.pn-is-unmet > b { color: #ffb3a8; }
.pn-req small { display: block; font-size: 12px; color: var(--pn-ash); }
.pn-eventbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }

/* ---- option cards: pick one reward or entry ---- */
.pn-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.pn-option { display: grid; align-content: start; border-radius: var(--pn-radius-lg); background: var(--pn-surface); box-shadow: inset 0 0 0 1px var(--pn-line); overflow: hidden; }
.pn-option:has(input:checked) { box-shadow: inset 0 0 0 1px var(--pn-sky); background: var(--pn-surface-2); }
.pn-option:has(input:focus-visible) { outline: 2px solid var(--pn-sky); outline-offset: 2px; }
.pn-option.pn-is-locked { opacity: 0.6; }
.pn-option-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--pn-line); cursor: pointer; }
.pn-option-head input[type="radio"] { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--pn-sky); }
.pn-option-head > i { color: var(--pn-ash); }
.pn-option-head strong { min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--pn-frost); overflow-wrap: anywhere; }
.pn-option-body { display: grid; gap: 12px; padding: 14px 16px; }
.pn-option-reqs { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-option-loot, .pn-pack-loot { display: grid; gap: 4px; }
.pn-option-loot li, .pn-pack-loot li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--pn-line); font-size: 13.5px; color: rgba(238, 243, 248, 0.9); }
.pn-option-loot li:last-child, .pn-pack-loot li:last-child { border-bottom: 0; }
.pn-option-loot em, .pn-pack-loot em { display: block; font-style: normal; font-size: 12px; color: var(--pn-ash); }
.pn-option-loot b, .pn-pack-loot b { font-weight: 750; color: var(--pn-frost); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- reward cards (daily reward packs) ---- */
.pn-shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.pn-shopcard { display: flex; flex-direction: column; border-radius: var(--pn-radius-lg); background: var(--pn-surface); box-shadow: inset 0 0 0 1px var(--pn-line); min-width: 0; }
.pn-shopcard form { display: flex; flex-direction: column; flex: 1; margin: 0; }
.pn-shopcard-top { display: flex; gap: 12px; padding: 14px 16px; }
.pn-shopcard-art { flex-shrink: 0; line-height: 0; }
.pn-shopcard-art img { border-radius: 6px; }
.pn-shopcard-copy { display: grid; gap: 8px; align-content: start; min-width: 0; }
.pn-shopcard-copy strong { font-size: 14.5px; font-weight: 700; color: var(--pn-frost); overflow-wrap: anywhere; }
.pn-shopcard-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pn-shopcard-talics { display: inline-flex; gap: 2px; }
.pn-shopcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--pn-line); }

/* ---- dialogs ---- */
.pn-page dialog.pn-modal, dialog.pn-modal {
  width: min(680px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  color: var(--pn-ash);
}
dialog.pn-modal::backdrop { background: rgba(5, 7, 10, 0.75); }
.pn-modal-shell { display: flex; flex-direction: column; max-height: min(86vh, 780px); }
.pn-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--pn-line); }
.pn-modal-head h2 { font-weight: 800; font-stretch: 112%; font-size: 1.125rem; text-transform: uppercase; color: var(--pn-frost); }
.pn-modal-ref { font-size: 12.5px; color: var(--pn-ash); }
.pn-modal-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--pn-radius); background: transparent !important; color: var(--pn-ash); box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important; cursor: pointer; }
.pn-modal-x:hover { color: var(--pn-frost); }
.pn-modal-body { padding: 18px 20px; overflow: auto; }
.pn-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--pn-line); }

/* ---- overlays (withdrawal review) ---- */
.pn-overlay { position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; padding: 16px; background: rgba(5, 7, 10, 0.75); }
.pn-overlay[hidden] { display: none; }
.pn-overlay-card { width: min(560px, 100%); max-height: 86vh; overflow: auto; padding: 20px; border-radius: var(--pn-radius-lg); background: var(--pn-surface); box-shadow: inset 0 0 0 1px var(--pn-line-strong); }

/* ---- referral rate cards ---- */
.pn-ratecard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--pn-radius); background: var(--pn-ground); box-shadow: inset 0 0 0 1px var(--pn-line); }
.pn-ratecard.pn-is-alert { box-shadow: inset 0 0 0 1px rgba(255, 189, 74, 0.4); }
.pn-ratecard-body { display: grid; min-width: 0; }
.pn-ratecard-name { font-weight: 700; color: var(--pn-frost); }
.pn-ratecard-rate { font-weight: 800; font-stretch: 112%; font-size: 1.25rem; color: var(--pn-sky); font-variant-numeric: tabular-nums; }

/* ---- staff link lists and table cells ---- */
.pn-catlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.pn-page a.pn-catlist-item { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--pn-radius); box-shadow: inset 0 0 0 1px var(--pn-line); color: var(--pn-ash); }
.pn-page a.pn-catlist-item:hover { box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.45); }
.pn-catlist-item > i { color: var(--pn-sky); }
.pn-catlist-item strong { display: block; font-size: 14px; color: var(--pn-frost); }
.pn-catlist-item small { display: block; margin-top: 2px; font-size: 12.5px; }
.pn-cellitem { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pn-cellitem-copy { display: grid; gap: 4px; min-width: 0; }
.pn-cellitem-copy strong { color: var(--pn-frost); font-size: 14px; font-weight: 650; }
.pn-cellitem-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.pn-board-avatar img { width: 32px; height: 32px; border-radius: 6px; }
.pn-mini-table { width: 100%; font-size: 13px; }
.pn-mg-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; }
.pn-ledger-move { font-weight: 700; font-variant-numeric: tabular-nums; }

/* =====================================================================
   OLDER BOOTSTRAP MARKUP INSIDE A REDESIGNED PAGE
   ---------------------------------------------------------------------
   A few pages here (the referral dashboard, starter packs) still build
   their markup from Bootstrap cards, alerts, tables and badges. Inside
   the RF United frame those read as the same boards, notes, tables and
   pills as everything around them.
   ===================================================================== */

.pn-page .card {
  margin-bottom: 20px;
  border: 0 !important;
  border-radius: var(--pn-radius-lg) !important;
  background: var(--pn-surface) !important;
  box-shadow: inset 0 0 0 1px var(--pn-line) !important;
  color: var(--pn-ash);
}
.pn-page .card-header {
  padding: 16px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pn-line) !important;
  background: transparent !important;
}
.pn-page .card-header :is(h4, h5, .card-title) {
  margin: 0;
  font-weight: 800 !important;
  font-stretch: 118%;
  font-size: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.02em !important;
  color: var(--pn-frost) !important;
}
.pn-page .card-body { padding: 18px !important; color: var(--pn-ash); }
@media (min-width: 900px) { .pn-page .card-header, .pn-page .card-body { padding-left: 24px !important; padding-right: 24px !important; } }
.pn-page .card .card { background: var(--pn-ground) !important; }

.pn-page .alert {
  --tone-rgb: 108, 192, 255;
  padding: 13px 16px;
  border: 0 !important;
  border-radius: var(--pn-radius) !important;
  background: rgba(var(--tone-rgb), 0.07) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--tone-rgb), 0.22);
  color: rgba(238, 243, 248, 0.86) !important;
  font-size: 14px;
}
.pn-page .alert-success { --tone-rgb: 74, 222, 128; }
.pn-page .alert-warning { --tone-rgb: 255, 189, 74; }
.pn-page .alert-danger { --tone-rgb: 255, 138, 122; }
.pn-page .alert-secondary { --tone-rgb: 154, 167, 180; }
.pn-page .alert strong { color: var(--pn-frost); }
.pn-page .alert > i:first-child { color: rgb(var(--tone-rgb)); }

.pn-page .table-responsive { margin: 0 -18px; }
@media (min-width: 900px) { .pn-page .table-responsive { margin: 0 -24px; } }
.pn-page table.table { --bs-table-bg: transparent; --bs-table-striped-bg: transparent; --bs-table-hover-bg: rgba(238, 243, 248, 0.025); margin: 0; color: rgba(238, 243, 248, 0.88); font-size: 14px; }
.pn-page table.table > :not(caption) > * > * { padding: 12px 16px; border-color: var(--pn-line) !important; background: transparent !important; box-shadow: none !important; color: inherit; }
.pn-page table.table > thead > tr > th {
  font-size: 10.5px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--pn-ash);
  border-bottom: 1px solid var(--pn-line-strong) !important;
  white-space: nowrap;
}
.pn-page table.table > :not(caption) > * > *:first-child { padding-left: 24px; }
.pn-page table.table > :not(caption) > * > *:last-child { padding-right: 24px; }

.pn-page .badge {
  --tone-rgb: 154, 167, 180;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--tone-rgb), 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--tone-rgb), 0.3);
  color: rgb(var(--tone-rgb)) !important;
  font-size: 12px;
  font-weight: 650;
}
.pn-page .badge.bg-success { --tone-rgb: 74, 222, 128; }
.pn-page .badge.bg-danger { --tone-rgb: 255, 138, 122; }
.pn-page .badge.bg-warning { --tone-rgb: 255, 189, 74; }
.pn-page .badge.bg-info, .pn-page .badge.bg-primary { --tone-rgb: 108, 192, 255; }

.pn-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 3px !important;
  font-family: var(--pn-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-stretch: 112%;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  box-shadow: none !important;
}
.pn-page .btn:is(.btn-warning, .btn-primary, .btn-success, .btn-info) { background: var(--rd-btn-fill, #0b6fd6) !important; color: #fff !important; }
.pn-page .btn:is(.btn-warning, .btn-primary, .btn-success, .btn-info):hover { background: var(--rd-btn-fill-hover, #095cb3) !important; }
.pn-page .btn:is(.btn-outline-danger, .btn-danger) { background: transparent !important; color: #ffb3a8 !important; box-shadow: inset 0 0 0 1px rgba(255, 138, 122, 0.5) !important; }
.pn-page .btn:is(.btn-secondary, .btn-outline-secondary, .btn-light) { background: transparent !important; color: var(--pn-frost) !important; box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important; }
.pn-page .btn-sm { min-height: 32px; padding: 0 12px; font-size: 11px !important; }

.pn-page .form-label { font-size: 12.5px; font-weight: 600; color: var(--pn-ash); }
.pn-page :is(.form-control, .form-select) {
  min-height: 42px;
  border: 0 !important;
  border-radius: var(--pn-radius) !important;
  background-color: var(--pn-ground) !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
  color: var(--pn-frost) !important;
  font-size: 14.5px;
  color-scheme: dark;
}
.pn-page :is(.form-control, .form-select):focus { box-shadow: inset 0 0 0 1px var(--pn-sky), 0 0 0 3px rgba(108, 192, 255, 0.18) !important; }
.pn-page .text-muted { color: var(--pn-ash) !important; }
.pn-page .text-warning { color: var(--pn-warn) !important; }
.pn-page .text-danger { color: var(--pn-bad) !important; }
.pn-page .text-success { color: var(--pn-good) !important; }
.pn-page .display-6 { font-weight: 800; font-stretch: 112%; font-size: 1.75rem; color: var(--pn-frost); }
.pn-page .progress { height: 6px; border-radius: 3px; background: rgba(238, 243, 248, 0.08); }
.pn-page .progress-bar { background: var(--pn-sky) !important; }
.pn-page code { padding: 0; }
.pn-adm-table .pn-control { min-width: 120px; }
.pn-adm-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pn-sky); }

/* ---- points exchange ---- */
.pn-nx-bal { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-radius: var(--pn-radius); box-shadow: inset 0 0 0 1px var(--pn-line); overflow: hidden; }
.pn-nx-bal > div { display: grid; gap: 2px; padding: 14px 16px; box-shadow: -1px 0 0 var(--pn-line); }
.pn-nx-bal span { font-size: 10.5px; font-weight: 650; font-stretch: 108%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-nx-bal strong { font-weight: 800; font-stretch: 112%; font-size: 1.375rem; color: var(--pn-frost); font-variant-numeric: tabular-nums; }
.pn-nx-bal small { font-size: 13px; font-weight: 500; color: var(--pn-ash); }
.pn-nx-cols { display: grid; gap: 14px; }
@media (min-width: 900px) { .pn-nx-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pn-nx-card { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--pn-radius); background: var(--pn-ground); box-shadow: inset 0 0 0 1px var(--pn-line); }
.pn-nx-card h3 { display: flex; align-items: center; gap: 8px; font-weight: 800; font-stretch: 112%; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em !important; color: var(--pn-frost); }
.pn-nx-card h3 i { color: var(--pn-sky); }
.pn-nx-rate { font-size: 13.5px; color: var(--pn-ash); }
.pn-nx-form { display: grid; gap: 10px; max-width: 420px; }
.pn-nx-form label { font-size: 13px; font-weight: 600; color: var(--pn-frost); }
.pn-page .pn-nx-form input { height: 46px; padding: 0 12px; border: 0 !important; border-radius: var(--pn-radius); background: var(--pn-surface) !important; box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important; color: var(--pn-frost) !important; font-size: 16px; font-variant-numeric: tabular-nums; }
.pn-page .pn-nx-form input:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--pn-sky), 0 0 0 3px rgba(108, 192, 255, 0.18) !important; }
.pn-page .pn-nx-form input:disabled { opacity: 0.5; }
.pn-nx-preview { min-height: 1.4em; font-size: 14px; font-weight: 650; color: var(--pn-sky); font-variant-numeric: tabular-nums; }
.pn-nx-note { font-size: 12.5px; color: var(--pn-ash); }
.pn-nx-h { margin-top: 8px !important; font-size: 15px; font-weight: 700; color: var(--pn-frost); }
.pn-nx-hist { max-height: 22rem; overflow: auto; border-radius: var(--pn-radius); box-shadow: inset 0 0 0 1px var(--pn-line); }
.pn-page .pn-nx-hist table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pn-page .pn-nx-hist :is(th, td) { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--pn-line); color: rgba(238, 243, 248, 0.88); background: transparent; }
.pn-page .pn-nx-hist th { font-size: 10.5px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pn-ash); }
.pn-nx-hist .pn-is-num { text-align: right; font-variant-numeric: tabular-nums; }
.pn-nx-hist .pn-is-good { color: var(--pn-good); }
.pn-nx-hist .pn-is-bad { color: var(--pn-bad); }
.pn-nx-hist small { display: block; color: var(--pn-ash); }

/* bare Bootstrap selects inside the frame get the same chevron */
.pn-page select.form-control, .pn-page select.form-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--pn-ash) 50%), linear-gradient(135deg, var(--pn-ash) 50%, transparent 50%) !important;
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
}
.pn-page .pn-note + .pn-field, .pn-page .pn-note + form, .pn-page .pn-note + .pn-board-body { margin-top: 14px; }

/* Grid items and fold-outs holding wide tables must be allowed to shrink;
   the table scrolls inside its own wrapper instead of widening the page. */
.pn-adm-form > *, .pn-adm-body > *, .pn-fold, .pn-fold-body, .pn-adm-split > * { min-width: 0; }
.pn-adm-form > .pn-fold { grid-column: 1 / -1; }
.pn-fold-body { overflow-x: auto; }
.pn-page table.pn-mini-table { display: block; max-width: 100%; overflow-x: auto; }
.pn-adm-split { display: grid; gap: 20px; }
@media (min-width: 1100px) { .pn-adm-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pn-adm-split.pn-adm-split-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

/* =====================================================================
   CASH POINTS TOP-UP (user_cashpoint_topup.php)

   Three screens, one shape: the work on the left, the order on the
   right. The total and the button sit in the same place on every step,
   so a player watches the price change as they pick, and the step strip
   says how far there is still to go.
   ===================================================================== */

.pn-cp-work { display: grid; gap: 24px; align-items: start; min-width: 0; }
@media (min-width: 1100px) { .pn-cp-work { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; } }
@media (min-width: 1440px) { .pn-cp-work { grid-template-columns: minmax(0, 1fr) 380px; } }
.pn-cp-main { max-width: none; }

/* ---- where the player is ---- */
.pn-cp-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: -8px !important;
  padding-bottom: 16px !important;
  box-shadow: inset 0 -1px 0 var(--pn-line-strong);
}
.pn-cp-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pn-ash);
  white-space: nowrap;
}
.pn-cp-steps li:last-child { flex: 0 0 auto; }
.pn-cp-steps li::after {
  content: "";
  flex: 1 1 auto;
  min-width: 12px;
  height: 1px;
  margin: 0 14px 0 4px;
  background: var(--pn-line-strong);
}
.pn-cp-steps li:last-child::after { display: none; }
.pn-cp-steps li.pn-is-done::after { background: var(--pn-sky); }
.pn-cp-steps-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--pn-radius);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
  font-size: 13px;
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}
.pn-cp-steps li[aria-current="step"] { color: var(--pn-frost); }
.pn-cp-steps li[aria-current="step"] .pn-cp-steps-mark { color: var(--pn-frost); background: var(--pn-sky-tint); box-shadow: inset 0 0 0 1px var(--pn-sky); }
.pn-cp-steps li.pn-is-done { color: var(--pn-frost); }
.pn-cp-steps li.pn-is-done .pn-cp-steps-mark { color: var(--pn-sky); box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.4); }
@media (max-width: 479px) {
  .pn-cp-steps li { gap: 8px; font-size: 12.5px; }
  .pn-cp-steps li::after { margin: 0 8px 0 2px; }
  .pn-cp-steps-mark { width: 24px; height: 24px; font-size: 12px; }
}

/* ---- the amount: one large figure between its two nudges ---- */
.pn-cp-dial { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; gap: 8px; }
.pn-page .pn-cp-nudge {
  display: grid;
  place-items: center;
  height: 76px;
  padding: 0;
  border: 0 !important;
  border-radius: var(--pn-radius);
  background: var(--pn-ground) !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
  color: var(--pn-frost) !important;
  font-size: 20px;
  cursor: pointer;
  transition: box-shadow 160ms var(--pn-ease), background-color 160ms var(--pn-ease);
}
.pn-page .pn-cp-nudge:hover { background: var(--pn-surface-2) !important; box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.5) !important; }
.pn-page .pn-cp-nudge:active { transform: translateY(1px); }
.pn-cp-field {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
  transition: box-shadow 160ms var(--pn-ease);
}
.pn-cp-field:hover { box-shadow: inset 0 0 0 1px rgba(238, 243, 248, 0.24); }
.pn-cp-field:focus-within { box-shadow: inset 0 0 0 1px var(--pn-sky), 0 0 0 3px rgba(108, 192, 255, 0.18); }
.pn-cp-field:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1px rgba(255, 138, 122, 0.7); }
.pn-page input.pn-cp-input {
  width: 100%;
  min-width: 0;
  height: 76px;
  padding: 0 52px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: var(--pn-frost) !important;
  caret-color: var(--pn-sky);
  text-align: center;
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem) !important;
  font-weight: 800;
  font-stretch: 118%;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
.pn-cp-input::-webkit-outer-spin-button,
.pn-cp-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pn-cp-unit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 11px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.16em;
  color: var(--pn-ash);
}
@media (max-width: 479px) {
  .pn-cp-dial { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 6px; }
  .pn-page .pn-cp-nudge, .pn-page input.pn-cp-input { height: 64px; }
  .pn-page input.pn-cp-input { padding: 0 36px !important; }
  .pn-cp-unit { right: 10px; }
}

.pn-cp-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--pn-radius);
  background: rgba(255, 138, 122, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 122, 0.3);
  color: #ffc9c0;
  font-size: 13.5px;
}
.pn-cp-error::before { content: "\f33a"; font-family: "bootstrap-icons" !important; color: var(--pn-bad); }
.pn-cp-error[hidden] { display: none; }

/* ---- quick amounts: what you get, and what it costs ---- */
.pn-cp-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .pn-cp-packs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pn-page .pn-cp-pack {
  display: grid;
  gap: 2px;
  justify-items: start;
  align-content: center;
  min-height: 68px;
  padding: 12px 14px;
  border: 0 !important;
  border-radius: var(--pn-radius);
  background: var(--pn-ground) !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 160ms var(--pn-ease), background-color 160ms var(--pn-ease);
}
.pn-page .pn-cp-pack:hover { background: var(--pn-surface-2) !important; box-shadow: inset 0 0 0 1px rgba(238, 243, 248, 0.26) !important; }
.pn-page .pn-cp-pack:active { transform: translateY(1px); }
.pn-cp-pack b {
  color: var(--pn-frost);
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pn-cp-pack small { color: var(--pn-ash); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pn-page .pn-cp-pack.pn-is-on { background: var(--pn-sky-tint) !important; box-shadow: inset 0 0 0 1px var(--pn-sky) !important; }
.pn-cp-pack.pn-is-on small { color: rgba(238, 243, 248, 0.8); }

.pn-cp-row-amount .pn-row-body { gap: 14px; }

/* ---- the order ---- */
.pn-cp-order {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px 20px 20px;
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  min-width: 0;
}
/* The waterline: the featured board's sky edge, fading at both ends. */
.pn-cp-order::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pn-sky) 30%, var(--pn-sky) 70%, transparent);
  opacity: 0.8;
}
@media (min-width: 1100px) { .pn-cp-order { position: sticky; top: calc(var(--pn-head-h) + 24px); padding: 26px 24px 24px; } }
.pn-cp-order h2 {
  font-size: 11px;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: var(--pn-ash);
}
.pn-cp-order-cash { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: -6px !important; }
.pn-cp-order-cash b {
  color: var(--pn-frost);
  font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.875rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.pn-cp-order-cash span { color: var(--pn-ash); font-size: 14px; font-weight: 600; }
.pn-cp-order-rows { padding-top: 4px; border-top: 1px solid var(--pn-line); }
.pn-cp-order-rows dd { font-size: 14px; }
.pn-cp-order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--pn-line-strong);
}
.pn-cp-order-total span { color: var(--pn-frost); font-size: 14px; font-weight: 650; }
.pn-cp-order-total b {
  color: var(--pn-sky);
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
/* No buyable amount yet: the figures stay, quietly, until there is one. */
.pn-cp-order-cash b, .pn-cp-order-total b { transition: opacity 160ms var(--pn-ease); }
.pn-cp-order.pn-is-void :is(.pn-cp-order-cash b, .pn-cp-order-total b) { opacity: 0.35; }
.pn-cp-order-go { display: grid; gap: 8px; }
.pn-cp-order-go .pn-btn { width: 100%; }
.pn-page .pn-cp-order-go button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.pn-cp-order-note { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--pn-ash); }
.pn-cp-order-note i { font-size: 13px; line-height: 1.5; }

/* ---- step two ---- */
.pn-cp-method-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--pn-radius);
  background: var(--pn-surface-2);
  color: var(--pn-ash);
  font-size: 18px;
  transition: color 160ms var(--pn-ease);
}
.pn-choice input:checked + .pn-choice-body .pn-cp-method-icon { color: var(--pn-sky); }
.pn-cp-methods .pn-choice-body { min-height: 68px; }
.pn-cp-optional { margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pn-ash); }

/* ---- step three ---- */
.pn-cp-done { display: grid; gap: 24px; }
@media (min-width: 900px) { .pn-cp-done { padding: 36px 32px; } }
.pn-cp-done-facts { grid-template-columns: repeat(auto-fit, minmax(160px, max-content)); column-gap: 56px; padding-top: 20px; border-top: 1px solid var(--pn-line); }
@media (min-width: 480px) { .pn-cp-done-facts { padding-left: 66px; } }
.pn-cp-done-facts code {
  padding: 0;
  background: none;
  color: var(--pn-frost);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important;
  font-size: 14.5px;
  letter-spacing: 0.04em;
}

/* =====================================================================
   TWO-STEP SIGN-IN (user_auth_fireguard.php)

   Setting it up is three things done in order, on a phone, while
   looking at this page - so the stages are numbered and joined by a
   rule, the QR code is large enough to scan from arm's length, and the
   code goes into six boxes that read like the app's own display.
   ===================================================================== */

.pn-2fa-flash { display: grid; gap: 10px; }
.pn-2fa-work > .pn-stack { gap: 20px; }
.pn-2fa-setup, .pn-2fa-work .pn-sheet { max-width: none; }

/* ---- the stages ---- */
.pn-2fa-intro { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.pn-2fa-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
  color: var(--pn-frost);
  font-size: 14px;
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}
.pn-2fa-stage:focus-within .pn-2fa-num { background: var(--pn-sky-tint); box-shadow: inset 0 0 0 1px var(--pn-sky); }
.pn-2fa-intro h2 { padding-top: 5px; }
.pn-2fa-intro p { max-width: 34ch; }
@media (min-width: 900px) {
  .pn-2fa-setup .pn-row { grid-template-columns: minmax(0, 290px) minmax(0, 1fr); }
}

.pn-2fa-stores .pn-btn { flex: 1 1 140px; max-width: 200px; }
.pn-2fa-stores .pn-btn i { font-size: 1.3em; }
.pn-2fa-walk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  font-size: 14px;
  font-weight: 600;
}
.pn-2fa-walk .bi-play-circle { font-size: 17px; }
.pn-2fa-walk .bi-box-arrow-up-right { font-size: 11px; opacity: 0.75; }

/* ---- the QR and its typed alternative ---- */
.pn-2fa-qr { align-items: start; }
@media (min-width: 560px) { .pn-2fa-qr { gap: 28px; } }
.pn-2fa-qr .pn-qr {
  width: 216px;
  padding: 12px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
}
.pn-2fa-qr .pn-qr img { width: 192px; height: 192px; }
.pn-2fa-manual { gap: 10px; max-width: 460px; }
.pn-2fa-manual-lead { font-size: 13.5px; line-height: 1.55; color: var(--pn-ash); }
.pn-2fa-manual-lead strong { color: var(--pn-frost); font-weight: 650; }
.pn-2fa-key { display: flex !important; flex-wrap: wrap; gap: 2px 10px; }
.pn-2fa-key span { letter-spacing: 0.12em; }

/* ---- six boxes over one input ---- */
.pn-otp { position: relative; width: 100%; max-width: 372px; }
/* Without the script: a plain wide code field. */
.pn-page .pn-otp-input {
  width: 100%;
  height: 60px;
  padding: 0 18px;
  border: 0 !important;
  border-radius: var(--pn-radius);
  background: var(--pn-ground) !important;
  box-shadow: inset 0 0 0 1px var(--pn-line-strong) !important;
  outline: 0;
  color: var(--pn-frost) !important;
  font-size: 24px;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.42em;
  font-variant-numeric: tabular-nums;
}
.pn-page .pn-otp-input:focus { box-shadow: inset 0 0 0 1px var(--pn-sky), 0 0 0 3px rgba(108, 192, 255, 0.18) !important; }
.pn-otp-cells { display: none; }

/* With it: the input goes invisible on top, the boxes show the digits. */
.pn-otp.pn-is-live .pn-otp-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}
.pn-otp.pn-is-live .pn-otp-cells > span:nth-child(4) { margin-left: 10px; }
.pn-page .pn-otp.pn-is-live .pn-otp-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  caret-color: transparent;
  letter-spacing: 0;
  cursor: text;
}
.pn-page .pn-otp.pn-is-live .pn-otp-input::placeholder { color: transparent !important; }
.pn-page .pn-otp.pn-is-live .pn-otp-input::selection { background: transparent; }
.pn-otp-cells > span {
  position: relative;
  display: grid;
  place-items: center;
  height: 64px;
  border-radius: var(--pn-radius);
  background: var(--pn-ground);
  box-shadow: inset 0 0 0 1px var(--pn-line-strong);
  color: var(--pn-frost);
  font-size: 28px;
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  transition: box-shadow 160ms var(--pn-ease), background-color 160ms var(--pn-ease);
}
.pn-otp-cells > span.pn-is-filled { background: var(--pn-surface-2); }
.pn-otp:hover .pn-otp-cells > span { box-shadow: inset 0 0 0 1px rgba(238, 243, 248, 0.24); }
.pn-otp-cells > span.pn-is-next { box-shadow: inset 0 0 0 1px var(--pn-sky), 0 0 0 3px rgba(108, 192, 255, 0.18) !important; }
/* The caret, drawn in the box that takes the next digit. */
.pn-otp-cells > span.pn-is-next:not(.pn-is-filled)::after {
  content: "";
  width: 2px;
  height: 26px;
  background: var(--pn-sky);
  animation: pn-otp-blink 1s steps(1) infinite;
}
.pn-otp.pn-is-full.pn-is-focus .pn-otp-cells > span { box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.55) !important; }
.pn-otp.pn-is-full.pn-is-focus .pn-otp-cells > span.pn-is-next::after { display: none; }
@keyframes pn-otp-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pn-otp-cells > span::after { animation: none !important; } }
@media (max-width: 400px) {
  .pn-otp.pn-is-live .pn-otp-cells { gap: 5px; }
  .pn-otp.pn-is-live .pn-otp-cells > span:nth-child(4) { margin-left: 6px; }
  .pn-otp-cells > span { height: 56px; font-size: 24px; }
}

/* ---- when it is on ---- */
.pn-2fa-on {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 22px;
  align-items: start;
  padding: 24px 20px;
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface);
  box-shadow: inset 0 0 0 1px var(--pn-line);
  overflow: hidden;
}
@media (min-width: 900px) { .pn-2fa-on { padding: 32px; gap: 18px 28px; } }
/* The waterline, as on the panel's other featured boards. */
.pn-2fa-on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pn-sky) 30%, var(--pn-sky) 70%, transparent);
  opacity: 0.8;
}
.pn-2fa-shield {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--pn-radius-lg);
  background: rgba(74, 222, 128, 0.1);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.3);
  color: var(--pn-good);
  font-size: 30px;
}
.pn-2fa-on-copy { display: grid; gap: 8px; min-width: 0; }
.pn-2fa-on-copy h2 {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.375rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--pn-frost);
  text-wrap: balance;
}
.pn-2fa-on-copy > p { max-width: 58ch; font-size: 14.5px; }
.pn-2fa-facts { margin-top: 12px !important; padding-top: 16px; border-top: 1px solid var(--pn-line); grid-template-columns: repeat(auto-fit, minmax(140px, max-content)); column-gap: 48px; }
.pn-2fa-on-copy .pn-actions { margin-top: 10px; }
@media (max-width: 479px) {
  .pn-2fa-on { grid-template-columns: minmax(0, 1fr); }
  .pn-2fa-shield { width: 52px; height: 52px; font-size: 24px; }
}

.pn-2fa-help { margin-top: 16px; }
