/* ============================================================
   PRODUCT LIBRARY CONFIGURATOR + pricing chips
   ============================================================ */

.pl { display: flex; flex-direction: column; gap: 12px; }
.pl-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 18px; background: var(--bg-elevated);
  border: 1px solid var(--stroke); border-radius: var(--radius);
}
.pl-top__l { flex: 1; min-width: 0; }
.pl-top__sub { margin: 4px 0 0; font-size: 13px; color: var(--fg2); max-width: 700px; text-wrap: pretty; }
.pl-top__r { display: flex; gap: 8px; flex-shrink: 0; }

.pl-shell {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px; align-items: start;
}

/* Product list rail */
.pl-products {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 12px 8px 14px;
  position: sticky; top: 96px;
}
.pl-products__hd { padding: 4px 8px 8px; }
.pl-products ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-products li { border-radius: var(--radius); }
.pl-products li.is-on { background: rgba(237,8,0,0.06); }
.pl-products li:hover:not(.is-on) { background: var(--row-hover); }
.pl-products button {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center;
  width: 100%; padding: 9px 10px; text-align: left;
  border-radius: var(--radius);
}
.pl-prod__name { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--fg1); }
.pl-products li .t-label { grid-column: 1; font-size: 9px; }
.pl-prod__counts {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-self: center; gap: 4px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg3);
}
.pl-prod__counts > span { padding: 2px 5px; background: var(--bg-recessed); border-radius: var(--radius); }

[data-mode="banzai"] .pl-top,
[data-mode="banzai"] .pl-products { background: var(--bg-elevated); border-color: rgba(255,255,255,0.10); }
[data-mode="banzai"] .pl-prod__counts > span { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.65); }

