.tpp-runway,
.tpp-runway * {
  box-sizing: border-box;
}

.tpp-runway {
  --tpp-blue: #316ff6;
  --tpp-blue-dark: #174ac2;
  --tpp-blue-soft: #eef4ff;
  --tpp-blue-wash: #f7faff;
  --tpp-accent: #7c3aed;
  --tpp-ink: #172033;
  --tpp-muted: #5e6b7f;
  --tpp-line: rgba(49, 111, 246, 0.18);
  --tpp-card: #fff;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 22px) 0;
  color: var(--tpp-ink);
  font-family: inherit;
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(49, 111, 246, 0.05), rgba(255, 255, 255, 0) 260px);
}

.tpp-runway a {
  color: inherit;
  text-decoration: none;
}

.tpp-runway .runway-intro {
  max-width: 920px;
  margin: 0 0 24px;
  padding: 18px 20px;
  color: var(--tpp-ink);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  background: linear-gradient(135deg, rgba(49, 111, 246, 0.12), rgba(49, 111, 246, 0.035));
  border: 1px solid var(--tpp-line);
  border-left: 5px solid var(--tpp-blue);
  border-radius: 18px;
}

.tpp-runway .runway-intro strong {
  color: var(--tpp-blue-dark);
  font-weight: 900;
}

.tpp-runway .runway-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
  margin-bottom: 20px;
}

.tpp-runway .runway-meta {
  display: contents;
  color: var(--tpp-muted);
  font-size: clamp(12px, 1.1vw, 15px);
}

.tpp-runway .runway-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--tpp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tpp-blue-dark);
  box-shadow: 0 7px 16px rgba(49, 111, 246, 0.07);
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
}

.tpp-runway .runway-refresh {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--tpp-blue), var(--tpp-blue-dark));
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(49, 111, 246, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tpp-runway .runway-refresh:hover,
.tpp-runway .runway-refresh:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(49, 111, 246, 0.28);
  outline: none;
}

.tpp-runway .runway-refresh:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.tpp-runway .runway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.tpp-runway.tpp-layout-2 .runway-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpp-runway.tpp-layout-3 .runway-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tpp-runway .runway-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tpp-line);
  border-radius: 18px;
  background: var(--tpp-card);
  box-shadow: 0 10px 26px rgba(49, 111, 246, 0.08);
}

.tpp-runway .runway-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--tpp-blue), var(--tpp-accent));
  opacity: 0.72;
}

.tpp-runway .runway-card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 13px;
  border-bottom: 1px solid var(--tpp-line);
  background: linear-gradient(180deg, #fff, var(--tpp-blue-soft));
}

.tpp-runway .runway-source {
  min-width: 0;
}

.tpp-runway .runway-source h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.22;
  color: var(--tpp-blue-dark);
}

.tpp-runway .runway-source span {
  display: block;
  margin-top: 4px;
  color: var(--tpp-muted);
  font-size: 0.78rem;
}

.tpp-runway .runway-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpp-runway .runway-story {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(10, 79, 147, 0.09);
  transition: background 150ms ease;
}

.tpp-runway .runway-story:hover,
.tpp-runway .runway-story:focus-visible {
  background: var(--tpp-blue-wash);
  outline: none;
}

.tpp-runway .runway-story:last-child {
  border-bottom: 0;
}

.tpp-runway .story-title {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--tpp-ink);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.tpp-runway .story-title::before {
  content: "✈";
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--tpp-blue);
  font-size: 0.86rem;
}

.tpp-runway .story-time {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
  color: var(--tpp-muted);
  font-size: 0.78rem;
}

.tpp-runway .new-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--tpp-blue-dark);
  background: rgba(49, 111, 246, 0.12);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tpp-runway .runway-empty,
.tpp-runway .runway-noscript {
  padding: 18px 16px;
  color: var(--tpp-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tpp-runway .runway-noscript {
  margin: 12px 0 0;
  border: 1px solid var(--tpp-line);
  border-radius: 12px;
  background: var(--tpp-blue-soft);
}

.tpp-runway .runway-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--tpp-muted);
  font-size: 0.82rem;
}

.tpp-runway .runway-footer a {
  color: var(--tpp-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .tpp-runway.tpp-layout-3 .runway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpp-runway .runway-toolbar {
    gap: 8px;
  }

  .tpp-runway .runway-pill,
  .tpp-runway .runway-refresh {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  .tpp-runway {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 12px 12px 18px;
  }

  .tpp-runway .runway-intro {
    margin: 0 0 14px;
    padding: 15px 14px;
    border-radius: 14px;
    font-size: 0.98rem;
  }

  .tpp-runway .runway-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  .tpp-runway .runway-pill,
  .tpp-runway .runway-refresh {
    width: 100%;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 14px;
    white-space: normal;
  }

  .tpp-runway .runway-grid,
  .tpp-runway.tpp-layout-2 .runway-grid,
  .tpp-runway.tpp-layout-3 .runway-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tpp-runway .runway-card {
    width: 100%;
    border-radius: 15px;
  }

  .tpp-runway .runway-card-header {
    padding: 14px 14px 12px;
  }

  .tpp-runway .runway-story {
    padding: 13px 14px;
  }

  .tpp-runway .story-title {
    font-size: 0.95rem;
  }

  .tpp-runway .runway-footer {
    padding: 0 2px;
  }
}
