@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --safe-top: max(
    env(safe-area-inset-top, 0px),
    calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))
  );
  --safe-bottom: max(
    env(safe-area-inset-bottom, 0px),
    calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px))
  );
  --page: #efefec;
  --surface: #fcfcfa;
  --surface-alt: #e7e8e3;
  --ink: #242823;
  --muted: #71766e;
  --line: #dcdfd7;
  --green: var(--ink);
  --green-deep: var(--ink);
  --danger: #a13333;
  --radius: 22px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --page: #151715;
  --surface: #20231f;
  --surface-alt: #2b2f29;
  --ink: #eff1eb;
  --muted: #a3aa9e;
  --line: #343a31;
  --danger: #e5a4a4;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
input,
select {
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand-name {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 700;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 700;
}
h3 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
}
small {
  font-size: 12px;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.app-layout {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 36px 24px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 25;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: cover;
  background: #000;
  border-radius: 12px;
  padding: 0;
}
.brand-name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.brand-name small {
  display: none;
}
.sidebar-caption {
  display: none;
}
.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 52px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px;
  border-radius: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.nav-button.active {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 650;
}
.nav-button .icon {
  width: 19px;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
}
.sidebar-status {
  margin-top: auto;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.sidebar-status strong {
  font-size: 12px;
  font-weight: 500;
}
.sidebar-status p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 6px;
}
.status-dot {
  display: none;
}
.user-block {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
}
.avatar {
  width: 34px;
  height: 34px;
  background: var(--surface-alt);
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 11px;
}
.user-block strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.user-block small {
  color: var(--muted);
  font-size: 11px;
}
.content-wrap {
  margin-left: 240px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 80px;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: none;
}
.mobile-brand {
  display: flex;
}
.topbar-right {
  display: flex;
  gap: 8px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
.topbar .icon-button {
  border: 0;
  background: var(--surface);
}
.main {
  max-width: 1350px;
  padding: 40px 40px 60px;
  margin: auto;
}
.bottom-nav {
  display: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading > div {
  min-width: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-bottom: 10px;
}
.page-subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  white-space: nowrap;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button-primary {
  background: var(--ink);
  color: var(--surface);
}
.button-secondary {
  background: var(--surface);
  border-color: var(--line);
}
.button-quiet {
  background: var(--surface-alt);
}
.button-danger {
  background: var(--ink);
  color: var(--surface);
}
.button-full {
  width: 100%;
}
.button-small {
  min-height: 38px;
  font-size: 12px;
}
.button:hover:not(:disabled) {
  filter: brightness(0.94);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 550;
}
.text-link .icon {
  width: 15px;
}
.body-grid {
  display: block;
}
.subscriptions-tools {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 0 15px;
  min-width: 0;
}
.search-field > .icon {
  width: 18px;
  color: var(--muted);
}
.search-field input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  padding: 13px 0;
  font-size: 14px;
  color: var(--ink);
}
.subscriptions-tools .search-field {
  flex: 1;
  min-width: 220px;
}
.segmented,
.wizard-kind {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 0;
  background: var(--surface);
  border-radius: 12px;
}
.segmented button,
.wizard-kind button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.segmented button.active,
.wizard-kind button.active {
  background: var(--ink);
  color: var(--surface);
  font-weight: 550;
}
.body-grid #results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.subscription-card {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 136px;
  padding: 24px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  text-align: left;
}
.subscription-card > .badge-pair {
  display: none;
}
.subscription-info {
  min-width: 0;
  flex: 1;
}
.subscription-type {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.subscription-info h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.subscription-info p {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  line-height: 1.6;
}
.subscription-info p .icon {
  width: 13px;
  height: 13px;
}
.subscription-card > .icon {
  width: 16px;
  color: var(--muted);
}
.subscription-card:hover,
.event-card:hover {
  border-color: #bdbdbd;
}
.load-more,
.empty-state,
.loading-list,
.inline-error {
  grid-column: 1/-1;
}
.load-more {
  display: flex;
  margin: 18px auto;
}
.empty-state {
  padding: 42px 26px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--muted);
}
.empty-state h2 {
  font-size: 20px;
}
.empty-state p {
  max-width: 370px;
  margin: 12px auto 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.footnote .icon {
  width: 13px;
  height: 13px;
  margin-top: 3px;
}
.page-footer {
  display: none;
}
.day-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.day-group + .day-group {
  margin-top: 30px;
}
.day-heading {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}
.day-heading span:first-child {
  font-weight: 600;
}
.day-heading span:last-child {
  font-size: 11px;
}
.event-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.event-match {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  padding: 24px;
}
.event-team-names {
  min-width: 0;
  flex: 1;
}
.event-team-names h3 {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.3px;
}
.event-team-names p {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.event-team-names p .icon {
  width: 12px;
  height: 12px;
  margin-top: 3px;
}
.event-time {
  text-align: right;
  flex-shrink: 0;
}
.event-time strong {
  font-family: Manrope, sans-serif;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.event-time small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.event-sale {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin: 0 24px;
  padding: 15px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.event-sale-main {
  flex: 1;
  min-width: 0;
}
.event-sale-price {
  color: var(--ink);
  text-align: right;
  max-width: 100px;
  flex-shrink: 0;
}
.event-sale-price strong {
  font-weight: 600;
}
.club-badge {
  display: grid;
  place-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
.club-badge-small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 10px;
}
.badge-pair {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.setting-card {
  padding: 28px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
}
.setting-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setting-title .icon {
  width: 18px;
  color: var(--muted);
}
.setting-card > p {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.check-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
}
.check-option + .check-option {
  border-top: 1px solid var(--line);
}
.check-option strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.check-option small {
  display: block;
  max-width: 390px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 5px;
}
.check-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.toggle {
  display: block;
  flex-shrink: 0;
  width: 38px;
  height: 24px;
  padding: 3px;
  background: var(--surface-alt);
  border-radius: 20px;
}
.toggle:after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s;
}
.check-option input:checked + .toggle {
  background: var(--ink);
}
.check-option input:checked + .toggle:after {
  transform: translateX(14px);
}
.check-option input:focus-visible + .toggle {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: 13px;
}
.account-row + .account-row {
  border-top: 1px solid var(--line);
}
.account-row span {
  color: var(--muted);
}
.account-row strong {
  min-width: 0;
  text-align: right;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
}
.info-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}
.settings-layout > .info-note {
  grid-column: 1/-1;
}
.rail-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}
.event-detail-page {
  max-width: 1050px;
  margin: auto;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 0;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}
.detail-back .icon {
  width: 17px;
}
.event-detail-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.detail-hero {
  grid-column: 1/-1;
  padding: 28px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
}
.detail-match {
  display: flex;
  gap: 26px;
  align-items: center;
  max-width: 540px;
  margin: 0 auto 24px;
}
.detail-club {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.detail-club .club-badge {
  width: 50px;
  height: 50px;
  font-size: 15px;
  border-radius: 16px;
}
.detail-club h3 {
  font-size: 17px;
}
.versus {
  font-size: 11px;
  color: var(--muted);
}
.detail-date {
  text-align: center;
  font-size: 15px;
}
.detail-date p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 8px;
}
.detail-date .icon {
  width: 13px;
  height: 13px;
}
.event-detail-card > .sheet-section {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
}
.event-detail-card > .sheet-section:has(details) {
  grid-column: 1/-1;
}
.section-label {
  font-size: 11px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.phase-row {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px 0;
}
.phase-row + .phase-row {
  border-top: 1px solid var(--line);
}
.phase-dot {
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.phase-dot.unverified {
  background: var(--muted);
}
.phase-row h3 {
  font-size: 14px;
}
.phase-row p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 5px;
}
.phase-time {
  text-align: right;
  font-size: 12px;
  line-height: 1.8;
  max-width: 90px;
}
.phase-time small {
  font-size: 11px;
  color: var(--muted);
}
.category-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.category-heading {
  margin: 0;
}
.category-tools select {
  max-width: 100%;
  font-size: 11px;
  min-height: 38px;
  border: 0;
  padding: 8px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
}
.price-range {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
.price-range input {
  flex: 1;
  width: 70px;
  min-width: 60px;
  min-height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 12px;
}
.category-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.category-row span {
  color: var(--muted);
}
.category-row strong {
  font-weight: 550;
  white-space: nowrap;
}
.conditions-toggle {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.conditions-toggle::-webkit-details-marker {
  display: none;
}
.conditions-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 16px;
  max-height: 350px;
  overflow: auto;
}
.detail-check {
  grid-column: 1/-1;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.detail-check .icon {
  width: 13px;
}
.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}
.detail-actions .button {
  min-width: 150px;
}
.follow-page {
  max-width: 840px;
  margin: auto;
}
.follow-page-heading {
  margin-bottom: 26px;
}
.follow-page-card {
  padding: 28px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
}
.wizard-step {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.wizard-step b {
  color: var(--ink);
  font-weight: 600;
}
.wizard-kind {
  margin-bottom: 24px;
}
.wizard-kind button {
  flex: 1;
}
.field-label {
  display: block;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--muted);
}
.team-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: 18px;
}
.team-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
}
.team-result > .icon {
  margin-left: auto;
  width: 16px;
  color: var(--muted);
}
.team-results > .secondary-caption,
.team-results > .button,
.team-results > .form-error {
  grid-column: 1/-1;
}
.selected-team {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-alt);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.selected-team > .icon-button {
  margin-left: auto;
  width: 32px;
  height: 32px;
}
.selected-target {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: var(--surface-alt);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 26px;
}
.selected-target h3 {
  font-size: 15px;
}
.selected-target small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.follow-page-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  position: sticky;
  bottom: 16px;
  z-index: 5;
  margin-top: 26px;
  padding: 12px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.secondary-caption,
.sheet-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.secondary-caption {
  margin: 8px 0;
}
.sheet-note {
  margin-top: 18px;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0006;
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sheet {
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  max-height: 90dvh;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 100px #0002;
  outline: 0;
}
.sheet.wide {
  width: 680px;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.sheet-header h2 {
  font-size: 17px;
}
.sheet-body {
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet-footer {
  display: flex;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.sheet-footer .button {
  flex: 1;
}
.sheet-section + .sheet-section {
  margin-top: 24px;
}
.subscription-detail-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.subscription-detail-title h2 {
  font-size: 19px;
}
.subscription-detail-title small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.subscription-meta {
  background: var(--surface-alt);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.subscription-meta strong {
  font-weight: 550;
  color: var(--ink);
}
.meta-gap {
  margin-top: 14px;
}
.delete-illustration {
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--surface-alt);
  margin-bottom: 20px;
}
.delete-copy {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 14px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 120px);
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  width: max-content;
  max-width: calc(100% - 40px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.global-state,
.initial-loading {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 100dvh;
  padding: 30px;
}
.global-state .brand-mark,
.initial-loading .brand-mark {
  margin: 0 auto 24px;
  width: 48px;
  height: 48px;
}
.global-state p {
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.8;
  margin: 18px auto 24px;
}
.preview-bar {
  padding: 6px 15px;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  background: var(--surface-alt);
  color: var(--muted);
}
.loading-list {
  display: grid;
  gap: 14px;
}
.skeleton {
  padding: 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
}
.skeleton i {
  display: block;
  height: 12px;
  width: 45%;
  background: var(--surface-alt);
  margin: 10px 0;
  border-radius: 5px;
}
.skeleton i:nth-child(2) {
  width: 75%;
  height: 20px;
}
.inline-error {
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.8;
  background: var(--surface);
}
.inline-error .button {
  margin-top: 16px;
}
.form-busy {
  opacity: 0.6;
  pointer-events: none;
}
body.home-active {
  overflow: hidden;
}
#app.home-screen {
  height: var(--tg-viewport-stable-height, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.home-screen .preview-bar,
.home-screen .topbar {
  flex-shrink: 0;
}
.home-screen .app-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.home-screen .content-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.home-screen .main {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  padding: 28px 40px;
}
.home-hub {
  width: min(100%, 640px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: auto;
}
.home-welcome > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.home-welcome h1 {
  font-size: 38px;
  letter-spacing: -1.6px;
}
.home-commands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.home-create {
  grid-column: 1/-1;
  text-align: left;
  min-height: 144px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.home-create .widget-top {
  font-family: Manrope, sans-serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.home-create .widget-top > .icon {
  width: 24px;
  height: 24px;
}
.widget-description {
  font-size: 13px;
  opacity: 0.65;
}
.home-destinations {
  display: contents;
}
.home-destinations > button {
  min-width: 0;
  min-height: 158px;
  padding: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 0;
  border-radius: 24px;
}
.home-destinations .widget-top {
  margin-bottom: 26px;
}
.home-destinations .widget-top > .icon:first-child {
  width: 22px;
  height: 22px;
}
.home-destinations .widget-top > .icon:last-child {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.widget-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
.widget-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.5;
}
.home-delivery {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.home-delivery > .icon {
  width: 13px;
  height: 13px;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
    padding-inline: 20px;
  }
  .content-wrap {
    margin-left: 210px;
  }
  .main {
    padding: 32px 28px 50px;
  }
  .topbar {
    padding-inline: 28px;
  }
  .toast {
    left: calc(50% + 105px);
  }
  .body-grid #results,
  .day-group {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .sidebar {
    display: none;
  }
  .content-wrap {
    margin-left: 0;
  }
  .topbar {
    min-height: 76px;
    padding: calc(14px + var(--safe-top)) 22px 14px;
    background: var(--surface);
  }
  .topbar .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .brand-name {
    font-size: 16px;
  }
  .topbar-right {
    gap: 3px;
  }
  .topbar .icon-button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
  }
  .main {
    padding: 28px 22px calc(106px + var(--safe-bottom));
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-around;
    padding: 10px 18px calc(12px + var(--safe-bottom));
    min-height: 74px;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .bottom-nav button {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    min-height: 46px;
  }
  .bottom-nav button.active {
    color: var(--ink);
    font-weight: 650;
  }
  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-icon .icon {
    width: 21px;
    height: 21px;
  }
  .bottom-nav button.active .nav-icon:after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ink);
    margin-top: -31px;
  }
  .page-heading {
    gap: 14px;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .page-subtitle {
    font-size: 13px;
    margin-top: 10px;
  }
  .page-heading > .button {
    min-height: 42px;
    font-size: 12px;
    padding: 10px 13px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .subscriptions-tools {
    gap: 14px;
  }
  .subscriptions-tools .search-field {
    flex-basis: 100%;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    padding-inline: 8px;
  }
  .subscription-card {
    padding: 22px;
    min-height: 126px;
  }
  .subscription-info h3 {
    font-size: 16px;
  }
  .day-group {
    gap: 12px;
  }
  .day-group + .day-group {
    margin-top: 28px;
  }
  .event-match {
    padding: 22px;
    gap: 16px;
  }
  .event-team-names h3 {
    font-size: 15px;
  }
  .event-team-names p {
    font-size: 11px;
    margin-top: 10px;
  }
  .event-time strong {
    font-size: 19px;
  }
  .event-sale {
    margin-inline: 22px;
    padding: 14px 0;
    font-size: 11px;
  }
  .settings-layout,
  .event-detail-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .setting-card {
    padding: 22px;
  }
  .settings-layout > .info-note {
    grid-column: auto;
  }
  .account-card {
    margin-top: 0;
  }
  .detail-hero {
    padding: 24px 18px;
  }
  .detail-club h3 {
    font-size: 15px;
  }
  .detail-match {
    gap: 18px;
  }
  .event-detail-card > .sheet-section {
    padding: 22px;
  }
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .detail-actions .button {
    min-width: 0;
    padding-inline: 10px;
    font-size: 12px;
  }
  .follow-page-heading {
    margin-bottom: 22px;
  }
  .follow-page-card {
    padding: 22px 18px;
  }
  .team-results {
    grid-template-columns: 1fr;
  }
  .follow-page-actions {
    bottom: calc(82px + var(--safe-bottom));
    gap: 10px;
    margin-inline: -7px;
    padding: 10px 7px;
    border-bottom: 1px solid var(--line);
    border-radius: 12px;
  }
  .follow-page-actions .button {
    flex: 1;
    min-width: 0;
    padding-inline: 8px;
    font-size: 12px;
    white-space: normal;
  }
  .sheet {
    max-height: 90dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .sheet-header {
    padding: 16px 22px;
  }
  .sheet-body {
    padding: 22px;
  }
  .sheet-footer {
    padding: 16px 22px calc(16px + var(--safe-bottom));
  }
  .toast {
    left: 50%;
    bottom: calc(95px + var(--safe-bottom));
  }
  .home-screen .main {
    padding: 22px 22px calc(98px + var(--safe-bottom));
  }
  .home-hub {
    max-width: 480px;
    gap: 24px;
  }
  .home-welcome h1 {
    font-size: 34px;
  }
  .home-create {
    min-height: 132px;
    padding: 22px;
    border-radius: 22px;
  }
  .home-destinations > button {
    min-height: 148px;
    padding: 20px;
    border-radius: 22px;
  }
  .widget-label {
    font-size: 14px;
  }
  .widget-caption {
    font-size: 11px;
  }
  .home-create .widget-top {
    font-size: 22px;
  }
  .home-destinations .widget-top {
    margin-bottom: 22px;
  }
}
@media (max-width: 360px) {
  .main {
    padding-inline: 16px;
  }
  .home-screen .main {
    padding-inline: 18px;
  }
  .home-commands {
    gap: 10px;
  }
  .home-destinations > button {
    padding: 16px;
  }
  .widget-label {
    font-size: 13px;
  }
  .widget-caption {
    font-size: 10px;
  }
  .page-heading > .button {
    padding-inline: 10px;
  }
  .event-match {
    padding: 18px;
  }
  .event-sale {
    margin-inline: 18px;
  }
}
@media (max-height: 720px) {
  .home-hub {
    gap: 18px;
  }
  .home-welcome h1 {
    font-size: 30px;
  }
  .home-create {
    min-height: 110px;
    padding: 20px;
  }
  .home-destinations > button {
    min-height: 126px;
    padding: 18px;
  }
  .home-destinations .widget-top {
    margin-bottom: 18px;
  }
  .home-delivery {
    display: none;
  }
}
@media (max-height: 560px) {
  .home-screen .main {
    padding-top: 12px;
  }
  .home-hub {
    gap: 12px;
  }
  .home-welcome > p {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .home-welcome h1 {
    font-size: 25px;
  }
  .home-create {
    min-height: 86px;
    padding: 16px;
  }
  .home-create .widget-top {
    font-size: 18px;
  }
  .home-destinations > button {
    min-height: 102px;
    padding: 14px;
  }
  .home-destinations .widget-top {
    margin-bottom: 12px;
  }
  .widget-caption {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Primary screens retain navigation; focused flows own the entire viewport. */
.flow-layout {
  min-height: 100dvh;
  background: var(--page);
}
.flow-toolbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: calc(12px + var(--safe-top)) 24px 12px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.flow-toolbar > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.flow-toolbar .icon-button {
  background: var(--surface);
  border: 0;
}
.flow-screen .main {
  max-width: 1100px;
  padding: 28px 32px calc(32px + var(--safe-bottom));
}
.flow-screen .detail-back {
  display: none;
}
.flow-screen .follow-page-heading .eyebrow {
  display: none;
}
.flow-screen .follow-page-heading {
  margin-bottom: 24px;
}
.flow-screen .follow-page-card {
  padding: 24px;
  background: none;
  border: 0;
}
.flow-screen .follow-page-actions {
  bottom: 0;
  padding: 18px 0 calc(18px + var(--safe-bottom));
  background: var(--page);
  border: 0;
  margin: 20px 0 0;
}
.flow-screen .follow-page-actions .button-secondary {
  background: var(--surface);
}
.follow-progress {
  margin-bottom: 28px;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.progress-caption > span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.progress-track > span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: 4px;
  background: var(--ink);
  transition: width 0.2s ease;
}
.step-2 .progress-track > span {
  width: 100%;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
}
.step-1 .progress-labels > span:first-child,
.step-2 .progress-labels > span:last-child {
  color: var(--ink);
}
.follow-page .team-results {
  gap: 12px;
}
.follow-page .team-result {
  padding: 16px;
  background: var(--surface);
  border: 0;
  border-radius: 18px;
  min-height: 76px;
}
.follow-page .team-result:hover {
  border-color: var(--muted);
}
.follow-page .selected-team,
.follow-page .selected-target {
  background: var(--surface);
  border: 0;
  border-radius: 18px;
}
.follow-page .search-field {
  border-radius: 16px;
  min-height: 52px;
}
.follow-page .wizard-kind {
  border-radius: 16px;
  padding: 5px;
}
.follow-page .wizard-kind button {
  border-radius: 11px;
}
.follow-page #follow-options > div:first-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.follow-page .check-option {
  background: var(--surface);
  border: 0;
  border-radius: 18px;
  padding: 18px;
  align-items: flex-start;
}
.follow-page #follow-options > div:first-child .check-option {
  flex-direction: column;
  gap: 18px;
}
.follow-page #follow-options > .rail-divider {
  display: none;
}
.follow-page .check-option small {
  font-size: 11px;
}
.notification-widgets {
  display: grid;
  gap: 20px;
}
.notification-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.modal-backdrop {
  padding: 0;
  align-items: stretch;
  background: var(--page);
  backdrop-filter: none;
}
.modal-backdrop .sheet,
.modal-backdrop .sheet.wide {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: var(--page);
  box-shadow: none;
}
.sheet-header {
  padding: calc(16px + var(--safe-top)) max(24px, calc((100vw - 820px) / 2)) 16px;
  min-height: 76px;
  background: var(--page);
}
.sheet-header .icon-button {
  background: var(--surface);
  border: 0;
}
.sheet-body {
  width: min(100%, 820px);
  margin: 0 auto;
  flex: 1;
  padding: 28px 24px;
}
.sheet-body .subscription-meta,
.sheet-body .info-note {
  background: var(--surface);
  border: 0;
  border-radius: 22px;
  padding: 24px;
}
.sheet-footer {
  justify-content: center;
  background: var(--page);
  padding: 18px 24px calc(18px + var(--safe-bottom));
}
.sheet-footer .button {
  flex: initial;
  min-width: 150px;
  max-width: 380px;
}
@media (max-width: 800px) {
  .flow-screen .main {
    padding: 24px 20px calc(24px + var(--safe-bottom));
  }
  .flow-toolbar {
    padding-inline: 20px;
  }
  .flow-screen .follow-page-card {
    padding: 0;
  }
  .flow-screen .follow-page-actions {
    margin-inline: 0;
    border-radius: 0;
    gap: 12px;
  }
  .flow-screen .follow-page-actions .button {
    min-height: 50px;
  }
  .follow-page #follow-options > div:first-child {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .follow-page #follow-options > div:first-child .check-option {
    flex-direction: row;
    align-items: center;
  }
  .notification-list {
    grid-template-columns: 1fr;
  }
  .sheet-header {
    padding-inline: 22px;
  }
  .sheet-footer .button {
    flex: 1;
    min-width: 0;
  }
}
/* Shared geometry for every screen and navigation widget. */
:root {
  --screen-gutter: 40px;
  --section-gap: 28px;
  --widget-gap: 16px;
  --widget-padding: 24px;
  --widget-radius: 22px;
  --nav-offset: 16px;
  --radius: var(--widget-radius);
}
.main,
.flow-screen .main {
  padding: var(--section-gap) var(--screen-gutter) calc(48px + var(--safe-bottom));
}
.topbar,
.flow-toolbar {
  width: calc(100% - var(--screen-gutter) * 2);
  max-width: 1270px;
  margin: calc(16px + var(--safe-top)) auto 0;
  padding: 12px 18px;
  min-height: 68px;
  top: calc(12px + var(--safe-top));
  border: 0;
  border-radius: var(--widget-radius);
  background: var(--surface);
  box-shadow: 0 6px 24px #00000004;
}
.topbar .icon-button,
.flow-toolbar .icon-button {
  border: 0;
  background: var(--surface-alt);
  width: 38px;
  height: 38px;
}
.topbar-right {
  gap: 8px;
}
.page-heading,
.follow-page-heading,
.flow-screen .follow-page-heading {
  margin-bottom: var(--section-gap);
  gap: var(--widget-gap);
}
.eyebrow,
.flow-screen .follow-page-heading .eyebrow {
  display: none;
}
.page-subtitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
}
.page-heading h1,
.follow-page-heading h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.2px;
}
.settings-layout,
.event-detail-card,
.home-commands,
.body-grid #results,
.notification-list,
.notification-widgets,
.day-group {
  gap: var(--widget-gap);
}
.setting-card,
.event-detail-card > .sheet-section,
.detail-hero,
.subscription-card,
.follow-page-card,
.sheet-body .subscription-meta,
.sheet-body .info-note {
  padding: var(--widget-padding);
  border-radius: var(--widget-radius);
}
.event-match {
  padding: var(--widget-padding);
}
.event-sale {
  margin-inline: var(--widget-padding);
}
.event-card,
.empty-state,
.home-create,
.home-destinations > button {
  border-radius: var(--widget-radius);
}
.day-group + .day-group {
  margin-top: var(--section-gap);
}
.flow-screen .main {
  max-width: 1100px;
}
.flow-toolbar {
  max-width: 1020px;
}
.flow-screen .follow-page-card {
  padding: 0;
}
.follow-page,
.event-detail-page {
  max-width: none;
}
.follow-page .team-results {
  gap: var(--widget-gap);
}
.follow-page .selected-target,
.follow-page .selected-team,
.follow-page .check-option {
  border-radius: 18px;
}
.follow-page .follow-page-actions {
  gap: var(--widget-gap);
}
.sheet-header {
  width: calc(100% - var(--screen-gutter) * 2);
  max-width: 1020px;
  margin: calc(16px + var(--safe-top)) auto 0;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--widget-radius);
  min-height: 68px;
  background: var(--surface);
}
.sheet-body {
  padding: var(--section-gap) var(--screen-gutter);
}
.sidebar {
  inset: 20px auto 20px 20px;
  width: 220px;
  border: 0;
  border-radius: 24px;
  padding: var(--widget-padding);
}
.home-screen .main {
  padding: var(--section-gap) var(--screen-gutter) 40px;
}
.home-hub {
  gap: var(--section-gap);
}
.home-create,
.home-destinations > button {
  padding: var(--widget-padding);
}
@media (max-width: 1100px) {
  :root {
    --screen-gutter: 28px;
  }
  .sidebar {
    width: 190px;
    padding: 20px;
  }
}
@media (max-width: 800px) {
  :root {
    --screen-gutter: 20px;
    --section-gap: 24px;
    --widget-padding: 20px;
    --widget-gap: 14px;
    --widget-radius: 22px;
  }
  .main {
    padding-bottom: calc(124px + var(--safe-bottom));
  }
  .topbar,
  .flow-toolbar {
    min-height: 64px;
    padding: 10px 14px;
  }
  .topbar .brand-mark {
    width: 34px;
    height: 34px;
  }
  .topbar .icon-button {
    width: 36px;
    height: 36px;
  }
  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: calc(var(--nav-offset) + var(--safe-bottom));
    transform: translateX(-50%);
    width: calc(100% - var(--screen-gutter) * 2);
    max-width: 520px;
    min-height: 70px;
    padding: 10px 12px;
    background: var(--surface);
    border: 0;
    border-radius: 24px;
    box-shadow: 0 8px 32px #00000008;
    gap: 8px;
  }
  .bottom-nav button {
    min-height: 46px;
    border-radius: 15px;
    padding: 5px 2px;
    font-size: 10px;
    gap: 5px;
  }
  .bottom-nav button.active {
    background: var(--surface-alt);
  }
  .bottom-nav button.active .nav-icon:after {
    display: none;
  }
  .page-heading h1,
  .follow-page-heading h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .page-subtitle {
    font-size: 13px;
  }
  .home-screen .main {
    padding-bottom: calc(116px + var(--safe-bottom));
  }
  .home-hub {
    gap: 22px;
  }
  .flow-screen .main {
    padding: var(--section-gap) var(--screen-gutter) calc(24px + var(--safe-bottom));
  }
  .flow-screen .follow-page-card {
    padding: 0;
  }
  .sheet-body {
    padding: var(--section-gap) var(--screen-gutter);
  }
  .toast {
    bottom: calc(106px + var(--safe-bottom));
  }
}
@media (max-width: 360px) {
  :root {
    --screen-gutter: 16px;
    --widget-padding: 18px;
    --widget-gap: 12px;
  }
  .home-create,
  .home-destinations > button {
    padding: 16px;
  }
}
@media (max-height: 720px) {
  .home-hub {
    gap: 16px;
  }
  .home-create {
    min-height: 104px;
  }
  .home-destinations > button {
    min-height: 116px;
  }
  .home-destinations .widget-top {
    margin-bottom: 14px;
  }
}
@media (max-height: 560px) {
  .home-hub {
    gap: 10px;
  }
  .home-create {
    min-height: 78px;
    padding: 14px;
  }
  .home-destinations > button {
    min-height: 92px;
    padding: 14px;
  }
  .home-welcome h1 {
    font-size: 24px;
  }
  .home-screen .main {
    padding-top: 14px;
  }
  .home-destinations .widget-top {
    margin-bottom: 8px;
  }
}
.home-hub {
  margin: 0;
  align-self: flex-start;
}
.home-welcome {
  display: flex;
  flex-direction: column;
}
.home-welcome > p {
  order: 2;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
}
.home-welcome h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.2px;
}
@media (max-width: 800px) {
  .home-welcome h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .home-welcome > p {
    font-size: 13px;
  }
}
@media (max-height: 560px) {
  .home-welcome h1 {
    font-size: 24px;
  }
  .home-welcome > p {
    margin-top: 6px;
    font-size: 12px;
  }
}
/* Stronger navigation hierarchy, using the same borderless surfaces. */
.topbar {
  min-height: 84px;
  padding: 16px 20px;
  border-radius: 26px;
  box-shadow: 0 10px 30px #24282306;
}
.topbar .brand {
  gap: 12px;
}
.topbar .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}
.topbar .brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.topbar-right {
  gap: 10px;
}
.topbar .icon-button {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface-alt);
}
.topbar .icon-button .icon {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}
.topbar .icon-button:hover {
  background: var(--ink);
  color: var(--surface);
}
.nav-button {
  min-height: 52px;
  font-size: 14px;
  font-weight: 550;
  border-radius: 16px;
}
.nav-button .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}
.nav-button.active {
  background: var(--ink);
  color: var(--surface);
  font-weight: 650;
}
@media (max-width: 800px) {
  .topbar {
    min-height: 82px;
    padding: 16px;
    border-radius: 26px;
    gap: 12px;
  }
  .topbar .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .topbar .brand-name {
    font-size: 19px;
    letter-spacing: -0.75px;
  }
  .topbar .icon-button {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }
  .topbar-right {
    gap: 8px;
  }
  .bottom-nav {
    min-height: 88px;
    padding: 10px;
    gap: 8px;
    border-radius: 28px;
    box-shadow: 0 12px 36px #2428230a;
  }
  .bottom-nav button {
    min-height: 66px;
    gap: 7px;
    padding: 10px 3px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 550;
    color: var(--muted);
    transition:
      background 0.15s,
      color 0.15s;
  }
  .bottom-nav .nav-icon .icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.9;
  }
  .bottom-nav button.active {
    background: var(--ink);
    color: var(--surface);
    font-weight: 650;
  }
  .bottom-nav button.active .icon {
    stroke-width: 2.1;
  }
  .main {
    padding-bottom: calc(140px + var(--safe-bottom));
  }
  .home-screen .main {
    padding-bottom: calc(132px + var(--safe-bottom));
  }
  .toast {
    bottom: calc(122px + var(--safe-bottom));
  }
}
@media (max-width: 360px) {
  .topbar {
    min-height: 76px;
    padding: 14px;
    gap: 8px;
    border-radius: 24px;
  }
  .topbar .brand {
    gap: 9px;
  }
  .topbar .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .topbar .brand-name {
    font-size: 16px;
    letter-spacing: -0.6px;
  }
  .topbar .icon-button {
    width: 36px;
    height: 38px;
    border-radius: 13px;
  }
  .topbar .icon-button .icon {
    width: 21px;
    height: 21px;
  }
  .topbar-right {
    gap: 6px;
  }
  .bottom-nav {
    gap: 5px;
    padding: 9px;
    min-height: 84px;
    border-radius: 26px;
  }
  .bottom-nav button {
    font-size: 10px;
    min-height: 64px;
  }
}
@media (max-height: 640px) {
  .home-hub {
    gap: 12px;
  }
  .home-create {
    min-height: 96px;
    padding: 18px;
  }
  .home-destinations > button {
    min-height: 108px;
    padding: 16px;
  }
  .home-destinations .widget-top {
    margin-bottom: 12px;
  }
}
@media (max-height: 560px) {
  .home-hub {
    gap: 10px;
  }
  .home-create {
    min-height: 76px;
    padding: 14px;
  }
  .home-destinations > button {
    min-height: 88px;
    padding: 14px;
  }
  .home-destinations .widget-top {
    margin-bottom: 8px;
  }
}
.topbar .icon-button,
.topbar .icon-button:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
@media (max-width: 800px) {
  .bottom-nav {
    padding: 0;
    gap: 0;
    overflow: hidden;
    align-items: stretch;
    height: 88px;
    min-height: 88px;
  }
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    border-radius: 26px;
    height: 100%;
    min-height: 0;
    padding: 0 4px;
    gap: 8px;
    margin: 0;
  }
}
@media (max-width: 360px) {
  .bottom-nav {
    height: 84px;
    min-height: 84px;
  }
  .bottom-nav button {
    border-radius: 24px;
  }
}
@media (min-width: 801px) {
  .topbar {
    min-height: 78px;
    padding-block: 13px;
  }
}
@media (max-width: 800px) {
  .topbar {
    min-height: 76px;
    padding-block: 13px;
  }
  .bottom-nav {
    height: 82px;
    min-height: 82px;
  }
}
@media (max-width: 360px) {
  .topbar {
    min-height: 70px;
    padding-block: 11px;
  }
  .bottom-nav {
    height: 78px;
    min-height: 78px;
  }
}
/* Motion: short transitions for navigation, feedback and real loading states. */
:root {
  --motion-fast: 140ms;
  --motion-standard: 240ms;
  --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
.button,
.icon-button,
.home-create,
.home-destinations > button,
.event-card,
.subscription-card,
.team-result {
  transition:
    transform var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    opacity var(--motion-fast) ease;
}
.button:active:not(:disabled),
.icon-button:active,
.home-create:active,
.home-destinations > button:active,
.event-card:active,
.subscription-card:active,
.team-result:active {
  transform: scale(0.98);
}
.toggle {
  transition: background-color var(--motion-standard) ease;
}
.toggle:after {
  transition: transform var(--motion-standard) var(--motion-ease);
}
.progress-track > span {
  transition: width 320ms var(--motion-ease);
}
.skeleton {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.skeleton:after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, var(--surface) 50%, transparent 80%);
  opacity: 0.65;
  animation: skeleton-sweep 1600ms ease-in-out infinite;
  pointer-events: none;
}
.skeleton i {
  background: var(--surface-alt);
}
.team-results > .loading-list {
  grid-column: 1/-1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-results .skeleton {
  min-height: 76px;
  padding: 16px;
}
.team-results .skeleton i {
  height: 9px;
  margin: 6px 0;
}
.event-detail-card .loading-list .skeleton {
  padding: 14px 0;
}
.event-detail-card .loading-list .skeleton i {
  height: 10px;
}
.sheet {
  animation: sheet-appear 220ms var(--motion-ease);
}
.modal-backdrop {
  animation: backdrop-appear 160ms ease-out;
}
.conditions-toggle .icon {
  transition: transform var(--motion-standard) var(--motion-ease);
}
details[open] > .conditions-toggle .icon {
  transform: rotate(90deg);
}
details[open] > .conditions-text {
  animation: content-appear 180ms var(--motion-ease);
}
.button[data-action='save-follow']:disabled:after,
.settings-actions button[type='submit']:disabled:after {
  content: '';
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pending-spin 0.8s linear infinite;
}
.toast {
  transition:
    opacity 180ms ease,
    transform 240ms var(--motion-ease);
}
@keyframes skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}
@keyframes sheet-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes backdrop-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes content-appear {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pending-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (hover: hover) and (pointer: fine) {
  .home-create:hover,
  .home-destinations > button:hover,
  .event-card:hover,
  .subscription-card:hover {
    transform: translateY(-2px);
  }
}
@media (max-width: 800px) {
  .bottom-nav:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(100% / 3);
    border-radius: 26px;
    background: var(--ink);
    transform: translateX(calc(var(--nav-index, 0) * 100%));
    transition:
      transform 280ms var(--motion-ease),
      opacity 180ms ease;
    pointer-events: none;
    z-index: 0;
  }
  .bottom-nav[data-has-selection='false']:before {
    opacity: 0;
  }
  .bottom-nav button {
    position: relative;
    z-index: 1;
    transition: color 200ms ease;
  }
  .bottom-nav button.active {
    background: transparent;
  }
  .team-results > .loading-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .bottom-nav:before {
    border-radius: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .button:active,
  .icon-button:active,
  .home-create:active,
  .home-destinations > button:active,
  .event-card:active,
  .subscription-card:active,
  .team-result:active {
    transform: none !important;
  }
  .skeleton:after {
    display: none;
  }
}
@media (min-width: 801px) {
  .topbar {
    min-height: 74px;
    padding-block: 11px;
  }
}
@media (max-width: 800px) {
  .topbar {
    min-height: 72px;
    padding-block: 11px;
  }
  .bottom-nav {
    height: 76px;
    min-height: 76px;
  }
}
@media (max-width: 360px) {
  .topbar {
    min-height: 66px;
    padding-block: 9px;
  }
  .bottom-nav {
    height: 72px;
    min-height: 72px;
  }
}
.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--section-gap);
}
/* Fixed follow manager: controls stay in place; only the collection scrolls. */
body.subscriptions-active {
  overflow: hidden;
}
#app.subscriptions-screen {
  height: var(--tg-viewport-height, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.subscriptions-screen .preview-bar,
.subscriptions-screen .topbar {
  flex-shrink: 0;
}
.subscriptions-screen .app-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.subscriptions-screen .content-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.subscriptions-screen .main {
  flex: 1;
  min-height: 0;
  display: flex;
  width: 100%;
  padding: var(--section-gap) var(--screen-gutter) 28px;
}
.subscriptions-workspace {
  display: flex;
  flex-direction: column;
  gap: var(--widget-gap);
  min-height: 0;
  flex: 1;
  width: 100%;
}
.subscription-console {
  flex-shrink: 0;
  background: var(--surface);
  padding: 14px;
  border-radius: var(--widget-radius);
}
.subscription-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.subscription-search-row .search-field {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  background: transparent;
  padding: 0 4px 0 8px;
}
.subscription-search-row input {
  font-size: 14px;
}
.subscription-add {
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 14px;
  transition: transform var(--motion-fast) var(--motion-ease);
}
.subscription-add .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
.subscription-add:active {
  transform: scale(0.96);
}
.subscription-tabs {
  margin-top: 12px;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: 12px;
  width: 100%;
  gap: 4px;
}
.subscription-tabs button {
  flex: 1;
  font-size: 12px;
  min-height: 34px;
  padding: 6px 10px;
}
.subscription-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
}
.subscription-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--widget-radius);
  overflow: hidden;
}
.subscription-panel-heading {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  color: var(--muted);
  font-size: 12px;
}
.subscription-panel-heading > span:first-child {
  font-weight: 600;
  color: var(--ink);
}
.subscription-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  scroll-padding: 12px;
  padding: 0 22px 14px;
  -webkit-overflow-scrolling: touch;
}
.subscription-scroll #results {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0;
}
.subscription-scroll .subscription-card {
  flex-shrink: 0;
  min-height: 104px;
  padding: 18px 0;
  border-radius: 0;
  background: transparent;
  gap: 12px;
}
.subscription-scroll .subscription-card + .subscription-card {
  border-top: 1px solid var(--line);
}
.subscription-scroll .subscription-type {
  font-size: 10px;
  margin-bottom: 6px;
}
.subscription-scroll .subscription-info h3 {
  font-size: 15px;
  line-height: 1.5;
}
.subscription-scroll .subscription-info p {
  margin-top: 7px;
  font-size: 11px;
}
.subscription-scroll .subscription-card > .icon {
  width: 16px;
  height: 16px;
}
.subscription-scroll .subscription-card:hover {
  transform: none;
}
.subscription-scroll .empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 8px;
  background: none;
  border-radius: 0;
}
.subscription-scroll .empty-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}
.subscription-scroll .empty-state h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.subscription-scroll .empty-state p {
  font-size: 12px;
  line-height: 1.8;
  margin: 10px auto 0;
  max-width: 250px;
}
.subscription-scroll .loading-list {
  padding-top: 4px;
  gap: 10px;
}
.subscription-scroll .skeleton {
  padding: 14px 0;
  background: transparent;
}
.subscription-scroll .load-more {
  flex-shrink: 0;
  margin: 16px auto 4px;
  background: var(--surface-alt);
  min-height: 40px;
}
@media (min-width: 1101px) {
  .subscriptions-workspace {
    max-width: 1000px;
  }
  .subscription-console {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .subscription-search-row {
    flex: 1;
  }
  .subscription-tabs {
    margin: 0;
    width: auto;
    min-width: 300px;
  }
  .subscription-panel-heading {
    padding-inline: 28px;
  }
  .subscription-scroll {
    padding-inline: 28px;
  }
}
@media (max-width: 800px) {
  .subscriptions-screen .main {
    padding-bottom: calc(112px + var(--safe-bottom));
  }
  .subscription-console {
    padding: 12px;
  }
  .subscription-panel-heading {
    padding: 16px 18px;
  }
  .subscription-scroll {
    padding: 0 18px 12px;
  }
}
@media (max-height: 640px) {
  .subscriptions-screen .main {
    padding-top: 16px;
  }
  .subscription-console {
    padding: 10px;
  }
  .subscription-tabs {
    margin-top: 8px;
  }
  .subscription-panel-heading {
    padding-block: 12px;
  }
  .subscription-scroll .empty-icon {
    display: none;
  }
  .subscription-scroll .empty-state {
    padding: 12px 4px;
  }
}
.subscription-manage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  padding: 6px 0;
  min-height: 28px;
}
.subscription-manage .icon {
  width: 14px;
  height: 14px;
}
.subscription-scroll #results {
  gap: 14px;
}
.subscription-scroll .day-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.subscription-scroll .day-heading {
  font-size: 10px;
  margin: 0;
  padding: 2px 0;
}
.subscription-scroll .day-heading span:last-child {
  font-size: 10px;
}
.subscription-scroll .day-group + .day-group {
  margin-top: 6px;
}
.subscription-scroll .event-card {
  background: var(--surface-alt);
  border-radius: 18px;
  flex-shrink: 0;
}
.subscription-scroll .event-match {
  padding: 16px;
  gap: 14px;
}
.subscription-scroll .event-team-names h3 {
  font-size: 14px;
}
.subscription-scroll .event-team-names p {
  font-size: 11px;
  margin-top: 7px;
}
.subscription-scroll .event-sale {
  margin-inline: 16px;
  font-size: 10px;
  padding: 10px 0;
}
.subscription-scroll .event-time strong {
  font-size: 17px;
}
.follow-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--widget-gap);
  flex-shrink: 0;
}
.follow-access {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--widget-radius);
  text-align: left;
  min-height: 88px;
  transition: transform var(--motion-fast) var(--motion-ease);
}
.follow-access > span {
  grid-column: 1/-1;
  font-size: 12px;
  font-weight: 600;
}
.follow-access > .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.follow-access > .icon:last-child {
  width: 14px;
  height: 14px;
}
.follow-access:active,
.results-add:active {
  transform: scale(0.98);
}
.results-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.results-toolbar .search-field {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border-radius: 16px;
  padding-inline: 14px;
}
.results-toolbar .search-field input {
  font-size: 13px;
}
.results-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--ink);
  color: var(--surface);
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--motion-fast) var(--motion-ease);
}
.results-add > .icon {
  width: 16px;
  height: 16px;
}
.managed-follows {
  display: grid;
  gap: 12px;
}
.managed-follow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--widget-radius);
  text-align: left;
  min-height: 98px;
}
.managed-follow > span {
  min-width: 0;
}
.managed-follow strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.managed-follow small {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.managed-follow > .icon {
  width: 16px;
  color: var(--muted);
}
.sheet-header > h2 {
  flex: 1;
}
@media (max-height: 640px) {
  .follow-access {
    min-height: 68px;
    padding: 12px 16px;
    gap: 7px;
  }
  .results-toolbar .search-field,
  .results-add {
    min-height: 42px;
  }
  .results-add {
    padding: 10px 12px;
  }
  .subscriptions-workspace {
    gap: 10px;
  }
}
@media (max-width: 360px) {
  .follow-access > span {
    font-size: 11px;
  }
  .results-toolbar {
    gap: 8px;
  }
  .results-add {
    font-size: 11px;
    padding-inline: 12px;
  }
}
.follow-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--widget-gap);
  flex-shrink: 0;
}
.follow-manager-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--surface);
  border-radius: 18px;
  min-height: 60px;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  transition: transform var(--motion-fast) var(--motion-ease);
}
.follow-manager-entry > .icon:first-child {
  width: 19px;
  height: 19px;
}
.follow-manager-entry > .icon:last-child {
  width: 14px;
  height: 14px;
  color: var(--muted);
  margin-left: auto;
}
.follow-manager-entry:active {
  transform: scale(0.98);
}
.follow-toolbar > .results-add {
  min-height: 60px;
  border-radius: 18px;
  font-size: 13px;
}
.manager-switch {
  margin-bottom: 22px;
  background: var(--surface-alt);
  padding: 5px;
  border-radius: 16px;
  gap: 5px;
}
.manager-switch button {
  flex: 1;
  min-height: 42px;
  border-radius: 11px;
  font-size: 13px;
}
.manager-switch button.active {
  background: var(--surface);
  color: var(--ink);
}
@media (max-width: 360px) {
  .follow-manager-entry {
    padding: 12px;
    gap: 7px;
    font-size: 12px;
    min-height: 54px;
  }
  .follow-toolbar > .results-add {
    font-size: 12px;
    min-height: 54px;
  }
  .follow-manager-entry > .icon:last-child {
    display: none;
  }
}
@media (max-height: 640px) {
  .follow-manager-entry,
  .follow-toolbar > .results-add {
    min-height: 52px;
    padding-block: 12px;
  }
}

