/* app-hosting-calc-ui.css — App Hosting calculator widget UI.
   Extracted from site-palette.css; page-scoped via needs_app_hosting_calc_ui. */
.tbox-ahcalc-help-prompt p {
  margin: 0 0 var(--space-xs);
  font-weight: var(--fw-bold);
  color: var(--surface-glass-90);
  font-size: var(--fs-base);
}

.tbox-ahcalc-howitworks-item p {
  font-size: var(--fs-md);
  color: var(--ahcalc-slate-600);
  line-height: var(--lh-loose);
  margin: 0;
}

.tbox-ahcalc-faq-item p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  font-size: var(--fs-md);
  color: var(--ahcalc-slate-600);
  line-height: var(--lh-loose);
}

.tbox-ahcalc-faq__item-answer p { margin: 0; }

:where(.tbox-ahcalc-card h3) {
  margin: 0 0 var(--space-sm-mid);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--ahcalc-slate-900);
}

:where(.tbox-ahcalc-social-section h3) {
  font-size: var(--fs-heading-md);
  font-weight: var(--fw-bold);
  color: var(--text-inverse);
  margin: 0 0 2rem;
}

/* CTA card p — consolidated into shared .tbox-bento-cta-card rules */

:where(.tbox-ahcalc-howitworks-section .tbox-ahcalc-howitworks-item p),
:where(.tbox-ahcalc-howitworks-section .tbox-ahcalc-faq-item p) {
  color: var(--ahcalc-slate-600);
  line-height: var(--lh-loose);
}

:where(.tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt p) {
  color: var(--text-primary);
  font-size: var(--fs-base);
}

.tbox-ahcalc-final-cta-section > .tbox-ahcalc-final-cta-inner > p:not(.tbox-ahcalc-final-cta-microcopy) {
  font-size: var(--fs-xl);
  margin: 0 0 2rem;
  color: var(--surface-glass-70);
  line-height: var(--lh-relaxed);
}

:where(.tbox-ahcalc-howitworks-item :is(h3, h4)) {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--ahcalc-slate-900);
  margin: 0 0 var(--space-md);
}

.tbox-ahcalc-comparison-subtitle {
  text-align: center;
  color: var(--ahcalc-slate-600);
  font-size: var(--fs-lg);
  margin: 0 0 2rem;
}



.tbox-ahcalc-comparison-section .tbox-ahcalc-comparison-subtitle {
  color: var(--ahcalc-slate-600);
  line-height: var(--lh-relaxed);
}

:root[data-theme="dark"] .tbox-ahcalc-comparison-subtitle {
  color: var(--text-secondary);
}



:root[data-theme="dark"] .tbox-ahcalc-howitworks-item p {
  color: var(--text-secondary);
}

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt p { color: rgb(255 255 255 / 90%); }

:where(:root[data-theme="dark"]) .tbox-ahcalc-comparison-section h2 {
  color: var(--text-primary);
}




:root[data-theme="dark"] .tbox-ahcalc-howitworks-item :is(h3, h4) {
  color: var(--text-primary);
}

:where(.tbox-ahcalc-cloudlet-info__body strong) {
  color: var(--text-secondary);
}

.tbox-ahcalc-help-prompt span {
  display: block;
  font-size: var(--fs-base);
  color: var(--surface-glass-60);
  margin-bottom: var(--space-md);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt span {
  color: var(--text-muted);
  font-size: var(--fs-base);
}

.tbox-ahcalc-dblb input[type='checkbox']:disabled + span {
  opacity: 0.6;
}

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt span { color: rgb(255 255 255 / 60%); }

.tbox-ahcalc-comparison-section h2 {
  font-size: var(--fs-card-price);
  font-weight: var(--fw-extrabold);
  color: var(--ahcalc-slate-900);
  margin: 0 0 var(--space-sm);
  text-align: center;
}



/* stylelint-disable-next-line no-descending-specificity */
.tbox-ahcalc-final-cta-section h2 {
  font-size: var(--fs-heading-lg);
  font-weight: var(--fw-extrabold);
  color: var(--text-inverse);
  margin: 0 0 var(--space-md);
}

.tbox-ahcalc-section-nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--ahcalc-slate-600);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--ease-fast);
  border-radius: var(--radius-md);
}

.tbox-ahcalc-faq__item-answer a { color: var(--brand-primary-text); }

.tbox-ahcalc-section-nav__link:hover {
  color: var(--brand-primary);
  background: var(--brand-primary-16);
}

.tbox-ahcalc-section-nav__link:focus-visible {
  outline: var(--focus-outline-width) solid var(--brand-primary);
  outline-offset: var(--focus-outline-offset);
}

.tbox-ahcalc-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: var(--space-2xs) var(--space-md);
  min-height: var(--min-touch-target);
  border-radius: var(--radius-xs);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--ahcalc-slate-600);
  transition: all var(--ease-fast);
}

.tbox-ahcalc-tab-buttons button {
  flex: 1;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  border: none;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--ahcalc-slate-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--ease-fast);
}

:where(.tbox-ahcalc-toggle button:hover) {
  background: var(--overlay-12);
}

:where(.tbox-ahcalc-toggle button:focus-visible) {
  outline: var(--focus-outline-width) solid var(--ahcalc-accent-500);
  outline-offset: 1px;
}

:where(.tbox-ahcalc-tab-buttons button:hover) {
  color: var(--ahcalc-slate-900);
}

:where(.tbox-ahcalc-tab-buttons button:focus-visible) {
  outline: var(--focus-outline-width) solid var(--brand-primary);
  outline-offset: var(--focus-outline-offset);
}

:where(:root[data-theme="dark"] .tbox-ahcalc-tab-buttons button) {
  color: var(--text-secondary);
}

:where(:root[data-theme="dark"] .tbox-ahcalc-tab-buttons button:hover) {
  color: var(--text-primary);
}


:where(:root[data-theme="dark"]) :where(#tbox-app-hosting-configurator) .tbox-ahcalc-subtitle,
:where(:root[data-theme="dark"]) :where(#tbox-app-hosting-configurator) .tbox-ahcalc-inline-label,
:where(:root[data-theme="dark"]) :where(#tbox-app-hosting-configurator) .tbox-ahcalc-stack-meta,
:where(:root[data-theme="dark"]) :where(#tbox-app-hosting-configurator) .tbox-ahcalc-card-subtitle,
:where(:root[data-theme="dark"]) :where(#tbox-app-hosting-configurator) .tbox-ahcalc-hint,
:where(:root[data-theme="dark"]) :where(#tbox-app-hosting-configurator) .tbox-ahcalc-toggle button,
:where(:root[data-theme="dark"]) :where(#tbox-app-hosting-configurator) .tbox-ahcalc-step {
  color: var(--text-secondary);
}

.tbox-ahcalc-subtitle {
  color: var(--ahcalc-slate-600);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.tbox-ahcalc-inline-label {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--ahcalc-slate-700);
}

.tbox-ahcalc-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--surface-glass-75);
  border: 1px solid var(--ahcalc-slate-200);
  border-radius: var(--radius-md);
  padding: 0.55rem var(--space-md-minus);
  font-size: var(--fs-base);
  color: var(--ahcalc-slate-700);
}

.tbox-ahcalc-card-subtitle {
  margin: -0.25rem 0 0.85rem;
  color: var(--ahcalc-slate-600);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.tbox-ahcalc-stack-meta {
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-data);
  color: var(--ahcalc-slate-600);
}

.tbox-ahcalc-hint {
  font-size: var(--fs-base);
  color: var(--ahcalc-slate-600);
  line-height: var(--lh-snug);
  margin-top: var(--space-sm);
}

#tbox-app-hosting-configurator .tbox-ahcalc-subtitle {
  color: var(--ahcalc-slate-600);
  line-height: var(--lh-relaxed);
  max-width: min(var(--width-desc), 70ch);
}

:root[data-theme="dark"] .tbox-ahcalc-step {
  background: var(--surface-glass-06);
  border-color: var(--border-light);
}

#tbox-app-hosting-configurator .tbox-ahcalc-step {
  color: var(--ahcalc-slate-700);
  font-size: var(--fs-base);
}

#tbox-app-hosting-configurator .tbox-ahcalc-stack-meta {
  font-size: var(--fs-data);
  color: var(--ahcalc-slate-600);
}

.tbox-ahcalc-foot {
  margin-top: var(--space-md-plus);
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  color: var(--ahcalc-slate-600);
}

#tbox-app-hosting-configurator .tbox-ahcalc-hint,
#tbox-app-hosting-configurator .tbox-ahcalc-foot {
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  color: var(--ahcalc-slate-600);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-subtitle {
  color: var(--text-secondary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-inline-label {
  color: var(--text-secondary);
}

.tbox-ahcalc-utility-btn .material-symbols-outlined {
  font-size: var(--fs-xl);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

:where(.tbox-ahcalc-comparison-table th),
:where(.tbox-ahcalc-comparison-table td) {
  padding: var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--ahcalc-slate-100);
  font-variant-numeric: tabular-nums;
}



:where(.tbox-ahcalc-vol-table tbody td) {
  padding: var(--space-sm-minus) var(--space-sm-mid);
  border-bottom: 1px solid var(--border-light, var(--ahcalc-slate-200));
  font-family: var(--ahcalc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-data);
  color: var(--text-secondary, var(--ahcalc-slate-600));
}

:where(.tbox-ahcalc-vol-table thead th) {
  text-align: left;
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-normal);
  color: var(--text-disabled, var(--gray-400));
  padding: var(--space-sm-minus) var(--space-sm-mid);
  border-bottom: 2px solid var(--border-light, var(--ahcalc-slate-200));
}

:where(.tbox-ahcalc-comparison-table th:first-child) {
  border-top-left-radius: var(--radius-12);
}


:where(.tbox-ahcalc-comparison-table th:last-child) {
  border-top-right-radius: var(--radius-12);
}


.tbox-ahcalc-vol-table thead th:not(:first-child) { text-align: right; }

:root[data-theme="dark"] .tbox-ahcalc-comparison-table th {
  background: var(--surface-glass-06);
  color: var(--text-primary);
  border-bottom-color: var(--border-mid);
}


:where(.tbox-ahcalc-comparison-table tr.highlight td) {
  color: var(--ahcalc-slate-900);
  font-weight: var(--fw-medium);
}



:where(.tbox-ahcalc-vol-table tbody td:first-child) {
  font-family: var(--ahcalc-font);
  color: var(--text-primary, var(--ahcalc-slate-900));
  font-weight: var(--fw-medium);
}

:where(.tbox-ahcalc-vol-table tbody td:not(:first-child)) { text-align: right; }

:where(.tbox-ahcalc-vol-table tbody tr:last-child td) { border-bottom: none; }

:where(:root[data-theme="dark"]) .tbox-ahcalc-comparison-table tr.highlight td {
  color: var(--text-primary);
}


:root[data-theme="dark"] .tbox-ahcalc-comparison-table td {
  color: var(--text-secondary);
  border-bottom-color: var(--border-light);
}



.tbox-ahcalc-topology-preview__canvas svg {
  display: block;
  width: 100%;
  height: auto;
}

.tbox-ahcalc-share-btn svg {
  flex-shrink: 0;
}


/* stylelint-disable-next-line no-descending-specificity -- configurator prompt copy is intentionally scoped */
#tbox-app-hosting-configurator .tbox-ahcalc-help-prompt p {
  color: var(--surface-glass-90);
  line-height: var(--lh-normal);
}

.tbox-ahcalc-faq-item summary::after {
  content: '+';
  font-size: var(--fs-2xl);
  color: var(--ahcalc-slate-400);
  transition: transform var(--ease-fast);
}

.tbox-ahcalc-step .num {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--radius-cap);
  background: rgb(6 182 212 / 22%);
  border: 1px solid rgb(6 182 212 / 25%);
  display: grid;
  place-items: center;
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-base);
  color: var(--ahcalc-slate-900);
}

/* HVPS calculator UI */

/**
 * Hourly VPS Configurator
 * Clean, professional configurator with proper contrast
 */

/* hvps-calculator.css — Calculator/configurator UI only.
   Shared marketing/page components live in site-palette.css. */

.tbox-ahcalc-section .tbox-pricing-trust-signals .tbox-trust-badge {
  font-size: var(--fs-xs);
  color: var(--text-on-dark-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs-plus);
  padding: var(--space-xs-plus) var(--space-sm-plus);
  border-radius: var(--radius-sm-plus);
  background: var(--surface-glass-08);
  border: 1px solid var(--surface-glass-12);
}

.tbox-ahcalc-stepper input[type="number"] {
  appearance: textfield;
}

.tbox-ahcalc-slider-wrapper input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 20px;
  background: transparent;
  appearance: none;
  cursor: pointer;
  margin: 0;
}

.tbox-ahcalc-slider-wrapper input[type="range"]:focus-visible {
  outline: var(--focus-outline-width) solid var(--brand-primary);
  outline-offset: var(--focus-outline-offset);
}

.tbox-ahcalc-slider-wrapper input[type="range"]:focus:not(:focus-visible) {
  outline: none;
}

/* Webkit Thumb */
.tbox-ahcalc-slider-wrapper input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--ahcalc-accent-400);
  border: 3px solid var(--surface-glass-85);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 4px var(--overlay-12);
  transition: box-shadow var(--ease-fast);
}

.tbox-ahcalc-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 2px 6px var(--overlay-18);
}

.tbox-ahcalc-slider-wrapper input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.tbox-ahcalc-slider-wrapper input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: var(--focus-outline-width) solid var(--ahcalc-accent-400);
  outline-offset: var(--focus-outline-offset);
}

/* Firefox Thumb */
.tbox-ahcalc-slider-wrapper input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--ahcalc-accent-400);
  border: 3px solid var(--surface-glass-85);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 4px var(--overlay-12);
}

.tbox-ahcalc-slider-wrapper input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 var(--focus-outline-width) var(--ahcalc-accent-400);
}

.tbox-ahcalc-slider-wrapper input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
}

.tbox-ahcalc-stack-limit label {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-extrabold);
  color: var(--ahcalc-slate-700);
  margin-bottom: var(--space-xs);
}

.tbox-ahcalc-util label {
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--ahcalc-slate-800);
  margin: 0;
}

.tbox-ahcalc-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  margin: 0;
}

.tbox-ahcalc-stack-name {
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  color: var(--ahcalc-slate-900);
}

.tbox-ahcalc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tbox-ahcalc-switch .label {
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  color: var(--ahcalc-slate-900);
}

.tbox-ahcalc-stepper input {
  border: none;
  border-radius: 0;
  width: 4.2rem;
  padding: 0.55rem var(--space-sm-mid);
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-md);
  color: var(--ahcalc-slate-900);
  text-align: center;
}

.tbox-ahcalc-stepper input:focus-visible {
  outline: var(--focus-outline-width) solid var(--ahcalc-accent-400);
  outline-offset: -2px;
}

