/* Stats and Games wider than a phone (the "Diagnostics Desktop" design).
   mobile.js renders the same pages at every width; mobile.css styles them on
   phones and this file styles them above 760px: a sticky page header with
   inline filters, wide cards, tables and a centred definitions dialog. */
@media (min-width: 761px) {
  /* ---- Page frame ---- */
  .ph-page {
    display: grid;
    gap: 0;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 12px 56px;
    color: var(--text);
  }
  .ph-page [hidden] {
    display: none !important;
  }
  .ph-body,
  .ph-stack {
    display: grid;
    gap: 20px;
    min-width: 0;
  }
  svg.ph-ic {
    width: 16px;
    height: 16px;
    flex: none;
    display: block;
    stroke-width: 1.8;
  }
  .ph-chev {
    color: var(--outline);
  }

  /* ---- Header: title and filters, tabs underneath ---- */
  .dk-head {
    position: sticky;
    top: 0;
    z-index: 6;
    display: grid;
    margin: 0 -32px 24px;
    padding: 20px 32px 0;
    background: rgb(14 19 33 / 92%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .dk-crumb {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    margin: 0 0 4px -4px;
    padding: 0 4px;
    color: var(--accent-300);
    font: 600 13.5px/20px var(--font);
    text-decoration: none;
  }
  .dk-crumb:hover {
    color: var(--text);
  }
  .dk-crumb svg.ph-ic {
    width: 18px;
    height: 18px;
  }
  .dk-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 32px;
    padding-bottom: 16px;
  }
  .dk-head-text {
    flex: 1 1 320px;
    min-width: min(100%, 320px);
  }
  .dk-title {
    margin: 0;
    font: 700 32px/40px var(--headline);
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .dk-sub {
    margin: 4px 0 0;
    color: var(--text-muted-80);
    font: 400 14px/22px var(--font);
    font-variant-numeric: tabular-nums;
  }
  .dk-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 12px 28px;
  }
  .dk-filter {
    display: grid;
    gap: 2px;
  }
  .dk-eyebrow {
    color: rgb(195 197 216 / 60%);
    font: 600 10.5px/14px var(--font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .dk-filter > .dk-eyebrow {
    padding-left: 12px;
  }
  .dk-seg {
    display: inline-flex;
    border-bottom: 2px solid var(--surface-high);
  }
  .dk-seg button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: rgb(195 197 216 / 80%);
    font: 500 13px/20px var(--font);
    white-space: nowrap;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
  }
  .dk-seg button:hover {
    color: var(--text);
  }
  .dk-seg button.is-on {
    color: var(--text);
    font-weight: 600;
  }
  .dk-seg button.is-on::after {
    content: "";
    position: absolute;
    inset: auto 0 -2px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
  }
  .ph-tc-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
  }
  .ph-tc-dot[data-tc="rapid"] { background: #497ef7; }
  .ph-tc-dot[data-tc="blitz"] { background: #00a3ab; }
  .ph-tc-dot[data-tc="bullet"] { background: #d1a22a; }
  .dk-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--divider);
  }
  .dk-tab {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: rgb(195 197 216 / 80%);
    font: 500 14px/20px var(--font);
    text-decoration: none;
    white-space: nowrap;
  }
  .dk-tab:hover {
    color: var(--text);
  }
  .dk-tab[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
  }
  .dk-tab[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset: auto 12px -1px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
  }

  /* ---- Cards ---- */
  .ph-card {
    display: grid;
    align-content: start;
    min-width: 0;
    padding: 0 20px;
    border: 1px solid var(--divider-soft);
    border-radius: 12px;
    background: var(--surface-low);
    color: var(--text);
    text-decoration: none;
  }
  .ph-card.is-link {
    position: relative;
  }
  .ph-card-cover {
    color: inherit;
    text-decoration: none;
  }
  .ph-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
  }
  .ph-page .ph-card-cover:focus-visible {
    outline: none;
  }
  .ph-card-cover:focus-visible::after {
    outline: 2px solid var(--accent-300);
    outline-offset: 2px;
  }
  .ph-card.is-link:hover {
    border-color: rgb(141 144 162 / 55%);
  }
  .ph-card.is-chart {
    padding: 0 20px 16px;
  }
  .ph-card.is-chart-card,
  .ph-card.is-tiles {
    padding-bottom: 20px;
  }
  .ph-card.is-map {
    padding-bottom: 16px;
    overflow: hidden;
  }
  .ph-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
  }
  .ph-card-title {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font: 600 16px/22px var(--headline);
  }
  .ph-card-label {
    flex: none;
    white-space: nowrap;
    color: rgb(195 197 216 / 70%);
    font: 500 12px/16px var(--font);
  }
  .ph-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    min-height: 52px;
    border-top: 1px solid var(--divider);
  }
  .dk-foot-note {
    margin-left: auto;
    color: rgb(195 197 216 / 70%);
    font: 400 12.5px/18px var(--font);
  }
  .ph-readout {
    min-height: 20px;
    color: var(--text-muted);
    font: 600 14px/20px var(--font);
    font-variant-numeric: tabular-nums;
  }
  .ph-section-title {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font: 600 19px/26px var(--headline);
  }
  .ph-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 20px;
    align-items: stretch;
    min-width: 0;
  }
  .ph-pair.is-top {
    align-items: start;
  }
  /* Map beside the country list, three to two. */
  .ph-pair.is-geo {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  /* Highlights beside results, as wide as the design's two-to-three split. */
  .ph-pair.is-hl {
    grid-template-columns: calc((100% - 140px) * 0.4 + 54px) minmax(0, 1fr);
  }
  .ph-pair.is-hl > .ph-card {
    padding-bottom: 20px;
  }
  .ph-pair.is-hl .ph-card-head {
    min-height: 64px;
  }
  .ph-pair.is-hl .ph-card-title {
    font-size: 19px;
    line-height: 26px;
  }
  @media (max-width: 1080px) {
    .ph-pair.is-geo,
    .ph-pair.is-hl {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* ---- Tiles ---- */
  .dk-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .dk-tiles.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dk-tile {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    height: 104px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--surface-high);
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .dk-tile b {
    white-space: nowrap;
    font: 700 22px/26px var(--headline);
    letter-spacing: -0.02em;
  }
  .dk-tile span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    font: 500 12.5px/16px var(--font);
  }
  .dk-tile.is-win { background: rgb(123 208 255 / 12%); }
  .dk-tile.is-win b { color: var(--t64-cyan); }
  .dk-tile.is-loss { background: rgb(255 180 171 / 12%); }
  .dk-tile.is-loss b { color: var(--t64-rose); }
  .dk-tile.is-draw { background: rgb(141 144 162 / 16%); }
  .dk-tile.is-up b { color: var(--t64-cyan); }
  .dk-tile.is-down b { color: var(--t64-rose); }
  .ph-pair.is-hl .dk-tile {
    height: 96px;
  }
  .ph-pair.is-hl .dk-tile b {
    font-size: 24px;
    line-height: 28px;
  }
  .dk-class-tiles[data-tc="rapid"] .dk-tile { background: rgb(73 126 247 / 15%); }
  .dk-class-tiles[data-tc="rapid"] .dk-tile b { color: #497ef7; }
  .dk-class-tiles[data-tc="blitz"] .dk-tile { background: rgb(0 163 171 / 15%); }
  .dk-class-tiles[data-tc="blitz"] .dk-tile b { color: #00a3ab; }
  .dk-class-tiles[data-tc="bullet"] .dk-tile { background: rgb(209 162 42 / 15%); }
  .dk-class-tiles[data-tc="bullet"] .dk-tile b { color: #d1a22a; }
  /* Games played page: three standalone tiles. */
  .dk-tiles.is-cards {
    gap: 16px;
  }
  .dk-tiles.is-cards .dk-tile {
    border: 1px solid var(--divider-soft);
    border-radius: 12px;
  }
  .dk-tiles.is-cards .dk-tile b {
    font-size: 26px;
    line-height: 30px;
  }
  .dk-tiles.is-cards .dk-tile span {
    font-size: 13px;
    line-height: 18px;
  }
  .dk-tiles.is-cards .dk-tile:not(.is-win, .is-loss, .is-draw) {
    background: var(--surface-low);
  }

  .ph-wdl,
  .ph-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .ph-tiles.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ph-wdl-tile,
  .ph-tile {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    height: 96px;
    padding: 0 8px;
    border-radius: 10px;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .ph-wdl-tile b,
  .ph-tile b {
    white-space: nowrap;
    font: 700 24px/28px var(--headline);
    letter-spacing: -0.02em;
  }
  .ph-wdl-tile span,
  .ph-tile span {
    white-space: nowrap;
    color: var(--text-muted);
    font: 500 13px/18px var(--font);
  }
  .ph-wdl-tile.is-win { background: rgb(123 208 255 / 12%); color: var(--t64-cyan); }
  .ph-wdl-tile.is-draw { background: rgb(141 144 162 / 16%); color: var(--text); }
  .ph-wdl-tile.is-loss { background: rgb(255 180 171 / 12%); color: var(--t64-rose); }
  /* Where your clock goes: two labelled rows of phase tiles (value over name). */
  .ph-clock-row {
    display: grid;
    gap: 8px;
  }
  .ph-clock-row + .ph-clock-row {
    margin-top: 16px;
  }
  .ph-clock-label {
    color: rgb(195 197 216 / 70%);
    font: 600 10.5px/14px var(--font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .ph-tile.is-phase {
    height: 88px;
    background: var(--surface-high);
  }
  /* Time pressure: name, value, note; standard 96px tiles. */
  .ph-card.is-tiles > .ph-tiles.is-two {
    align-content: start;
  }
  .ph-tile.is-pressure {
    height: 96px;
    background: var(--surface-high);
  }
  .ph-tile .ph-tile-name {
    color: var(--text-muted);
    font: 500 13px/16px var(--font);
  }
  .ph-tile .ph-tile-note {
    color: var(--outline);
    font: 400 12px/16px var(--font);
  }
  .ph-tile.is-pressure.is-loss b { color: var(--t64-rose); }
  .ph-card.is-tiles {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .ph-card.is-tiles .ph-card-head {
    min-height: 64px;
  }
  .ph-card.is-tiles .ph-card-title {
    font-size: 19px;
    line-height: 26px;
  }

  .ph-stats {
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    padding: 16px 0;
  }
  .ph-stat {
    display: grid;
    justify-items: center;
    gap: 2px;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .ph-stat b {
    font: 700 24px/28px var(--headline);
  }
  .ph-stat span {
    color: rgb(195 197 216 / 75%);
    font: 500 12px/16px var(--font);
  }

  /* ---- Overview ---- */
  .dk-ratings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
  }
  .dk-rating-card {
    gap: 16px;
    padding: 20px;
    font-variant-numeric: tabular-nums;
  }
  .dk-rating-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .dk-rating-top .ph-class-ic {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .dk-rating-name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin: 0;
    font: 600 19px/26px var(--headline);
  }
  .dk-rating-top .ph-delta {
    padding: 3px 8px;
    border-radius: 5px;
    font: 600 15px/20px var(--font);
  }
  .dk-rating-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .dk-rating-value {
    margin-left: -2px;
    font: 700 36px/40px var(--headline);
    letter-spacing: -0.03em;
  }
  .dk-details {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--accent-300);
    font: 600 15px/22px var(--font);
    white-space: nowrap;
  }
  .dk-details svg.ph-ic {
    width: 18px;
    height: 18px;
    margin-right: -5px;
  }
  /* Summary cards: title and Details on the left, three tiles on the right. */
  .dk-sumcard {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    padding: 20px;
  }
  .dk-sumcard-head {
    flex: 1 1 220px;
    max-width: 300px;
    display: grid;
    gap: 10px;
    align-content: center;
    min-height: 104px;
  }
  .dk-sumcard-head .ph-card-title {
    font-size: 19px;
    line-height: 26px;
  }
  .dk-sumcard > :last-child {
    flex: 3 1 380px;
    min-width: 0;
  }
  .dk-sumcard .ph-pending,
  .dk-sumcard .ph-empty {
    align-self: center;
  }
  /* The rule between the games total and its split. */
  .dk-tiles.is-split {
    position: relative;
  }
  .dk-tiles.is-split::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: calc((100% - 24px) / 3 + 5.5px);
    width: 1px;
    background: rgb(141 144 162 / 45%);
  }

  /* ---- Rating detail ---- */
  .dk-chart-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0 12px;
  }
  .dk-hero {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .dk-hero .ph-class-ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .dk-hero .ph-class-ic svg.ph-ic {
    width: 22px;
    height: 22px;
  }
  .dk-hero b {
    font: 700 40px/44px var(--headline);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }
  .dk-hero .ph-delta {
    padding: 3px 8px;
    border-radius: 5px;
    font: 600 15px/20px var(--font);
  }

  /* ---- Rows ---- */
  .ph-row,
  .ph-game {
    display: grid;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 10px 0;
    border-top: 1px solid var(--divider);
    color: var(--text);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  .ph-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ph-row.has-flag {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 56px;
    padding: 8px 0;
  }
  .ph-row.has-icon {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }
  .ph-row.has-side {
    grid-template-columns: 4px minmax(0, 1fr) auto;
  }
  .ph-row-text {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .ph-row-name {
    font: 500 14.5px/20px var(--font);
    overflow-wrap: anywhere;
  }
  .ph-row-sub {
    color: var(--outline);
    font: 400 12px/16px var(--font);
  }
  .ph-row-value {
    font: 700 16px/1 var(--headline);
    text-align: right;
  }
  .ph-row-value.is-muted { color: rgb(195 197 216 / 60%); }
  .ph-row-value.is-win { color: var(--t64-cyan); }
  .ph-row-value.is-loss { color: var(--t64-rose); }
  .ph-page .is-up { color: var(--t64-cyan); }
  .ph-page .is-down { color: var(--t64-rose); }
  .ph-side {
    display: block;
    width: 4px;
    height: 28px;
    border-radius: 2px;
  }
  .ph-side.is-white { background: var(--text); }
  .ph-side.is-black {
    background: #2a2f3e;
    box-shadow: inset 0 0 0 1.25px var(--outline);
  }
  .ph-class-ic {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .ph-class-ic svg.ph-ic {
    width: 17px;
    height: 17px;
  }
  .ph-class-ic[data-tc="rapid"] { color: #497ef7; background: rgb(73 126 247 / 15%); }
  .ph-class-ic[data-tc="blitz"] { color: #00a3ab; background: rgb(0 163 171 / 15%); }
  .ph-class-ic[data-tc="bullet"] { color: #d1a22a; background: rgb(209 162 42 / 15%); }
  .ph-delta {
    min-width: 44px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--surface-high);
    color: var(--text-muted);
    font: 500 12.5px/16px var(--font);
    text-align: center;
  }
  .ph-delta.is-up { background: rgb(123 208 255 / 14%); color: var(--t64-cyan); }
  .ph-delta.is-down { background: rgb(255 180 171 / 14%); color: var(--t64-rose); }
  .ph-delta.is-none { background: transparent; color: var(--outline); }
  /* How games ended: name, share. */
  .ph-method {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  /* ---- Tables (opening lists, games) ---- */
  .dk-table {
    padding: 0 20px;
  }
  .dk-trow {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(80px, 120px) 80px 100px 84px;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 10px 0;
    border-top: 1px solid var(--divider);
    color: var(--text);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  .dk-trow.has-side {
    grid-template-columns: 4px minmax(160px, 1fr) minmax(80px, 120px) 80px 100px 84px;
  }
  .dk-trow[href]:hover {
    background: rgb(37 42 57 / 50%);
  }
  .dk-trow.is-head {
    min-height: 36px;
    padding: 0;
    color: rgb(195 197 216 / 60%);
    font: 600 10.5px/14px var(--font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .dk-trow.is-head > span:nth-last-child(-n + 4):not(:last-child) {
    text-align: center;
  }
  .dk-cell-name {
    font: 500 14.5px/20px var(--font);
    overflow-wrap: anywhere;
  }
  .dk-cell-num {
    text-align: center;
    font: 700 16px/1 var(--headline);
  }
  .dk-cell-num.is-muted { color: rgb(195 197 216 / 60%); }
  .dk-cell-delta {
    justify-self: center;
  }
  .dk-trow .dk-details {
    justify-self: end;
  }
  .dk-trow.is-game {
    grid-template-columns: 44px minmax(140px, 1.6fr) minmax(76px, 120px) minmax(96px, 150px) minmax(60px, 100px) 16px;
    min-height: 52px;
    padding: 8px 0;
  }
  .dk-trow.is-game.is-head {
    min-height: 44px;
    padding: 0;
  }
  .dk-trow.is-game.is-head > span {
    text-align: left;
  }
  .ph-card.dk-table.is-games > .dk-trow.is-head {
    border-top: 0;
  }
  .dk-cell-side {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font: 400 13px/18px var(--font);
  }
  .dk-cell-side .ph-side {
    height: 20px;
  }
  .dk-cell-meta {
    color: var(--text-muted);
    font: 400 13px/18px var(--font);
  }
  .ph-result {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font: 700 12px/1 var(--font);
  }
  .ph-result.is-w { background: rgb(123 208 255 / 14%); color: var(--t64-cyan); }
  .ph-result.is-l { background: rgb(255 180 171 / 14%); color: var(--t64-rose); }
  .ph-result.is-d,
  .ph-result.is-unknown { background: rgb(141 144 162 / 20%); color: var(--text-muted); }
  .ph-game-opp {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
  }
  .ph-game-opp span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 500 14.5px/20px var(--font);
  }
  .ph-game-opp small {
    flex: none;
    color: var(--outline);
    font-size: 12.5px;
  }
  .ph-game-date {
    color: var(--outline);
    font: 400 13px/18px var(--font);
  }
  .ph-more {
    display: grid;
    justify-items: center;
  }

  /* ---- Segmented controls ---- */
  .ph-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: auto;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: var(--t64-surface-lowest);
  }
  .ph-seg button {
    min-height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgb(195 197 216 / 80%);
    font: 500 13.5px/1 var(--font);
    cursor: pointer;
  }
  .ph-seg button.is-on {
    background: var(--surface-high);
    color: var(--text);
  }
  .ph-mini-seg {
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 2px;
    padding: 2px;
    border-radius: 9px;
    background: var(--t64-surface-lowest);
  }
  .ph-mini-seg button {
    min-width: 36px;
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgb(195 197 216 / 80%);
    font: 600 13px/1 var(--font);
    cursor: pointer;
  }
  .ph-mini-seg button.is-on {
    background: var(--surface-highest);
    color: var(--text);
  }

  /* ---- Bar charts ---- */
  .ph-barchart {
    display: grid;
    gap: 8px;
  }
  .ph-legend-row {
    display: flex;
    gap: 16px;
    min-height: 22px;
    color: var(--text-muted);
    font: 500 12px/16px var(--font);
  }
  .ph-legend-row span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .ph-legend-row i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
  }
  .ph-legend-row .is-win { background: #7bd0ff; }
  .ph-legend-row .is-draw { background: #8d90a2; }
  .ph-legend-row .is-loss { background: #ffb4ab; }
  .ph-barchart:not(:has(.ph-legend-row)) {
    padding-top: 22px;
  }
  .ph-chart-frame {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }
  .ph-yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--outline);
    text-align: right;
    font: 400 11px/1 var(--font);
    font-variant-numeric: tabular-nums;
  }
  .ph-plot {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 12px;
    --r: 4px;
  }
  .ph-barchart:has(.ph-wdl-bar) .ph-plot {
    gap: 12px;
    --r: 6px;
  }
  .ph-barchart .ph-plot.is-slotted {
    grid-auto-columns: calc((100% - (var(--slots) - 1) * 12px) / var(--slots));
    justify-content: center;
  }
  .ph-barchart .ph-plot.is-dense {
    gap: 4px;
    --r: 2px;
  }
  .ph-barchart .ph-plot.is-track {
    gap: 4px;
    --r: 3px;
  }
  .ph-bar-btn {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
  }
  .ph-bar-btn.is-dim > :not(.ph-tip) { opacity: 0.5; }
  .ph-bar-btn:focus-visible {
    outline: 2px solid var(--accent-300);
    outline-offset: 2px;
    border-radius: 4px;
  }
  .ph-bar-col {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: var(--h);
  }
  .ph-bar-col i {
    display: block;
    width: 100%;
    max-width: 72px;
    border-radius: var(--r);
    background: rgb(73 126 247 / 32%);
  }
  .ph-plot.is-dense .ph-bar-col i {
    max-width: 48px;
  }
  .ph-bar-col i.is-top { background: var(--accent); }
  .ph-barchart[data-tone="win"] .ph-bar-col i { background: rgb(123 208 255 / 38%); }
  .ph-barchart[data-tone="win"] .ph-bar-col i.is-top { background: #7bd0ff; }
  .ph-barchart[data-tone="draw"] .ph-bar-col i { background: rgb(141 144 162 / 38%); }
  .ph-barchart[data-tone="draw"] .ph-bar-col i.is-top { background: #dee2f6; }
  .ph-barchart[data-tone="loss"] .ph-bar-col i { background: rgb(255 180 171 / 38%); }
  .ph-barchart[data-tone="loss"] .ph-bar-col i.is-top { background: #ffb4ab; }
  .ph-wdl-bar {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 56px;
    height: var(--h);
    overflow: hidden;
    border-radius: var(--r);
  }
  .ph-plot.is-dense .ph-wdl-bar {
    max-width: none;
  }
  .ph-plot.is-track .ph-wdl-bar {
    max-width: 48px;
    background: #1e2333;
    box-shadow: inset 0 0 0 1px rgb(141 144 162 / 18%);
  }
  .ph-wdl-bar.is-on {
    outline: 1px solid rgb(181 196 255 / 60%);
    outline-offset: 2px;
  }
  .ph-wdl-bar i { display: block; }
  .ph-wdl-bar .is-loss { background: rgb(255 180 171 / 72%); }
  .ph-wdl-bar .is-draw { background: rgb(141 144 162 / 80%); }
  .ph-wdl-bar .is-win { flex: 1; background: rgb(123 208 255 / 72%); }
  .ph-wdl-bar.is-empty .is-win { opacity: 0; }
  .ph-bar-btn .ph-bar-label {
    min-height: 16px;
    color: var(--outline);
    white-space: nowrap;
    font: 500 12px/16px var(--font);
  }
  .ph-bar-btn.is-peak .ph-bar-label { color: var(--accent-300); }
  /* The bar's own column sizes to its widest child, so a date wider than the bar would widen it. */
  .ph-plot.is-dated > .ph-bar-btn { grid-template-columns: minmax(0, 1fr); }
  /* Date labels wider than their bar stay inside the chart at both ends. */
  .ph-plot.is-dated > .ph-bar-btn:first-child .ph-bar-label { justify-self: start; }
  .ph-plot.is-dated > .ph-bar-btn:last-child .ph-bar-label { justify-self: end; }
  /* Packed week dates slant, each ending under its own bar, with room below for the slope. */
  .ph-plot.is-slanted {
    padding-bottom: 22px;
  }
  .ph-plot.is-slanted > .ph-bar-btn .ph-bar-label {
    justify-self: center;
    transform: translateX(-50%) rotate(-40deg);
    transform-origin: 100% 50%;
  }
  .ph-barchart:has(.ph-wdl-bar) .ph-bar-btn.is-on .ph-bar-label { color: var(--text); }
  .ph-bar-flag {
    display: block;
    width: 24px;
    height: 16px;
    border-radius: 3px;
    background: var(--surface-high);
    box-shadow: 0 0 0 1px rgb(141 144 162 / 25%);
    object-fit: cover;
  }
  .ph-tip {
    position: absolute;
    z-index: 3;
    bottom: calc(100% + 6px);
    left: 0;
    display: grid;
    gap: 1px;
    padding: 8px 10px;
    border: 1px solid rgb(141 144 162 / 30%);
    border-radius: 10px;
    background: var(--surface-high);
    box-shadow: 0 8px 24px rgb(0 0 0 / 40%);
    text-align: left;
    white-space: nowrap;
    pointer-events: none;
  }
  .ph-tip.is-end {
    right: 0;
    left: auto;
  }
  .ph-tip b {
    color: var(--text);
    font: 600 13px/16px var(--font);
  }
  .ph-tip > span {
    color: var(--text-muted);
    font: 400 12px/16px var(--font);
  }
  .ph-tip.is-wide {
    top: 8px;
    bottom: auto;
    gap: 6px;
    width: 180px;
    padding: 10px 12px;
  }
  .ph-tip-head {
    display: grid;
    gap: 1px;
  }
  .ph-tip-head span {
    white-space: nowrap;
    color: var(--outline);
    font: 400 11.5px/14px var(--font);
  }
  .ph-tip-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-muted);
    font: 500 12px/16px var(--font);
  }
  .ph-tip .ph-tip-row b {
    font: 700 12px/16px var(--font);
  }
  .ph-tip-row b.is-win { color: #7bd0ff; }
  .ph-tip-row b.is-loss { color: #ffb4ab; }
  .ph-xaxis {
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    margin-top: -24px;
    color: var(--outline);
    font: 500 12px/16px var(--font);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
  }
  .ph-xaxis.is-ends {
    display: flex;
    justify-content: space-between;
  }
  .ph-flag {
    display: grid;
    place-items: center;
    width: 28px;
    height: 20px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface-high);
    box-shadow: 0 0 0 1px rgb(141 144 162 / 25%);
  }
  .ph-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .ph-flag svg.ph-globe {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--outline);
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  /* ---- Line chart ---- */
  .ph-page svg.ph-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    user-select: none;
    cursor: crosshair;
  }
  .ph-grid { stroke: var(--divider); stroke-dasharray: 2 3; }
  .ph-axis { fill: var(--outline); font: 500 11px var(--font); }
  .ph-area { fill: rgb(29 99 255 / 14%); }
  .ph-line { fill: none; stroke: #497ef7; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .ph-ref { stroke: var(--text-muted); stroke-opacity: 0.7; stroke-dasharray: 4 3; }
  .ph-ref-label { fill: var(--text-muted); font: 500 11px var(--font); }
  .ph-end { fill: #497ef7; stroke: var(--surface-low); stroke-width: 2; }
  .ph-guide { stroke: var(--accent-300); stroke-dasharray: 3 3; }
  .ph-hover { fill: var(--surface-low); stroke: var(--accent-300); stroke-width: 2; }

  /* ---- Region map ---- */
  .ph-map {
    position: relative;
    height: 340px;
  }
  .ph-map-canvas {
    position: absolute;
    inset: 0;
  }
  .ph-map-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .ph-map-label {
    position: absolute;
    display: grid;
    justify-items: center;
    padding: 3px 8px 4px;
    transform: translate(-50%, -50%);
    border: 1px solid rgb(67 70 86 / 90%);
    border-radius: 8px;
    background: var(--surface-high);
    color: var(--text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .ph-map-label span {
    color: var(--text-muted);
    font: 500 10px/13px var(--font);
  }
  .ph-map-label b {
    font: 700 14px/17px var(--headline);
  }
  .ph-map-label.is-top {
    border-color: rgb(181 196 255 / 60%);
    background: var(--surface-highest);
  }
  .ph-map-label.is-top b {
    color: var(--accent-300);
  }

  /* ---- Common positions ---- */
  .ph-positions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 20px;
  }
  .ph-poscard {
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--divider-soft);
    border-radius: 12px;
    background: var(--surface-low);
  }
  .ph-board-wrap {
    position: relative;
  }
  .ph-board {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgb(67 70 86 / 60%);
  }
  .ph-sq {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-height: 0;
    min-width: 0;
    background: var(--t64-outline-variant);
  }
  .ph-sq.is-dark {
    background: var(--surface-high);
  }
  .ph-sq.is-hl::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(29 99 255 / 28%);
  }
  .ph-sq img {
    position: absolute;
    inset: 6%;
    width: 88%;
    height: 88%;
    object-fit: contain;
  }
  .ph-arrow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .ph-poscard-name {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .ph-poscard-name b {
    font: 600 15px/20px var(--headline);
  }
  .ph-poscard-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0 14px;
    border-bottom: 1px solid var(--divider);
    color: var(--text-muted);
    font: 500 13.5px/20px var(--font);
    font-variant-numeric: tabular-nums;
  }
  .ph-poscard-share b {
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--surface-high);
    color: var(--text);
    font: 700 15px/20px var(--headline);
  }
  .ph-poscard-wdl {
    display: grid;
    gap: 10px;
  }
  .ph-wdl-line {
    display: flex;
    gap: 2px;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
  }
  .ph-wdl-line i { display: block; }
  .ph-wdl-line .is-win { background: #7bd0ff; }
  .ph-wdl-line .is-draw { background: #8d90a2; }
  .ph-wdl-line .is-loss { flex: 1; background: #ffb4ab; }
  .ph-poscard-nums {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    font-variant-numeric: tabular-nums;
  }
  .ph-poscard-nums span {
    display: grid;
    gap: 1px;
    color: var(--outline);
    font: 500 12px/16px var(--font);
  }
  .ph-poscard-nums span:nth-child(2) { justify-items: center; }
  .ph-poscard-nums span:nth-child(3) { justify-items: end; }
  .ph-poscard-nums b {
    font: 700 17px/22px var(--headline);
  }
  .ph-poscard-nums .is-win b { color: #7bd0ff; }
  .ph-poscard-nums .is-draw b { color: var(--text); }
  .ph-poscard-nums .is-loss b { color: #ffb4ab; }

  /* ---- Breakdowns ---- */
  .ph-breakdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    align-items: stretch;
  }
  .ph-breakdown {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
  }
  .ph-breakdown .ph-card-label {
    color: rgb(195 197 216 / 60%);
    font: 600 10.5px/14px var(--font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .ph-brow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px 12px;
    padding: 14px 0;
    border-top: 1px solid var(--divider);
    font-variant-numeric: tabular-nums;
  }
  .ph-brow .ph-row-name {
    text-wrap: pretty;
  }
  .ph-brow .ph-row-value {
    white-space: nowrap;
    font: 700 20px/24px var(--headline);
    letter-spacing: -0.01em;
  }
  .ph-brow-track {
    grid-column: 1 / -1;
    position: relative;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--surface-high);
  }
  .ph-brow-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
  }
  .ph-brow-track i.is-up { background: #7bd0ff; }
  .ph-brow-track i.is-down { background: #ffb4ab; }
  .ph-brow-track i.is-even { background: #8d90a2; }
  .ph-brow-track i.is-share { background: var(--accent-300); }
  .ph-brow-track b {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    border-radius: 1px;
    background: var(--text);
  }
  .ph-brow-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: auto;
    padding: 12px 0 6px;
    border-top: 1px solid var(--divider);
    color: var(--outline);
    font: 500 12px/16px var(--font);
  }
  .ph-brow-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .ph-brow-legend .is-push { margin-left: auto; }
  .ph-brow-legend i {
    width: 12px;
    height: 6px;
    border-radius: 999px;
  }
  .ph-brow-legend i.is-avg {
    width: 2px;
    height: 12px;
    border-radius: 1px;
    background: var(--text);
  }
  .ph-brow-legend i.is-up { background: #7bd0ff; }
  .ph-brow-legend i.is-down { background: #ffb4ab; }

  /* ---- Buttons, text, states ---- */
  .ph-btn {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--t64-on-cobalt);
    font: 600 14px/20px var(--font);
    cursor: pointer;
  }
  .ph-btn.is-quiet {
    background: var(--surface-high);
    color: var(--text);
  }
  .ph-link-btn {
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-300);
    font: 600 14px/20px var(--font);
    text-decoration: none;
    cursor: pointer;
  }
  .ph-link-btn.is-center {
    min-height: 52px;
    padding: 0 16px;
  }
  .ph-caption {
    margin: 0;
    color: var(--text-muted-70);
    font: 500 12.5px/16px var(--font);
  }
  .ph-empty,
  .ph-status {
    margin: 0;
    padding: 16px 0;
    color: var(--text-muted-80);
    font: 400 14px/22px var(--font);
  }
  .ph-empty-block {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 64px 16px;
    border: 1px solid var(--divider-soft);
    border-radius: 12px;
    background: var(--surface-low);
    text-align: center;
  }
  .ph-empty-block p {
    margin: 0;
    color: var(--text-muted-80);
    font: 400 15px/22px var(--font);
  }
  .ph-pending {
    display: grid;
    gap: 8px;
    padding: 4px 0 8px;
  }
  .ph-pending .ph-skel-row {
    margin: 0;
    height: 20px;
  }
  .ph-skel-row {
    display: block;
    height: 44px;
    margin: 8px 0;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--surface-container), var(--surface-high), var(--surface-container));
    background-size: 200% 100%;
    animation: dk-shimmer 1.4s ease-in-out infinite;
  }
  .ph-skel-row.is-short {
    width: 60%;
  }
  .ph-skeleton {
    padding-block: 8px;
  }
  @keyframes dk-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
  }
  .ph-page a:focus-visible,
  .ph-page button:focus-visible {
    outline: 2px solid var(--accent-300);
    outline-offset: 2px;
    border-radius: 8px;
  }


  @media (prefers-reduced-motion: reduce) {
    .ph-skel-row {
      animation: none;
    }
  }
}

/* ---- Settings and Learning Hub (desktop) ---- */
@media (min-width: 761px) {
  .dk-settings-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
  }
  .dk-settings-main {
    flex: 3 1 480px;
    min-width: 0;
    display: grid;
    gap: 12px;
  }
  .ph-account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    border-top: 1px solid var(--divider);
  }
  .ph-account-pick {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }
  .ph-account-logo {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface-high);
  }
  .ph-logo {
    width: 18px;
    height: 18px;
    flex: none;
  }
  .ph-row-name.is-active { font-weight: 600; }
  .ph-row-sub.is-importing { color: var(--accent-300); }
  svg.ph-account-check {
    width: 18px;
    height: 18px;
    color: var(--accent-300);
    stroke-width: 2;
  }
  .ph-account-delete {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--t64-rose);
    font: 600 13px/20px var(--font);
    cursor: pointer;
  }
  .ph-account-delete:hover {
    background: var(--surface-high);
  }
  .ph-note {
    margin: 0 4px;
    color: rgb(195 197 216 / 60%);
    font: 400 12.5px/18px var(--font);
    text-wrap: pretty;
  }
  .ph-note.is-center {
    margin: -6px 0 0;
    color: var(--outline);
    text-align: center;
  }
  .dk-add {
    flex: 2 1 320px;
    gap: 18px;
    padding: 20px;
  }
  .dk-field {
    display: grid;
    gap: 6px;
  }
  .dk-field .dk-eyebrow {
    color: rgb(195 197 216 / 70%);
  }
  .dk-site {
    grid-auto-columns: minmax(0, 1fr);
  }
  .dk-site button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    font-size: 14px;
  }
  .dk-site .ph-logo {
    width: 16px;
    height: 16px;
  }
  .ph-input {
    width: 100%;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-bottom: 2px solid var(--t64-outline-variant);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: 400 15px/24px var(--font);
    caret-color: var(--accent);
    outline: none;
  }
  .ph-input:focus,
  .ph-input:focus-visible {
    border-bottom-color: var(--accent);
    outline: none;
    box-shadow: none;
  }
  .ph-input.is-error {
    border-bottom-color: var(--t64-rose);
  }
  .ph-error {
    margin: -8px 0 0;
    color: var(--t64-rose);
    font: 500 12.5px/18px var(--font);
  }
  .dk-add .ph-btn {
    min-height: 44px;
    font-size: 14.5px;
  }
  .dk-add .ph-btn:hover {
    background: #0051e1;
  }

  /* Learning Hub */
  .tp-desk {
    display: grid;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px 56px;
  }
  .tp-d-title {
    margin: 0;
    font: 700 32px/40px var(--headline);
    letter-spacing: -0.025em;
  }
  .tp-d-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    overflow: hidden;
    border: 1px solid rgb(67 70 86 / 45%);
    border-radius: 16px;
    background: var(--surface-low);
  }
  .tp-d-main {
    display: grid;
    gap: 28px;
    align-content: center;
    padding: 48px;
  }
  .tp-desk .tp-promise {
    margin: 0;
    font: 700 38px/46px var(--headline);
    letter-spacing: -0.03em;
    text-wrap: pretty;
  }
  .tp-desk .tp-promise em {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
    text-decoration-skip-ink: none;
  }
  .tp-desk .tp-promise b {
    color: var(--accent-300);
  }
  .tp-d-actions {
    display: grid;
    gap: 12px;
    max-width: 440px;
  }
  .tp-desk .tp-actions {
    display: grid;
    gap: 12px;
  }
  .tp-desk .tp-cta {
    min-height: 56px;
    padding: 0 40px;
    border-radius: 12px;
    font: 600 17px/22px var(--font);
  }
  .tp-desk .tp-m-status {
    margin: 0;
    color: var(--text);
    text-align: center;
    font: 500 14px/20px var(--font);
  }
  .tp-desk .tp-m-card {
    display: grid;
    gap: 12px;
    justify-items: start;
  }
  .tp-desk .tp-joined-title {
    margin: 0;
    font: 700 20px/28px var(--headline);
  }
  .tp-desk .tp-m-invite {
    margin: -8px 0 0;
    color: var(--text-muted);
    font: 400 14px/21px var(--font);
  }
  .tp-desk .tp-copy {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
  }
  .tp-desk .tp-m-count {
    margin: 0;
    color: var(--outline);
    font: 500 13px/18px var(--font);
  }
  .tp-d-side {
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 32px 40px;
    border-left: 1px solid rgb(67 70 86 / 45%);
  }
  .tp-d-eyebrow {
    padding-bottom: 8px;
    color: rgb(195 197 216 / 60%);
    font: 600 10.5px/14px var(--font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .tp-desk .tp-features {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .tp-desk .tp-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    color: var(--text);
    font: 600 15.5px/20px var(--headline);
  }
  .tp-desk .tp-feature + .tp-feature {
    border-top: 1px solid var(--divider);
  }
  .tp-desk .tp-f-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgb(29 99 255 / 14%);
    color: var(--accent-300);
  }
  .tp-desk .tp-f-svg {
    width: 18px;
    height: 18px;
  }
  .tp-desk .tp-feature.is-more {
    color: var(--text-muted);
    font-weight: 500;
  }
  .tp-desk .tp-feature.is-more .tp-f-ic {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgb(67 70 86 / 90%);
    color: var(--text-muted);
  }
}

/* The page header replaces the empty top bar (the rail always sits beside the page here). */
@media (min-width: 761px) {
  .shell:has(> main > .ph-page) > .topbar {
    display: none;
  }
}