/* Settings: grouped, quiet rows using the shared surface and spacing tokens. */
.preferences-page {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.preferences-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--widget-radius);
  background: var(--surface);
}
.preferences-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--ink);
  color: var(--surface);
  font-size: 17px;
  font-weight: 600;
}
.preferences-profile > div {
  flex: 1;
  min-width: 0;
}
.preferences-profile strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.preferences-profile div > span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.preferences-profile > .icon {
  width: 20px;
  color: var(--muted);
}
.preferences-section > h2 {
  margin: 0 0 10px;
  padding-inline: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1px;
}
.preferences-list {
  margin: 0;
  padding: 0 20px;
  background: var(--surface);
  border-radius: var(--widget-radius);
}
.preferences-option {
  min-height: 64px;
  padding: 16px 0;
  gap: 16px;
}
.preferences-option strong {
  font-size: 14px;
  font-weight: 500;
}
.preferences-option small {
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.5;
}
.preferences-caption {
  margin: 10px 18px 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.preferences-save {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.preferences-save .button {
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 15px;
  font-size: 13px;
}
.preferences-page .form-error:empty {
  display: none;
}
.preferences-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 15px 0;
  font-size: 13px;
}
.preferences-details > div + div {
  border-top: 1px solid var(--line);
}
.preferences-details dt {
  color: var(--muted);
}
.preferences-details dd {
  margin: 0;
  text-align: right;
  max-width: 58%;
  overflow-wrap: anywhere;
  font-weight: 500;
}
@media (max-width: 360px) {
  .preferences-profile {
    padding: 16px;
  }
  .preferences-list {
    padding-inline: 16px;
  }
  .preferences-option strong {
    font-size: 13px;
  }
}
.sent-history {
  max-width: 720px;
  margin-inline: auto;
  background: var(--surface);
  border-radius: var(--widget-radius);
  padding: 0 20px;
}
.sent-notice {
  display: flex;
  gap: 14px;
  padding: 22px 0;
}
.sent-notice + .sent-notice {
  border-top: 1px solid var(--line);
}
.sent-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-alt);
}
.sent-icon .icon {
  width: 16px;
}
.sent-notice strong {
  font-size: 14px;
  line-height: 1.6;
}
.sent-notice p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 8px;
  line-height: 1.6;
}
.sent-notice time {
  font-size: 11px;
  color: var(--muted);
}
.subscriptions-screen .sent-history {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sent-history:has(> .empty-state),
.sent-history:has(> .inline-error),
.sent-history:has(> .loading-list) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sent-history > .empty-state {
  background: transparent;
  border: 0;
  padding: 32px 20px;
  width: 100%;
}
.sent-history .empty-state h2,
.sent-history .empty-state h3 {
  font-size: 19px;
}
.sent-history .empty-state p {
  max-width: 260px;
  margin-inline: auto;
  font-size: 13px;
  line-height: 1.8;
}
.sent-history > .inline-error {
  text-align: center;
  padding: 28px 16px;
}
/* Small refinements for the catalogue; shared follow cards retain their layout. */
.matches-list .day-heading {
  padding-inline: 4px;
  margin-bottom: 4px;
  align-items: baseline;
}
.matches-list .day-heading span:first-child {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: -0.15px;
}
.matches-list .day-heading span:last-child {
  font-size: 11px;
  opacity: 0.85;
}
.matches-list .day-group + .day-group {
  margin-top: 26px;
}
.matches-list .event-card {
  box-shadow: 0 4px 20px rgb(36 40 35 / 2%);
}
.matches-list .event-match {
  padding: 24px 22px 21px;
  gap: 16px;
}
.matches-list .event-team-names h3 {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.35px;
  font-weight: 600;
}
.matches-list .event-team-names p {
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.65;
}
.matches-list .event-time {
  align-self: flex-start;
  padding-top: 2px;
  min-width: 64px;
}
.matches-list .event-time strong {
  font-size: 23px;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.matches-list .event-time small {
  font-size: 9px;
  margin-top: 4px;
}
.matches-list .event-sale {
  margin-inline: 22px;
  padding: 15px 0 18px;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}
.matches-list .event-sale-price {
  font-size: 11px;
}
@media (min-width: 768px) {
  .matches-list .event-match {
    padding: 28px;
  }
  .matches-list .event-sale {
    margin-inline: 28px;
  }
}
/* Keep the overall rhythm while attaching each date to its own match card. */
.matches-list .day-heading {
  margin-bottom: -4px;
}
.matches-list .day-group + .day-group {
  margin-top: 34px;
}
.unified-flow-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  background: var(--surface);
  border: 0;
  border-radius: var(--widget-radius);
}
.unified-flow-header > span:not(.flow-header-spacer),
.unified-flow-header > h2 {
  text-align: center;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.unified-flow-header .icon-button,
.flow-header-spacer {
  width: 40px;
  height: 40px;
}
.unified-flow-header .icon-button {
  background: var(--surface-alt);
  border-radius: 50%;
}
.unified-flow-header .icon {
  width: 19px;
  height: 19px;
}
.event-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.9;
  object-fit: cover;
  background: var(--surface-alt);
}
.detail-poster {
  border-radius: var(--widget-radius);
  object-fit: contain;
}
.subscription-scroll .event-poster {
  max-height: 140px;
}
@media (min-width: 768px) {
  .event-card .event-poster {
    max-height: 220px;
  }
}
.club-badge:has(.team-crest) {
  position: relative;
  background: transparent;
  padding: 4px;
}
.team-crest {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.crest-fallback {
  display: none;
}
.crest-unavailable .team-crest {
  display: none;
}
.crest-unavailable .crest-fallback {
  display: block;
}
.event-detail-card > .detail-poster {
  grid-column: 1 / -1;
}
/* Follow creation: clear entry choices, compact clubs, existing fixtures first. */
@media (max-width: 767px) {
  input,
  select,
  textarea,
  .search-field input {
    font-size: 16px;
  }
}
.follow-redesign {
  max-width: 720px;
  margin-inline: auto;
}
.follow-redesign .follow-page-card {
  padding: 0;
}
.follow-intro {
  margin: 4px 0 22px;
}
.follow-intro h1 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.3;
}
.follow-intro p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 8px;
}
.follow-type-options {
  display: grid;
  gap: 14px;
}
.follow-type-options > button {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  gap: 6px 16px;
  padding: 24px;
  text-align: left;
  background: var(--surface);
  border-radius: var(--widget-radius);
  min-height: 120px;
  align-items: center;
}
.follow-type-options > button > .icon:first-child {
  grid-row: 1/3;
  width: 26px;
  height: 26px;
}
.follow-type-options strong {
  font-size: 17px;
  font-weight: 600;
}
.follow-type-options span {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.follow-type-options > button > .icon:last-child {
  grid-column: 3;
  grid-row: 1/3;
  width: 18px;
  color: var(--muted);
}
.follow-redesign .follow-progress {
  margin-bottom: 24px;
}
.follow-redesign .progress-caption {
  font-size: 11px;
  margin-bottom: 9px;
}
.follow-redesign .search-field {
  margin-bottom: 18px;
  min-height: 52px;
}
.follow-redesign .search-field input {
  font-size: 16px;
}
.follow-redesign .team-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.follow-redesign .team-choice-grid .team-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 0;
  min-height: 112px;
  padding: 16px 8px;
  border-radius: 20px;
}
.follow-redesign .team-choice-grid .team-result > span:not(.club-badge) {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.follow-redesign .team-result > .icon:last-child {
  display: none;
}
.follow-redesign .team-result .club-badge {
  width: 36px;
  height: 40px;
}
.team-choice-grid > .loading-list,
.team-choice-grid > .form-error,
.team-choice-grid > .secondary-caption,
.team-choice-grid > .button {
  grid-column: 1/-1;
}
.follow-redesign .selected-team {
  background: var(--surface);
  border-radius: 18px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}
.follow-redesign .selected-team > span:not(.club-badge) {
  flex: 1;
}
.manual-match-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-alt);
  width: 100%;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  margin-bottom: 18px;
}
.manual-match-entry strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.manual-match-entry small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.manual-match-entry > .icon {
  width: 17px;
}
.follow-match-results {
  display: grid;
  gap: 10px;
}
.follow-match-choice {
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border-radius: 22px;
  text-align: left;
}
.follow-match-choice .badge-pair {
  grid-column: 1;
}
.follow-match-choice strong {
  grid-column: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.follow-match-choice > span {
  grid-column: 1;
  font-size: 11px;
  color: var(--muted);
}
.follow-match-choice > .icon {
  grid-column: 2;
  grid-row: 1/4;
  align-self: center;
  width: 16px;
  color: var(--muted);
}
.follow-match-choice:disabled {
  opacity: 0.55;
}
.match-choice-empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.follow-redesign .selected-target,
.reminder-widget {
  background: var(--surface);
  border-radius: var(--widget-radius);
  padding: 22px;
  margin-bottom: 16px;
}
.reminder-widget h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.reminder-widget > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.follow-redesign .follow-page-actions {
  padding-top: 12px;
  margin-top: 14px;
  gap: 12px;
}
@media (max-width: 350px) {
  .follow-redesign .team-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.follow-redesign {
  padding-bottom: calc(98px + var(--safe-bottom));
}
.flow-screen .follow-redesign .follow-page-actions {
  position: fixed;
  z-index: 35;
  left: var(--screen-gutter);
  right: var(--screen-gutter);
  bottom: 0;
  width: auto;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 0 calc(16px + var(--safe-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--page);
}
.follow-redesign .follow-page-actions .button {
  min-height: 52px;
  border-radius: 18px;
  font-size: 14px;
}
.follow-type-options > button.selected {
  background: var(--ink);
  color: var(--surface);
}
.follow-type-options > button.selected span {
  color: rgb(255 255 255 / 70%);
}
.follow-type-options > button > .icon:last-child {
  opacity: 0;
}
.follow-type-options > button.selected > .icon:last-child {
  opacity: 1;
  color: var(--surface);
}
.follow-match-choice.selected {
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.follow-progress.stage-1 .progress-track > span {
  width: 33.3333%;
}
.follow-progress.stage-2 .progress-track > span {
  width: 66.6667%;
}
.follow-progress.stage-3 .progress-track > span {
  width: 100%;
}
.follow-redesign .team-choice-grid .team-result.selected {
  background: var(--ink);
  color: var(--surface);
}
.follow-redesign .team-result.selected .crest-fallback {
  color: var(--surface);
}
.follow-redesign .follow-step-heading {
  display: block;
  margin: 0 0 24px;
  padding: 0;
  background: none;
  border: 0;
}
.follow-step-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.follow-step-title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.follow-step-title > span {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.follow-step-heading > p {
  margin: 12px 0 0;
  min-height: 40px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
/* Shared header height across main screens and full-screen flows. */
:root {
  --app-header-height: 74px;
}
.topbar,
.unified-flow-header {
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  box-sizing: border-box;
}
.unified-flow-header .icon-button,
.unified-flow-header .icon-button:hover,
.unified-flow-header .icon-button:active {
  background: transparent;
}
@media (max-width: 800px) {
  :root {
    --app-header-height: 72px;
  }
}
@media (max-width: 360px) {
  :root {
    --app-header-height: 66px;
  }
}
:root {
  --app-nav-height: 76px;
}
@media (max-width: 360px) {
  :root {
    --app-nav-height: 72px;
  }
}
@media (max-width: 800px) {
  .bottom-nav {
    height: var(--app-nav-height);
    min-height: var(--app-nav-height);
  }
}
.flow-screen .follow-redesign .follow-page-actions {
  position: fixed;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: calc(var(--nav-offset) + var(--safe-bottom));
  width: calc(100% - var(--screen-gutter) * 2);
  max-width: 520px;
  height: var(--app-nav-height);
  min-height: var(--app-nav-height);
  padding: 0;
  margin: 0;
  background: var(--page);
  border-radius: 26px;
}
.flow-screen .follow-redesign .follow-page-actions .button {
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 14px;
  border-radius: 26px;
}
.follow-redesign {
  padding-bottom: calc(var(--app-nav-height) + var(--nav-offset) + var(--safe-bottom) + 24px);
}
/* Compact club selection: quieter proportions, readable names and aligned crests. */
.follow-redesign .team-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.follow-redesign .team-choice-grid .team-result {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  min-height: 82px;
  padding: 16px 12px;
  gap: 10px;
  border-radius: 20px;
  transition:
    background var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}
.follow-redesign .team-choice-grid .team-result .club-badge {
  flex-shrink: 0;
  width: 32px;
  height: 38px;
  padding: 2px;
}
.follow-redesign .team-choice-grid .team-result > span:not(.club-badge) {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: -0.15px;
}
.follow-redesign .team-choice-grid > .button {
  background: transparent;
  color: var(--muted);
  min-height: 46px;
  padding: 12px;
  font-size: 12px;
  font-weight: 500;
}
.follow-redesign .search-field {
  border-radius: 18px;
  min-height: 54px;
  padding-inline: 16px;
  margin-bottom: 14px;
}
.follow-redesign .search-field > .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
@media (min-width: 600px) {
  .follow-redesign .team-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 350px) {
  .follow-redesign .team-choice-grid .team-result {
    padding: 14px 10px;
    gap: 8px;
  }
  .follow-redesign .team-choice-grid .team-result > span:not(.club-badge) {
    font-size: 11px;
  }
}
/* Follow results are rows in one surface, rather than nested cards. */
.subscription-scroll .event-card,
.subscription-scroll .event-card:hover,
.subscription-scroll .event-card:active {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.subscription-scroll .event-match {
  padding: 14px 0 12px;
}
.subscription-scroll .event-sale {
  margin-inline: 0;
  border-top: 0;
  padding: 0 0 18px;
}
.subscription-scroll .event-card + .event-card {
  border-top: 1px solid var(--line);
}
.subscription-scroll .day-group + .day-group {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.subscription-scroll .day-heading {
  padding: 0;
}