.tbox-ahcalc-stepper input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tbox-ahcalc-stepper input:focus:not(:focus-visible) {
  outline: none;
}

.tbox-ahcalc-stepper-btn {
  width: 2.25rem;
  min-width: var(--min-touch-target);
  min-height: var(--min-touch-target);
  display: grid;
  place-items: center;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--ahcalc-slate-50);
  color: var(--ahcalc-slate-700);
  font-size: var(--fs-base);
  font-weight: 900;
  cursor: pointer;
  transition: background var(--ease-fast), color var(--ease-fast);
}

.tbox-ahcalc-stepper-btn:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.tbox-ahcalc-stepper-btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tbox-ahcalc-stepper-btn:focus-visible {
  outline: var(--focus-outline-width) solid var(--ahcalc-accent-400);
  outline-offset: -2px;
}

.tbox-ahcalc-stepper-btn:focus:not(:focus-visible) {
  outline: none;
}

.tbox-ahcalc-stepper-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tbox-ahcalc-input {
  /* Only used for standalone inputs now if any */
  width: 100%;
  padding: 0.6rem var(--space-md-minus);
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-md);
  color: var(--ahcalc-slate-900);
  background: var(--surface-glass-95);
}

.tbox-ahcalc-input-group .tbox-ahcalc-input {
  border: none;
  border-radius: 0;
  flex: 1;
  padding: 0.6rem 0.8rem;
}

.tbox-ahcalc-input:focus-visible {
  outline: var(--focus-outline-width) solid var(--ahcalc-accent-400);
  outline-offset: -2px;
}

.tbox-ahcalc-input-group .tbox-ahcalc-input:focus {
  outline: none;
}

.tbox-ahcalc-est .v {
  font-family: var(--ahcalc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-xl);
  color: var(--ahcalc-slate-700);
}

.tbox-ahcalc-est--typical .v { color: var(--ahcalc-slate-900); font-weight: var(--fw-bold); font-size: var(--fs-2xl); }

.tbox-ahcalc-stat .label {
  display: block;
  font-size: var(--fs-base);
  color: var(--surface-glass-60);
  margin-top: var(--space-sm);
}

#tbox-app-hosting-configurator .tbox-ahcalc-stack-name {
  color: var(--ahcalc-slate-900);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-title {
  color: var(--text-primary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-stepper input {
  color: var(--text-primary);
  background: transparent;
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-title,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-stack-name,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-card h3,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-switch .label,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-stepper input,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-step .num,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-est .v,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-util label,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-input {
  color: var(--text-primary);
}

/* CTA Microcopy */
.tbox-ahcalc-pricing-card .cta-microcopy {
  margin-top: var(--space-md);
  font-size: var(--fs-xs);
  text-align: center;
  color: var(--text-muted);
}

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .cta-microcopy { color: rgb(255 255 255 / 70%); }

.tbox-ahcalc-comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 var(--space-lg);
}


.tbox-ahcalc-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-base);
  border-radius: var(--radius-12);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--overlay-10);
}


.tbox-ahcalc-comparison-footnote {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ahcalc-slate-500);
  margin: var(--space-xl) 0 0;
}



.tbox-ahcalc-faq-item summary {
  padding: var(--space-lg-plus);
  font-weight: var(--fw-semibold);
  color: var(--ahcalc-slate-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tbox-ahcalc-faq-item summary::-webkit-details-marker {
  display: none;
}

/* ============================================
   Trust signals near CTA (scoped to pricing card)
   ============================================ */
.tbox-ahcalc-section .tbox-pricing-trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  justify-content: center;
}

.tbox-ahcalc-section .tbox-pricing-trust-signals .tbox-trust-badge::before {
  content: '✓';
  color: var(--brand-cta);
  font-weight: var(--fw-bold);
}

.tbox-ahcalc-faq-item[open] summary::after {
  transform: rotate(45deg);
}

#tbox-app-hosting-configurator .tbox-ahcalc-preset .name span {
  color: var(--ahcalc-slate-400);
  transition: all var(--ease-base);
  font-weight: var(--fw-extrabold);
}

.tbox-ahcalc-pricing-card .pricing-total__hourly {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  /* Dark overlay (not a white glass tint): keeps white chip text well
     above 4.5:1 on the mid-blue pricing band in both themes. */
  background: var(--overlay-20);
  border: 1px solid var(--surface-glass-18);
  font-size: var(--fs-2xs);
  color: var(--surface-glass-80);
}


.tbox-ahcalc-pricing-card .pricing-total__hourly-icon {
  width: 1em;
  height: 1em;
  font-size: 16px;
  flex-shrink: 0;
}


.tbox-ahcalc-pricing-card .pricing-total__hourly-val {
  margin-left: auto;
  white-space: nowrap;
}


.tbox-ahcalc-pricing-card .pricing-total__hourly-val b {
  font-family: var(--ahcalc-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-inverse);
}



#tbox-app-hosting-configurator .tbox-ahcalc-pricing-card .cta-microcopy {
  font-size: var(--fs-xs);
  color: var(--surface-glass-70);
}

:root:not([data-theme="dark"]) #tbox-app-hosting-configurator .tbox-ahcalc-pricing-card .cta-microcopy {
  color: var(--text-secondary);
}

/* Trust badges: use dark tokens in light mode (dark-surface tokens render as grey on white card). */
:root:not([data-theme="dark"]) .tbox-ahcalc-section .tbox-pricing-trust-signals .tbox-trust-badge {
  color: var(--text-secondary);
  background: var(--overlay-06);
  border-color: var(--border-light);
}

/* App Hosting calculator UI */

/**
 * App Hosting Calculator UX Wrapper
 * Cohesive with HVPS configurator (cards, sticky summary, clear estimates)
 */

/* Prevent a flash of unenhanced markup while JS swaps in the upgraded hero + UI.
   The inline head script adds/removes `tbox-ahcalc-loading` on <html>. */

html.tbox-ahcalc-loading .tbox-ahcalc-section .j-calculator {
  visibility: hidden;
}

#tbox-app-hosting-configurator {
  font-family: var(--ahcalc-font);
  color: var(--ahcalc-slate-900);
  margin: 0 auto 1.5rem;
  max-width: 1440px;
}

/* Static loading/failure message inside the mount; buildUiV3() replaces it,
   so it only stays visible if the calculator JS never initializes. */
.tbox-ahcalc-fallback {
  margin: 0;
  padding: var(--space-lg) var(--space-md);
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--fs-base);
  text-align: center;
}

.tbox-ahcalc-fallback a {
  color: var(--brand-primary-text);
  font-weight: 600;
}

.tbox-ahcalc-shell {
  background: var(--ahcalc-slate-50);
  border: 1px solid var(--ahcalc-slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--ahcalc-shadow);
  padding: 1.1rem 1.1rem 1.25rem;
}

.tbox-ahcalc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md) 1.25rem;
  margin-bottom: var(--space-lg);
}

.tbox-ahcalc-head-text {
  flex: 1 1 520px;
  min-width: 260px;
}

.tbox-ahcalc-head-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm-plus);
  margin-left: auto;
}

.tbox-ahcalc-select {
  appearance: none;
  background: var(--surface-glass-90);
  border: 1px solid var(--ahcalc-slate-200);
  border-radius: var(--radius-12);
  padding: 0.55rem 2.1rem 0.55rem 0.75rem;
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-base);
  color: var(--ahcalc-slate-900);
  box-shadow: 0 1px 0 rgb(2 6 23 / 3%);
  background-image: linear-gradient(45deg, transparent 50%, var(--ahcalc-slate-500) 50%),
    linear-gradient(135deg, var(--ahcalc-slate-500) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.tbox-ahcalc-select:focus-visible {
  outline: none;
  border-color: var(--ahcalc-accent-400);
  box-shadow: 0 0 0 3px rgb(34 211 238 / 15%);
}

.tbox-ahcalc-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm-mid);
  margin: var(--space-md) 0 1.05rem;
}

/* ============================================
   Grid Layout - matches HVPS configurator
   ============================================ */
.tbox-ahcalc-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: var(--space-lg-plus);
  align-items: start;
}

.tbox-ahcalc-main-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tbox-ahcalc-card {
  background: var(--surface-glass-92);
  border: 1px solid var(--ahcalc-slate-200);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 rgb(2 6 23 / 4%);
  padding: 0.95rem;
}

/* ============================================
   Workload controls
   ============================================ */
.tbox-ahcalc-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm-mid);
}

.tbox-ahcalc-stack-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ahcalc-slate-200);
  background: var(--surface-glass-82);
  box-shadow: 0 1px 0 rgb(2 6 23 / 3%);
}

.tbox-ahcalc-stack-left {
  display: grid;
  gap: 0.2rem;
}

.tbox-ahcalc-stack-right {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm-mid);
}

.tbox-ahcalc-stepper {
  display: flex;
  align-items: stretch;
  width: fit-content;
  border: 1px solid var(--ahcalc-slate-200);
  border-radius: var(--radius-12);
  overflow: hidden;
  background: var(--surface-glass-92);
  box-shadow: inset 0 1px 0 rgb(2 6 23 / 2%);
}

.tbox-ahcalc-stack .tbox-ahcalc-stepper {
  width: fit-content;
  max-width: 100%;
}

.tbox-ahcalc-stack-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tbox-ahcalc-stack-software {
  display: grid;
  gap: var(--space-xs);
}

.tbox-ahcalc-stack-software-label {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-extrabold);
  color: var(--ahcalc-slate-700);
  margin-bottom: 0.1rem;
}

.tbox-ahcalc-select--stack {
  width: 100%;
  max-width: 18rem;
}

.tbox-ahcalc-storage-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.tbox-ahcalc-stack-limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm-mid);
}

.tbox-ahcalc-stack-nodes-label {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-extrabold);
  color: var(--ahcalc-slate-700);
  margin-bottom: var(--space-xs);
}

.tbox-ahcalc-stack-note {
  margin-top: var(--space-md);
  font-size: var(--fs-base);
  color: var(--ahcalc-slate-600);
  line-height: var(--lh-snug);
}

.tbox-ahcalc-dblb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm-minus);
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm-plus);
  border: 1px solid var(--ahcalc-slate-200);
  background: var(--surface-glass-85);
  font-size: var(--fs-xs);
  color: var(--ahcalc-slate-700);
  white-space: nowrap;
}

.tbox-ahcalc-stack-left .tbox-ahcalc-dblb {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin-top: var(--space-2xs);
}

.tbox-ahcalc-dblb input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-primary);
}

.tbox-ahcalc-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm-plus);
  font-size: var(--fs-xs);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-wide);
  border: 1px solid rgb(34 211 238 / 25%);
  background: rgb(34 211 238 / 18%);
  color: var(--ahcalc-slate-800);
  white-space: nowrap;
}

.tbox-ahcalc-pill--required {
  border-color: rgb(34 197 94 / 25%);
  background: rgb(34 197 94 / 20%);
  color: var(--state-success-text);
}

.tbox-ahcalc-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
}

.tbox-ahcalc-switch .track {
  width: 2.35rem;
  height: 1.35rem;
  border-radius: var(--radius-cap);
  background: var(--switch-track-bg);
  border: 1px solid var(--switch-track-border);
  position: relative;
  transition: background var(--ease-fast), border-color var(--ease-fast);
  flex: 0 0 auto;
}

.tbox-ahcalc-switch .track::after {
  content: '';
  position: absolute;
  width: 1.03rem;
  height: 1.03rem;
  border-radius: var(--radius-cap);
  background: var(--switch-knob-bg);
  top: 50%;
  left: 0.14rem;
  transform: translateY(-50%);
  box-shadow: var(--switch-knob-shadow);
  transition: transform var(--ease-fast);
}

.tbox-ahcalc-switch input:checked + .track {
  background: var(--switch-track-active-bg);
  border-color: var(--switch-track-active-border);
}

.tbox-ahcalc-switch input:checked + .track::after {
  transform: translate(1.0rem, -50%);
}

.tbox-ahcalc-switch input:focus-visible + .track {
  outline: none;
  box-shadow: 0 0 0 3px var(--switch-focus-ring);
}

.tbox-ahcalc-stepper:focus-within {
  border-color: var(--ahcalc-accent-400);
  box-shadow: 0 0 0 3px rgb(34 211 238 / 15%);
}

.tbox-ahcalc-stepper-btn:hover {
  background: rgb(2 6 23 / 14%);
}

.tbox-ahcalc-stepper-btn:active {
  background: rgb(2 6 23 / 18%);
}

.tbox-ahcalc-stepper input::-webkit-outer-spin-button,
.tbox-ahcalc-stepper input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

/* ============================================
   Topology preview (live)
   ============================================ */
.tbox-ahcalc-topology-preview {
  position: relative;
  margin-top: var(--space-md-plus);
  padding: var(--space-md-plus);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ahcalc-slate-200);
  background: var(--surface-glass-82);

  --ahcalc-topo-node-bg: var(--surface-glass-90);
  --ahcalc-topo-text: var(--ahcalc-slate-900);
  --ahcalc-topo-muted: var(--ahcalc-slate-600);
  --ahcalc-topo-line: rgb(2 6 23 / 35%);
  --ahcalc-topo-traffic: var(--ahcalc-accent-400);
  --ahcalc-topo-lb: #a78bfa;
  --ahcalc-topo-app: var(--ahcalc-accent-400);
  --ahcalc-topo-db: var(--ahcalc-warn-500);
}

.tbox-ahcalc-topology-preview__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 0 0 var(--space-sm-mid);
}

.tbox-ahcalc-topology-preview__title {
  font-weight: 850;
  letter-spacing: var(--ls-tight);
  color: var(--ahcalc-topo-text);
  font-size: var(--fs-base);
}

.tbox-ahcalc-topology-preview__hint {
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-xs);
  color: var(--ahcalc-topo-muted);
  white-space: nowrap;
}

.tbox-ahcalc-topology-preview--sidebar {
  margin: 1.15rem 0 1.25rem;
  padding: 0.95rem;
  border: 1px solid var(--surface-glass-12);
  background: var(--surface-glass-06);

  --ahcalc-topo-node-bg: var(--surface-glass-06);
  --ahcalc-topo-text: var(--surface-glass-92);
  --ahcalc-topo-muted: var(--surface-glass-60);
  --ahcalc-topo-line: var(--surface-glass-72);
  --ahcalc-topo-traffic: rgb(34 211 238 / 95%);
  --ahcalc-topo-lb: rgb(167 139 250 / 95%);
  --ahcalc-topo-app: rgb(34 211 238 / 95%);
  --ahcalc-topo-db: rgb(245 158 11 / 95%);
}

.tbox-ahcalc-topology-preview--sidebar .tbox-ahcalc-topology-preview__hint {
  display: none;
}

/* ============================================
   Presets - with active state
   ============================================ */
.tbox-ahcalc-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md-minus);
}

