

.matches-command-page .matches-command-hero { min-height: auto; padding-block: 1.25rem; }
.matches-command-page .matches-command-copy h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.matches-command-page .x-search-bar { margin-block: .8rem; }
.og-match-filter-drawer .matches-command-filters { margin: .7rem; }

.matches-command-page .og-match-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "match actions" "readiness readiness";
  gap: .5rem .75rem;
  padding-block: .7rem;
}

.matches-command-page .og-match-open { grid-area: match; }
.matches-command-page .og-match-actions { grid-area: actions; }

.og-match-readiness {
  grid-area: readiness;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(174, 205, 190, .1);
  border-radius: .5rem;
  background: rgba(174, 205, 190, .08);
}

.og-match-readiness-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .12rem .4rem;
  align-items: center;
  min-width: 0;
  padding: .5rem .55rem;
  background: rgba(6, 17, 14, .92);
}

.og-match-readiness-stage i {
  grid-row: 1 / 3;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: rgba(218, 229, 223, .3);
}

.og-match-readiness-stage.is-ready i {
  background: #55d39a;
  box-shadow: 0 0 0 3px rgba(85, 211, 154, .08);
}

.og-match-readiness-stage b,
.og-match-readiness-stage small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.og-match-readiness-stage b {
  color: rgba(235, 244, 239, .74);
  font-size: .63rem;
  font-weight: 720;
}

.og-match-readiness-stage small {
  color: rgba(218, 229, 223, .42);
  font-size: .57rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.og-match-readiness-stage.is-ready small { color: rgba(85, 211, 154, .72); }

.app-view[data-view="matches"] > .section {
  margin-bottom: clamp(34px, 4.6vw, 66px);
}

.app-view[data-view="matches"] > .section.section-tight {
  margin-bottom: clamp(24px, 3vw, 42px);
}

.matches-paywall-gate {
  display: grid;
  gap: 16px;
  padding-top: clamp(18px, 3vw, 38px);
}

.matches-paywall-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 40px);
  border: var(--og-border-subtle);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 9, 7, 0.94), rgba(5, 9, 7, 0.74) 52%, rgba(5, 9, 7, 0.54)),
    linear-gradient(180deg, rgba(5, 9, 7, 0.18), rgba(5, 9, 7, 0.9)),
    url("../../public/media/brand/og-home-pitch-photo-features.webp") center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(244, 255, 251, 0.08),
    0 42px 110px rgba(0, 0, 0, 0.38);
}

.matches-paywall-hero::before, .matches-command-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(157, 255, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 255, 232, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.66), transparent 74%);
  pointer-events: none;
}

.matches-paywall-hero > *, .matches-command-hero > * {
  position: relative;
  z-index: 1;
}

