/* Subscriber dashboard, on top of /style.css. Same look as the landing page:
   a black band with the flame glow holds your team and each tab's main tool; white sections below with
   big headings; dark cards for the moments that matter (the finder and the grade). */

body.dash { background: var(--sheet); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn { text-decoration: none; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #e9e9e6; }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.line:hover { background: var(--paper); }
select, input[type="number"] { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 42px; }
input[type="number"] { width: 5.5em; }

/* ---------------------------------------------------------------- the black band */
.app-band { position: relative; padding-bottom: 56px;
  background: radial-gradient(70% 90% at 92% -20%, rgba(254, 81, 1, 0.42) 0%, rgba(254, 81, 1, 0.08) 45%, transparent 70%), var(--black); }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); }
.seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--soft-dark); transition: background 0.2s, color 0.2s; white-space: nowrap; }
.seg a:hover { color: #fff; }
.seg a[aria-current="page"] { background: #fff; color: var(--ink); }

.dash-note { padding: 64px 0 24px; color: var(--soft-dark); font-size: 17px; }
.dash-gate { padding: 56px 0 16px; max-width: 40em; }
.dash-gate h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 600; font-stretch: 90%; line-height: 0.95; letter-spacing: -0.045em; }
.dash-gate p { margin-top: 18px; font-size: 18px; color: var(--soft-dark); }
.dash-gate .btn { margin-top: 6px; }

.team-head { padding: 36px 0 40px; }
.th-league { font-size: 16px; color: var(--soft-dark); }
.th-name { margin-top: 10px; max-width: 14em; font-size: clamp(48px, 7vw, 104px); font-weight: 600; font-stretch: 90%; line-height: 0.92; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.th-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; border-top: 1px solid var(--line-dark); }
.th-stats div { padding: 18px 20px 0 0; min-width: 0; }
.th-stats div + div { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.th-stats dt { font-size: 14px; color: var(--soft-dark); }
.th-stats dd { margin: 6px 0 0; font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; overflow-wrap: anywhere; }
.th-stats dd small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--soft-dark); }
.th-stats dd.flame { color: var(--flame); }

