.retire-tool-wrapper {
  width: 100%;
}

.retire-rec-tool,
.retire-rec-tool * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.retire-rec-tool {
  --retire-ink: #2b2119;
  --retire-muted: #6f6254;
  --retire-line: #6b5745;
  --retire-line-soft: #b9a58f;
  --retire-paper: #fbf4e7;
  --retire-paper-2: #f4e7d4;
  --retire-paper-3: #efe0c7;
  --retire-cta: #f2e3d3;
  --retire-cta-strong: #ead197;
  --retire-result: #e2edcf;
  --retire-danger: #9b3b2f;
  --retire-success: #526c3d;
  width: min(100%, 890px);
  margin: 18px auto 22px;
  color: var(--retire-ink);
  background:
    linear-gradient(rgba(107, 87, 69, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, 0.05) 1px, transparent 1px),
    var(--retire-paper);
  background-size: 18px 18px, 18px 18px, auto;
  border: 2px solid var(--retire-line);
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(73, 56, 42, 0.24);
  overflow: hidden;
  font-family: inherit;
}

.retire-rec-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px 18px 14px;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 255, 255, 0.66), transparent 28%),
    linear-gradient(135deg, #fff8ed 0%, #f3e3ca 100%);
}

.retire-rec-title-copy {
  min-width: 0;
}

