/* PhantomBrain Partners: the partner page and its sign-in form
   (index.html), and the sign-in link's pages (message.html). Served under
   a CSP without inline styles: every style lives here. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/partners/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/partners/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #201e1d;
  --paper: #f3f2f2;
  --stage: #dcdad9;
  --well: #eae9e9;
  --card: #ffffff;
  --line: #c9c6c5;
  --sub: #5f5c5a;
  --accent: #ec3013;
  --accent-text: #c4240c;
  --tint: #f6d9d2;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #efedec;
    --paper: #1a1918;
    --stage: #0d0c0c;
    --well: #242221;
    --card: #262423;
    --line: #3d3a39;
    --sub: #b4b0ae;
    --accent: #ff4b2e;
    --accent-text: #ff4b2e;
    --tint: #3b1e18;
  }
}

/* ---- Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

a {
  color: var(--accent-text);
}

a:hover {
  color: var(--ink);
}

.pb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pb-muted {
  color: var(--sub);
}

@keyframes pb-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes pb-skel {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ---- Shared text */

.pb-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sub);
}

.pb-kicker--accent {
  color: var(--accent-text);
}

.pb-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
}

.pb-h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.pb-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}

/* The red squares. */
.pb-mark {
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex: none;
}

.pb-mark--lg {
  width: 10px;
  height: 10px;
}

/* ---- Header */

.pb-header {
  border-bottom: 2px solid var(--ink);
}

.pb-header-inner {
  max-width: 1200px;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pb-brand {
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.pb-wordmark {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.pb-wordmark-text {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.pb-square {
  width: 7px;
  height: 7px;
  background: var(--accent);
  flex: none;
}

.pb-brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sub);
}

/* ---- Menu */

.pb-menu-wrap {
  position: relative;
  flex: none;
}

.pb-menu-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pb-menu-btn[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper);
}

.pb-menu-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pb-menu-icon span {
  width: 14px;
  height: 2px;
  background: currentColor;
}

.pb-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.pb-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 21;
  width: min(320px, calc(100vw - 32px));
  background: var(--card);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.pb-menu-note {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  color: var(--sub);
  text-wrap: pretty;
}

.pb-menu-note b {
  color: var(--ink);
}

.pb-menu-items {
  display: flex;
  flex-direction: column;
}

.pb-menu-item {
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.pb-menu-item + .pb-menu-item {
  border-top: 1px solid var(--line);
}

.pb-menu-item--two {
  min-height: 60px;
}

.pb-menu-item:focus-visible {
  outline-offset: -3px;
  background: var(--well);
}

.pb-menu-item-sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--sub);
}

/* ---- Toast */

.pb-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}

/* ---- Dashboard */

.pb-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vw, 48px);
}

