.monthlyToolPage .monthlyPage {
  max-width: 1200px;
}

.monthlyToolPage .monthlyHeroSection {
  margin-bottom: 14px;
}

.monthlyToolPage .themeToggle {
  min-width: 124px;
}

.monthlyHeroActions {
  margin-top: 28px;
}

.monthlyToolPage .guide-tab-button {
  z-index: 70;
}

.monthlyHeroActions button {
  min-width: 156px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
}

.monthlyIntroText {
  margin-bottom: 22px;
}

.monthlyCalculatorArea {
  margin-bottom: 22px;
}

.monthlyToolBody {
  display: block;
}

.monthlyCalculatorArea.mode-current .monthlyResultCard {
  display: none;
}

.monthlyCalculatorArea.mode-result .monthlyToolCard {
  display: none;
}

.monthlyCalculatorArea.mode-result .monthlyResultCard {
  display: block;
}

@media (min-width: 1025px) {
  .monthlyToolPage .monthlyHeroSection,
  .monthlyToolPage .monthlyIntroText,
  .monthlyToolPage .monthlyCalculatorArea {
    transition:
      transform .56s cubic-bezier(.18,.88,.18,1),
      opacity .28s ease,
      filter .56s cubic-bezier(.18,.88,.18,1);
    will-change: transform, opacity, filter;
  }

  .monthlyToolPage.sectionTraveling .monthlyHeroSection {
    transform: translateY(-24px) scale(.985);
    opacity: .68;
    filter: blur(4px);
  }

  .monthlyToolPage.sectionTraveling .monthlyIntroText {
    transform: translateY(-18px);
    opacity: .42;
    filter: blur(2px);
  }

  .monthlyToolPage.sectionTraveling .monthlyCalculatorArea {
    transform: translateY(-10px);
  }

  .monthlyToolPage #dcaWorkspace {
    scroll-margin-top: 32px;
  }

  .monthlyToolPage .monthlyCalculatorArea {
    position: relative;
  }

  .monthlyToolPage .monthlyToolCard,
  .monthlyToolPage .monthlyResultCard {
    transition:
      transform .42s cubic-bezier(.18,.88,.18,1),
      box-shadow .32s ease,
      border-color .32s ease,
      opacity .24s ease,
      filter .24s ease;
  }

  .monthlyToolPage .monthlyCalculatorArea.mode-current .monthlyResultCard {
    display: none;
  }

  .monthlyToolPage .monthlyCalculatorArea.mode-result .monthlyToolCard {
    display: none;
  }

  .monthlyToolPage .monthlyCalculatorArea.mode-result .monthlyResultCard {
    display: block;
    animation: monthlyResultScreenReveal .3s cubic-bezier(.18,.88,.18,1);
    box-shadow: 0 26px 56px rgba(4, 9, 17, 0.34);
  }

  html[data-theme="light"] .monthlyToolPage .monthlyCalculatorArea.mode-result .monthlyResultCard {
    box-shadow: 0 24px 46px rgba(37, 51, 71, 0.14);
  }

  @keyframes monthlyResultScreenReveal {
    0% {
      opacity: 0;
      transform: translateY(18px);
      filter: blur(3px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
}

.monthlyToolCard,
.monthlyResultCard {
  margin-bottom: 18px;
}

.monthlyToolCard,
.monthlyResultCard,
.monthlyInfoCard,
.monthlyCatchCard,
.monthlyFaqSection,
.monthlyGuideRail .guideRailInner {
  padding-left: 22px;
  padding-right: 22px;
}

.monthlyPrimaryActions {
  align-items: center;
}

.targetProgressInline {
  width: 100%;
  margin-top: 2px;
}

.targetProgressInline .progressWrap {
  width: 100%;
  height: 8px;
  box-shadow: none;
}

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

.controlGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.monthlyToolCard .controlGrid,
.monthlyToolCard .toolTableHeader,
.monthlyToolCard .toolError,
.monthlyToolCard .toolTableWrap,
.monthlyResultCard .metricGrid,
.monthlyResultCard .allocationNote,
.monthlyResultCard .toolTableWrap,
.monthlyInfoCard .monthlyInfoGrid {
  margin-left: 2px;
  margin-right: 2px;
}

.fieldCard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(154, 166, 186, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

html[data-theme="light"] .fieldCard {
  border-color: rgba(106, 116, 126, 0.18);
  background:
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.06) 0 2px, rgba(255, 255, 255, 0) 2px 8px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(221, 228, 233, 0.92));
}

.fieldCard.compact {
  justify-content: center;
}

.fieldLabel {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.fieldValue {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.fieldValueCompact {
  font-size: 20px;
}

.fieldHint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.modeToggleGroup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.modeToggleBtn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(154, 166, 186, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(217, 225, 239, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition:
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    transform .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.modeToggleBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.modeToggleBtn:hover {
  border-color: rgba(154, 166, 186, 0.4);
  color: var(--text);
  transform: translateY(-1px);
}

.modeToggleBtn:focus-visible {
  outline: 2px solid var(--signal-chip-line);
  outline-offset: 2px;
}

.modeToggleBtn.active {
  color: #f7fbff;
  border-color: rgba(120, 212, 255, 0.72);
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(120, 212, 255, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(72, 132, 255, 0.72), rgba(37, 89, 196, 0.88));
  box-shadow:
    0 0 0 1px rgba(120, 212, 255, 0.24),
    0 14px 30px rgba(56, 111, 233, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.modeToggleBtn.active::after {
  opacity: 1;
}

.modeToggleBtn:not(.active) {
  opacity: 0.82;
}

html[data-theme="light"] .modeToggleBtn {
  border-color: rgba(108, 127, 153, 0.24);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(29, 43, 57, 0.72);
}

html[data-theme="light"] .modeToggleBtn.active {
  color: #10203a;
  border-color: rgba(79, 127, 240, 0.5);
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(79, 127, 240, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(126, 164, 255, 0.58), rgba(228, 238, 255, 0.98));
  box-shadow:
    0 0 0 1px rgba(79, 127, 240, 0.16),
    0 12px 24px rgba(79, 127, 240, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#targetTotalLabel.isInvalid {
  color: var(--sell);
}

.toolTableHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 12px;
}

.toolTableHeader > div {
  min-width: 0;
}

.toolSectionTitle {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
}

.toolSectionCopy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toolError {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(224, 90, 90, 0.5);
  border-radius: 12px;
  background: rgba(224, 90, 90, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.toolTableWrap {
  overflow-x: auto;
  margin-top: 12px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border: 1px solid rgba(154, 166, 186, 0.26);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 18, 29, 0.92), rgba(12, 18, 29, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(4, 9, 17, 0.22);
}

html[data-theme="light"] .toolTableWrap {
  background: rgba(250, 252, 255, 0.96);
  border-color: rgba(108, 127, 153, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.toolTable {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

#dcaTable {
  min-width: 940px;
  table-layout: fixed;
}

#dcaTable .col-name {
  width: 232px;
}

#dcaTable .col-amount {
  width: 138px;
}

#dcaTable .col-price {
  width: 126px;
}

#dcaTable .col-weight {
  width: 76px;
}

#dcaTable .col-target {
  width: 92px;
}

#dcaTable .col-del {
  width: 58px;
}

.resultTable {
  min-width: 0;
  table-layout: fixed;
}

.monthlyResultCard .toolTableWrap {
  overflow-x: hidden;
}

.resultTable .result-col-name {
  width: 22%;
}

.resultTable .result-col-weight,
.resultTable .result-col-target,
.resultTable .result-col-after {
  width: 12%;
}

.resultTable .result-col-qty {
  width: 24%;
}

.toolTable th,
.toolTable td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(154, 166, 186, 0.18);
  vertical-align: middle;
  text-align: left;
}

.resultTable th,
.resultTable td {
  padding: 13px 10px;
  font-size: 13.5px;
  line-height: 1.4;
}

.toolTable th {
  background: rgba(90, 162, 255, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

html[data-theme="light"] .toolTable th {
  background: rgba(107, 130, 151, 0.12);
}

#dcaTable th,
#dcaTable td {
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: 14px;
  padding-right: 14px;
}

#dcaTable thead th {
  white-space: nowrap;
}

#dcaTable tbody td {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#dcaTable th.col-del,
#dcaTable td.col-del {
  text-align: center;
}

#dcaTable th.col-name {
  text-align: center;
}

#dcaTable td.col-name {
  text-align: left;
}

#dcaTable th.col-weight,
#dcaTable td.col-weight {
  text-align: center;
}

