/* Shared Concept A layout for Flesh and Blood booster calculators. */
html.fab-ev.fab-layout-a {
  --fab-gold-bright: #f4d58a;
  --fab-gold: #d8a151;
  --fab-ivory: #fff2d7;
  --fab-line: rgba(216, 161, 81, 0.42);
  --fab-line-strong: rgba(216, 161, 81, 0.72);
  --fab-chart-1: #e0b34e;
  --fab-chart-2: #d95d48;
  --fab-chart-3: #ad6cd4;
  --fab-chart-4: #4a9dca;
  --fab-chart-5: #69ad78;
  --fab-chart-6: #cd7eaa;
  --fab-chart-7: #8591a4;
}

html.fab-ev.fab-layout-a .table-tools .fab-green-switch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 14px;
  border: 1px solid rgba(216, 161, 81, 0.56);
  border-radius: 999px;
  background: linear-gradient(
    145deg,
    rgba(55, 12, 14, 0.98),
    rgba(24, 7, 8, 0.98)
  );
  color: var(--fab-ivory);
  box-shadow:
    0 12px 28px rgba(5, 1, 1, 0.5),
    inset 0 1px 0 rgba(255, 242, 215, 0.05);
}

html.fab-ev.fab-layout-a .table-tools .fab-green-switch::after {
  display: none;
  content: none;
}

html.fab-ev.fab-layout-a .table-tools .fab-green-switch:hover {
  border-color: var(--fab-gold);
  background: linear-gradient(
    145deg,
    rgba(76, 16, 19, 0.98),
    rgba(31, 8, 9, 0.98)
  );
}

html.fab-ev.fab-layout-a .fab-green-switch__label {
  color: var(--fab-ivory);
  font-weight: 700;
  white-space: nowrap;
}

