@layer lf-pages {
/* Billing and public plans migration layer. */
:where(.plans-public-wrap, .billing-clean-page) {
  color: var(--lf-color-text);
}

:where(.plans-public-card, .plans-comparison-panel, .billing-overview-panel, .billing-feature-detail-panel, .billing-usage-panel, .billing-invoice-card) {
  border-color: var(--lf-color-border);
  border-radius: var(--lf-radius-lg);
}

:where(.billing-primary-button, .billing-inline-link, .plans-billing-toggle button, .landing-button) {
  border-radius: var(--lf-radius-md);
  font-weight: var(--lf-font-weight-900);
}

:where(.plans-public-card .plan-status-pill, .billing-eyebrow) {
  letter-spacing: 0.02em;
}

:where(.billing-info-summary, .billing-plan-summary, .billing-includes-summary, .plans-pricing-card, .plans-usage-row) {
  min-width: 0;
}

:where(.billing-feature-detail-panel, .billing-usage-panel, .plans-comparison-panel, .plans-usage-panel) {
  background: transparent;
}

:where(.billing-feature-detail-list, .billing-feature-list, .plans-pricing-features) {
  list-style: none;
  margin: 0;
  padding: 0;
}

:where(.billing-invoice-close, .plans-create-close) {
  border: 1px solid var(--lf-color-border);
  background: var(--lf-color-surface-muted);
}

:where(.billing-invoice-card) {
  color: var(--lf-color-text);
  background: transparent;
}

:where(.billing-invoice-header h2) {
  color: var(--lf-color-text);
}

:where(.billing-invoice-header p) {
  color: var(--lf-color-muted);
}

:where(.plans-admin-table-wrap) {
  overflow: auto;
}

:where(.plans-admin-table) {
  width: 100%;
}

@media (max-width: 760px) {
  :where(.plans-card-cta, .billing-primary-button, .billing-secondary-button) {
    width: 100%;
  }
}

/* Migrated from plans.html: Plans inline styles. */
.plans-public-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(18px, 3vw, 40px) 56px;
}
.public-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1200px, calc(100% - 36px));
  margin: 14px auto 30px;
  padding: 12px;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.24);
  border-radius: var(--lf-radius-xl);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition: background 0.24s ease, box-shadow 0.24s ease, backdrop-filter 0.24s ease;
}
.public-nav.is-scrolled {
  background: rgba(var(--lf-rgb-white), 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px var(--lf-color-border);
}
.public-brand,
.public-links,
.public-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.public-brand {
  min-width: 54px;
  color: var(--lf-color-text);
  text-decoration: none;
}
.public-brand-copy {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 3px;
  line-height: 1;
  text-align: left;
}
.public-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 50px;
  border-radius: var(--lf-radius-lg);
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.public-logo img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}
.public-brand-name {
  display: block;
  font-size: var(--lf-font-size-xl);
  font-weight: var(--lf-font-weight-950);
  line-height: 1;
  white-space: nowrap;
}
.public-brand-leads {
  display: inline;
  color: var(--lf-color-primary);
}
.public-brand-flows {
  display: inline;
  color: var(--lf-color-secondary);
}
.public-brand .public-brand-tagline {
  display: block;
  color: var(--lf-color-primary);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-900);
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
  text-align: left;
}
.public-links a {
  padding: 10px 12px;
  border-radius: var(--lf-radius-pill);
  color: var(--lf-color-text-soft);
  font-size: var(--lf-font-size-md);
  font-weight: var(--lf-font-weight-900);
  text-decoration: none;
}
.public-links a:hover {
  background: rgba(var(--lf-rgb-primary), 0.08);
  color: var(--lf-color-primary);
}
.public-mobile-menu {
  position: relative;
  display: none;
}
.public-mobile-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--lf-rgb-primary), 0.18);
  border-radius: var(--lf-radius-md);
  background: rgba(var(--lf-rgb-primary), 0.08);
  color: var(--lf-color-primary);
  cursor: pointer;
  list-style: none;
}
.public-mobile-menu summary::-webkit-details-marker {
  display: none;
}
.public-mobile-menu summary svg {
  width: 22px;
  height: 22px;
}
.public-mobile-menu[open] summary {
  background: var(--lf-color-primary);
  color: var(--lf-color-on-primary);
}
.public-mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.24);
  border-radius: var(--lf-radius-lg);
  background: rgba(var(--lf-rgb-white), 0.98);
  box-shadow: 0 18px 45px rgba(var(--lf-rgb-text), 0.14);
}
.public-mobile-menu-panel a {
  padding: 11px 12px;
  border-radius: var(--lf-radius-sm);
  color: var(--lf-color-text-soft);
  font-size: var(--lf-font-size-md);
  font-weight: var(--lf-font-weight-900);
  text-decoration: none;
}
.public-mobile-menu-panel a:hover {
  background: rgba(var(--lf-rgb-primary), 0.08);
  color: var(--lf-color-primary);
}
.public-button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(var(--lf-rgb-primary), 0.18);
  border-radius: var(--lf-radius-md);
  background: var(--lf-color-primary);
  color: var(--lf-color-on-primary);
  font: inherit;
  font-size: var(--lf-font-size-md);
  font-weight: var(--lf-font-weight-950);
  text-decoration: none;
  cursor: pointer;
}
.public-button.is-ghost {
  background: transparent;
  color: var(--lf-color-primary);
}
.public-button.is-purple {
  border-color: rgba(var(--lf-rgb-secondary), 0.26);
  background: rgba(var(--lf-rgb-secondary), 0.1);
  color: var(--lf-color-secondary);
}
.public-button.is-purple:hover {
  background: var(--lf-color-secondary);
  color: var(--lf-color-on-primary);
}
.plans-public-wrap .plans-row-head {
}
.plans-public-wrap .plans-row-head > div {
  position: relative;
  align-content: center;
  gap: 9px;


}
.plans-public-wrap .plans-row-head > .is-popular {
  align-content: center;

  overflow: visible;
}
.plans-public-wrap .plans-row-head em {
  position: absolute;

  left: 50%;
  display: inline-flex;
  justify-self: center;
  transform: translateX(-50%);
  margin: 0;

  border-radius: var(--lf-radius-pill);
  line-height: 1;
}
.plans-public-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 4px 0 24px;
}
.plans-public-card-stack {
  display: grid;
  gap: 16px;
}
.plans-public-card {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.18);
  border-radius: var(--lf-radius-lg);
  background: rgba(var(--lf-rgb-white), 0.82);
  box-shadow: 0 18px 38px rgba(var(--lf-rgb-text), 0.055);
}
.plans-public-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.plans-public-card-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.plans-public-card-copy span {
  color: var(--lf-palette-slate-600);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plans-public-card-copy strong {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-xl);
  font-weight: var(--lf-font-weight-900);
  letter-spacing: -0.03em;
}
.plans-public-card-copy p,
.plans-public-card-copy small,
.plans-public-actions small {
  margin: 0;
  color: var(--lf-color-muted);
}
.plans-public-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--lf-radius-pill);
  background: color-mix(in srgb, var(--primary-light) 72%, var(--surface));
  color: var(--primary-color);
  font-size: var(--lf-font-size-md);
  font-weight: var(--lf-font-weight-900);
  white-space: nowrap;
}
.plans-public-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plans-public-features li {
  color: var(--lf-color-text-soft);
  font-size: var(--lf-font-size-md);
}
.plans-public-features li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--lf-color-primary);
  font-weight: var(--lf-font-weight-900);
}
.plans-public-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.plans-public-wrap .plans-billing-toggle {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 3px;
}
.plans-public-wrap .plans-comparison-panel {
}
.plans-public-wrap .plans-comparison-header {
  position: relative;
  isolation: isolate;
  max-width: 900px;


  animation: plansHeaderRise 0.8s ease both;
}
.plans-public-wrap .plans-comparison-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: var(--lf-radius-pill);
  pointer-events: none;
}
.plans-public-wrap .plans-comparison-header::before {
  inset: 6px 12% auto;

  background: linear-gradient(90deg, rgba(var(--lf-rgb-primary), 0.10), rgba(var(--lf-rgb-secondary), 0.16), rgba(var(--lf-rgb-primary), 0.08));

  opacity: 0.8;
  animation: plansHeaderGlow 5s ease-in-out infinite;
}
.plans-public-wrap .plans-comparison-header h2 {
  position: relative;


  background: linear-gradient(90deg, var(--lf-color-text) 0%, var(--lf-color-primary) 46%, var(--lf-color-secondary) 68%, var(--lf-color-text) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;

  animation: plansTitleSheen 6s ease-in-out infinite;
}
.plans-public-wrap .plans-comparison-header p {
  margin: 0;
  max-width: 720px;

}
.plans-motion-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 6px;
  padding: 8px 13px;
  border-radius: var(--lf-radius-pill);
  background: rgba(var(--lf-rgb-primary), 0.08);
  color: var(--lf-color-primary);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-950);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plans-motion-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--lf-radius-pill);
  background: var(--lf-color-secondary);
  box-shadow: 0 0 0 0 rgba(var(--lf-rgb-secondary), 0.36);
  animation: plansPulse 1.8s ease-out infinite;
}
@keyframes plansHeaderRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes plansHeaderGlow {
  0%, 100% { transform: translateX(-2%); opacity: 0.6; }
  50% { transform: translateX(2%); opacity: 0.95; }
}
@keyframes plansTitleSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes plansPulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--lf-rgb-secondary), 0.36); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(var(--lf-rgb-secondary), 0); }
}
.plans-public-wrap .plans-comparison-table {
  overflow: visible;
}
.plans-public-wrap .plans-row > div:nth-child(3) {
  background: linear-gradient(180deg, rgba(var(--lf-rgb-secondary), 0.16), rgba(var(--lf-rgb-secondary), 0.055));
  box-shadow: inset 1px 0 0 rgba(var(--lf-rgb-secondary), 0.08), inset -1px 0 0 rgba(var(--lf-rgb-secondary), 0.08);
}
.plans-public-wrap .plans-row-head > div:nth-child(3) {
  border-radius: var(--lf-radius-lg) 18px 0 0;
}
.plans-public-wrap .plans-row:last-child > div:nth-child(3) {
  border-radius: 0 0 18px 18px;
}
.plans-public-wrap .plans-row-head .is-pro {
  background: rgba(var(--lf-rgb-secondary), 0.14);
  color: var(--lf-palette-violet-700);
}
.plans-public-wrap .plans-comparison-panel {
  padding-top: 28px;
  padding-bottom: 36px;
  overflow: visible;
}
.plans-public-wrap .public-nav {
  margin-bottom: 20px;
}
.plans-public-wrap .plans-comparison-header {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 16px 22px 0;
  overflow: visible;
}
.plans-public-wrap .plans-comparison-header::before {
  height: 54px;
  filter: blur(14px);
}
.plans-public-wrap .plans-comparison-header h2 {
  margin: 5px 0 3px;
  font-size: clamp(26px, 2.15vw, 32px);
  line-height: 1.02;
}
.plans-public-wrap .plans-comparison-header p {
  font-size: var(--lf-font-size-md);
  line-height: 1.35;
}
.plans-public-wrap .plans-motion-kicker {
  padding: 5px 9px;
  font-size: var(--lf-font-size-xs);
  margin-bottom: 4px;
}
.plans-public-wrap .plans-billing-toggle--center {
  margin: 4px auto 34px;
}
.plans-public-wrap .plans-billing-toggle button {
  min-height: 32px;
  min-width: 104px;
  padding: 0 15px;
  font-size: var(--lf-font-size-sm);
}
.plans-public-wrap .plans-comparison-table {
  width: min(100%, 980px);
  min-width: 720px;
  margin: 0 auto;
  border-radius: var(--lf-radius-lg);
}
.plans-public-wrap .plans-row {
  grid-template-columns: minmax(160px, 0.86fr) repeat(3, minmax(120px, 1fr));
  min-height: 38px;
}
.plans-public-wrap .plans-row > div {
  gap: 3px;
  padding: 6px 9px;
  font-size: var(--lf-font-size-sm);
  line-height: 1.2;
}
.plans-public-wrap .plans-row > div:first-child {
  gap: 7px;
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-650);
}
.plans-public-wrap .plans-row-head {
  min-height: 94px;
}
.plans-public-wrap .plans-row-head > div {
  padding-top: 14px;
  padding-bottom: 11px;
  font-size: var(--lf-font-size-sm);
}
.plans-public-wrap .plans-row-head > .is-popular {
  padding-top: 14px;
}
.plans-public-wrap .plans-row-head > div:first-child {
  font-size: var(--lf-font-size-sm);
}
.plans-public-wrap .plans-row-head strong {
  font-size: var(--lf-font-size-md);
}
.plans-public-wrap .plans-row-head span {
  font-size: var(--lf-font-size-sm);
}
.plans-public-wrap .plans-row-head em {
  top: -12px;
  padding: 5px 10px;
  font-size: var(--lf-font-size-xs);
}
.plans-public-wrap .plans-plan-icon {
  width: 31px;
  height: 31px;
  margin-bottom: 2px;
}
.plans-public-wrap .plans-plan-icon svg {
  width: 16px;
  height: 16px;
}
.plans-public-wrap .plans-feature-icon {
  flex-basis: 22px;
  width: 22px;
  height: 22px;
}
.plans-public-wrap .plans-feature-icon svg {
  width: 13px;
  height: 13px;
}
.plans-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1080px);
  margin: 0 auto 18px;
  align-items: stretch;
}
.plans-pricing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 560px;
  padding: 26px 24px 24px;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.22);
  border-radius: var(--lf-radius-xl);
  background: rgba(var(--lf-rgb-white), 0.94);
  box-shadow: 0 18px 42px rgba(var(--lf-rgb-text), 0.07);
}
.plans-pricing-card.is-featured {
  border-color: rgba(var(--lf-rgb-secondary), 0.28);
  background: linear-gradient(180deg, rgba(var(--lf-rgb-secondary), 0.16), rgba(var(--lf-rgb-white), 0.96) 42%);
  box-shadow: 0 22px 54px rgba(var(--lf-rgb-secondary), 0.16);
}
.plans-pricing-card > em {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 13px;
  border-radius: var(--lf-radius-pill);
  background: linear-gradient(135deg, var(--lf-palette-violet-700), var(--lf-palette-violet-500));
  color: var(--lf-color-on-primary);
  font-size: var(--lf-font-size-xs);
  font-style: normal;
  font-weight: var(--lf-font-weight-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plans-pricing-card-head {
  display: grid;
  justify-items: center;
  gap: 11px;
  min-height: 112px;
  text-align: center;
}
.plans-pricing-card-head > div {
  display: grid;
  gap: 5px;
}
.plans-pricing-card-head span:not(.plans-plan-icon) {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-md);
  font-weight: var(--lf-font-weight-950);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.plans-pricing-card-head strong {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-xl);
  font-weight: var(--lf-font-weight-900);
}
.plans-pricing-features {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(var(--lf-rgb-muted), 0.16);
}
.plans-pricing-features li {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(var(--lf-rgb-muted), 0.14);
}
.plans-pricing-features span {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
}
.plans-pricing-features .feature-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.plans-pricing-features .feature-label svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #6366f1;
}
.plans-pricing-features strong {
  color: #1e293b;
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-850);
  line-height: 1.3;
  text-align: right;
}
.plans-pricing-features.is-values li {
  grid-template-columns: 1fr;
}
.plans-pricing-features.is-values strong {
  justify-self: center;
  text-align: center;
}
.plans-card-cta {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
}
.plans-public-wrap .public-footer {
  width: min(1200px, calc(100% - 36px));
  margin: 84px auto 0;
  padding: 34px 0 42px;
  border-top: 1px solid rgba(var(--lf-rgb-muted), 0.24);
}
.plans-public-wrap .public-footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(2, minmax(150px, 0.7fr)) minmax(240px, 1fr);
  gap: 28px;
}
.plans-public-wrap .public-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.plans-public-wrap .public-footer-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
}
.plans-public-wrap .public-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.plans-public-wrap .public-footer-brand strong {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-xl);
  font-weight: var(--lf-font-weight-700);
  line-height: 1;
}
.plans-public-wrap .public-footer-brand strong span:first-child {
  color: var(--lf-color-primary);
}
.plans-public-wrap .public-footer-brand strong span:last-child {
  color: var(--lf-color-secondary);
}
.plans-public-wrap .public-footer p {
  margin: 8px 0 0;
  color: var(--lf-color-muted);
  font-weight: var(--lf-font-weight-400);
  line-height: 1.55;
}
.plans-public-wrap .public-footer h3 {
  margin: 0 0 12px;

  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-600);

  text-transform: uppercase;
}
.plans-public-wrap .public-footer-links,
.plans-public-wrap .public-footer-legal {
  display: grid;
  align-content: start;
  gap: 9px;
}
.plans-public-wrap .public-footer a {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-md);
  font-weight: var(--lf-font-weight-400);
  text-decoration: none;
}
.plans-public-wrap .public-footer a:hover {
  color: var(--lf-palette-slate-600);
}
.plans-public-wrap .public-footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--lf-rgb-muted), 0.18);
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-400);
}
.plans-public-wrap .public-footer-bottom a {
  color: inherit;
  font-size: inherit;
}
.plans-public-wrap .public-footer-bottom a:hover {
  color: var(--lf-palette-slate-600);
}
.plans-public-wrap .public-footer-bottom span:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 900px) {
  .plans-public-summary,
  .plans-public-features,
  .plans-card-grid {
    grid-template-columns: 1fr;
  }
  .plans-pricing-card {
    min-height: auto;
  }
  .plans-public-wrap .public-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .plans-public-card-head,
  .plans-public-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .public-links {
    display: none;
  }
  .public-mobile-menu {
    display: block;
  }
}
@media (max-width: 640px) {
  .public-nav {
    align-items: stretch;
    flex-direction: column;
  }
  .public-mobile-menu {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  .public-brand {
    padding-right: 56px;
  }
  .plans-pricing-features li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .plans-pricing-features strong {
    text-align: left;
  }
  .plans-public-wrap .public-footer {
    width: min(100% - 22px, 1200px);
  }
  .plans-public-wrap .public-footer-inner {
    grid-template-columns: 1fr;
  }
  .plans-public-wrap .public-footer-bottom {
    flex-direction: column;
  }
}

/* Client plan value dashboard. */
body.dashboard-client-flat-theme > .shell .billing-value-dashboard {
  --billing-blue: var(--lf-color-primary);
  --billing-green: var(--lf-color-success-strong);
  --billing-amber: var(--lf-palette-amber-600);
  --billing-red: var(--lf-palette-red-600);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
}

body.dashboard-client-flat-theme > .shell .billing-value-dashboard article {
  min-width: 0;
}

body.dashboard-client-flat-theme > .shell :where(.billing-current-plan-card, .billing-usage-card, .billing-information-card, .billing-recommendations-card) {
  padding: 20px;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-sm);
  background: rgba(var(--lf-rgb-white), 0.74);
  box-shadow: 0 10px 24px rgba(var(--lf-rgb-text), 0.035);
}

