/* embedded: assets/css/site.css */
    :root {
      --bg: #f5f8fb;
      --panel: #ffffff;
      --ink: #172033;
      --muted: #64748b;
      --line: #dbe4ef;
      --primary: #1d6fd6;
      --primary-soft: #e8f2ff;
      --accent: #0f9f86;
      --accent-soft: #e9fbf6;
      --warn: #b45309;
      --warn-bg: #fff7ed;
      --shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
      --radius: 20px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at top left, rgba(29, 111, 214, 0.15), transparent 32rem),
        radial-gradient(circle at top right, rgba(15, 159, 134, 0.12), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 34rem);
      line-height: 1.7;
    }

    a {
      color: inherit;
    }

    .page {
      width: min(1160px, calc(100% - 32px));
      margin: 0 auto;
      padding: 28px 0 64px;
    }

    .site-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 26px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 900;
      letter-spacing: 0.01em;
    }

    .nurume-face {
      width: 46px;
      height: 46px;
      border-radius: 17px;
      background: linear-gradient(145deg, #d9ecff, #8cc4ff);
      border: 2px solid #ffffff;
      box-shadow: 0 10px 24px rgba(29, 111, 214, 0.22);
      position: relative;
      flex: 0 0 auto;
    }

    .nurume-face::before {
      content: "";
      position: absolute;
      inset: 12px 10px auto;
      height: 13px;
      border-radius: 99px;
      background:
        radial-gradient(circle at 30% 48%, #172033 0 2px, transparent 3px),
        radial-gradient(circle at 70% 48%, #172033 0 2px, transparent 3px);
    }

    .nurume-face::after {
      content: "";
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: 12px;
      height: 5px;
      border-bottom: 2px solid #172033;
      border-radius: 0 0 99px 99px;
    }

    .header-note {
      color: var(--muted);
      font-size: 13px;
      text-align: right;
    }

    .hero {
      display: block;
      margin-bottom: 22px;
    }

    .hero-main,
    .hero-side,
    .card {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(219, 228, 239, 0.95);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .hero-main {
      padding: 40px 42px;
      overflow: hidden;
      position: relative;
    }

    .hero-main::after {
      content: "";
      position: absolute;
      right: -80px;
      top: -90px;
      width: 260px;
      height: 260px;
      border-radius: 50%;
      background: rgba(29, 111, 214, 0.08);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: 999px;
      background: var(--primary-soft);
      color: #155bb2;
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 16px;
    }

    h1 {
      margin: 0 0 14px;
      font-size: clamp(38px, 6vw, 72px);
      line-height: 1.08;
      letter-spacing: -0.055em;
    }

    .lead {
      margin: 0;
      max-width: 860px;
      color: #334155;
      font-size: 17px;
    }

    .hero-side {
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      justify-content: space-between;
    }

    .comment-box {
      display: grid;
      grid-template-columns: 58px 1fr;
      gap: 14px;
      align-items: start;
    }

    .comment-text {
      background: #f8fbff;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px;
      font-size: 14px;
      color: #334155;
    }

    .hero-principle {
      border-radius: 16px;
      background: var(--accent-soft);
      border: 1px solid #bdf4e2;
      padding: 14px;
      color: #0f604f;
      font-size: 14px;
      font-weight: 700;
    }

    .ad-disclosure {
      font-size: 12px;
      color: var(--muted);
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #ffffff;
    }

    .tabs {
      position: sticky;
      top: 0;
      z-index: 5;
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 10px;
      margin: 22px 0;
      background: rgba(245, 248, 251, 0.88);
      backdrop-filter: blur(14px);
      border: 1px solid rgba(219, 228, 239, 0.82);
      border-radius: 18px;
    }

    .tab {
      border: 1px solid var(--line);
      background: #ffffff;
      color: #334155;
      padding: 10px 14px;
      border-radius: 999px;
      white-space: nowrap;
      cursor: pointer;
      font-weight: 800;
      font-size: 14px;
    }

    .tab[aria-selected="true"] {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
      box-shadow: 0 10px 22px rgba(29, 111, 214, 0.22);
    }

    .tab small {
      font-weight: 800;
      opacity: 0.72;
      margin-left: 4px;
    }

    .panel {
      display: none;
    }

    .panel.active {
      display: block;
    }

    .layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      align-items: start;
    }

    .card {
      padding: 22px;
      margin-bottom: 20px;
    }

    .sticky {
      position: static;
    }

    .card h2,
    .card h3 {
      margin: 0 0 12px;
      letter-spacing: -0.03em;
      line-height: 1.25;
    }

    .card h2 {
      font-size: 26px;
    }

    .card h3 {
      font-size: 20px;
    }

    .muted {
      color: var(--muted);
    }

    .form-grid {
      display: grid;
      gap: 12px;
    }

    .cost-row {
      display: grid;
      grid-template-columns: 145px minmax(0, 1fr) 72px;
      gap: 10px;
      align-items: center;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fbfdff;
    }

    .cost-row label {
      font-weight: 900;
    }

    .cost-row small {
      display: block;
      color: var(--muted);
      font-weight: 600;
      margin-top: 2px;
      font-size: 12px;
    }

    .cost-group {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fbfdff;
      padding: 14px;
      display: grid;
      gap: 12px;
    }

    .cost-group-head {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: start;
    }

    .cost-group-title {
      font-size: 17px;
      font-weight: 950;
      letter-spacing: -0.02em;
    }

    .cost-group-desc {
      margin-top: 2px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.55;
    }

    .impact-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: #0f604f;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

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

    .field-box {
      display: grid;
      gap: 6px;
    }

    .field-box label {
      color: #334155;
      font-size: 12px;
      font-weight: 900;
    }

    .input-with-unit {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
    }

    .group-note {
      padding: 10px 12px;
      border-radius: 14px;
      background: #ffffff;
      border: 1px dashed #cbd5e1;
      color: #475569;
      font-size: 12px;
      line-height: 1.6;
    }

    .cost-row.compact {
      grid-template-columns: 155px minmax(0, 1fr) 72px;
    }

    input {
      width: 100%;
      appearance: none;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      border-radius: 12px;
      padding: 11px 12px;
      color: var(--ink);
      font: inherit;
      font-weight: 800;
      min-height: 44px;
    }

    input:focus {
      outline: 3px solid rgba(29, 111, 214, 0.18);
      border-color: var(--primary);
    }

    .unit {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .hint {
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 14px;
      background: #f8fbff;
      border: 1px solid var(--line);
      color: #475569;
      font-size: 13px;
    }

    .asset-stage {
      background: linear-gradient(160deg, #172033, #23446d);
      color: #ffffff;
      border-radius: var(--radius);
      padding: 24px;
      box-shadow: 0 18px 40px rgba(23, 32, 51, 0.18);
      margin-bottom: 20px;
    }

    .asset-stage h2 {
      color: #ffffff;
      font-size: 26px;
      margin: 0 0 10px;
    }

    .asset-stage p {
      color: rgba(255,255,255,0.78);
      margin: 0;
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin: 18px 0 18px;
    }

    .summary-card {
      background: rgba(255, 255, 255, 0.09);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 16px;
      padding: 14px;
    }

    .summary-card span {
      display: block;
      color: rgba(255,255,255,0.66);
      font-size: 12px;
      font-weight: 800;
    }

    .summary-card b {
      display: block;
      margin-top: 4px;
      font-size: clamp(22px, 3vw, 32px);
      line-height: 1.14;
      letter-spacing: -0.045em;
    }

    .summary-card.emphasis {
      background: rgba(15, 159, 134, 0.18);
      border-color: rgba(15, 159, 134, 0.38);
    }

    .chart-shell {
      background: rgba(255, 255, 255, 0.96);
      color: var(--ink);
      border-radius: 18px;
      padding: 16px;
      overflow: hidden;
    }

    .chart-header {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      margin-bottom: 8px;
    }

    .chart-header h3 {
      margin: 0;
      font-size: 18px;
    }

    .growth-highlight {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin: 12px 0 10px;
      padding: 12px 14px;
      border-radius: 16px;
      background: var(--accent-soft);
      border: 1px solid #bdf4e2;
      color: #0f604f;
      font-size: 13px;
      font-weight: 900;
    }

    .growth-highlight b {
      font-size: clamp(22px, 3vw, 34px);
      line-height: 1;
      letter-spacing: -0.045em;
      white-space: nowrap;
    }

    .legend {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      font-size: 12px;
      color: #475569;
      font-weight: 800;
    }

    .legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .swatch {
      width: 18px;
      height: 3px;
      border-radius: 99px;
      background: #1d6fd6;
      display: inline-block;
    }

    .swatch.rate3 {
      background: #0f9f86;
    }

    .swatch.rate5 {
      background: #b45309;
    }

    .asset-svg {
      width: 100%;
      height: 310px;
      display: block;
    }

    .axis {
      stroke: #dbe4ef;
      stroke-width: 1;
    }

    .grid-line {
      stroke: #edf2f7;
      stroke-width: 1;
    }

    .tick-text {
      fill: #64748b;
      font-size: 11px;
      font-weight: 700;
    }

    .line-principal,
    .line-rate3,
    .line-rate5 {
      fill: none;
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .line-rate5 {
      stroke-dasharray: 7 7;
    }

    .line-principal {
      stroke: #1d6fd6;
    }

    .line-rate3 {
      stroke: #0f9f86;
    }

    .line-rate5 {
      stroke: #b45309;
    }

    .point {
      stroke: #ffffff;
      stroke-width: 2;
    }

    .breakdown {
      display: grid;
      gap: 10px;
    }

    .break-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 13px 0;
      border-bottom: 1px solid var(--line);
    }

    .break-row:last-child {
      border-bottom: none;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 999px;
      padding: 4px 10px;
      font-size: 12px;
      font-weight: 900;
      background: #eef6ff;
      color: #155bb2;
      white-space: nowrap;
    }

    .badge.rate {
      background: #ecfdf5;
      color: #047857;
    }

    .badge.manual {
      background: #fff7ed;
      color: #b45309;
    }

    .amount {
      font-weight: 900;
      font-size: 18px;
    }

    .simulation-table {
      width: 100%;
      border-collapse: collapse;
      overflow: hidden;
      border-radius: 16px;
      border: 1px solid var(--line);
    }

    .simulation-table th,
    .simulation-table td {
      padding: 13px 12px;
      border-bottom: 1px solid var(--line);
      text-align: right;
      white-space: nowrap;
    }

    .simulation-table th:first-child,
    .simulation-table td:first-child {
      text-align: left;
      color: #334155;
      font-weight: 900;
    }

    .simulation-table th {
      background: #f8fbff;
      color: #475569;
      font-size: 13px;
    }

    .simulation-table tr:last-child td {
      border-bottom: none;
    }

    .cta-box {
      padding: 20px;
      border-radius: var(--radius);
      background: var(--primary-soft);
      border: 1px solid #c8dfff;
    }

    .button-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 46px;
      padding: 12px 16px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-weight: 900;
      text-decoration: none;
      cursor: pointer;
      font-size: 14px;
    }

    .btn.primary {
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 12px 22px rgba(29, 111, 214, 0.22);
    }

    .btn.secondary {
      background: #ffffff;
      color: #155bb2;
      border-color: #bdd7fb;
    }

    .btn.compact {
      min-height: 38px;
      padding: 8px 12px;
      font-size: 12px;
    }

    .calc-action {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      padding-top: 4px;
    }

    .mobile-plan-hero {
      display: grid;
      gap: 12px;
    }

    .mobile-plan-note {
      border: 1px dashed #bdd7fb;
      background: #f8fbff;
      border-radius: 16px;
      padding: 14px;
      color: #475569;
      font-size: 13px;
    }

    .notice {
      padding: 15px;
      border-radius: 16px;
      background: var(--warn-bg);
      border: 1px solid #fed7aa;
      color: #7c2d12;
      font-size: 13px;
    }

    .notice strong {
      display: block;
      margin-bottom: 4px;
      color: var(--warn);
    }

    .category-cards,
    .brokerage-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .category-card,
    .compare-card {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 15px;
      background: #fbfdff;
    }

    .category-card h4,
    .compare-card h4 {
      margin: 0 0 6px;
    }

    .category-card p,
    .compare-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

    .coming {
      display: inline-flex;
      margin-top: 10px;
      font-size: 12px;
      font-weight: 900;
      border-radius: 999px;
      padding: 4px 9px;
      color: #475569;
      background: #eef2f7;
    }

    .placeholder {
      min-height: 340px;
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
    }

    .placeholder-inner {
      max-width: 560px;
    }

    .placeholder h2 {
      color: var(--ink);
    }

    footer {
      color: var(--muted);
      font-size: 12px;
      margin-top: 34px;
      padding-top: 22px;
      border-top: 1px solid var(--line);
    }

    @media (max-width: 980px) {
      .hero,
      .layout {
        grid-template-columns: 1fr;
      }

      .sticky {
        position: static;
      }

      .header-note {
        text-align: left;
      }

      .site-header {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    @media (max-width: 680px) {
      .summary-grid,
      .category-cards,
      .brokerage-grid {
        grid-template-columns: 1fr;
      }

      .cost-row {
        grid-template-columns: 1fr;
      }


      .cost-row.compact,
      .nested-inputs,
      .cost-group-head {
        grid-template-columns: 1fr;
      }

      .impact-pill {
        justify-content: center;
      }

      .simulation-table {
        display: block;
        overflow-x: auto;
      }

      .chart-header {
        flex-direction: column;
      }
    }

    @media (max-width: 560px) {
      .page {
        width: min(100% - 20px, 1160px);
        padding-top: 16px;
      }

      .hero-main,
      .hero-side,
      .card,
      .asset-stage {
        padding: 18px;
      }

      .tabs {
        border-radius: 14px;
      }

      .tab {
        font-size: 13px;
        padding: 9px 12px;
      }

      .asset-svg {
        height: 260px;
      }
    }
  



    /* v18: integrated result sections */
    .monthly-summary {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chart-result-grid {
      display: grid;
      gap: 12px;
      margin-top: 14px;
    }

    .chart-result-hero {
      border: 1px solid #b7ebd0;
      border-radius: 18px;
      background: linear-gradient(180deg, #f6fdf9 0%, #eefbf5 100%);
      padding: 18px 20px;
    }

    .chart-result-hero span {
      display: block;
      color: #0f604f;
      font-size: 13px;
      font-weight: 950;
    }

    .chart-result-hero b {
      display: block;
      margin-top: 6px;
      color: #0f604f;
      font-size: clamp(30px, 4vw, 46px);
      line-height: 1.08;
      letter-spacing: -0.055em;
    }

    .chart-result-hero p {
      margin: 10px 0 0;
      color: #3d665d;
      font-size: 13px;
      font-weight: 750;
      line-height: 1.6;
    }

    .chart-result-hero strong {
      font-weight: 950;
      white-space: nowrap;
    }

    .chart-result-breakdown {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .chart-result-card {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #ffffff;
      padding: 14px 16px;
      min-height: 102px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .chart-result-card span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .chart-result-card b {
      display: block;
      margin-top: 6px;
      font-size: clamp(22px, 3vw, 34px);
      line-height: 1.12;
      letter-spacing: -0.045em;
      color: #172033;
    }

    .chart-result-card.principal {
      background: #eef5ff;
      border-color: #bdd7fb;
    }

    .chart-result-card.principal span,
    .chart-result-card.principal b {
      color: #155bb2;
    }

    .chart-result-card.diff {
      background: #fff5f5;
      border-color: #fecaca;
    }

    .chart-result-card.diff span,
    .chart-result-card.diff b {
      color: #dc2626;
    }

    .chart-footer-action {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }

    .chart-footer-action p {
      margin: 0;
      font-size: 12px;
      line-height: 1.55;
    }

    .chart-footer-action .btn {
      flex: 0 0 auto;
    }

    .chart-footer-buttons {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
      flex: 0 0 auto;
    }

    .sp500-data-details {
      margin-top: 12px;
    }

    .sp500-data-details summary,
    .sp500-data-toggle {
      appearance: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid #bdd7fb;
      background: #ffffff;
      color: #155bb2;
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      list-style: none;
      width: fit-content;
    }

    .sp500-data-details summary::-webkit-details-marker {
      display: none;
    }

    .sp500-data-details summary::before,
    .sp500-data-toggle::before {
      content: "▸";
      margin-right: 6px;
      font-size: 10px;
      transform: translateY(-1px);
    }

    .sp500-data-details[open] summary,
    .sp500-data-toggle[aria-expanded="true"] {
      background: #f8fbff;
      margin-bottom: 10px;
    }

    .sp500-data-details[open] summary::before,
    .sp500-data-toggle[aria-expanded="true"]::before {
      content: "▾";
    }

    .sp500-data-panel {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #ffffff;
      padding: 14px;
    }

    .sp500-data-panel p {
      margin: 0 0 10px;
      color: #475569;
      font-size: 12px;
      line-height: 1.6;
    }

    .sp500-data-table-wrap {
      overflow-x: auto;
    }

    .sp500-data-panel .simulation-table {
      margin: 0;
      min-width: 520px;
    }

    @media (max-width: 680px) {
      .monthly-summary {
        grid-template-columns: 1fr;
      }

      .chart-result-breakdown {
        grid-template-columns: 1fr;
      }

      .chart-footer-action {
        align-items: stretch;
        flex-direction: column;
      }

      .chart-footer-buttons {
        justify-content: flex-start;
      }
    }
    /* v9: left input form focus */
    .form-card-focused {
      padding: 20px;
    }

    .form-card-focused h2 {
      margin: 0;
    }

    .form-title-row {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 14px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }

    .form-title-note {
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      padding: 6px 12px;
      border-radius: 999px;
      background: var(--primary-soft);
      color: #155bb2;
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
    }

    .form-intro {
      display: none;
    }

    .input-sections {
      display: grid;
      gap: 12px;
    }

    .input-section {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fbfdff;
      padding: 14px;
      display: grid;
      gap: 12px;
    }

    .input-section.primary-input {
      background: linear-gradient(180deg, #ffffff, #f7fbff);
      border-color: #c8dfff;
    }

    .input-section-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: start;
    }

    .input-section-title {
      font-size: 16px;
      font-weight: 950;
      line-height: 1.25;
      letter-spacing: -0.02em;
    }

    .input-section-desc {
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.5;
    }

    .result-chip {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 1px;
      min-width: 110px;
      padding: 7px 10px;
      border-radius: 14px;
      background: var(--accent-soft);
      color: #0f604f;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .result-chip span {
      font-size: 15px;
      line-height: 1.15;
      letter-spacing: -0.03em;
    }

    .result-chip.neutral {
      background: var(--primary-soft);
      color: #155bb2;
    }

    .result-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .calc-toggle {
      appearance: none;
      border: 1px solid #dbe4ef;
      background: #ffffff;
      color: #64748b;
      border-radius: 999px;
      padding: 6px 10px;
      font: inherit;
      font-size: 11px;
      font-weight: 900;
      line-height: 1;
      cursor: pointer;
      white-space: nowrap;
    }

    .calc-toggle::before {
      content: "▸ ";
      font-size: 10px;
    }

    .calc-toggle[aria-expanded="true"] {
      border-color: #bdd7fb;
      background: #f8fbff;
      color: #155bb2;
    }

    .calc-toggle[aria-expanded="true"]::before {
      content: "▾ ";
    }


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

    .input-fields.one {
      grid-template-columns: 1fr;
    }

    .input-field {
      display: grid;
      gap: 6px;
    }

    .input-field label {
      color: #334155;
      font-size: 12px;
      font-weight: 900;
    }

    .input-control {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
    }

    .input-control input {
      min-height: 42px;
    }

    .section-note {
      padding: 9px 11px;
      border-radius: 14px;
      background: #ffffff;
      border: 1px dashed #cbd5e1;
      color: #475569;
      font-size: 12px;
      line-height: 1.55;
    }

    .calc-panel {
      color: #475569;
      font-size: 12px;
      line-height: 1.55;
      margin-top: 0;
    }

    .calc-panel[hidden] {
      display: none;
    }

    .calc-details {
      color: #475569;
      font-size: 12px;
      line-height: 1.55;
      padding: 0;
      margin-top: 2px;
    }

    .calc-details summary {
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: fit-content;
      padding: 5px 10px;
      border: 1px solid #dbe4ef;
      border-radius: 999px;
      background: #ffffff;
      color: #64748b;
      font-size: 12px;
      font-weight: 900;
      list-style: none;
    }

    .calc-details summary::-webkit-details-marker {
      display: none;
    }

    .calc-details summary::before {
      content: "▸";
      font-size: 10px;
      transform: translateY(-1px);
    }

    .calc-details[open] summary {
      margin-bottom: 8px;
      border-color: #bdd7fb;
      background: #f8fbff;
      color: #155bb2;
    }

    .calc-details[open] summary::before {
      content: "▾";
    }

    .calc-details p {
      margin: 0;
      padding: 0;
    }

    .calc-steps {
      display: grid;
      gap: 8px;
      padding: 10px 12px;
      border: 1px dashed #dbe4ef;
      border-radius: 14px;
      background: #ffffff;
    }

    .calc-step {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 8px 0;
      border-top: 1px solid #edf2f7;
    }

    .calc-step:first-child {
      border-top: none;
    }

    .calc-step span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .calc-step b {
      color: #172033;
      font-size: 13px;
      font-weight: 950;
      text-align: right;
    }

    .calc-equation {
      padding: 9px 11px;
      border-radius: 12px;
      background: #f8fbff;
      color: #334155;
      font-size: 12px;
      font-weight: 850;
      line-height: 1.55;
    }

    .calc-caution {
      margin: 0;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.55;
    }

    .mini-form-footer {
      margin-top: 14px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }

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

    @media (max-width: 560px) {
      .form-card-focused {
        padding: 16px;
      }

      .input-section-header,
      .input-fields {
        grid-template-columns: 1fr;
      }

      .result-actions {
        justify-content: flex-start;
        width: 100%;
      }

      .result-chip {
        align-items: flex-start;
        width: auto;
      }
    }


    /* v15: top-down layout */
    #panel-check .layout {
      grid-template-columns: 1fr;
    }

    #panel-check .sticky {
      position: static;
    }

    .input-sections {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: stretch;
    }

    .input-section {
      align-content: start;
    }

    .form-card-focused {
      margin-bottom: 20px;
    }

    .result-flow-note {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin: 0 0 20px;
    }

    .result-flow-card {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fbfdff;
      padding: 14px;
    }

    .result-flow-card span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .result-flow-card b {
      display: block;
      margin-top: 4px;
      font-size: 20px;
      line-height: 1.2;
      letter-spacing: -0.035em;
    }

    @media (max-width: 900px) {
      .input-sections,
      .result-flow-note {
        grid-template-columns: 1fr;
      }
    }



    /* v21: density, mobile chart, production-ish tabs */
    .chart-scroll {
      width: 100%;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .chart-scroll .asset-svg {
      min-width: 720px;
    }

    .tab-page-head {
      display: grid;
      gap: 8px;
      margin-bottom: 14px;
    }

    .tab-page-head h2 {
      margin-bottom: 0;
    }

    .compact-cards .category-card,
    .compact-cards .compare-card {
      min-height: 112px;
    }

    .brokerage-lead-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin: 16px 0;
    }

    .source-link-box {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-top: 14px;
      padding: 12px 14px;
      border: 1px dashed #cbd5e1;
      border-radius: 16px;
      background: #fbfdff;
      color: #475569;
      font-size: 12px;
      line-height: 1.6;
    }

    .source-link-box strong {
      color: var(--ink);
      margin-right: 2px;
    }

    .source-link-box a {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 5px 10px;
      border-radius: 999px;
      background: #ffffff;
      border: 1px solid #bdd7fb;
      color: #155bb2;
      font-weight: 900;
      text-decoration: none;
    }

    @media (max-width: 680px) {
      .brokerage-lead-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 560px) {
      h1 {
        font-size: 30px;
        line-height: 1.12;
        letter-spacing: -0.045em;
      }

      .hero-main {
        padding: 20px 18px 24px;
      }

      .lead {
        font-size: 13px;
      }

      .form-title-row {
        align-items: flex-start;
        gap: 8px;
      }

      .form-title-note {
        min-height: 28px;
        padding: 5px 10px;
        font-size: 12px;
      }

      .input-section-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
      }

      .input-section-title {
        font-size: 15px;
      }

      .input-section-desc {
        font-size: 11px;
      }

      .result-actions {
        width: auto;
        justify-content: flex-end;
        gap: 5px;
      }

      .result-chip {
        min-width: 92px;
        padding: 6px 8px;
        font-size: 10px;
        align-items: flex-end;
      }

      .result-chip span {
        font-size: 13px;
      }

      .calc-toggle {
        padding: 6px 8px;
        font-size: 10px;
      }

      .asset-stage h2 {
        font-size: 22px;
      }

      .asset-stage p {
        font-size: 12px;
      }

      .chart-shell {
        padding: 12px;
      }

      .chart-header h3 {
        font-size: 16px;
      }

      .legend {
        font-size: 10px;
      }

      .chart-footer-buttons {
        width: 100%;
        align-items: stretch;
      }

      .chart-footer-buttons .btn,
      .sp500-data-details,
      .sp500-data-details summary,
      .sp500-data-toggle {
        width: 100%;
      }

      .source-link-box {
        align-items: stretch;
        flex-direction: column;
      }

      .source-link-box a {
        justify-content: center;
      }
    }
  

    /* v23: compact PC input cards */
    .input-sections {
      gap: 10px;
    }

    .input-section {
      padding: 13px 14px;
      gap: 9px;
    }

    .input-section.primary-input {
      background: #fbfdff;
      border-color: var(--line);
    }

    .input-section-header.compact-header {
      display: block;
    }

    .input-section-header.compact-header.input-section-header-action {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .input-section-title {
      font-size: 17px;
      line-height: 1.2;
      margin: 0;
    }

    .input-section-desc,
    .result-chip {
      display: none;
    }

    .input-fields {
      gap: 8px;
    }

    .input-field {
      gap: 4px;
    }

    .input-field label {
      font-size: 11px;
      color: #475569;
    }

    .input-control {
      gap: 7px;
    }

    .input-control input {
      min-height: 39px;
      padding: 8px 11px;
      border-radius: 11px;
    }

    .input-result-row {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      padding-top: 2px;
      min-height: 32px;
    }

    .input-result-row span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .input-result-row b {
      color: #0f604f;
      font-size: 16px;
      font-weight: 950;
      letter-spacing: -0.03em;
      white-space: nowrap;
    }

    .input-section.primary-input .input-result-row b {
      color: #155bb2;
    }

    .input-result-row .calc-toggle {
      min-height: 30px;
      padding: 6px 9px;
      font-size: 11px;
    }

    .calc-panel {
      margin-top: 1px;
    }

    .calc-steps {
      gap: 6px;
      padding: 9px 10px;
    }

    .calc-step {
      padding: 6px 0;
    }

    /* v27: mobile horizontal overflow fix */
    html,
    body {
      width: 100%;
      max-width: 100%;
      overflow-x: clip;
    }

    .page,
    .hero-main,
    .tabs,
    .card,
    .asset-stage,
    .chart-shell,
    .input-section,
    .input-fields,
    .input-field,
    .input-control,
    .chart-result-grid,
    .chart-result-hero,
    .chart-result-breakdown,
    .chart-result-card,
    .chart-footer-action,
    .chart-footer-buttons,
    .notice,
    footer {
      min-width: 0;
      max-width: 100%;
    }

    input,
    button,
    .btn,
    .tab {
      max-width: 100%;
    }

    input {
      min-width: 0;
    }

    .unit {
      white-space: nowrap;
    }

    .source-link-box a,
    .btn {
      white-space: normal;
      overflow-wrap: anywhere;
    }

    @media (max-width: 680px) {
      .page {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
      }

      .hero-main,
      .card,
      .asset-stage {
        width: 100%;
      }

      .tabs {
        width: 100%;
      }

      .input-control {
        grid-template-columns: minmax(0, 1fr) auto;
      }

      .chart-scroll {
        overflow-x: hidden;
      }

      .chart-scroll .asset-svg {
        min-width: 0;
        width: 100%;
      }

      .sp500-data-panel .simulation-table {
        min-width: 0;
      }
    }

    @media (max-width: 420px) {
      .page {
        padding-left: 12px;
        padding-right: 12px;
      }

      .hero-main,
      .card,
      .asset-stage {
        padding-left: 16px;
        padding-right: 16px;
      }

      .chart-shell {
        padding-left: 10px;
        padding-right: 10px;
      }

      .chart-result-hero {
        padding-left: 14px;
        padding-right: 14px;
      }

      .chart-result-card {
        padding-left: 14px;
        padding-right: 14px;
      }
    }

  
    /* v28: simplify monthly summary */
    .monthly-total-card {
      margin: 18px 0;
      border: 1px solid rgba(15, 159, 134, 0.38);
      border-radius: 18px;
      background: rgba(15, 159, 134, 0.18);
      padding: 16px 18px;
      color: #ffffff;
      max-width: 420px;
    }

    .monthly-total-card span {
      display: block;
      color: rgba(255,255,255,0.72);
      font-size: 13px;
      font-weight: 900;
    }

    .monthly-total-card b {
      display: block;
      margin-top: 4px;
      font-size: clamp(30px, 4vw, 44px);
      line-height: 1.1;
      letter-spacing: -0.045em;
    }

    @media (max-width: 680px) {
      .monthly-total-card {
        max-width: 100%;
      }
    }

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

  
    /* v36: 10年 / 30年切り替え */
    .period-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 10px;
      padding: 5px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #f8fbff;
    }

    .period-button {
      appearance: none;
      border: 1px solid transparent;
      background: transparent;
      color: #64748b;
      border-radius: 999px;
      padding: 7px 12px;
      font: inherit;
      font-size: 12px;
      font-weight: 950;
      line-height: 1;
      cursor: pointer;
    }

    .period-button[aria-pressed="true"] {
      background: var(--primary);
      border-color: var(--primary);
      color: #ffffff;
      box-shadow: 0 8px 18px rgba(29, 111, 214, 0.22);
    }

  
    /* v38: PC side-by-side layout */
    @media (min-width: 1080px) {
      .page {
        width: min(1280px, calc(100% - 40px));
      }

      #panel-check .layout {
        grid-template-columns: minmax(380px, 430px) minmax(0, 1fr);
        gap: 20px;
        align-items: start;
      }

      #panel-check .sticky {
        position: sticky;
        top: 78px;
      }

      #panel-check .input-sections {
        grid-template-columns: 1fr;
      }

      .form-card-focused {
        margin-bottom: 0;
      }

      .results-area {
        min-width: 0;
      }

      .asset-stage {
        margin-bottom: 16px;
      }

      .asset-stage h2 {
        font-size: 24px;
      }

      .asset-stage > p {
        font-size: 13px;
      }

      .monthly-total-card {
        max-width: none;
      }
    }

    @media (min-width: 1080px) and (max-height: 820px) {
      #panel-check .sticky {
        position: static;
      }
    }

    /* Root asset-check navigation */
    .site-tabs {
      position: sticky;
      top: 0;
      z-index: 5;
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 10px;
      margin: 22px 0;
      background: rgba(245, 248, 251, 0.88);
      backdrop-filter: blur(14px);
      border: 1px solid rgba(219, 228, 239, 0.82);
      border-radius: 18px;
    }

    .site-tabs a {
      border: 1px solid var(--line);
      background: #ffffff;
      color: #334155;
      padding: 10px 14px;
      border-radius: 999px;
      white-space: nowrap;
      font-weight: 800;
      font-size: 14px;
      line-height: 1.4;
      text-decoration: none;
    }

    .site-tabs a.is-active {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
      box-shadow: 0 10px 22px rgba(29, 111, 214, 0.22);
    }

    .legal-page {
      display: grid;
      gap: 18px;
      max-width: 920px;
      margin: 0 auto;
    }

    .legal-lead {
      margin: 0;
      color: var(--muted);
      line-height: 1.8;
    }

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

    .policy-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 16px;
      background: #ffffff;
    }

    .policy-card h3 {
      margin: 0 0 8px;
      font-size: 16px;
    }

    .policy-card p,
    .policy-list {
      margin: 0;
      color: var(--ink);
      line-height: 1.8;
    }

    .policy-list {
      padding-left: 1.2em;
    }

    .review-note {
      border-left: 4px solid var(--primary);
      padding: 12px 14px;
      background: #fff8ec;
      color: var(--ink);
      line-height: 1.7;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 14px;
      margin-bottom: 12px;
    }

    .footer-links a {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px solid currentColor;
    }

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

    /* Shared site frame: used by public top-level content pages. */
    :root {
      --primary: #2f6e62;
      --primary-soft: #eaf3f0;
      --accent: #3e6b8a;
      --accent-soft: #eef4f7;
      --line: #dfe8e3;
      --bg: #f7f8f5;
      --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 14px 34px rgba(16, 24, 40, .06);
      --radius: 16px;
    }

    html,
    body {
      width: 100%;
      max-width: 100%;
      overflow-x: clip;
    }

    body {
      background:
        radial-gradient(circle at 10% 0%, rgba(47, 110, 98, .11), transparent 28rem),
        radial-gradient(circle at 92% 4%, rgba(62, 107, 138, .10), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 36rem);
    }

    .page {
      width: min(100% - 48px, 1440px);
      margin-inline: auto;
      padding: 28px 0 72px;
    }

    .site-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      margin-bottom: 22px;
    }

    .brand {
      color: var(--ink);
      text-decoration: none;
    }

    .nurume-face {
      border-radius: 14px;
      background:
        radial-gradient(circle at 35% 42%, #172033 0 2px, transparent 2.5px),
        radial-gradient(circle at 65% 42%, #172033 0 2px, transparent 2.5px),
        linear-gradient(145deg, #f8fbff, #dceef5);
      border: 1px solid #d6e3ee;
      box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    }

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

    .page-hero {
      position: relative;
      overflow: hidden;
      display: grid;
      gap: 14px;
      margin-bottom: 18px;
      padding: 38px 40px;
      border: 1px solid rgba(223, 232, 227, .96);
      border-radius: 22px;
      background: rgba(255, 255, 255, .9);
      box-shadow: var(--shadow);
    }

    .page-hero::after {
      content: "";
      position: absolute;
      right: -64px;
      top: -70px;
      width: 210px;
      height: 210px;
      border-radius: 999px;
      background: rgba(47, 110, 98, .08);
      pointer-events: none;
    }

    .hero-label {
      width: fit-content;
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      padding: 6px 12px;
      border-radius: 999px;
      background: var(--primary-soft);
      color: #23534a;
      font-size: 13px;
      font-weight: 900;
      line-height: 1.35;
    }

    .page-hero h1 {
      position: relative;
      z-index: 1;
      margin: 0;
      max-width: 900px;
      font-size: clamp(34px, 4.8vw, 62px);
      line-height: 1.12;
      letter-spacing: -0.045em;
    }

    .page-hero p {
      position: relative;
      z-index: 1;
      margin: 0;
      max-width: 920px;
      color: #344054;
      font-size: 16px;
      line-height: 1.85;
    }

    .global-nav {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      overflow: visible;
      padding: 10px;
      margin: 18px 0 22px;
      border: 1px solid rgba(223, 232, 227, .9);
      border-radius: 18px;
      background: rgba(247, 248, 245, .92);
      backdrop-filter: blur(12px);
    }

    .global-nav a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 8px 14px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #ffffff;
      color: #344054;
      text-decoration: none;
      white-space: nowrap;
      font-size: 14px;
      font-weight: 850;
      line-height: 1.35;
    }

    .global-nav a.is-active,
    .global-nav a[aria-current="page"] {
      border-color: var(--primary);
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 10px 22px rgba(47, 110, 98, .18);
    }

    .card {
      border-color: rgba(223, 232, 227, .96);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .btn.primary {
      background: var(--primary);
      box-shadow: 0 12px 22px rgba(47, 110, 98, .18);
    }

    footer {
      margin-top: 34px;
      padding-top: 22px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.8;
    }

    footer p {
      margin: 0;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 14px;
      margin-bottom: 12px;
    }

    .footer-links a {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px solid currentColor;
    }

    @media (max-width: 900px) {
      .site-header {
        align-items: flex-start;
        flex-direction: column;
      }

      .header-note {
        text-align: left;
      }
    }

    @media (max-width: 640px) {
      .page {
        width: min(100% - 32px, 100%);
        padding-top: 18px;
      }

      .page-hero {
        padding: 24px 20px;
        border-radius: 18px;
      }

      .page-hero h1 {
        font-size: 32px;
      }

      .page-hero p {
        font-size: 14px;
      }

      .global-nav {
        align-items: stretch;
      }

      .global-nav a {
        white-space: normal;
        text-align: center;
      }
    }

    /* Top page mobile live chart restored for the asset simulation. */
    .mobile-live-result {
      display: none;
    }

    .mobile-live-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
    }

    .mobile-live-copy {
      min-width: 0;
      display: grid;
      gap: 3px;
    }

    .mobile-live-copy span {
      color: rgba(255, 255, 255, .76);
      font-size: 11px;
      font-weight: 900;
      line-height: 1.35;
    }

    .mobile-live-copy b {
      color: #ffffff;
      font-size: clamp(28px, 8vw, 36px);
      line-height: 1.02;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .mobile-live-copy small {
      color: rgba(232, 255, 249, .86);
      font-size: 11px;
      font-weight: 850;
      line-height: 1.35;
    }

    .mobile-live-link {
      appearance: none;
      flex: 0 0 auto;
      min-width: 68px;
      min-height: 34px;
      padding: 0 14px;
      border: 1px solid rgba(255, 255, 255, .28);
      border-radius: 999px;
      background: rgba(255, 255, 255, .12);
      color: #ffffff;
      font-size: 11px;
      font-weight: 950;
      cursor: pointer;
    }

    .mobile-live-chart-wrap {
      position: relative;
      min-height: 78px;
      padding: 6px 8px;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 16px;
      background: rgba(255, 255, 255, .08);
      overflow: hidden;
    }

    .mobile-mini-chart {
      display: block;
      width: 100%;
      height: 76px;
    }

    .mini-grid,
    .mini-axis {
      fill: none;
      stroke: rgba(255, 255, 255, .11);
      stroke-width: 1;
    }

    .mini-area {
      fill: rgba(143, 240, 212, .16);
      stroke: none;
    }

    .mini-line-cash,
    .mini-line-invest {
      fill: none;
      stroke-width: 2.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .mini-line-cash {
      stroke: rgba(255, 255, 255, .6);
      stroke-dasharray: 4 4;
    }

    .mini-line-invest {
      stroke: #8ff0d4;
    }

    .mini-dot {
      fill: #ffffff;
      stroke: #2f6e62;
      stroke-width: 1.8;
    }

    .mini-label,
    .mini-tick {
      fill: rgba(255, 255, 255, .82);
      font-size: 8.8px;
      font-weight: 800;
    }

    .mini-tick {
      fill: rgba(255, 255, 255, .56);
      font-size: 8px;
      font-weight: 700;
    }

    .mobile-live-foot {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      color: rgba(232, 255, 249, .9);
      font-size: 11px;
      font-weight: 850;
      line-height: 1.35;
    }

    .mobile-live-foot strong {
      color: #ffffff;
      font-size: 12px;
      white-space: nowrap;
    }

    @media (max-width: 760px) {
      body.has-mobile-live-result {
        padding-bottom: 176px;
      }

      #mobileLiveResult {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 60;
        display: grid;
        gap: 8px;
        min-height: 124px;
        padding: 10px 12px;
        border: 1px solid rgba(184, 236, 214, .64);
        border-radius: 20px;
        background: linear-gradient(155deg, rgba(22, 37, 58, .97), rgba(31, 78, 71, .97));
        color: #ffffff;
        box-shadow: 0 18px 42px rgba(22, 37, 58, .26), 0 2px 8px rgba(22, 37, 58, .18);
        backdrop-filter: blur(14px);
      }

      #mobileLiveResult[hidden] {
        display: none !important;
      }

      #mobileLiveResult.is-typing {
        min-height: 112px;
        padding-block: 9px;
        gap: 6px;
      }

      #mobileLiveResult .mobile-live-chart-wrap {
        min-height: 58px;
      }

      #mobileLiveResult .mobile-mini-chart {
        height: 56px;
      }

      #mobileLiveResult .mobile-live-foot {
        font-size: 10px;
      }

      #mobileLiveResult.is-typing .mobile-mini-chart {
        height: 48px;
      }

      #mobileLiveResult.is-typing .mobile-live-chart-wrap {
        min-height: 50px;
      }

      #mobileLiveResult.is-typing .mobile-live-copy b {
        font-size: 24px;
      }

      #mobileLiveResult.is-typing .mobile-live-foot {
        font-size: 10px;
      }
    }

    /* v39: review v24 input panel on the public top page. */
    #panel-check .input-panel {
      padding: 0;
      overflow: hidden;
    }

    #panel-check .input-panel .card-inner {
      padding: 18px;
    }

    #panel-check .input-panel .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 10px;
    }

    #panel-check .input-panel .section-head h2 {
      margin: 0;
      font-size: 22px;
      line-height: 1.25;
      letter-spacing: -0.035em;
    }

    #panel-check .pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 30px;
      padding: 5px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #ffffff;
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
      line-height: 1.35;
      white-space: nowrap;
    }

    #panel-check .pill.primary {
      border-color: #c9ddd7;
      background: var(--primary-soft);
      color: #23534a;
    }

    #panel-check .input-stack {
      display: grid;
      gap: 10px;
    }

    #panel-check .input-panel .input-section {
      display: grid;
      gap: 10px;
      padding: 13px 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fafbf8;
    }

    #panel-check .input-panel .input-section.primary-input {
      border-color: #c9ddd7;
      background: linear-gradient(180deg, #ffffff 0%, #f3faf7 100%);
    }

    #panel-check .input-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    #panel-check .input-title {
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    #panel-check .input-title strong {
      color: var(--ink);
      font-size: 15px;
      line-height: 1.4;
      letter-spacing: -0.02em;
    }

    #panel-check .status-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      min-height: 28px;
      padding: 4px 9px;
      border-radius: 999px;
      background: #eef4f7;
      color: var(--accent);
      font-size: 11px;
      font-weight: 950;
      line-height: 1.35;
      white-space: nowrap;
    }

    #panel-check .status-badge.good {
      background: #eef6f1;
      color: #2f7d5b;
    }

    #panel-check .status-badge.warn {
      background: #fff4e8;
      color: #b45309;
    }

    #panel-check .status-badge.neutral {
      background: #eef2f7;
      color: #536273;
    }

    #panel-check .field-grid {
      display: grid;
      gap: 8px;
    }

    #panel-check .field-row {
      display: grid;
      gap: 6px;
    }

    #panel-check .field-row label,
    #panel-check .mobile-input-label {
      color: #334155;
      font-size: 11px;
      font-weight: 900;
      line-height: 1.4;
    }

    #panel-check .mobile-input-label {
      display: block;
      margin-bottom: 5px;
    }

    #panel-check .input-control {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      min-width: 0;
      max-width: 100%;
      padding: 0 12px 0 0;
      overflow: hidden;
      border: 2px solid #b8d2c6;
      border-radius: 13px;
      background: #ffffff;
      box-shadow: inset 4px 0 0 #2f6e62, 0 1px 0 rgba(255, 255, 255, .9);
    }

    #panel-check .input-control:focus-within {
      border-color: #2f6e62;
      box-shadow: inset 4px 0 0 #2f6e62, 0 0 0 4px rgba(47, 110, 98, .12);
    }

    #panel-check .input-control input {
      width: 100%;
      min-width: 0;
      min-height: 44px;
      padding: 9px 12px 9px 18px;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--ink);
      font-size: 15px;
      font-weight: 900;
      appearance: textfield;
    }

    #panel-check .input-control input:focus {
      outline: none;
    }

    #panel-check .input-control input::placeholder {
      color: #8a98a4;
      font-weight: 850;
    }

    #panel-check .input-control .unit {
      color: #496157;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    #panel-check .mobile-subfield {
      display: grid;
      gap: 6px;
      padding: 8px 10px;
      border: 1px dashed #d6e2dc;
      border-radius: 13px;
      background: #fbfefd;
    }

    #panel-check .compact-line-field {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 120px;
      gap: 8px;
      align-items: center;
    }

    #panel-check .input-control.compact-control input {
      min-height: 40px;
      padding: 8px 10px 8px 18px;
      font-size: 14px;
    }

    #panel-check .result-row {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 10px 12px;
      border: 1px solid #b8e3d0;
      border-radius: 13px;
      background: linear-gradient(180deg, #f4fdf8 0%, #eef9f3 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
    }

    #panel-check .candidate-result {
      display: grid;
      gap: 2px;
      justify-items: end;
      min-width: 0;
      text-align: right;
    }

    #panel-check .result-row span {
      color: #557166;
      font-size: 11px;
      font-weight: 900;
      line-height: 1.35;
    }

    #panel-check .result-row b {
      color: #0f604f;
      font-size: 16px;
      font-weight: 950;
      line-height: 1.1;
      letter-spacing: 0;
      white-space: nowrap;
    }

    #panel-check .calc-toggle {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      min-height: 32px;
      padding: 5px 10px;
      border: 1px solid #d7e3eb;
      border-radius: 999px;
      background: #ffffff;
      color: var(--accent);
      font: inherit;
      font-size: 11px;
      font-weight: 900;
      line-height: 1.35;
      cursor: pointer;
      white-space: nowrap;
    }

    #panel-check .calc-toggle::before {
      content: "+";
      margin-right: 6px;
      color: var(--muted);
      font-weight: 950;
    }

    #panel-check .calc-toggle[aria-expanded="true"]::before {
      content: "-";
    }

    #panel-check .formula-box {
      display: grid;
      gap: 6px;
      padding: 11px 12px;
      border: 1px dashed #cbd7d1;
      border-radius: 13px;
      background: #ffffff;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.65;
    }

    #panel-check .formula-box[hidden] {
      display: none !important;
    }

    #panel-check .formula-box strong {
      color: var(--ink);
      font-size: 12px;
    }

    #panel-check .formula-line {
      color: #3f4b59;
      font-weight: 750;
    }

    #panel-check .reason-line {
      color: var(--muted);
    }

    #panel-check .context-action {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 42px;
      padding: 9px 12px;
      border: 1px solid #cfe0f4;
      border-radius: 13px;
      background: #f8fbff;
      color: #2e4f6f;
      font-size: 12px;
      font-weight: 900;
      line-height: 1.45;
      text-decoration: none;
    }

    #panel-check .context-action::after {
      content: ">";
      color: #2e6ac8;
      font-size: 17px;
      line-height: 1;
      flex: 0 0 auto;
    }

    #panel-check .pre-input-action {
      margin: -1px 0 1px;
    }

    #panel-check .post-result-action {
      margin-top: -2px;
    }

    #panel-check .input-total-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-top: 12px;
      padding: 16px 18px;
      border: 1px solid #b8ecd6;
      border-radius: 16px;
      background: #f4fdf8;
      color: #0f604f;
    }

    #panel-check .input-total-card span {
      color: #0f604f;
      font-size: 13px;
      font-weight: 950;
      line-height: 1.45;
    }

    #panel-check .input-total-card b {
      color: #0f604f;
      font-size: clamp(24px, 3vw, 32px);
      line-height: 1.05;
      letter-spacing: 0;
      white-space: nowrap;
    }

    @media (max-width: 760px) {
      #panel-check .input-panel .section-head {
        align-items: flex-start;
      }

      #panel-check .compact-line-field {
        grid-template-columns: minmax(0, 1fr) 116px;
      }

      #panel-check .result-row b,
      #panel-check .input-total-card b {
        white-space: nowrap;
      }
    }

    @media (max-width: 420px) {
      #panel-check .input-panel .card-inner {
        padding: 16px;
      }

      #panel-check .input-panel .section-head {
        gap: 8px;
      }

      #panel-check .input-panel .section-head h2 {
        font-size: 20px;
      }

      #panel-check .compact-line-field {
        grid-template-columns: minmax(0, 1fr) 104px;
      }

      #panel-check .result-row,
      #panel-check .input-total-card {
        padding-left: 12px;
        padding-right: 12px;
      }
    }

    /* v40: organized lower action and explanation area. */
    #panel-check {
      display: grid;
      gap: 22px;
    }

    #panel-check .layout {
      margin-bottom: 2px;
    }

    #panel-check .asset-stage .chart-footer-action {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "note action"
        "panel panel";
      gap: 12px 18px;
      align-items: end;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
    }

    #panel-check .asset-stage .chart-footer-note {
      grid-area: note;
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    #panel-check .asset-stage .chart-footer-action p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.7;
    }

    #panel-check .asset-stage .chart-footer-buttons {
      grid-area: action;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    #panel-check .asset-stage .sp500-data-details {
      min-width: 0;
      margin: 0;
    }

    #panel-check .asset-stage .sp500-data-details summary,
    #panel-check .asset-stage .sp500-data-toggle {
      justify-self: end;
      align-self: end;
      justify-content: center;
      margin: 0;
      white-space: nowrap;
    }

    #panel-check .asset-stage .sp500-data-details[open] summary {
      margin-bottom: 0;
    }

    #panel-check .asset-stage .sp500-data-panel {
      grid-area: panel;
      width: 100%;
      min-width: 0;
      max-width: 100%;
      margin-top: 2px;
    }

    #panel-check .asset-stage .sp500-data-panel[hidden] {
      display: none !important;
    }

    #panel-check .next-step-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 20px;
      align-items: center;
      padding: 26px 28px;
      border: 1px solid rgba(223, 232, 227, .96);
      border-radius: 16px;
      background: rgba(255, 255, 255, .94);
      box-shadow: var(--shadow);
    }

    #panel-check .next-step-card h2 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(22px, 2.2vw, 28px);
      line-height: 1.35;
      letter-spacing: 0;
    }

    #panel-check .next-step-card p {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
    }

    #panel-check .next-step-card .btn {
      min-width: 240px;
      min-height: 56px;
      border-color: var(--primary);
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 12px 22px rgba(47, 110, 98, .18);
      white-space: nowrap;
    }

    @media (max-width: 900px) {
      #panel-check .asset-stage .chart-footer-action {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
          "note"
          "action"
          "panel";
      }

      #panel-check .asset-stage .sp500-data-details summary,
      #panel-check .asset-stage .sp500-data-toggle {
        justify-self: end;
      }

      #panel-check .asset-stage .chart-footer-buttons {
        justify-content: flex-end;
        width: 100%;
      }

      #panel-check .asset-stage .sp500-data-details {
        width: 100%;
        max-width: 100%;
      }

      #panel-check .asset-stage .sp500-data-details summary,
      #panel-check .asset-stage .sp500-data-toggle {
        width: 100%;
        max-width: 100%;
      }

      #panel-check .next-step-card {
        grid-template-columns: 1fr;
        align-items: stretch;
      }

      #panel-check .next-step-card .btn {
        width: 100%;
        min-width: 0;
      }
    }

    @media (max-width: 420px) {
      #panel-check {
        gap: 18px;
      }

      #panel-check .next-step-card {
        padding: 20px;
      }

      #panel-check .next-step-card h2 {
        font-size: 22px;
      }

      #panel-check .next-step-card p {
        font-size: 13px;
      }

    }