html.fab-ev.fab-layout-a .fab-green-switch__track {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 28px;
  border: 1px solid rgba(255, 242, 215, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, #13090a, #281012);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 242, 215, 0.03);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

html.fab-ev.fab-layout-a .fab-green-switch__thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff8e8, #b8a98d);
  box-shadow:
    0 2px 7px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateY(-50%);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

html.fab-ev.fab-layout-a .fab-green-switch__state {
  min-width: 1.9em;
  color: rgba(255, 242, 215, 0.72);
  font-weight: 700;
  text-align: left;
}

html.fab-ev.fab-layout-a
  .fab-green-switch[aria-checked="true"]
  .fab-green-switch__track {
  border-color: rgba(244, 213, 138, 0.96);
  background: linear-gradient(180deg, #f4d58a 0%, #d8a151 58%, #9b5f20 100%);
  box-shadow:
    0 0 16px rgba(216, 161, 81, 0.28),
    inset 0 1px 0 rgba(255, 248, 225, 0.76),
    inset 0 -2px 0 rgba(66, 31, 7, 0.36);
}

html.fab-ev.fab-layout-a
  .fab-green-switch[aria-checked="true"]
  .fab-green-switch__thumb {
  background: linear-gradient(180deg, #fff8e0, #5b2d12);
  transform: translate(26px, -50%);
}

html.fab-ev.fab-layout-a
  .fab-green-switch[aria-checked="true"]
  .fab-green-switch__state {
  color: var(--fab-gold-bright);
}

html.fab-ev.fab-layout-a body {
  background:
    radial-gradient(
      circle at 14% 1%,
      rgba(143, 23, 27, 0.28),
      transparent 34rem
    ),
    radial-gradient(
      circle at 88% 8%,
      rgba(216, 161, 81, 0.13),
      transparent 30rem
    ),
    linear-gradient(180deg, #080303 0%, #100605 48%, #050202 100%);
}

html.fab-ev.fab-layout-a .wrap {
  max-width: 1280px;
  padding: clamp(20px, 3vw, 34px) clamp(14px, 2.5vw, 26px) 48px;
}

html.fab-ev.fab-layout-a .card {
  border-color: var(--fab-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(216, 161, 81, 0.08), transparent 26rem),
    linear-gradient(145deg, rgba(32, 13, 12, 0.98), rgba(15, 6, 6, 0.98));
  box-shadow:
    0 22px 52px rgba(5, 1, 1, 0.5),
    inset 0 1px 0 rgba(255, 242, 215, 0.04);
}

html.fab-ev.fab-layout-a .card::before {
  inset: -170px 54% 48% -130px;
  background: radial-gradient(
    circle,
    rgba(216, 161, 81, 0.15),
    transparent 72%
  );
}

html.fab-ev.fab-layout-a .card::after {
  border-color: rgba(151, 25, 29, 0.58);
  opacity: 0.52;
}

html.fab-ev.fab-layout-a .fab-section-kicker {
  margin: 0;
  color: var(--fab-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html.fab-ev.fab-layout-a .fab-masthead {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 12px clamp(22px, 3vw, 38px);
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border-color: var(--fab-line-strong);
  background:
    linear-gradient(112deg, rgba(74, 12, 15, 0.62), transparent 42%),
    radial-gradient(
      circle at 82% 16%,
      rgba(216, 161, 81, 0.12),
      transparent 22rem
    ),
    linear-gradient(135deg, rgba(31, 10, 11, 0.99), rgba(8, 4, 5, 0.99));
}

html.fab-ev.fab-layout-a .fab-masthead::before {
  inset: auto -70px -180px 42%;
  width: 520px;
  height: 420px;
  background: repeating-linear-gradient(
    128deg,
    transparent 0 38px,
    rgba(180, 35, 40, 0.12) 39px 54px,
    transparent 55px 78px
  );
  transform: rotate(-7deg);
}

html.fab-ev.fab-layout-a .fab-masthead::after {
  border-color: rgba(216, 161, 81, 0.82);
  opacity: 0.72;
}

html.fab-ev.fab-layout-a .fab-masthead > :not(.fab-hero-summary) {
  grid-column: 1;
}

html.fab-ev.fab-layout-a .fab-masthead > .fab-title-kicker {
  margin: 0 0 -2px;
  color: var(--fab-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

html.fab-ev.fab-layout-a .fab-masthead h1 {
  display: flex;
  max-width: 880px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 10px;
  background: none;
  background-clip: border-box;
  color: var(--fab-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3.35vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-align: left;
  text-transform: none;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  text-wrap: balance;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

html.fab-ev.fab-layout-a .fab-title-set {
  color: var(--fab-ivory);
  -webkit-text-fill-color: currentColor;
}

html.fab-ev.fab-layout-a .fab-title-product {
  color: var(--fab-gold);
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(0.76rem, 0.3vw + 0.7rem, 0.94rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  -webkit-text-fill-color: currentColor;
}

html.fab-ev.fab-layout-a .fab-masthead > p {
  max-width: 76ch;
  margin: 0;
  color: #eadfd8;
  font-size: 0.98rem;
  line-height: 1.55;
}

html.fab-ev.fab-layout-a .fab-masthead > p strong {
  color: #fffaf0;
}

html.fab-ev.fab-layout-a .fab-masthead .sub {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

html.fab-ev.fab-layout-a .fab-masthead .pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0;
  padding: 5px 12px;
  border-color: rgba(216, 161, 81, 0.54);
  background: rgba(12, 6, 6, 0.72);
  color: var(--fab-ivory);
  box-shadow: inset 0 1px 0 rgba(255, 242, 215, 0.08);
}

html.fab-ev.fab-layout-a .fab-masthead .pill:nth-child(n + 3) {
  display: none;
}

html.fab-ev.fab-layout-a .fab-hero-summary {
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: start;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(216, 161, 81, 0.66);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(17, 10, 10, 0.97), rgba(8, 5, 6, 0.98)),
    radial-gradient(circle at 100% 0, rgba(216, 161, 81, 0.12), transparent 40%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    inset 4px 0 0 rgba(151, 25, 29, 0.72);
}

html.fab-ev.fab-layout-a .fab-basis-card {
  display: grid;
  gap: 5px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(216, 161, 81, 0.24);
}

html.fab-ev.fab-layout-a .fab-basis-card strong {
  color: var(--fab-gold-bright);
  font-size: 1.18rem;
}

html.fab-ev.fab-layout-a .fab-basis-card > span:last-child {
  color: #cbbdb5;
  font-size: 0.78rem;
  line-height: 1.4;
}

html.fab-ev.fab-layout-a .fab-quick-summary {
  padding-top: 14px;
}

html.fab-ev.fab-layout-a .fab-quick-summary h2 {
  margin: 0 0 6px;
  color: var(--fab-ivory);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html.fab-ev.fab-layout-a .fab-quick-summary dl {
  display: grid;
  margin: 0;
}

html.fab-ev.fab-layout-a .fab-quick-summary dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

html.fab-ev.fab-layout-a .fab-quick-summary dl div:first-child {
  border-top: 0;
}

html.fab-ev.fab-layout-a .fab-quick-summary dt {
  color: #cbbdb5;
  font-size: 0.86rem;
}

html.fab-ev.fab-layout-a .fab-quick-summary dd {
  margin: 0;
  color: var(--fab-gold-bright);
  font-size: 1rem;
  font-weight: 850;
  text-align: right;
}

html.fab-ev.fab-layout-a .fab-content-snapshot {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border-color: var(--fab-line-strong);
}

html.fab-ev.fab-layout-a .fab-snapshot-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.92fr);
  gap: 20px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(216, 161, 81, 0.32);
}

html.fab-ev.fab-layout-a .fab-snapshot-header h2,
html.fab-ev.fab-layout-a .fab-calculator-heading h2 {
  margin: 3px 0 5px;
  color: var(--fab-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

html.fab-ev.fab-layout-a .fab-snapshot-header p:not(.fab-section-kicker),
html.fab-ev.fab-layout-a .fab-calculator-heading p:not(.fab-section-kicker) {
  max-width: 74ch;
  margin: 0;
  color: #cbbdb5;
}

html.fab-ev.fab-layout-a .fab-snapshot-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 161, 81, 0.32);
  border-radius: 9px;
  background: rgba(8, 4, 4, 0.55);
}

html.fab-ev.fab-layout-a .fab-snapshot-stats div {
  min-width: 0;
  padding: 11px 12px;
  border-left: 1px solid rgba(216, 161, 81, 0.2);
}

html.fab-ev.fab-layout-a .fab-snapshot-stats div:first-child {
  border-left: 0;
}

html.fab-ev.fab-layout-a .fab-snapshot-stats dt {
  color: #bcaea7;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.fab-ev.fab-layout-a .fab-snapshot-stats dd {
  margin: 3px 0 0;
  color: var(--fab-ivory);
  font-size: 0.92rem;
  font-weight: 800;
}

html.fab-ev.fab-layout-a .fab-snapshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 18px;
  align-items: start;
}

html.fab-ev.fab-layout-a .fab-snapshot-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 161, 81, 0.3);
  border-radius: 10px;
  background: rgba(9, 4, 4, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 242, 215, 0.025);
}

html.fab-ev.fab-layout-a .fab-panel-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(216, 161, 81, 0.26);
  background: linear-gradient(90deg, rgba(91, 17, 20, 0.46), transparent 72%);
}

html.fab-ev.fab-layout-a .fab-panel-heading h3 {
  margin: 0;
  color: var(--fab-ivory);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html.fab-ev.fab-layout-a .fab-panel-heading span {
  color: #bcaea7;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

html.fab-ev.fab-layout-a .fab-pack-structure,
html.fab-ev.fab-layout-a .fab-top-contributors {
  margin: 0;
  padding: 0;
  list-style: none;
}

html.fab-ev.fab-layout-a .fab-pack-structure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: rgba(216, 161, 81, 0.18);
}

html.fab-ev.fab-layout-a .fab-pack-structure li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 12px 13px;
  background: linear-gradient(
    145deg,
    rgba(24, 10, 9, 0.98),
    rgba(12, 6, 6, 0.98)
  );
  color: #e9ddd4;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

html.fab-ev.fab-layout-a .fab-panel-note {
  margin: 0;
  padding: 11px 16px 13px;
  border-top: 1px solid rgba(216, 161, 81, 0.2);
  color: #bcaea7;
  font-size: 0.76rem;
}

html.fab-ev.fab-layout-a .fab-top-contributors li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

html.fab-ev.fab-layout-a .fab-top-contributors li:last-child {
  border-bottom: 0;
}

html.fab-ev.fab-layout-a .fab-contributor-rank {
  color: var(--fab-gold);
  font-size: 0.72rem;
  font-weight: 850;
}

html.fab-ev.fab-layout-a .fab-contributor-copy {
  display: grid;
  min-width: 0;
}

html.fab-ev.fab-layout-a .fab-contributor-copy strong {
  overflow: hidden;
  color: #f4e8df;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.fab-ev.fab-layout-a .fab-contributor-copy small {
  overflow: hidden;
  color: #afa19a;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.fab-ev.fab-layout-a .fab-contributor-value {
  color: var(--fab-gold-bright);
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

html.fab-ev.fab-layout-a .fab-empty-state {
  margin: 0;
  padding: 18px !important;
  color: #bcaea7;
  font-size: 0.8rem;
}

html.fab-ev.fab-layout-a .fab-calculator-shell {
  display: block;
  padding: clamp(20px, 3vw, 28px);
  border-color: var(--fab-line-strong);
}

html.fab-ev.fab-layout-a .fab-calculator-shell > .settings {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

html.fab-ev.fab-layout-a
  .fab-calculator-shell
  .settings
  > :is(.section, .fab-advanced-settings) {
  min-width: 0;
  border-color: rgba(216, 161, 81, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(28, 12, 11, 0.96), rgba(14, 7, 7, 0.97)),
    radial-gradient(circle at 0 0, rgba(180, 35, 40, 0.12), transparent 46%);
  box-shadow: inset 0 3px 0 rgba(151, 25, 29, 0.58);
}

html.fab-ev.fab-layout-a .fab-calculator-shell .section h3 {
  color: var(--fab-ivory);
  font-size: 0.9rem;
  letter-spacing: 0.07em;
}

html.fab-ev.fab-layout-a .fab-advanced-settings {
  overflow: hidden;
  border: 1px solid rgba(216, 161, 81, 0.34);
  border-radius: 10px;
}

html.fab-ev.fab-layout-a .fab-advanced-settings > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  gap: 6px 8px;
  align-items: center;
  min-height: 62px;
  padding: 12px 10px;
  cursor: pointer;
  list-style: none;
}

html.fab-ev.fab-layout-a
  .fab-advanced-settings
  > summary::-webkit-details-marker,
html.fab-ev.fab-layout-a .fab-advanced-settings > summary::marker {
  display: none;
}

html.fab-ev.fab-layout-a .fab-advanced-summary-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

html.fab-ev.fab-layout-a .fab-advanced-summary-title > span:first-child {
  color: var(--fab-ivory);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.12;
}

html.fab-ev.fab-layout-a .fab-advanced-summary-title > span:last-child {
  color: #bcaea7;
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.15;
}

html.fab-ev.fab-layout-a .fab-advanced-settings > summary::after {
  content: "\25b8";
  display: grid;
  grid-column: 3;
  grid-row: 1;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(216, 161, 81, 0.54);
  border-radius: 999px;
  background: rgba(9, 4, 4, 0.42);
  color: var(--fab-gold-bright);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 160ms ease;
}

html.fab-ev.fab-layout-a .fab-advanced-settings[open] > summary::after {
  transform: rotate(90deg);
}

html.fab-ev.fab-layout-a .fab-advanced-badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding: 4px 7px;
  border: 1px solid rgba(216, 161, 81, 0.38);
  border-radius: 999px;
  color: var(--fab-gold-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html.fab-ev.fab-layout-a .fab-advanced-settings .section.monte-carlo-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 14px 16px 18px;
  border: 0;
  border-top: 1px solid rgba(216, 161, 81, 0.22);
  border-radius: 0;
  background: rgba(20, 8, 8, 0.62);
  box-shadow: none;
}

html.fab-ev.fab-layout-a
  .fab-advanced-settings
  .section.monte-carlo-section
  h3 {
  display: none;
}

html.fab-ev.fab-layout-a .fab-settings-actions {
  display: flex;
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
}

html.fab-ev.fab-layout-a .fab-primary-action {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  justify-content: center;
  border-color: #f0cb78;
  background: linear-gradient(180deg, #efc96d, #c88c35 58%, #8f571e);
  color: #190c07;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px rgba(255, 245, 210, 0.42);
  box-shadow:
    0 14px 30px rgba(143, 87, 30, 0.32),
    inset 0 1px 0 rgba(255, 248, 222, 0.6);
}

html.fab-ev.fab-layout-a .fab-primary-action:hover,
html.fab-ev.fab-layout-a .fab-primary-action:focus-visible {
  border-color: #fff0bc;
  background: linear-gradient(180deg, #f7d986, #d69b40 58%, #9c6428);
  color: #120704;
}

html.fab-ev.fab-layout-a .fab-calculator-shell > .summary {
  gap: 14px;
  margin-top: 18px;
}

html.fab-ev.fab-layout-a
  .fab-calculator-shell
  > .summary
  > :is(.section, .box) {
  border-color: rgba(216, 161, 81, 0.34);
  border-radius: 10px;
  background: linear-gradient(
    145deg,
    rgba(25, 11, 10, 0.95),
    rgba(12, 6, 6, 0.96)
  );
  box-shadow: none;
}

html.fab-ev.fab-layout-a .fab-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}

html.fab-ev.fab-layout-a .fab-analysis-grid > .sim-chart,
html.fab-ev.fab-layout-a .fab-analysis-grid > .fab-value-breakdown {
  min-width: 0;
  height: 100%;
  margin-top: 0;
  padding: 18px;
  border-color: rgba(216, 161, 81, 0.48);
}

html.fab-ev.fab-layout-a .fab-value-breakdown {
  container: fab-value-breakdown / inline-size;
}

html.fab-ev.fab-layout-a .fab-analysis-grid .sim-chart-wrap {
  height: 270px;
  border-color: rgba(216, 161, 81, 0.32);
  background: linear-gradient(
    150deg,
    rgba(21, 9, 9, 0.96),
    rgba(7, 4, 4, 0.98)
  );
}

html.fab-ev.fab-layout-a .fab-simulation-card {
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  border-color: rgba(216, 161, 81, 0.72);
  background:
    radial-gradient(
      circle at 82% 0,
      rgba(216, 161, 81, 0.1),
      transparent 28rem
    ),
    linear-gradient(145deg, rgba(22, 9, 9, 0.99), rgba(10, 5, 5, 0.99));
}

html.fab-ev.fab-layout-a .fab-chart-heading {
  display: flex;
  gap: 14px 20px;
  align-items: flex-start;
  justify-content: space-between;
}

html.fab-ev.fab-layout-a .fab-chart-heading h3 {
  margin: 2px 0 0;
  color: var(--fab-ivory);
  text-shadow:
    0 1px 0 rgba(116, 45, 17, 0.75),
    0 0 16px rgba(216, 161, 81, 0.16);
}

html.fab-ev.fab-layout-a .fab-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 520px;
  color: #e2d4cc;
  font-size: 0.8rem;
  font-weight: 750;
}

html.fab-ev.fab-layout-a .fab-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(216, 161, 81, 0.42);
  border-radius: 999px;
  background: rgba(13, 6, 6, 0.78);
}

html.fab-ev.fab-layout-a .fab-chart-legend i {
  display: inline-block;
  flex: 0 0 auto;
}

html.fab-ev.fab-layout-a .fab-chart-legend-bars {
  width: 16px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f8e7c0, #6f4d31);
}

html.fab-ev.fab-layout-a .fab-chart-legend-band {
  width: 18px;
  height: 10px;
  border: 1px dashed rgba(216, 161, 81, 0.95);
  border-radius: 3px;
  background: rgba(216, 161, 81, 0.14);
}

html.fab-ev.fab-layout-a .fab-chart-legend-mid {
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: var(--fab-gold-bright);
  box-shadow: 0 0 10px rgba(216, 161, 81, 0.4);
}

html.fab-ev.fab-layout-a
  .fab-analysis-grid
  .fab-simulation-card
  .sim-chart-wrap {
  height: clamp(270px, 32vw, 330px);
  padding: 12px;
  border-color: rgba(216, 161, 81, 0.62);
  background:
    radial-gradient(
      circle at 18% 0,
      rgba(216, 161, 81, 0.07),
      transparent 24rem
    ),
    linear-gradient(180deg, rgba(15, 7, 7, 0.98), rgba(7, 4, 4, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -18px 40px rgba(0, 0, 0, 0.18);
}

html.fab-ev.fab-layout-a .fab-chart-readout {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 161, 81, 0.5);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(25, 11, 10, 0.92), rgba(12, 6, 6, 0.94)),
    radial-gradient(circle at 0 0, rgba(216, 161, 81, 0.08), transparent 26%);
}

html.fab-ev.fab-layout-a .fab-chart-band {
  color: var(--fab-gold-bright);
  font-size: 0.98rem;
  font-weight: 850;
}

html.fab-ev.fab-layout-a .fab-chart-markers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

html.fab-ev.fab-layout-a .fab-chart-markers[hidden] {
  display: none;
}

html.fab-ev.fab-layout-a .fab-chart-markers span {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 161, 81, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(216, 161, 81, 0.1), rgba(216, 161, 81, 0.03)),
    rgba(12, 6, 6, 0.72);
}

html.fab-ev.fab-layout-a .fab-chart-markers b {
  color: #cbbdb5;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

html.fab-ev.fab-layout-a .fab-chart-markers strong {
  color: var(--fab-gold-bright);
  font-size: 0.98rem;
  line-height: 1.15;
}

html.fab-ev.fab-layout-a .fab-chart-readout p {
  margin: 0;
  color: #cbbdb5;
  font-size: 0.82rem;
  line-height: 1.55;
}

html.fab-ev.fab-layout-a .fab-breakdown-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(216, 161, 81, 0.26);
}

html.fab-ev.fab-layout-a .fab-breakdown-heading h3 {
  margin: 2px 0 0;
  color: var(--fab-ivory);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html.fab-ev.fab-layout-a .fab-breakdown-basis {
  padding: 4px 8px;
  border: 1px solid rgba(216, 161, 81, 0.28);
  border-radius: 999px;
  color: #cbbdb5;
  font-size: 0.66rem;
  font-weight: 750;
  white-space: nowrap;
}

html.fab-ev.fab-layout-a .fab-breakdown-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 0 14px;
}

html.fab-ev.fab-layout-a .fab-value-donut {
  --fab-value-segments: conic-gradient(var(--fab-chart-1) 0 100%);
  position: relative;
  display: grid;
  width: 146px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--fab-value-segments);
  box-shadow:
    0 0 0 1px rgba(216, 161, 81, 0.25),
    0 14px 32px rgba(0, 0, 0, 0.35);
}

html.fab-ev.fab-layout-a .fab-value-donut::after {
  content: "";
  position: absolute;
  inset: 25%;
  border: 1px solid rgba(216, 161, 81, 0.26);
  border-radius: 50%;
  background: #100707;
  box-shadow: inset 0 5px 14px rgba(0, 0, 0, 0.45);
}

html.fab-ev.fab-layout-a .fab-donut-center {
  z-index: 1;
  display: grid;
  gap: 1px;
  max-width: 68%;
  text-align: center;
}

html.fab-ev.fab-layout-a .fab-donut-center span {
  color: #bcaea7;
  font-size: 0.62rem;
  text-transform: uppercase;
}

html.fab-ev.fab-layout-a .fab-donut-center strong {
  color: var(--fab-ivory);
  font-size: 0.83rem;
}

html.fab-ev.fab-layout-a .fab-breakdown-legend {
  display: grid;
  gap: 7px;
  min-width: 0;
}

html.fab-ev.fab-layout-a .fab-breakdown-row {
  display: grid;
  grid-template-columns: 9px minmax(72px, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
  min-width: 0;
  color: #e7dbd2;
  font-size: 0.72rem;
}

html.fab-ev.fab-layout-a .fab-breakdown-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

html.fab-ev.fab-layout-a .fab-breakdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.fab-ev.fab-layout-a .fab-breakdown-row strong {
  color: var(--fab-ivory);
  font-size: 0.68rem;
  white-space: nowrap;
}

html.fab-ev.fab-layout-a .fab-breakdown-bar {
  grid-column: 2 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

html.fab-ev.fab-layout-a .fab-breakdown-bar > span {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
}

html.fab-ev.fab-layout-a .fab-breakdown-total {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 161, 81, 0.3);
  color: #cbbdb5;
  font-size: 0.76rem;
}

html.fab-ev.fab-layout-a .fab-breakdown-total strong {
  color: var(--fab-gold-bright);
  font-size: 0.92rem;
}

html.fab-ev.fab-layout-a .main-table {
  overflow: hidden;
  border: 1px solid rgba(216, 161, 81, 0.36);
  border-radius: 10px;
  background: rgba(8, 4, 4, 0.68);
}

html.fab-ev.fab-layout-a .main-table > .table-title {
  padding: 14px 10px 8px;
}

html.fab-ev.fab-layout-a .main-table thead th {
  background: linear-gradient(
    180deg,
    rgba(91, 17, 20, 0.94),
    rgba(43, 8, 10, 0.96)
  );
  color: var(--fab-ivory);
}

html.fab-ev.fab-layout-a .main-table thead .fab-sort-button {
  display: inline-flex;
  width: 100%;
  min-height: 0;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
}

html.fab-ev.fab-layout-a .main-table thead th.center .fab-sort-button {
  justify-content: center;
}

html.fab-ev.fab-layout-a .main-table thead .fab-sort-button::after {
  color: rgba(255, 242, 215, 0.55);
  content: "\2195";
  font-size: 0.8em;
}

html.fab-ev.fab-layout-a
  .main-table
  thead
  th[aria-sort="ascending"]
  .fab-sort-button::after {
  color: var(--fab-gold-bright);
  content: "\2191";
}

html.fab-ev.fab-layout-a
  .main-table
  thead
  th[aria-sort="descending"]
  .fab-sort-button::after {
  color: var(--fab-gold-bright);
  content: "\2193";
}

html.fab-ev.fab-layout-a
  .main-table
  thead
  .fab-sort-button:is(:hover, :focus-visible) {
  background: transparent;
  color: var(--fab-gold-bright);
}

@container fab-value-breakdown (max-width: 350px) {
  html.fab-ev.fab-layout-a .fab-breakdown-layout {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  html.fab-ev.fab-layout-a .fab-value-donut {
    width: 108px;
  }

  html.fab-ev.fab-layout-a .fab-breakdown-row {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 5px 6px;
  }
}

@media (max-width: 1080px) {
  html.fab-ev.fab-layout-a .fab-snapshot-header,
  html.fab-ev.fab-layout-a .fab-analysis-grid {
    grid-template-columns: 1fr;
  }

  html.fab-ev.fab-layout-a .fab-calculator-shell > .settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  html.fab-ev.fab-layout-a .fab-masthead,
  html.fab-ev.fab-layout-a .fab-snapshot-grid {
    grid-template-columns: 1fr;
  }

  html.fab-ev.fab-layout-a .fab-masthead > :not(.fab-hero-summary),
  html.fab-ev.fab-layout-a .fab-hero-summary {
    grid-column: 1;
    grid-row: auto;
  }

  html.fab-ev.fab-layout-a .fab-hero-summary {
    max-width: 560px;
  }

  html.fab-ev.fab-layout-a .fab-chart-heading {
    display: grid;
  }

  html.fab-ev.fab-layout-a .fab-chart-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  html.fab-ev.fab-layout-a .fab-calculator-shell > .settings {
    grid-template-columns: 1fr;
  }

  html.fab-ev.fab-layout-a .fab-masthead {
    padding: 22px 18px;
  }

  html.fab-ev.fab-layout-a .fab-masthead h1 {
    gap: 5px;
    font-size: clamp(1.95rem, 9vw, 2.65rem);
  }

  html.fab-ev.fab-layout-a .fab-masthead > .fab-title-kicker {
    font-size: 0.66rem;
  }

  html.fab-ev.fab-layout-a .fab-title-product {
    font-size: 0.7rem;
    letter-spacing: 0.13em;
  }

  html.fab-ev.fab-layout-a .fab-snapshot-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.fab-ev.fab-layout-a .fab-snapshot-stats div:nth-child(3) {
    border-left: 0;
  }

  html.fab-ev.fab-layout-a .fab-snapshot-stats div:nth-child(n + 3) {
    border-top: 1px solid rgba(216, 161, 81, 0.2);
  }

  html.fab-ev.fab-layout-a .fab-advanced-settings .section.monte-carlo-section {
    display: grid;
    grid-template-columns: 1fr;
  }

  html.fab-ev.fab-layout-a .fab-settings-actions,
  html.fab-ev.fab-layout-a .fab-primary-action {
    width: 100%;
  }

  html.fab-ev.fab-layout-a .fab-breakdown-layout {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  html.fab-ev.fab-layout-a .fab-value-donut {
    width: 132px;
  }
}

@media (max-width: 520px) {
  html.fab-ev.fab-layout-a .fab-content-snapshot,
  html.fab-ev.fab-layout-a .fab-calculator-shell {
    padding: 17px 14px;
  }

  html.fab-ev.fab-layout-a .fab-panel-heading,
  html.fab-ev.fab-layout-a .fab-breakdown-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  html.fab-ev.fab-layout-a .fab-panel-heading span,
  html.fab-ev.fab-layout-a .fab-breakdown-basis {
    white-space: normal;
  }

  html.fab-ev.fab-layout-a .fab-breakdown-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  html.fab-ev.fab-layout-a .fab-breakdown-legend {
    width: 100%;
  }

  html.fab-ev.fab-layout-a .fab-chart-legend {
    gap: 6px;
  }

  html.fab-ev.fab-layout-a .fab-chart-legend span {
    min-height: 34px;
    padding: 5px 8px;
  }

  html.fab-ev.fab-layout-a .fab-chart-readout {
    padding: 11px;
  }
}

/* Hide the detailed snapshot only in portrait mobile layouts. */
@media (max-width: 799px) and (orientation: portrait) {
  html.fab-ev.fab-layout-a .fab-content-snapshot {
    display: none;
  }
}