.tbox-ahcalc-preset {
  text-align: left;
  border: 1px solid var(--ahcalc-slate-200);
  background: var(--surface-base);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  min-height: var(--min-touch-target);
  cursor: pointer;
  transition: border-color var(--ease-base), background var(--ease-base), color var(--ease-base);
  position: relative;
  overflow: hidden;
}

.tbox-ahcalc-preset:hover {
  border-color: var(--ahcalc-accent-300);
}

/* Active preset state */
.tbox-ahcalc-preset--active {
  border: 2px solid var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
  padding: calc(var(--space-sm) - 1px) calc(var(--space-md) - 1px);
}

#tbox-app-hosting-configurator .tbox-ahcalc-preset .name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--ahcalc-slate-800);
  margin-bottom: var(--space-sm);
  transition: color var(--ease-fast);
}

#tbox-app-hosting-configurator .tbox-ahcalc-preset--active .name {
  color: var(--ahcalc-slate-900);
}

:where(#tbox-app-hosting-configurator .tbox-ahcalc-preset--active .name span),
:where(#tbox-app-hosting-configurator .tbox-ahcalc-preset:hover .name span) {
  color: var(--ahcalc-action-500);
}

/* Specs Badge - Color Injection */
#tbox-app-hosting-configurator .tbox-ahcalc-preset .specs {
  display: inline-block;
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--brand-primary-text);
  background: var(--brand-primary-20);
  padding: var(--space-xs) var(--space-sm-plus);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm-mid);
  border: 1px solid var(--brand-primary-25);
}

#tbox-app-hosting-configurator .tbox-ahcalc-preset--active .specs {
  background: var(--ahcalc-accent-500);
  color: var(--text-inverse);
  border-color: var(--ahcalc-accent-600);
}

#tbox-app-hosting-configurator .tbox-ahcalc-preset .micro {
  color: var(--ahcalc-slate-500);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

/* ============================================
   Form Fields
   ============================================ */
.tbox-ahcalc-field {
  display: grid;
  gap: var(--space-2xs);
  margin-top: var(--space-sm-minus);
}

.tbox-ahcalc-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.tbox-ahcalc-fields-grid .tbox-ahcalc-field {
  margin-top: 0;
}

/* Prevent grid-stretching on “pill” steppers (Usage helpers: Storage + Public IP). */
.tbox-ahcalc-fields-grid .tbox-ahcalc-stepper {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

/* Unified Input Group */
.tbox-ahcalc-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ahcalc-slate-200);
  border-radius: var(--radius-12);
  overflow: hidden;
  background: var(--surface-base);
  transition: border-color var(--ease-fast);
}

.tbox-ahcalc-input-group:focus-within {
  border-color: var(--ahcalc-accent-400);
  box-shadow: 0 0 0 3px rgb(34 211 238 / 15%);
}

.tbox-ahcalc-toggle {
  display: flex;
  background: var(--ahcalc-slate-50);
  border-left: 1px solid var(--ahcalc-slate-200);
  padding: var(--space-xs);
  gap: var(--space-xs);
}

.tbox-ahcalc-toggle button[aria-pressed="true"] {
  background: var(--brand-primary-dark);
  color: var(--text-inverse);
}

.tbox-ahcalc-hint--included {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--state-success-text);
  font-weight: var(--fw-semibold);
  background: var(--state-success-bg-soft);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm-plus);
  border: 1px solid var(--state-success-border-soft);
}

/* ============================================
   Estimates (3-tier cards)
   ============================================ */
.tbox-ahcalc-estimates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}

.tbox-ahcalc-estimates--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tbox-ahcalc-est {
  padding: var(--space-lg);
  background: transparent;
  border-radius: var(--radius-12);
  text-align: center;
}

.tbox-ahcalc-est .k {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
  color: var(--ahcalc-slate-500);
}

.tbox-ahcalc-est .subv {
  margin-top: var(--space-xs);
  font-family: var(--ahcalc-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ahcalc-slate-400);
  font-size: var(--fs-base);
}

/* Typical Estimate Highlight */
.tbox-ahcalc-est--typical {
  background: var(--surface-base);
  border: 1px solid var(--ahcalc-slate-200);
  border-top: 4px solid var(--ahcalc-accent-500);
  box-shadow: 0 2px 4px var(--overlay-06);
}

.tbox-ahcalc-est--typical .k { color: var(--ahcalc-accent-600); }

.tbox-ahcalc-est--typical .subv { color: var(--ahcalc-slate-600); }

/* ============================================
   Utilization Slider
   ============================================ */
.tbox-ahcalc-util {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px dashed rgb(100 116 139 / 20%);
}

.tbox-ahcalc-util .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm-minus);
}

.tbox-ahcalc-util .pill {
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-sm);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm-plus);
  border: 1px solid var(--ahcalc-slate-200);
  background: rgb(6 182 212 / 20%);
  color: var(--ahcalc-slate-900);
}

/* Slider wrapper */
.tbox-ahcalc-slider-wrapper {
  position: relative;
  height: 8px;
  background: rgb(15 23 42 / 10%);
  border-radius: var(--radius-xs);
  overflow: visible;
  margin: var(--space-md) 0;
}

.tbox-ahcalc-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--ahcalc-accent-400, var(--ahcalc-accent-500));
  border-radius: var(--radius-xs);
  pointer-events: none;
  /* State-bound: width is the canonical state. Drag must track instantly. */
}

/* Webkit Thumb */

/* Firefox Thumb */

/* ============================================
   Pricing Sidebar - matches HVPS configurator
   ============================================ */
.tbox-ahcalc-pricing-sidebar {
  position: sticky;
  /* Clear the fixed header + sticky jump bar so the summary top is not clipped. */
  top: calc(var(--wp-admin-bar-h, 0px) + var(--header-height-scrolled, 64px) + 70px + var(--space-md, 1rem));
}

.tbox-ahcalc-pricing-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;

  --ahcalc-pricing-card-pad: 1.25rem;

  background: var(--surface-base);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.tbox-ahcalc-pricing-card .pricing-card-header {
  display: none;
}

.tbox-ahcalc-pricing-card .pricing-total {
  margin: calc(-1 * var(--ahcalc-pricing-card-pad) - 1px) calc(-1 * var(--ahcalc-pricing-card-pad) - 1px) 14px;
  padding: 20px var(--ahcalc-pricing-card-pad) 16px;
  background: var(--brand-primary-dark);
  border-bottom: 0;
}

.tbox-ahcalc-pricing-card .pricing-total__label {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--surface-glass-88);
}

.tbox-ahcalc-pricing-card .pricing-total__range {
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
  flex-wrap: nowrap;
}

.tbox-ahcalc-pricing-card .pricing-total__range .price-value {
  font-size: var(--fs-heading-md);
  font-weight: var(--fw-bold);
  font-family: var(--ahcalc-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
  color: var(--text-inverse);
}

.tbox-ahcalc-pricing-card .pricing-total__dash {
  font-size: var(--fs-heading-sm);
  color: var(--surface-glass-55);
}

.tbox-ahcalc-pricing-card .pricing-total__unit {
  font-family: var(--ahcalc-font);
  font-size: var(--fs-sm);
  color: var(--surface-glass-88);
}

.tbox-ahcalc-pricing-card .pricing-total__ends {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  font-size: var(--fs-2xs);
  color: var(--surface-glass-88);
}

.tbox-ahcalc-pricing-card .pricing-total__anchor {
  margin: var(--space-sm) 0 0;
  font-size: var(--fs-2xs);
  line-height: var(--lh-snug);
  color: var(--surface-glass-88);
}


/* CTA Button */
.tbox-ahcalc-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: var(--tbox-btn-accent-bg);
  color: var(--tbox-btn-accent-text);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  text-decoration: none;
  border: 1px solid var(--tbox-btn-accent-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--ease-fast);
}

.tbox-ahcalc-cta-btn:hover {
  background: var(--tbox-btn-accent-bg-hover);
}

.tbox-ahcalc-cta-btn:active {
  transform: translateY(0);
}

/* Pricing Breakdown */
.tbox-ahcalc-pricing-card .pricing-breakdown {
  border-top: 1px solid var(--surface-glass-10);
  padding-top: var(--space-lg-plus);
  margin-top: var(--space-lg-plus);
  margin-bottom: var(--space-lg-plus);
  border-top-color: var(--border-light);
}

.tbox-ahcalc-pricing-card .pricing-breakdown-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.tbox-ahcalc-pricing-card__toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: var(--space-md);
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--surface-glass-12);
  border-radius: var(--radius-md);
  background: var(--surface-glass-06);
  color: var(--surface-glass-90);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: background var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast);
}

.tbox-ahcalc-pricing-card__toggle::after {
  content: '\2304';
  font-size: var(--fs-sm);
  line-height: 1;
  transition: transform var(--ease-fast);
}

.tbox-ahcalc-pricing-card__toggle:hover,
.tbox-ahcalc-pricing-card__toggle:focus-visible {
  background: var(--surface-glass-10);
  border-color: var(--surface-glass-20);
  color: var(--text-inverse);
}

:root:not([data-theme="dark"]) .tbox-ahcalc-pricing-card__toggle {
  color: var(--text-secondary);
  background: var(--overlay-06);
  border-color: var(--border-light);
}

:root:not([data-theme="dark"]) .tbox-ahcalc-pricing-card__toggle:hover,
:root:not([data-theme="dark"]) .tbox-ahcalc-pricing-card__toggle:focus-visible {
  color: var(--text-primary);
  background: var(--overlay-12);
  border-color: var(--border-muted);
}

/* stylelint-disable-next-line no-descending-specificity */
.tbox-ahcalc-pricing-card__toggle:focus-visible {
  outline: var(--focus-outline-width) solid var(--surface-glass-80);
  outline-offset: var(--focus-outline-offset);
}

:root:not([data-theme="dark"]) .tbox-ahcalc-pricing-card__toggle:focus-visible {
  outline-color: var(--brand-primary);
}

