.icore-marketplace {
  --mp-ink: var(--text-primary, #153846);
  --mp-muted: var(--text-secondary, #57727c);
  --mp-paper: var(--surface-primary, #fff);
  --mp-soft: var(--surface-secondary, #f3f8f9);
  --mp-line: var(--border-light, #d8e5e8);
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  height: min(820px, calc(100dvh - 48px));
  max-height: none;
  padding: 0;
  border: 1px solid var(--mp-line);
  border-radius: 22px;
  color: var(--mp-ink);
  background: var(--mp-paper);
  overflow: hidden;
  box-shadow: 0 24px 90px #071d2b40;
  font: inherit;
}
.icore-marketplace::backdrop {
  background: #102e3d80;
  backdrop-filter: blur(5px);
}
.icore-marketplace[open] {
  display: flex;
  flex-direction: column;
}
.icore-marketplace [hidden] {
  display: none !important;
}
.icore-marketplace * {
  box-sizing: border-box;
}
.mp-header {
  padding: 28px 32px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mp-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: var(--mp-muted);
}
.mp-header h2 {
  margin: 5px 0 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 650;
}
.icore-marketplace button {
  cursor: pointer;
  padding: 10px 15px;
  color: inherit;
  background: transparent;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.icore-marketplace button:hover {
  background: var(--mp-soft);
}
.icore-marketplace button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.icore-marketplace :focus-visible {
  outline: 2px solid #009ca6;
  outline-offset: 3px;
}
.mp-tabs {
  padding: 0 32px;
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--mp-line);
}
.mp-tabs button {
  border: 0;
  border-radius: 0;
  padding: 12px 1px 16px;
  color: var(--mp-muted);
  border-bottom: 2px solid transparent;
}
.mp-tabs button[aria-pressed='true'] {
  color: var(--mp-ink);
  font-weight: 650;
  border-bottom-color: #009ca6;
}
.mp-body,
.mp-detail {
  padding: 24px 32px 32px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.mp-toolbar input {
  flex: 1;
  min-width: 150px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--mp-line);
  color: inherit;
  background: var(--mp-soft);
  font: inherit;
}
.mp-toolbar input::placeholder {
  color: var(--mp-muted);
  opacity: 1;
}
.mp-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.mp-categories button {
  border-color: transparent;
  padding: 7px 13px;
  color: var(--mp-muted);
}
.mp-categories button[aria-pressed='true'] {
  background: var(--mp-soft);
  color: var(--mp-ink);
  border-color: var(--mp-line);
}
.mp-status {
  color: var(--mp-muted);
  font-size: 13px;
  min-height: 20px;
  margin: 17px 0;
}
.mp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.mp-card {
  padding: 22px;
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  min-width: 0;
  background: var(--mp-paper);
}
.mp-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  color: var(--mp-muted);
  font-size: 11px;
  margin-bottom: 18px;
}
.mp-card .mp-card-title {
  text-align: left;
  padding: 0;
  border: 0;
  font-size: 18px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.mp-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mp-muted);
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-card small {
  display: block;
  margin-top: 14px;
  color: var(--mp-muted);
}
.mp-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 55px 16px;
}
.mp-unavailable {
  grid-column: 1/-1;
  padding: 18px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  font-size: 13px;
}
.mp-unavailable summary {
  cursor: pointer;
}
.mp-unavailable > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.mp-empty h3 {
  font-size: 23px;
  font-weight: 600;
}
.mp-empty p,
.mp-detail p {
  color: var(--mp-muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.mp-detail {
  width: 100%;
}
.mp-detail > button {
  margin-bottom: 28px;
}
.mp-detail h3 {
  font-size: 30px;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 8px 0 16px;
}
.mp-detail > p {
  max-width: 750px;
}
.mp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.icore-marketplace .mp-primary {
  color: white;
  border-color: #007e8c;
  background: #007e8c;
}
.icore-marketplace .mp-primary:hover {
  background: #006e7b;
}
.mp-note {
  font-size: 13px;
  padding: 16px;
  background: var(--mp-soft);
  border-radius: 12px;
}
.mp-detail details {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
}
.mp-detail summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.mp-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 16px;
  background: var(--mp-soft);
  border-radius: 8px;
}
.mp-tools > div {
  padding-top: 18px;
  font-size: 13px;
}
.mp-tools strong {
  overflow-wrap: anywhere;
}
.icore-marketplace small {
  color: var(--mp-muted);
}
.icore-marketplace-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.icore-marketplace-nav:hover {
  background: var(--surface-hover, #edf5f6);
}
@media (max-width: 850px) {
  .mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .icore-marketplace {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 16px;
  }
  .mp-header {
    padding: 22px 20px 18px;
  }
  .mp-header h2 {
    font-size: 25px;
  }
  .mp-tabs {
    padding: 0 20px;
    gap: 18px;
  }
  .mp-tabs button {
    font-size: 13px;
  }
  .mp-body,
  .mp-detail {
    padding: 20px;
  }
  .mp-grid {
    grid-template-columns: 1fr;
  }
  .mp-toolbar input {
    flex-basis: 100%;
  }
  .mp-card {
    padding: 20px;
  }
}
