.revolving-page #content { min-width: 0; }
.revolving-hero { margin-bottom: 28px; }
.revolving-hero > span, .guide-kicker { display: block; margin-bottom: 8px; color: #08765f; font-size: .76rem; font-weight: 800; }
.revolving-hero h1 { margin-bottom: 12px; color: #172033; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0; }
.revolving-hero p { max-width: 820px; margin: 0; color: #536277; font-size: 1rem; line-height: 1.75; }
.revolving-calculator, .data-section, .insight-section { margin-top: 28px; padding: 24px; border: 1px solid #d8e1eb; border-radius: 8px; background: #fff; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-heading small { display: block; margin-bottom: 5px; color: #08765f; font-size: .66rem; font-weight: 800; }
.section-heading h2 { margin: 0; color: #172033; font-size: 1.3rem; letter-spacing: 0; }
.estimate-badge, .status-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 6px; background: #edf3f5; color: #516074; font-size: .68rem; font-weight: 800; }
.status-badge.is-paid, .status-badge.is-decreasing { background: #e5f4ee; color: #08765f; }
.status-badge.is-carry, .status-badge.is-stable { background: #fff4d9; color: #875b00; }
.status-badge.is-increasing, .status-badge.is-error { background: #feecea; color: #a9362d; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px; padding: 4px; border-radius: 8px; background: #eef2f5; }
.mode-tabs button { min-height: 44px; margin: 0; border: 0; border-radius: 6px; background: transparent; color: #536277; font-size: .82rem; font-weight: 800; }
.mode-tabs button[aria-selected="true"] { background: #fff; color: #08765f; box-shadow: 0 1px 4px rgba(23, 32, 51, .12); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: #2d3d52; font-size: .79rem; font-weight: 800; }
.field em { color: #788599; font-size: .67rem; font-style: normal; font-weight: 600; }
.field small, .minimum-help { min-height: 20px; margin: 0; color: #778599; font-size: .67rem; line-height: 1.5; }
.field input, .field select { width: 100%; min-width: 0; height: 48px; margin: 0; border: 1px solid #ccd8e4; border-radius: 7px; background: #fff; color: #172033; font-size: .88rem; font-weight: 700; }
.field input:focus, .field select:focus { border-color: #16806a; box-shadow: 0 0 0 3px rgba(22, 128, 106, .12); }
.input-unit { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; overflow: hidden; border: 1px solid #ccd8e4; border-radius: 7px; background: #fff; }
.input-unit:focus-within { border-color: #16806a; box-shadow: 0 0 0 3px rgba(22, 128, 106, .12); }
.input-unit input { border: 0; border-radius: 0; box-shadow: none !important; }
.input-unit b { color: #66758a; font-size: .76rem; text-align: center; }
.quick-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -7px; }
.quick-buttons button { min-height: 38px; margin: 0; padding: 0 12px; border: 1px solid #cfdae5; border-radius: 7px; background: #f8fafb; color: #3e4e63; font-size: .72rem; font-weight: 800; }
.quick-buttons button:hover { border-color: #16806a; color: #08765f; }
.minimum-help { margin-top: 14px; padding: 12px; border-left: 3px solid #16806a; background: #f0f7f5; }
.form-error { min-height: 23px; margin: 12px 0 0; color: #b42318; font-size: .75rem; font-weight: 700; }
.form-actions, .section-actions { display: flex; gap: 8px; }
.form-actions { margin-top: 8px; padding-top: 16px; border-top: 1px solid #e2e8ef; }
.form-actions button { min-height: 48px; margin: 0; }
.form-actions .primary-button { flex: 1; background: #087f6b; }
.primary-button:hover { background: #076b5a; }
.secondary-button { border: 1px solid #ccd8e4; background: #fff; color: #35445a; }
.result-panel { margin-top: 22px; padding: 20px; border: 1px solid #d5e0e9; border-radius: 8px; background: #f6f9fa; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.result-grid > div { min-width: 0; min-height: 82px; padding: 13px; border: 1px solid #dce4ec; border-radius: 7px; background: #fff; }
.result-grid > .primary-result { grid-column: 1 / -1; border-left: 4px solid #16806a; }
.result-grid span, .milestone-grid span { display: block; margin-bottom: 7px; color: #738197; font-size: .67rem; }
.result-grid strong { display: block; color: #1f2e42; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.result-grid .primary-result strong { color: #08765f; font-size: 1.45rem; }
.result-note { margin: 13px 0 0; color: #69778c; font-size: .71rem; line-height: 1.55; }
.warning-list { display: grid; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.warning-list li { margin: 0; padding: 10px 11px; border-left: 3px solid #b95b4e; background: #fff0ed; color: #8d342c; font-size: .7rem; line-height: 1.5; }
.data-section > p, .insight-section > p { margin: 0 0 15px; color: #617086; font-size: .82rem; line-height: 1.65; }
.data-section > small { display: block; margin-top: 10px; color: #778599; font-size: .67rem; line-height: 1.5; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid #dce4ec; border-radius: 7px; }
.table-wrap table { width: 100%; min-width: 640px; margin: 0; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid #e4e9ef; color: #405066; font-size: .72rem; text-align: right; white-space: nowrap; }
.table-wrap th { background: #eef3f5; color: #526177; font-weight: 800; }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; font-weight: 800; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tr.is-current td { background: #eaf6f2; color: #08634f; font-weight: 800; }
#schedule-section .table-wrap table { min-width: 1160px; }
.milestone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.milestone-grid > div { min-width: 0; padding: 13px; border: 1px solid #dce4ec; border-radius: 7px; background: #f8fafb; }
.milestone-grid strong { color: #233247; font-size: .85rem; overflow-wrap: anywhere; }
.balance-chart { display: block; width: 100%; min-height: 220px; border: 1px solid #e0e6ed; border-radius: 7px; background: #fff; }
.chart-grid { stroke: #e4e9ef; stroke-width: 1; }
.balance-line, .fee-line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.balance-line { stroke: #16806a; }
.fee-line { stroke: #d47a2a; }
.chart-label { fill: #64748b; font-size: 12px; }
.comparison-note, .privacy-note { margin-top: 14px; padding: 14px; border-left: 3px solid #16806a; background: #edf6f3; color: #405e57; font-size: .74rem; line-height: 1.65; }
.guide-section, .faq-section, .source-section { margin-top: 46px; padding-top: 34px; border-top: 1px solid #dce4ec; }
.guide-section > h2, .faq-section > h2, .source-section > h2 { margin: 32px 0 10px; color: #172033; font-size: 1.45rem; letter-spacing: 0; }
.guide-section > .guide-kicker + h2, .faq-section > .guide-kicker + h2, .source-section > .guide-kicker + h2 { margin-top: 0; }
.guide-section > p, .source-section > p { margin: 0 0 16px; color: #5d6c80; font-size: .9rem; line-height: 1.8; }
.formula-box { margin: 22px 0 30px; padding: 18px; border-left: 4px solid #16806a; background: #eef7f4; }
.formula-box strong { color: #1f493f; font-size: .84rem; }
.formula-box p { margin: 8px 0 5px; color: #183e35; font-size: 1rem; font-weight: 800; }
.formula-box span { color: #56716b; font-size: .74rem; line-height: 1.55; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; border-top: 1px solid #e0e6ed; }
.guide-grid article { padding: 22px 0; border-bottom: 1px solid #e0e6ed; }
.guide-grid h2 { margin: 0 0 8px; color: #243348; font-size: 1rem; letter-spacing: 0; }
.guide-grid p { margin: 0; color: #5e6d81; font-size: .84rem; line-height: 1.75; }
.privacy-note strong { color: #234a40; }
.privacy-note p { margin: 4px 0 0; }
.faq-section details { border-bottom: 1px solid #e0e6ed; }
.faq-section summary { padding: 16px 2px; color: #26364b; font-size: .86rem; font-weight: 800; cursor: pointer; }
.faq-section details p { margin: -3px 0 16px; padding-right: 20px; color: #607086; font-size: .82rem; line-height: 1.7; }
.source-section ul { margin: 0 0 16px; padding-left: 20px; }
.source-section li { margin-bottom: 8px; color: #536277; font-size: .82rem; line-height: 1.55; }
[hidden] { display: none !important; }

@media screen and (max-width: 736px) {
  .revolving-hero h1 { font-size: 2rem; }
  .revolving-hero p { font-size: .9rem; }
  .revolving-calculator, .data-section, .insight-section { padding: 16px; }
  .field-grid, .guide-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .section-heading > span { align-self: flex-start; }
  .section-actions { width: 100%; }
  .section-actions button { flex: 1; min-width: 0; }
  .form-actions { flex-direction: column; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid > .primary-result { grid-column: auto; }
  .milestone-grid { grid-template-columns: 1fr; }
  .balance-chart { min-height: 170px; }
  .guide-section > h2, .faq-section > h2, .source-section > h2 { font-size: 1.25rem; }
}

@media screen and (max-width: 360px) {
  .revolving-calculator, .data-section, .insight-section { padding: 13px; }
  .mode-tabs button { padding: 0 6px; font-size: .73rem; }
  .quick-buttons button { flex: 1 1 calc(33.333% - 7px); padding: 0 7px; }
  .result-grid .primary-result strong { font-size: 1.22rem; }
}