body.dashboard-client-flat-theme > .shell .billing-current-plan-card {
  display: grid;
  gap: 18px;
  border-color: rgba(var(--lf-rgb-primary), 0.34);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(var(--lf-rgb-white), 0.94) 62%, rgba(240, 253, 244, 0.7));
  box-shadow: 0 16px 34px rgba(var(--lf-rgb-primary), 0.09);
}

body.dashboard-client-flat-theme > .shell .billing-plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

body.dashboard-client-flat-theme > .shell .billing-plan-card-head > div {
  min-width: 0;
}

body.dashboard-client-flat-theme > .shell .billing-plan-card-head p,
body.dashboard-client-flat-theme > .shell .billing-plan-cta-row > span,
body.dashboard-client-flat-theme > .shell .billing-feature-card p,
body.dashboard-client-flat-theme > .shell .billing-empty-state p,
body.dashboard-client-flat-theme > .shell .billing-recommendation p {
  margin: 0;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-500);
  line-height: 1.5;
}

body.dashboard-client-flat-theme > .shell .billing-plan-title-row {
  margin: 8px 0;
}

body.dashboard-client-flat-theme > .shell .billing-plan-title-row h2 {
}

body.dashboard-client-flat-theme > .shell .billing-plan-shield {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--lf-rgb-primary), 0.18);
  border-radius: var(--lf-radius-sm);
  color: var(--billing-blue);
  background: rgba(var(--lf-rgb-white), 0.78);
}