/* Pane chrome */
.pl-pane {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  overflow: hidden;
}
.pl-tabs {
  display: flex; gap: 0; overflow-x: auto;
  border-bottom: 1px solid var(--stroke);
  padding: 0 8px;
  background: var(--bg-recessed);
}
.pl-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  font-size: 12px; font-weight: 500;
  color: var(--fg3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.pl-tab:hover { color: var(--fg1); }
.pl-tab.is-on { color: var(--fg1); border-bottom-color: var(--red); }
.pl-body { padding: 18px 20px; }

[data-mode="banzai"] .pl-pane { background: var(--bg-elevated); border-color: rgba(255,255,255,0.10); }
[data-mode="banzai"] .pl-tabs { background: rgba(0,0,0,0.20); border-bottom-color: rgba(255,255,255,0.10); }

/* Sections */
.pl-section { display: flex; flex-direction: column; gap: 14px; }
.pl-section__sub { margin: -6px 0 0; font-size: 12px; color: var(--fg3); max-width: 760px; text-wrap: pretty; }

.pl-grid { display: grid; gap: 12px; }
.pl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Proposal template editor */
.pl-prop-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.pl-prop-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 96px;
}
.pl-prop-nav button {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-primary);
  text-align: left;
}
.pl-prop-nav button.is-on { border-color: rgba(237,8,0,0.35); background: rgba(237,8,0,0.06); }
.pl-prop-nav span { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--fg1); }
.pl-prop-nav small { font-size: 10px; color: var(--fg3); line-height: 1.35; }
.pl-prop-editor,
.pl-prop-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-primary);
}
.pl-prop-side { display: flex; flex-direction: column; gap: 12px; }
.pl-prop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pl-prop-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pl-prop-field > span {
  color: var(--fg2);
  font-size: 11px;
  font-weight: 600;
}
.pl-prop-field textarea,
.pl-prop-schedule input {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--fg1);
  font-size: 12px;
}
.pl-prop-field textarea {
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.45;
}
.pl-prop-field textarea[readonly] { color: var(--fg2); background: var(--bg-recessed); }
.pl-prop-field textarea:focus,
.pl-prop-schedule input:focus { border-color: var(--ink); outline: none; }
.pl-prop-schedule {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.pl-prop-schedule__hd,
.pl-prop-schedule__row {
  display: grid;
  grid-template-columns: 1fr 76px 1.8fr;
  gap: 8px;
  align-items: center;
}
.pl-prop-schedule__hd {
  color: var(--fg3);
  font: 9px/1.2 var(--font-mono);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.pl-prop-schedule input { padding: 7px 8px; }

/* Tier cards */
.pl-tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pl-tier {
  background: var(--bg-primary);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.pl-tier__hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-tier__name {
  flex: 1;
  border: 0; background: transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
  color: var(--fg1);
  padding: 0;
}
.pl-tier__name:focus { outline: none; background: var(--bg-elevated); }
.pl-tier__badge {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.10em;
  padding: 3px 7px; border-radius: var(--radius);
  background: rgba(26,26,26,0.06); color: var(--fg2);
}
.pl-tier__badge--seedling { background: rgba(46,125,80,0.14);   color: #1f5e3a; }
.pl-tier__badge--blossom  { background: rgba(217,138,42,0.14);  color: #8c5b1a; }
.pl-tier__badge--eden     { background: rgba(237,8,0,0.10);     color: var(--red); }

.pl-tier__desc {
  width: 100%;
  border: 1px solid var(--stroke); border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 7px 10px; font-size: 12px;
  resize: vertical;
}
.pl-tier__desc:focus { border-color: var(--ink); outline: none; }

.pl-tier__price { display: flex; flex-direction: column; gap: 4px; }
.pl-tier__priceinp,
.pl-addon__price {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  font-family: var(--font-mono);
}
.pl-tier__priceinp > span,
.pl-addon__price > span { color: var(--fg3); font-size: 11px; }
.pl-tier__priceinp input,
.pl-addon__price input {
  border: 0; background: transparent;
  font-family: var(--font-mono); font-size: 16px; font-weight: 600;
  color: var(--fg1);
  width: 100%;
  outline: none;
}

/* Cladding system + colour + style cards */
.pl-card {
  background: var(--bg-primary);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.pl-card__title {
  border: 0; background: transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  color: var(--fg1);
  padding: 0;
}
.pl-card__title:focus { outline: none; }
.pl-card .t-label { font-size: 9px; }
.pl-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pl-status {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pl-status.is-live {
  color: #047857;
  background: rgba(4,120,87,0.08);
  border-color: rgba(4,120,87,0.20);
}
.pl-status.is-coming {
  color: var(--fg3);
  background: var(--bg-elevated);
}
.pl-card__desc {
  border: 1px solid var(--stroke); border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 6px 8px; font-size: 12px;
  resize: vertical;
  margin-top: 4px;
}

.pl-swatch {
  background: var(--bg-primary);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 12px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.pl-swatch__chip {
  height: 70px; border-radius: var(--radius);
  position: relative;
  border: 1px solid rgba(26,26,26,0.10);
  display: flex; align-items: flex-end; padding: 6px;
}
.pl-swatch__hex {
  background: rgba(255,255,255,0.85);
  border: 0; border-radius: var(--radius);
  padding: 3px 6px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg1);
  outline: none;
  width: 80px;
}
.pl-swatch__name {
  border: 0; background: transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--fg1);
  padding: 0;
}
.pl-swatch__name:focus { outline: none; }
.pl-swatch .t-label { font-size: 9px; }

.pl-style {
  background: var(--bg-primary);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.pl-style__chip {
  height: 80px; border-radius: var(--radius);
  position: relative;
  border: 1px solid rgba(26,26,26,0.10);
  display: flex; align-items: flex-end; padding: 6px;
}

/* Add-ons */
.pl-addon {
  background: var(--bg-primary);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.pl-addon__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-addon__price { padding: 4px 8px; }
.pl-addon__price.is-tbc { border-style: dashed; }
.pl-addon__price.is-tbc input::placeholder {
  color: var(--fg3);
  opacity: 1;
}
.pl-addon__price input { font-size: 13px; width: 80px; text-align: right; }
.pl-addon__tiers { display: flex; flex-direction: column; gap: 4px; }

[data-mode="banzai"] .pl-tier,
[data-mode="banzai"] .pl-card,
[data-mode="banzai"] .pl-swatch,
[data-mode="banzai"] .pl-style,
[data-mode="banzai"] .pl-addon {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}
[data-mode="banzai"] .pl-tier__desc,
[data-mode="banzai"] .pl-card__desc,
[data-mode="banzai"] .pl-tier__priceinp,
[data-mode="banzai"] .pl-addon__price {
  background: rgba(0,0,0,0.20);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
[data-mode="banzai"] .pl-tier__priceinp input,
[data-mode="banzai"] .pl-addon__price input,
[data-mode="banzai"] .pl-tier__name,
[data-mode="banzai"] .pl-card__title,
[data-mode="banzai"] .pl-swatch__name { color: rgba(255,255,255,0.95); }
[data-mode="banzai"] .pl-swatch__hex { background: rgba(255,255,255,0.85); color: #141412; }

/* Photos */
.pl-filters {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--bg-recessed);
  border-radius: var(--radius);
}
.pl-filters label { display: flex; flex-direction: column; gap: 3px; }
.pl-filters select {
  padding: 5px 8px;
  border: 1px solid var(--stroke); border-radius: var(--radius);
  background: var(--bg-elevated); font-size: 12px;
  min-width: 130px;
}
.pl-photogrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.pl-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  display: flex; flex-direction: column;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--bg-recessed);
}
.pl-photo__band {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.74));
}
.pl-photo__kind {
  position: absolute; top: 8px; right: 8px;
  padding: 3px 7px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.10em;
  border-radius: var(--radius);
}
.pl-photo__caption {
  position: absolute; left: 10px; right: 10px; bottom: 8px;
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

[data-mode="banzai"] .pl-filters { background: rgba(0,0,0,0.20); }
[data-mode="banzai"] .pl-filters select { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.92); }

/* Pricing matrix */
.pl-matrix {
  background: var(--bg-primary);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  overflow: hidden;
}
.pl-matrix__hd, .pl-matrix__row {
  display: grid;
  grid-template-columns: 1fr 130px 110px repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px; align-items: center;
  padding: 10px 14px;
}
.pl-matrix__hd {
  background: var(--bg-recessed);
  border-bottom: 1px solid var(--stroke);
}
.pl-matrix__hd .r, .pl-matrix__row .r { text-align: right; }
.pl-matrix__row { border-top: 1px solid var(--stroke); }
.pl-matrix__row:first-of-type { border-top: 0; }
.pl-matrix__row strong { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.pl-matrix__row .t-label { font-size: 9px; }
.pl-matrix__cell { color: var(--fg3); }

.pl-delta.is-up   { color: #c44d2e; }
.pl-delta.is-down { color: #1f5e3a; }

.pl-price {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 14px;
  font-weight: 600;
}
.pl-price:hover { background: var(--row-hover); }
.pl-price__edit {
  font-size: 9px; color: var(--fg3); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0;
}
.pl-price:hover .pl-price__edit { opacity: 1; }

.pl-price-edit {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 6px;
  border: 1px solid var(--red); border-radius: var(--radius);
  background: var(--bg-elevated);
}
.pl-price-edit > span { color: var(--fg3); font-size: 11px; font-family: var(--font-mono); }
.pl-price-edit input {
  border: 0; background: transparent;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  width: 90px; text-align: right; outline: none;
  color: var(--fg1);
}
.pl-price-edit__ok, .pl-price-edit__x {
  width: 20px; height: 20px; border-radius: var(--radius);
  font-size: 12px;
}
.pl-price-edit__ok { color: #1f5e3a; }
.pl-price-edit__ok:hover { background: rgba(46,125,80,0.14); }
.pl-price-edit__x { color: var(--fg3); }
.pl-price-edit__x:hover { color: var(--red); background: rgba(237,8,0,0.08); }

[data-mode="banzai"] .pl-matrix { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.10); }
[data-mode="banzai"] .pl-matrix__hd { background: rgba(0,0,0,0.20); border-bottom-color: rgba(255,255,255,0.10); }
[data-mode="banzai"] .pl-matrix__row { border-top-color: rgba(255,255,255,0.06); }
[data-mode="banzai"] .pl-price-edit { background: rgba(255,255,255,0.06); }
[data-mode="banzai"] .pl-price-edit input { color: rgba(255,255,255,0.95); }

/* Scope (inclusions/exclusions) */
.pl-scope, .pl-matrix2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pl-scope__col, .pl-matrix2__col {
  background: var(--bg-primary);
  border: 1px solid var(--stroke); border-radius: var(--radius);
  overflow: hidden;
}
.pl-matrix2__col--tier { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.pl-scope__hd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-recessed);
  border-bottom: 1px solid var(--stroke);
}
.pl-scope__col ol, .pl-matrix2__col ol {
  list-style: none; padding: 0; margin: 0;
}
.pl-scope__line {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 4px 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--stroke);
  font-size: 12px;
}
.pl-scope__line:first-child { border-top: 0; }
.pl-scope__area {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--fg3);
  padding-top: 3px;
  grid-row: 1 / span 2;
}
.pl-scope__feat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg1); }
.pl-scope__body { font-size: 12px; color: var(--fg2); line-height: 1.45; text-wrap: pretty; }
.pl-scope__line--out .pl-scope__feat { color: var(--fg2); }
.pl-scope__line--out .pl-scope__body { color: var(--fg3); }
.pl-scope__line--is-removed, .pl-scope__line.is-removed { opacity: 0.35; text-decoration: line-through; }
.pl-scope__line--upgraded { background: rgba(237,8,0,0.03); }
.pl-scope__line--added    { background: rgba(46,125,80,0.04); }

.pl-scope__chip {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: var(--radius);
  text-transform: uppercase;
}
.pl-scope__chip--inherits { background: rgba(26,26,26,0.06); color: var(--fg3); }
.pl-scope__chip--upgraded { background: rgba(237,8,0,0.10);  color: var(--red); }
.pl-scope__chip--added    { background: rgba(46,125,80,0.14); color: #1f5e3a; }

.pl-mtabs { display: flex; gap: 6px; padding: 4px; background: var(--bg-recessed); border-radius: var(--radius); width: fit-content; }
.pl-mtab {
  display: flex; flex-direction: column; gap: 1px; align-items: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--fg2);
}
.pl-mtab:hover { color: var(--fg1); }
.pl-mtab.is-on { background: var(--bg-elevated); color: var(--fg1); box-shadow: 0 1px 3px rgba(26,26,26,0.04); }
.pl-mtab > span:first-child { font-family: var(--font-head); font-weight: 600; font-size: 13px; }
.pl-mtab .t-label { font-size: 9px; color: var(--fg3); }

[data-mode="banzai"] .pl-scope__col,
[data-mode="banzai"] .pl-matrix2__col { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.10); }
[data-mode="banzai"] .pl-scope__hd { background: rgba(0,0,0,0.20); border-bottom-color: rgba(255,255,255,0.10); }
[data-mode="banzai"] .pl-scope__line { border-top-color: rgba(255,255,255,0.06); }
[data-mode="banzai"] .pl-mtabs { background: rgba(0,0,0,0.20); }
[data-mode="banzai"] .pl-mtab.is-on { background: rgba(255,255,255,0.08); }

/* ============================================================
   TIER MATRIX — three-column comparison (Seedling / Blossom / Eden)
   ============================================================ */

.pl-tiermatrix {
  background: var(--bg-primary);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}

.pl-tiermatrix__hd {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--bg-recessed);
  border-bottom: 1px solid var(--stroke);
  position: sticky; top: 96px;
  z-index: 2;
}
.pl-tiermatrix__cell {
  padding: 10px 14px;
  border-right: 1px solid var(--stroke);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.pl-tiermatrix__cell:last-child { border-right: 0; }

.pl-tiermatrix__cell--head {
  background: rgba(26,26,26,0.02);
  gap: 6px;
}
.pl-tiermatrix__cell--seedling { background: rgba(46,125,80,0.04); }
.pl-tiermatrix__cell--blossom  { background: rgba(217,138,42,0.04); }
.pl-tiermatrix__cell--eden     { background: rgba(237,8,0,0.04); }
.pl-tiermatrix__tier { display: flex; align-items: center; gap: 8px; }
.pl-tiermatrix__tiername { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.pl-tiermatrix__tierstats {
  display: flex; gap: 4px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg3);
}
.pl-tiermatrix__upcount { color: var(--red); }
.pl-tiermatrix__addcount { color: #1f5e3a; font-weight: 600; }
.pl-tiermatrix__rmcount { color: var(--fg3); text-decoration: line-through; }

.pl-tiermatrix__group { border-bottom: 1px solid var(--stroke); }
.pl-tiermatrix__group:last-child { border-bottom: 0; }
.pl-tiermatrix__group--added .pl-tiermatrix__grouphd {
  background: rgba(46,125,80,0.06);
}
.pl-tiermatrix__group--out .pl-tiermatrix__grouphd {
  background: rgba(26,26,26,0.04);
}
.pl-tiermatrix__grouphd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-recessed);
  border-bottom: 1px solid var(--stroke);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg2);
}

