.token-market {
  --tm-ink: #191923;
  --tm-muted: #60616e;
  --tm-line: #e5e5ec;
  --tm-blue: #355bdc;
  color: var(--tm-ink);
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}

.token-market a {
  text-decoration: none;
}

.token-market button {
  cursor: pointer;
}

.token-market button:disabled {
  cursor: default;
  opacity: .46;
}

.token-market :focus-visible {
  outline-offset: 3px;
  outline: 2px solid #4165ed;
}

.tm-muted {
  color: var(--tm-muted);
}

.tm-sr {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.tm-button, .tm-icon-button {
  border: 1px solid var(--tm-line);
  color: var(--tm-ink);
  white-space: nowrap;
  background: #fff;
  border-radius: 18px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
}

.tm-button:hover, .tm-icon-button:hover {
  background: #f5f6fb;
}

.tm-button-dark {
  color: #fff;
  background: #191923;
  border-color: #191923;
}

.tm-button-dark:hover {
  background: #343443;
}

.tm-icon-button {
  border-color: rgba(0, 0, 0, 0);
  width: 32px;
  height: 32px;
  padding: 0;
}

.tm-button svg, .tm-icon-button svg {
  width: 15px;
  height: 15px;
}

.tm-copy-control {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.tm-copy-icon {
  color: #747684;
  width: 22px;
  height: 22px;
}

.tm-copy-icon svg {
  width: 12px;
  height: 12px;
}

.tm-hero {
  text-align: center;
  padding: 48px 18px 0;
  position: relative;
}

.tm-hero h1, .tm-hero-subtitle {
  z-index: 1;
  margin: 0;
  position: relative;
}

.tm-hero h1 {
  letter-spacing: .1px;
  font-size: 24px;
  font-weight: 650;
  line-height: 34px;
}

.tm-hero h1 strong {
  color: #3960e9;
  font-weight: 650;
}

.tm-hero-subtitle {
  color: #747681;
  font-size: 23px;
  font-weight: 600;
  line-height: 33px;
}

.tm-sparks {
  pointer-events: none;
  width: min(760px, 94%);
  height: 211px;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.tm-sparks svg {
  width: 100%;
  height: 100%;
}

.tm-spark {
  background: #fff;
  border-radius: 2px;
  position: absolute;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(36, 36, 55, .09);
}

.tm-spark img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.tm-spark-logo {
  border-radius: 5px;
}

.tm-spark-logo img {
  object-fit: contain;
  padding: 4px;
}

.tm-hero-search {
  z-index: 5;
  text-align: left;
  width: min(450px, 100%);
  margin: 32px auto 0;
  position: relative;
}

.tm-searchbox {
  border: 1px solid var(--tm-line);
  background: #fff;
  border-radius: 30px;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 17px;
  display: flex;
}

.tm-searchbox:focus-within {
  border-color: #a7baf8;
  box-shadow: 0 2px 13px rgba(64, 101, 173, .063);
}

.tm-searchbox svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.tm-list-search input, .tm-searchbox input {
  background: none;
  border: 0;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.tm-list-search input:focus, .tm-searchbox input:focus {
  outline: none;
}

.tm-suggestions {
  background: #fff;
  border: 1px solid #e5e5eb;
  border-radius: 15px;
  padding: 7px;
  position: absolute;
  top: calc(100% + 6px);
  bottom: auto;
  left: 0;
  right: 0;
  box-shadow: 0 9px 29px rgba(34, 48, 75, .118);
}

.tm-suggestions > p {
  color: var(--tm-muted);
  margin: 5px 9px;
  font-size: 12px;
}

.tm-suggestion {
  border-radius: 8px;
  align-items: center;
  gap: 9px;
  padding: 5px 7px;
  display: flex;
}

.tm-suggestion:hover, .tm-suggestion[aria-selected="true"] {
  background: #f1f4ff;
}

.tm-suggestion > svg {
  width: 15px;
  height: 15px;
  margin-inline-start: auto;
}

.tm-suggestion small {
  color: var(--tm-muted);
  overflow-wrap: anywhere;
  font-size: 11px;
  display: block;
}

.tm-deck {
  isolation: isolate;
  justify-content: center;
  align-items: center;
  width: min(870px, 92%);
  height: 218px;
  margin: 50px auto 0;
  display: flex;
  position: relative;
}

.tm-deck-peek {
  z-index: -1;
  background-position: 50%;
  background-size: cover;
  border-radius: 14px;
  width: 19%;
  position: absolute;
  top: 10%;
  bottom: 10%;
  overflow: hidden;
}

.tm-deck-prev {
  background-position: 22%;
  left: 0;
}

.tm-deck-next {
  background-position: 78%;
  right: 0;
}

.tm-deck-peek svg {
  color: #fff;
  opacity: 0;
  background: rgba(25, 25, 35, .627);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 4px;
  position: absolute;
  top: 42%;
}

.tm-deck-prev svg {
  left: 7px;
}

.tm-deck-next svg {
  right: 7px;
}

.tm-deck-peek:hover svg {
  opacity: 1;
}

.tm-deck-peek:focus-visible svg {
  opacity: 1;
}

.tm-feature {
  background: linear-gradient(155deg, #a6c3ed, #e6ecfa 21%, #f4f4f4 45%, #d5c2b9 70%, #d8e5ee 90%, #6682bd);
  border-radius: 21px;
  width: 90.8%;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(23, 28, 58, .106), inset 0 1px 2px rgba(255, 255, 255, .82);
}

.tm-feature, .tm-feature-face {
  height: 100%;
  position: relative;
}

.tm-feature-face {
  isolation: isolate;
  text-align: left;
  color: #fff;
  background-color: #2d59d8;
  background-position: 50%;
  background-size: cover;
  border-radius: 15px;
  align-items: center;
  display: flex;
  overflow: hidden;
}

.tm-feature-face:before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgba(23, 61, 149, .36), rgba(0, 0, 0, 0) 70%);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.tm-feature-photo:before {
  background: linear-gradient(90deg, rgba(12, 32, 42, .79), rgba(0, 0, 0, 0) 83%);
}

.tm-feature-copy {
  width: min(58%, 430px);
  padding: 0 0 0 30px;
}

.tm-feature h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 25px;
  font-weight: 630;
  line-height: 1.3;
}

.tm-feature p {
  color: #fff;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 7px 0 24px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.tm-deck-rotation {
  color: #fff;
  background: rgba(21, 24, 41, .463);
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
  position: absolute;
  bottom: 9px;
  right: 9px;
}

.tm-deck-rotation svg {
  width: 13px;
  height: 13px;
}

.tm-legal {
  color: var(--tm-muted);
  margin: 14px 0 0;
  font-size: 12px;
}

.tm-legal a {
  text-underline-offset: 2px;
  text-decoration: underline;
}

.tm-catalog {
  scroll-margin-top: calc(var(--token-portal-header-height, 72px) + 8px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  margin-top: 92px;
  padding: 0 5.3vw 90px 48px;
  display: grid;
}

.tm-catalog.tm-with-filters {
  grid-template-columns: minmax(0, 1fr) 254px;
}

.tm-catalog-results {
  min-width: 0;
}

.tm-catalog-head, .tm-filter-head {
  align-items: center;
  gap: 10px;
  min-height: 43px;
  margin-bottom: 14px;
  display: flex;
}

.tm-catalog-head {
  top: var(--token-portal-header-height, 72px);
  z-index: 7;
  background: #fff;
  position: sticky;
  box-shadow: 0 -9px #fff, 0 7px #fff;
}

.tm-catalog-head h2 {
  letter-spacing: -.6px;
  font-size: 27px;
  font-weight: 620;
  line-height: 1.2;
}

.tm-count {
  color: var(--tm-muted);
  background: #f3f3f6;
  border-radius: 14px;
  flex: none;
  padding: 2px 8px;
  font-size: 12px;
}

.tm-list-tools {
  gap: 15px;
  margin-inline-start: auto;
}

.tm-list-search, .tm-list-tools {
  align-items: center;
  min-width: 0;
  display: flex;
}

.tm-list-search {
  width: 200px;
  height: 40px;
  color: var(--tm-muted);
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 22px;
  gap: 7px;
  padding: 0 13px;
}

.tm-list-search:focus-within {
  border-color: #a7baf8;
}

.tm-list-search button {
  place-items: center;
  padding: 0;
  display: grid;
}

.tm-list-search svg {
  color: #767889;
  width: 14px;
  height: 14px;
}

.tm-view-switch {
  background: #f1f1f3;
  border-radius: 24px;
  align-items: center;
  padding: 3px;
  display: flex;
}

.tm-view-switch button {
  width: 33px;
  height: 33px;
  color: var(--tm-muted);
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.tm-view-switch button[aria-pressed="true"] {
  color: var(--tm-ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .043);
}

.tm-view-switch svg {
  width: 15px;
  height: 15px;
}

.tm-filter-button {
  border: 1px solid var(--tm-line);
  width: 58px;
  height: 40px;
  color: var(--tm-muted);
  border-radius: 22px;
  flex: none;
  place-items: center;
  display: grid;
}

.tm-filter-button[aria-expanded="true"] {
  color: #fff;
  background: #191923;
  border-color: #191923;
}

.tm-filter-button svg {
  width: 18px;
  height: 18px;
}

.tm-filters {
  top: calc(var(--token-portal-header-height, 72px) + 10px);
  max-height: calc(100vh - var(--token-portal-header-height, 72px) - 15px);
  scrollbar-width: thin;
  min-width: 0;
  padding: 0 3px;
  position: sticky;
  overflow-y: auto;
}

.tm-filter-head {
  justify-content: space-between;
}

.tm-filter-head h2 {
  font-size: 16px;
  font-weight: 620;
}

.tm-filter-head > div {
  gap: 2px;
  display: flex;
}

.tm-filter-group {
  padding-bottom: 8px;
}

.tm-filter-group summary {
  cursor: pointer;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  font-weight: 540;
  list-style: none;
  display: flex;
}

.tm-filter-group summary::-webkit-details-marker {
  display: none;
}

.tm-filter-group summary svg {
  width: 15px;
  height: 15px;
}

.tm-filter-group summary svg:last-child {
  margin-inline-start: auto;
}

.tm-filter-group[open] summary svg:last-child {
  transform: rotate(90deg);
}

.tm-filter-choices {
  border-inline-start: 1px solid var(--tm-line);
  justify-items: start;
  gap: 2px;
  margin: 2px 0 11px 8px;
  padding-inline-start: 12px;
  display: grid;
}

.tm-filter-choices button {
  text-align: left;
  color: var(--tm-muted);
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 13px;
}

.tm-filter-choices button:hover {
  background: #f5f6fa;
}

.tm-filter-choices button[aria-pressed="true"] {
  color: var(--tm-blue);
  background: #eef2fe;
}

.tm-filter-chips {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 11px;
  display: flex;
}

.tm-filter-chips button {
  color: var(--tm-blue);
  overflow-wrap: anywhere;
  background: #f0f4ff;
  border-radius: 15px;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  font-size: 12px;
  display: inline-flex;
}

.tm-filter-chips svg {
  width: 12px;
  height: 12px;
}

.tm-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
  display: grid;
}

.tm-with-filters .tm-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-card {
  border: 1px solid var(--tm-line);
  background: #fff;
  border-radius: 20px;
  flex-direction: column;
  min-width: 0;
  padding: 22px 20px 17px;
  display: flex;
}

.tm-card:hover {
  border-color: #a7baf8;
  box-shadow: 0 3px 12px rgba(41, 79, 155, .043);
}

.tm-card:focus-within {
  border-color: #a7baf8;
  box-shadow: 0 3px 12px rgba(41, 79, 155, .043);
}

.tm-card-top {
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  display: flex;
}

.tm-vendor {
  object-fit: contain;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 3px;
  display: inline-grid;
}

.tm-vendor-letter {
  color: var(--tm-blue);
  background: #f0f3fd;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
}

.tm-tag {
  border-radius: 12px;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.4;
  display: inline-flex;
}

.tm-tag-ready {
  color: #245d37;
  background: #e6f3ea;
}

.tm-tag-pending {
  color: #645026;
  background: #f8f1e7;
}

.tm-compare-add {
  color: #355ed0;
  background: #eff4fd;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline-start: auto;
  display: grid;
}

.tm-compare-add[aria-pressed="true"] {
  background: var(--tm-blue);
  color: #fff;
}

.tm-compare-add svg {
  width: 16px;
  height: 16px;
}

.tm-card h3 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 16px;
  font-weight: 630;
  line-height: 1.45;
}

.tm-card h3 a:hover, .tm-table-name:hover {
  color: var(--tm-blue);
}

.tm-model-id {
  color: var(--tm-muted);
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: flex;
}

.tm-model-id code {
  font-family: inherit;
}

.tm-card-description {
  min-height: 44px;
  color: var(--tm-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 11px 0 0;
  font-size: 13px;
  line-height: 22px;
  display: -webkit-box;
  overflow: hidden;
}

.tm-modalities {
  color: #494b57;
  align-items: center;
  gap: 5px;
  margin: 9px 0 7px;
  display: inline-flex;
}

.tm-modalities svg {
  width: 15px;
  height: 15px;
}

.tm-profile {
  align-items: center;
  min-width: 0;
  min-height: 24px;
  display: flex;
}

.tm-profile select, .tm-profile > span {
  color: #50525e;
  overflow-wrap: anywhere;
  background: #f3f4f8;
  border: 0;
  border-radius: 5px;
  max-width: 100%;
  padding: 2px 5px;
  font-size: 12px;
}

.tm-card-prices {
  color: var(--tm-muted);
  padding: 6px 0 10px;
  font-size: 12px;
}

.tm-price-compact dl > div, .tm-price-full dl > div, .tm-reference-grid dl > div {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  display: flex;
}

.tm-price-compact dt {
  color: var(--tm-muted);
}

.tm-price-compact dd {
  color: var(--tm-ink);
}

.tm-price-compact small, .tm-v1-price small {
  color: var(--tm-muted);
}

.tm-card-specs {
  border-top: 1px solid var(--tm-line);
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
}

.tm-card-specs > div {
  flex-direction: column-reverse;
  display: flex;
}

.tm-card-specs > div:last-child {
  text-align: right;
}

.tm-card-specs dt {
  color: var(--tm-muted);
  font-size: 11px;
}

.tm-card-specs dd {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.tm-card-links {
  color: var(--tm-blue);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  display: flex;
}

.tm-card-links > a:not(.tm-button):hover {
  text-decoration: underline;
}

.tm-card-links .tm-button {
  padding: 4px 8px;
  font-size: 12px;
}

.tm-empty, .tm-notice {
  border: 1px solid var(--tm-line);
  color: var(--tm-muted);
  border-radius: 12px;
  margin: 8px 0 14px;
  padding: 14px;
}

.tm-notice-warn {
  color: #614c24;
  background: #fffaf0;
  border-color: #ebd6ac;
}

.tm-notice .tm-button {
  margin-inline-start: 6px;
}

.tm-empty {
  text-align: center;
  border-style: dashed;
  padding: 30px 16px;
}

.tm-empty h1, .tm-empty h3 {
  margin-bottom: 8px;
  font-weight: 600;
}

.tm-catalog-footer {
  color: var(--tm-muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  display: flex;
}

.tm-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.tm-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  min-width: 570px;
  font-size: 13px;
}

.tm-table td, .tm-table th {
  vertical-align: middle;
  border-bottom: 1px solid #ebebef;
  padding: 12px 13px;
}

.tm-table thead th {
  color: var(--tm-muted);
  background: #f8f9fb;
  font-weight: 570;
}

.tm-table tbody th {
  font-weight: 550;
}

.tm-table tbody tr:last-child > * {
  border-bottom: 0;
}

.tm-table-name {
  align-items: center;
  gap: 8px;
  display: flex;
}

.tm-table-name small {
  color: var(--tm-muted);
  font-weight: 400;
  display: block;
}

.tm-table-name .tm-vendor {
  width: 25px;
  height: 25px;
}

.tm-compare-dock {
  bottom: max(20px,env(safe-area-inset-bottom));
  left: calc(50% + var(--token-portal-rail-width, 200px) / 2);
  z-index: 12;
  max-width: calc(100% - var(--token-portal-rail-width, 200px) - 22px);
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dce1ef;
  border-radius: 26px;
  align-items: center;
  gap: 10px;
  padding: 8px 9px 8px 14px;
  display: flex;
  position: fixed;
  transform: translateX(-50%);
  box-shadow: 0 8px 25px rgba(29, 41, 66, .12);
}

.tm-dock-chips {
  gap: 5px;
  min-width: 0;
  max-width: 45vw;
  display: flex;
  overflow-x: auto;
}

.tm-dock-chips button {
  background: #f3f3f7;
  border-radius: 20px;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
  display: inline-flex;
}

.tm-dock-chips button svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}

.tm-workspace {
  max-width: 1440px;
  margin-inline-start: auto;
  margin-inline-end: auto;
  padding: 26px clamp(24px, 4vw, 66px) 60px;
}

.tm-inline-actions, .tm-top-links {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.tm-top-links {
  margin-bottom: 20px;
}

.tm-detail-hero, .tm-section-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.tm-detail-title {
  overflow-wrap: anywhere;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.tm-detail-title .tm-vendor {
  width: 46px;
  height: 46px;
}

.tm-compare-heading h1, .tm-detail-title h1 {
  font-size: clamp(24px, 3vw, 29px);
  font-weight: 650;
  line-height: 1.3;
}

.tm-page-intro {
  color: var(--tm-muted);
  margin: 8px 0 16px;
}

.tm-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(130px, 175px);
  align-items: start;
  gap: 22px;
  display: grid;
}

.tm-detail-panels {
  gap: 16px;
  min-width: 0;
  margin-top: 17px;
  display: grid;
}

.tm-detail-toc {
  top: calc(var(--token-portal-header-height, 72px) + 21px);
  margin-top: 17px;
  position: sticky;
}

.tm-detail-toc nav {
  border-inline-start: 1px solid var(--tm-line);
  gap: 7px;
  padding-inline-start: 13px;
  display: grid;
}

.tm-detail-toc a {
  color: var(--tm-muted);
  font-size: 13px;
}

.tm-detail-toc a:hover {
  color: var(--tm-blue);
}

.tm-panel {
  border: 1px solid var(--tm-line);
  min-width: 0;
  scroll-margin-top: calc(var(--token-portal-header-height, 72px) + 12px);
  border-radius: 16px;
  padding: 20px 24px;
}

.tm-panel h2, .tm-picker h2 {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 630;
}

.tm-panel h3 {
  margin: 8px 0 4px;
  font-size: 14px;
  font-weight: 620;
}

.tm-panel p {
  margin: 8px 0;
}

.tm-compare-facts a, .tm-panel a {
  color: var(--tm-blue);
}

.tm-compare-facts a:hover, .tm-panel a:hover {
  text-decoration: underline;
}

.tm-panel details {
  border-top: 1px solid var(--tm-line);
  overflow-wrap: anywhere;
  margin: 12px 0;
  padding-top: 9px;
}

.tm-panel summary {
  cursor: pointer;
  font-weight: 560;
}

.tm-reference-grid, .tm-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 9px;
  margin: 12px 0;
  display: grid;
}

.tm-reference-grid > div, .tm-stat-grid > div {
  border: 1px solid var(--tm-line);
  border-radius: 12px;
  padding: 12px;
}

.tm-stat-grid dt {
  color: var(--tm-muted);
  font-size: 12px;
}

.tm-stat-grid dd {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 600;
}

.tm-feature-tags {
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.tm-feature-tags li {
  overflow-wrap: anywhere;
  background: #f2f4fb;
  border-radius: 14px;
  min-width: 0;
  padding: 3px 9px;
  font-size: 12px;
}

.tm-price-full dd {
  font-weight: 560;
}

.tm-price-full dt, .tm-reference-grid dt {
  color: var(--tm-muted);
  font-size: 13px;
}

.tm-price-tier {
  margin-bottom: 8px;
}

.tm-price-full .tm-price-tier dl {
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 8px;
  display: grid;
}

.tm-price-full .tm-price-tier dl > div {
  flex-direction: column;
  gap: 2px;
}

.tm-code-tools {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.tm-code-tabs {
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}

.tm-code-tabs button {
  color: var(--tm-muted);
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 8px;
  padding: 6px 10px;
}

.tm-code-tabs button[data-state="active"] {
  color: var(--tm-blue);
  background: #f0f4ff;
  border-color: #dce3fd;
}

.tm-code pre {
  border: 1px solid var(--tm-line);
  background: #f7f8fb;
  border-radius: 10px;
  max-width: 100%;
  margin: 9px 0;
  padding: 14px;
  font-size: 12px;
  overflow: auto;
}

.tm-metrics {
  min-width: 470px;
}

.tm-compare-board {
  align-items: stretch;
  gap: 16px;
  max-width: 100%;
  margin-top: 18px;
  padding: 3px;
  display: flex;
  overflow-x: auto;
}

.tm-compare-append, .tm-compare-card {
  border: 1px solid var(--tm-line);
  background: #fff;
  border-radius: 17px;
  flex: 1;
  min-width: 236px;
  max-width: 350px;
  padding: 16px;
}

.tm-compare-card {
  flex-direction: column;
  display: flex;
}

.tm-compare-card-title {
  align-items: center;
  gap: 7px;
  display: flex;
}

.tm-compare-card-title h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 17px;
  font-weight: 620;
  line-height: 1.3;
}

.tm-compare-card-title h2 a:hover {
  color: var(--tm-blue);
}

.tm-compare-card-title .tm-icon-button {
  flex: none;
  margin-inline-start: auto;
}

.tm-compare-card > code {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.tm-compare-card .tm-profile {
  margin: 10px 0;
}

.tm-compare-card > .tm-inline-actions {
  margin-top: auto;
}

.tm-compare-facts {
  margin: 4px 0 15px;
}

.tm-compare-facts > div {
  border-bottom: 1px solid #eeeef2;
  grid-template-columns: minmax(65px, 1fr) minmax(0, 1.4fr);
  gap: 6px;
  padding: 8px 0;
  font-size: 13px;
  display: grid;
}

.tm-compare-facts > div > dt {
  color: var(--tm-muted);
}

.tm-compare-facts > div > dd {
  text-align: right;
}

.tm-compare-facts .tm-modalities {
  margin: 2px 0 0;
}

.tm-compare-facts .tm-price-compact dl > div {
  justify-content: end;
}

.tm-compare-append {
  min-height: 130px;
  color: var(--tm-muted);
  background: #f8f9fc;
  align-content: center;
  justify-items: center;
  gap: 7px;
  display: grid;
}

.tm-compare-append:hover {
  color: var(--tm-blue);
  border-color: #a7baf8;
}

.tm-compare-append svg {
  width: 18px;
  height: 18px;
}

.tm-overlay {
  z-index: 80;
  background: rgba(20, 23, 35, .333);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.tm-filter-dialog, .tm-picker {
  z-index: 81;
  background: #fff;
  position: fixed;
  overflow-y: auto;
  box-shadow: 0 15px 60px rgba(27, 34, 48, .125);
}

.tm-filter-dialog {
  inset: var(--token-portal-header-height, 72px) 0 0 auto;
  width: min(312px, 88vw);
  padding: 15px 20px;
}

.tm-picker {
  border: 1px solid var(--tm-line);
  border-radius: 17px;
  width: min(440px, 100% - 28px);
  max-height: 78vh;
  padding: 19px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tm-picker-search {
  border: 1px solid var(--tm-line);
  border-radius: 10px;
  width: 100%;
  margin: 9px 0;
  padding: 8px 10px;
}

.tm-picker-options {
  gap: 5px;
  display: grid;
}

.tm-picker-options button {
  border: 1px solid var(--tm-line);
  text-align: left;
  overflow-wrap: anywhere;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  display: flex;
}

.tm-picker-options button:hover {
  background: #f2f5ff;
}

.tm-picker-options small {
  color: var(--tm-muted);
  display: block;
}

@media (min-width: 1800px) {
  .tm-catalog, .tm-hero {
    max-width: 1600px;
    margin-inline-start: auto;
    margin-inline-end: auto;
  }

  .tm-catalog {
    padding-right: 48px;
  }
}

@media (max-width: 1450px) {
  .tm-catalog {
    gap: 32px;
    padding-right: 36px;
  }

  .tm-catalog.tm-with-filters {
    grid-template-columns: minmax(0, 1fr) 218px;
  }

  .tm-list-search {
    width: 150px;
  }

  .tm-list-tools {
    gap: 10px;
  }
}

@media (max-width: 1199px) {
  .tm-catalog, .tm-catalog.tm-with-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 28px 90px;
  }

  .tm-cards, .tm-with-filters .tm-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-filters {
    display: none;
  }

  .tm-deck {
    width: min(870px, 94%);
  }
}

@media (max-width: 900px) {
  .tm-catalog {
    margin-top: 58px;
    padding-inline-start: 20px;
    padding-inline-end: 20px;
  }

  .tm-hero {
    padding-top: 38px;
  }

  .tm-deck {
    height: 175px;
  }

  .tm-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-detail-toc {
    display: none;
  }
}

@media (max-width: 700px) {
  .tm-hero {
    padding: 29px 16px 0;
  }

  .tm-hero h1 {
    font-size: 20px;
    line-height: 29px;
  }

  .tm-hero-subtitle {
    font-size: 17px;
    line-height: 26px;
  }

  .tm-sparks {
    opacity: .6;
    width: min(100%, 420px);
    height: 140px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 0 9%, rgba(0, 0, 0, 0) 19% 81%, #000 91%);
    mask-image: linear-gradient(90deg, #000 0 9%, rgba(0, 0, 0, 0) 19% 81%, #000 91%);
  }

  .tm-spark {
    scale: .72;
  }

  .tm-hero-search {
    width: min(86%, 385px);
    margin-top: 18px;
  }

  .tm-searchbox {
    height: 43px;
  }

  .tm-deck {
    width: 100%;
    height: clamp(123px, 33vw, 155px);
    margin-top: 24px;
  }

  .tm-feature {
    border-radius: 14px;
    width: 92%;
    padding: 3px;
  }

  .tm-feature-face {
    border-radius: 10px;
  }

  .tm-feature-copy {
    padding-inline-start: 12px;
  }

  .tm-feature h2 {
    font-size: clamp(14px, 4.2vw, 18px);
  }

  .tm-feature p {
    margin: 3px 0 7px;
    font-size: 11px;
  }

  .tm-feature .tm-button {
    padding: 4px 8px;
    font-size: 11px;
  }

  .tm-deck-peek {
    border-radius: 9px;
  }

  .tm-deck-peek svg {
    width: 15px;
    height: 15px;
    padding: 2px;
  }

  .tm-deck-prev svg {
    left: 0;
  }

  .tm-deck-next svg {
    right: 0;
  }

  .tm-legal {
    margin-top: 10px;
    font-size: 10px;
    line-height: 15px;
  }

  .tm-catalog {
    margin-top: 34px;
    padding-inline-start: 14px;
    padding-inline-end: 14px;
  }

  .tm-catalog-head {
    gap: 5px;
    margin-bottom: 9px;
  }

  .tm-catalog-head h2 {
    font-size: 22px;
  }

  .tm-list-tools {
    gap: 4px;
  }

  .tm-list-search {
    gap: 4px;
    width: clamp(75px, 29vw, 150px);
    padding-inline-start: 7px;
    padding-inline-end: 7px;
  }

  .tm-list-search input {
    font-size: 12px;
  }

  .tm-view-switch {
    padding: 2px;
  }

  .tm-view-switch button {
    width: 34px;
    height: 40px;
  }

  .tm-filter-button {
    width: 42px;
    height: 42px;
  }

  .tm-cards, .tm-with-filters .tm-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tm-card {
    padding: 16px 18px 14px;
  }

  .tm-card-top {
    margin-bottom: 8px;
  }

  .tm-card-links a, .tm-compare-add {
    min-height: 44px;
  }

  .tm-compare-add {
    min-width: 44px;
  }

  .tm-card-links a {
    align-items: center;
    display: inline-flex;
  }

  .tm-filter-dialog {
    width: 100%;
    max-height: 78vh;
    max-height: 78dvh;
    padding: 17px 20px max(20px,env(safe-area-inset-bottom));
    border-radius: 19px 19px 0 0;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .tm-filter-choices button {
    min-height: 42px;
  }

  .tm-workspace {
    padding: 17px 15px 46px;
  }

  .tm-panel {
    padding: 14px 15px;
  }

  .tm-compare-dock {
    bottom: max(9px,env(safe-area-inset-bottom));
    gap: 5px;
    padding-inline-start: 8px;
    padding-inline-end: 5px;
  }

  .tm-dock-chips {
    max-width: 40vw;
  }

  .tm-compare-dock .tm-button {
    padding: 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-deck-rotation {
    display: none;
  }
}
