/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* App shell layout */
.phds-main-content {
  flex: 1;
  width: calc(100% - 32px);
  margin: 0 auto;
  padding: var(--space-5, 24px) 0;
}

/* Keep body as flex column so footer stays at bottom */
body { min-height: 100vh; display: flex; flex-direction: column; }

.hidden {
  display: none !important;
}

/* Marketing home */
body.ph-marketing-page {
  background: var(--paper, #F5F1E8);
  color: var(--ink, #0A0A0A);
}

.ph-marketing-page .phds-main-content--full {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.phm-landing {
  background: var(--paper, #F5F1E8);
  color: var(--ink, #0A0A0A);
  overflow-x: hidden;
}

.phm-section__inner,
.phm-topbar__inner {
  width: min(100% - 40px, var(--max-content, 1280px));
  margin: 0 auto;
}

.phm-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, .94);
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.phm-topbar__inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.phm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink, #0A0A0A);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.phm-brand__word {
  font-size: 17px;
  letter-spacing: 0;
}

.phm-brand__word b {
  color: var(--felt, #00B070);
}

.phm-topbar__nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--ink-2, #2A2722);
  font-size: 14px;
}

.phm-topbar__nav a,
.phm-topbar__auth-link {
  color: inherit;
  text-decoration: none;
}

.phm-topbar__nav a {
  position: relative;
  padding: 8px 0;
}

.phm-topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--gold, #F0B000);
  transition: right var(--t-base, 250ms) var(--ease-house, ease);
}

.phm-topbar__nav a:hover {
  color: var(--ink, #0A0A0A);
}

.phm-topbar__nav a:hover::after {
  right: 0;
}

.phm-topbar__auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phm-topbar__auth-link {
  color: var(--ink-2, #2A2722);
  font-size: 14px;
  font-weight: 500;
}

.phm-topbar__auth-link:hover {
  color: var(--ink, #0A0A0A);
}

.phm-topbar .phm-topbar__cta {
  box-shadow: none;
}

.phm-hero {
  padding: 48px 0;
  background: var(--paper, #F5F1E8);
}

.phm-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: 32px;
}

.phm-hero__copy {
  min-width: 0;
}

.phm-eyebrow,
.phm-section__eyebrow,
.phm-feature-card span,
.phm-stat-hero span,
.phm-stat-pill span,
.phm-plan-card__name,
.phm-plan-card__tag {
  display: inline-flex;
  color: var(--felt-deep, #005A3A);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phm-eyebrow {
  margin: 0 0 22px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 176, 112, .12);
}

.phm-hero__title,
.phm-section__title {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

.phm-hero__title {
  max-width: 760px;
  font-size: 60px;
  line-height: 1.05;
}

.phm-hero__title em {
  color: var(--felt-deep, #005A3A);
  font-family: var(--font-display, var(--font-sans, system-ui, sans-serif));
  font-style: italic;
  font-weight: 400;
}

.phm-hero__subtitle,
.phm-section__subtitle {
  margin: 0;
  color: var(--ink-2, #2A2722);
  line-height: 1.55;
  text-wrap: pretty;
}

.phm-hero__subtitle {
  max-width: 620px;
  margin-top: 22px;
  font-size: 17px;
}

.phm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.phm-hero__actions {
  margin-top: 30px;
}

.phm-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md, 8px);
  color: var(--ink, #0A0A0A);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-fast, 150ms) var(--ease-house, ease),
              border-color var(--t-fast, 150ms) var(--ease-house, ease);
}

.phm-action-secondary:hover {
  background: rgba(10, 10, 10, .05);
  border-color: var(--border-hair, rgba(10, 10, 10, .08));
}

.phm-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2, #2A2722);
  font-size: 14px;
}

.phm-checklist li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phm-checklist li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--felt, #00B070);
  color: var(--bone, #FFFEFB);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.phm-hero__visual {
  width: 100%;
  max-width: 590px;
  justify-self: end;
}

.phm-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md, 8px);
  background: var(--ink, #0A0A0A);
  box-shadow: var(--shadow-3, 0 24px 60px -16px rgba(40, 28, 0, .32));
}

.phm-carousel__viewport {
  position: relative;
  overflow: hidden;
}

.phm-carousel__track {
  display: flex;
  transition: transform 500ms var(--ease-house, ease);
  will-change: transform;
}

.phm-carousel__slide {
  min-width: 100%;
  user-select: none;
}

.phm-carousel__image {
  display: block;
  width: 100%;
  height: auto;
}

.phm-carousel__button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 254, 251, .18);
  border-radius: 50%;
  background: rgba(10, 10, 10, .44);
  color: var(--bone, #FFFEFB);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.phm-carousel__button:hover {
  background: rgba(10, 10, 10, .62);
}

.phm-carousel__button--prev {
  left: 14px;
}

.phm-carousel__button--next {
  right: 14px;
}

.phm-carousel__dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.phm-carousel__dot-list {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}

.phm-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 254, 251, .45);
  cursor: pointer;
  transition: width var(--t-fast, 150ms) var(--ease-house, ease),
              background var(--t-fast, 150ms) var(--ease-house, ease);
}

.phm-carousel__dot[data-active="true"] {
  width: 24px;
  background: var(--gold, #F0B000);
}

.phm-section {
  padding: 48px 0;
  background: var(--paper, #F5F1E8);
}

.phm-section--paper {
  background: var(--paper-2, #EAE4D4);
}

.phm-section__head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.phm-section__title {
  font-size: 42px;
  line-height: 1.12;
}

.phm-section__subtitle {
  margin-top: 14px;
  font-size: 17px;
}

.phm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phm-step,
.phm-feature-card,
.phm-plan-card,
.phm-faq__item {
  border-radius: var(--radius-md, 8px);
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 1px 2px rgba(40, 28, 0, .06));
}

.phm-step {
  padding: 28px;
}

.phm-step__number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--felt, #00B070);
  color: var(--bone, #FFFEFB);
  font-family: var(--font-mono, monospace);
  font-size: 18px;
  font-weight: 700;
}

.phm-step h3,
.phm-feature-card h3 {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
}

.phm-step p,
.phm-feature-card p {
  margin: 10px 0 0;
  color: var(--ink-2, #2A2722);
  font-size: 14px;
  line-height: 1.55;
}

.phm-features,
.phm-plans,
.phm-faq {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.phm-feature-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phm-feature-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink, #0A0A0A);
}

.phm-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.phm-suit-bullet {
  flex: 0 0 auto;
  margin-top: 3px;
}

.phm-feature-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.phm-feature-card {
  padding: 22px;
  transition: transform var(--t-fast, 150ms) var(--ease-house, ease),
              box-shadow var(--t-fast, 150ms) var(--ease-house, ease);
}

.phm-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2, 0 8px 24px -8px rgba(40, 28, 0, .18));
}

.phm-feature-card span {
  margin-bottom: 8px;
}

.phm-section--dark {
  background: var(--ink, #0A0A0A);
  color: var(--bone, #FFFEFB);
}

.phm-section--dark .phm-section__title {
  color: var(--bone, #FFFEFB);
}

.phm-section--dark .phm-section__eyebrow,
.phm-section--dark .phm-section__subtitle {
  color: rgba(255, 254, 251, .68);
}

.phm-stat-hero {
  max-width: 900px;
  margin: 0 auto 16px;
  padding: 36px 32px;
  border: 1px solid rgba(255, 254, 251, .10);
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 254, 251, .04);
  text-align: center;
}

.phm-stat-hero span,
.phm-stat-pill span {
  color: rgba(255, 254, 251, .58);
}

.phm-stat-hero strong {
  display: block;
  margin-top: 12px;
  color: var(--felt, #00B070);
  font-family: var(--font-mono, monospace);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.phm-stat-hero p {
  max-width: 560px;
  margin: 18px auto 0;
  color: rgba(255, 254, 251, .72);
  font-size: 14px;
  line-height: 1.55;
}

.phm-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.phm-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 254, 251, .10);
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 254, 251, .04);
}

.phm-stat-pill strong {
  color: var(--bone, #FFFEFB);
  font-family: var(--font-mono, monospace);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.phm-stat-pill small {
  color: rgba(255, 254, 251, .54);
  font-size: 12px;
}

.phm-stat-foot {
  margin: 18px 0 0;
  color: rgba(255, 254, 251, .50);
  font-size: 12px;
  text-align: center;
}

.phm-plans {
  align-items: center;
}

.phm-plans__copy {
  max-width: 520px;
}

.phm-plans__copy .phm-section__subtitle {
  margin-bottom: 24px;
}

.phm-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.phm-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.phm-plan-card--pro {
  background: var(--ink, #0A0A0A);
  color: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-2, 0 8px 24px -8px rgba(40, 28, 0, .18));
}

.phm-plan-card__tag {
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gold, #F0B000);
  color: var(--ink, #0A0A0A);
  font-size: 10px;
}

.phm-plan-card__name {
  color: var(--ink-3, #6B665C);
}

.phm-plan-card--pro .phm-plan-card__name {
  color: rgba(255, 254, 251, .58);
}

.phm-plan-card__price {
  color: inherit;
  font-family: var(--font-display, var(--font-sans, system-ui, sans-serif));
  font-size: 44px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.phm-plan-card__price small {
  margin-left: 6px;
  color: var(--ink-3, #6B665C);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 14px;
  font-style: normal;
}

.phm-plan-card--pro .phm-plan-card__price small {
  color: rgba(255, 254, 251, .58);
}

.phm-plan-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2, #2A2722);
  font-size: 14px;
  line-height: 1.45;
}

.phm-plan-card--pro ul {
  color: rgba(255, 254, 251, .76);
}

.phm-plan-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--felt, #00B070);
  font-weight: 700;
}

.phm-plan-card--pro li::before {
  color: var(--gold, #F0B000);
}

.phm-faq__head {
  position: sticky;
  top: 96px;
}

.phm-faq__head .phm-section__title,
.phm-faq__head .phm-section__subtitle {
  text-align: left;
}

.phm-faq__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phm-faq__item {
  overflow: hidden;
}

.phm-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink, #0A0A0A);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

.phm-faq__item summary::-webkit-details-marker {
  display: none;
}

.phm-faq__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper-2, #EAE4D4);
  color: var(--ink-2, #2A2722);
}

.phm-faq__icon::before {
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.phm-faq__item[open] .phm-faq__icon {
  background: var(--felt, #00B070);
  color: var(--bone, #FFFEFB);
}

.phm-faq__item[open] .phm-faq__icon::before {
  content: "-";
}

.phm-faq__item p {
  max-width: 640px;
  margin: 0;
  padding: 0 20px 20px;
  color: var(--ink-2, #2A2722);
  font-size: 14px;
  line-height: 1.6;
}

.ph-marketing-page .phds-footer {
  border-top: 0;
  background: var(--ink, #0A0A0A);
  color: rgba(255, 254, 251, .62);
}

.ph-marketing-page .phds-footer__brand {
  color: rgba(255, 254, 251, .76);
}

.ph-marketing-page .phds-footer__links a {
  color: rgba(255, 254, 251, .62);
}

.ph-marketing-page .phds-footer__links a:hover {
  color: var(--bone, #FFFEFB);
}

@media (max-width: 980px) {
  .phm-topbar__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .phm-topbar__nav {
    display: none;
  }

  .phm-hero__inner,
  .phm-features,
  .phm-plans,
  .phm-faq {
    grid-template-columns: 1fr;
  }

  .phm-hero__visual {
    justify-self: center;
    max-width: 620px;
  }

  .phm-faq__head {
    position: static;
  }
}

@media (max-width: 720px) {
  .phm-section__inner,
  .phm-topbar__inner {
    width: min(100% - 32px, var(--max-content, 1280px));
  }

  .phm-topbar__inner {
    min-height: 60px;
    gap: 12px;
  }

  .phm-topbar__auth {
    gap: 8px;
  }

  .phm-topbar__auth-link {
    display: none;
  }

  .phm-topbar .phm-topbar__cta {
    padding: 9px 12px;
    font-size: 12px;
  }

  .phm-brand__word {
    font-size: 16px;
  }

  .phm-hero {
    padding: 16px 0;
  }

  .phm-hero__inner {
    gap: 34px;
  }

  .phm-hero__title {
    font-size: 40px;
  }

  .phm-hero__subtitle,
  .phm-section__subtitle {
    font-size: 15px;
  }

  .phm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .phm-actions .phds-btn,
  .phm-action-secondary {
    width: 100%;
    justify-content: center;
  }

  .phm-checklist {
    gap: 10px 16px;
    font-size: 13px;
  }

  .phm-carousel__button {
    width: 32px;
    height: 32px;
  }

  .phm-carousel__button--prev {
    left: 10px;
  }

  .phm-carousel__button--next {
    right: 10px;
  }

  .phm-section {
    padding: 16px 0;
  }

  .phm-section__head {
    margin-bottom: 32px;
    text-align: left;
  }

  .phm-section__title {
    font-size: 31px;
  }

  .phm-steps,
  .phm-feature-cards,
  .phm-stat-row,
  .phm-plan-grid {
    grid-template-columns: 1fr;
  }

  .phm-step,
  .phm-feature-card,
  .phm-plan-card {
    padding: 20px;
  }

  .phm-stat-hero {
    padding: 28px 20px;
  }

  .phm-stat-hero strong {
    font-size: 42px;
  }

  .phm-plan-card--pro {
    order: -1;
  }

  .phm-faq__item summary {
    padding: 16px;
  }

  .phm-faq__item p {
    padding: 0 16px 16px;
  }
}

@media (max-width: 420px) {
  .phm-brand__word {
    display: none;
  }

  .phm-hero__title {
    font-size: 34px;
  }

  .phm-stat-hero strong {
    font-size: 34px;
  }
}

/* Logged-in app shell */
body.ph-app-body {
  --ph-app-topbar-height: 59px;
  --phm-form-gap: 12px;
  --phm-section-gap: 12px;
  --phm-section-padding: 18px;
  --phm-grid-gap: 12px;

  overflow-x: hidden;
  background: var(--paper, #F5F1E8);
  color: var(--ink, #0A0A0A);
}

.phds-main-content.ph-app-main-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ph-app-body .phds-shell {
  flex: 1;
  min-height: 0;
  background: linear-gradient(
    to right,
    var(--ink, #0A0A0A) 0 240px,
    var(--surface, #F5F1E8) 240px
  );
}

.ph-app-body .phds-app-sidebar {
  align-self: flex-start;
  top: var(--ph-app-topbar-height);
  height: auto;
  max-height: calc(100vh - var(--ph-app-topbar-height));
}

@media (max-width: 900px) {
  .ph-app-body .phds-shell {
    background: var(--surface, #F5F1E8);
  }

  .ph-app-body .phds-app-sidebar {
    align-self: auto;
    height: calc(100vh - var(--ph-app-topbar-height));
    max-height: calc(100vh - var(--ph-app-topbar-height));
  }
}

@media (max-width: 760px) {
  body.ph-app-body {
    --ph-app-topbar-height: 51px;
  }
}

.ph-app-body .phds-topbar {
  box-sizing: border-box;
  height: var(--ph-app-topbar-height);
  box-shadow: none;
}

.ph-app-body .phds-topbar__right {
  min-width: 0;
}

.ph-app-body .phds-topbar__greet {
  max-width: min(44vw, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phds-page {
  width: calc(100% - 56px);
  min-height: calc(100vh - 216px);
  margin: 0 auto;
  padding: 28px 0 64px;
}

.phds-page--narrow {
  width: min(100% - 56px, 760px);
}

.pha-subscriptions-page {
  padding-top: 28px;
  padding-bottom: 64px;
}

.pha-page-header,
.pha-product-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.pha-page-header h2,
.pha-product-section__head h3 {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-weight: 700;
  letter-spacing: 0;
}

.pha-page-header h2 {
  font-size: 30px;
  line-height: 1.15;
}

.pha-page-eyebrow {
  margin: 0 0 6px;
  color: var(--muted, #6F6A60);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pha-product-section {
  display: grid;
  gap: 18px;
}

.pha-product-section__head {
  padding-top: 4px;
}

.pha-product-section__head h3 {
  font-size: 20px;
  line-height: 1.25;
}

.pha-product-section__head p {
  max-width: 540px;
  margin: 6px 0 0;
  color: var(--muted, #6F6A60);
  font-size: 14px;
  line-height: 1.45;
}

.pha-current-plan {
  display: grid;
  gap: 3px;
  min-width: 156px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 176, 112, .22);
  border-radius: var(--radius-md, 8px);
  background: rgba(0, 176, 112, .08);
  color: var(--ink, #0A0A0A);
}

.pha-current-plan span {
  color: var(--muted, #6F6A60);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pha-current-plan strong {
  font-size: 15px;
  line-height: 1.25;
}

.pha-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pha-plan-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 430px;
  padding: 22px;
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: var(--radius-lg, 8px);
  background: var(--card, #FFFDF8);
}

.pha-plan-card--current {
  border-color: rgba(0, 176, 112, .42);
  box-shadow: 0 0 0 1px rgba(0, 176, 112, .10), 0 18px 44px rgba(10, 10, 10, .06);
}

.pha-plan-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
}

.pha-plan-name {
  margin: 0;
  color: var(--muted, #6F6A60);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pha-plan-price {
  margin: 8px 0 0;
  color: var(--ink, #0A0A0A);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.pha-plan-price--free {
  color: var(--felt-deep, #005A3A);
}

.pha-plan-interval {
  display: inline-block;
  color: var(--muted, #6F6A60);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.pha-plan-features {
  display: grid;
  gap: 10px;
}

.pha-plan-feature-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink-2, #2A2722);
  font-size: 14px;
  line-height: 1.4;
}

.pha-plan-feature-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--felt, #00B070);
}

.pha-plan-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.pha-plan-actions .button_to {
  margin: 0;
}

.pha-plan-note {
  margin: 0;
  color: var(--muted, #6F6A60);
  font-size: 13px;
  line-height: 1.4;
}

.pha-cancel-modal {
  display: grid;
  gap: 16px;
  width: min(100% - 32px, 430px);
  padding: 24px;
}

.pha-cancel-modal h3,
.pha-cancel-modal p {
  margin: 0;
}

.pha-cancel-modal h3 {
  color: var(--ink, #0A0A0A);
  font-size: 20px;
  line-height: 1.25;
}

.pha-cancel-modal p {
  color: var(--ink-2, #2A2722);
  font-size: 14px;
  line-height: 1.5;
}

.pha-modal-actions {
  display: grid;
  gap: 10px;
}

.pha-modal-actions .button_to {
  margin: 0;
}

@media (max-width: 980px) {
  .pha-plan-grid {
    grid-template-columns: 1fr;
  }

  .pha-plan-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .pha-subscriptions-page {
    padding-top: 18px;
    padding-bottom: 42px;
  }

  .pha-page-header,
  .pha-product-section__head {
    align-items: stretch;
    flex-direction: column;
  }

  .pha-page-header h2 {
    font-size: 26px;
  }

  .pha-current-plan {
    width: 100%;
  }

  .pha-plan-card {
    padding: 18px;
  }

  .pha-plan-card__top {
    min-height: 0;
  }

  .pha-plan-price {
    font-size: 24px;
  }
}

.phds-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.phds-page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.phds-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.phds-action {
  justify-content: center;
}

.phds-action__icon,
.ph-app-code-badge__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.phds-action--sm .phds-action__icon,
.ph-app-code-badge__icon {
  width: 14px;
  height: 14px;
}

.ph-app-clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.ph-app-club-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(10, 10, 10, .03);
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, .08));
  transition:
    box-shadow var(--t-fast, 180ms) var(--ease-house, ease),
    transform var(--t-fast, 180ms) var(--ease-house, ease);
}

.ph-app-club-tile:hover {
  box-shadow: var(--shadow-2, 0 8px 24px rgba(0, 0, 0, .12));
  transform: translateY(-2px);
}

.ph-app-club-tile__row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ph-app-club-tile__row--head {
  align-items: flex-start;
}

.ph-app-club-tile__row--actions {
  margin-top: 4px;
}

.ph-app-club-tile__copy {
  min-width: 0;
}

.ph-app-club-tile__name {
  margin: 0;
  overflow: hidden;
  color: var(--ink, #0A0A0A);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-club-tile__meta {
  margin: 3px 0 0;
  color: var(--ink-3, #6B665C);
  font-size: 13px;
  line-height: 1.35;
}

.ph-app-copy {
  position: relative;
  flex: 0 0 auto;
}

.ph-app-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 132px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 176, 112, .4);
  border-radius: 999px;
  background: transparent;
  color: var(--felt-deep, #005A3A);
  cursor: pointer;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ph-app-code-badge:hover {
  border-color: rgba(0, 176, 112, .7);
  background: rgba(0, 176, 112, .08);
}

.ph-app-code-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-app-copy__feedback {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  color: var(--felt-deep, #005A3A);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ph-app-club-tile .phds-badge {
  letter-spacing: 0;
}

.ph-app-empty-card {
  display: grid;
  justify-items: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 34px 28px;
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, .08));
  text-align: center;
}

.ph-app-empty-card--full {
  max-width: none;
  width: 100%;
}

.ph-app-empty-card__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(0, 176, 112, .1);
  color: var(--felt-deep, #005A3A);
}

.ph-app-empty-card h2 {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.ph-app-empty-card p {
  max-width: 430px;
  margin: 8px 0 0;
  color: var(--ink-3, #6B665C);
  font-size: 14px;
  line-height: 1.55;
}

.ph-app-empty-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

@media (max-width: 720px) {
  .phds-page {
    width: calc(100% - 32px);
    min-height: auto;
    padding: 24px 0 48px;
  }

  .phds-page-head {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .phds-page-title {
    font-size: 27px;
  }

  .phds-page-actions {
    justify-content: stretch;
  }

  .phds-page-actions .phds-btn,
  .ph-app-empty-card__actions .phds-btn {
    flex: 1 1 160px;
  }
}

@media (max-width: 520px) {
  .ph-app-club-tile {
    padding: 18px;
  }

  .ph-app-club-tile__row {
    align-items: stretch;
    flex-direction: column;
  }

  .ph-app-copy,
  .ph-app-code-badge,
  .ph-app-club-tile__row--actions .phds-btn,
  .ph-app-empty-card__actions,
  .ph-app-empty-card__actions .phds-btn {
    width: 100%;
  }

  .ph-app-code-badge,
  .ph-app-club-tile__row--actions .phds-btn {
    justify-content: center;
  }

  .ph-app-club-tile__row--actions {
    align-items: flex-start;
  }

  .ph-app-copy__feedback {
    right: 50%;
    transform: translateX(50%);
  }
}

.phds-page-sub {
  margin: 6px 0 0;
  color: var(--ink-3, #6B665C);
  font-size: 14px;
  line-height: 1.45;
}

.ph-app-club-head {
  align-items: flex-start;
}

.ph-app-club-head__copy {
  min-width: 0;
}

.ph-app-club-title {
  flex-wrap: wrap;
}

.ph-app-sublabel {
  margin: 0;
  color: var(--ink-3, #6B665C);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phds-stat-grid {
  display: grid;
  gap: 12px;
}

.phds-stat-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.phds-stat,
.phds-card--app {
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, .08));
}

.phds-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-top: 3px solid transparent;
}

.phds-stat__label {
  color: var(--ink-3, #6B665C);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phds-stat__value {
  overflow-wrap: anywhere;
  color: var(--ink, #0A0A0A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.phds-stat__subtitle {
  color: var(--ink-3, #6B665C);
  font-size: 11.5px;
  line-height: 1.4;
}

.phds-stat.is-pos .phds-stat__value {
  color: var(--felt-deep, #005A3A);
}

.phds-stat.is-neg .phds-stat__value {
  color: var(--heart, #D0322D);
}

.ph-app-club-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  align-items: start;
  gap: 16px;
}

.phds-card--app {
  min-width: 0;
  overflow: hidden;
}

.phds-card--flush {
  padding: 0;
}

.phds-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
}

.phds-card-head h2 {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.phds-card-head__meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-3, #6B665C);
  font-size: 12px;
}

.phds-card-body {
  padding: 16px 22px 20px;
}

.phds-card-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 22px;
  text-align: center;
}

.phds-card-empty--left {
  justify-items: start;
  text-align: left;
}

.phds-card-empty p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-3, #6B665C);
  font-size: 14px;
  line-height: 1.55;
}

.ph-app-sessions-list {
  display: flex;
  flex-direction: column;
}

.ph-app-session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
}

.ph-app-session-row:last-child {
  border-bottom: 0;
}

.ph-app-session-row__main {
  min-width: 0;
}

.ph-app-session-row__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 4px;
}

.ph-app-session-row__title > span:first-child {
  overflow: hidden;
  color: var(--ink, #0A0A0A);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-session-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--ink-3, #6B665C);
  font-size: 12.5px;
}

.ph-app-session-row__meta b {
  color: var(--ink-2, #2A2722);
  font-weight: 600;
}

.ph-app-session-row__winner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-deep, #9A6A00);
}

.ph-app-session-row__winner-icon {
  width: 12px;
  height: 12px;
}

.ph-app-session-row__actions,
.phds-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phds-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-top: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  background: var(--paper, #F5F1E8);
}

.phds-card-foot__count,
.phds-pagination__info {
  color: var(--ink-3, #6B665C);
  font-size: 12px;
}

.phds-mono {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-variant-numeric: tabular-nums;
}

.phds-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.phds-badge--green {
  background: rgba(0, 176, 112, .14);
  color: var(--felt-deep, #005A3A);
}

.phds-badge--amber {
  background: rgba(240, 176, 0, .22);
  color: #7E5C00;
}

.phds-badge--gray {
  background: var(--paper-2, #EAE4D4);
  color: var(--ink-3, #6B665C);
}

.phds-badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--felt, #00B070);
  box-shadow: 0 0 0 3px rgba(0, 176, 112, .25);
}

.phds-action.is-disabled {
  cursor: default;
  opacity: .42;
  pointer-events: none;
  transform: none;
}

.ph-app-ranking-list {
  padding: 6px 0 0;
}

.ph-app-ranking-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
}

.ph-app-ranking-row__position {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-2, #EAE4D4);
  color: var(--ink, #0A0A0A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12px;
  font-weight: 700;
}

.ph-app-ranking-row__position--1 {
  background: var(--gold, #F0B000);
}

.ph-app-ranking-row__position--2 {
  background: #C9C4B5;
}

.ph-app-ranking-row__position--3 {
  background: #C68F4A;
  color: var(--bone, #FFFEFB);
}

.ph-app-ranking-row__player {
  min-width: 0;
}

.ph-app-ranking-row__name {
  display: block;
  overflow: hidden;
  color: var(--ink, #0A0A0A);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-ranking-row__name:hover {
  color: var(--felt-deep, #005A3A);
}

.ph-app-ranking-row__meta {
  display: block;
  margin-top: 2px;
  color: var(--ink-3, #6B665C);
  font-size: 11.5px;
}

.ph-app-ranking-row__points {
  color: var(--ink, #0A0A0A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ph-app-ranking-row__points span {
  margin-left: 3px;
  color: var(--ink-3, #6B665C);
  font-size: 11px;
  font-weight: 500;
}

.ph-app-ranking-foot {
  padding: 12px 22px 14px;
  color: var(--ink-3, #6B665C);
  font-size: 12px;
  text-align: center;
}

.phds-stat-grid--players {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ph-app-memberships-list {
  min-width: 0;
}

.ph-app-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: var(--space-4);
}

.ph-app-player-frame {
  min-width: 0;
}

.ph-app-player-tile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 86px;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(10, 10, 10, .04);
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, .08));
  transition:
    box-shadow var(--t-fast, 180ms) var(--ease-house, ease),
    transform var(--t-fast, 180ms) var(--ease-house, ease);
}

.ph-app-player-tile:hover {
  box-shadow: var(--shadow-2, 0 8px 24px rgba(0, 0, 0, .12));
  transform: translateY(-1px);
}

.ph-app-player-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 176, 112, .12);
  color: var(--felt-deep, #005A3A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.ph-app-player-avatar.is-manager {
  background: rgba(240, 176, 0, .2);
  color: #7E5C00;
}

.ph-app-player-meta {
  min-width: 0;
}

.ph-app-player-name {
  margin: 0;
  overflow: hidden;
  color: var(--ink, #0A0A0A);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-player-role {
  margin-top: 2px;
  color: var(--ink-3, #6B665C);
  font-size: 12.5px;
  font-weight: 600;
}

.ph-app-player-contact {
  margin-top: 5px;
  overflow: hidden;
  color: rgba(107, 102, 92, .82);
  font-size: 11.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-player-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ph-app-icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3, #6B665C);
  text-decoration: none;
  transition:
    background var(--t-fast, 180ms) var(--ease-house, ease),
    border-color var(--t-fast, 180ms) var(--ease-house, ease),
    color var(--t-fast, 180ms) var(--ease-house, ease);
}

.ph-app-icon-button:hover {
  border-color: rgba(10, 10, 10, .08);
  background: var(--paper, #F5F1E8);
  color: var(--ink, #0A0A0A);
}

.ph-app-icon-button--danger:hover {
  border-color: rgba(208, 50, 45, .24);
  background: rgba(208, 50, 45, .08);
  color: var(--heart, #D0322D);
}

.ph-app-icon-button__icon {
  width: 16px;
  height: 16px;
}

.ph-app-memberships-pagination {
  margin-top: var(--space-4);
  border-radius: 8px;
  border-top: 0;
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, .08));
}

.ph-app-empty-card__icon {
  width: 24px;
  height: 24px;
}

.ph-app-modal-dialog {
  border: 1px solid rgba(10, 10, 10, .08) !important;
  border-radius: 8px !important;
  background: var(--bone, #FFFEFB) !important;
  color: var(--ink, #0A0A0A);
}

.ph-app-modal-dialog > div:first-child {
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08)) !important;
  background: var(--bone, #FFFEFB);
}

.ph-app-modal-dialog #modal-title {
  color: var(--ink, #0A0A0A) !important;
  font-size: 17px;
  letter-spacing: 0;
}

.ph-app-modal-dialog button[aria-label="Fechar"] {
  border-color: transparent !important;
  color: var(--ink-3, #6B665C) !important;
}

.ph-app-modal-dialog button[aria-label="Fechar"]:hover {
  background: var(--paper-2, #EAE4D4) !important;
  color: var(--ink, #0A0A0A) !important;
}

.ph-app-modal-dialog > div:last-child {
  max-height: min(70vh, 620px);
  padding: 18px 22px !important;
}

.ph-app-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ph-app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ph-app-modal__dialog {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, .08);
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  color: var(--ink, #0A0A0A);
  box-shadow: var(--shadow-3, 0 24px 60px -16px rgba(40, 28, 0, .32));
}

.ph-app-modal__dialog.max-w-sm {
  max-width: 384px;
}

.ph-app-modal__dialog.max-w-md {
  max-width: 448px;
}

.ph-app-modal__dialog.max-w-lg {
  max-width: 560px;
}

.ph-app-modal__dialog.max-w-2xl {
  max-width: 672px;
}

.ph-app-modal__dialog.max-w-3xl {
  max-width: 768px;
}

.ph-app-modal__dialog.max-w-5xl {
  max-width: 1024px;
}

.ph-app-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
}

.ph-app-modal__title {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.ph-app-modal__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3, #6B665C);
  cursor: pointer;
}

.ph-app-modal__close:hover {
  background: var(--paper-2, #EAE4D4);
  color: var(--ink, #0A0A0A);
}

.ph-app-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 176, 112, .18);
}

.ph-app-modal__close-icon {
  width: 16px;
  height: 16px;
}

.ph-app-modal__body {
  min-width: 0;
  overflow-y: auto;
  padding: 18px 22px;
}

.ph-app-modal .bg-slate-950,
.ph-app-modal .bg-slate-950\/60,
.ph-app-modal .bg-slate-950\/80,
.ph-app-modal .bg-slate-900,
.ph-app-modal .bg-slate-900\/50,
.ph-app-modal .bg-slate-900\/60,
.ph-app-modal .bg-slate-900\/70,
.ph-app-modal .bg-slate-800\/80,
.ph-app-modal .bg-white\/5,
.ph-app-modal .bg-black\/10,
.ph-app-modal .bg-black\/20 {
  background-color: var(--paper, #F5F1E8) !important;
}

.ph-app-modal .border-white\/5,
.ph-app-modal .border-white\/10,
.ph-app-modal .border-white\/20 {
  border-color: var(--border-hair, rgba(10, 10, 10, .08)) !important;
}

.ph-app-modal .text-slate-100,
.ph-app-modal .text-slate-200,
.ph-app-modal .text-slate-300 {
  color: var(--ink, #0A0A0A) !important;
}

.ph-app-modal .text-slate-400,
.ph-app-modal .text-slate-500 {
  color: var(--ink-3, #6B665C) !important;
}

.ph-app-modal .text-emerald-200,
.ph-app-modal .text-emerald-300,
.ph-app-modal .text-emerald-400 {
  color: var(--felt-deep, #005A3A) !important;
}

.ph-app-modal .text-amber-100,
.ph-app-modal .text-amber-200,
.ph-app-modal .text-amber-300,
.ph-app-modal .text-amber-400 {
  color: var(--gold-deep, #9A6A00) !important;
}

.ph-app-modal .text-rose-100,
.ph-app-modal .text-rose-200,
.ph-app-modal .text-rose-300,
.ph-app-modal .text-red-300 {
  color: var(--heart, #D0322D) !important;
}

.ph-app-modal .bg-emerald-500\/5,
.ph-app-modal .bg-emerald-500\/10,
.ph-app-modal .bg-emerald-500\/15,
.ph-app-modal .bg-emerald-500\/20 {
  background-color: rgba(0, 176, 112, .1) !important;
}

.ph-app-modal .bg-amber-500\/5,
.ph-app-modal .bg-amber-500\/10,
.ph-app-modal .bg-amber-500\/15,
.ph-app-modal .bg-amber-500\/20 {
  background-color: rgba(240, 176, 0, .14) !important;
}

.ph-app-modal .bg-rose-500\/10,
.ph-app-modal .bg-red-500\/10 {
  background-color: rgba(208, 50, 45, .08) !important;
}

.ph-app-modal .border-emerald-500\/30 {
  border-color: rgba(0, 176, 112, .3) !important;
}

.ph-app-modal .border-amber-400\/30,
.ph-app-modal .border-amber-400\/40,
.ph-app-modal .border-amber-500\/30 {
  border-color: rgba(240, 176, 0, .38) !important;
}

.ph-app-modal .border-rose-500\/30,
.ph-app-modal .border-rose-500\/40,
.ph-app-modal .border-red-500\/20 {
  border-color: rgba(208, 50, 45, .24) !important;
}

.ph-app-modal__footer,
.ph-app-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ph-app-modal__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
}

.ph-app-modal-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ph-app-modal-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
}

.ph-app-modal-list__item:last-child {
  border-bottom: 0;
}

.ph-app-modal-list__item--stacked {
  align-items: stretch;
}

.ph-app-modal-list__main {
  min-width: 0;
  width: 100%;
}

.ph-app-modal-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 14px;
}

.ph-app-modal-list__title {
  display: block;
  overflow: hidden;
  color: var(--ink, #0A0A0A);
  font-size: 13.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-modal-list__meta,
.phds-muted {
  color: var(--ink-3, #6B665C);
  font-size: 12px;
  line-height: 1.45;
}

.ph-app-modal-list__actions,
.ph-app-button-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ph-app-compact-list,
.ph-app-mini-metrics {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
}

.ph-app-compact-list {
  list-style: none;
}

.ph-app-compact-list li,
.ph-app-mini-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  border: 1px solid rgba(10, 10, 10, .06);
  border-radius: 8px;
  background: rgba(255, 254, 251, .72);
  padding: 8px 10px;
  color: var(--ink-3, #6B665C);
  font-size: 12px;
}

.ph-app-compact-list strong,
.ph-app-mini-metrics dd {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ph-app-mini-metrics dt {
  color: var(--ink-3, #6B665C);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ph-app-subcard {
  min-width: 0;
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 14px;
}

.ph-app-subcard--green {
  border-color: rgba(0, 176, 112, .22);
  background: rgba(0, 176, 112, .08);
}

.ph-app-subcard--amber {
  border-color: rgba(240, 176, 0, .34);
  background: rgba(240, 176, 0, .12);
}

.ph-app-subcard--danger {
  border-color: rgba(208, 50, 45, .24);
  background: rgba(208, 50, 45, .08);
}

.ph-app-subcard h3,
.ph-app-subcard h4 {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-size: 14px;
  font-weight: 700;
}

.ph-app-subcard p {
  margin: 6px 0 0;
}

.ph-app-summary-grid {
  display: grid;
  gap: 10px;
}

.ph-app-summary-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ph-app-summary-grid {
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 12px;
}

.ph-app-summary-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3, #6B665C);
  font-size: 12px;
}

.ph-app-summary-grid strong {
  color: var(--ink, #0A0A0A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ph-app-deal-mode-grid {
  margin-top: 12px;
}

.ph-app-deal-split {
  grid-template-columns: minmax(0, .8fr) minmax(260px, 1fr);
  align-items: end;
}

.ph-app-deal-ack {
  background: rgba(240, 176, 0, .1);
  border-color: rgba(240, 176, 0, .32);
}

.ph-app-deal-history__grid {
  margin-top: 12px;
}

.ph-app-deal-shares {
  margin-top: 12px;
}

.ph-app-entry-picker {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 12px;
}

.ph-app-entry-picker legend {
  padding: 0 6px;
  color: var(--ink-3, #6B665C);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ph-app-entry-list {
  display: grid;
  gap: 8px;
}

.ph-app-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid var(--paper-2, #EAE4D4);
  border-top-color: var(--felt, #00B070);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

.ph-app-seat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ph-app-seat-chip {
  min-width: 0;
  border: 1px solid rgba(10, 10, 10, .08);
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  padding: 8px;
}

.ph-app-seat-chip strong,
.ph-app-seat-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-seat-chip strong {
  color: var(--ink, #0A0A0A);
  font-size: 12px;
}

.ph-app-seat-chip span {
  margin-top: 2px;
  color: var(--ink-3, #6B665C);
  font-size: 11.5px;
}

.phds-table-balance-list {
  display: grid;
  gap: 12px;
}

.ph-app-eliminations {
  display: grid;
  gap: 14px;
}

.ph-app-eliminations__loading {
  justify-items: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
}

.ph-app-eliminations__scroll {
  max-height: min(58vh, 520px);
  overflow-y: auto;
}

.ph-app-eliminations__list {
  display: grid;
  gap: 8px;
}

.ph-app-elimination-row {
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 12px;
}

.ph-app-elimination-row.is-winner {
  border-color: rgba(240, 176, 0, .35);
  background: rgba(240, 176, 0, .12);
}

.ph-app-elimination-row.is-simultaneous {
  border-color: rgba(0, 176, 112, .24);
  background: rgba(0, 176, 112, .07);
}

.ph-app-elimination-row__handle {
  cursor: grab;
}

.ph-app-elimination-row__spacer {
  width: 34px;
  height: 34px;
}

.ph-app-elimination-row__positions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ph-app-elimination-row__position,
.ph-app-elim-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px;
  font-weight: 800;
}

.ph-app-elimination-row__position {
  background: var(--bone, #FFFEFB);
  color: var(--ink, #0A0A0A);
}

.ph-app-elimination-row.is-winner .ph-app-elimination-row__position {
  background: var(--gold, #F0B000);
}

.ph-app-elim-preview {
  background: rgba(0, 176, 112, .16);
  color: var(--felt-deep, #005A3A);
  padding: 0 8px;
}

.ph-app-elim-preview.flex {
  display: inline-flex;
}

.ph-app-elimination-row__player {
  min-width: 0;
}

.ph-app-elimination-row__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--ink, #0A0A0A);
  font-size: 13.5px;
  font-weight: 700;
}

.ph-app-elimination-row__moves {
  display: inline-flex;
  gap: 4px;
}

.opacity-50 {
  opacity: .5;
}

.ph-app-deal-section.hidden,
.ph-app-modal-list.hidden,
.ph-app-payout-row.hidden {
  display: none;
}

body.ph-app-body .phds-form.phds-form--sections {
  gap: var(--phm-form-gap);
}

body.ph-app-body .phds-form-section {
  gap: var(--phm-section-gap);
  padding: var(--phm-section-padding);
}

body.ph-app-body .phds-fld-row {
  gap: var(--phm-grid-gap);
}

.ph-app-merge-card {
  padding: 22px;
}

.ph-app-merge-intro {
  max-width: 760px;
  margin: 0;
  color: var(--ink-3, #6B665C);
  font-size: 14px;
  line-height: 1.55;
}

.ph-app-merge-form {
  margin-top: 20px;
}

.ph-app-merge-columns,
.ph-app-merge-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ph-app-merge-panel,
.ph-app-merge-summary,
.ph-app-merge-choice {
  min-width: 0;
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 14px;
}

.ph-app-profile-summary {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}

.ph-app-profile-summary--source {
  background: rgba(208, 50, 45, .08);
  color: #7F1D1D;
}

.ph-app-profile-summary--target {
  background: rgba(0, 176, 112, .1);
  color: var(--felt-deep, #005A3A);
}

.ph-app-profile-summary p,
.ph-app-merge-choice p,
.ph-app-merge-profile h2,
.ph-app-merge-profile p {
  margin: 0;
}

.ph-app-profile-summary p,
.ph-app-merge-choice p,
.ph-app-merge-profile h2 {
  color: var(--ink, #0A0A0A);
  font-weight: 700;
  letter-spacing: 0;
}

.ph-app-profile-summary dl {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.ph-app-profile-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ph-app-profile-summary dd {
  margin: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-alert {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.ph-app-alert--warn {
  border: 1px solid rgba(240, 176, 0, .36);
  background: rgba(240, 176, 0, .12);
  color: #7E5C00;
}

.ph-app-alert--danger {
  border: 1px solid rgba(208, 50, 45, .28);
  background: rgba(208, 50, 45, .08);
  color: #7F1D1D;
}

.ph-app-merge-summary {
  background: rgba(0, 176, 112, .08);
}

.ph-app-merge-loading {
  color: var(--felt-deep, #005A3A);
  font-size: 13px;
}

.ph-app-merge-result > div {
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 13px;
}

.ph-app-merge-result__source {
  background: rgba(208, 50, 45, .08);
  color: #7F1D1D;
}

.ph-app-merge-result__target {
  background: rgba(0, 176, 112, .12);
  color: var(--felt-deep, #005A3A);
}

.ph-app-merge-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ph-app-merge-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  padding: 10px 12px;
  color: var(--ink-3, #6B665C);
  font-size: 12px;
}

.ph-app-merge-metrics strong {
  color: var(--ink, #0A0A0A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.ph-app-merge-profile {
  display: grid;
  gap: 8px;
}

.ph-app-merge-profile > p {
  color: var(--ink-3, #6B665C);
  font-size: 13px;
}

.ph-app-merge-profile-grid,
.ph-app-merge-choice__options {
  display: grid;
  gap: 12px;
}

.ph-app-merge-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
}

.ph-app-merge-choice__options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.ph-app-radio-option {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 8px;
  border: 1px solid rgba(10, 10, 10, .08);
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  cursor: pointer;
  padding: 10px;
}

.ph-app-radio-option:hover {
  border-color: rgba(0, 176, 112, .32);
}

.ph-app-radio-option input {
  margin-top: 2px;
}

.ph-app-radio-option span {
  min-width: 0;
}

.ph-app-radio-option span span {
  display: block;
  color: var(--ink-3, #6B665C);
  font-size: 11.5px;
}

.ph-app-radio-option strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink, #0A0A0A);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phds-page-actions .button_to,
.ph-app-ranking-season-card__actions .button_to {
  display: inline-flex;
  margin: 0;
}

.phds-stat-grid--rankings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-app-ranking-seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: var(--space-4);
}

.ph-app-ranking-season-card {
  display: flex;
  min-width: 0;
  min-height: 188px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(10, 10, 10, .04);
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, .08));
  padding: 18px;
  transition:
    box-shadow var(--t-fast, 180ms) var(--ease-house, ease),
    transform var(--t-fast, 180ms) var(--ease-house, ease);
}

.ph-app-ranking-season-card:hover {
  box-shadow: var(--shadow-2, 0 8px 24px rgba(0, 0, 0, .12));
  transform: translateY(-1px);
}

.ph-app-ranking-season-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
}

.ph-app-ranking-season-card__copy {
  min-width: 0;
}

.ph-app-ranking-season-card__copy h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink, #0A0A0A);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-ranking-season-card__copy a {
  color: inherit;
  text-decoration: none;
}

.ph-app-ranking-season-card__copy a:hover {
  color: var(--felt-deep, #005A3A);
}

.ph-app-ranking-season-card__copy p {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  color: var(--ink-3, #6B665C);
  font-size: 12.5px;
  line-height: 1.4;
}

.ph-app-ranking-season-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ph-app-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: var(--space-4);
}

.ph-app-tile {
  display: flex;
  min-width: 0;
  min-height: 174px;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  border: 1px solid rgba(10, 10, 10, .04);
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, .08));
  padding: 18px;
  transition:
    box-shadow var(--t-fast, 180ms) var(--ease-house, ease),
    transform var(--t-fast, 180ms) var(--ease-house, ease);
}

.ph-app-tile:hover {
  box-shadow: var(--shadow-2, 0 8px 24px rgba(0, 0, 0, .12));
  transform: translateY(-1px);
}

.ph-app-tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: var(--space-3);
}

.ph-app-tile__copy {
  min-width: 0;
}

.ph-app-tile__title {
  display: block;
  overflow: hidden;
  margin: 0 0 7px;
  color: var(--ink, #0A0A0A);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-tile__meta,
.ph-app-tile__updated {
  color: var(--ink-3, #6B665C);
  font-size: 12.5px;
  line-height: 1.45;
}

.ph-app-tile__meta {
  display: grid;
  gap: 3px;
}

.ph-app-tile__updated {
  margin-top: 8px;
}

.ph-app-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ph-app-payout-section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 16px;
}

.ph-app-payout-section.hidden {
  display: none;
}

.ph-app-payout-section h3 {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-size: 14px;
  font-weight: 700;
}

.phds-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  cursor: pointer;
  color: var(--ink-2, #2A2722);
  font-size: 13.5px;
  font-weight: 600;
}

.phds-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.phds-toggle__knob {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--paper-2, #EAE4D4);
  transition: background var(--t-fast, 180ms) var(--ease-house, ease);
}

.phds-toggle__knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--bone, #FFFEFB);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform var(--t-fast, 180ms) var(--ease-house, ease);
}

.phds-toggle input:checked + .phds-toggle__knob {
  background: var(--felt, #00B070);
}

.phds-toggle input:checked + .phds-toggle__knob::after {
  transform: translateX(18px);
}

.phds-toggle input:focus-visible + .phds-toggle__knob {
  box-shadow: 0 0 0 3px rgba(0, 176, 112, .18);
}

.ph-app-tiebreakers {
  display: grid;
  gap: 10px;
}

.ph-app-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ph-app-drag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(10, 10, 10, .08);
  border-radius: 999px;
  background: var(--paper, #F5F1E8);
  color: var(--ink-2, #2A2722);
  cursor: grab;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 6px 10px;
}

.ph-app-drag-chip__icon {
  width: 13px;
  height: 13px;
  color: var(--ink-3, #6B665C);
}

.phds-help {
  margin: -6px 0 0;
  color: var(--ink-3, #6B665C);
  font-size: 12px;
  line-height: 1.45;
}

.ph-app-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ph-app-json-input[hidden] {
  display: none;
}

.ph-app-points-builder {
  display: grid;
  gap: 12px;
}

.ph-app-points-rows {
  display: grid;
  gap: 10px;
}

.ph-app-points-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 12px;
}

.ph-app-preset-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ph-app-buyin-grid {
  display: grid;
  grid-template-columns: minmax(280px, .76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: 16px;
}

.ph-app-buyin-jackpot {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ph-app-alert strong {
  display: block;
  margin-bottom: 6px;
}

.ph-app-alert ul {
  margin: 0;
  padding-left: 18px;
}

.ph-app-ranking-show-grid {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 16px;
}

.ph-app-ranking-config {
  overflow: hidden;
}

.ph-app-definition-list {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
}

.ph-app-definition-list div {
  display: grid;
  gap: 5px;
}

.ph-app-definition-list dt {
  color: var(--ink-3, #6B665C);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ph-app-definition-list dd {
  margin: 0;
  color: var(--ink, #0A0A0A);
  font-size: 13px;
  line-height: 1.5;
}

.phds-table-wrap {
  overflow-x: auto;
}

.phds-table {
  width: 100%;
  border-collapse: collapse;
}

.phds-table th,
.phds-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  text-align: left;
  white-space: nowrap;
}

.phds-table th {
  color: var(--ink-3, #6B665C);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phds-table td {
  color: var(--ink-2, #2A2722);
  font-size: 13px;
}

.phds-table tr:last-child td {
  border-bottom: 0;
}

.phds-table .is-right {
  text-align: right;
}

.phds-table .is-center {
  text-align: center;
}

.ph-app-ranking-player-stats {
  margin-bottom: 0;
}

.ph-app-ranking-player-chart {
  height: 260px;
  padding: 18px 22px 22px;
}

.ph-app-ranking-player-chart canvas {
  width: 100%;
  height: 100%;
}

.ph-app-ranking-points-card {
  margin-top: 18px;
}

.ph-app-levels-card,
.ph-app-entries-card,
.ph-app-jackpot-awards {
  margin-top: 18px;
}

.phds-table-row--pause td {
  background: rgba(240, 176, 0, .08);
  color: #7E5C00;
  font-style: italic;
}

.ph-app-jackpot-balance {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 18px;
}

.ph-app-jackpot-balance__value {
  display: block;
  margin-top: 8px;
  color: var(--felt-deep, #005A3A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.ph-app-jackpot-balance .phds-help {
  margin-top: 10px;
}

.ph-app-jackpot-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}

.ph-app-jackpot-facts div {
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 12px 14px;
}

.ph-app-jackpot-facts dt {
  color: var(--ink-3, #6B665C);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ph-app-jackpot-facts dd {
  margin: 4px 0 0;
  color: var(--ink, #0A0A0A);
  font-size: 13px;
  font-weight: 700;
}

.ph-session-loading {
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, .08));
  color: var(--ink-3, #6B665C);
  font-size: 13px;
  padding: 18px;
}

.phds-page--session {
  display: block;
  gap: 0;
}

.phds-page--session > .phds-page-head {
  margin-bottom: 16px;
}

.ph-session-timer-shell {
  margin-bottom: 16px;
}

.ph-session-layout {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 16px;
}

.ph-session-layout--summary {
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
}

.ph-session-left,
.ph-session-main {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.ph-session-hud,
.ph-session-summary-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink, #0A0A0A);
  color: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-2, 0 8px 24px rgba(0, 0, 0, .12));
}

.ph-session-hud {
  display: grid;
  grid-template-columns: minmax(150px, .46fr) minmax(280px, 1fr) minmax(150px, .46fr);
  gap: 16px;
  padding: 34px 20px 18px;
}

.ph-session-fullscreen-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 254, 251, .14);
  border-radius: 999px;
  background: rgba(255, 254, 251, .07);
  color: rgba(255, 254, 251, .9);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

.ph-session-fullscreen-button:hover {
  background: rgba(255, 254, 251, .12);
}

.ph-session-hud__side {
  display: grid;
  align-content: center;
  gap: 6px;
}

.ph-session-hud__side--right {
  text-align: right;
}

.ph-session-hud__side article,
.ph-session-money-strip article,
.ph-session-summary-stats article {
  border-radius: 8px;
  background: rgba(255, 254, 251, .07);
  padding: 9px 10px;
}

.ph-session-hud__side span,
.ph-session-money-strip span,
.ph-session-summary-stats span {
  display: block;
  color: rgba(255, 254, 251, .56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ph-session-hud__side strong,
.ph-session-money-strip strong,
.ph-session-summary-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--bone, #FFFEFB);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ph-session-hud__center {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.ph-session-hud__level {
  margin: 0;
  color: var(--felt-soft, #66D6AE);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.ph-session-hud__clock {
  margin: 0;
  color: var(--bone, #FFFEFB);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 96px;
  font-weight: 800;
  line-height: .95;
  font-variant-numeric: tabular-nums;
}

.ph-session-hud__clock.text-green-600 {
  color: var(--felt, #00B070);
}

.ph-session-hud__clock.text-yellow-500 {
  color: var(--gold, #F0B000);
}

.ph-session-hud__clock.text-red-600 {
  color: var(--heart, #D0322D);
}

.ph-session-hud__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ph-session-hud__controls.hidden {
  display: none;
}

.ph-session-hud__control,
.ph-session-hud__control-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ph-session-hud__control {
  border: 1px solid rgba(255, 254, 251, .14);
  border-radius: 999px;
  background: var(--felt, #00B070);
  color: var(--ink, #0A0A0A);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 14px;
}

.ph-session-hud__hint {
  color: rgba(255, 254, 251, .56);
  font-size: 12px;
}

.ph-session-money-strip,
.ph-session-summary-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ph-session-money-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ph-session-money-strip .is-pos strong,
.ph-session-summary-stats .is-pos strong {
  color: var(--felt, #00B070);
}

.ph-session-money-strip .is-neg strong,
.ph-session-summary-stats .is-neg strong {
  color: #FF8B82;
}

.ph-session-summary-card {
  display: grid;
  gap: 18px;
  padding: 28px 24px 22px;
}

.ph-session-summary-card__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 22px;
}

.ph-session-summary-card__head p,
.ph-session-summary-card__empty {
  margin: 6px 0 0;
  color: rgba(255, 254, 251, .62);
  font-size: 13px;
}

.ph-session-summary-card__icon {
  width: 22px;
  height: 22px;
  color: var(--gold, #F0B000);
}

.ph-session-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ph-session-podium__tile {
  border: 1px solid rgba(255, 254, 251, .1);
  border-radius: 8px;
  background: rgba(255, 254, 251, .07);
  padding: 16px;
}

.ph-session-podium__tile.is-gold {
  border-color: rgba(240, 176, 0, .35);
  background: rgba(240, 176, 0, .14);
}

.ph-session-podium__tile span {
  color: rgba(255, 254, 251, .62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ph-session-podium__tile strong,
.ph-session-podium__tile b {
  display: block;
}

.ph-session-podium__tile strong {
  margin-top: 8px;
  font-size: 17px;
}

.ph-session-podium__tile b {
  margin-top: 5px;
  color: var(--gold, #F0B000);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.ph-session-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ph-session-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ph-session-copy-action {
  position: relative;
}

.ph-session-copy-action__feedback {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  color: var(--felt-deep, #005A3A);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ph-session-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  align-items: stretch;
}

.ph-session-player-extract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  align-items: stretch;
  padding: 14px 18px 18px;
}

.ph-session-player-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  box-shadow: var(--shadow-1, 0 2px 8px rgba(0, 0, 0, .08));
}

.ph-session-player-card__head,
.ph-session-player-card__payment,
.ph-session-player-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}

.ph-session-player-card__head h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink, #0A0A0A);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-session-player-card__status,
.ph-session-player-card__payment {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ph-session-player-card__payment {
  border-top: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
}

.ph-session-position-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-3, #6B665C);
  font-size: 13px;
  font-weight: 800;
}

.ph-session-position-badge.is-gold {
  color: var(--gold-deep, #9A6A00);
}

.ph-session-player-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ph-session-player-table th,
.ph-session-player-table td {
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  padding: 9px 10px;
  text-align: left;
}

.ph-session-player-table th {
  color: var(--ink-3, #6B665C);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ph-session-player-table td {
  color: var(--ink-2, #2A2722);
}

.ph-session-player-table .is-right {
  text-align: right;
}

.ph-session-player-table .is-total td {
  color: var(--ink, #0A0A0A);
  font-weight: 800;
}

.ph-session-player-table__edit {
  width: 24px;
  height: 24px;
  margin-left: auto;
}

.ph-session-player-card__actions {
  margin-top: auto;
  justify-content: center;
}

.ph-session-player-card__empty {
  display: grid;
  min-height: 116px;
  place-items: center;
  color: var(--ink-3, #6B665C);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.ph-session-extract {
  overflow: hidden;
}

.ph-session-extract__rows {
  display: grid;
  padding: 14px 18px 18px;
}

.ph-session-extract__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  color: var(--ink-3, #6B665C);
  font-size: 13px;
  padding: 10px 0;
}

.ph-session-extract__row strong {
  color: var(--ink, #0A0A0A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.ph-session-extract__row.is-minus strong {
  color: var(--heart, #D0322D);
}

.ph-session-extract__row.is-total {
  border-bottom: 0;
  color: var(--ink, #0A0A0A);
  font-weight: 800;
}

.ph-session-extract__row.is-total strong {
  color: var(--felt-deep, #005A3A);
}

.ph-session-tables,
.ph-session-placements {
  overflow: hidden;
}

.ph-session-table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ph-session-table-list {
  display: grid;
  gap: 12px;
  padding: 14px 18px 18px;
}

.ph-session-table {
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 12px;
}

.ph-session-table.is-heavy {
  border-color: rgba(208, 50, 45, .28);
  background: rgba(208, 50, 45, .07);
}

.ph-session-table.is-light {
  border-color: rgba(240, 176, 0, .35);
  background: rgba(240, 176, 0, .1);
}

.ph-session-table__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3, #6B665C);
  font-size: 12px;
}

.ph-session-table__head strong {
  color: var(--ink, #0A0A0A);
  font-size: 14px;
}

.ph-session-seats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ph-session-seat {
  min-width: 0;
  border: 1px solid rgba(10, 10, 10, .08);
  border-radius: 8px;
  background: var(--bone, #FFFEFB);
  padding: 8px;
}

.ph-session-seat.is-empty {
  border-style: dashed;
  background: transparent;
  color: var(--ink-3, #6B665C);
}

.ph-session-seat span {
  display: block;
  color: var(--ink-3, #6B665C);
  font-size: 11px;
  font-weight: 800;
}

.ph-session-seat strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink, #0A0A0A);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-session-table__note {
  margin: 10px 0 0;
  font-size: 12px;
}

.ph-session-table__note.is-heavy {
  color: var(--heart, #D0322D);
}

.ph-session-table__note.is-light {
  color: #7E5C00;
}

.ph-session-closed-callout {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: rgba(0, 176, 112, .13);
  color: var(--felt-deep, #005A3A);
  padding: 14px 16px;
}

.ph-session-closed-callout p {
  margin: 0;
  font-size: 13px;
}

.ph-session-values-grid {
  margin-bottom: 0;
}

.phds-tabs {
  display: flex;
  gap: 6px;
  margin: 0;
  border-bottom: 1px solid rgba(10, 10, 10, .08);
}

.phds-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  color: var(--ink-3, #6B665C);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.phds-tab:hover {
  color: var(--ink, #0A0A0A);
}

.phds-tab.is-active {
  border-bottom-color: var(--felt, #00B070);
  color: var(--felt-deep, #005A3A);
}

.ph-app-report-filter {
  margin-bottom: 0;
}

.ph-app-report-filter__sub {
  margin-top: 4px;
}

.phds-stat-grid--reports {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.phds-stat-grid--reports-financial {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.phds-stat-grid--reports-performance {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.phds-page--reports .phds-stat__value {
  overflow-wrap: normal;
  font-size: 20px;
  white-space: nowrap;
}

.phds-table strong {
  color: var(--ink, #0A0A0A);
  font-weight: 700;
}

.phds-table-sub {
  display: block;
  margin-top: 3px;
  color: var(--ink-3, #6B665C);
  font-size: 11.5px;
  line-height: 1.35;
  white-space: normal;
}

.phds-text-pos {
  color: var(--felt-deep, #005A3A) !important;
}

.phds-text-neg {
  color: var(--heart, #D0322D) !important;
}

.ph-app-link {
  color: var(--felt-deep, #005A3A);
  font-weight: 700;
  text-decoration: none;
}

.ph-app-link:hover {
  color: var(--felt, #00B070);
  text-decoration: underline;
}

.ph-app-highlight-grid,
.ph-app-chart-grid {
  display: grid;
  gap: var(--space-3);
}

.ph-app-highlight-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  padding: 18px 22px 22px;
}

.ph-app-mini-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border-hair, rgba(10, 10, 10, .08));
  border-radius: 8px;
  background: var(--paper, #F5F1E8);
  padding: 14px;
}

.ph-app-mini-card .phds-stat__value {
  font-size: 20px;
}

.ph-app-chart-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.ph-app-chart-card {
  min-height: 230px;
}

.phds-card-head--compact {
  padding: 14px 18px;
}

.phds-card-head--compact h2 {
  font-size: 16px;
}

.phds-card-head--inset {
  padding-bottom: 14px;
}

.ph-app-bars {
  display: grid;
  gap: var(--space-3);
  padding: 16px 18px 18px;
}

.ph-app-bar {
  min-width: 0;
}

.ph-app-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--ink-3, #6B665C);
  font-size: 12px;
}

.ph-app-bar__head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-app-bar__head strong {
  flex: 0 0 auto;
  color: var(--ink, #0A0A0A);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ph-app-bar__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2, #EAE4D4);
}

.ph-app-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--felt, #00B070);
}

@media (max-width: 1180px) {
  .phds-stat-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phds-stat-grid--players,
  .phds-stat-grid--rankings,
  .phds-stat-grid--reports,
  .phds-stat-grid--reports-financial,
  .ph-app-merge-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ph-app-club-grid,
  .ph-app-ranking-show-grid,
  .ph-app-buyin-grid,
  .ph-session-layout,
  .ph-session-layout--summary,
  .ph-app-chart-grid {
    grid-template-columns: 1fr;
  }

  .ph-session-hud {
    grid-template-columns: 1fr;
  }

  .ph-session-hud__side,
  .ph-session-hud__side--right {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: left;
  }

  .ph-session-money-strip,
  .ph-session-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .phds-card-head,
  .ph-app-session-row,
  .phds-card-foot {
    padding-inline: 16px;
  }

  .ph-app-session-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .ph-app-session-row__actions {
    justify-content: flex-start;
  }

  .ph-app-deal-split,
  .ph-app-preset-picker,
  .ph-app-merge-columns,
  .ph-app-merge-result,
  .ph-app-merge-profile-grid,
  .ph-app-points-row,
  .ph-app-summary-grid--two {
    grid-template-columns: 1fr;
  }

  .ph-app-merge-card {
    padding: 18px;
  }

  .ph-app-section-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ph-app-section-row .phds-btn {
    width: 100%;
  }

  .ph-app-jackpot-facts {
    grid-template-columns: 1fr;
  }

  .ph-session-actions,
  .ph-session-actions__buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .ph-session-actions__buttons .phds-btn,
  .ph-session-copy-action,
  .ph-session-copy-action .phds-btn {
    width: 100%;
  }

  .ph-session-podium,
  .ph-session-hud__side,
  .ph-session-hud__side--right,
  .ph-session-money-strip,
  .ph-session-summary-stats {
    grid-template-columns: 1fr;
  }

  .ph-session-hud__clock {
    font-size: 64px;
  }

  .ph-session-hud__level {
    font-size: 22px;
  }

  .ph-session-player-card__payment {
    align-items: stretch;
    flex-direction: column;
  }

  .ph-session-player-card__payment .button_to,
  .ph-session-player-card__payment .phds-btn,
  .ph-session-player-card__actions .phds-btn {
    width: 100%;
  }

  .ph-app-modal {
    align-items: end;
    padding: 10px;
  }

  .ph-app-modal__dialog {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }

  .ph-app-modal__head,
  .ph-app-modal__body {
    padding-inline: 16px;
  }

  .ph-app-modal-list__item {
    align-items: stretch;
    flex-direction: column;
  }

  .ph-app-modal-list__actions,
  .ph-app-modal-list__actions .phds-btn,
  .ph-app-button-row,
  .ph-app-button-row .phds-btn {
    width: 100%;
  }

  .ph-app-modal-list__actions .phds-btn,
  .ph-app-button-row .phds-btn {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .phds-stat-grid--four {
    grid-template-columns: 1fr;
  }

  .phds-stat-grid--players,
  .phds-stat-grid--rankings,
  .phds-stat-grid--reports,
  .phds-stat-grid--reports-financial,
  .phds-stat-grid--reports-performance,
  .ph-app-merge-metrics,
  .ph-app-merge-choice__options {
    grid-template-columns: 1fr;
  }

  .phds-tabs {
    overflow-x: auto;
  }

  .ph-app-club-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ph-app-session-row__actions,
  .phds-card-foot,
  .phds-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .ph-app-session-row__actions .phds-btn,
  .phds-pagination .phds-btn,
  .phds-pagination .phds-action {
    width: 100%;
  }

  .phds-card-foot__count,
  .phds-pagination__info {
    text-align: center;
  }

  .ph-app-player-tile {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .ph-app-player-avatar {
    width: 38px;
    height: 38px;
  }

  .ph-app-player-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .ph-app-ranking-season-card__head {
    align-items: stretch;
    flex-direction: column;
  }

  .ph-app-ranking-season-card__actions,
  .ph-app-ranking-season-card__actions .button_to,
  .ph-app-ranking-season-card__actions .phds-btn {
    width: 100%;
  }

  .ph-app-ranking-season-card__actions .phds-btn {
    justify-content: center;
  }

  .ph-app-tile__head {
    align-items: stretch;
    flex-direction: column;
  }

  .ph-app-tile__actions,
  .ph-app-tile__actions .phds-btn {
    width: 100%;
  }

  .ph-app-tile__actions .phds-btn {
    justify-content: center;
  }

  .ph-app-jackpot-balance__value {
    font-size: 34px;
  }

  .ph-session-hud {
    padding: 50px 16px 18px;
  }

  .ph-session-hud__controls,
  .ph-session-hud__control {
    width: 100%;
  }

  .ph-session-hud__control {
    justify-content: center;
  }

  .ph-session-seats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ph-app-modal__footer,
  .ph-app-inline-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .ph-app-modal__footer .phds-btn,
  .ph-app-modal__footer .button_to,
  .ph-app-inline-actions .phds-btn,
  .ph-app-inline-actions .button_to {
    width: 100%;
  }

  .ph-app-seat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ph-app-elimination-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ph-app-elimination-row__positions {
    grid-column: 1;
  }

  .ph-app-elimination-row__handle,
  .ph-app-elimination-row__spacer {
    display: none;
  }
}

#timer_frame:fullscreen,
#timer_frame:-webkit-full-screen {
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;
  overflow: auto;
  padding: clamp(20px, 3vw, 42px);
  background: var(--ink, #0A0A0A);
}

#timer_frame:fullscreen::backdrop,
#timer_frame:-webkit-full-screen::backdrop {
  background: var(--ink, #0A0A0A);
}

#timer_frame:fullscreen .ph-session-hud,
#timer_frame:-webkit-full-screen .ph-session-hud {
  width: min(100%, 1680px);
  min-height: min(900px, calc(100vh - clamp(40px, 6vw, 84px)));
  box-sizing: border-box;
  align-content: center;
  align-items: center;
  grid-template-columns: minmax(230px, .52fr) minmax(430px, 1.2fr) minmax(230px, .52fr);
  gap: clamp(20px, 3vw, 46px);
  padding: clamp(62px, 6vw, 96px) clamp(32px, 5vw, 76px) clamp(32px, 4vw, 56px);
  box-shadow: none;
}

#timer_frame:fullscreen .ph-session-fullscreen-button,
#timer_frame:-webkit-full-screen .ph-session-fullscreen-button {
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  z-index: 4;
  border-color: rgba(255, 254, 251, .24);
  background: rgba(255, 254, 251, .12);
  font-size: clamp(13px, 1vw, 16px);
  padding: 10px 14px;
}

#timer_frame:fullscreen .ph-session-hud__level,
#timer_frame:-webkit-full-screen .ph-session-hud__level {
  font-size: clamp(30px, 3.2vw, 56px);
}

#timer_frame:fullscreen .ph-session-hud__clock,
#timer_frame:-webkit-full-screen .ph-session-hud__clock {
  font-size: clamp(132px, 13vw, 232px);
  line-height: .84;
}

#timer_frame:fullscreen .ph-session-hud__center,
#timer_frame:-webkit-full-screen .ph-session-hud__center {
  gap: clamp(12px, 1.5vw, 24px);
}

#timer_frame:fullscreen .ph-session-hud__side,
#timer_frame:-webkit-full-screen .ph-session-hud__side {
  gap: clamp(10px, 1.2vw, 20px);
}

#timer_frame:fullscreen .ph-session-hud__side article,
#timer_frame:fullscreen .ph-session-money-strip article,
#timer_frame:-webkit-full-screen .ph-session-hud__side article,
#timer_frame:-webkit-full-screen .ph-session-money-strip article {
  padding: clamp(14px, 1.7vw, 26px);
}

#timer_frame:fullscreen .ph-session-hud__side span,
#timer_frame:fullscreen .ph-session-money-strip span,
#timer_frame:-webkit-full-screen .ph-session-hud__side span,
#timer_frame:-webkit-full-screen .ph-session-money-strip span {
  font-size: clamp(11px, 1vw, 16px);
}

#timer_frame:fullscreen .ph-session-hud__side strong,
#timer_frame:-webkit-full-screen .ph-session-hud__side strong {
  font-size: clamp(28px, 2.8vw, 52px);
}

#timer_frame:fullscreen .ph-session-money-strip,
#timer_frame:-webkit-full-screen .ph-session-money-strip {
  gap: clamp(10px, 1.2vw, 18px);
}

#timer_frame:fullscreen .ph-session-money-strip strong,
#timer_frame:-webkit-full-screen .ph-session-money-strip strong {
  font-size: clamp(24px, 2vw, 40px);
}

#timer_frame:fullscreen .ph-session-hud__controls,
#timer_frame:-webkit-full-screen .ph-session-hud__controls {
  display: none !important;
}

@media (max-width: 760px) {
  #timer_frame:fullscreen,
  #timer_frame:-webkit-full-screen {
    align-items: stretch;
    justify-items: stretch;
    padding: 10px;
  }

  #timer_frame:fullscreen .ph-session-hud,
  #timer_frame:-webkit-full-screen .ph-session-hud {
    width: 100%;
    min-height: calc(100vh - 20px);
    align-content: start;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 58px 12px 14px;
  }

  #timer_frame:fullscreen .ph-session-fullscreen-button,
  #timer_frame:-webkit-full-screen .ph-session-fullscreen-button {
    top: 12px;
    right: 12px;
    font-size: 12px;
    padding: 8px 10px;
  }

  #timer_frame:fullscreen .ph-session-hud__center,
  #timer_frame:-webkit-full-screen .ph-session-hud__center {
    order: 1;
    gap: 8px;
  }

  #timer_frame:fullscreen .ph-session-hud__side,
  #timer_frame:fullscreen .ph-session-hud__side--right,
  #timer_frame:-webkit-full-screen .ph-session-hud__side,
  #timer_frame:-webkit-full-screen .ph-session-hud__side--right {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: stretch;
    gap: 8px;
    text-align: left;
  }

  #timer_frame:fullscreen .ph-session-hud__side,
  #timer_frame:-webkit-full-screen .ph-session-hud__side {
    order: 2;
  }

  #timer_frame:fullscreen .ph-session-hud__side--right,
  #timer_frame:-webkit-full-screen .ph-session-hud__side--right {
    order: 3;
  }

  #timer_frame:fullscreen .ph-session-hud__side article,
  #timer_frame:-webkit-full-screen .ph-session-hud__side article {
    min-width: 0;
    padding: 8px;
  }

  #timer_frame:fullscreen .ph-session-hud__side span,
  #timer_frame:-webkit-full-screen .ph-session-hud__side span {
    font-size: 9px;
    overflow-wrap: anywhere;
  }

  #timer_frame:fullscreen .ph-session-hud__side strong,
  #timer_frame:-webkit-full-screen .ph-session-hud__side strong {
    font-size: clamp(18px, 5vw, 24px);
  }

  #timer_frame:fullscreen .ph-session-hud__level,
  #timer_frame:-webkit-full-screen .ph-session-hud__level {
    font-size: clamp(20px, 6vw, 28px);
  }

  #timer_frame:fullscreen .ph-session-hud__clock,
  #timer_frame:-webkit-full-screen .ph-session-hud__clock {
    font-size: clamp(80px, 24vw, 118px);
  }

  #timer_frame:fullscreen .ph-session-money-strip,
  #timer_frame:-webkit-full-screen .ph-session-money-strip {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #timer_frame:fullscreen .ph-session-money-strip article,
  #timer_frame:-webkit-full-screen .ph-session-money-strip article {
    min-width: 0;
    padding: 8px;
  }

  #timer_frame:fullscreen .ph-session-money-strip span,
  #timer_frame:-webkit-full-screen .ph-session-money-strip span {
    font-size: 9px;
  }

  #timer_frame:fullscreen .ph-session-money-strip strong,
  #timer_frame:-webkit-full-screen .ph-session-money-strip strong {
    font-size: clamp(16px, 4.8vw, 22px);
  }
}
