/* SmartersWeb SI V43.2 — shared shell, entitlements and public pricing.
 * Loaded AFTER V39/V41 shell and V43.1 Plans styles.
 * CSS only affects page geometry/presentation; no navigation JS or billing changes.
 */

/* Shared workspace content containment: do not let wide descendants resize the rail. */
body.workspace-shell-v35 .dashboard > .dash-main,
body.workspace-shell-v35 .dashboard > .dash-main > *,
body.workspace-shell-v35 .dashboard > .dash-main :is(.grid,.panel,.card,.metric-card,.dashboard-grid-main,.section-head) > * {
  min-width:0;
}
body.workspace-shell-v35 .dashboard > .dash-main :is(.panel,.card,.metric-card,.dash-hero) {
  box-sizing:border-box;max-width:100%;
}
body.workspace-shell-v35 .dashboard > .dash-main :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  box-sizing:border-box;min-width:0;max-width:100%;
}
body.workspace-shell-v35 .dashboard > .dash-main :is(.table-wrap,.table-responsive) {
  overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;
}
/* Existing admin heroes have diverse child structures; stack content rather than
   forcing every heading, paragraph and action into an equal-height horizontal row. */
body.workspace-shell-v35.section-admin .dashboard > .dash-main > .dash-hero {
  flex-direction:column!important;justify-content:flex-start!important;
  align-items:flex-start!important;gap:12px!important;
}
body.workspace-shell-v35.section-admin .dashboard > .dash-main > .dash-hero > :is(p,.lead) {
  margin:0!important;max-width:80ch!important;
}
body.workspace-shell-v35 .dashboard > .dash-main .dashboard-topbar {
  flex-wrap:wrap!important;align-items:flex-start!important;gap:16px 22px!important;
}
body.workspace-shell-v35 .dashboard > .dash-main .dashboard-topbar > :first-child {
  flex:1 1 300px;min-width:0;
}
body.workspace-shell-v35 .dashboard > .dash-main .dashboard-topbar-actions {
  margin-left:auto;min-width:0;justify-content:flex-end;
}
body.workspace-shell-v35 .dashboard > .dash-main .v35-connection-strip > a {
  min-width:0;overflow-wrap:anywhere;
}
@media (max-width:1060px) {
  body.workspace-shell-v35 .dashboard > .dash-main .dashboard-grid-main {
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.workspace-shell-v35 .dashboard > .dash-main .v35-connection-strip {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width:760px) {
  body.workspace-shell-v35 .dashboard > .dash-main .dashboard-topbar-actions {
    width:100%;margin-left:0;justify-content:flex-start;
  }
  body.workspace-shell-v35 .dashboard > .dash-main .v35-connection-strip {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.workspace-shell-v35 .dashboard > .dash-main .section-head {
    flex-wrap:wrap;align-items:flex-start;
  }
}
@media (max-width:460px) {
  body.workspace-shell-v35 .dashboard > .dash-main .dashboard-topbar-actions .btn {
    flex:1 1 auto;min-width:0;
  }
  body.workspace-shell-v35 .dashboard > .dash-main .v35-connection-strip {
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* Admin / Plan entitlements. All styles scoped to the dedicated page. */
body.workspace-shell-v35 .si432-entitlements {
  --si432-ink:var(--v35-text,var(--text,#142133));
  --si432-muted:var(--v35-muted,var(--muted,#617083));
  --si432-line:var(--v35-border,var(--line,#dbe3eb));
  --si432-surface:var(--v35-surface,var(--panel,#fff));
  --si432-soft:var(--v35-surface-soft,var(--panel-2,#f6f8fa));
  --si432-accent:var(--v35-teal,var(--brand-2,#078f77));
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-heading {
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:16px 24px;flex-wrap:wrap;min-width:0;
  padding:3px 0 6px;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-heading-copy {
  flex:1 1 480px;min-width:0;
}
body.workspace-shell-v35 .si432-entitlements .si432-kicker,
body.workspace-shell-v35 .si432-entitlements .si432-section-kicker {
  display:block;color:var(--si432-muted);font-size:.68rem;font-weight:850;
  letter-spacing:.085em;text-transform:uppercase;line-height:1.4;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-heading .page-title {
  margin:8px 0 6px!important;font-size:clamp(1.85rem,2.3vw,2.5rem)!important;
  line-height:1.13!important;letter-spacing:-.045em!important;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-heading p {
  max-width:78ch;margin:0;color:var(--si432-muted);font-size:.88rem;line-height:1.65;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-heading > .btn {
  min-height:40px;white-space:nowrap;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-selector,
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-panel {
  min-width:0;padding:clamp(17px,1.7vw,25px)!important;
  border:1px solid var(--si432-line)!important;border-radius:14px!important;
  background:var(--si432-surface)!important;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-section-head {
  display:flex;justify-content:space-between;align-items:flex-start;gap:10px 18px;
  flex-wrap:wrap;margin:0 0 18px;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-section-head h2 {
  margin:3px 0 5px;font-size:clamp(1.06rem,1.4vw,1.3rem)!important;
  line-height:1.25;letter-spacing:-.025em;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-section-head p {
  max-width:86ch;margin:0;color:var(--si432-muted);font-size:.79rem;line-height:1.6;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-status {
  display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;
  border-radius:7px;border:1px solid var(--si432-line);
  background:var(--si432-soft);color:var(--si432-muted);
  font-size:.72rem;font-weight:750;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-status.is-published {
  border-color:color-mix(in srgb,var(--si432-accent) 32%,var(--si432-line));
  color:var(--si432-accent);background:color-mix(in srgb,var(--si432-accent) 8%,var(--si432-surface));
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-selector-form {
  display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px 12px;min-width:0;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-selector-form label {
  display:grid;gap:7px;flex:1 1 320px;max-width:660px;min-width:0;
  color:var(--si432-ink);font-size:.77rem;font-weight:750;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-selector-form button {min-height:42px!important;}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-form {
  display:grid;gap:clamp(14px,1.2vw,20px);min-width:0;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-fields {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-policies {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-support {
  max-width:420px;margin-top:16px;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-field {
  display:grid;align-content:start;gap:7px;min-width:0;
  font-size:.77rem;line-height:1.45;font-weight:750;color:var(--si432-ink);
}
body.workspace-shell-v35 .si432-entitlements :is(.si432-entitlements-field,.si432-entitlements-selector-form) :is(input,select,textarea) {
  box-sizing:border-box;width:100%;min-width:0;max-width:100%;
  border:1px solid var(--si432-line);border-radius:9px;
  background:var(--si432-surface);color:var(--si432-ink);
  font-size:.86rem;line-height:1.4;padding:10px 12px;
}
body.workspace-shell-v35 .si432-entitlements :is(.si432-entitlements-field,.si432-entitlements-selector-form) :is(input,select) {
  min-height:43px!important;background-image:none!important;
  background-color:var(--si432-surface)!important;color:var(--si432-ink)!important;
}
/* Earlier versions apply an important multi-layer gradient to number inputs.
   This page-specific rule wins that legacy selector in both colour schemes. */
body.workspace-shell-v35 .dashboard > .dash-main.si432-entitlements .si432-entitlements-panel .si432-entitlements-field input[type="number"] {
  background:var(--si432-surface)!important;color:var(--si432-ink)!important;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-field textarea {
  min-height:95px!important;resize:vertical;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table-wrap {
  width:100%;max-width:100%;min-width:0;overflow-x:auto;
  overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;
  border:1px solid var(--si432-line);border-radius:10px;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table {
  border-collapse:collapse;width:100%;min-width:780px;table-layout:fixed;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table th:nth-child(1){width:29%;}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table th:nth-child(2){width:22%;}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table th:nth-child(3){width:49%;}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table :is(th,td) {
  box-sizing:border-box;padding:11px 13px!important;vertical-align:middle;
  text-align:left;overflow-wrap:anywhere;
  border-bottom:1px solid var(--si432-line);
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table thead th {
  background:var(--si432-soft);font-size:.68rem;letter-spacing:.075em;
  text-transform:uppercase;font-weight:850;color:var(--si432-muted);
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table tbody th {
  color:var(--si432-ink);font-size:.79rem;font-weight:750;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table tbody tr:last-child :is(th,td) {border-bottom:0;}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table tbody tr:hover {background:color-mix(in srgb,var(--si432-accent) 3%,var(--si432-surface));}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-table :is(input,select) {
  box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;
  min-height:39px!important;padding:7px 10px!important;
  border:1px solid var(--si432-line);border-radius:8px;
  background:var(--si432-surface);color:var(--si432-ink);font-size:.8rem;
}
body.workspace-shell-v35 .si432-entitlements .si432-restricted {
  display:block;margin-top:5px;font-size:.68rem;line-height:1.4;
  font-weight:500;color:var(--si432-muted);
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-savebar {
  display:flex;align-items:center;justify-content:space-between;gap:14px 20px;
  flex-wrap:wrap;margin-top:18px;padding-top:18px;
  border-top:1px solid var(--si432-line);
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-savebar p {
  flex:1 1 340px;max-width:78ch;margin:0;
  color:var(--si432-muted);font-size:.76rem;line-height:1.55;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-savebar .btn {min-height:42px;}
body.workspace-shell-v35 .si432-entitlements .si432-visually-hidden {
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}
body.workspace-shell-v35 .si432-entitlements .si432-entitlements-empty {color:var(--si432-muted);}
@media(max-width:1120px) {
  body.workspace-shell-v35 .si432-entitlements .si432-entitlements-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px) {
  body.workspace-shell-v35 .si432-entitlements .si432-entitlements-fields,
  body.workspace-shell-v35 .si432-entitlements .si432-entitlements-policies {grid-template-columns:minmax(0,1fr);}
  body.workspace-shell-v35 .si432-entitlements .si432-entitlements-heading {align-items:flex-start;}
  body.workspace-shell-v35 .si432-entitlements .si432-entitlements-selector-form button {flex:1 1 auto;}
}

/* Public pricing V43 base styles, moved from inline PHP for maintainability. */
.si43-pricing{--si-stroke:rgba(132,153,169,.23);--si-glow:#7cf5d6}.si43-pricing .si43-intro{max-width:900px;margin:0 auto 32px;text-align:center}.si43-pricing .si43-intro h1{font-size:clamp(2.2rem,5vw,4rem);line-height:1.1;margin:.6rem auto 1rem;letter-spacing:-.04em}.si43-pricing .si43-intro p{max-width:780px;margin:0 auto}.si43-pricing .si43-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;align-items:stretch}.si43-pricing .si43-card{border:1px solid var(--si-stroke);border-radius:20px;padding:26px;display:flex;flex-direction:column;background:var(--card-bg,rgba(110,135,160,.055));min-width:0}.si43-pricing .si43-card.si43-highlight{border-color:var(--si-glow);box-shadow:0 0 0 1px rgba(124,245,214,.12)}.si43-pricing .si43-card h2{margin:8px 0 6px}.si43-pricing .si43-card .si43-price{font-size:2rem;font-weight:800;margin:18px 0 4px}.si43-pricing .si43-price small{font-size:.85rem;font-weight:500}.si43-pricing .si43-kicker{letter-spacing:.09em;text-transform:uppercase;font-size:.73rem;font-weight:700;opacity:.78}.si43-pricing .si43-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}.si43-pricing .si43-metric{border:1px solid var(--si-stroke);border-radius:12px;padding:11px;min-height:66px}.si43-pricing .si43-metric strong{font-size:1.1rem;display:block}.si43-pricing .si43-metric span{display:block;font-size:.76rem;opacity:.75}.si43-pricing .si43-list{padding-left:19px;margin:10px 0 24px}.si43-pricing .si43-list li{margin:8px 0}.si43-pricing .si43-action{margin-top:auto}.si43-pricing .si43-card .btn{width:100%;justify-content:center}.si43-pricing .si43-section{margin:42px auto;max-width:1280px}.si43-pricing .si43-note{border:1px solid var(--si-stroke);border-radius:12px;padding:17px 20px;margin:20px auto}.si43-pricing .si43-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px}.si43-pricing .si43-mini{padding:19px;border:1px solid var(--si-stroke);border-radius:12px}.si43-pricing .si43-mini p{margin:8px 0 0}.si43-pricing .si43-filter{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:20px 0 30px}.si43-pricing .si43-filter button{border-radius:24px;border:1px solid var(--si-stroke);padding:10px 18px;background:transparent;color:inherit;cursor:pointer}.si43-pricing .si43-filter button[aria-pressed=true]{border-color:var(--si-glow);font-weight:800}.si43-pricing .si43-table{width:100%;border-collapse:collapse;font-size:.89rem}.si43-pricing .si43-table th,.si43-pricing .si43-table td{padding:13px;border-bottom:1px solid var(--si-stroke);text-align:left;vertical-align:top}.si43-pricing .si43-scroll{overflow-x:auto}.si43-pricing .si43-status{font-size:.76rem;display:inline-block;border:1px solid var(--si-stroke);border-radius:20px;padding:3px 8px;white-space:nowrap}.si43-pricing details{border-bottom:1px solid var(--si-stroke);padding:14px 0}.si43-pricing summary{font-weight:700;cursor:pointer}.si43-pricing details p{margin:10px 0}.si43-pricing [hidden]{display:none!important}

/* V43.2 pricing: responsive card density, readable comparisons and theme inheritance. */
body .si43-pricing.si432-pricing {
  --si-stroke:var(--v35-border,var(--line,rgba(132,153,169,.23)));
  --si-glow:var(--v35-teal,var(--brand-2,#078f77));
  box-sizing:border-box;min-width:0;
}
body.public-shell-v35 #app-main.main-public > .si43-pricing.si432-pricing {
  width:min(100%,1400px);max-width:1400px;
  padding:clamp(36px,4vw,66px) clamp(16px,2.5vw,34px);
  margin-inline:auto;
}
body.workspace-shell-v35 .billing-workspace > .dash-main > .si43-pricing.si432-pricing {
  width:100%!important;max-width:none!important;padding:0!important;margin:0!important;
}
body .si43-pricing.si432-pricing .si43-intro {margin:0 auto clamp(24px,3vw,38px);}
body .si43-pricing.si432-pricing .si43-intro h1 {
  max-width:18ch;font-size:clamp(2rem,4.2vw,3.55rem);line-height:1.09;
  text-wrap:balance;overflow-wrap:normal;
}
body .si43-pricing.si432-pricing .si43-intro p {
  max-width:76ch;font-size:clamp(.95rem,1.15vw,1.06rem);line-height:1.7;
}
body .si43-pricing.si432-pricing .si43-cards {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:clamp(13px,1.4vw,20px);
}
body .si43-pricing.si432-pricing .si43-card {
  padding:clamp(17px,1.7vw,25px);border-radius:15px;
  background:var(--v35-surface,var(--panel,rgba(110,135,160,.055)));
  box-shadow:0 3px 16px rgba(13,31,48,.03);
}
body .si43-pricing.si432-pricing .si43-card.si43-highlight {
  border-color:var(--si-glow);box-shadow:0 0 0 1px color-mix(in srgb,var(--si-glow) 25%,transparent);
}
body .si43-pricing.si432-pricing .si43-card .si43-price {
  font-size:clamp(1.65rem,2.4vw,2.2rem);font-variant-numeric:tabular-nums;
}
body .si43-pricing.si432-pricing .si43-metrics {gap:8px;margin:16px 0;}
body .si43-pricing.si432-pricing .si43-metric {
  min-width:0;padding:10px 12px;border-radius:9px;
  background:var(--v35-surface-soft,var(--panel-2,transparent));
}
body .si43-pricing.si432-pricing .si43-metric span {line-height:1.4;overflow-wrap:anywhere;}
body .si43-pricing.si432-pricing .si43-section {margin:clamp(28px,4vw,48px) auto;min-width:0;}
body .si43-pricing.si432-pricing .si43-section h2 {font-size:clamp(1.45rem,2.2vw,2.1rem);line-height:1.2;}
body .si43-pricing.si432-pricing .si43-scroll {
  width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;border:1px solid var(--si-stroke);
  border-radius:10px;
}
body .si43-pricing.si432-pricing .si43-table {min-width:860px;}
body .si43-pricing.si432-pricing .si43-table :is(th,td) {padding:11px 13px;}
body .si43-pricing.si432-pricing .si43-table thead th {
  background:var(--v35-surface-soft,var(--panel-2,transparent));
  font-size:.73rem;line-height:1.35;white-space:normal;
}
body .si43-pricing.si432-pricing .si43-filter button {min-height:40px;border-radius:9px;}
body .si43-pricing.si432-pricing .si43-filter button[aria-pressed="true"] {
  border-color:var(--si-glow);background:color-mix(in srgb,var(--si-glow) 9%,transparent);
}
body .si43-pricing.si432-pricing .si43-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));}
body .si43-pricing.si432-pricing .si43-mini {border-radius:11px;padding:18px;}
body .si43-pricing.si432-pricing .si43-note {border-radius:10px;}
body .si43-pricing.si432-pricing .si43-scroll:focus-visible,
body .si43-pricing.si432-pricing .si43-filter button:focus-visible {
  outline:3px solid var(--si-glow);outline-offset:3px;
}
@media(max-width:720px) {
  body.public-shell-v35 #app-main.main-public > .si43-pricing.si432-pricing {padding:28px 16px;}
  body .si43-pricing.si432-pricing .si43-intro h1 {font-size:clamp(1.85rem,8vw,2.65rem);}
  body .si43-pricing.si432-pricing .si43-cards {grid-template-columns:minmax(0,1fr);}
  body .si43-pricing.si432-pricing .si43-mini {padding:15px;}
}
@media(max-width:380px) {
  body .si43-pricing.si432-pricing .si43-metrics {grid-template-columns:minmax(0,1fr);}
  body .si43-pricing.si432-pricing .si43-filter button {flex:1 1 100%;}
}