.tbox-ahcalc-pricing-card.is-breakdown-open .tbox-ahcalc-pricing-card__toggle::after {
  transform: rotate(180deg);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--surface-glass-05);
  border-bottom-color: var(--border-light);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row.tbox-ahcalc-row--has-meta {
  align-items: flex-start;
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row:last-child {
  border-bottom: none;
}

/* Last visible line item before the total: drop its border so it does not
   double up with the total row's top border. */
.tbox-ahcalc-pricing-card .tbox-ahcalc-row--last-line {
  border-bottom: none;
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row .tbox-ahcalc-row__label {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  line-height: 1.1;
  color: var(--text-secondary);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row .tbox-ahcalc-row__label-meta {
  font-size: var(--fs-xs);
  font-family: var(--ahcalc-mono);
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  color: var(--text-muted);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row .tbox-ahcalc-row__label-meta:empty {
  display: none;
}

.tbox-ahcalc-row__label-hint {
  font-weight: var(--fw-normal);
  color: var(--text-muted);
  font-size: 0.85em; /* relative: intentional em */
}

/* Resource color highlights — pricing sidebar (dark bg) */
.tbox-ahcalc-pricing-card .tbox-ahcalc-row__label-meta .tbox-ahcalc-res__label {
  font-weight: var(--fw-bold);
  font-size: 0.625rem; /* micro-UI: intentional literal */
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row__label-meta .tbox-ahcalc-res__ram { color: var(--ahcalc-info-700);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row__label-meta .tbox-ahcalc-res__cpu { color: var(--ahcalc-action-600);
}

/* Resource color highlights — config inspector (light bg) */
#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-resources .tbox-ahcalc-res__label {
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  letter-spacing: 0;
}

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .tbox-ahcalc-row__label-meta .tbox-ahcalc-res__ram { color: var(--ahcalc-accent-400); }

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-resources .tbox-ahcalc-res__ram {
  color: var(--ahcalc-info-700);
}

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .tbox-ahcalc-row__label-meta .tbox-ahcalc-res__cpu { color: var(--ahcalc-warn-300); }

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-resources .tbox-ahcalc-res__cpu {
  color: var(--brand-cta-ink-strong);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-resources .tbox-ahcalc-res__cpu .tbox-ahcalc-res__label {
  color: var(--brand-cta-ink-strong);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row .tbox-ahcalc-row__value {
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  font-family: var(--ahcalc-mono);
  color: var(--text-primary);
}

/* Colored dots per layer */
.tbox-ahcalc-pricing-card .tbox-ahcalc-row__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: var(--space-2xs);
  flex-shrink: 0;
  vertical-align: middle;
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row__dot--balancer { background: var(--ahcalc-accent-400); }

.tbox-ahcalc-pricing-card .tbox-ahcalc-row__dot--app { background: var(--ahcalc-success-500); }

.tbox-ahcalc-pricing-card .tbox-ahcalc-row__dot--db { background: var(--ahcalc-warn-500); }

.tbox-ahcalc-pricing-card .tbox-ahcalc-row__dot--dblb { background: var(--ahcalc-svc-dblb-500); }

.tbox-ahcalc-pricing-card .tbox-ahcalc-row__dot--cache { background: var(--ahcalc-svc-cache-500); }

.tbox-ahcalc-pricing-card .tbox-ahcalc-row__dot--filestorage { background: var(--ahcalc-slate-500); }

.tbox-ahcalc-pricing-card .tbox-ahcalc-row__dot--storage { background: var(--text-disabled); }

/* Estimated total row + billing note */
.tbox-ahcalc-pricing-card .tbox-ahcalc-row--total {
  display: flex;
  border-bottom: none;
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-2xs);
  padding-top: var(--space-sm-mid);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row--total .tbox-ahcalc-row__label {
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-row--total .tbox-ahcalc-row__value {
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.tbox-ahcalc-pricing-card .pricing-breakdown__note {
  margin-top: var(--space-md);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

/* Cloudlet info card */
.tbox-ahcalc-cloudlet-info {
  margin-top: var(--space-md);
  padding: var(--space-md-plus) var(--space-lg);
  background: var(--surface-base);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.tbox-ahcalc-cloudlet-info__title {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.tbox-ahcalc-cloudlet-info__body {
  font-size: 0.625rem; /* micro-UI: intentional literal */
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}


/* Share Configuration Button */
.tbox-ahcalc-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  margin-top: var(--space-lg);
  padding: var(--space-sm-mid) 1rem;
  background: var(--surface-glass-08);
  border: 1px solid var(--surface-glass-15);
  border-radius: var(--radius-sm-plus);
  color: var(--surface-glass-85);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--ease-fast);
}

.tbox-ahcalc-share-btn:hover {
  background: var(--surface-glass-12);
  border-color: var(--surface-glass-25);
  color: var(--text-inverse);
}

.tbox-ahcalc-share-btn:focus-visible {
  outline: var(--focus-outline-width) solid var(--ahcalc-accent-400);
  outline-offset: var(--focus-outline-offset);
}

/* ============================================
   Utility Row + Share Popover (sidebar)
   ============================================ */
.tbox-ahcalc-utility-row {
  position: relative;
  display: flex;
  gap: var(--space-sm-mid);
  margin-top: var(--space-lg);
}

.tbox-ahcalc-utility-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm-mid) 1rem;
  background: var(--surface-glass-08);
  border: 1px solid var(--surface-glass-15);
  border-radius: var(--radius-md);
  color: var(--surface-glass-85);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: color var(--ease-fast), background var(--ease-fast), border-color var(--ease-fast);
}

.tbox-ahcalc-utility-btn:hover,
.tbox-ahcalc-utility-btn:focus-visible {
  background: var(--surface-glass-12);
  border-color: var(--surface-glass-25);
  color: var(--text-inverse);
}

.tbox-ahcalc-share-popover-wrap {
  position: static;
  flex: 1;
}

.tbox-ahcalc-share-popover-wrap--toolbar {
  position: relative;
  flex: 0 0 auto;
}

.tbox-ahcalc-share-popover-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--ahcalc-slate-800);
  border: 1px solid var(--surface-glass-10);
  border-radius: var(--radius-12);
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  box-shadow: 0 4px 12px var(--overlay-30);
}

.tbox-ahcalc-share-popover-panel--toolbar {
  left: auto;
  right: 0;
  min-width: 320px;
}

@media (width <= 600px) {
  .tbox-ahcalc-v3-preset-bar {
    position: relative;
  }

  .tbox-ahcalc-v3-panel-actions,
  .tbox-ahcalc-share-popover-wrap--toolbar {
    position: static;
  }

  .tbox-ahcalc-share-popover-panel--toolbar {
    left: 0;
    right: 0;
    min-width: 0;
  }
}


.tbox-ahcalc-share-popover-panel.is-open {
  display: flex;
}

.tbox-ahcalc-share-action {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--surface-glass-85);
  background: var(--surface-glass-06);
  border: 1px solid var(--surface-glass-12);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--ease-fast), background var(--ease-fast), border-color var(--ease-fast);
}

.tbox-ahcalc-share-action:hover,
.tbox-ahcalc-share-action:focus-visible {
  color: var(--text-inverse);
  background: var(--surface-glass-10);
  border-color: var(--surface-glass-25);
}

/* Toast Notification */
.tbox-ahcalc-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ahcalc-slate-900);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  box-shadow: 0 2px 8px var(--overlay-22);
  opacity: 0;
  visibility: hidden;
  transition: all var(--ease-base);
  z-index: 10000;
}

.tbox-ahcalc-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tbox-ahcalc-toast.is-success {
  background: var(--ahcalc-toast-success-end);
}

.tbox-ahcalc-toast.is-error {
  background: var(--ahcalc-toast-error-end);
}

/* ============================================
   Accessibility: Focus Indicators
   ============================================ */
.tbox-ahcalc-preset:focus-visible {
  outline: 3px solid var(--ahcalc-accent-400);
  outline-offset: var(--focus-outline-offset);
}

.tbox-ahcalc-cta-btn:focus-visible {
  outline: 3px solid var(--surface-glass-80);
  outline-offset: var(--focus-outline-offset);
}

@media (pointer: coarse) {
  .tbox-ahcalc-preset {
    min-height: 80px;
    padding: var(--space-lg-plus);
  }

  .tbox-ahcalc-toggle button {
    min-width: 56px;
    min-height: var(--min-touch-target);
    padding: var(--space-sm) var(--space-lg);
  }

  .tbox-ahcalc-cta-btn {
    min-height: 52px;
  }

  .tbox-ahcalc-share-btn {
    min-height: 48px;
    padding: 0.85rem 1.25rem;
  }

  .tbox-ahcalc-slider-wrapper {
    height: 12px;
    margin: 1rem 0;
  }

  .tbox-ahcalc-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  .tbox-ahcalc-slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }

  .tbox-ahcalc-btn {
    min-height: 48px;
    padding: var(--space-md) var(--space-lg);
  }

  .tbox-ahcalc-step {
    min-height: var(--min-touch-target);
    padding: var(--space-sm-mid) 0.85rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tbox-ahcalc-row.ahcalc-row-flash {
    animation: ahcalc-row-flash 0.45s ease;
  }
}


@keyframes ahcalc-row-flash {
  0%   { background: rgb(34 211 238 / 0%); }

  30%  { background: rgb(34 211 238 / 12%); }

  100% { background: rgb(34 211 238 / 0%); }
}

/* ============================================
   Sticky summary bar
   ============================================ */
.tbox-ahcalc-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4999;
  padding: 0.85rem 5rem calc(0.85rem + env(safe-area-inset-bottom)) 0.85rem;
  display: none;
}

.tbox-ahcalc-sticky.is-visible {
  display: block;
}

@media (min-width: 769px) {
  .tbox-ahcalc-sticky,
  .tbox-ahcalc-sticky.is-visible {
    display: none !important;
  }
}


.tbox-ahcalc-sticky__inner {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface-dark-frosted, rgb(2 6 23 / 92%));
  color: var(--text-inverse);
  border: 1px solid rgb(148 163 184 / 25%);
  box-shadow: var(--ahcalc-shadow-lg);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: center;
}

.tbox-ahcalc-sticky__title {
  font-weight: 750;
  letter-spacing: var(--ls-tight);
  margin: 0;
  font-size: var(--fs-md);
  color: color-mix(in srgb, white 86%, transparent);
}

.tbox-ahcalc-sticky__value {
  margin: var(--space-xs) 0 0;
  font-family: var(--ahcalc-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-md);
  color: var(--text-inverse);
}

.tbox-ahcalc-sticky__sub {
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-base);
  color: rgb(226 232 240 / 80%);
}

.tbox-ahcalc-sticky__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tbox-ahcalc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm-minus);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  text-decoration: none;
  border: 1px solid var(--surface-glass-20);
  transition: opacity var(--ease-fast);
  cursor: pointer;
}

.tbox-ahcalc-btn:hover { opacity: 0.92; }

.tbox-ahcalc-btn--primary {
  background: var(--tbox-btn-accent-bg);
  color: var(--tbox-btn-accent-text);
  border-color: var(--tbox-btn-accent-border);
}

.tbox-ahcalc-btn--ghost {
  background: var(--surface-glass-08);
  color: var(--text-inverse);
}

/* ============================================
   J-Calculator integration
   ============================================ */

/* Hide the j-calculator's internal period toggle and min/max display (we replace it) */
.tbox-ahcalc-section .j-calculator .currency-period .radio-block,
.tbox-ahcalc-section .j-calculator .period {
  display: none !important;
}

/* Keep j-calculator usable but more aligned with design */
.tbox-ahcalc-section .j-calculator .calc-block {
  border-radius: var(--radius-lg);
  border: 1px solid var(--ahcalc-slate-200);
  background: var(--surface-glass-70);
}

.tbox-ahcalc-section .j-calculator .calculator-right .currency-period {
  margin-top: var(--space-sm);
}

/* Style the language icons row */
.tbox-ahcalc-section .j-calculator .language-icons,
.tbox-ahcalc-section .j-calculator .lang-icons {
  background: rgb(2 6 23 / 3%);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-top: var(--space-sm);
}

@media (width <= 960px) {
  #tbox-app-hosting-configurator {
    padding: 0 0.5rem;
  }

  .tbox-ahcalc-grid {
    grid-template-columns: 1fr;
  }

  .tbox-ahcalc-pricing-sidebar {
    position: relative;
    top: 0;
  }

  .tbox-ahcalc-pricing-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg-plus);
    --ahcalc-pricing-card-pad: var(--space-lg-plus);
  }

  .tbox-ahcalc-pricing-card .pricing-total {
    grid-column: 1 / -1;
    margin-bottom: 0;
    margin-inline: calc(-1 * var(--ahcalc-pricing-card-pad) - 1px);
  }

  .tbox-ahcalc-pricing-card .tbox-ahcalc-cta-btn {
    grid-column: 1 / -1;
  }

  .tbox-ahcalc-pricing-card .cta-microcopy {
    grid-column: 1 / -1;
    margin-top: var(--space-sm);
  }

  .tbox-ahcalc-pricing-card .pricing-breakdown {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .tbox-ahcalc-presets {
    grid-template-columns: 1fr;
  }

  .tbox-ahcalc-estimates {
    grid-template-columns: 1fr;
  }

  .tbox-ahcalc-sticky__inner {
    grid-template-columns: 1fr;
  }

  .tbox-ahcalc-sticky__actions {
    justify-content: flex-start;
  }

  .tbox-ahcalc-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .tbox-ahcalc-head-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (width <= 600px) {
  .tbox-ahcalc-fields-grid {
    grid-template-columns: 1fr;
  }

  .tbox-ahcalc-stack-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tbox-ahcalc-stack-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-md-minus);
  }

  .tbox-ahcalc-stack-controls {
    width: 100%;
  }

  .tbox-ahcalc-stack-limits {
    grid-template-columns: 1fr;
  }

  .tbox-ahcalc-dblb {
    white-space: normal;
  }

  .tbox-ahcalc-pricing-card {
    display: block;
    padding: var(--space-lg-plus);
    --ahcalc-pricing-card-pad: var(--space-lg-plus);
  }

  .tbox-ahcalc-pricing-card .pricing-total {
    margin-bottom: var(--space-md);
  }

  .tbox-ahcalc-pricing-card__toggle {
    display: flex;
  }

  .tbox-ahcalc-pricing-card .pricing-breakdown {
    margin-top: var(--space-lg);
    display: none;
  }

  .tbox-ahcalc-pricing-card.is-breakdown-open .pricing-breakdown {
    display: block;
  }

  .tbox-ahcalc-rail {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .tbox-ahcalc-step {
    padding: 0.4rem 0.5rem;
    font-size: var(--fs-sm);
  }

  .tbox-ahcalc-step .num {
    width: 1.35rem;
    height: 1.35rem;
    font-size: var(--fs-xs);
  }

  /* Hide topology diagram — too cramped at mobile widths */
  .tbox-ahcalc-topology-preview {
    display: none;
  }

  /* Preset tabs: horizontal scroll instead of wrapping grid/flex */
  .tbox-ahcalc-presets {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-sm);
  }

  .tbox-ahcalc-presets::-webkit-scrollbar {
    display: none;
  }

  .tbox-ahcalc-preset {
    flex-shrink: 0;
    min-height: 48px;
  }
}


/* ============================================
   Hide legacy j-calculator UI
   ============================================ */
.tbox-ahcalc-jcalc-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Compact Page Header (tbox-hero-v3 variant for calc)
   ============================================ */

/* ============================================
   Preset Enhancements
   ============================================ */
.tbox-ahcalc-preset--recommended {
  position: relative;
  border: 2px solid var(--ahcalc-accent-400);
  background: rgb(34 211 238 / 4%);
}

.tbox-ahcalc-preset--recommended .recommended-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--ahcalc-accent-500);
  color: var(--text-inverse);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
}

.tbox-ahcalc-preset .est-price {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--ahcalc-slate-200);
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--ahcalc-accent-600);
}

/* ============================================
   Help Prompt in Sidebar
   ============================================ */
.tbox-ahcalc-help-prompt {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--surface-glass-08);
  border: 1px solid var(--surface-glass-12);
  border-radius: var(--radius-md);
  text-align: center;
}

.tbox-ahcalc-chat-link {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: rgb(34 211 238 / 20%);
  border: 1px solid rgb(34 211 238 / 30%);
  border-radius: var(--radius-sm);
  color: var(--ahcalc-accent-300);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: all var(--ease-fast);
}

.tbox-ahcalc-chat-link:hover {
  background: rgb(34 211 238 / 30%);
  border-color: rgb(34 211 238 / 50%);
  color: var(--text-inverse);
}

.tbox-ahcalc-comparison-section {
  background: var(--ahcalc-slate-50);
  padding: 4rem var(--space-xl);
}


.tbox-ahcalc-comparison-inner,
.tbox-ahcalc-feature-comparison {
  max-width: 1000px;
  margin: 0 auto;
}


.tbox-ahcalc-feature-comparison {
  margin-top: 4rem;
}


:where(.tbox-ahcalc-comparison-table th) {
  background: var(--ahcalc-slate-800);
  color: var(--text-inverse);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}


:where(.tbox-ahcalc-comparison-table td) {
  font-size: var(--fs-md);
  color: var(--ahcalc-slate-700);
}


.tbox-ahcalc-comparison-table tr.highlight {
  background: rgb(34 211 238 / 6%);
}


.tbox-ahcalc-comparison-table .check {
  color: var(--ahcalc-success-500);
  font-weight: var(--fw-bold);
}


.tbox-ahcalc-comparison-table .price {
  font-family: var(--ahcalc-mono);
  font-weight: var(--fw-semibold);
}



/* ============================================
   How it Works / FAQ Section
   ============================================ */
.tbox-ahcalc-howitworks-section {
  background: var(--ahcalc-slate-50);
  padding: 4rem var(--space-xl);
}

.tbox-ahcalc-tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tbox-ahcalc-tab-buttons {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ahcalc-slate-200);
  margin-bottom: var(--space-2xl);
}

.tbox-ahcalc-tab-buttons button[aria-selected="true"] {
  color: var(--ahcalc-accent-600);
  border-bottom-color: var(--ahcalc-accent-500);
}

.tbox-ahcalc-howitworks-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.tbox-ahcalc-howitworks-item {
  padding: var(--space-xl);
  background: var(--surface-base);
  border: 1px solid var(--ahcalc-slate-200);
  border-radius: var(--radius-12);
}

.tbox-ahcalc-link {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--ahcalc-accent-600);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  text-decoration: none;
}

.tbox-ahcalc-link:hover {
  text-decoration: underline;
}

.tbox-ahcalc-faq-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tbox-ahcalc-faq-item {
  background: var(--surface-base);
  border: 1px solid var(--ahcalc-slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ============================================
   Final CTA Section
   ============================================ */
.tbox-ahcalc-final-cta-section {
  background: var(--ahcalc-hero-grad-start);
  padding: 4rem var(--space-xl);
  text-align: center;
}

.tbox-ahcalc-final-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.tbox-ahcalc-final-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.tbox-ahcalc-btn--final-primary {
  background: var(--tbox-btn-accent-bg);
  color: var(--tbox-btn-accent-text);
  border: 1px solid var(--tbox-btn-accent-border);
  padding: 1rem 2rem;
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--ease-fast);
  box-shadow: none;
}

.tbox-ahcalc-btn--final-primary:hover {
  background: var(--tbox-btn-accent-bg-hover);
  box-shadow: none;
}

.tbox-ahcalc-btn--final-secondary {
  background: transparent;
  color: var(--text-inverse);
  padding: 1rem 1.75rem;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--surface-glass-30);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--ease-fast);
}

.tbox-ahcalc-btn--final-secondary:hover {
  background: var(--surface-glass-10);
  border-color: var(--surface-glass-50);
}