.pb-banner {
  border: 2px solid var(--ink);
  background: var(--tint);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pb-banner-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pb-banner-text {
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* You: name, username and Copy. */

.pb-you {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pb-you-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.pb-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}

/* The live square: a ring pulsing out of a solid square; hollow offline. */
.pb-live {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
}

.pb-live::before,
.pb-live::after {
  content: "";
  position: absolute;
  inset: 0;
}

.pb-live::before {
  border: 2px solid var(--accent);
  animation: pb-ring 2.4s ease-out infinite;
}

.pb-live::after {
  background: var(--accent);
}

.pb-live.is-offline::before {
  display: none;
}

.pb-live.is-offline::after {
  background: transparent;
  border: 2px solid var(--sub);
}

.pb-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 32px;
}

.pb-name {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.pb-handle-col {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pb-handle-box {
  align-self: flex-start;
  max-width: 100%;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  background: var(--card);
}

.pb-handle {
  min-width: 0;
  min-height: 52px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.pb-copy {
  flex: none;
  min-width: 96px;
  padding: 0 16px;
  border: 0;
  border-left: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pb-handle-note {
  max-width: 48ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sub);
  text-wrap: pretty;
}

/* Your terms */

.pb-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.pb-term {
  flex: 1 1 150px;
  min-width: 0;
  padding: 14px 16px 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-term-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pb-term-text {
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
}

.pb-period {
  flex-basis: 100%;
  padding-bottom: 18px;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.pb-period-range {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pb-bar {
  position: relative;
  height: 18px;
  margin-top: 4px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.pb-bar-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
}

.pb-bar-tick {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
}

.pb-phases {
  display: flex;
  gap: 2px;
}

.pb-phase {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pb-phase:first-child {
  padding-right: 10px;
}

.pb-phase:last-child {
  padding-left: 10px;
}

.pb-phase-dates {
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
}

.pb-phase-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: pretty;
}

.pb-phase-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sub);
  text-wrap: pretty;
}

.pb-caption {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-wrap: pretty;
}

.pb-period-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--sub);
  text-wrap: pretty;
}

/* Earnings and key numbers, side by side when there is room. */

.pb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
}

.pb-earn-section {
  flex: 3 1 360px;
  min-width: 0;
}

.pb-keys-section {
  flex: 2 1 320px;
  min-width: 0;
}

.pb-earn {
  flex: 1;
  border: 2px solid var(--ink);
  background: var(--card);
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}

.pb-earn-block {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-earn-block + .pb-earn-block {
  border-top: 1px solid var(--line);
}

.pb-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  flex-wrap: wrap;
}

.pb-sum-term {
  display: flex;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
}

.pb-sum-label {
  min-width: 4.5em;
  font-size: 13px;
  font-weight: 800;
}

.pb-sum-calc {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pb-sum-amount {
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pb-earn-note {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sub);
  text-wrap: pretty;
}

.pb-earn-totals {
  margin-top: auto;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
}

.pb-earn-total {
  flex: 1 1 170px;
  padding: 14px 18px 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-earn-total--main {
  flex: 1.4 1 200px;
}

.pb-earn-total-label {
  font-size: 15px;
  font-weight: 800;
}

.pb-earn-week {
  font-size: clamp(28px, 3.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.pb-earn-grand {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pb-earn-sub {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sub);
  text-wrap: pretty;
}

.pb-earn-paid {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
}

.pb-earn-paid-cell {
  flex: 1 1 130px;
  padding: 12px 18px;
  background: var(--well);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pb-earn-paid-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
}

.pb-earn-paid-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pb-keys {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
  font-variant-numeric: tabular-nums;
}

.pb-key {
  padding: 14px 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-key-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.pb-key-sub {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sub);
  text-wrap: pretty;
}

/* Players */

.pb-players,
.pb-player-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pb-empty {
  padding: clamp(20px, 4vw, 32px);
  border: 2px solid var(--ink);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.pb-empty-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.pb-empty-text {
  max-width: 48ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.pb-btn-ink {
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.pb-control {
  flex: 1 1 300px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-control--sort {
  flex: 1 1 260px;
  max-width: 400px;
}

/* Segmented controls: buttons with aria-pressed. */
.pb-seg {
  display: flex;
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.pb-seg-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pb-seg-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.pb-seg-btn:focus-visible {
  position: relative;
  z-index: 1;
}

.pb-seg-count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.pb-player-list[aria-busy="true"] .pb-rows {
  opacity: 0.6;
}

/* Wide: a table. */
.pb-table {
  border-top: 2px solid var(--ink);
  font-variant-numeric: tabular-nums;
}

.pb-tr {
  display: grid;
  grid-template-columns:
    minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.2fr)
    minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.35;
}

.pb-tr--head {
  align-items: stretch;
  min-height: 0;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: normal;
  text-transform: uppercase;
  color: var(--sub);
}

.pb-td-player {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pb-td-handle {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pb-former {
  font-weight: 600;
  color: var(--sub);
}

.pb-former-note {
  font-size: 12px;
  color: var(--sub);
}

.pb-td-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Narrow: a list of cards. */
.pb-cards {
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}

.pb-card {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
}

.pb-card-handle {
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pb-card-former {
  font-size: 17px;
  font-weight: 600;
  color: var(--sub);
}

.pb-card-former-note {
  font-size: 13px;
}

.pb-card-plan {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pb-card-line {
  font-size: 14px;
  line-height: 1.4;
}

.pb-card-earn {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.pb-label {
  color: var(--sub);
}

.pb-none {
  margin: 0;
  padding: 16px 2px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--sub);
}

.pb-more {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pb-more-btn {
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pb-shown {
  font-size: 13px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}

/* Fine print */

.pb-fine {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pb-fine-title {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pb-fine-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px 32px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}

.pb-fine-list li {
  text-wrap: pretty;
}

/* ---- Loading skeleton */

.pb-skeleton {
  animation: pb-skel 1.6s ease-in-out infinite;
}

.pb-sk {
  display: block;
  flex: none;
  max-width: 100%;
  background: var(--line);
}

.pb-sk-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 48px;
}

.pb-sk-you {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pb-sk-between {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.pb-sk-terms {
  flex: 1.3 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-sk-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
}

.pb-sk-tile {
  flex: 1 1 150px;
  height: 150px;
  padding: 16px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pb-sk-tile--wide {
  flex: 2 1 290px;
}

.pb-sk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.pb-sk-earn,
.pb-sk-keys {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-sk-earn {
  flex: 3 1 360px;
}

.pb-sk-keys {
  flex: 2 1 320px;
}

.pb-sk-earn-box {
  height: 290px;
  padding: 18px;
  border: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pb-sk-push {
  margin-top: auto;
  margin-left: auto;
}

.pb-sk-keys-grid {
  height: 290px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
}

.pb-sk-keys-grid span {
  background: var(--paper);
}

.pb-sk-players {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pb-sk-rows {
  border-top: 2px solid var(--line);
  display: flex;
  flex-direction: column;
}

.pb-sk-line {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.sk-w70 { width: 70px; }
.sk-w90 { width: 90px; }
.sk-w100 { width: 100px; }
.sk-w110 { width: 110px; }
.sk-w120 { width: 120px; }
.sk-w200 { width: 200px; }
.sk-w32p { width: 32%; }
.sk-w36p { width: 36%; }
.sk-w40p { width: 40%; }
.sk-w45p { width: 45%; }
.sk-w50p { width: 50%; }
.sk-w55p { width: 55%; }
.sk-w60p { width: 60%; }
.sk-w62p { width: 62%; }
.sk-w80p { width: 80%; }
.sk-w90p { width: 90%; }
.sk-w100p { width: 100%; }
.sk-max480 { max-width: 480px; }
.sk-h10 { height: 10px; }
.sk-h12 { height: 12px; }
.sk-h14 { height: 14px; }
.sk-h20 { height: 20px; }
.sk-h22 { height: 22px; }
.sk-h32 { height: 32px; }
.sk-h44 { height: 44px; }
.sk-h48 { height: 48px; }
.sk-h50 { height: 50px; }
.sk-h52 { height: 52px; }

/* ---- Message pages: the sign-in form, and the sign-in link's pages */

.pb-message {
  flex: 1 0 auto;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(48px, 12vw, 112px) var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pb-message-title {
  margin: 0;
  font-size: clamp(38px, 8vw, 56px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.pb-message-title:focus {
  outline: none;
}

.pb-lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.pb-small {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sub);
  text-wrap: pretty;
}

.pb-box {
  margin-top: 10px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  background: var(--card);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.pb-lede b,
.pb-small b,
.pb-box b {
  color: var(--ink);
}

.pb-form {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-btn {
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.pb-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---- Sign in: the form, "Check your inbox" and the footer */

.pb-signin-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pb-field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pb-input {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  appearance: none;
}

.pb-input[aria-invalid="true"] {
  border-color: var(--accent);
}

.pb-input::placeholder {
  color: var(--sub);
  opacity: 1;
  font-weight: 400;
}

.pb-field-msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pb-field-error {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
}

.pb-field-error-mark {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--accent);
}

/* "Did you mean …?" */
.pb-suggest {
  border: 2px solid var(--ink);
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.pb-suggest-text {
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pb-suggest-domain {
  padding: 0 2px;
  background: var(--tint);
}

.pb-suggest-actions {
  display: flex;
  gap: 2px;
  border-top: 2px solid var(--ink);
  background: var(--ink);
}

.pb-suggest-fix,
.pb-suggest-keep {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 6px 10px;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.pb-suggest-fix {
  background: var(--ink);
  color: var(--paper);
}

.pb-suggest-keep {
  background: var(--card);
  color: var(--ink);
}

.pb-submit {
  margin-top: 8px;
}

.pb-btn[aria-busy="true"] {
  cursor: progress;
}

/* "Try again in 14:32". */
.pb-btn.is-waiting {
  border-color: var(--line);
  background: var(--well);
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.pb-sent-stack {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* "Waiting for you to open it", and what the link does. */
.pb-wait {
  border: 2px solid var(--ink);
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.pb-wait-head {
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.pb-wait-pulse {
  padding-top: 5px;
  display: flex;
  flex: none;
}

.pb-wait-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pb-wait-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.pb-wait-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--sub);
  text-wrap: pretty;
}

.pb-wait-facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.pb-wait-facts dt {
  padding: 12px 0 12px 16px;
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sub);
}

.pb-wait-facts dd {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.pb-wait-facts dt:not(:first-of-type),
.pb-wait-facts dd:not(:first-of-type) {
  border-top: 1px solid var(--line);
}

.pb-wait-expires {
  font-variant-numeric: tabular-nums;
}

.pb-wait-facts .pb-wait-where {
  font-weight: 400;
  text-wrap: pretty;
}

.pb-sent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pb-btn-line {
  flex: 1 1 180px;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pb-btn-line[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.pb-footer {
  border-top: 2px solid var(--ink);
}

.pb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}

.pb-footer-inner a {
  font-weight: 600;
}

/* ---- Hover, where there is a pointer that hovers */

@media (hover: hover) {
  .pb-copy:hover,
  .pb-btn-ink:hover,
  .pb-suggest-fix:hover,
  .pb-btn:not(:disabled, [aria-disabled="true"]):hover {
    background: var(--paper);
    color: var(--ink);
  }

  .pb-more-btn:hover,
  .pb-btn-line:not([aria-disabled="true"]):hover {
    background: var(--ink);
    color: var(--paper);
  }

  .pb-menu-item:hover,
  .pb-suggest-keep:hover,
  .pb-seg-btn[aria-pressed="false"]:hover {
    background: var(--well);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