.pl-tiermatrix__row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--stroke);
}
.pl-tiermatrix__row:last-child { border-bottom: 0; }
.pl-tiermatrix__row:hover .pl-tiermatrix__cell--feature { background: var(--row-hover); }

.pl-tiermatrix__cell--feature {
  background: var(--bg-elevated);
  padding: 12px 14px;
  font-size: 13px;
}
.pl-tiermatrix__cell--feature strong { color: var(--fg1); display: block; margin-bottom: 2px; }
.pl-tiermatrix__cell--feature .t-label { font-size: 9px; color: var(--fg3); font-family: var(--font-mono); }

.pl-tiermatrix__body {
  font-size: 11px;
  line-height: 1.45;
  color: var(--fg2);
  margin-top: 2px;
  text-wrap: pretty;
}
.pl-tiermatrix__cell .pl-scope__chip {
  align-self: flex-start;
  margin-bottom: 2px;
}

/* Tone the resolved-cell backgrounds so the diff reads at a glance */
.pl-tiermatrix__cell--inherits { background: var(--bg-primary); }
.pl-tiermatrix__cell--upgraded {
  background: rgba(237,8,0,0.04);
  box-shadow: inset 0 0 0 1px rgba(237,8,0,0.10);
}
.pl-tiermatrix__cell--added {
  background: rgba(46,125,80,0.05);
  box-shadow: inset 0 0 0 1px rgba(46,125,80,0.15);
}
.pl-tiermatrix__cell--removed,
.pl-tiermatrix__cell.is-removed {
  background: rgba(26,26,26,0.04);
  color: var(--fg3);
}
.pl-tiermatrix__cell--removed .pl-tiermatrix__body,
.pl-tiermatrix__cell.is-removed .pl-tiermatrix__body { text-decoration: line-through; opacity: 0.7; }
.pl-tiermatrix__cell--empty { background: var(--bg-recessed); color: var(--fg3); }
.pl-tiermatrix__cell--empty .pl-tiermatrix__body { font-style: italic; }
.pl-tiermatrix__cell--out {
  background: rgba(26,26,26,0.04);
  font-size: 12px;
}
.pl-tiermatrix__row--out { background: rgba(26,26,26,0.02); }