.tbox-ahcalc-final-cta-microcopy {
  font-size: var(--fs-base);
  color: var(--surface-glass-50);
  line-height: var(--lh-normal);
  margin: 0;
}

/* ============================================
   Theme specificity overrides
   The base theme applies #content div/p rules that override component typography.
   Scope fixes to calculator + injected sections only.
   ============================================ */

:root[data-theme="dark"] .tbox-ahcalc-pricing-card {
  background: var(--ahcalc-slate-900);
  border-color: rgb(34 211 238 / 18%);
}

:root:not([data-theme="dark"]) #tbox-app-hosting-configurator .tbox-ahcalc-pricing-card .pricing-breakdown-title {
  color: var(--text-muted);
}

/* Help prompt "Need help sizing?" — glass token above overrides light-mode; restore readable text here */
:root:not([data-theme="dark"]) #tbox-app-hosting-configurator .tbox-ahcalc-help-prompt p {
  color: var(--text-primary);
}

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .tbox-ahcalc-row { border-bottom-color: rgb(255 255 255 / 5%); }

#tbox-app-hosting-configurator .tbox-ahcalc-pricing-card .tbox-ahcalc-row {
  font-size: var(--fs-sm);
}

.tbox-ahcalc-comparison-section .tbox-ahcalc-comparison-footnote {
  color: var(--ahcalc-slate-500);
  line-height: var(--lh-relaxed);
}

.tbox-ahcalc-final-cta-section .tbox-ahcalc-final-cta-microcopy {
  font-size: var(--fs-base);
  color: var(--surface-glass-50);
  line-height: var(--lh-normal);
}

@media (width <= 600px) {
  #tbox-app-hosting-configurator .tbox-ahcalc-step {
    font-size: var(--fs-sm);
  }
}

@media (width <= 960px) {
  .tbox-ahcalc-howitworks-content {
    grid-template-columns: 1fr;
  }
}

@media (width <= 600px) {
  .tbox-ahcalc-comparison-section,
.tbox-ahcalc-howitworks-section,
.tbox-ahcalc-final-cta-section {
    padding: 3rem 1rem;
  }

  .tbox-ahcalc-final-cta-section h2 {
    font-size: var(--fs-heading-md);
  }

  .tbox-ahcalc-final-cta-buttons {
    flex-direction: column;
  }

  .tbox-ahcalc-btn--final-primary,
.tbox-ahcalc-btn--final-secondary {
    width: 100%;
    text-align: center;
  }
}


/* ============================================
   Legacy calculator layout (class-based)
   ============================================ */

/* ============================================
   App Hosting Calc V3 — Topology-first layout
   ============================================ */

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 {
  color: var(--text-primary);
  background: var(--surface-muted);
  border: 1px solid var(--border-light);
}

:root[data-theme="dark"] .tbox-ahcalc-select {
  background-color: var(--surface-glass-08);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border-color: var(--border-mid);
  color: var(--text-primary);
  color-scheme: dark;
}

:root[data-theme="dark"] .tbox-ahcalc-select:focus,
:root[data-theme="dark"] .tbox-ahcalc-select:focus-visible {
  background-color: var(--surface-glass-12);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-select {
  background-color: var(--surface-base);
  border-color: var(--border-light);
  color: var(--text-primary);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-v3-preset-select {
  flex: 0 1 300px;
  min-width: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: var(--space-lg-plus);
  align-items: start;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-topo-panel {
  background: var(--surface-base);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell {
  position: relative;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-preset-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-subtle);
  flex-wrap: nowrap;
}

@media (width <= 600px) {
  #tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell {
    overflow: hidden;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell::before,
#tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell::after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(2.25rem, 12vw, 3.1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xl);
    font-weight: 900;
    color: color-mix(in srgb, var(--brand-primary-text) 72%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease-fast);
    z-index: 2;
  }

  /* Scroll-fade gradients removed (designcheck) — keep arrow characters */
  #tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell::before {
    content: '\2039';
    left: 0;
    padding-left: 0.15rem;
    background: transparent;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell::after {
    content: '\203A';
    right: 0;
    padding-right: 0.15rem;
    background: transparent;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell.tbox-ahcalc-swipe-shell--active.can-scroll-left::before,
#tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell.tbox-ahcalc-swipe-shell--active.can-scroll-right::after {
    opacity: 1;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell.tbox-ahcalc-swipe-shell--active.is-swiped::before,
#tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell.tbox-ahcalc-swipe-shell--active.is-swiped::after {
    opacity: 0 !important;
  }

  /* Narrow viewports: let the Reset/Share action group wrap below the
     label + select instead of horizontally scrolling. */
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-preset-bar {
    flex-wrap: wrap;
  }
}


#tbox-app-hosting-configurator .tbox-ahcalc-v3-preset-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-right: 0;
  flex: 0 0 auto;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-panel-actions {
  display: flex;
  gap: var(--space-2xs);
  flex: 0 0 auto;
  margin-left: auto;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-preset-spacer {
  flex: 1 1 auto;
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.35rem var(--space-sm-plus);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-base);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: border-color var(--ease-fast), color var(--ease-fast), background var(--ease-fast);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-preset:hover {
  border-color: var(--focus-ring-strong);
  color: var(--brand-primary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-preset--active,
#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-preset--recommended.tbox-ahcalc-preset--active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--text-inverse);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-preset--active:hover {
  color: var(--text-inverse);
}

/* Preset pop animation removed (decorative scale transform) */

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-preset--custom {
  background: transparent;
  border-style: dashed;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-diagram {
  position: relative;
  padding: var(--space-md);
  border-right: 1px solid var(--border-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface-subtle);
  min-width: 0;
}

/* Mobile overview + layer rail */
.tbox-ahcalc-v3-mobile-overview,
.tbox-ahcalc-v3-layer-rail,
.tbox-ahcalc-swipe-shell--layers {
  display: none;
}

.tbox-ahcalc-v3-mobile-overview {
  padding: var(--space-md-plus) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-subtle);
}

.tbox-ahcalc-v3-mobile-overview__label {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
}

.tbox-ahcalc-v3-mobile-overview__preset {
  margin-top: var(--space-xs);
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}

.tbox-ahcalc-v3-mobile-overview__stats {
  margin-top: var(--space-md);
}

.tbox-ahcalc-v3-mobile-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-xs) 0;
}

.tbox-ahcalc-v3-mobile-stat + .tbox-ahcalc-v3-mobile-stat {
  border-top: 1px solid var(--border-light);
}

.tbox-ahcalc-v3-mobile-stat__label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.tbox-ahcalc-v3-mobile-stat__value {
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.tbox-ahcalc-v3-layer-rail {
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  flex-wrap: wrap;
  background: var(--surface-base);
  border-bottom: 1px solid var(--border-light);
}

.tbox-ahcalc-v3-layer-rail::-webkit-scrollbar {
  display: none;
}

.tbox-ahcalc-v3-layer-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 96px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--surface-subtle);
  color: var(--text-primary);
  text-align: left;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.tbox-ahcalc-v3-layer-chip:focus-visible {
  outline: var(--focus-outline-width) solid var(--brand-primary);
  outline-offset: var(--focus-outline-offset);
}

.tbox-ahcalc-v3-layer-chip__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
}

.tbox-ahcalc-v3-layer-chip__meta {
  margin-top: 0.18rem;
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  line-height: var(--lh-tight);
}

.tbox-ahcalc-v3-layer-chip.is-selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-bg);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

.tbox-ahcalc-v3-layer-chip.is-enabled .tbox-ahcalc-v3-layer-chip__meta {
  color: var(--brand-primary-text);
}

.tbox-ahcalc-v3-layer-chip.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tbox-ahcalc-v3-layer-chip--required {
  background: color-mix(in srgb, var(--brand-primary-bg) 75%, white);
}

@media (width <= 600px) {
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-diagram {
    display: none;
  }

  .tbox-ahcalc-v3-mobile-overview,
.tbox-ahcalc-v3-layer-rail {
    display: flex;
    grid-column: 1 / -1;
  }

  .tbox-ahcalc-v3-mobile-overview {
    display: block;
  }

  .tbox-ahcalc-swipe-shell--layers {
    display: block;
  }
}