body.dashboard-client-flat-theme > .shell .billing-plan-shield svg {
  width: 30px;
  height: 30px;
}

body.dashboard-client-flat-theme > .shell .billing-plan-price-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(var(--lf-rgb-primary), 0.14);
  border-bottom: 1px solid rgba(var(--lf-rgb-primary), 0.14);
}

body.dashboard-client-flat-theme > .shell .billing-current-plan-card .billing-price-row strong {
  font-size: 36px;
}

body.dashboard-client-flat-theme > .shell .billing-plan-renewal {
  display: grid;
  gap: 4px;
  text-align: right;
}

body.dashboard-client-flat-theme > .shell .billing-plan-renewal span {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-600);
}

body.dashboard-client-flat-theme > .shell .billing-plan-renewal strong {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
}

body.dashboard-client-flat-theme > .shell .billing-plan-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.dashboard-client-flat-theme > .shell .billing-plan-cta-row .billing-primary-button {
  padding: 0 18px;


  background: var(--billing-blue);

}

body.dashboard-client-flat-theme > .shell .billing-plan-cta-row .billing-primary-button svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

body.dashboard-client-flat-theme > .shell .billing-value-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.dashboard-client-flat-theme > .shell .billing-value-metric {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-sm);
  background: rgba(var(--lf-rgb-white), 0.72);
}