[data-mode="banzai"] .pl-tiermatrix { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.10); }
[data-mode="banzai"] .pl-tiermatrix__hd,
[data-mode="banzai"] .pl-tiermatrix__grouphd { background: rgba(0,0,0,0.25); border-bottom-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.75); }
[data-mode="banzai"] .pl-tiermatrix__cell { border-right-color: rgba(255,255,255,0.08); }
[data-mode="banzai"] .pl-tiermatrix__row,
[data-mode="banzai"] .pl-tiermatrix__group { border-bottom-color: rgba(255,255,255,0.06); }
[data-mode="banzai"] .pl-tiermatrix__cell--feature { background: rgba(255,255,255,0.04); }
[data-mode="banzai"] .pl-tiermatrix__cell--feature strong { color: rgba(255,255,255,0.95); }
[data-mode="banzai"] .pl-tiermatrix__cell--inherits { background: rgba(255,255,255,0.02); }
[data-mode="banzai"] .pl-tiermatrix__cell--upgraded { background: rgba(237,8,0,0.12); }
[data-mode="banzai"] .pl-tiermatrix__cell--added    { background: rgba(46,125,80,0.14); }
[data-mode="banzai"] .pl-tiermatrix__cell--removed,
[data-mode="banzai"] .pl-tiermatrix__cell.is-removed { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.45); }
[data-mode="banzai"] .pl-tiermatrix__cell--seedling { background: rgba(46,125,80,0.10); }
[data-mode="banzai"] .pl-tiermatrix__cell--blossom  { background: rgba(217,138,42,0.10); }
[data-mode="banzai"] .pl-tiermatrix__cell--eden     { background: rgba(237,8,0,0.10); }