.matches-paywall-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.matches-paywall-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--og-text);
  font-size: clamp(2.15rem, 5.4vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.matches-paywall-copy p {
  max-width: 56ch;
  margin: 0;
  color: var(--og-muted-text);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.55;
}

.matches-paywall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.matches-paywall-card {
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(88, 224, 196, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(88, 224, 196, 0.1), rgba(88, 224, 196, 0.035)),
    rgba(7, 17, 15, 0.82);
  backdrop-filter: blur(12px) saturate(130%);
}

.matches-paywall-card span {
  color: rgba(157, 255, 232, 0.92);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.matches-paywall-card strong {
  color: var(--og-text);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.05;
}

.matches-paywall-card p {
  margin: 0;
  color: var(--og-muted-text);
  line-height: 1.5;
}

.matches-paywall-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.matches-paywall-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(123, 154, 184, 0.14);
  border-radius: 999px;
  color: var(--og-muted-text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 860px) {
  .og-match-readiness { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .matches-command-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}

@media (max-width: 560px) {
  .matches-command-page .og-match-row {
    grid-template-columns: 1fr;
    grid-template-areas: "match" "readiness" "actions";
  }

  .matches-command-page .og-match-actions { padding-left: 3.85rem; }

  .og-match-readiness {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 3.85rem;
  }

  .og-match-readiness-stage { padding: .45rem; }
  .og-match-readiness-stage b { font-size: .58rem; }
  .og-match-readiness-stage small { font-size: .52rem; }

  [data-calendar-v1-preview] .matches-feed-filters {
    max-width: 100%;
    min-width: 0;
  }

  .matches-command-sequence strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .matches-command-sequence {
    grid-template-columns: 1fr;
  }

  [data-calendar-v1-preview] .matches-feed-filters .cta-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  [data-calendar-v1-preview] .matches-feed-filters .compact-button {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }}

.matches-typeahead {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: min(420px, 58vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(123, 154, 184, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(10, 22, 26, 0.98), rgba(7, 14, 22, 0.98)),
    radial-gradient(circle at 94% 4%, rgba(78, 222, 163, 0.08), transparent 34%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px) saturate(130%);
}

.matches-typeahead.is-open {
  display: grid;
  gap: 6px;
}

.matches-typeahead-option {
  display: grid;
  grid-template-columns: minmax(74px, 0.28fr) minmax(0, 1fr);
  gap: 4px 10px;
  width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(123, 154, 184, 0.11);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: 160ms ease;
}

.matches-typeahead-option:hover, .matches-typeahead-option:focus {
  outline: none;
  border-color: rgba(78, 222, 163, 0.26);
  background: rgba(78, 222, 163, 0.08);
}

.matches-typeahead-option span {
  grid-row: span 2;
  align-self: center;
  color: var(--mint);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.matches-typeahead-option strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matches-typeahead-option small, .matches-typeahead-empty {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.matches-typeahead-empty {
  padding: 12px;
}

.matches-feed-modes {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(130, 255, 220, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(244, 255, 251, 0.035), rgba(244, 255, 251, 0.016)),
    rgba(7, 17, 15, 0.72);
  scrollbar-width: none;
}

.matches-feed-modes::-webkit-scrollbar {
  display: none;
}

.matches-feed-modes a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: #cfe5de;
  background: rgba(244, 255, 251, 0.045);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  transition: 160ms ease;
}

.matches-feed-modes a:hover, .matches-feed-modes a:focus-visible {
  color: var(--ink);
  border-color: rgba(88, 224, 196, 0.22);
  background: rgba(88, 224, 196, 0.08);
}

.matches-feed-modes a.is-active, .matches-feed-modes a[aria-current="page"] {
  color: #04110e;
  background: linear-gradient(135deg, #9dffe8, #58e0c4);
  box-shadow:
    0 0 0 1px rgba(157, 255, 232, 0.14),
    0 12px 28px rgba(88, 224, 196, 0.2);
}

.matches-feed-modes b {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.72rem;
}

.matches-feed-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 16px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(88, 224, 196, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(244, 255, 251, 0.046), rgba(244, 255, 251, 0.016)),
    rgba(7, 17, 15, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(130, 255, 220, 0.1),
    0 18px 48px rgba(0, 0, 0, 0.18);
}

.matches-feed-context-copy {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
}

.matches-feed-context-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.matches-feed-context-copy p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.matches-feed-context-stats {
  margin: 4px 0 0;
}

.matches-feed-lead-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  align-content: center;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(88, 224, 196, 0.12), transparent 34%),
    rgba(244, 255, 251, 0.052);
  box-shadow: inset 0 0 0 1px rgba(130, 255, 220, 0.1);
}

.matches-feed-lead-card strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.14;
}

.matches-feed-lead-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.matches-feed-lead-card .compact-button {
  width: fit-content;
}

.matches-feed-lead-card-empty {
  border: 1px dashed rgba(130, 255, 220, 0.18);
  background: rgba(244, 255, 251, 0.035);
}

.matches-feed-filters {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(88, 224, 196, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(244, 255, 251, 0.045), rgba(244, 255, 251, 0.018)),
    rgba(11, 29, 25, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(130, 255, 220, 0.1),
    0 18px 46px rgba(0, 0, 0, 0.18);
}

.matches-feed-filter-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.matches-feed-filter-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.04rem;
}

.matches-feed-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.matches-feed-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
}

.matches-feed-filter-grid label {
  display: grid;
  gap: 7px;
  padding: 8px;
  border-radius: 18px;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.matches-feed-filter-grid span {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.matches-feed-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(130, 255, 220, 0.12);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(7, 17, 15, 0.9);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
}

.matches-feed-filter-grid select:focus {
  outline: none;
  border-color: rgba(88, 224, 196, 0.42);
  box-shadow: var(--focus-ring);
}

.matches-feed-filter-active {
  background: rgba(88, 224, 196, 0.055);
  box-shadow: inset 0 0 0 1px rgba(88, 224, 196, 0.16);
}

.matches-feed-filter-active span {
  color: rgba(157, 255, 232, 0.92);
}

.matches-feed-filter-active select {
  border-color: rgba(88, 224, 196, 0.28);
  background:
    linear-gradient(180deg, rgba(88, 224, 196, 0.08), rgba(88, 224, 196, 0.035)),
    rgba(7, 17, 15, 0.92);
}

[data-calendar-v1-preview] .matches-feed-compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 12px;
}

[data-calendar-v1-preview] .matches-feed-compact-cell {
  border-radius: var(--og-radius-card);
  background: rgba(244, 255, 251, 0.04);
}

.matches-command-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.matches-command-sequence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.matches-command-sequence {
  max-width: 620px;
  margin-top: 4px;
}

.matches-command-sequence span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(132, 255, 224, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 255, 251, 0.055), rgba(244, 255, 251, 0.018)),
    rgba(7, 17, 15, 0.64);
}