body.dashboard-client-flat-theme > .shell .billing-metric-icon,
body.dashboard-client-flat-theme > .shell .billing-feature-card-icon,
body.dashboard-client-flat-theme > .shell .billing-recommendation-icon,
body.dashboard-client-flat-theme > .shell .billing-empty-state > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--lf-radius-sm);
  color: var(--billing-blue);
  background: rgba(var(--lf-rgb-primary), 0.09);
}

body.dashboard-client-flat-theme > .shell :where(.billing-metric-icon, .billing-feature-card-icon, .billing-recommendation-icon, .billing-empty-state > span) svg {
  width: 19px;
  height: 19px;
}

body.dashboard-client-flat-theme > .shell .billing-value-metric.is-opportunities .billing-metric-icon,
body.dashboard-client-flat-theme > .shell .billing-value-metric.is-automation .billing-metric-icon {
  color: var(--lf-color-secondary);
  background: rgba(var(--lf-rgb-secondary), 0.09);
}

body.dashboard-client-flat-theme > .shell .billing-value-metric.is-messages .billing-metric-icon {
  color: var(--billing-green);
  background: rgba(var(--lf-rgb-success-strong), 0.09);
}

body.dashboard-client-flat-theme > .shell .billing-value-metric > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.dashboard-client-flat-theme > .shell .billing-value-metric strong {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-xl);
  font-weight: var(--lf-font-weight-800);
  line-height: 1;
}

body.dashboard-client-flat-theme > .shell .billing-value-metric span:last-child {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-600);
  line-height: 1.3;
}

body.dashboard-client-flat-theme > .shell .billing-benefits-card,
body.dashboard-client-flat-theme > .shell .billing-usage-card {
  grid-column: 1 / -1;
}

body.dashboard-client-flat-theme > .shell .billing-benefits-card {
  display: grid;
  gap: 14px;
  padding: 4px 0 0;
}

body.dashboard-client-flat-theme > .shell .billing-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

body.dashboard-client-flat-theme > .shell .billing-section-heading h2 {
  margin: 5px 0 0;

  font-size: var(--lf-font-size-lg);
  font-weight: var(--lf-font-weight-800);
  line-height: 1.2;
}

body.dashboard-client-flat-theme > .shell .billing-section-heading > span,
body.dashboard-client-flat-theme > .shell .billing-section-heading > small {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-600);
}

body.dashboard-client-flat-theme > .shell .billing-feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.dashboard-client-flat-theme > .shell .billing-feature-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-sm);
  background: rgba(var(--lf-rgb-white), 0.74);
}

body.dashboard-client-flat-theme > .shell .billing-feature-card.is-whatsapp .billing-feature-card-icon {
  color: var(--billing-green);
  background: rgba(var(--lf-rgb-success-strong), 0.09);
}

body.dashboard-client-flat-theme > .shell .billing-feature-card.is-ai .billing-feature-card-icon,
body.dashboard-client-flat-theme > .shell .billing-feature-card.is-automation .billing-feature-card-icon {
  color: var(--lf-color-secondary);
  background: rgba(var(--lf-rgb-secondary), 0.09);
}

body.dashboard-client-flat-theme > .shell .billing-feature-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.dashboard-client-flat-theme > .shell .billing-feature-card strong {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
  line-height: 1.3;
}

body.dashboard-client-flat-theme > .shell .billing-usage-card {
  display: grid;
  gap: 14px;
}

body.dashboard-client-flat-theme > .shell .billing-usage-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));

}

body.dashboard-client-flat-theme > .shell .billing-usage-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lf-color-border);
}

body.dashboard-client-flat-theme > .shell .billing-usage-copy,
body.dashboard-client-flat-theme > .shell .billing-usage-meta {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

body.dashboard-client-flat-theme > .shell .billing-usage-copy {
  grid-column: 1 / -1;
}

body.dashboard-client-flat-theme > .shell .billing-usage-copy strong,
body.dashboard-client-flat-theme > .shell .billing-usage-meta strong {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
}

body.dashboard-client-flat-theme > .shell .billing-usage-copy span,
body.dashboard-client-flat-theme > .shell .billing-usage-meta span {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-600);
}

body.dashboard-client-flat-theme > .shell .billing-usage-item .billing-progress {
  grid-column: 1 / -1;
  height: 7px;
}

body.dashboard-client-flat-theme > .shell .billing-usage-item.is-healthy .billing-progress > span {
  background: var(--billing-green);
}

body.dashboard-client-flat-theme > .shell .billing-usage-item.is-warning .billing-progress > span {
  background: var(--billing-amber);
}

