.pricing-mode-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.pricing-mode-card{
  appearance:none;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:190px;
  padding:18px 48px 18px 18px;
  border:1px solid var(--border);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.55),rgba(255,255,255,.2));
  color:var(--ink);
  text-align:left;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.pricing-mode-card:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--accent) 28%,var(--border));
  background:linear-gradient(145deg,color-mix(in srgb,var(--accent-soft) 12%,rgba(255,255,255,.64)),rgba(255,255,255,.24));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68),0 12px 28px color-mix(in srgb,var(--shadow) 45%,transparent);
}
.pricing-mode-card b{
  font-size:18px;
  line-height:1.22;
  margin:9px 0 7px;
}
.pricing-mode-card>span:not(.pricing-mode-kicker):not(.pricing-mode-arrow){
  color:var(--muted);
  line-height:1.45;
}
.pricing-mode-card small{
  display:block;
  margin-top:auto;
  padding-top:16px;
  color:var(--muted);
  line-height:1.35;
}
.pricing-mode-kicker{
  font-size:10px;
  font-weight:800;
  letter-spacing:.13em;
  color:var(--muted);
}
.pricing-mode-arrow{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  font-size:22px;
  color:var(--muted);
  opacity:.58;
}
.compound-editor-intro,
.compound-page-rule{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:13px 15px;
  border:1px solid color-mix(in srgb,var(--accent) 13%,var(--border));
  border-radius:14px;
  background:color-mix(in srgb,var(--surface2) 88%,var(--accent-soft) 12%);
}
.compound-editor-intro span,
.compound-page-rule span{
  color:var(--muted);
  line-height:1.4;
}
.compound-step{
  margin-top:14px;
  padding:15px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38);
}
.compound-step-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
}
.compound-step-head>span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  flex:0 0 25px;
  border-radius:50%;
  background:color-mix(in srgb,var(--accent-soft) 45%,rgba(255,255,255,.6));
  border:1px solid color-mix(in srgb,var(--accent) 18%,var(--border));
  font-size:12px;
  font-weight:800;
}
.compound-step-head b{
  display:block;
  font-size:15px;
}
.compound-step-head small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  line-height:1.35;
}
.compound-basis-summary{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  margin-top:2px;
}
.compound-tier-row{
  padding:13px;
  margin-bottom:10px;
}
.compound-tier-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:11px;
}
.compound-tier-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:7px;
  background:color-mix(in srgb,var(--accent-soft) 40%,rgba(255,255,255,.55));
  font-size:11px;
  font-weight:800;
}
.compound-tier-head>div{
  min-width:0;
}
.compound-tier-head .muted{
  margin-top:2px;
}
.compound-tier-remove{
  appearance:none;
  margin-left:auto;
  border:0;
  background:transparent;
  color:var(--muted);
  font-weight:650;
  cursor:pointer;
  padding:5px 3px;
}
.compound-tier-remove:hover{
  color:var(--ink);
}
.compound-tier-grid{
  display:grid;
  grid-template-columns:1.05fr .88fr .88fr 1fr;
  gap:10px;
  align-items:end;
}
.compound-tier-grid .field{
  margin:0;
}
.cp_tier_preview{
  margin-top:10px;
  min-height:18px;
}
.cp_tier_preview.note.ok{
  display:inline-block;
  padding:7px 10px;
}
.compound-tier-advanced{
  margin-top:8px;
}
.compound-tier-advanced summary,
.compound-source-details summary{
  cursor:pointer;
  color:var(--muted);
  font-weight:650;
  user-select:none;
}
.compound-source-details{
  margin-top:14px;
  padding:13px 15px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.16);
}
.compound-savebar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px 14px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--border);
}
.compound-savebar>div:nth-child(2){
  display:flex;
  gap:8px;
}
#cp_out{
  grid-column:1/-1;
}
.compound-tier-list{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.compound-tier-pill{
  display:inline-flex;
  flex-wrap:wrap;
  gap:5px;
  align-items:baseline;
  padding:5px 8px;
  border:1px solid var(--border);
  border-radius:10px;
  background:rgba(255,255,255,.28);
  line-height:1.2;
}
.compound-tier-pill span{
  color:var(--muted);
  font-size:11px;
}
#cp_list td:nth-child(3){
  min-width:260px;
}
.vendor-pricing-guide{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 0;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.18);
}
.vendor-pricing-guide-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.vendor-pricing-guide-copy span{
  color:var(--muted);
  line-height:1.35;
}
.vendor-pricing-addmode{
  border-color:color-mix(in srgb,var(--accent) 24%,var(--border));
  background:color-mix(in srgb,var(--accent-soft) 18%,rgba(255,255,255,.25));
}
@media(max-width:980px){
  .compound-tier-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:720px){
  .pricing-mode-grid{
    grid-template-columns:1fr;
  }
  .compound-savebar{
    grid-template-columns:1fr;
  }
  .compound-savebar>div:nth-child(2){
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .vendor-pricing-guide{
    align-items:flex-start;
    flex-direction:column;
  }
}
@media(max-width:620px){
  .compound-tier-grid{
    grid-template-columns:1fr;
  }
}