@scope (#original-content) {

    #hm-msn-calc,
    #hm-msn-calc * {
      box-sizing: border-box;
    }

    #hm-msn-calc {
      background: #ffffff;
      color: #132033;
      font-family: Arial, Helvetica, sans-serif;
      font-weight: 600;
      line-height: 1.65;
      padding: 28px 16px;
    }

    #hm-msn-calc .hm-wrap {
      max-width: 1180px;
      margin: 0 auto;
    }

    #hm-msn-calc h1,
    #hm-msn-calc h2,
    #hm-msn-calc h3,
    #hm-msn-calc h4 {
      color: #0f172a;
      font-weight: 800;
      line-height: 1.25;
      margin: 0 0 14px;
    }

    #hm-msn-calc h1 {
      font-size: clamp(34px, 5vw, 58px);
      letter-spacing: -0.04em;
    }

    #hm-msn-calc h2 {
      font-size: clamp(26px, 3vw, 38px);
      margin-top: 36px;
    }

    #hm-msn-calc h3 {
      font-size: clamp(20px, 2.2vw, 27px);
      margin-top: 24px;
    }

    #hm-msn-calc p,
    #hm-msn-calc li,
    #hm-msn-calc td,
    #hm-msn-calc th {
      font-size: 17px;
      color: #26364d;
      font-weight: 600;
    }

    #hm-msn-calc a {
      color: #0f5fd8;
      font-weight: 800;
      text-decoration: none;
    }

    #hm-msn-calc .hm-hero {
      background:
        radial-gradient(circle at 20% 10%, #eaf4ff 0, transparent 38%),
        radial-gradient(circle at 90% 0%, #fff5db 0, transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
      border: 1px solid #e6eefb;
      border-radius: 28px;
      padding: clamp(24px, 5vw, 52px);
      box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
      margin-bottom: 24px;
    }

    #hm-msn-calc .hm-kicker {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      background: #eef6ff;
      color: #144c9e;
      border: 1px solid #dbeafe;
      padding: 8px 14px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 16px;
    }

    #hm-msn-calc .hm-lead {
      max-width: 880px;
      font-size: 19px;
      color: #334155;
      margin: 0 0 20px;
    }

    #hm-msn-calc .hm-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }

    #hm-msn-calc .hm-badge {
      background: #ffffff;
      border: 1px solid #dbeafe;
      color: #1e3a8a;
      padding: 9px 13px;
      border-radius: 999px;
      box-shadow: 0 6px 20px rgba(30, 58, 138, 0.06);
      font-size: 14px;
      font-weight: 800;
    }

    #hm-msn-calc .hm-card {
      background: #ffffff;
      border: 1px solid #e5edf7;
      border-radius: 24px;
      padding: clamp(18px, 3vw, 30px);
      box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
      margin: 18px 0;
    }

    #hm-msn-calc .hm-grid {
      
      grid-template-columns: 1.05fr 0.95fr;
      gap: 22px;
      align-items: start;
    }

    #hm-msn-calc .hm-factor-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1.25fr auto;
      gap: 10px;
      align-items: end;
      background: #f8fbff;
      border: 1px solid #e5edf7;
      border-radius: 18px;
      padding: 14px;
      margin-bottom: 12px;
    }

    #hm-msn-calc label {
      display: block;
      color: #152238;
      font-size: 14px;
      font-weight: 800;
      margin-bottom: 6px;
    }

    #hm-msn-calc input,
    #hm-msn-calc select {
      width: 100%;
      border: 1px solid #cfe0f5;
      background: #ffffff;
      color: #0f172a;
      border-radius: 14px;
      padding: 12px 13px;
      font-size: 16px;
      font-weight: 800;
      outline: none;
      transition: 0.2s ease;
    }

    #hm-msn-calc input:focus,
    #hm-msn-calc select:focus {
      border-color: #60a5fa;
      box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
    }

    #hm-msn-calc .hm-input-help {
      font-size: 13px;
      color: #52657f;
      margin-top: 6px;
      font-weight: 700;
    }

    #hm-msn-calc .hm-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }

    #hm-msn-calc button {
      border: 0;
      border-radius: 14px;
      padding: 12px 16px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 900;
      transition: 0.2s ease;
    }

    #hm-msn-calc .hm-btn-primary {
      background: #2563eb;
      color: #ffffff;
      box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
    }

    #hm-msn-calc .hm-btn-primary:hover {
      background: #1d4ed8;
      transform: translateY(-1px);
    }

    #hm-msn-calc .hm-btn-soft {
      background: #eff6ff;
      color: #1d4ed8;
      border: 1px solid #dbeafe;
    }

    #hm-msn-calc .hm-btn-soft:hover {
      background: #dbeafe;
    }

    #hm-msn-calc .hm-btn-danger {
      background: #fff1f2;
      color: #be123c;
      border: 1px solid #ffe4e6;
      padding: 11px 13px;
    }

    #hm-msn-calc .hm-result-box {
      background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
      border: 1px solid #dbeafe;
      border-radius: 22px;
      padding: 20px;
      min-height: 260px;
    }

    #hm-msn-calc .hm-result-title {
      font-size: 15px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #1d4ed8;
      font-weight: 900;
      margin-bottom: 8px;
    }

    #hm-msn-calc .hm-final {
      font-size: clamp(24px, 3vw, 38px);
      color: #0f172a;
      font-weight: 900;
      line-height: 1.25;
      padding: 14px;
      background: #ffffff;
      border: 1px solid #e5edf7;
      border-radius: 18px;
      margin: 10px 0 14px;
      word-break: break-word;
    }

    #hm-msn-calc .hm-muted {
      color: #64748b;
      font-size: 15px;
      font-weight: 700;
    }

    #hm-msn-calc .hm-step {
      background: #ffffff;
      border: 1px solid #e5edf7;
      border-radius: 16px;
      padding: 13px 14px;
      margin: 10px 0;
      color: #26364d;
    }

    #hm-msn-calc .hm-error {
      background: #fff1f2;
      color: #9f1239;
      border: 1px solid #fecdd3;
      border-radius: 16px;
      padding: 14px;
      font-weight: 800;
    }

    #hm-msn-calc .hm-options-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 14px;
    }

    #hm-msn-calc .hm-example-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin-top: 10px;
    }

    #hm-msn-calc .hm-formula {
      background: #f8fbff;
      border: 1px solid #dbeafe;
      border-radius: 18px;
      padding: 18px;
      color: #0f172a;
      font-size: 20px;
      font-weight: 900;
      overflow-x: auto;
      margin: 16px 0;
    }

    #hm-msn-calc .hm-callout {
      background: #fffbeb;
      border: 1px solid #fde68a;
      color: #713f12;
      border-radius: 18px;
      padding: 18px;
      margin: 18px 0;
    }

    #hm-msn-calc .hm-callout strong {
      color: #713f12;
      font-weight: 900;
    }

    #hm-msn-calc .hm-light-callout {
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      color: #14532d;
      border-radius: 18px;
      padding: 18px;
      margin: 18px 0;
    }

    #hm-msn-calc .hm-toc {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 18px;
    }

    #hm-msn-calc .hm-toc a {
      display: block;
      background: #f8fbff;
      border: 1px solid #e5edf7;
      border-radius: 16px;
      padding: 12px 14px;
      color: #1e3a8a;
      font-size: 15px;
      font-weight: 900;
    }

    #hm-msn-calc table {
      width: 100%;
      border-collapse: collapse;
      margin: 18px 0;
      overflow: hidden;
      border-radius: 18px;
      border: 1px solid #e5edf7;
      background: #ffffff;
    }

    #hm-msn-calc th {
      background: #eff6ff;
      color: #0f172a;
      text-align: left;
      font-weight: 900;
    }

    #hm-msn-calc th,
    #hm-msn-calc td {
      padding: 13px 14px;
      border-bottom: 1px solid #e5edf7;
      vertical-align: top;
    }

    #hm-msn-calc tr:last-child td {
      border-bottom: 0;
    }

    #hm-msn-calc details {
      background: #ffffff;
      border: 1px solid #e5edf7;
      border-radius: 18px;
      padding: 14px 16px;
      margin: 12px 0;
    }

    #hm-msn-calc summary {
      cursor: pointer;
      color: #0f172a;
      font-size: 18px;
      font-weight: 900;
    }

    #hm-msn-calc .hm-two-col {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }

    #hm-msn-calc .hm-mini-card {
      background: #f8fbff;
      border: 1px solid #e5edf7;
      border-radius: 18px;
      padding: 16px;
    }

    #hm-msn-calc .hm-footer-note {
      margin-top: 28px;
      padding: 18px;
      background: #f8fbff;
      border: 1px solid #e5edf7;
      border-radius: 18px;
      color: #334155;
      font-size: 15px;
    }

    @media (max-width: 900px) {
      #hm-msn-calc .hm-grid,
      #hm-msn-calc .hm-two-col {
        grid-template-columns: 1fr;
      }

      #hm-msn-calc .hm-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      #hm-msn-calc .hm-factor-row {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 560px) {
      #hm-msn-calc {
        padding: 18px 10px;
      }

      #hm-msn-calc .hm-card,
      #hm-msn-calc .hm-hero {
        border-radius: 20px;
      }

      #hm-msn-calc .hm-toc,
      #hm-msn-calc .hm-options-grid {
        grid-template-columns: 1fr;
      }

      #hm-msn-calc table {
        display: block;
        overflow-x: auto;
      }
    }
  
}