/* dark cards: same as the landing page's trade grader */
.dark-card { position: relative; padding: 30px; border-radius: 32px; color: #fff; background: #0d0d0d; box-shadow: 0 0 0 1px var(--line-dark), 0 40px 80px -50px rgba(0, 0, 0, 0.55); }
.dark-card h2, .dc-h { display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.dc-sub { margin-top: 8px; max-width: 42em; font-size: 16px; line-height: 1.5; color: var(--soft-dark); }

/* ---------------------------------------------------------------- finder */
.finder-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }
.finder-head > div { flex: 1 1 380px; }
.finder-head .btn { min-height: 56px; padding: 0 30px; font-size: 17px; }
.finder-progress { margin-top: 22px; }
.finder-progress .bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.finder-progress .bar span { display: block; height: 100%; width: 0; background: var(--flame); border-radius: 999px; transition: width 0.2s; }
.finder-progress p { margin-top: 10px; font-size: 14px; color: var(--soft-dark); }
.finds { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.finds:empty { display: none; }
.find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: start; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); }
.find .with { font-size: 14px; color: var(--soft-dark); }
.find .swap { display: grid; gap: 10px; margin-top: 10px; }
.find .swap .arrow { display: none; }
.find .swap small { display: block; font-size: 12.5px; color: var(--soft-dark); }
.find .swap b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.find .swap > div:last-child b { color: #fff; }
.find .grades-mini { display: flex; gap: 6px; }
.mini { display: grid; place-items: center; min-width: 58px; padding: 8px 6px 6px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, 0.1); }
.mini b { font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.mini small { margin-top: 3px; font-size: 11.5px; color: var(--soft-dark); }
.mini.A b, .mini.B b { color: var(--flame); }
.mini.D b { color: #ff6a5c; }
.find .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--soft-dark); }
.find .actions .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; background: #fff; color: var(--ink); }
.finds .none { grid-column: 1 / -1; padding: 6px 0; color: var(--soft-dark); }
.find.pro-gate { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: rgba(254, 81, 1, 0.12); box-shadow: inset 0 0 0 1px rgba(254, 81, 1, 0.45); }
.find.pro-gate b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.find.pro-gate p { margin-top: 4px; font-size: 15px; color: #e2e2e0; max-width: 44em; }
.find.pro-gate .actions { grid-column: auto; border: 0; padding: 0; }
.find.pro-gate .actions .btn { background: var(--flame); }

/* ---------------------------------------------------------------- player search, in the band */
.searchcard .search { position: relative; margin-top: 22px; }
#player-search { width: 100%; min-height: 64px; padding: 0 26px; font-size: 19px; background: #fff; border-color: #fff; -webkit-appearance: none; appearance: none; }
#player-search::-webkit-search-decoration { -webkit-appearance: none; }
.results { position: absolute; z-index: 5; left: 0; right: 0; list-style: none; margin: 8px 0 0; padding: 6px; background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name num" "meta num"; align-items: center; column-gap: 12px; padding: 12px 14px; border-radius: 16px; cursor: pointer; }
.results li[aria-selected="true"], .results li:hover { background: var(--marker); }
.results .r-name { grid-area: name; font-weight: 600; font-size: 17px; }
.results .r-meta { grid-area: meta; font-size: 13.5px; color: var(--soft); }
.results .r-num { grid-area: num; font-weight: 700; font-size: 17px; }
.results li.none { display: block; color: var(--soft); cursor: default; }
.results li.none:hover { background: none; }

/* ---------------------------------------------------------------- account plan, in the band */
.acct-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.acct-plan b { display: block; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.acct-plan span { display: block; margin-top: 6px; font-size: 15px; color: var(--soft-dark); max-width: 40em; }
.acct-plan .btn:not(.go) { background: #fff; color: var(--ink); }

/* ---------------------------------------------------------------- white sections */
.dash-body { padding-bottom: 96px; }
.sec { padding: 72px 0 0; }
.sec + .sec { margin-top: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.sec-head p { flex: 0 1 34em; font-size: 17px; line-height: 1.5; color: var(--soft); }
.card { border: 1px solid var(--line); border-radius: 28px; padding: 28px; background: #fff; }
.card + .card { margin-top: 16px; }
.card-h { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.card-sub { margin-top: 6px; font-size: 15px; color: var(--soft); max-width: 46em; }
.card-sub:empty { display: none; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 28px; min-width: 0; }
.partner .p-rec { font-size: 14px; color: var(--soft); }
.partner h3 { margin-top: -8px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.partner dl { margin: 0; display: grid; gap: 8px; }
.partner dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 15px; }
.partner dt { color: var(--soft); }
.partner dd { margin: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 2px 10px; border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 700; }
.chips.need span { background: var(--marker); color: #8a2c00; }
.partner .btn { margin-top: auto; align-self: flex-start; white-space: normal; text-align: left; line-height: 1.25; min-height: 46px; padding: 8px 20px; }

/* builder */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side { border: 1px solid var(--line); border-radius: 28px; padding: 22px; min-width: 0; }
.side-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 46px; margin-bottom: 14px; }
.side-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.team-label { font-size: 15px; color: var(--soft); }
.side select { flex: 1 1 220px; max-width: 320px; font-weight: 600; }
.roster { max-height: 520px; overflow: auto; margin: 0 -8px; }
.roster label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 12px; border-radius: 16px; cursor: pointer; font-size: 16px; }
.roster label + label { margin-top: 2px; }
.roster label:hover { background: var(--paper); }
.roster label:has(input:checked) { background: var(--ink); color: #fff; }
.roster label:has(input:checked) .meta { color: var(--soft-dark); }
.roster input { width: 20px; height: 20px; margin: 0; accent-color: var(--flame); }
.roster label > span { min-width: 0; overflow-wrap: anywhere; }
.roster .meta { color: var(--soft); font-size: 13px; }
.roster .ppg { font-weight: 700; font-size: 17px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.tag.out { background: #fde9e5; color: #7c1d10; }
.tag.dtd { background: #fbefd5; color: #6b4600; }
.tag.ir { background: #ececea; color: var(--soft); }
.go-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; padding: 12px 12px 12px 26px;
  border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6); }
.go-row p { font-size: 15px; color: var(--soft-dark); min-width: 0; }
.go-row .btn { flex: none; min-height: 52px; padding: 0 28px; }

/* the grade */
.result { scroll-margin-top: 16px; }
.verdict-card { padding: 34px; background: radial-gradient(90% 80% at 90% -20%, rgba(254, 81, 1, 0.4) 0%, rgba(254, 81, 1, 0.08) 45%, transparent 70%), #0d0d0d; }
.grades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grade-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); min-width: 0; }
.grade-top { display: flex; align-items: flex-end; gap: 18px; }
.grade-card .letter { flex: none; position: relative; font-size: 128px; font-weight: 600; font-stretch: 85%; line-height: 0.8; letter-spacing: -0.05em; color: #fff; }
.grade-card .letter .mod { font-size: 0.5em; vertical-align: 0.62em; margin-left: 0.04em; }
.grade-card .letter.A, .grade-card .letter.B { color: var(--flame); }
.grade-card .letter.D { color: #ff6a5c; }
#grade-theirs .letter.A, #grade-theirs .letter.B { color: #fff; }
.grade-card .who-side { font-size: 15px; color: var(--soft-dark); }
.grade-card .words { margin-top: 2px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.grade-card .big-num { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.grade-card .big-num span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--soft-dark); }
.grade-card .big-num.up { color: #4fd69c; }
.grade-card .big-num.down { color: #ff6a5c; }
.gauge { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.gauge .fill { position: absolute; top: 0; bottom: 0; }
.gauge .fill.pos { background: #4fd69c; border-radius: 0 999px 999px 0; }
.gauge .fill.neg { background: #ff6a5c; border-radius: 999px 0 0 999px; }
.gauge .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; }
.gauge-labels { display: flex; justify-content: space-between; align-items: baseline; margin-top: -6px; font-size: 12.5px; color: var(--soft-dark); }
.gauge-labels b { font-size: 15px; color: #fff; }
.grade-card .num, .grade-card .moves { font-size: 14.5px; color: #e2e2e0; }
.vc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.fair { flex: 1 1 360px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--soft-dark); }

.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.result-grid .card + .card { margin-top: 0; }
.result-grid + .card { margin-top: 16px; }
.verdict { margin-top: 10px; font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.verdict.now, .verdict.rush { color: var(--up); }
.verdict.wait { color: #9a5b00; }
.reasons { list-style: none; padding: 0; margin: 16px 0 0; }
.reasons li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.reasons li::before { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.reasons li.now::before { content: "Now"; background: var(--flame); color: #000; }
.reasons li.wait::before { content: "Wait"; background: var(--ink); color: #fff; }
.reasons li.neutral::before { content: "Even"; background: var(--paper); color: var(--soft); }

/* tables */
.table-wrap, .cal-wrap { overflow-x: auto; margin-top: 14px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
th { font-size: 13px; color: var(--soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.factors td.win { font-weight: 700; color: var(--ink); box-shadow: inset 3px 0 0 var(--flame); background: #fff7f2; }
.cal td.wk { text-align: center; min-width: 76px; font-weight: 700; border: 3px solid #fff; border-radius: 14px; }
.cal td.wk small { display: block; font-weight: 500; font-size: 11px; color: inherit; opacity: 0.8; }
.cal .side-tag { font-size: 12px; color: var(--soft); }

/* ---------------------------------------------------------------- players */
.empty-sec p { max-width: 36em; font-size: 19px; color: var(--soft); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 15px/1 var(--body); color: var(--ink); cursor: pointer; }
.quick button:hover { background: var(--paper); }
.quick button span { margin-left: 8px; font-weight: 400; color: var(--soft); }
.player-head { padding: 64px 0 0; }
.player-head .ph-team { font-size: 16px; color: var(--soft); }
.player-head h1 { margin-top: 8px; font-size: clamp(44px, 6vw, 88px); font-weight: 600; font-stretch: 90%; line-height: 0.92; letter-spacing: -0.045em; }
.player-head h1 .tag { font-size: 14px; vertical-align: 0.9em; }
.ph-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 0; border-top: 1px solid var(--line); }
.ph-stats div { padding: 16px 20px 0 0; }
.ph-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.ph-stats dt { font-size: 14px; color: var(--soft); }
.ph-stats dd { margin: 4px 0 0; font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.controls { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: -8px 0 18px; }
.controls label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.chart { margin: 0 0 6px; }
.chart svg { display: block; width: 100%; max-width: 100%; height: auto; }
.chart-key { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); margin-top: 8px; }
.chart-key .dash { flex: none; width: 26px; border-top: 3px dashed var(--flame); }
.splits small.dates { color: var(--soft); font-size: 12.5px; }
.splits th, .splits td { white-space: nowrap; }
.splits td:first-child { white-space: normal; }
.heat td.cell { text-align: center; font-weight: 700; min-width: 56px; border: 2px solid #fff; border-radius: 10px; }
#vs-card .show-m { display: none; }
.vs-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.vs-top > div { padding-right: 20px; }
.vs-top > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.vs-top dt { font-size: 14px; color: var(--soft); }
.vs-top dd { margin: 4px 0 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.vs-top dd small { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--soft); }
.vs-top dd.up { color: var(--up); } .vs-top dd.down { color: var(--down); }
.vs-note { margin-top: 16px; font-size: 15px; color: var(--soft); }
.vs-log-h { margin-top: 28px; font-size: 19px; }
.vs-log td.fp { text-align: center; font-weight: 700; border: 2px solid #fff; border-radius: 10px; min-width: 56px; }
.vs-log .po { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: #fff; vertical-align: 1px; }
.vs-rank tbody tr { cursor: pointer; }
.vs-rank tbody tr:hover td { background: var(--paper); }
.vs-rank tbody tr[aria-current="true"] td { background: #fff7f2; box-shadow: inset 0 -1px 0 var(--line); }
.vs-rank tbody tr[aria-current="true"] td:first-child { box-shadow: inset 3px 0 0 var(--flame); }
.vs-rank tr.thin td { color: var(--soft); }
.vs-rank button { all: unset; cursor: pointer; font-weight: 600; }
.vs-rank button:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 4px; }
#vs-more button { margin-top: 12px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 15px/1 var(--body); color: var(--ink); cursor: pointer; }
#vs-more button:hover { background: var(--paper); }
@media (max-width: 760px) {
  .vs-top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .vs-top > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .vs-top dd { font-size: 28px; }
  .vs-log th, .vs-log td, #vs-stats th, #vs-stats td, .vs-rank th, .vs-rank td { padding: 9px 6px; font-size: 14px; }
  #vs-card .hide-m { display: none; }
  #vs-card .show-m { display: inline; }
}
.absence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.absence:first-child { border-top: 0; padding-top: 0; }
.absence h3 { grid-column: 1 / -1; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.absence .why { grid-column: 1 / -1; color: var(--soft); font-size: 15px; }
.absence .cmp { font-size: 14.5px; color: var(--soft); }
.absence .cmp b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.absence .cmp b.up { color: var(--up); } .absence .cmp b.down { color: var(--down); }
.absence svg { grid-column: 1 / -1; width: 100%; height: 60px; }

/* ---------------------------------------------------------------- account */
.acct-switches { display: grid; gap: 20px; }
.switch { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #d6d6d2; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.switch input:checked + .track { background: var(--flame); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 3px solid var(--flame); outline-offset: 2px; }
.switch input:disabled + .track { opacity: 0.45; }
.switch b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.switch small { display: block; font-size: 14.5px; color: var(--soft); }
.saved { min-height: 1.4em; font-size: 14px; color: var(--up); }
.acct-stop { margin-top: 18px; font-size: 14px; }
.acct-stop a { color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  .switch .track, .switch .track::after, .seg a, .finder-progress .bar span { transition: none; }
}

/* ---------------------------------------------------------------- tablets */
@media (max-width: 980px) {
  .partners { grid-template-columns: minmax(0, 1fr); }
  .finds, .result-grid { grid-template-columns: minmax(0, 1fr); }
  .th-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .th-stats div:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--line-dark); }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  .app-band { padding-bottom: 28px; }
  .dash-top { flex-wrap: wrap; padding: 18px 0 10px; }
  .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .seg a { justify-content: center; padding: 0 6px; }
  .team-head { padding: 22px 0 26px; }
  .th-name { font-size: 46px; }
  .th-stats { margin-top: 24px; }
  .th-stats div { padding: 14px 12px 0 0; }
  .th-stats div + div { padding-left: 14px; }
  .th-stats div:nth-child(3) { padding-left: 0; }
  .th-stats dd { font-size: 26px; }
  .th-stats dd small { font-size: 13px; }
  .dark-card { padding: 20px; border-radius: 26px; }
  .finder-head .btn { width: 100%; }
  .find { padding: 16px; }
  .find.pro-gate { grid-template-columns: minmax(0, 1fr); }
  .find.pro-gate .actions .btn { width: 100%; }
  #player-search { min-height: 56px; font-size: 17px; padding: 0 20px; }
  .sec { padding-top: 48px; }
  .sec-head { margin-bottom: 20px; }
  .sec-head h2 { font-size: 34px; }
  .sec-head p { font-size: 16px; }
  .card, .partner, .side { padding: 18px; border-radius: 22px; }
  .partner h3 { font-size: 23px; }
  .sides { grid-template-columns: minmax(0, 1fr); }
  .side-head select { max-width: none; }
  .roster { max-height: 400px; }
  .go-row { border-radius: 24px; padding: 12px 12px 12px 18px; }
  .go-row p { font-size: 13.5px; }
  .go-row .btn { min-height: 46px; padding: 0 18px; }
  .verdict-card { padding: 16px; }
  .grades { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .grade-card { padding: 18px; }
  .grade-card .letter { font-size: 96px; }
  .fair { font-size: 17px; }
  .reasons li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .player-head { padding-top: 40px; }
  .ph-stats dd { font-size: 26px; }
  .ph-stats div { padding-right: 10px; }
  .ph-stats div + div { padding-left: 12px; }
  .absence { grid-template-columns: minmax(0, 1fr); }
}
.app-band { overflow: visible; }
.app-band .dark-card { box-shadow: 0 0 0 1px var(--line-dark); }
#player.no-history .controls, #player.no-history .card + .card, #player.no-history .sec + .sec, #player.no-history .table-wrap { display: none; }
#player.no-history .msg { margin: 0; }

/* ---------------------------------------------------------------- this week: live chance to win */
.lc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.lc-refresh { min-height: 38px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: var(--soft-dark); font: 500 14px/1 var(--body); cursor: pointer; }
.lc-refresh:hover { color: #fff; border-color: #555; }
.lc-main { margin-top: 18px; }
.lc-pct { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.lc-pct b { font-size: clamp(88px, 12vw, 168px); font-weight: 600; font-stretch: 85%; line-height: 0.85; letter-spacing: -0.05em; }
.lc-pct[data-tone="good"] b { color: var(--flame); }
.lc-pct[data-tone="bad"] b { color: #ff6a5c; }
.lc-pct span { font-size: 19px; font-weight: 600; color: #e2e2e0; }
.lc-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 26px; }
.lc-side { padding: 18px 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); min-width: 0; }
.lc-side.me { background: #fff; color: var(--ink); }
.lc-side small { display: block; font-size: 14px; color: var(--soft-dark); overflow-wrap: anywhere; }
.lc-side.me small, .lc-side.me span { color: var(--soft); }
.lc-side b { display: block; margin-top: 4px; font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.lc-side span { display: block; margin-top: 6px; font-size: 14px; color: var(--soft-dark); }
.lc-v { font-size: 15px; color: var(--soft-dark); }
.lc-bar { height: 10px; margin-top: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.lc-bar span { display: block; height: 100%; background: var(--flame); border-radius: 999px; transition: width 0.5s ease; }
.lc-main .dc-sub { margin-top: 14px; }
#wp-days tr.now-row td { background: #fff7f2; }
#wp-days td small { display: block; font-size: 12px; }
.today-list { list-style: none; margin: 12px 0 0; padding: 0; }
.today-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.today-list li:first-child { border-top: 0; }
.today-list li small { color: var(--soft); font-size: 12.5px; }
.today-list li .num { flex: none; font-weight: 700; }
.today-list li.tocome .num { color: var(--soft); font-weight: 500; }
.today-list li.bench { color: #7c1d10; }
.today-list li.bench .num { color: var(--down); font-weight: 700; }
.wp-method { margin-top: 18px; }
td.strong { font-weight: 700; }
@media (max-width: 760px) {
  .lc-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .lc-v { display: none; }
  .lc-side { padding: 14px; border-radius: var(--r-md); }
  .lc-side b { font-size: 32px; }
  .lc-side span { font-size: 12.5px; }
  .lc-pct b { font-size: 96px; }
  .lc-pct span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .lc-bar span { transition: none; } }
@media (max-width: 760px) {
  .seg:has(> a:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seg:has(> a:nth-child(4)) a { font-size: 14px; padding: 0 2px; }
}

/* account: signing in */
.signin-card { max-width: 640px; }
.pw-form { display: grid; gap: 14px; margin-top: 16px; }
.pw-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.pw-form input { width: 100%; background: #fff; }
.pw-form .btn { justify-self: start; margin-top: 4px; }
.saved.bad { color: var(--down); }
.signin-card .saved { margin-top: 12px; }
.other-teams { list-style: none; margin: 12px 0 0; padding: 0; }
.other-teams li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.other-teams li:first-child { border-top: 0; }
.other-teams small { color: var(--soft); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.signout-form { margin-top: 18px; }
.dash-gate .btn + .btn { margin-left: 8px; }
.top-signin { color: var(--soft-dark); text-decoration: none; font-size: 14px; font-weight: 600; margin-left: auto; margin-right: 14px; }
.top-signin:hover { color: #fff; }
@media (max-width: 760px) { .top-signin { margin: 0; order: -1; position: absolute; right: 16px; top: 22px; } .dash-top { position: relative; } }
.top-signin { order: 1; }
.dash-top .seg { order: 2; }

/* account: private league connection (reuses the sign-up panel's step styles from /style.css) */
.espn-card { max-width: 760px; }
.espn-card.expired { border-color: #f3b6ad; background: #fffaf9; }
.espn-card .pv-steps { margin-top: 16px; }
.espn-card .btn.line.small { margin-top: 16px; }

/* weekly wrap tracker, under the win chance */
.wrap-track { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.wt-h { font-size: 15.5px; color: #e2e2e0; line-height: 1.5; }
.wt-h b { color: #fff; }
.wt-games { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wt-g { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.wt-g.post { background: var(--flame); }
.wt-g.in { background: transparent; box-shadow: inset 0 0 0 3px var(--flame); }
.wt-line { margin-top: 10px; font-size: 14.5px; color: var(--soft-dark); line-height: 1.5; }
.wt-line b { color: #fff; }
@media (prefers-reduced-motion: no-preference) { .wt-g.in { animation: wt-pulse 1.6s ease-in-out infinite; } }
@keyframes wt-pulse { 50% { opacity: 0.45; } }

.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* phones: the two-sides comparison reads as label, then the two values side by side */
@media (max-width: 560px) {
  .factors thead tr, .factors tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .factors thead th:first-child { display: none; }
  .factors tbody td:first-child { grid-column: 1 / -1; padding-bottom: 2px; border-bottom: 0; font-size: 13px; color: var(--soft); }
  .factors td.win { box-shadow: inset 3px 0 0 var(--flame); }
}

/* will they say yes? (draft capital + how the trade treats them) */
.accept { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.06); }
.acc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.acc-q { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.acc-reasons { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.acc-reasons li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.45; color: #e2e2e0; }
.acc-reasons li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--soft-dark); }
.acc-reasons li.good::before { background: var(--up-dark); }
.acc-reasons li.bad::before { background: var(--down-dark); }
.accept-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 11px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; white-space: nowrap; }
.accept-pill.likely { background: var(--up-dark); color: #052e1c; }
.accept-pill.possible { background: var(--warn-dark); color: #2e1d00; }
.accept-pill.hard { background: #ff9d6b; color: #2a0f00; }
.accept-pill.unlikely { background: var(--down-dark); color: #2b0606; }
.find .actions .accept-pill { margin-right: 6px; }
.tag.draft { background: var(--ink); color: #fff; }
.tag.draft.d2 { background: var(--paper-2); color: var(--ink); }
.roster label:has(input:checked) .tag.draft { background: #fff; color: var(--ink); }

.ph-stats dd { overflow-wrap: anywhere; }
@media (max-width: 760px) { .ph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } .ph-stats div:nth-child(3) { padding-left: 0; border-left: 0; } }

/* first sign-in: create a password before the dashboard opens */
body.rp-open { overflow: hidden; }
.rp-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rp-card { width: min(100%, 460px); display: grid; gap: 8px; padding: var(--s-7); border-radius: var(--r-xl); background: #fff; color: var(--ink); box-shadow: var(--sh-pop); }
.rp-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--flame) var(--logo) center / 62% no-repeat; filter: none; }
.rp-mark { background: #000 var(--logo) center / 60% no-repeat; }
.rp-card h2 { margin-top: 6px; font-size: 28px; font-weight: 650; letter-spacing: -0.035em; }
.rp-sub { color: var(--soft); line-height: 1.5; margin-bottom: 6px; overflow-wrap: anywhere; }
.rp-sub b { color: var(--ink); }
.rp-card label { margin-top: 6px; font-weight: 600; font-size: 15px; }
.rp-card input { width: 100%; background: #fff; }
.rp-hint { font-size: 13.5px; color: var(--soft); }
.rp-card .saved:empty { display: none; }
.rp-card .btn { margin-top: 8px; width: 100%; }
.rp-foot { margin-top: 4px; text-align: center; font-size: 14px; color: var(--soft); }
.rp-link { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; min-height: var(--tap); }
@media (prefers-reduced-motion: no-preference) { .rp-card { animation: rp-in 0.32s var(--ease); } }
@keyframes rp-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* first visit straight after sign-up: the league is still being built */
.preparing .spin { width: 28px; height: 28px; border-width: 3px; color: var(--flame); margin-bottom: 22px; display: block; }
.prep-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.prep-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--soft-dark); }
.prep-steps li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #4a4a4a; }
.prep-steps li.is-done { color: #fff; } .prep-steps li.is-done::before { background: var(--flame); border-color: var(--flame); }
.prep-steps li.is-now { color: #fff; } .prep-steps li.is-now::before { border-color: var(--flame); animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.35; } }

/* first visit: what's here */
.welcome { margin: 0 0 22px; padding: 18px 20px 20px; border-radius: var(--r-xl); background: var(--panel-2); box-shadow: 0 0 0 1px var(--line-dark); }
.wl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wl-top h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.wl-x { width: var(--tap); height: var(--tap); margin: -8px -8px -8px 0; border: 0; border-radius: 50%; background: transparent; color: var(--soft-dark); font-size: 24px; cursor: pointer; }
.wl-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.wl-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wl-list a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; transition: background var(--dur) var(--ease); }
.wl-list a:hover { background: rgba(255, 255, 255, 0.1); }
.wl-list b { font-size: 16px; color: #fff; text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.wl-list span { font-size: 14px; line-height: 1.45; color: var(--soft-dark); }
@media (max-width: 760px) { .wl-list { grid-template-columns: minmax(0, 1fr); } }

/* compare two players */
.compare { margin-top: 28px; }
.cmp-start { display: grid; gap: 10px; max-width: 560px; }
.cmp-start label { font-size: 15px; font-weight: 600; }
.cmp-start .search { position: relative; }
#cmp-search { width: 100%; min-height: 56px; padding: 0 22px; font-size: 17px; border-radius: 999px; border: 1px solid var(--line); background: #fff; -webkit-appearance: none; appearance: none; }
#cmp-search:focus { border-color: var(--ink); outline: 2px solid var(--flame); outline-offset: 2px; }
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp-table th { font-size: 15px; font-weight: 700; vertical-align: bottom; }
.cmp-table th.num, .cmp-table td.num { text-align: right; width: 32%; }
.cmp-table th a { color: inherit; }
.cmp-table td.cmp-l { color: var(--soft); }
.cmp-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cmp-table td.win { color: var(--up); }
.cmp-table td.win::after { content: " ▲" / ""; font-size: 11px; vertical-align: 0.1em; }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-act { margin-top: 16px; }
.cmp-act .btn { white-space: normal; height: auto; min-height: var(--tap, 44px); padding-top: 12px; padding-bottom: 12px; line-height: 1.25; text-align: center; }
@media (max-width: 560px) { .cmp-table { font-size: 14px; } .cmp-table th, .cmp-table td { padding: 10px 6px; } .cmp-act .btn { width: 100%; } }

/* how the league trades: the tendency tracker on the Trade tab, and the strip under "Will they say yes?" */
.habits-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.habits-table th, .habits-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.habits-table th { font-size: 13px; font-weight: 600; color: var(--soft); }
.habits-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.habit-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.hchip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.hchip.warm { background: #fff1ea; border-color: #ffd4bf; color: #8a2d00; }
.hchip.cool { background: #eef2f6; border-color: #d6dee8; color: #2c3e55; }
.habits-table .show-s { display: none; }
.recent-trades h3 { margin-top: 26px; font-size: 18px; font-weight: 600; }
.recent-trades ul { list-style: none; margin: 10px 0 0; padding: 0; }
.recent-trades li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.rt-date { color: var(--soft); font-variant-numeric: tabular-nums; }
.acc-habits { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.acc-hh { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.acc-habits .hchip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.acc-habits .hchip.warm { background: rgba(254, 81, 1, 0.18); border-color: rgba(254, 81, 1, 0.45); color: #ffd2bd; }
.acc-hs { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #c9c9c9; }
@media (max-width: 640px) {
  .habits-table .hide-s { display: none; }
  .habits-table .show-s { display: flex; margin-top: 6px; }
  .habits-table th, .habits-table td { padding: 10px 6px; }
}
.habits-table .hchip { white-space: nowrap; }
.recent-trades li.pending .rt-wait { display: block; margin-top: 2px; font-size: 13.5px; color: var(--soft); }

/* trade history: your trades this season and how each is going */
.th-list { display: grid; gap: 16px; }
.th-card { border: 1px solid var(--line); border-radius: 28px; padding: 24px; background: #fff; }
.th-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.th-when { font-size: 14px; color: var(--soft); }
.th-head h3 { margin-top: 4px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.th-pill { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--paper); color: var(--ink); }
.th-pill.winning { background: var(--up-soft); color: var(--up); }
.th-pill.losing { background: var(--down-soft); color: var(--down); }
.th-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.th-sh { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px; gap: 8px; font-size: 13px; font-weight: 600; color: var(--soft); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.th-col { text-align: right; }
.th-side ul { list-style: none; margin: 0; padding: 0; }
.th-side li { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.th-p { font-weight: 600; font-size: 15px; line-height: 1.3; min-width: 0; }
.th-p a { color: inherit; text-decoration: none; }
.th-p a:hover { text-decoration: underline; }
.th-p small { display: block; font-weight: 400; font-size: 12.5px; color: var(--soft); }
.th-n { text-align: right; font-variant-numeric: tabular-nums; }
.th-n b { display: block; font-size: 16px; }
.th-n small { font-size: 12px; color: var(--soft); }
.th-bar { display: flex; height: 8px; margin-top: 18px; border-radius: 99px; background: var(--paper-2, #ececea); overflow: hidden; }
.th-bar-got { background: var(--flame); border-radius: 99px 0 0 99px; }
.th-bar-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--soft); }
.th-why { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.th-note { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.th-empty { color: var(--soft); }
.th-card.wait { background: var(--paper); }
@media (max-width: 720px) {
  .th-card { padding: 20px; border-radius: 22px; }
  .th-sides { grid-template-columns: 1fr; gap: 18px; }
  .th-sh, .th-side li { grid-template-columns: minmax(0, 1fr) 64px 64px; }
  .th-head h3 { font-size: 18px; }
}

/* ---------------------------------------------------------------- sign in right on the dashboard's signed-out screen */
.gate-form { display: grid; gap: 14px; margin-top: 28px; max-width: 420px; }
.gate-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: #fff; }
.gate-form input { width: 100%; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.dash-gate .gate-actions .btn { margin: 0; }
.dash-gate p.gate-hint { margin-top: 0; font-size: 14.5px; }
.dash-gate p.gate-new { margin-top: 22px; font-size: 16px; }
.dash-gate .gate-new a { color: #fff; font-weight: 600; }
@media (max-width: 480px) { .gate-actions .btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- "put it on your home screen" (phones, once) */
.install-tip { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45); animation: it-up 0.35s ease-out both; }
@keyframes it-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .install-tip { animation: none; } }
.install-tip[hidden] { display: none; }
.install-tip img { flex: none; border-radius: 11px; }
.it-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.it-h { font-size: 16px; }
.it-how { font-size: 14px; line-height: 1.45; color: var(--soft); }
.it-share { vertical-align: -3px; margin: 0 2px; }
.it-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.it-add { min-height: 40px; padding: 0 16px; }
.it-x { min-height: 40px; padding: 0 6px; border: 0; background: none; font: 600 14px/1 var(--body); color: var(--soft); cursor: pointer; }
.it-x:hover { color: var(--ink); }
@media (max-width: 480px) {
  .install-tip { flex-wrap: wrap; align-items: flex-start; }
  .it-text { flex-basis: calc(100% - 58px); }
  .it-actions { flex-direction: row; justify-content: flex-end; width: 100%; }
}