body.dashboard-client-flat-theme > .shell .billing-usage-item.is-critical .billing-progress > span {
  background: var(--billing-red);
}

body.dashboard-client-flat-theme > .shell .billing-usage-meta {
  grid-column: 1 / -1;
}

body.dashboard-client-flat-theme > .shell .billing-limit-action {
  justify-self: end;
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--lf-radius-sm);
  color: var(--billing-red);
  background: rgba(220, 38, 38, 0.08);
  font: inherit;
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-700);
  cursor: pointer;
}

body.dashboard-client-flat-theme > .shell :where(.billing-information-card, .billing-recommendations-card) {
  display: grid;
  align-content: start;
  gap: 14px;
}

body.dashboard-client-flat-theme > .shell .billing-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}

body.dashboard-client-flat-theme > .shell .billing-definition-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.dashboard-client-flat-theme > .shell .billing-definition-grid dt {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-600);
}

body.dashboard-client-flat-theme > .shell .billing-definition-grid dd {
  margin: 0;
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
}

body.dashboard-client-flat-theme > .shell .billing-empty-state {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px dashed var(--lf-color-border-strong);
  border-radius: var(--lf-radius-sm);
  background: rgba(var(--lf-rgb-surface-muted), 0.7);
}

body.dashboard-client-flat-theme > .shell .billing-empty-state > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.dashboard-client-flat-theme > .shell .billing-empty-state strong,
body.dashboard-client-flat-theme > .shell .billing-recommendation strong {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
}

body.dashboard-client-flat-theme > .shell .billing-empty-state button,
body.dashboard-client-flat-theme > .shell .billing-empty-state > a {
  border: 0;
  color: var(--billing-blue);
  background: transparent;
  font: inherit;
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-700);
  cursor: pointer;
  text-decoration: none;
}

body.dashboard-client-flat-theme .billing-plan-request-button {
  justify-self: end;
  min-width: 170px;
}

body.dashboard-client-flat-theme .billing-plan-request-button:disabled {
  cursor: default;
  opacity: 0.62;
}

body.dashboard-client-flat-theme > .shell .billing-recommendation-list {
  display: grid;
  gap: 10px;
}

body.dashboard-client-flat-theme > .shell .billing-recommendation {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 12px;
  border-radius: var(--lf-radius-sm);
  background: rgba(var(--lf-rgb-primary), 0.055);
}

body.dashboard-client-flat-theme > .shell .billing-recommendation.is-purple {
  background: rgba(var(--lf-rgb-secondary), 0.055);
}

body.dashboard-client-flat-theme > .shell .billing-recommendation.is-green {
  background: rgba(var(--lf-rgb-success-strong), 0.055);
}

body.dashboard-client-flat-theme > .shell .billing-recommendation > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.dashboard-client-flat-theme > .shell .billing-recommendation a {
  width: fit-content;
  margin-top: 3px;
  color: var(--billing-blue);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-700);
  text-decoration: none;
}

@media (max-width: 1180px) {
  body.dashboard-client-flat-theme > .shell .billing-feature-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.dashboard-client-flat-theme > .shell .billing-value-dashboard {
    grid-template-columns: 1fr;
  }

  body.dashboard-client-flat-theme > .shell :where(.billing-benefits-card, .billing-usage-card) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body.billing-page.dashboard-client-flat-theme > .shell .dashboard-today-pill {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  body.billing-page.dashboard-client-flat-theme > .shell .dashboard-today-pill span,
  body.billing-page.dashboard-client-flat-theme > .shell .user-chip .user-name {
    display: none !important;
  }

  body.billing-page.dashboard-client-flat-theme > .shell .user-chip,
  body.billing-page.dashboard-client-flat-theme > .shell .user-chip-profile-link,
  body.billing-page.dashboard-client-flat-theme > .shell .user-chip-profile-anchor {
    width: auto;
    min-width: 0;
  }

  body.dashboard-client-flat-theme > .shell .billing-value-metrics,
  body.dashboard-client-flat-theme > .shell .billing-feature-card-grid,
  body.dashboard-client-flat-theme > .shell .billing-usage-list,
  body.dashboard-client-flat-theme > .shell .billing-definition-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-client-flat-theme > .shell .billing-plan-card-head,
  body.dashboard-client-flat-theme > .shell .billing-plan-price-block,
  body.dashboard-client-flat-theme > .shell .billing-plan-cta-row,
  body.dashboard-client-flat-theme > .shell .billing-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  body.dashboard-client-flat-theme > .shell .billing-plan-renewal {
    text-align: left;
  }

  body.dashboard-client-flat-theme > .shell .billing-plan-cta-row .billing-primary-button {
    width: 100%;
  }

  body.dashboard-client-flat-theme .billing-plan-request-button {
    justify-self: stretch;
    width: 100%;
  }

  body.dashboard-client-flat-theme > .shell .billing-empty-state {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  body.dashboard-client-flat-theme > .shell .billing-empty-state button {
    grid-column: 2;
    justify-self: start;
    padding: 0;
  }
}

/* Plans admin: catalog only, no company-assignment table. */
body.dashboard-client-flat-theme > .shell .plans-admin-table tr[data-plan-catalog-row] td {
  vertical-align: middle;
}

body.dashboard-client-flat-theme > .shell .plans-admin-table tr[data-plan-catalog-row] td:first-child {
  min-width: 170px;
}

body.dashboard-client-flat-theme > .shell .plans-admin-table tr[data-plan-catalog-row] td:first-child small {
  margin-top: 4px;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-850);
  text-transform: uppercase;
}

body.dashboard-client-flat-theme > .shell .plans-admin-table tr[data-plan-catalog-row] .plans-admin-price-input {
  width: min(180px, 100%);
  background: transparent;
}

body.dashboard-client-flat-theme > .shell .plans-admin-table tr[data-plan-catalog-row] .plans-admin-name-input {
  width: min(280px, 100%);
}

body.dashboard-client-flat-theme > .shell .plans-admin-table tr[data-plan-catalog-row] .plans-admin-computed-price {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  min-width: 120px;
  padding: 0 12px;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.22);
  border-radius: var(--lf-radius-md);
  background: transparent;
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-900);
}

body.dashboard-client-flat-theme > .shell .plans-admin-table tr[data-plan-catalog-row] .plans-save-state {
  display: inline-flex;
  min-width: 88px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: var(--lf-radius-pill);
  background: rgba(var(--lf-rgb-primary), 0.08);
  color: var(--lf-color-primary);
}

body.dashboard-client-flat-theme > .shell .plans-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.dashboard-client-flat-theme > .shell .plans-create-button {




  padding: 0 14px;
  border: 1px solid rgba(var(--lf-rgb-primary), 0.24);

  background: var(--lf-color-primary);

  font: inherit;


  cursor: pointer;
  white-space: nowrap;
}