.retire-rec-kicker,
.retire-rec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--retire-line);
  background: #fff7e9;
  color: var(--retire-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.retire-rec-title h2 {
  margin: 5px 0 4px;
  color: var(--retire-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.06;
}

.retire-rec-title p {
  max-width: 720px;
  margin: 0;
  color: var(--retire-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.retire-rec-badge {
  min-width: 78px;
  height: 36px;
  background: #e9d39b;
  color: #3d3026;
}

.retire-rec-body {
  border-top: 2px solid var(--retire-line);
  padding: 12px;
}

.retire-rec-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 12px;
  align-items: start;
}

.retire-rec-panel {
  min-width: 0;
  background: rgba(255, 248, 235, 0.93);
  border: 2px solid var(--retire-line);
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(73, 56, 42, 0.16);
}

.retire-rec-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--retire-line);
  background: #efdfc4;
}

.retire-rec-panel-head h3 {
  margin: 0;
  color: var(--retire-ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.retire-rec-panel-head p {
  margin: 0;
  color: var(--retire-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
}

.retire-rec-panel-body {
  padding: 12px;
}

.retire-rec-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.retire-rec-field-grid--dates {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.retire-rec-field--full {
  grid-column: 1 / -1;
}

.retire-rec-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.retire-rec-field span {
  color: var(--retire-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.retire-rec-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 6px 8px;
  color: var(--retire-ink);
  background: #fffaf1;
  border: 1px solid var(--retire-line-soft);
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(73, 56, 42, 0.08);
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.retire-rec-input--number {
  text-align: right;
}

.retire-rec-input--range {
  min-width: 190px;
  text-align: center;
}

.retire-rec-input[readonly] {
  background: #f5ead6;
  color: #4a3a2d;
}

.retire-rec-input:focus {
  border-color: var(--retire-line);
  outline: 2px solid rgba(234, 209, 151, 0.58);
  outline-offset: 1px;
}

.retire-rec-period {
  display: grid;
  gap: 7px;
  margin: 11px 0;
  padding: 9px;
  background: #fff7e9;
  border: 1px dashed var(--retire-line);
}

.retire-rec-period-summary {
  color: var(--retire-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.retire-rec-period-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.retire-rec-period-list span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 5px 6px;
  color: var(--retire-muted);
  background: #f6ead8;
  border: 1px solid rgba(107, 87, 69, 0.24);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.retire-rec-period-list b {
  color: var(--retire-ink);
  white-space: nowrap;
}

.retire-rec-actions {
  display: grid;
  gap: 8px;
}

.retire-rec-actions--quick,
.retire-rec-actions--result {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.retire-rec-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--retire-ink);
  background: #fff5e4;
  border: 2px solid var(--retire-line);
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(73, 56, 42, 0.18);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.retire-rec-button:hover,
.retire-rec-button:focus-visible {
  background: var(--retire-cta);
  transform: translate(-1px, -1px);
}

.retire-rec-button:focus-visible {
  outline: 2px solid rgba(43, 33, 25, 0.45);
  outline-offset: 2px;
}

.retire-rec-button--primary {
  margin-top: 11px;
  background: var(--retire-cta);
  border-color: var(--retire-line);
  min-height: 40px;
  font-size: 14px;
}

.retire-rec-field-grid--money {
  margin-top: 11px;
}

.retire-rec-result-body {
  display: grid;
  gap: 10px;
}

.retire-rec-result-hero {
  display: grid;
  gap: 5px;
  min-height: 106px;
  padding: 14px 12px;
  text-align: center;
  background: var(--retire-result);
  border: 2px solid var(--retire-line);
}

.retire-rec-result-hero span {
  color: #53653e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.retire-rec-result-hero strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: #233018;
  font-size: clamp(29px, 3.6vw, 42px);
  font-weight: 950;
  line-height: 1;
  word-break: break-word;
}

.retire-rec-result-hero em {
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.retire-rec-metrics,
.retire-rec-detail-grid {
  display: grid;
  gap: 7px;
}

.retire-rec-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.retire-rec-metrics div,
.retire-rec-detail-grid div {
  min-width: 0;
  padding: 8px;
  background: #fff8eb;
  border: 1px solid rgba(107, 87, 69, 0.34);
}

.retire-rec-metrics span,
.retire-rec-detail-grid span {
  display: block;
  color: var(--retire-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.retire-rec-metrics strong,
.retire-rec-detail-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--retire-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.retire-rec-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.retire-rec-detail-grid__wide {
  grid-column: 1 / -1;
}

.retire-rec-detail {
  min-height: 70px;
}

.retire-rec-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 70px;
  padding: 10px;
  background: #fff8eb;
  border: 1px dashed var(--retire-line);
}

.retire-rec-message strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 8px;
  color: var(--retire-ink);
  background: #ead197;
  border: 1px solid var(--retire-line);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.retire-rec-message span {
  min-width: 0;
  color: var(--retire-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.retire-rec-message--error strong {
  background: #f1d2ca;
  color: var(--retire-danger);
}

.retire-rec-message--success strong {
  background: #dfe8c9;
  color: var(--retire-success);
}

.retire-rec-panel--wage {
  margin-top: 12px;
}

.retire-rec-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.retire-rec-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff8eb;
}

.retire-rec-table th,
.retire-rec-table td {
  padding: 6px;
  border: 1px solid rgba(107, 87, 69, 0.42);
  color: var(--retire-ink);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  vertical-align: middle;
}

.retire-rec-table thead th,
.retire-rec-summary-row th {
  background: #eadcc5;
  font-weight: 900;
}

.retire-rec-table .retire-rec-input {
  height: 32px;
  padding: 4px 6px;
  font-size: 13px;
}

.retire-rec-summary-row input {
  font-weight: 900;
}

.retire-rec-basis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.retire-rec-basis div {
  min-width: 0;
  padding: 9px;
  background: #f4e7d4;
  border: 2px solid var(--retire-line);
}

.retire-rec-basis strong,
.retire-rec-basis span {
  display: block;
}

.retire-rec-basis strong {
  margin-bottom: 4px;
  color: var(--retire-ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.retire-rec-basis span {
  color: var(--retire-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

body.dark-mode .retire-rec-tool,
.dark-mode .retire-rec-tool,
[data-theme="dark"] .retire-rec-tool {
  --retire-ink: #f6ead8;
  --retire-muted: #d4c1aa;
  --retire-line: #d6b98f;
  --retire-line-soft: #8f765d;
  --retire-paper: #241b16;
  --retire-paper-2: #31251d;
  --retire-paper-3: #3b2d23;
  --retire-cta: #614a32;
  --retire-cta-strong: #80623e;
  --retire-result: #334329;
  background:
    linear-gradient(rgba(214, 185, 143, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 185, 143, 0.08) 1px, transparent 1px),
    var(--retire-paper);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34);
}

body.dark-mode .retire-rec-title,
.dark-mode .retire-rec-title,
[data-theme="dark"] .retire-rec-title {
  background: linear-gradient(135deg, #30241c 0%, #413022 100%);
}

body.dark-mode .retire-rec-kicker,
body.dark-mode .retire-rec-badge,
body.dark-mode .retire-rec-input,
body.dark-mode .retire-rec-period,
body.dark-mode .retire-rec-period-list span,
body.dark-mode .retire-rec-button,
body.dark-mode .retire-rec-panel,
body.dark-mode .retire-rec-panel-head,
body.dark-mode .retire-rec-metrics div,
body.dark-mode .retire-rec-detail-grid div,
body.dark-mode .retire-rec-message,
body.dark-mode .retire-rec-table,
body.dark-mode .retire-rec-table thead th,
body.dark-mode .retire-rec-summary-row th,
body.dark-mode .retire-rec-basis div,
.dark-mode .retire-rec-kicker,
.dark-mode .retire-rec-badge,
.dark-mode .retire-rec-input,
.dark-mode .retire-rec-period,
.dark-mode .retire-rec-period-list span,
.dark-mode .retire-rec-button,
.dark-mode .retire-rec-panel,
.dark-mode .retire-rec-panel-head,
.dark-mode .retire-rec-metrics div,
.dark-mode .retire-rec-detail-grid div,
.dark-mode .retire-rec-message,
.dark-mode .retire-rec-table,
.dark-mode .retire-rec-table thead th,
.dark-mode .retire-rec-summary-row th,
.dark-mode .retire-rec-basis div {
  color: var(--retire-ink);
  background-color: var(--retire-paper-2);
}

body.dark-mode .retire-rec-input[readonly],
.dark-mode .retire-rec-input[readonly],
[data-theme="dark"] .retire-rec-input[readonly] {
  background: #382a20;
}

body.dark-mode .retire-rec-result-hero,
.dark-mode .retire-rec-result-hero,
[data-theme="dark"] .retire-rec-result-hero {
  background: var(--retire-result);
}

body.dark-mode .retire-rec-result-hero strong,
body.dark-mode .retire-rec-result-hero span,
.dark-mode .retire-rec-result-hero strong,
.dark-mode .retire-rec-result-hero span,
[data-theme="dark"] .retire-rec-result-hero strong,
[data-theme="dark"] .retire-rec-result-hero span {
  color: var(--retire-ink);
}

@media (prefers-color-scheme: dark) {
  body:not(.light-mode) .retire-rec-tool {
    --retire-ink: #f6ead8;
    --retire-muted: #d4c1aa;
    --retire-line: #d6b98f;
    --retire-line-soft: #8f765d;
    --retire-paper: #241b16;
    --retire-paper-2: #31251d;
    --retire-paper-3: #3b2d23;
    --retire-cta: #614a32;
    --retire-result: #334329;
  }
}

@media (max-width: 920px) {
  .retire-rec-tool {
    width: min(100%, 760px);
  }

  .retire-rec-main,
  .retire-rec-basis {
    grid-template-columns: 1fr;
  }

  .retire-rec-field-grid--dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .retire-rec-tool {
    width: calc(100% - 14px);
    margin: 10px auto 16px;
    box-shadow: 3px 3px 0 rgba(73, 56, 42, 0.18);
  }

  .retire-rec-title {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding: 13px 12px 12px;
  }

  .retire-rec-title h2 {
    font-size: 26px;
  }

  .retire-rec-title p {
    font-size: 13px;
  }

  .retire-rec-badge {
    justify-self: start;
    width: auto;
    min-width: 0;
    height: 30px;
  }

  .retire-rec-body {
    padding: 9px;
  }

  .retire-rec-main {
    gap: 9px;
  }

  .retire-rec-panel-body,
  .retire-rec-panel-head {
    padding: 9px;
  }

  .retire-rec-panel-head {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .retire-rec-panel-head p {
    text-align: left;
  }

  .retire-rec-field-grid,
  .retire-rec-field-grid--dates,
  .retire-rec-period-list,
  .retire-rec-metrics,
  .retire-rec-detail-grid {
    grid-template-columns: 1fr;
  }

  .retire-rec-actions--quick,
  .retire-rec-actions--result {
    grid-template-columns: 1fr;
  }

  .retire-rec-button,
  .retire-rec-input {
    min-height: 38px;
  }

  .retire-rec-table {
    min-width: 620px;
  }

  .retire-rec-result-hero {
    min-height: 94px;
  }

  .retire-rec-result-hero strong {
    font-size: 32px;
  }
}


/* 2026-06-17: Apply retire tool dark mode to the site's real scheme states. */
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-tool,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-tool {
  --retire-ink: #f7ebd8;
  --retire-muted: #e2cdb3;
  --retire-line: #d2a866;
  --retire-line-soft: rgba(210, 168, 102, 0.66);
  --retire-paper: #241c15;
  --retire-paper-2: #2b2119;
  --retire-paper-3: #33271d;
  --retire-cta: #d2aa55;
  --retire-cta-strong: #f0cf77;
  --retire-result: #344a32;
  --retire-danger: #f0b5a8;
  --retire-success: #cfe7b7;
  color: var(--retire-ink) !important;
  background:
    linear-gradient(rgba(210, 168, 102, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 168, 102, 0.07) 1px, transparent 1px),
    var(--retire-paper) !important;
  background-size: 18px 18px, 18px 18px, auto !important;
  border-color: var(--retire-line) !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.38) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-tool *,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-tool * {
  -webkit-text-fill-color: currentColor;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-title,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-title {
  color: var(--retire-ink) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(210, 168, 102, 0.16), transparent 30%),
    linear-gradient(135deg, #2b2119 0%, #3a2a1f 100%) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-body,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-body {
  border-top-color: var(--retire-line) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-title h2,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-period-summary,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-period-list b,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-panel-head h3,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-metrics strong,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-detail-grid strong,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-basis strong,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-table th,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-table td,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-title h2,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-period-summary,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-period-list b,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-panel-head h3,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-metrics strong,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-detail-grid strong,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-basis strong,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-table th,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-table td {
  color: var(--retire-ink) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-title p,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-field span,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-period-list span,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-panel-head p,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-metrics span,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-detail-grid span,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-basis span,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-message span,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-title p,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-field span,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-period-list span,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-panel-head p,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-metrics span,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-detail-grid span,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-basis span,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-message span {
  color: var(--retire-muted) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-kicker,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-badge,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-kicker,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-badge {
  color: #f7ebd8 !important;
  background: #33271d !important;
  border-color: rgba(210, 168, 102, 0.82) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-panel,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-period,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-message,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-table,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-panel,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-period,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-message,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-table {
  color: var(--retire-ink) !important;
  background: var(--retire-paper-2) !important;
  border-color: var(--retire-line) !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.26) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-panel-head,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-period-list span,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-metrics div,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-detail-grid div,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-basis div,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-table thead th,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-summary-row th,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-panel-head,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-period-list span,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-metrics div,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-detail-grid div,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-basis div,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-table thead th,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-summary-row th {
  color: var(--retire-ink) !important;
  background: var(--retire-paper-3) !important;
  border-color: rgba(210, 168, 102, 0.58) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-input,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-input {
  color: var(--retire-ink) !important;
  -webkit-text-fill-color: var(--retire-ink) !important;
  caret-color: var(--retire-cta-strong) !important;
  background: #201811 !important;
  border-color: var(--retire-line-soft) !important;
  font-weight: 950 !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-input[readonly],
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-input[readonly] {
  background: #2b2119 !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-input::placeholder,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-input::placeholder {
  color: rgba(247, 235, 216, 0.62) !important;
  -webkit-text-fill-color: rgba(247, 235, 216, 0.62) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-button,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-button {
  color: #241c15 !important;
  -webkit-text-fill-color: #241c15 !important;
  background: var(--retire-cta) !important;
  border-color: var(--retire-line) !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-button:hover,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-button:focus-visible,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-button:hover,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-button:focus-visible {
  color: #201811 !important;
  -webkit-text-fill-color: #201811 !important;
  background: var(--retire-cta-strong) !important;
  outline-color: rgba(240, 207, 119, 0.54) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-result-hero,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-result-hero {
  color: #f7ebd8 !important;
  background: var(--retire-result) !important;
  border-color: var(--retire-line) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-result-hero span,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-result-hero strong,
body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-result-hero em,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-result-hero span,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-result-hero strong,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-result-hero em {
  color: #f7ebd8 !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-message strong,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-message strong {
  color: #241c15 !important;
  -webkit-text-fill-color: #241c15 !important;
  background: var(--retire-cta-strong) !important;
  border-color: var(--retire-line) !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-message--error strong,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-message--error strong {
  color: #241c15 !important;
  -webkit-text-fill-color: #241c15 !important;
  background: #f0b5a8 !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-message--success strong,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-message--success strong {
  color: #201811 !important;
  -webkit-text-fill-color: #201811 !important;
  background: #cfe7b7 !important;
}

body:is([data-scheme="dark"], [data-scheme="inverse"]) .retire-rec-table td,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body .retire-rec-table td {
  background: #2b2119 !important;
  border-color: rgba(210, 168, 102, 0.5) !important;
}

@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .retire-rec-tool {
    --retire-ink: #f7ebd8;
    --retire-muted: #e2cdb3;
    --retire-line: #d2a866;
    --retire-line-soft: rgba(210, 168, 102, 0.66);
    --retire-paper: #241c15;
    --retire-paper-2: #2b2119;
    --retire-paper-3: #33271d;
    --retire-cta: #d2aa55;
    --retire-cta-strong: #f0cf77;
    --retire-result: #344a32;
    color: var(--retire-ink) !important;
    background:
      linear-gradient(rgba(210, 168, 102, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(210, 168, 102, 0.07) 1px, transparent 1px),
      var(--retire-paper) !important;
    border-color: var(--retire-line) !important;
  }
}

@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .retire-rec-title {
    color: var(--retire-ink) !important;
    background:
      radial-gradient(circle at 8% 0%, rgba(210, 168, 102, 0.16), transparent 30%),
      linear-gradient(135deg, #2b2119 0%, #3a2a1f 100%) !important;
  }

  body[data-scheme="auto"] .retire-rec-tool * {
    -webkit-text-fill-color: currentColor;
  }

  body[data-scheme="auto"] .retire-rec-body {
    border-top-color: var(--retire-line) !important;
  }

  body[data-scheme="auto"] .retire-rec-title h2,
  body[data-scheme="auto"] .retire-rec-period-summary,
  body[data-scheme="auto"] .retire-rec-period-list b,
  body[data-scheme="auto"] .retire-rec-panel-head h3,
  body[data-scheme="auto"] .retire-rec-metrics strong,
  body[data-scheme="auto"] .retire-rec-detail-grid strong,
  body[data-scheme="auto"] .retire-rec-basis strong,
  body[data-scheme="auto"] .retire-rec-table th,
  body[data-scheme="auto"] .retire-rec-table td {
    color: var(--retire-ink) !important;
  }

  body[data-scheme="auto"] .retire-rec-title p,
  body[data-scheme="auto"] .retire-rec-field span,
  body[data-scheme="auto"] .retire-rec-period-list span,
  body[data-scheme="auto"] .retire-rec-panel-head p,
  body[data-scheme="auto"] .retire-rec-metrics span,
  body[data-scheme="auto"] .retire-rec-detail-grid span,
  body[data-scheme="auto"] .retire-rec-basis span,
  body[data-scheme="auto"] .retire-rec-message span {
    color: var(--retire-muted) !important;
  }

  body[data-scheme="auto"] .retire-rec-kicker,
  body[data-scheme="auto"] .retire-rec-badge {
    color: #f7ebd8 !important;
    background: #33271d !important;
    border-color: rgba(210, 168, 102, 0.82) !important;
  }

  body[data-scheme="auto"] .retire-rec-panel,
  body[data-scheme="auto"] .retire-rec-period,
  body[data-scheme="auto"] .retire-rec-message,
  body[data-scheme="auto"] .retire-rec-table {
    color: var(--retire-ink) !important;
    background: var(--retire-paper-2) !important;
    border-color: var(--retire-line) !important;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.26) !important;
  }

  body[data-scheme="auto"] .retire-rec-panel-head,
  body[data-scheme="auto"] .retire-rec-period-list span,
  body[data-scheme="auto"] .retire-rec-metrics div,
  body[data-scheme="auto"] .retire-rec-detail-grid div,
  body[data-scheme="auto"] .retire-rec-basis div,
  body[data-scheme="auto"] .retire-rec-table thead th,
  body[data-scheme="auto"] .retire-rec-summary-row th {
    color: var(--retire-ink) !important;
    background: var(--retire-paper-3) !important;
    border-color: rgba(210, 168, 102, 0.58) !important;
  }

  body[data-scheme="auto"] .retire-rec-input {
    color: var(--retire-ink) !important;
    -webkit-text-fill-color: var(--retire-ink) !important;
    caret-color: var(--retire-cta-strong) !important;
    background: #201811 !important;
    border-color: var(--retire-line-soft) !important;
    font-weight: 950 !important;
  }

  body[data-scheme="auto"] .retire-rec-input[readonly] {
    background: #2b2119 !important;
  }

  body[data-scheme="auto"] .retire-rec-input::placeholder {
    color: rgba(247, 235, 216, 0.62) !important;
    -webkit-text-fill-color: rgba(247, 235, 216, 0.62) !important;
  }

  body[data-scheme="auto"] .retire-rec-button {
    color: #241c15 !important;
    -webkit-text-fill-color: #241c15 !important;
    background: var(--retire-cta) !important;
    border-color: var(--retire-line) !important;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28) !important;
  }

  body[data-scheme="auto"] .retire-rec-button:hover,
  body[data-scheme="auto"] .retire-rec-button:focus-visible {
    color: #201811 !important;
    -webkit-text-fill-color: #201811 !important;
    background: var(--retire-cta-strong) !important;
    outline-color: rgba(240, 207, 119, 0.54) !important;
  }

  body[data-scheme="auto"] .retire-rec-result-hero {
    color: #f7ebd8 !important;
    background: var(--retire-result) !important;
    border-color: var(--retire-line) !important;
  }

  body[data-scheme="auto"] .retire-rec-result-hero span,
  body[data-scheme="auto"] .retire-rec-result-hero strong,
  body[data-scheme="auto"] .retire-rec-result-hero em {
    color: #f7ebd8 !important;
  }

  body[data-scheme="auto"] .retire-rec-message strong {
    color: #241c15 !important;
    -webkit-text-fill-color: #241c15 !important;
    background: var(--retire-cta-strong) !important;
    border-color: var(--retire-line) !important;
  }

  body[data-scheme="auto"] .retire-rec-message--error strong {
    color: #241c15 !important;
    -webkit-text-fill-color: #241c15 !important;
    background: #f0b5a8 !important;
  }

  body[data-scheme="auto"] .retire-rec-message--success strong {
    color: #201811 !important;
    -webkit-text-fill-color: #201811 !important;
    background: #cfe7b7 !important;
  }

  body[data-scheme="auto"] .retire-rec-table td {
    background: #2b2119 !important;
    border-color: rgba(210, 168, 102, 0.5) !important;
  }
}