/* ============================================================
   MARKETED VIEW — customer-facing comparison
   ============================================================ */

.pl-public { display: flex; flex-direction: column; gap: 8px; }
.pl-public__sub { margin: 0 0 6px; font-size: 12px; color: var(--fg3); text-wrap: pretty; }
.pl-public__grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(0, 1fr));
  background: var(--bg-primary);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}
.pl-public__col {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--stroke);
}
.pl-public__col:last-child { border-right: 0; }
.pl-public__col > header {
  padding: 12px 14px;
  background: var(--bg-recessed);
  border-bottom: 1px solid var(--stroke);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600;
  position: sticky; top: 96px;
}
.pl-public__col--label > header { background: var(--bg-elevated); }
.pl-public__col--seedling > header { background: rgba(46,125,80,0.08); }
.pl-public__col--blossom  > header { background: rgba(217,138,42,0.08); }
.pl-public__col--eden     > header { background: rgba(237,8,0,0.06); }
.pl-public__tname { font-size: 14px; }

.pl-public__row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; line-height: 1.45;
}
.pl-public__row:last-child { border-bottom: 0; }
.pl-public__col--label .pl-public__row { flex-direction: column; gap: 2px; align-items: flex-start; }
.pl-public__col--label .pl-public__row strong { font-size: 13px; }
.pl-public__col--label .pl-public__row .t-label { font-size: 9px; color: var(--fg3); }