body.dashboard-client-flat-theme > .shell .plans-create-button svg {
  width: 16px;
  height: 16px;
}

body.dashboard-client-flat-theme > .shell .plans-usage-panel {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 16px;
  margin: 14px 0 18px;
  padding: 0;
  border: 0;
  background: transparent;

}

body.dashboard-client-flat-theme > .shell .plans-usage-head {
  display: grid;
  align-items: stretch;
}

body.dashboard-client-flat-theme > .shell .plans-usage-head > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.18);
  border-radius: var(--lf-radius-md);
  background: transparent;
  box-shadow: none;
}

body.dashboard-client-flat-theme > .shell .plans-usage-head span {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-900);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.dashboard-client-flat-theme > .shell .plans-usage-head strong {
  color: var(--lf-color-text);
  font-size: 34px;
  line-height: 1;
  font-weight: var(--lf-font-weight-950);
}

body.dashboard-client-flat-theme > .shell .plans-usage-head small {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-750);
}

body.dashboard-client-flat-theme > .shell .plans-usage-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body.dashboard-client-flat-theme > .shell .plans-usage-row {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.18);
  border-radius: var(--lf-radius-md);
  background: transparent;
  box-shadow: none;
}

body.dashboard-client-flat-theme > .shell :is(.plans-admin-panel, .plans-admin-table-wrap),
body.dashboard-client-flat-theme > .shell .plans-admin-table tr[data-plan-catalog-row] {
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

body.dashboard-client-flat-theme > .shell .plans-delete-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: var(--lf-radius-sm);
  background: transparent;
  color: var(--lf-palette-red-700);
  font: inherit;
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-850);
  cursor: pointer;
}

body.dashboard-client-flat-theme > .shell .plans-delete-button:hover {
  border-color: var(--lf-palette-red-600);
  background: rgba(220, 38, 38, 0.06);
}

body.dashboard-client-flat-theme > .shell .plans-delete-button svg {
  width: 14px;
  height: 14px;
}

body.dashboard-client-flat-theme > .shell .plans-delete-state {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-800);
  white-space: nowrap;
}

body.dashboard-client-flat-theme > .shell .plans-usage-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.dashboard-client-flat-theme > .shell .plans-usage-row-head strong {
  min-width: 0;
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-900);
}

body.dashboard-client-flat-theme > .shell .plans-usage-row-head span {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-800);
  white-space: nowrap;
}

body.dashboard-client-flat-theme > .shell .plans-usage-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: var(--lf-radius-pill);
  background: rgba(var(--lf-rgb-muted), 0.16);
}

body.dashboard-client-flat-theme > .shell .plans-usage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lf-color-primary), var(--lf-color-secondary));
}

@media (max-width: 900px) {
  body.dashboard-client-flat-theme > .shell .plans-usage-panel {
    grid-template-columns: 1fr;
  }
}

.plans-create-modal[hidden] {
  display: none !important;
}

.plans-create-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 18px;
}

.plans-create-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(var(--lf-rgb-text), 0.42);
  backdrop-filter: blur(14px) saturate(1.05);
  cursor: pointer;
}

.plans-create-dialog {
  position: relative;
  display: grid;
  width: min(460px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.28);
  border-radius: var(--lf-radius-lg);
  background: rgba(var(--lf-rgb-surface-muted), 0.98);
  box-shadow: 0 24px 70px rgba(var(--lf-rgb-text), 0.24);
}

.plans-create-header {
  display: grid;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(var(--lf-rgb-muted), 0.18);
  background: rgba(241, 245, 249, 0.72);
}

.plans-create-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--lf-radius-sm);
  background: rgba(79, 70, 229, 0.11);
  color: var(--lf-palette-indigo-600);
}

.plans-create-icon svg,
.plans-create-field-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.plans-create-header h3 {
  margin: 0;

  font-size: var(--lf-font-size-lg);
  line-height: 1.15;
}

.plans-create-header p {
  margin: 2px 0 0;
  color: var(--lf-color-muted);
  font-size: 11.5px;
  line-height: 1.3;
}

.plans-create-close {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.24);
  border-radius: var(--lf-radius-sm);
  background: rgba(var(--lf-rgb-surface-muted), 0.82);
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-lg);
  line-height: 1;
  cursor: pointer;
}

.plans-create-form {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 16px 16px;
}

.plans-create-form label {
  position: relative;
  display: block;
  margin: 0;
}

.plans-create-field-icon {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--lf-color-muted);
  pointer-events: none;
}

.plans-create-form input {
  box-sizing: border-box;
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0 12px 0 34px;


  background: rgba(var(--lf-rgb-surface-muted), 0.82);

  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
}

.plans-create-status {
  min-height: 14px;
  margin: 0;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-800);
}

.plans-create-form button[type="submit"] {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: var(--lf-radius-sm);
  background: var(--lf-color-primary);
  color: var(--lf-color-on-primary);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-900);
  cursor: pointer;
}

/* Billing page icon ownership.
   Billing uses inline SVGs in several card types; keep them fixed-size. */
body.dashboard-client-flat-theme > .shell .billing-definition-list dt > svg,
body.dashboard-client-flat-theme > .shell .billing-icon-label > svg,
body.dashboard-client-flat-theme > .shell .billing-feature-icon > svg,
body.dashboard-client-flat-theme > .shell .billing-usage-icon > svg,
body.dashboard-client-flat-theme > .shell .billing-plan-watermark > svg {
  display: block;
  flex: 0 0 auto;
}

body.dashboard-client-flat-theme > .shell .billing-definition-list dt > svg,
body.dashboard-client-flat-theme > .shell .billing-icon-label > svg,
body.dashboard-client-flat-theme > .shell .billing-feature-icon > svg,
body.dashboard-client-flat-theme > .shell .billing-usage-icon > svg {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
}

body.dashboard-client-flat-theme > .shell .billing-plan-watermark > svg {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
}

/* Client billing workspace. */
body.dashboard-client-flat-theme > .shell .billing-plan-layout-v2 {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.dashboard-client-flat-theme > .shell .billing-plan-layout-v2 > article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-sm);
  background: transparent;
  box-shadow: none;
}

body.dashboard-client-flat-theme > .shell .billing-info-summary {
  grid-column: span 7;
}

body.dashboard-client-flat-theme > .shell .billing-plan-summary {
  position: relative;
  grid-column: span 5;
  grid-template-rows: auto auto auto 1fr auto;
  overflow: hidden;
}

body.dashboard-client-flat-theme > .shell .billing-includes-summary {
  grid-column: span 5;
}

body.dashboard-client-flat-theme > .shell .billing-usage-panel {
  grid-column: span 7;
}

