/* Public /models plaza. Light zenmux reverse under the dark marketing header. */

.shell .plaza-wrap {
  background: #fff;
  color: #333;
  padding: 0;
  width: 100%;
  max-width: none;
}

.shell .plaza-wrap a { color: inherit; }

.plaza-page {
  padding-top: var(--header-height);
  --p-ink: #111;
  --p-body: #333;
  --p-muted: #8c8c8c;
  --p-line: #eee;
  --p-line-strong: #e6e6e6;
  --p-chip: #f5f5f5;
  --p-green: #16a34a;
  --p-badge: #facc15;
  --p-online: #22c55e;
  --p-card: #fff;
  --p-soft: #f7f7f7;
  --p-radius: 10px;
  background: #fff;
  color: var(--p-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", sans-serif;
}
.shell .plaza-page .px b { color: #111; }
.shell .plaza-page .px s { color: #b0b0b0; }

.plaza-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 20px;
  background: #f4f8ff;
  color: #334155;
  font-size: 13px;
  border-bottom: 1px solid #e8eef7;
}
.plaza-promo a { color: #1764d8; text-decoration: none; font-weight: 600; }
.plaza-promo a:hover { text-decoration: underline; }

.plaza {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 72px;
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.plaza-side {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding-right: 8px;
}

.plaza-facet {
  border-bottom: 1px solid var(--p-line);
  padding: 14px 0 12px;
}
.plaza-facet:first-child { padding-top: 4px; }

.plaza-facet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0 0 10px;
  color: var(--p-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.plaza-facet-head svg { width: 12px; height: 12px; opacity: .55; }
.plaza-facet-head[aria-expanded="false"] svg { transform: rotate(180deg); }

.plaza-facet-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plaza-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #595959;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.plaza-check[aria-pressed="true"] {
  color: var(--p-ink);
  background: #f3f3f3;
  font-weight: 600;
}
.plaza-check .plaza-ico { opacity: .7; }

.plaza-more {
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--p-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 4px;
  cursor: pointer;
  text-align: left;
}

.plaza-slider {
  padding: 8px 6px 4px;
}
.plaza-slider input[type="range"] {
  width: 100%;
  accent-color: #111;
}
.plaza-slider-labels {
  display: flex;
  justify-content: space-between;
  color: var(--p-muted);
  font-size: 12px;
  margin-top: 6px;
}

.plaza-dot, .plaza-mark {
  width: 18px;
  height: 18px;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}
.plaza-mark.anthropic { background: #d97757; }
.plaza-mark.openai { background: #111; }
.plaza-mark.mrouter { background: #2878f0; }

.plaza-main { min-width: 0; }

.plaza-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.plaza-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plaza-filter-toggle {
  width: 32px;
  height: 32px;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
}
.plaza-filter-toggle:hover { background: #f3f3f3; }
.plaza-toolbar h1 {
  margin: 0;
  color: var(--p-ink);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
}

.plaza-count {
  margin: 4px 0 0;
  color: var(--p-muted);
  font-size: 13px;
}

.plaza-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plaza-icon-btn,
.plaza-sort-btn,
.plaza-compare-btn {
  height: 36px;
  border: 1px solid var(--p-line-strong);
  border-radius: 999px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
}
.plaza-icon-btn { width: 36px; padding: 0; }
.plaza-icon-btn svg, .plaza-sort-btn svg, .plaza-compare-btn svg { width: 14px; height: 14px; }
.plaza-compare-btn {
  background: #111;
  color: #fff;
  border-color: #111;
  font-weight: 650;
}
.plaza-search {
  width: min(220px, 100%);
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--p-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--p-ink);
  font: inherit;
  font-size: 13px;
}
.plaza-search::placeholder { color: var(--p-muted); }

.plaza-deal {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: #f0f0f0;
  height: 36px;
}
.plaza-deal button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0 12px;
  color: #8c8c8c;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.plaza-deal button[aria-pressed="true"] {
  background: #fff;
  color: #111;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.plaza-sort-menu {
  position: relative;
}
.plaza-sort-pop {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 5;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--p-line-strong);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 6px;
}
.plaza-sort-pop button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: #333;
}
.plaza-sort-pop button[aria-pressed="true"],
.plaza-sort-pop button:hover { background: #f5f5f5; }

.plaza-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--p-line);
  margin: 4px 0 0;
  overflow-x: auto;
}
.plaza-chips button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8c8c8c;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.plaza-chips button[aria-pressed="true"] {
  color: #111;
  border-bottom-color: #111;
  font-weight: 650;
}
.plaza-chips b { font-weight: 650; color: inherit; }

.plaza-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--p-line);
}

.plaza-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  padding: 20px 24px 18px;
  background: #fff;
  border-right: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
  color: inherit;
  min-height: 308px;
}
.plaza-card:nth-child(even) { border-right: 0; }