#dcaTable th.col-amount,
#dcaTable th.col-price,
#dcaTable th.col-target {
  text-align: center;
}

.toolTable tbody tr:last-child td {
  border-bottom: 0;
}

.toolTable tbody tr:hover td {
  background: var(--row-hover);
}

.toolTable .num {
  text-align: right;
}

.resultTable th {
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.resultTable td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
}

.resultTable td:first-child {
  text-align: left;
  font-size: 15px;
  font-weight: 800;
}

.tradeSummaryCell {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.tradeSummaryMain,
.tradeSummaryMeta {
  display: block;
}

.tradeSummaryMain {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.tradeSummaryDecision {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.tradeSummaryDecision.buy {
  color: var(--buy);
  background: rgba(47, 122, 75, 0.1);
  border-color: rgba(47, 122, 75, 0.32);
}

.tradeSummaryDecision.sell {
  color: var(--sell);
  background: rgba(156, 62, 51, 0.1);
  border-color: rgba(156, 62, 51, 0.32);
}

.tradeSummaryQty {
  font-variant-numeric: tabular-nums;
}

.tradeSummaryMeta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
}

.resultTable td.buy {
  color: var(--buy);
}

.resultTable td.sell {
  color: var(--sell);
}

.toolTable input,
.moneyInput {
  width: 100%;
}

.iconButton {
  min-width: 0;
  padding: 0 12px;
}

.moneyInput {
  font-size: 16px;
}

#monthlyContribution {
  text-align: right;
}

.dcaNameField {
  position: relative;
  min-width: 0;
}

#dcaTable tbody td.col-name {
  overflow: visible;
}