body.dashboard-client-flat-theme > .shell .billing-feature-detail-panel {
  display: none !important;
}

body.dashboard-client-flat-theme > .shell .billing-eyebrow {
  display: block;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-700);
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

body.dashboard-client-flat-theme > .shell .billing-definition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
}

body.dashboard-client-flat-theme > .shell .billing-definition-list > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--lf-color-border);
}

body.dashboard-client-flat-theme > .shell .billing-definition-list > div:last-child {
  grid-column: 1 / -1;
  border-bottom: 0;
}

body.dashboard-client-flat-theme > .shell .billing-definition-list dt,
body.dashboard-client-flat-theme > .shell .billing-icon-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-600);
  line-height: 1.2;
}

body.dashboard-client-flat-theme > .shell .billing-definition-list dt svg,
body.dashboard-client-flat-theme > .shell .billing-icon-label svg {
  color: var(--lf-color-primary);
}

body.dashboard-client-flat-theme > .shell .billing-definition-list dd {
  min-width: 0;
  margin: 0 0 0 26px;
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
  line-height: 1.3;
}

body.dashboard-client-flat-theme > .shell .billing-inline-link {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 9px;
  border: 1px solid rgba(var(--lf-rgb-primary), 0.28);
  border-radius: var(--lf-radius-sm);
  color: var(--lf-color-primary);
  background: transparent;
  font: inherit;
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-700);
  line-height: 1;
  cursor: pointer;
}

body.dashboard-client-flat-theme > .shell .billing-inline-link:hover {
  border-color: var(--lf-color-primary);
  background: var(--lf-color-primary-soft);
}

body.dashboard-client-flat-theme > .shell .billing-plan-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.dashboard-client-flat-theme > .shell .billing-plan-title-row h2 {
  min-width: 0;
  margin: 0;

  font-size: var(--lf-font-size-xl);
  font-weight: var(--lf-font-weight-800);
  line-height: 1.1;
}

body.dashboard-client-flat-theme > .shell .plan-status-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(var(--lf-rgb-success-strong), 0.25);
  border-radius: var(--lf-radius-pill);
  color: var(--lf-palette-green-700);
  background: rgba(var(--lf-rgb-success-strong), 0.08);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-700);
  line-height: 1;
  white-space: nowrap;
}

body.dashboard-client-flat-theme > .shell .billing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

body.dashboard-client-flat-theme > .shell .billing-price-row strong {
  color: var(--lf-color-text);
  font-size: 30px;
  font-weight: var(--lf-font-weight-800);
  line-height: 1;
}

body.dashboard-client-flat-theme > .shell .billing-price-row span {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-600);
}

body.dashboard-client-flat-theme > .shell .billing-renewal-line {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid var(--lf-color-border);
  border-bottom: 1px solid var(--lf-color-border);
}

body.dashboard-client-flat-theme > .shell .billing-renewal-line > strong {
  margin-left: 26px;
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
}

body.dashboard-client-flat-theme > .shell .billing-plan-watermark {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(var(--lf-rgb-primary), 0.07);
  pointer-events: none;
}

body.dashboard-client-flat-theme > .shell .billing-primary-button,
body.dashboard-client-flat-theme > .shell .billing-secondary-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0 14px;
  border-radius: var(--lf-radius-sm);
  font: inherit;
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
  cursor: pointer;
}

body.dashboard-client-flat-theme > .shell .billing-primary-button {
  position: relative;
  z-index: 1;
  border: 1px solid var(--lf-color-primary);

  background: var(--lf-color-primary);
}

body.dashboard-client-flat-theme > .shell .billing-secondary-button {
  border: 1px solid var(--lf-color-border-strong);
  color: var(--lf-color-text);
  background: transparent;
}

body.dashboard-client-flat-theme > .shell .billing-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

body.dashboard-client-flat-theme > .shell .billing-feature-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 0;
  border: 0;
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-600);
  line-height: 1.3;
}

body.dashboard-client-flat-theme > .shell .billing-check-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--lf-radius-sm);
  color: var(--lf-palette-green-700);
  background: rgba(var(--lf-rgb-success-strong), 0.1);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-800);
}

body.dashboard-client-flat-theme > .shell .billing-usage-list {
  display: grid;
  gap: 8px;
}

body.dashboard-client-flat-theme > .shell .billing-usage-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(100px, 1fr) 88px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--lf-color-border);
}

body.dashboard-client-flat-theme > .shell .billing-usage-row:last-child {
  border-bottom: 0;
}

body.dashboard-client-flat-theme > .shell .billing-usage-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

body.dashboard-client-flat-theme > .shell .billing-usage-main > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.dashboard-client-flat-theme > .shell .billing-usage-main strong {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
}

body.dashboard-client-flat-theme > .shell .billing-usage-main span,
body.dashboard-client-flat-theme > .shell .billing-usage-row small,
body.dashboard-client-flat-theme > .shell .billing-usage-note {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-600);
}

body.dashboard-client-flat-theme > .shell .billing-usage-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--lf-radius-sm);
  color: var(--lf-color-primary);
  background: var(--lf-color-primary-soft);
}

body.dashboard-client-flat-theme > .shell .billing-progress {
  height: 6px;
  overflow: hidden;
  border-radius: var(--lf-radius-pill);
  background: rgba(var(--lf-rgb-muted), 0.2);
}

body.dashboard-client-flat-theme > .shell .billing-progress > span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--lf-color-primary);
}

body.dashboard-client-flat-theme > .shell .billing-usage-row > small {
  text-align: right;
  white-space: nowrap;
}

body.dashboard-client-flat-theme > .shell .billing-usage-note {
  margin: 0;
}

body.dashboard-client-flat-theme .billing-invoice-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

body.dashboard-client-flat-theme .billing-invoice-modal[hidden] {
  display: none !important;
}

body.dashboard-client-flat-theme .billing-invoice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--lf-rgb-text), 0.5);
}

body.dashboard-client-flat-theme .billing-invoice-card {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  display: grid;
  overflow: auto;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-sm);
  background: rgba(var(--lf-rgb-surface-muted), 0.96);
  box-shadow: 0 24px 64px rgba(var(--lf-rgb-text), 0.22);
}

body.dashboard-client-flat-theme .billing-edit-modal {
  width: min(520px, calc(100vw - 40px));
}

body.dashboard-client-flat-theme > .shell .billing-invoice-modal .billing-invoice-card {
  width: min(680px, calc(100vw - 40px));
  border-radius: var(--lf-radius-sm);
  background: rgba(var(--lf-rgb-surface-muted), 0.98);
  background-color: rgba(var(--lf-rgb-surface-muted), 0.98);
  background-image: none;
  box-shadow: 0 24px 64px rgba(var(--lf-rgb-text), 0.22);
}