.plaza-card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  text-indent: -999px;
  color: transparent;
}
.plaza-card-head,
.plaza-blurb,
.plaza-stats,
.plaza-meta,
.plaza-foot {
  position: relative;
  z-index: 0;
  pointer-events: none;
}
.plaza-id,
.plaza-actions,
.plaza-check-add {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.plaza-card.plaza-featured {
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.08) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(180deg, #fafafa, #fff);
  min-height: 308px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  grid-template-rows: auto 1fr auto;
  gap: 12px 8px;
}
.plaza-featured-copy { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.plaza-featured h3 {
  margin: 8px 0 0;
  color: var(--p-ink);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
}
.plaza-check-add {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
}
.plaza-featured-art {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: center;
  width: 140px;
  height: 140px;
  pointer-events: none;
}
.plaza-featured .plaza-actions { grid-column: 1; opacity: 1; }

.plaza-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plaza-card-head > div { min-width: 0; flex: 1; }
.plaza-card-head strong {
  display: block;
  color: var(--p-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.plaza-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--p-muted);
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 12px;
}
.plaza-id button {
  border: 0;
  background: transparent;
  color: #8c8c8c;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.plaza-stats {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
}
.plaza-stats b {
  color: var(--p-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  display: inline-block;
  min-width: 2.2ch;
}
.plaza-stats span { color: var(--p-muted); font-size: 12px; }
.plaza-badge {
  margin-left: auto;
  background: var(--p-badge);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.plaza-blurb {
  margin: 0;
  color: #595959;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plaza-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-top: 4px;
  font-size: 13px;
  color: #595959;
}
.plaza-meta span { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.plaza-meta b { color: var(--p-green); font-weight: 650; }
.plaza-meta .plaza-plain { color: var(--p-body); font-weight: 500; }

.plaza-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  color: #8c8c8c;
  font-size: 12px;
}
.plaza-spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}
.plaza-spark i {
  display: block;
  width: 3px;
  height: 8px;
  background: #e5e5e5;
  border-radius: 1px;
}
.plaza-spark i.has { background: #111; }

.plaza-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  opacity: 0;
}
.plaza-card:hover .plaza-actions,
.plaza-card:focus-within .plaza-actions,
.plaza-card.plaza-featured .plaza-actions {
  opacity: 1;
}
.plaza-actions {
  position: absolute;
  top: 16px;
  right: 16px;
}
.plaza-featured .plaza-actions {
  position: relative;
  top: auto;
  right: auto;
}
.plaza-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #e5e5e5;
  background: #f4f4f4;
  color: #111;
}
.plaza-btn.dark {
  background: #111;
  color: #fff;
  border-color: #111;
}
.plaza-btn.ghost {
  background: #fff;
}

.plaza-mods { display: inline-flex; gap: 3px; align-items: center; }
.plaza-ico {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

.plaza-empty {
  grid-column: 1 / -1;
  padding: 64px 16px;
  color: var(--p-muted);
  text-align: center;
}

.plaza-compare-bar {
  position: sticky;
  bottom: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  border-radius: 12px;
}
.plaza-compare-bar button, .plaza-compare-bar a {
  border: 0;
  background: #fff;
  color: #111;
  border-radius: 8px;
  height: 32px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.plaza-compare-bar .quiet {
  background: transparent;
  color: #fff;
  border: 1px solid #444;
}

.plaza-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,.35);
  display: grid;
  place-items: start center;
  padding: 72px 20px 20px;
  overflow: auto;
}
.plaza-overlay-card {
  width: min(1080px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  color: #333;
}
.plaza-overlay-card table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plaza-overlay-card th, .plaza-overlay-card td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--p-line);
  vertical-align: top;
}

/* detail */
.plaza-detail {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 80px;
}
.plaza-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
  color: #8c8c8c;
  text-decoration: none;
  font-size: 13px;
}
.plaza-back:hover { color: #111; }

.plaza-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.plaza-detail-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.plaza-detail-title .plaza-mark { width: 42px; height: 42px; font-size: 16px; margin-top: 2px; }
.plaza-detail h1 {
  margin: 0;
  color: var(--p-ink);
  font-size: 28px;
  letter-spacing: -.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.plaza-online {
  font-size: 12px;
  font-weight: 650;
  color: #15803d;
  background: #ecfdf3;
  border-radius: 999px;
  padding: 2px 8px;
}
.plaza-detail-id {
  margin: 6px 0 0;
  color: var(--p-muted);
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plaza-detail-id button {
  border: 0;
  background: transparent;
  color: #8c8c8c;
  font: inherit;
  cursor: pointer;
}
.plaza-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plaza-detail-actions .plaza-btn { height: 36px; padding: 0 14px; font-size: 13px; }

.plaza-detail .plaza-blurb {
  -webkit-line-clamp: unset;
  margin: 18px 0;
  max-width: 820px;
  color: #595959;
  font-size: 14px;
  line-height: 1.75;
}
.plaza-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #595959;
  font-size: 13px;
  margin-bottom: 28px;
}

.plaza-section { margin: 36px 0; }
.plaza-section h2 {
  margin: 0 0 6px;
  color: var(--p-ink);
  font-size: 22px;
  letter-spacing: -.02em;
}
.plaza-section .lead {
  margin: 0 0 16px;
  color: var(--p-muted);
  font-size: 13px;
}

.plaza-price-table, .plaza-vendor-table {
  width: 100%;
  border-collapse: collapse;
}
.plaza-vendor-table th,
.plaza-vendor-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--p-line);
  font-size: 13px;
  vertical-align: top;
}
.plaza-vendor-table th { color: #8c8c8c; font-weight: 550; }
.plaza-vendor-table .px b { color: var(--p-ink); }
.plaza-vendor-table .px s { color: #b0b0b0; margin-right: 6px; }

.plaza-chart {
  border: 1px solid var(--p-line);
  border-radius: 12px;
  min-height: 220px;
  display: grid;
  place-items: stretch;
  color: var(--p-muted);
  font-size: 13px;
  background:
    linear-gradient(#f3f3f3, #f3f3f3) 48px 16px / 1px calc(100% - 48px) no-repeat,
    repeating-linear-gradient(180deg, transparent 0 43px, #f7f7f7 43px 44px);
  position: relative;
  padding: 16px 16px 36px 48px;
}
.plaza-chart-empty {
  place-self: center;
}
.plaza-series {
  width: 100%;
  height: 180px;
  display: block;
  align-self: end;
}
.plaza-series-line {
  fill: none;
  stroke: #111;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.plaza-series-fill {
  fill: rgba(17, 17, 17, 0.06);
  stroke: none;
}
.plaza-chart-range {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  background: #f0f0f0;
  border-radius: 999px;
  padding: 2px;
}
.plaza-chart-range button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  color: #8c8c8c;
}
.plaza-chart-range button[aria-pressed="true"] { background: #fff; color: #111; }
.plaza-h24 {
  display: inline-block;
  margin-left: 8px;
  background: #f3f3f3;
  color: #8c8c8c;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 650;
  vertical-align: 3px;
}

.plaza-apps { display: flex; flex-direction: column; gap: 0; }
.plaza-app {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--p-line);
  text-decoration: none;
  color: inherit;
}
.plaza-app strong { display: block; color: var(--p-ink); }
.plaza-app p { margin: 4px 0 0; color: var(--p-muted); font-size: 13px; }
.plaza-app .n { color: var(--p-muted); font-size: 13px; }

.plaza-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.plaza-related a {
  display: block;
  padding: 16px;
  border: 1px solid var(--p-line-strong);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 140px;
}
.plaza-related strong { display: block; color: var(--p-ink); margin: 8px 0; }

.plaza-faq details {
  border-bottom: 1px solid var(--p-line);
  padding: 14px 0;
}
.plaza-faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--p-ink);
  list-style: none;
}
.plaza-faq summary::-webkit-details-marker { display: none; }
.plaza-faq p { margin: 10px 0 0; color: #595959; font-size: 14px; line-height: 1.7; }

.plaza-note { color: var(--p-muted); font-size: 13px; line-height: 1.6; }

.plaza:not(.side-open) {
  grid-template-columns: minmax(0, 1fr);
}
.plaza:not(.side-open) .plaza-side { display: none; }

@media (max-width: 1100px) {
  .plaza { grid-template-columns: 1fr; }
  .plaza.side-open { grid-template-columns: 1fr; }
  .plaza-side { position: static; max-height: none; display: none; }
  .plaza.side-open .plaza-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .plaza-card.plaza-featured { grid-template-columns: 1fr; }
  .plaza-featured-art { display: none; }
}
@media (max-width: 800px) {
  .plaza-board, .plaza-related { grid-template-columns: 1fr; }
  .plaza-card, .plaza-card:nth-child(even) { border-right: 0; }
  .plaza-actions { opacity: 1; position: relative; top: auto; right: auto; }
  .plaza-side { grid-template-columns: 1fr; }
}

/* Embed inside OpenLux console (no marketing header). */
.ol-main.plaza-embed {
  padding: 0 12px 24px 0;
  background: #fff;
}
.plaza-host { width: 100%; }
.plaza-host .plaza-page { padding-top: 0; }
.plaza-host .plaza {
  width: 100%;
  margin: 0;
  padding: 8px 8px 48px 8px;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 10px;
}
.plaza-host .plaza-side {
  top: 64px;
  max-height: calc(100vh - 80px);
  padding-right: 0;
}
.plaza-host .plaza-facet { padding: 10px 0 8px; }
.plaza-host .plaza-card { min-height: 0; }
.plaza-overlay { z-index: 50; }
.plaza-mark.google { background: #4285f4; }
.plaza-mark.deepseek { background: #4d6bfe; }
.plaza-mark.zhipu { background: #3859ff; }
.plaza-mark.moonshot { background: #111; }
.plaza-mark.other { background: #64748b; }
.plaza-mark.logo,
.plaza-mark.logo.anthropic,
.plaza-mark.logo.openai,
.plaza-mark.logo.deepseek,
.plaza-mark.logo.google,
.plaza-mark.logo.moonshot {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 5px;
  width: 20px;
  height: 20px;
  padding: 2px;
  box-sizing: border-box;
}
.plaza-mark.logo img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}