.matches-command-sequence small {
  color: rgba(157, 255, 232, 0.78);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.matches-command-sequence strong {
  color: var(--og-text);
  font-size: 0.86rem;
  line-height: 1.14;
}

.matches-feed-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.matches-feed-compact-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 68px;
  align-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(244, 255, 251, 0.045);
  box-shadow: inset 0 0 0 1px rgba(130, 255, 220, 0.08);
}

.matches-feed-compact-cell b {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matches-feed-compact-cell strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.matches-feed-compact-action {
  background:
    radial-gradient(circle at 15% 0%, rgba(88, 224, 196, 0.16), transparent 42%),
    rgba(16, 31, 27, 0.62);
  box-shadow: inset 0 0 0 1px rgba(88, 224, 196, 0.16);
}

.matches-feed-compact-action strong {
  color: var(--signal-mint);
}

.matches-feed-compact-wide {
  grid-column: span 2;
}

@media (max-width: 780px) {

  .matches-feed-filters {
    max-width: 100%;
    min-width: 0;
  }

  .matches-paywall-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .matches-paywall-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .matches-paywall-actions {
    align-items: stretch;
  }

  .matches-paywall-actions .button, .matches-paywall-actions .ghost-button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .matches-paywall-card {
    align-content: start;
    padding: 16px;
  }

  .matches-feed-filter-head {
    align-items: stretch;
    flex-direction: column;
  }

  .matches-feed-filter-actions {
    justify-content: flex-start;
  }

  .matches-feed-filter-actions .ghost-button, .matches-feed-filter-actions .text-link {
    min-height: 44px;
  }

  .matches-feed-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matches-feed-filter-grid select {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .matches-feed-context {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 22px;
  }

  .matches-feed-context-copy h2 {
    font-size: clamp(1.42rem, 7vw, 1.9rem);
  }

  .matches-feed-lead-card .compact-button {
    width: 100%;
    justify-content: center;
  }

  .matches-typeahead {
    max-height: 52vh;
    border-radius: 14px;
  }

  .matches-typeahead-option {
    grid-template-columns: 1fr;
  }

  .matches-typeahead-option span {
    grid-row: auto;
  }

  .matches-feed-compact-grid {
    grid-template-columns: 1fr;
  }

  .matches-feed-compact-wide {
    grid-column: auto;
  }

  .matches-feed-compact-cell {
    min-height: 58px;
    padding: 10px;
  }}

@media (max-width: 620px) {

  .matches-feed-filters {
    height: auto;
    overflow: visible;
    padding: 16px;
    border-radius: 20px;
  }

  .matches-feed-filter-grid {
    grid-template-columns: 1fr;
  }

  .matches-feed-filter-actions, .matches-feed-filter-actions .ghost-button, .matches-feed-filter-actions .text-link {
    width: 100%;
  }

  .matches-feed-filter-actions {
    display: grid;
  }

  .matches-feed-modes {
    margin-inline: -2px;
    padding: 6px;
    border-radius: 18px;
  }

  .matches-feed-modes a {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .matches-feed-modes b {
    min-width: 22px;
    height: 22px;
  }}