.pl-public__check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.pl-public__check--inherits { background: rgba(46,125,80,0.14); color: #1f5e3a; }
.pl-public__check--upgraded { background: rgba(237,8,0,0.14); color: var(--red); }
.pl-public__check--added    { background: rgba(46,125,80,0.20); color: #1f5e3a; }
.pl-public__miss {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(26,26,26,0.06); color: var(--fg3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.pl-public__line { text-wrap: pretty; }
.pl-public__line--muted { color: var(--fg3); font-style: italic; }

.pl-public__row--upgraded { background: rgba(237,8,0,0.02); }
.pl-public__row--added    { background: rgba(46,125,80,0.03); }
.pl-public__row--missing  { background: rgba(26,26,26,0.02); }

[data-mode="banzai"] .pl-public__grid { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.10); }
[data-mode="banzai"] .pl-public__col { border-right-color: rgba(255,255,255,0.08); }
[data-mode="banzai"] .pl-public__row { border-bottom-color: rgba(255,255,255,0.06); }
[data-mode="banzai"] .pl-public__col > header { background: rgba(0,0,0,0.25); border-bottom-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.92); }
[data-mode="banzai"] .pl-public__col--label > header { background: rgba(255,255,255,0.04); }
[data-mode="banzai"] .pl-public__col--seedling > header { background: rgba(46,125,80,0.18); }
[data-mode="banzai"] .pl-public__col--blossom  > header { background: rgba(217,138,42,0.18); }
[data-mode="banzai"] .pl-public__col--eden     > header { background: rgba(237,8,0,0.16); }
[data-mode="banzai"] .pl-public__miss { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }

/* Responsive — collapse to single column at narrow */
@media (max-width: 1100px) {
  .pl-tiermatrix__hd,
  .pl-tiermatrix__row { grid-template-columns: 1fr; }
  .pl-tiermatrix__cell { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .pl-public__grid { grid-template-columns: 1fr; }
  .pl-public__col { border-right: 0; border-bottom: 1px solid var(--stroke); }
}

/* ============================================================
   PRICING CHIPS — live price card in New Deal modal, on Deal Home
   ============================================================ */

/* New Deal modal — pricing card */
.modal__pricecard {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(46,125,80,0.06);
  border: 1px solid rgba(46,125,80,0.25);
  border-radius: var(--radius);
}
.modal__pricecard__l { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.modal__pricecard__l .t-label { color: #1f5e3a; }
.modal__pricecard__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.modal__pricecard__r {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding-left: 16px; border-left: 1px solid rgba(46,125,80,0.25);
}
.modal__pricecard__total {
  font-family: var(--font-head); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em;
  color: #134127;
}
.modal__pricecard--miss {
  background: rgba(237,8,0,0.04);
  border-color: rgba(237,8,0,0.25);
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.modal__pricecard--miss span:last-child { font-size: 13px; color: var(--fg2); }

[data-mode="banzai"] .modal__pricecard { background: rgba(46,125,80,0.14); border-color: rgba(46,125,80,0.40); }
[data-mode="banzai"] .modal__pricecard__l .t-label { color: #74c79d; }
[data-mode="banzai"] .modal__pricecard__total { color: #b8e6cd; }

/* Deal Home — price next to product row */
.dh-products li {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; align-items: center;
}
.dh-product__price {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
}
.dh-product__priceval {
  font-family: var(--font-head); font-weight: 600;
  font-size: 15px; letter-spacing: -0.01em;
  color: var(--fg1);
}
.dh-product__price .t-label { font-size: 8px; color: var(--fg3); }

[data-mode="banzai"] .dh-product__priceval { color: #fff; }

.pl--readonly input,
.pl--readonly textarea,
.pl--readonly .pl-price,
.pl--readonly .pl-addon__tiers button,
.pl--readonly .pl-section .btn {
  pointer-events: none;
}

.pl--readonly input,
.pl--readonly textarea {
  color: var(--fg2);
  background: rgba(16, 24, 32, 0.03);
}

.pl--readonly .pl-price__edit,
.pl--readonly .pl-price-edit {
  display: none;
}

/* ============================================================
   Responsive collapses
   ============================================================ */
@media (max-width: 1280px) {
  .pl-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .pl-tier-grid { grid-template-columns: 1fr; }
  .pl-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .pl-shell { grid-template-columns: 1fr; }
  .pl-products { position: static; }
  .pl-scope, .pl-matrix2 { grid-template-columns: 1fr; }
}