#dcaTable .dcaNameField,
#dcaTable .nameInput {
  width: 100%;
}

#dcaTable td.col-name input,
#dcaTable td.col-amount input,
#dcaTable td.col-price input,
#dcaTable td.col-target input {
  display: block;
  height: 42px;
  margin: 1px 0;
  padding: 0 14px;
  box-sizing: border-box;
  border-color: rgba(154, 166, 186, 0.28);
  background: rgba(14, 20, 31, 0.92);
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 14px;
  line-height: normal;
}

html[data-theme="light"] #dcaTable td.col-name input,
html[data-theme="light"] #dcaTable td.col-amount input,
html[data-theme="light"] #dcaTable td.col-price input,
html[data-theme="light"] #dcaTable td.col-target input {
  border-color: rgba(108, 127, 153, 0.18);
  background: #f9fbfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

#dcaTable td.col-name input {
  text-align: left;
}

#dcaTable td.col-amount,
#dcaTable td.col-price,
#dcaTable td.col-target {
  min-width: 0;
}

#dcaTable td.col-amount,
#dcaTable td.col-price,
#dcaTable td.col-target {
  padding-left: 12px;
  padding-right: 12px;
  font-variant-numeric: tabular-nums;
}

#dcaTable .weightPreview {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
}

#dcaTable td.col-amount .moneyInput,
#dcaTable td.col-price .moneyInput,
#dcaTable td.col-target .percentInput {
  text-align: right;
}

#dcaTable td.col-price .moneyInput,
#dcaTable td.col-target .percentInput {
  padding-right: 36px;
}

#dcaTable td.col-price::after,
#dcaTable td.col-target::after {
  right: 23px;
}

#dcaTable .iconButton {
  min-width: 60px;
  padding: 0 10px;
}

.dcaSuggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 33, 51, 0.98), rgba(18, 25, 38, 0.98));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  max-height: 220px;
  overflow: auto;
}

.dcaSuggest.isAbove {
  top: auto;
  bottom: calc(100% + 6px);
}

.dcaSuggest[hidden] {
  display: none;
}

