/* 模型广场：整体字号与价格行向小鲸看齐，不影响其它页面 */
html.pricing-plaza #root {
  font-size: 12px;
}
html.pricing-plaza h1,
html.pricing-plaza h2 {
  font-size: 16px !important;
  line-height: 1.35 !important;
}
html.pricing-plaza h3,
html.pricing-plaza .text-\[15px\] {
  font-size: 13px !important;
  line-height: 1.35 !important;
}
html.pricing-plaza .text-sm {
  font-size: 12px !important;
  line-height: 1.4 !important;
}
html.pricing-plaza .text-\[13px\] {
  font-size: 12px !important;
  line-height: 1.4 !important;
}
html.pricing-plaza .text-xs {
  font-size: 11px !important;
  line-height: 1.4 !important;
}
html.pricing-plaza .font-mono.text-sm,
html.pricing-plaza .font-mono.text-\[15px\] {
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* 价格区保持纵向：徽章在上，金额在下。
   之前把外层改成横排，grid 被挤窄后 auto-fit 列宽为 0，价格就看不见了。 */
html.pricing-plaza [role='group'].mt-auto.flex.flex-col {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 4px !important;
}
/* 输入、输出、缓存同一行；标签在上、金额在下，避免挤没 */
html.pricing-plaza [role='group'].mt-auto .grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 4px 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}
html.pricing-plaza [role='group'].mt-auto .grid > div {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 0 !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

html.pricing-plaza aside {
  font-size: 12px;
}
html.pricing-plaza aside h2 {
  font-size: 13px !important;
}

/* 卡片左上角促销标语，参考小鲸「官方X折起」
   用伪元素，避免插入的 DOM 被 React 清掉 */
html.pricing-plaza [data-slot='card'][data-wk-promo] {
  position: relative !important;
  padding-top: 36px !important;
}
html.pricing-plaza [data-slot='card'][data-wk-promo]::before {
  content: attr(data-wk-promo);
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 5;
  display: inline-block;
  padding: 0 7px;
  border-radius: 4px;
  background: #f43f5e;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
  pointer-events: none;
  white-space: nowrap;
}


/* Hide native billing-expr fallback once overlay has injected 起价 amounts.
   Uses a card attribute so the rule survives React re-renders that drop [hidden]. */
[data-slot="card"][data-wk-has-start="1"] [role="group"] .col-span-full {
  display: none !important;
}


/* Detail modal: hide native raw-expr fallback once overlay amounts are injected */
[data-wk-detail-filled="1"] [data-wk-expr-fallback="1"] {
  display: none !important;
}
.wk-detail-start {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
}
.wk-detail-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.wk-detail-price-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.wk-detail-start-note,
.wk-detail-tier-note {
  font-size: 11px;
  line-height: 1.4;
}
.wk-detail-expr-note {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted-foreground, #64748b);
}
.wk-detail-expr-note summary {
  cursor: pointer;
  user-select: none;
}
.wk-detail-expr-note code {
  display: block;
  margin-top: 6px;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
}
.wk-detail-group-wrap {
  overflow-x: auto;
  margin-top: 8px;
}
.wk-detail-group-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.wk-detail-group-table th,
.wk-detail-group-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.wk-detail-group-table th {
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
}
.wk-detail-group-table td:nth-child(n+3) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.wk-detail-group-table tr.wk-detail-start-row td {
  background: #f8fafc;
}
