.apps-market-page {
  color: #10213d;
}

.apps-market-page .page-toolbar {
  min-height: 40px;
  margin-bottom: 16px;
}

.apps-market-page .page-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.apps-market-page .app-market-section + .app-market-section {
  margin-top: 28px;
}

.apps-market-page .app-market-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid #1677ff;
}

.apps-market-page .app-market-section__head h2,
.apps-market-page .app-market-section__head p {
  margin: 0;
}

.apps-market-page .app-market-section__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10213d;
  font-size: 18px;
  font-weight: 650;
  line-height: 26px;
}

.apps-market-page .app-market-section__head h2 span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding-inline: 7px;
  place-items: center;
  color: #1677ff;
  font-size: 12px;
  font-weight: 600;
  background: #eaf3ff;
  border-radius: 12px;
}

.apps-market-page .app-market-section__head p {
  margin-top: 2px;
  color: #738198;
  font-size: 13px;
  line-height: 20px;
}

.apps-market-page .btn {
  min-height: 40px;
  height: 40px;
  padding-inline: 16px;
  font-size: 14px;
  border-radius: 6px;
}

.apps-market-page .btn.small {
  min-height: 32px;
  height: 32px;
  padding-inline: 12px;
  font-size: 13px;
}

.apps-market-page .app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.apps-market-page .app-card {
  display: flex;
  min-width: 0;
  min-height: 316px;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 160ms ease;
}

.apps-market-page .app-card:hover {
  border-color: #b8c4d4;
}

.apps-market-page .app-cover {
  position: relative;
  display: block;
  height: 136px;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  outline: 0;
}

.apps-market-page .app-cover:focus-visible {
  box-shadow: inset 0 0 0 2px #1677ff;
}

.apps-market-page .app-cover::after {
  display: none;
}

.apps-market-page .app-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.apps-market-page .app-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.apps-market-page .app-card__body h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #10213d;
  font-size: 16px;
  font-weight: 650;
  line-height: 24px;
}

.apps-market-page .app-card__body h3 > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apps-market-page .app-card__body .badge {
  min-height: 24px;
  height: 24px;
  padding-inline: 8px;
  flex: none;
  font-size: 12px;
  border-radius: 12px;
}

.apps-market-page .app-card__body p {
  min-height: 44px;
  margin: 8px 0 16px;
  color: #526278;
  font-size: 14px;
  line-height: 22px;
}

.apps-market-page .app-card__body > .page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.apps-market-page .app-card__body > .page-actions > span {
  display: inline-flex;
}

.apps-market-page .app-card--value {
  min-height: 402px;
}

.apps-market-page .app-card__signals {
  display: flex;
  min-height: 26px;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 12px;
}

.apps-market-page .app-card__signals span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 8px;
  color: #315170;
  font-size: 12px;
  line-height: 24px;
  background: #f3f7fb;
  border: 1px solid #e1e8f0;
  border-radius: 4px;
}

.apps-market-page .app-card__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e7edf4;
  border-radius: 6px;
}

.apps-market-page .app-card__meta small {
  color: #8090a5;
  font-size: 11px;
  line-height: 18px;
}

.apps-market-page .app-card__meta b {
  min-width: 0;
  overflow: hidden;
  color: #314860;
  font-size: 12px;
  font-weight: 550;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apps-market-page .marketplace-detail-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(15 33 57 / 52%);
}

.apps-market-page .marketplace-detail-dismiss {
  position: absolute;
  inset: 0;
}

.apps-market-page .marketplace-detail {
  position: relative;
  width: min(820px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgb(15 33 57 / 22%);
}

.apps-market-page .marketplace-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5ebf2;
}

.apps-market-page .marketplace-detail > header span {
  color: #1677ff;
  font-size: 12px;
  font-weight: 600;
}

.apps-market-page .marketplace-detail > header h2,
.apps-market-page .marketplace-detail > header p {
  margin: 0;
}

.apps-market-page .marketplace-detail > header h2 {
  margin-top: 3px;
  color: #10213d;
  font-size: 20px;
  line-height: 30px;
}