html[data-theme="light"] .dcaSuggest {
  background:
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.06) 0 2px, rgba(255, 255, 255, 0) 2px 8px),
    linear-gradient(180deg, rgba(250, 251, 252, 0.98), rgba(227, 233, 237, 0.98));
}

.dcaSuggestItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.dcaSuggestItem:hover,
.dcaSuggestItem.isActive {
  background: rgba(90, 162, 255, 0.14);
}

html[data-theme="light"] .dcaSuggestItem:hover,
html[data-theme="light"] .dcaSuggestItem.isActive {
  background: rgba(107, 130, 151, 0.12);
}

.dcaSuggestName {
  font-weight: 700;
}

.dcaSuggestSymbol {
  color: var(--muted);
  font-size: 12px;
}

.resultTable .emphasis {
  color: var(--sell);
}

.weightPreview {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.resultBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--signal-chip-line);
  background: var(--signal-chip-bg);
  color: var(--signal-accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.monthlyResultHeading {
  align-items: flex-end;
  margin-bottom: 10px;
}

.monthlyResultHeadingActions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.resultLeadEyebrow {
  margin: 0 0 6px;
  color: var(--hero-eyebrow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.monthlyResultHeading p {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.65;
}

.resultTableLead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 12px;
}

.resultTableLead strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.resultTableLead span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.metricGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.monthlyResultCard .toolTableWrap {
  margin-top: 18px;
  margin-bottom: 16px;
  border-width: 1px;
  border-color: rgba(90, 162, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(4, 9, 17, 0.28);
}

html[data-theme="light"] .monthlyResultCard .toolTableWrap {
  border-color: rgba(107, 130, 151, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 34px rgba(37, 51, 71, 0.1);
}

.metricGridCompact {
  display: none;
  margin-top: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.metricCard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid rgba(154, 166, 186, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
}

html[data-theme="light"] .metricCard {
  border-color: rgba(106, 116, 126, 0.14);
  background:
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.05) 0 2px, rgba(255, 255, 255, 0) 2px 8px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(226, 232, 237, 0.88));
}

.metricLabel,
.metricMeta,
.allocationNote {
  color: var(--muted);
}

.metricLabel,
.metricMeta {
  font-size: 11.5px;
  line-height: 1.5;
}

.metricValue {
  color: var(--text);
  font-size: clamp(16px, 1.65vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.allocationNote {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--signal-accent);
  border-radius: 12px;
  background: rgba(90, 162, 255, 0.08);
  font-size: 13px;
  line-height: 1.62;
}

.metricGridCompact .metricCard {
  min-height: 0;
}

.metricGridCompact .metricLabel,
.metricGridCompact .metricMeta {
  font-size: 10.5px;
}

.metricGridCompact .metricValue {
  font-size: clamp(15px, 1.45vw, 19px);
}

html[data-theme="light"] .allocationNote {
  background: rgba(107, 130, 151, 0.1);
}

.resultEmpty {
  text-align: center;
  color: var(--muted);
}

.monthlyResultLayout {
  margin-bottom: 18px;
}

.monthlySupportLayout {
  display: block;
  margin-bottom: 8px;
}

.monthlyGuideColumn {
  min-width: 0;
}

.monthlyInfoCard {
  margin-bottom: 18px;
}

.monthlyInfoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.monthlyInfoBlock {
  padding: 16px;
  border: 1px solid rgba(154, 166, 186, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

html[data-theme="light"] .monthlyInfoBlock {
  border-color: rgba(106, 116, 126, 0.18);
  background:
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.06) 0 2px, rgba(255, 255, 255, 0) 2px 8px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(223, 229, 234, 0.9));
}

.monthlyInfoEyebrow,
.monthlyCatchEyebrow {
  margin: 0 0 8px;
  color: var(--hero-eyebrow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monthlyInfoBlock h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
}

.monthlyInfoBlock p,
.monthlyInfoList {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.monthlyInfoList {
  padding-left: 18px;
}

.monthlyInfoList li + li {
  margin-top: 6px;
}

.monthlyFaqSection {
  margin-bottom: 18px;
}

.monthlyFaqSection .faqQuestion {
  cursor: default;
}

.monthlyFaqSection .faqQuestion::after {
  content: none;
}

.monthlyCatchCard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0;
}

.monthlyCatchTitle {
  margin: 0;
  max-width: 720px;
  color: var(--text);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.monthlyCatchLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(154, 166, 186, 0.28);
  background: linear-gradient(180deg, rgba(23, 32, 49, 0.9), rgba(16, 24, 38, 0.92));
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.monthlyCatchLink:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

html[data-theme="light"] .monthlyCatchLink {
  border-color: rgba(116, 125, 134, 0.28);
  background:
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.07) 0 2px, rgba(255, 255, 255, 0) 2px 8px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(217, 224, 229, 0.95));
}

.dcaToast {
  z-index: 9999;
}

@media (max-width: 1100px) {
  .controlGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metricGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .monthlyInfoGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .controlGrid {
    grid-template-columns: 1fr;
  }

  .resultTableLead {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .toolTableHeader,
  .monthlyResultHeading {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .monthlyToolPage .container {
    max-width: none;
  }

  .monthlyToolCard,
  .monthlyResultCard,
  .monthlyInfoCard,
  .monthlyCatchCard,
  .monthlyFaqSection,
  .monthlyGuideRail .guideRailInner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .monthlyToolCard .controlGrid,
  .monthlyToolCard .toolTableHeader,
  .monthlyToolCard .toolError,
  .monthlyToolCard .toolTableWrap,
  .monthlyResultCard .metricGrid,
  .monthlyResultCard .allocationNote,
  .monthlyResultCard .toolTableWrap,
  .monthlyInfoCard .monthlyInfoGrid {
    margin-left: 0;
    margin-right: 0;
  }

  .monthlyHeroActions {
    gap: 8px;
  }

  .targetProgressInline {
    margin-top: 4px;
  }

  .modeToggleGroup {
    grid-template-columns: 1fr;
  }

  .monthlyHeroActions button {
    width: 100%;
  }

  .monthlyPrimaryActions {
    width: 100%;
    margin-left: 0;
  }

  .monthlyPrimaryActions > * {
    width: 100%;
  }

  .monthlyPrimaryActions .statusBadge,
  .monthlyPrimaryActions .saveStatusText {
    justify-content: flex-start;
  }

  .fieldCard,
  .metricCard,
  .monthlyInfoBlock {
    padding: 14px;
  }

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

  .toolTable th,
  .toolTable td {
    padding: 11px 12px;
  }

  .monthlyResultCard .toolTableWrap {
    overflow: visible;
    border: 0;
    padding-bottom: 0;
    background: transparent;
    box-shadow: none;
  }

  .resultTable,
  .resultTable tbody,
  .resultTable tr,
  .resultTable td {
    display: block;
    width: 100%;
  }

  .resultTable {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .resultTable thead {
    display: none;
  }

  .resultTable tr {
    margin-bottom: 12px;
    border: 1px solid rgba(154, 166, 186, 0.2);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  }

  html[data-theme="light"] .resultTable tr {
    border-color: rgba(106, 116, 126, 0.18);
    background:
      repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.06) 0 2px, rgba(255, 255, 255, 0) 2px 8px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(223, 229, 234, 0.9));
  }

  .resultTable td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    white-space: normal;
    text-align: right;
  }

  .resultTable td::before {
    content: attr(data-label);
    flex: 0 0 96px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
  }

  .resultTable td:first-child {
    font-weight: 800;
  }

  .resultTable td:first-child::before {
    color: var(--hero-eyebrow);
  }

  .tradeSummaryMain {
    gap: 6px;
    font-size: 13.5px;
  }

  .tradeSummaryDecision {
    padding: 3px 8px;
    font-size: 11.5px;
  }

  .tradeSummaryMeta {
    font-size: 11px;
  }

  .resultTable td.resultEmpty {
    display: block;
    text-align: center;
    padding: 16px 14px;
  }

  .resultTable td.resultEmpty::before {
    content: none;
  }

  .metricGrid {
    grid-template-columns: 1fr;
  }

  .monthlyCatchTitle {
    font-size: 28px;
  }
}