/* Cloudlet note at bottom center of diagram */
.tbox-ahcalc-v3-cloudlet-note {
  margin-top: 0;
  padding-top: var(--space-md-plus);
  font-size: var(--fs-2xs);
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: var(--ls-wide);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-entry {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs-plus);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xs);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-arrow {
  display: flex;
  justify-content: center;
  padding: 0.15rem 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-branch {
  padding: 0.35rem 0 0.1rem;
  width: 100%;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-row {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding-top: 0.2rem;
  flex-wrap: wrap;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  flex: 0 1 auto;
  min-width: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-sub-arrow {
  padding: 0.15rem 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-conn {
  color: var(--border-muted);
  opacity: 0.9;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node {
  width: 100%;
  max-width: 208px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-12);
  background: var(--surface-base);
  padding: 0.5rem 0.9rem 0.75rem var(--space-sm-mid);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast), opacity var(--ease-fast);
  position: relative;
  text-align: left;
  color: var(--text-primary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node[hidden] {
  display: none;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-row .tbox-ahcalc-v3-node {
  max-width: 150px;
  padding: 0.45rem 0.5rem 0.55rem;
  gap: var(--space-2xs);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-row .tbox-ahcalc-v3-node-icon {
  width: 26px;
  height: 26px;
  font-size: var(--fs-lg);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node:hover {
  border-color: var(--focus-ring-strong);
  box-shadow: 0 2px 10px rgb(15 23 42 / 8%);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node.is-selected {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--focus-ring-soft);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node:is(.is-off, .is-disabled) {
  opacity: 1;
  background: var(--surface-subtle);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node.is-off {
  border-style: dashed;
  border-color: var(--border-mid);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node.is-disabled {
  cursor: not-allowed;
  border-color: var(--border-light);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node:focus-visible {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--focus-ring-soft);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: var(--fs-xl);
  background: var(--brand-primary-bg);
  color: var(--brand-primary);
  flex-shrink: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node-text {
  min-width: 0;
  line-height: var(--lh-tight);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node-name {
  display: block;
  font-size: var(--fs-base);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node-sub {
  display: block;
  font-size: var(--fs-base);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node:is(.is-off, .is-disabled) .tbox-ahcalc-v3-node-icon {
  opacity: 0.7;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node:is(.is-off, .is-disabled) .tbox-ahcalc-v3-node-name {
  color: var(--text-secondary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node:is(.is-off, .is-disabled) .tbox-ahcalc-v3-node-sub {
  color: var(--text-secondary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--brand-primary-dark);
  color: var(--text-inverse);
  font-size: var(--fs-2xs);
  line-height: 1;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface-subtle);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node-dismiss {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-cap);
  border: 1px solid var(--border-light);
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: var(--fs-base);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
  transition: opacity var(--ease-fast), transform var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast), background var(--ease-fast);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node.has-dismiss:hover .tbox-ahcalc-v3-node-dismiss,
#tbox-app-hosting-configurator .tbox-ahcalc-v3-node.has-dismiss:focus-visible .tbox-ahcalc-v3-node-dismiss {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node.has-dismiss .tbox-ahcalc-v3-node-dismiss:hover {
  border-color: var(--ahcalc-toast-error-start);
  color: var(--ahcalc-toast-error-end);
  background: rgb(220 38 38 / 16%);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node--sub {
  width: 100%;
  max-width: 184px;
  padding: 0.4rem 0.8rem var(--space-sm-mid) 0.55rem;
  border-width: 1.5px;
  margin-left: 0;
  align-self: center;
}

/* stylelint-disable-next-line no-descending-specificity */
#tbox-app-hosting-configurator .tbox-ahcalc-v3-node--sub .tbox-ahcalc-v3-node-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm-plus);
  font-size: var(--fs-lg);
}

/* stylelint-disable-next-line no-descending-specificity */
#tbox-app-hosting-configurator .tbox-ahcalc-v3-node--sub .tbox-ahcalc-v3-node-name {
  font-size: var(--fs-base);
}

/* stylelint-disable-next-line no-descending-specificity */
#tbox-app-hosting-configurator .tbox-ahcalc-v3-node--sub .tbox-ahcalc-v3-node-sub {
  font-size: var(--fs-base);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-col--db .tbox-ahcalc-v3-sub-arrow {
  align-self: center;
}

/* Ghost container for disabled ProxySQL — centered below the row */
#tbox-app-hosting-configurator .tbox-ahcalc-v3-proxy-ghost {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-sm);
  opacity: 0.3;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-proxy-ghost[hidden] {
  display: none;
}

/* Override sub-node right-alignment when in ghost position */
#tbox-app-hosting-configurator .tbox-ahcalc-v3-proxy-ghost .tbox-ahcalc-v3-node--sub {
  align-self: center;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-proxy-ghost .tbox-ahcalc-v3-sub-arrow {
  align-self: center;
}

@media (hover: none) {
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-node.has-dismiss .tbox-ahcalc-v3-node-dismiss {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
}


#tbox-app-hosting-configurator .tbox-ahcalc-v3-conn--branch {
  width: 100%;
  height: 48px;
  display: block;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector {
  display: flex;
  flex-direction: column;
  background: var(--surface-base);
  min-width: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-head {
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm-mid);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-12);
  display: grid;
  place-items: center;
  /* Opaque blend mirrors alpha tint over surface-base for alpha-naive auditors. */
  background: color-mix(in srgb, var(--surface-base) 86%, var(--brand-primary));
  color: var(--text-primary);
  font-size: var(--fs-2xl);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-titles {
  min-width: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-title {
  font-size: var(--fs-md);
  font-weight: 900;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-subtitle {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.05rem;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-toggle {
  margin-left: auto;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-switch .track {
  width: 40px;
  height: 22px;
  border-radius: var(--radius-cap);
  background: var(--switch-track-bg);
  border: 1px solid var(--switch-track-border);
  position: relative;
  transition: background var(--ease-fast), border-color var(--ease-fast);
  flex-shrink: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-switch .track::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--switch-knob-bg);
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  box-shadow: var(--switch-knob-shadow);
  transition: transform var(--ease-fast);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-switch input:checked + .track {
  background: var(--switch-track-active-bg);
  border-color: var(--switch-track-active-border);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-switch input:checked + .track::after {
  transform: translate(18px, -50%);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-switch input:focus-visible + .track {
  outline: none;
  box-shadow: 0 0 0 3px var(--switch-focus-ring);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-meta {
  padding: var(--space-sm-mid) 1rem 0.2rem;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-resources {
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-xs);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-cloudlets {
  display: none;
}

/* Cloudlet definition lives in the diagram footnote on desktop; the diagram is
   hidden ≤760px, so the inspector carries the definition there instead. */
#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-cloudlet-note {
  display: none;
  margin-top: var(--space-2xs);
  font-size: var(--fs-2xs);
  color: var(--text-secondary);
  letter-spacing: var(--ls-wide);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-body {
  padding: var(--space-md-plus) var(--space-lg) 1rem;
  overflow: auto;
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-resources .tbox-ahcalc-res__ram,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-resources .tbox-ahcalc-res__ram .tbox-ahcalc-res__label {
  color: var(--brand-primary);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-resources .tbox-ahcalc-res__cpu,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-resources .tbox-ahcalc-res__cpu .tbox-ahcalc-res__label {
  color: var(--brand-highlight);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-pane-section + .tbox-ahcalc-v3-pane-section {
  margin-top: var(--space-md-plus);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-pane-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md-plus);
  margin-top: var(--space-md-plus);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-extrabold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xs);
}

:root[data-theme="dark"] .tbox-ahcalc-card,
:root[data-theme="dark"] .tbox-ahcalc-stack-row,
:root[data-theme="dark"] .tbox-ahcalc-stepper {
  background: var(--surface-glass-06);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-stepper {
  background: var(--surface-base);
  border-color: var(--border-light);
  box-shadow: inset 0 1px 0 var(--overlay-03);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-stepper-btn {
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-stepper-btn:hover {
  background: var(--surface-muted);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-stepper-btn:active {
  background: var(--surface-muted);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-stepper:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--focus-ring-soft);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-pane-section .tbox-ahcalc-stepper,
#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .tbox-ahcalc-stepper {
  border: 1px solid var(--border-light);
  background: transparent;
  box-shadow: none;
  border-radius: var(--radius-sm);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .tbox-ahcalc-stepper input,
#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .tbox-ahcalc-input-group .tbox-ahcalc-input {
  font-family: var(--ahcalc-mono);
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-semibold);
  background: var(--surface-white);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-hint {
  margin-top: var(--space-sm-minus);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: var(--lh-snug);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-strip {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-light);
  background: var(--surface-white);
  flex-wrap: wrap;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs-plus) var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .k {
  flex: 0 0 100%;
  font-size: 0.65rem; /* intentional literal */
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .unit {
  color: var(--text-secondary);
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item--traffic {
  flex: 0 0 auto;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item--traffic .tbox-ahcalc-input {
  width: 4.2rem;
  flex: none;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item--traffic .tbox-ahcalc-toggle > button {
  padding-inline: var(--space-sm);
  font-size: var(--fs-xs);
}

/* Compact typography so disk / IP / traffic fit on one row */
#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-strip .tbox-ahcalc-stepper input {
  font-size: var(--fs-xs);
  width: 3rem;
  padding-inline: 0.3rem;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-strip .tbox-ahcalc-stepper-btn {
  font-size: var(--fs-xs);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-strip .tbox-ahcalc-v3-global-item .unit {
  display: none;
}

/* Traffic stepper nested inside the unit-toggle group: the input group is
   the single outer frame, so the inner stepper drops its own chrome. */
#tbox-app-hosting-configurator .tbox-ahcalc-input-group .tbox-ahcalc-stepper {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

@media (width >= 761px) {
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-strip {
    display: block;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-strip .tbox-ahcalc-mobile-advanced__body {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-md) var(--space-xl);
    align-items: start;
  }

  /* Allow disk / IP items to shrink below their intrinsic width so all three fit on one row */
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-strip .tbox-ahcalc-v3-global-item:not(.tbox-ahcalc-v3-global-item--traffic) {
    min-width: 0;
  }
}

@media (width <= 1080px) {
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-grid {
    grid-template-columns: 1fr;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-pricing-sidebar {
    position: static;
    top: auto;
  }
}

@media (width <= 760px) {
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-row {
    flex-direction: column;
    align-items: center;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-col {
    flex: none;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-row .tbox-ahcalc-v3-node {
    max-width: 192px;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-body {
    grid-template-columns: 1fr;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-diagram {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-md);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item,
#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item--traffic {
    display: grid;
    gap: var(--space-xs);
    padding: var(--space-sm-mid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .tbox-ahcalc-stepper,
#tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .tbox-ahcalc-input-group {
    width: 100%;
    grid-column: 1 / -1;
  }

  /* Traffic: stack the unit toggle below a full-width stepper so the
     numeric field gets the same room as the disk / IP steppers. */
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item--traffic .tbox-ahcalc-input-group {
    flex-wrap: wrap;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-input-group .tbox-ahcalc-stepper {
    flex: 1 1 100%;
    width: auto;
    min-width: 0;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item--traffic .tbox-ahcalc-toggle {
    flex: 1 0 100%;
    border-left: 0;
    border-top: 1px solid var(--ahcalc-slate-200);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .tbox-ahcalc-stepper input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .tbox-ahcalc-toggle button {
    padding-inline: var(--space-sm);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item--traffic .tbox-ahcalc-toggle button {
    flex: 1;
  }

  /* GiB unit sits inline beside the stepper via a 2-column grid */
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item {
    grid-template-columns: 1fr auto;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .k {
    grid-column: 1 / -1;
  }

  /* Disk only: stepper in col 1 so GiB sits inline in col 2 */
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item:has(.unit) .tbox-ahcalc-stepper {
    grid-column: 1;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item .unit {
    align-self: center;
  }
}


/* ============================================
   Pricing Sidebar — Light-Mode Card Override
   Match cloud-vps style: blue header, white body, grey footer
   ============================================ */

/* Section 1: Card container — white bg,
dark text,
clean shadow */

/* Section 2: Dark blue header band — continuous via shared solid color */

/* Section 5: Help prompt — grey footer band */
.tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt {
  margin: 1rem calc(-1 * var(--ahcalc-pricing-card-pad))
          calc(-1 * var(--ahcalc-pricing-card-pad));
  padding: var(--space-sm-mid) var(--ahcalc-pricing-card-pad);
  background: var(--surface-muted);
  border: none;
  border-top: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--brand-primary);
}

:where(.tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt__icon svg) {
  width: 18px;
  height: 18px;
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt__content {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-chat-link {
  margin-left: auto;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--brand-primary-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--ease-fast);
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-chat-link:hover {
  text-decoration: underline;
}

.tbox-ahcalc-pricing-card .tbox-ahcalc-chat-link:focus-visible {
  outline: var(--focus-outline-width) solid var(--brand-primary);
  outline-offset: var(--focus-outline-offset);
}

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .pricing-breakdown { border-top-color: rgb(255 255 255 / 10%); }

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .tbox-ahcalc-row .tbox-ahcalc-row__label { color: rgb(255 255 255 / 85%); }

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .tbox-ahcalc-row .tbox-ahcalc-row__label-meta { color: rgb(255 255 255 / 70%); }

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .tbox-ahcalc-row .tbox-ahcalc-row__value { color: var(--text-inverse); }

:root[data-theme="dark"] .tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt {
  background: rgb(255 255 255 / 8%);
  border-top-color: rgb(255 255 255 / 12%);
}

@media (width <= 430px) {
  .tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt {
    flex-wrap: wrap;
  }

  .tbox-ahcalc-pricing-card .tbox-ahcalc-help-prompt__content {
    flex: 1 1 auto;
  }

  .tbox-ahcalc-pricing-card .tbox-ahcalc-chat-link {
    flex-basis: 100%;
    margin-left: calc(18px + var(--space-xs));
  }
}


/* ═══════════════════════════════════════════
   Pricing Reference — Tabbed Card
   ═══════════════════════════════════════════ */
.tbox-ahcalc-pricing-ref {
  padding: var(--space-section-y) 0;
  background: var(--surface-subtle, var(--ahcalc-slate-50));
  border-top: 1px solid var(--border-light, var(--ahcalc-slate-200));
}

.tbox-ahcalc-pricing-ref-header { text-align: center; margin-bottom: var(--space-2xl-plus); }

.tbox-ahcalc-pricing-ref-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-bold);
}

.tbox-ahcalc-pricing-ref-subtitle {
  font-size: var(--fs-base);
  color: var(--text-secondary, var(--ahcalc-slate-600));
  margin-top: 0.3rem;
}

.tbox-ahcalc-pricing-card-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--surface-base, #fff);
  border: 1px solid var(--border-light, var(--ahcalc-slate-200));
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tbox-ahcalc-cl-range-card.tbox-card:hover,
.tbox-ahcalc-resource-card.tbox-card:hover,
.tbox-ahcalc-license-card.tbox-card:hover {
  transform: none;
  box-shadow: none;
}

/* Tabs */
.tbox-ahcalc-pricing-card__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light, var(--ahcalc-slate-200));
  background: var(--surface-subtle, var(--ahcalc-slate-50));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.tbox-ahcalc-pricing-card__tab {
  padding: 0.85rem 1.35rem;
  font-family: var(--ahcalc-font);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-muted, var(--ahcalc-slate-500));
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}

.tbox-ahcalc-pricing-card__tab:hover { color: var(--text-primary, var(--ahcalc-slate-900)); }

.tbox-ahcalc-pricing-card__tab:focus-visible {
  outline: var(--focus-outline-width) solid var(--brand-primary);
  outline-offset: calc(var(--focus-outline-offset) * -1);
}

.tbox-ahcalc-pricing-card__tab--active {
  color: var(--brand-primary-text);
  border-bottom-color: var(--brand-primary);
  background: var(--surface-base, #fff);
}

.tbox-ahcalc-pricing-card__mobile-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1rem 1.25rem;
  background: var(--surface-base, #fff);
  border: none;
  border-top: 1px solid var(--border-light, var(--ahcalc-slate-200));
  color: var(--text-primary, var(--ahcalc-slate-900));
  font-size: var(--fs-sm);
  font-weight: var(--fw-extrabold);
  text-align: left;
  cursor: pointer;
}

.tbox-ahcalc-pricing-card__mobile-toggle::after {
  content: '\2304';
  font-size: var(--fs-base);
  line-height: 1;
  color: var(--text-muted, var(--ahcalc-slate-500));
  transition: transform var(--ease-fast), color var(--ease-fast);
}

.tbox-ahcalc-pricing-card__mobile-toggle:hover,
.tbox-ahcalc-pricing-card__mobile-toggle:focus-visible {
  background: var(--surface-subtle, var(--ahcalc-slate-50));
}

.tbox-ahcalc-pricing-card__mobile-toggle:focus-visible {
  outline: var(--focus-outline-width) solid var(--brand-primary);
  outline-offset: calc(var(--focus-outline-offset) * -1);
}

.tbox-ahcalc-pricing-card__mobile-toggle--active {
  color: var(--brand-primary-text);
  background: var(--brand-primary-10);
}

.tbox-ahcalc-pricing-card__mobile-toggle--active::after {
  transform: rotate(180deg);
  color: var(--brand-primary-text);
}

/* Panels */
.tbox-ahcalc-pricing-card__panel { padding: 1.75rem 2rem; display: none; }

.tbox-ahcalc-pricing-card__panel--active { display: block; }

@media (width <= 600px) {
 .tbox-ahcalc-pricing-card__panel { padding: 1.25rem 1rem; }
}


.tbox-ahcalc-pricing-card__panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-lg-plus);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tbox-ahcalc-pricing-card__panel-title { font-size: var(--fs-xl); font-weight: var(--fw-bold); }

.tbox-ahcalc-pricing-card__panel-note {
  font-size: var(--fs-xs);
  color: var(--text-secondary, var(--ahcalc-slate-600));
  font-variant-numeric: tabular-nums;
}

/* Cloudlet range summary */
.tbox-ahcalc-cl-range-band { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-2xl); }

@media (width <= 600px) {
 .tbox-ahcalc-cl-range-band { grid-template-columns: 1fr; }
}


.tbox-ahcalc-cl-range-card {
  padding: var(--space-lg-plus);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light, var(--ahcalc-slate-200));
}

.tbox-ahcalc-cl-range-card--reserved {
  background: var(--brand-primary-10);
  border-color: var(--brand-primary-bg);
}

.tbox-ahcalc-cl-range-card--scaling {
  background: color-mix(in srgb, var(--brand-highlight) 10%, transparent);
  border-color: color-mix(in srgb, var(--brand-highlight) 20%, transparent);
}

.tbox-ahcalc-cl-range-card__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm-minus);
}

.tbox-ahcalc-cl-range-card--reserved .tbox-ahcalc-cl-range-card__label { color: var(--brand-primary-text); }

.tbox-ahcalc-cl-range-card--scaling .tbox-ahcalc-cl-range-card__label { color: var(--state-warning-text); }

.tbox-ahcalc-cl-range-card__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted, var(--ahcalc-slate-500));
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-sm-mid);
}

.tbox-ahcalc-cl-range-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2xs) 0;
}

.tbox-ahcalc-cl-range-row + .tbox-ahcalc-cl-range-row { border-top: 1px solid var(--border-light, var(--ahcalc-slate-200)); }

.tbox-ahcalc-cl-range-row__label { font-size: var(--fs-xs); color: var(--text-secondary, var(--ahcalc-slate-600)); }

.tbox-ahcalc-cl-range-row__value {
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary, var(--ahcalc-slate-900));
  font-variant-numeric: tabular-nums;
}

/* Volume table */
.tbox-ahcalc-vol-table-wrap { margin-top: var(--space-lg-plus);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; }

.tbox-ahcalc-vol-table-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary, var(--ahcalc-slate-600));
  margin-bottom: var(--space-sm);
}

.tbox-ahcalc-vol-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }

.tbox-ahcalc-vol-table thead th.tbox-ahcalc-vol-table__th--reserved { color: var(--brand-primary-text); }

.tbox-ahcalc-vol-table thead th.tbox-ahcalc-vol-table__th--scaling { color: var(--state-warning-text); }

.tbox-ahcalc-vol-table__group-row th {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: var(--space-2xs);
  text-align: center;
}

.tbox-ahcalc-vol-table__group-row th:first-child { border: 0; }

.tbox-ahcalc-vol-table__avg-month { background: var(--brand-primary-14); }

.tbox-ahcalc-vol-table__avg-month-scaling { background: color-mix(in srgb, var(--brand-highlight) 14%, transparent); }

:root[data-theme="dark"] .tbox-ahcalc-vol-table__avg-month {
  background: var(--brand-primary-10);
}

:root[data-theme="dark"] .tbox-ahcalc-vol-table__avg-month-scaling {
  background: color-mix(in srgb, var(--brand-highlight) 10%, transparent);
}

:root[data-theme="dark"] .tbox-ahcalc-vol-table__th--reserved {
  color: var(--brand-primary);
}

/* Resource cards */
.tbox-standard-features-grid--ahcalc-resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }

@media (width <= 768px) {
 .tbox-standard-features-grid--ahcalc-resources { grid-template-columns: repeat(2, 1fr); }
}

@media (width <= 480px) {
 .tbox-standard-features-grid--ahcalc-resources { grid-template-columns: 1fr; }
}


.tbox-ahcalc-resource-card {
  padding: var(--space-lg-plus);
  border: 1px solid var(--border-light, var(--ahcalc-slate-200));
  border-radius: var(--radius-md);
  background: var(--surface-subtle, var(--ahcalc-slate-50));
}

.tbox-ahcalc-resource-card__title { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: 0.15rem; }

.tbox-ahcalc-resource-card__title a,
.tbox-ahcalc-license-card__name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease-out;
}

.tbox-ahcalc-resource-card__title a:hover,
.tbox-ahcalc-resource-card__title a:focus-visible,
.tbox-ahcalc-license-card__name a:hover,
.tbox-ahcalc-license-card__name a:focus-visible {
  border-bottom-color: currentColor;
}

.tbox-ahcalc-resource-card__included { font-size: var(--fs-xs); color: var(--text-muted, var(--ahcalc-slate-500)); margin-bottom: var(--space-md); }

.tbox-ahcalc-resource-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2xs) 0;
}

.tbox-ahcalc-resource-card__row + .tbox-ahcalc-resource-card__row { border-top: 1px solid var(--border-light, var(--ahcalc-slate-200)); }

.tbox-ahcalc-resource-card__row-label { font-size: var(--fs-xs); color: var(--text-secondary, var(--ahcalc-slate-600)); }

.tbox-ahcalc-resource-card__row-value {
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary, var(--ahcalc-slate-900));
  font-variant-numeric: tabular-nums;
}

/* License cards */
.tbox-standard-features-grid--ahcalc-licenses { display: grid; grid-template-columns: 1fr; gap: var(--space-lg-plus); }

.tbox-ahcalc-license-card {
  padding: var(--space-lg-plus) var(--space-xl);
  border: 1px solid var(--border-light, var(--ahcalc-slate-200));
  border-radius: var(--radius-md);
  background: var(--surface-base, #fff);
}

.tbox-ahcalc-license-card__name { font-size: var(--fs-base); font-weight: var(--fw-bold); margin-bottom: var(--space-md); color: var(--brand-primary-text); }

.tbox-ahcalc-license-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
}

.tbox-ahcalc-license-card__row + .tbox-ahcalc-license-card__row { border-top: 1px solid var(--border-light, var(--ahcalc-slate-200)); }

.tbox-ahcalc-license-card__row-tier { color: var(--text-secondary, var(--ahcalc-slate-600)); }

.tbox-ahcalc-license-card__row-price {
  font-family: var(--ahcalc-mono);
  font-weight: var(--fw-semibold);
  color: var(--text-primary, var(--ahcalc-slate-900));
  font-variant-numeric: tabular-nums;
}

.tbox-ahcalc-license-card__row-price--free { color: var(--ahcalc-toast-success-end); font-family: var(--ahcalc-font); }

.tbox-ahcalc-license-card__row-price-sub {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-normal);
  color: var(--text-secondary);
  text-align: right;
}

.tbox-ahcalc-license-card__note {
  margin: var(--space-md) 0 0;
  padding-left: 1.2em;
  font-size: var(--fs-2xs);
  line-height: var(--lh-normal);
  color: var(--text-secondary, var(--ahcalc-slate-600));
  list-style: disc outside;
}

.tbox-ahcalc-license-card__note li + li {
  margin-top: 0.25rem;
}

/* Reset bento-grid base rules for pricing-ref resource & license cards */
.tbox-standard-features-grid--ahcalc-resources > .tbox-ahcalc-resource-card,
.tbox-standard-features-grid--ahcalc-licenses > .tbox-ahcalc-license-card {
  display: block;
  grid-column: span 1 !important;
  grid-row: auto !important;
  overflow: visible;
}

/* Pricing footer */
.tbox-ahcalc-pricing-card-wrap__footer {
  padding: var(--space-lg) var(--space-2xl);
  border-top: 1px solid var(--border-light, var(--ahcalc-slate-200));
  background: var(--surface-subtle, var(--ahcalc-slate-50));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (width <= 600px) {
 .tbox-ahcalc-pricing-card-wrap__footer { padding: var(--space-md-plus) var(--space-lg); }
}

.tbox-ahcalc-pricing-card-wrap__footer-link { font-size: var(--fs-base); font-weight: var(--fw-semibold); }

@media (width <= 760px) {
  .tbox-ahcalc-pricing-card__tabs {
    display: none;
  }

  .tbox-ahcalc-pricing-card__mobile-toggle {
    display: flex;
  }

  .tbox-ahcalc-pricing-card__mobile-toggle:first-of-type {
    border-top: none;
  }

  .tbox-ahcalc-pricing-card__panel {
    padding: 1.2rem 1rem 1.35rem;
  }

  .tbox-ahcalc-pricing-card__panel-header {
    margin-bottom: var(--space-md-plus);
  }

  .tbox-ahcalc-vol-table-wrap {
    overflow: visible;
  }

  .tbox-ahcalc-vol-table {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .tbox-ahcalc-vol-table thead {
    display: none;
  }

  .tbox-ahcalc-vol-table tbody {
    display: grid;
    gap: var(--space-sm);
  }

  .tbox-ahcalc-vol-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    padding: var(--space-md-plus);
    border: 1px solid var(--border-light, var(--ahcalc-slate-200));
    border-radius: var(--radius-md);
    background: var(--surface-subtle, var(--ahcalc-slate-50));
    box-shadow: var(--shadow-xs);
  }

  .tbox-ahcalc-vol-table td {
    display: grid;
    gap: 0.2rem;
    padding: 0;
    border: none;
    background: transparent;
    font-variant-numeric: tabular-nums;
  }

  .tbox-ahcalc-vol-table td::before {
    content: attr(data-label);
    font-size: 0.65rem; /* micro-UI: intentional literal */
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--text-muted, var(--ahcalc-slate-500));
  }

  .tbox-ahcalc-vol-table td:first-child {
    grid-column: 1 / -1;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light, var(--ahcalc-slate-200));
    font-size: var(--fs-base);
    font-weight: var(--fw-extrabold);
  }
}


/* ═══════════════════════════════════════════
   FAQ Section
   ═══════════════════════════════════════════ */
.tbox-ahcalc-faq {
  padding: 3rem 0;
  background: var(--surface-base, #fff);
  border-top: 1px solid var(--border-light, var(--ahcalc-slate-200));
}

.tbox-ahcalc-faq__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg-plus);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.tbox-ahcalc-faq__title { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }

.tbox-ahcalc-faq__tabs { display: flex; gap: var(--space-2xs); }

.tbox-ahcalc-faq__tab {
  padding: var(--space-2xs) var(--space-md-plus);
  border-radius: var(--radius-sm);
  font-family: var(--ahcalc-font);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  border: 1px solid var(--border-light, var(--ahcalc-slate-200));
  background: var(--surface-base, #fff);
  color: var(--text-secondary, var(--ahcalc-slate-600));
  transition: all var(--ease-fast);
}

.tbox-ahcalc-faq__tab[data-category="all"] {
  min-width: var(--min-touch-target);
}

.tbox-ahcalc-faq__tab:hover { border-color: var(--border-mid, var(--gray-300)); }

.tbox-ahcalc-faq__tab:focus-visible {
  outline: var(--focus-outline-width) solid var(--brand-primary);
  outline-offset: var(--focus-outline-offset);
}

.tbox-ahcalc-faq__tab--active {
  background: var(--brand-primary-dark);
  color: var(--text-inverse);
  border-color: var(--brand-primary-text);
}

.tbox-ahcalc-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (width <= 768px) {
 .tbox-ahcalc-faq__grid { grid-template-columns: 1fr; }
}


.tbox-ahcalc-faq__item {
  display: flex;
  flex-direction: column;
  background: var(--surface-subtle, var(--ahcalc-slate-50));
  border: 1px solid var(--border-light, var(--ahcalc-slate-200));
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  overflow: hidden;
}

.tbox-ahcalc-faq__item:hover { border-color: var(--border-mid, var(--gray-300)); box-shadow: 0 1px 3px var(--overlay-06); }

.tbox-ahcalc-faq__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md-plus) 1.15rem;
}

.tbox-ahcalc-faq__item-q { font-size: var(--fs-base); font-weight: var(--fw-semibold); color: var(--text-primary, var(--ahcalc-slate-900)); line-height: var(--lh-snug); }

.tbox-ahcalc-faq__item-chevron {
  font-size: var(--fs-xs);
  color: var(--text-disabled, var(--gray-400));
  flex-shrink: 0;
  margin-left: var(--space-sm);
  transition: transform var(--ease-base);
}

.tbox-ahcalc-faq__item--open .tbox-ahcalc-faq__item-chevron { transform: rotate(180deg); }

.tbox-ahcalc-faq__item-answer {
  display: none;
  padding: 0 1.15rem 1rem;
  font-size: var(--fs-sm);
  color: var(--text-secondary, var(--ahcalc-slate-600));
  line-height: var(--lh-relaxed);
}

.tbox-ahcalc-faq__item--open .tbox-ahcalc-faq__item-answer { display: block; }

:root[data-theme="dark"] .tbox-ahcalc-shell {
  background: var(--surface-glass-06);
  border-color: var(--border-light);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator {
  color: var(--text-secondary);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-est .k,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-est .subv {
  color: var(--text-muted);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-input-group {
  background: var(--surface-glass-06);
  border-color: var(--border-mid);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-input {
  background: transparent;
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-toggle {
  background: var(--surface-glass-06);
  border-left-color: var(--border-light);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-stepper-btn {
  background: var(--surface-glass-06);
  color: var(--text-primary);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-stepper-btn:hover {
  background: var(--surface-glass-08);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-hint--included {
  background: var(--surface-success-bg);
  border-color: var(--border-light);
  color: var(--text-primary);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-est--typical {
  background: var(--surface-glass-06);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-est--typical .k {
  color: var(--brand-primary);
}

:root[data-theme="dark"] .tbox-ahcalc-comparison-section,
:root[data-theme="dark"] .tbox-ahcalc-howitworks-section {
  background: var(--surface-base);
}


:root[data-theme="dark"] .tbox-ahcalc-comparison-footnote {
  color: var(--text-muted);
}


:root[data-theme="dark"] .tbox-ahcalc-comparison-table {
  background: var(--surface-glass-04);
  box-shadow: var(--shadow-sm);
}


:root[data-theme="dark"] .tbox-ahcalc-comparison-table tr.highlight {
  background: var(--brand-primary-bg);
}



:root[data-theme="dark"] .tbox-ahcalc-howitworks-item,
:root[data-theme="dark"] .tbox-ahcalc-faq__item {
  background: var(--surface-glass-06);
  border-color: var(--border-light);
}

/* App Hosting calc FAQ tab dark overrides */
:root[data-theme="dark"] .tbox-ahcalc-faq__tab {
  background: var(--surface-glass-06);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

:root[data-theme="dark"] .tbox-ahcalc-faq__tab:hover {
  background: var(--surface-glass-08);
  color: var(--text-primary);
}

:root[data-theme="dark"] .tbox-ahcalc-faq__tab--active {
  background: var(--brand-primary-dark);
  color: var(--text-inverse);
  border-color: var(--brand-primary-text);
}

:root[data-theme="dark"] .tbox-ahcalc-tab-buttons {
  border-bottom-color: var(--border-light);
}

:root[data-theme="dark"] .tbox-ahcalc-tab-buttons button[aria-selected="true"] {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

:root[data-theme="dark"] .tbox-ahcalc-link {
  color: var(--brand-primary);
}

/* Range slider tracks (dark) */
:root[data-theme="dark"] .tbox-ahcalc-slider-wrapper .tbox-ahcalc-slider-track {
  background: var(--surface-glass-12);
}

.tbox-ah-pricing-section .tbox-ahcalc-section {
  max-width: min(1200px, 92vw);
}



/* App Hosting calculator polish */
.tbox-ahcalc-hero.tbox-hero-v3--compact {
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2.25rem, 4vw, 3.5rem);
  text-align: left;
}

.tbox-ahcalc-hero .tbox-hero-v3__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(24rem, 0.9fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
  max-width: min(1120px, calc(100vw - 3rem));
}

.tbox-ahcalc-hero__copy {
  min-width: 0;
}

.tbox-ahcalc-hero .tbox-hero-v3__title {
  max-width: 15ch;
}

.tbox-ahcalc-hero .tbox-hero-v3__subtitle {
  max-width: var(--prose-measure-wide);
  margin-inline: 0;
}

.tbox-ahcalc-hero .tbox-hero-v3__cta-row {
  justify-content: flex-start;
  margin-bottom: 0;
  margin-top: var(--space-lg);
}

.tbox-ahcalc-hero .tbox-hero-v3__cta-row .tbox-btn {
  min-height: 3.35rem;
}

.tbox-ahcalc-hero .tbox-hero-v3__prop {
  border-radius: var(--radius-sm-plus);
  background: color-mix(in srgb, var(--text-inverse) 10%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-inverse) 10%, transparent);
}

.tbox-ahcalc-calculator-band {
  background: var(--surface-muted);
  padding-block: clamp(3rem, 5vw, 5rem);
}

.tbox-ahcalc-section {
  max-width: min(1240px, 92vw);
}

.tbox-ahcalc-section__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.tbox-ahcalc-section__desc {
  max-width: 760px;
  margin: var(--space-sm) 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

/* Intro paragraphs share the heading-adjacent measure so a multi-paragraph
   intro wraps at a consistent width. */
.tbox-ahcalc-section__intro .tbox-ahcalc-section__desc {
  max-width: var(--width-desc);
}

.tbox-ahcalc-cost-model {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, var(--border-light) 80%);
  border-radius: var(--radius-md);
  background: var(--brand-primary-border-tint-18);
}

.tbox-ahcalc-cost-model span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 3rem;
  padding: var(--space-sm) var(--space-md);
  background: color-mix(in srgb, var(--surface-base) 90%, var(--brand-primary-bg) 10%);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.tbox-ahcalc-cost-model strong {
  color: var(--brand-primary-text);
  font-family: var(--ahcalc-mono);
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
}


#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 {
  border-radius: var(--radius-md);
  border-color: var(--brand-primary-border-tint-18);
  background: var(--surface-base);
  box-shadow: var(--shadow-technical-panel);
  overflow: clip;
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 .tbox-ahcalc-v3-body {
  gap: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 > h3 {
  padding: clamp(var(--space-md), 2vw, var(--space-lg)) clamp(var(--space-md), 2vw, var(--space-lg)) var(--space-sm);
  color: var(--text-primary);
  font-size: var(--fs-lg);
}

#tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 > p {
  max-width: var(--prose-measure-default);
  padding-inline: var(--space-lg);
  color: var(--text-secondary);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-grid {
  gap: clamp(var(--space-md), 2vw, var(--space-lg));
  padding: 0 clamp(var(--space-md), 2vw, var(--space-lg)) clamp(var(--space-md), 2vw, var(--space-lg));
  min-width: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-topo-panel,
#tbox-app-hosting-configurator .tbox-ahcalc-pricing-card {
  border-color: var(--brand-primary-border-tint-16);
  border-radius: var(--radius-md);
  box-shadow: none;
  min-width: 0;
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-preset-bar {
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface-base) 28%);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-diagram {
  background: var(--surface-muted);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node,
#tbox-app-hosting-configurator .tbox-ahcalc-v3-node--sub {
  border-width: 1px;
  border-radius: var(--radius-sm-plus);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-node.is-selected {
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-head {
  background: var(--surface-base);
  border-bottom: 2px solid var(--brand-primary-border-tint-18);
}

#tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-body {
  padding-bottom: var(--space-lg);
}

.tbox-ahcalc-pricing-ref {
  background: var(--surface-base);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.tbox-ahcalc-pricing-ref-header {
  max-width: 760px;
  margin-inline: auto;
}

.tbox-ahcalc-pricing-ref-details > .tbox-ahcalc-pricing-ref-header:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-border);
  outline-offset: var(--focus-outline-offset);
  border-radius: var(--radius-sm);
}

.tbox-ahcalc-pricing-ref-details > .tbox-ahcalc-pricing-ref-header:focus:not(:focus-visible) {
  outline: none;
}

.tbox-ahcalc-pricing-card-wrap {
  max-width: 1080px;
  margin-inline: auto;
  border-color: var(--brand-primary-border-tint-18);
  box-shadow: var(--shadow-technical-panel);
  overflow: clip;
}

.tbox-ahcalc-pricing-card__tabs {
  background: color-mix(in srgb, var(--surface-muted) 84%, var(--surface-base) 16%);
}

.tbox-ahcalc-pricing-card__tab {
  border-bottom-width: 3px;
  min-height: 3.25rem;
}

.tbox-ahcalc-cl-range-card,
.tbox-ahcalc-resource-card,
.tbox-ahcalc-license-card {
  border-radius: var(--radius-sm-plus);
  background: var(--surface-base);
  box-shadow: none;
}

.tbox-ahcalc-cl-range-card--reserved {
  background: color-mix(in srgb, var(--surface-base) 86%, var(--brand-primary-bg) 14%);
}

.tbox-ahcalc-cl-range-card--scaling {
  background: color-mix(in srgb, var(--surface-base) 88%, var(--brand-cta) 12%);
}

.tbox-ahcalc-cl-range-row,
.tbox-ahcalc-resource-card__row,
.tbox-ahcalc-license-card__row {
  min-height: 2.2rem;
}

.tbox-ahcalc-vol-table-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm-plus);
  background: var(--surface-base);
}

.tbox-ahcalc-vol-table-label {
  margin: 0;
  padding: var(--space-md) var(--space-lg) 0;
}

.tbox-ahcalc-vol-table-note {
  margin: 0;
  max-width: var(--prose-measure-wide);
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-secondary, var(--ahcalc-slate-600));
}

.tbox-ahcalc-vol-table {
  margin-top: var(--space-sm);
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.tbox-ahcalc-vol-table :is(th, td) {
  padding: 0.72rem 1rem;
  border-top: 1px solid var(--border-light);
  line-height: var(--lh-snug);
  vertical-align: middle;
}

.tbox-ahcalc-vol-table thead th {
  color: var(--text-secondary);
  font-weight: var(--fw-semibold);
}

.tbox-ahcalc-vol-table tbody td {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.tbox-ahcalc-vol-table thead tr:nth-child(2) th,
.tbox-ahcalc-vol-table tbody td {
  text-align: right;
}

.tbox-ahcalc-vol-table thead tr:nth-child(2) th:first-child,
.tbox-ahcalc-vol-table tbody td:first-child {
  width: 18%;
  text-align: left;
}

.tbox-ahcalc-vol-table thead tr:nth-child(2) th:nth-child(3),
.tbox-ahcalc-vol-table tbody td:nth-child(3) {
  border-right: 1px solid var(--border-light);
}

.tbox-ahcalc-vol-table tbody tr:hover td {
  background-color: color-mix(in srgb, var(--brand-primary) 4%, var(--surface-base));
}


:root[data-theme="dark"] .tbox-ahcalc-calculator-band,
:root[data-theme="dark"] .tbox-ahcalc-pricing-ref {
  background: var(--surface-subtle);
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-shell--v3,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-v3-topo-panel,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-pricing-card {
  border-color: var(--border-mid);
  box-shadow: none;
}

:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-v3-preset-bar,
:root[data-theme="dark"] #tbox-app-hosting-configurator .tbox-ahcalc-v3-diagram {
  background: var(--surface-subtle);
}

:root[data-theme="dark"] .tbox-ahcalc-cl-range-card,
:root[data-theme="dark"] .tbox-ahcalc-resource-card,
:root[data-theme="dark"] .tbox-ahcalc-license-card {
  background: var(--surface-base);
}

:root[data-theme="dark"] .tbox-ahcalc-cost-model,
:root[data-theme="dark"] .tbox-ahcalc-pricing-card-wrap,
:root[data-theme="dark"] .tbox-ahcalc-vol-table-wrap {
  border-color: var(--border-mid);
}

:root[data-theme="dark"] .tbox-ahcalc-vol-table :is(th, td),
:root[data-theme="dark"] .tbox-ahcalc-vol-table thead tr:nth-child(2) th:nth-child(3),
:root[data-theme="dark"] .tbox-ahcalc-vol-table tbody td:nth-child(3) {
  border-color: var(--border-mid);
}

:root[data-theme="dark"] .tbox-ahcalc-vol-table tbody tr:hover td {
  background-color: var(--surface-subtle);
}

:root[data-theme="dark"] .tbox-ahcalc-cost-model {
  background: var(--border-mid);
}

:root[data-theme="dark"] .tbox-ahcalc-cost-model span {
  background: var(--surface-base);
}

:root[data-theme="dark"] .tbox-ahcalc-cost-model strong {
  color: var(--brand-primary-light);
}

@media (width <= 980px) {
  .tbox-ahcalc-hero.tbox-hero-v3--compact {
    text-align: center;
  }

  .tbox-ahcalc-hero .tbox-hero-v3__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: min(760px, calc(100vw - 2rem));
  }

  .tbox-ahcalc-hero .tbox-hero-v3__subtitle {
    margin-inline: auto;
  }

  .tbox-ahcalc-hero .tbox-hero-v3__cta-row {
    justify-content: center;
  }

  .tbox-ahcalc-section__intro {
    grid-template-columns: 1fr;
  }

  .tbox-ahcalc-cost-model {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width <= 640px) {
  .tbox-ahcalc-calculator-band,
.tbox-ahcalc-pricing-ref {
    padding-block: var(--space-2xl);
  }

  #content .tbox-ahcalc-calculator-band {
    padding-inline: 0;
  }

  .tbox-ahcalc-section {
    width: min(100%, calc(100vw - var(--space-lg)));
    max-width: none;
  }

  .tbox-ahcalc-hero.tbox-hero-v3--compact {
    padding: var(--space-lg-plus) var(--space-md) var(--space-md);
  }

  .tbox-ahcalc-hero .tbox-hero-v3__inner {
    max-width: 100%;
    gap: var(--space-md);
  }

  .tbox-ahcalc-hero .tbox-hero-v3__title {
    max-width: 14ch;
    margin-inline: auto;
  }

  .tbox-ahcalc-hero .tbox-hero-v3__subtitle {
    max-width: var(--prose-measure-wide);
  }

  .tbox-ahcalc-hero .tbox-hero-v3__cta-row {
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }

  .tbox-ahcalc-hero .tbox-hero-v3__cta-row .tbox-btn,
  .tbox-ahcalc-hero .tbox-hero-v3__cta-row .tbox-btn-outline {
    width: 100%;
    max-width: 22.5rem;
    min-height: 3.25rem;
    padding-inline: var(--space-lg);
    text-align: center;
  }

  .tbox-ahcalc-hero .tbox-hero-v3__cta-row .tbox-btn svg {
    flex: 0 0 auto;
  }

  .tbox-ahcalc-section__intro {
    text-align: center;
    margin-bottom: var(--space-lg);
  }

  .tbox-ahcalc-hero .tbox-hero-v3__title,
.tbox-ahcalc-hero .tbox-hero-v3__subtitle,
.tbox-ahcalc-section__desc {
    margin-inline: auto;
  }

  .tbox-ahcalc-cost-model {
    grid-template-columns: 1fr;
  }

  .tbox-ahcalc-cost-model span {
    justify-content: center;
    min-height: 2.75rem;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 > h3 {
    padding-inline: var(--space-md);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 > p,
#tbox-app-hosting-configurator .tbox-ahcalc-v3-grid {
    padding-inline: var(--space-md);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-shell--v3 {
    border-radius: var(--radius-sm-plus);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-grid {
    gap: var(--space-md);
  }
}


/* Calc polish (Track 5) — mobile horizontal-overflow fix.
   The abbr.tbox-glossary::after tooltip uses left:50% + translate(-50%) which can push
   beyond the viewport on narrow screens when the abbr sits near the right edge.
   Within the calculator intro section, right-align the tooltip to its containing abbr
   so it never extends past the viewport boundary (Calc P1 #2). */
.tbox-ahcalc-section__intro abbr.tbox-glossary::after {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}

/* No-JS fallback only */
:root:not(.tbox-glossary-js) .tbox-ahcalc-section__intro abbr.tbox-glossary:hover::after,
:root:not(.tbox-glossary-js) .tbox-ahcalc-section__intro abbr.tbox-glossary:focus-visible::after,
:root:not(.tbox-glossary-js) .tbox-ahcalc-section__intro abbr.tbox-glossary.is-open::after {
  transform: translate(0, 0);
}

.tbox-ahcalc-section__intro abbr.tbox-glossary::before {
  left: auto;
  right: 4px;
}

@media (width <= 760px) {
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-diagram {
    display: none;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector-cloudlet-note {
    display: block;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-preset-select,
  #tbox-app-hosting-configurator .tbox-ahcalc-select--stack {
    min-height: 44px;
  }

  .tbox-ahcalc-help-prompt .tbox-ahcalc-chat-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-layer-rail {
    display: flex;
    grid-column: 1 / -1;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-swipe-shell--layers {
    display: block;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-body {
    gap: var(--space-md);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-layer-rail {
    padding-block: var(--space-sm);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced {
    display: block;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--surface-base);
    overflow: hidden;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced + .tbox-ahcalc-mobile-advanced {
    margin-top: var(--space-sm);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: var(--space-sm-plus) var(--space-md);
    color: var(--text-primary);
    font-weight: var(--fw-bold);
    cursor: pointer;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced summary::after {
    content: "\2304";
    font-size: var(--fs-sm);
    transition: transform var(--ease-fast);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced[open] summary::after {
    transform: rotate(180deg);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced summary:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: -3px;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced__body {
    border-top: 1px solid var(--border-light);
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-v3-inspector,
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item,
  #tbox-app-hosting-configurator .tbox-ahcalc-v3-global-item--traffic {
    border: 0;
    border-radius: 0;
  }
}

@media (width > 760px) {
  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced {
    display: contents;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced summary {
    display: none;
  }

  #tbox-app-hosting-configurator .tbox-ahcalc-mobile-advanced__body {
    display: contents;
  }
}


/* App Hosting calculator sidebar: filled orange-gradient CTA + plain-text help link. */
#content .tbox-ahcalc-cta-btn {
  background: var(--tbox-btn-accent-bg);
  border: 1px solid var(--tbox-btn-accent-border);
  color: var(--tbox-btn-accent-text);
}

#content .tbox-ahcalc-cta-btn:hover,
#content .tbox-ahcalc-cta-btn:focus-visible {
  background: var(--tbox-btn-accent-bg-hover);
  border-color: var(--tbox-btn-accent-border);
}

#content .tbox-ahcalc-pricing-card .tbox-ahcalc-chat-link {
  color: var(--brand-primary-text);
}

.tbox-ahcalc-hero__proof {
  grid-column: 1 / -1;
  align-self: stretch;
  margin-top: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--text-inverse) 20%, transparent);
  border-radius: var(--radius-12);
  background: color-mix(in srgb, var(--surface-dark) 36%, var(--brand-primary) 6%);
  box-shadow: 0 1px 0 var(--surface-glass-14) inset;
  overflow: hidden;
}



.tbox-ahcalc-hero__proof {
  margin-top: 0;
}

.tbox-ahcalc-hero__proof dl {
  display: grid;
  margin: 0;
  padding: 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-snug);
  color: var(--text-inverse);
}


.tbox-ahcalc-hero__proof dl > div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: var(--space-sm) var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--surface-glass-10);
  text-align: left;
}


.tbox-ahcalc-hero__proof dl > div:first-child {
  border-top: 0;
}


.tbox-ahcalc-hero__proof dt {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
}


.tbox-ahcalc-hero__proof dd {
  margin: 0;
  color: var(--text-inverse);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  overflow-wrap: anywhere;
}


@media (width <= 720px) {
  .tbox-ahcalc-hero__proof {
    width: min(100%, 32rem);
    margin-inline: auto;
  }

.tbox-ahcalc-hero__proof dl > div {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
    padding: var(--space-sm) var(--space-md);
    border-left: 0;
    border-top: 1px solid var(--surface-glass-10);
  }



  .tbox-ahcalc-hero__proof dl > div {
    grid-template-columns: minmax(5.25rem, 0.32fr) minmax(0, 1fr);
    gap: var(--space-sm);
    align-items: start;
    padding: var(--space-sm) var(--space-md);
  }

  .tbox-ahcalc-hero__proof dt {
    font-size: var(--fs-2xs);
  }

  .tbox-ahcalc-hero__proof dd {
    font-size: var(--fs-sm);
    line-height: var(--lh-snug);
  }
}

#content .tbox-ah-pricing-section .tbox-ahcalc-section > :is(.tbox-section__heading, .tbox-section__desc) {
  max-width: 58rem;
}



/* Keep the wide 58rem heading, but hold the pricing intro prose to the
   standard section-description measure so it does not run past ~75ch. */
#content .tbox-ah-pricing-section .tbox-ahcalc-section > .tbox-section__desc {
  max-width: var(--width-desc);
}

#content .tbox-ah-pricing-section .tbox-ahcalc-section {
  max-width: min(72rem, calc(100vw - 3rem));
}

#content .tbox-ah-pricing-section #tbox-app-hosting-configurator {
  overflow-x: clip;
}

@media (width <= 760px) {
  #content .tbox-ah-pricing-section .tbox-ahcalc-section {
    max-width: min(100%, calc(100vw - 2rem));
  }
}

.tbox-ahcalc-pricing-ref-title {
  font-size: var(--fs-heading-sm);
  line-height: var(--lh-snug);
  letter-spacing: 0;
}


#content .tbox-ahcalc-v3-node {
  line-height: var(--lh-normal);
}



#content .tbox-ahcalc-vol-table__group-row th {
  text-transform: none;
}