.apps-market-page .marketplace-detail > header p {
  margin-top: 4px;
  color: #526278;
  font-size: 13px;
  line-height: 20px;
}

.apps-market-page .marketplace-detail > header > a {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  color: #738198;
  font-size: 24px;
  line-height: 1;
  background: #f5f7fa;
  border-radius: 6px;
}

.apps-market-page .marketplace-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e5ebf2;
}

.apps-market-page .marketplace-detail__hero > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #07172e;
  border-radius: 8px;
}

.apps-market-page .marketplace-detail__hero > div > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.apps-market-page .marketplace-detail__hero h3,
.apps-market-page .marketplace-detail__hero p {
  margin: 0;
}

.apps-market-page .marketplace-detail__hero h3 {
  margin-top: 12px;
  color: #1b314d;
  font-size: 16px;
  line-height: 24px;
}

.apps-market-page .marketplace-detail__hero p {
  margin-top: 6px;
  color: #66778d;
  font-size: 12px;
  line-height: 19px;
}

.apps-market-page .marketplace-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 24px;
}

.apps-market-page .marketplace-detail__grid section {
  padding: 16px;
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
}

.apps-market-page .marketplace-detail__grid h3 {
  margin: 0 0 10px;
  color: #1b314d;
  font-size: 14px;
  line-height: 22px;
}

.apps-market-page .marketplace-detail__grid ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.apps-market-page .marketplace-detail__grid li {
  position: relative;
  padding-left: 16px;
  color: #526278;
  font-size: 12px;
  line-height: 19px;
}

.apps-market-page .marketplace-detail__grid li::before {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 5px;
  height: 5px;
  content: "";
  background: #1677ff;
  border-radius: 50%;
}

.apps-market-page .marketplace-detail__grid dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.apps-market-page .marketplace-detail__grid dl > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  font-size: 12px;
  line-height: 19px;
}

.apps-market-page .marketplace-detail__grid dt {
  color: #8090a5;
}

.apps-market-page .marketplace-detail__grid dd {
  margin: 0;
  color: #314860;
  font-weight: 550;
}

.apps-market-page .marketplace-detail > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid #e5ebf2;
}

.apps-market-page .marketplace-requested {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  margin-right: auto;
}

.apps-market-page .marketplace-requested > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  color: #059669;
  font-weight: 700;
  background: #e9f9f2;
  border-radius: 50%;
}

.apps-market-page .marketplace-requested b,
.apps-market-page .marketplace-requested small {
  display: block;
}

.apps-market-page .marketplace-requested b {
  color: #1b314d;
  font-size: 13px;
}

.apps-market-page .marketplace-requested small {
  margin-top: 2px;
  color: #738198;
  font-size: 11px;
  line-height: 17px;
}

@media (max-width: 1360px) {
  .apps-market-page .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .apps-market-page .app-grid { grid-template-columns: 1fr; }
  .apps-market-page .app-card { min-height: 300px; }
}

@media (max-width: 760px) {
  .apps-market-page .page-actions,
  .apps-market-page .page-actions .btn { width: 100%; }
  .apps-market-page .app-card__body > .page-actions { align-items: stretch; flex-direction: column; }
  .apps-market-page .app-card__body > .page-actions .btn { width: 100%; }
  .apps-market-page .marketplace-detail-backdrop { padding: 12px; }
  .apps-market-page .marketplace-detail { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .apps-market-page .marketplace-detail__hero,
  .apps-market-page .marketplace-detail__grid { grid-template-columns: 1fr; }
  .apps-market-page .marketplace-detail > header,
  .apps-market-page .marketplace-detail__hero,
  .apps-market-page .marketplace-detail__grid,
  .apps-market-page .marketplace-detail > footer { padding-inline: 16px; }
  .apps-market-page .marketplace-detail > footer { align-items: stretch; flex-direction: column; }
  .apps-market-page .marketplace-requested { margin: 0 0 8px; }
  .apps-market-page .marketplace-detail > footer .btn { width: 100%; }
}