body.dashboard-client-flat-theme > .shell .billing-invoice-modal .billing-edit-modal {
  width: min(620px, calc(100vw - 40px));
}

body.dashboard-client-flat-theme .billing-invoice-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--lf-color-border);
}

body.dashboard-client-flat-theme .billing-invoice-header > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.dashboard-client-flat-theme .billing-invoice-header h2 {
  margin: 0;

  font-size: var(--lf-font-size-xl);
  font-weight: var(--lf-font-weight-800);
  line-height: 1.15;
}

body.dashboard-client-flat-theme .billing-invoice-header p {
  margin: 0;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-500);
  line-height: 1.4;
}

body.dashboard-client-flat-theme .billing-invoice-close {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: var(--lf-radius-sm);
  color: var(--lf-color-muted);
  cursor: pointer;
}

body.dashboard-client-flat-theme .billing-invoice-close svg {
  width: 17px;
  height: 17px;
}

body.dashboard-client-flat-theme :is(.billing-invoice-body, .billing-edit-body) {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
}

body.dashboard-client-flat-theme .billing-square-safe-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(var(--lf-rgb-primary), 0.16);
  border-radius: var(--lf-radius-md);
  background: transparent;
}

body.dashboard-client-flat-theme .billing-square-safe-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--lf-radius-md);
  color: var(--lf-color-primary);
  background: rgba(var(--lf-rgb-primary), 0.1);
}

body.dashboard-client-flat-theme .billing-square-safe-icon svg {
  width: 20px;
  height: 20px;
}

body.dashboard-client-flat-theme .billing-square-safe-card strong {
  display: block;
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-800);
  line-height: 1.2;
}

body.dashboard-client-flat-theme .billing-square-safe-card p {
  margin: 5px 0 0;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-500);
  line-height: 1.45;
}

body.dashboard-client-flat-theme .billing-square-button {
  width: 100%;
  min-height: 42px;
}

body.dashboard-client-flat-theme .billing-square-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

body.dashboard-client-flat-theme .billing-invoice-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-sm);
  background: transparent;
}

body.dashboard-client-flat-theme .billing-invoice-summary-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--lf-radius-sm);
  color: var(--lf-color-primary);
  background: var(--lf-color-primary-soft);
}

body.dashboard-client-flat-theme .billing-invoice-summary-icon svg {
  width: 18px;
  height: 18px;
}

body.dashboard-client-flat-theme .billing-invoice-summary > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.dashboard-client-flat-theme .billing-invoice-summary :is(strong, span) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.dashboard-client-flat-theme .billing-invoice-summary span {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
}

body.dashboard-client-flat-theme .billing-invoice-lines {
  display: grid;
  border-top: 1px solid var(--lf-color-border);
}

body.dashboard-client-flat-theme .billing-invoice-line {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lf-color-border);
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
}

body.dashboard-client-flat-theme .billing-invoice-line.is-head {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-700);
  text-transform: uppercase;
}

body.dashboard-client-flat-theme .billing-invoice-line > span:last-child {
  text-align: right;
  font-weight: var(--lf-font-weight-700);
}

body.dashboard-client-flat-theme .billing-invoice-total,
body.dashboard-client-flat-theme .billing-invoice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.dashboard-client-flat-theme .billing-invoice-total {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
}

body.dashboard-client-flat-theme .billing-invoice-actions {
  justify-content: flex-end;
}

body.dashboard-client-flat-theme .billing-edit-body label {
  display: grid;
  gap: 7px;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-700);
}

body.dashboard-client-flat-theme .billing-edit-body :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--lf-color-border-strong);
  border-radius: var(--lf-radius-sm);
  color: var(--lf-color-text);
  background: transparent;
  font: inherit;
  font-size: var(--lf-font-size-sm);
}

body.dashboard-client-flat-theme .billing-plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.dashboard-client-flat-theme .billing-plan-choice-grid .billing-plan-choice {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 8px;
  padding: 12px;
  border: 1px solid var(--lf-color-border);
  border-radius: var(--lf-radius-sm);
  background: transparent;
  cursor: pointer;
}

body.dashboard-client-flat-theme .billing-plan-choice-grid .billing-plan-choice:hover,
body.dashboard-client-flat-theme .billing-plan-choice-grid .billing-plan-choice:has(input:checked) {
  border-color: var(--lf-color-primary);
  background: var(--lf-color-primary-soft);
}

body.dashboard-client-flat-theme .billing-plan-choice-name {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.dashboard-client-flat-theme .billing-plan-choice-name strong,
body.dashboard-client-flat-theme .billing-plan-choice-price {
  color: var(--lf-color-text);
  font-size: var(--lf-font-size-sm);
}

body.dashboard-client-flat-theme .billing-plan-choice-name small,
body.dashboard-client-flat-theme .billing-plan-current-label {
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
}

body.dashboard-client-flat-theme .billing-plan-choice-price {
  text-align: right;
  white-space: nowrap;
}

body.dashboard-client-flat-theme .billing-plan-current-label {
  grid-column: 2 / -1;
  color: var(--lf-color-primary);
  font-weight: var(--lf-font-weight-700);
}

body.dashboard-client-flat-theme .billing-plan-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-sm);
}

body.dashboard-client-flat-theme .billing-autosave-state {
  margin: 0;
  color: var(--lf-color-muted);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-600);
}

/* Billing cards use the shared page surface; keep every visible card clear. */
body.dashboard-client-flat-theme > .shell :is(
  .billing-current-plan-card,
  .billing-benefits-card,
  .billing-usage-card,
  .billing-information-card,
  .billing-recommendations-card,
  .billing-feature-card
) {
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  body.dashboard-client-flat-theme > .shell .billing-plan-layout-v2 > article {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body.dashboard-client-flat-theme > .shell .billing-definition-list,
  body.dashboard-client-flat-theme > .shell .billing-feature-list,
  body.dashboard-client-flat-theme .billing-plan-choice-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-client-flat-theme > .shell .billing-definition-list > div:last-child {
    grid-column: auto;
  }

  body.dashboard-client-flat-theme > .shell .billing-usage-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  body.dashboard-client-flat-theme > .shell .billing-usage-row .billing-progress {
    grid-column: 1;
  }

  body.dashboard-client-flat-theme > .shell .billing-usage-row > small {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  body.dashboard-client-flat-theme .billing-invoice-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.dashboard-client-flat-theme .billing-invoice-line > span:nth-child(2) {
    display: none;
  }

  body.dashboard-client-flat-theme .billing-invoice-summary {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  body.dashboard-client-flat-theme .billing-invoice-summary > strong {
    grid-column: 2;
  }
}
}
