@scope (#original-content) {

    #hm-ess-regents-calculator,
    #hm-ess-regents-calculator * {
      box-sizing: border-box;
    }

    #hm-ess-regents-calculator {
      --hm-bg: #ffffff;
      --hm-soft: #f7fbff;
      --hm-card: #ffffff;
      --hm-ink: #102033;
      --hm-muted: #516272;
      --hm-blue: #2563eb;
      --hm-blue-dark: #1d4ed8;
      --hm-green: #15803d;
      --hm-amber: #b45309;
      --hm-red: #b91c1c;
      --hm-border: #dbeafe;
      --hm-shadow: 0 18px 45px rgba(37, 99, 235, 0.10);
      width: 100%;
      background: var(--hm-bg);
      color: var(--hm-ink);
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.72;
      font-weight: 650;
      padding: 24px 14px;
    }

    #hm-ess-regents-calculator .hm-ess-container {
      max-width: 1180px;
      margin: 0 auto;
    }

    #hm-ess-regents-calculator h1,
    #hm-ess-regents-calculator h2,
    #hm-ess-regents-calculator h3 {
      color: var(--hm-ink);
      line-height: 1.25;
      font-weight: 950;
      margin: 0 0 14px;
    }

    #hm-ess-regents-calculator h1 {
      font-size: clamp(2rem, 4vw, 3.55rem);
      letter-spacing: -0.04em;
    }

    #hm-ess-regents-calculator h2 {
      font-size: clamp(1.5rem, 2.35vw, 2.3rem);
      margin-top: 34px;
    }

    #hm-ess-regents-calculator h3 {
      font-size: clamp(1.22rem, 1.75vw, 1.6rem);
      margin-top: 24px;
    }

    #hm-ess-regents-calculator p {
      color: var(--hm-muted);
      font-size: 1.02rem;
      margin: 0 0 16px;
      font-weight: 650;
    }

    #hm-ess-regents-calculator a {
      color: var(--hm-blue-dark);
      font-weight: 900;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    #hm-ess-regents-calculator .hm-ess-hero {
      background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f6fbff 55%, #eef6ff 100%);
      border: 1px solid var(--hm-border);
      border-radius: 30px;
      box-shadow: var(--hm-shadow);
      padding: clamp(22px, 4vw, 46px);
      overflow: hidden;
    }

    #hm-ess-regents-calculator .hm-ess-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: #eaf3ff;
      color: #1d4ed8;
      border: 1px solid #bfdbfe;
      border-radius: 999px;
      font-size: .9rem;
      font-weight: 950;
      margin-bottom: 16px;
    }

    #hm-ess-regents-calculator .hm-ess-hero-grid {
      display: grid;
      grid-template-columns: 1.25fr .75fr;
      gap: 22px;
      align-items: stretch;
    }

    #hm-ess-regents-calculator .hm-ess-hero-card,
    #hm-ess-regents-calculator .hm-ess-panel,
    #hm-ess-regents-calculator .hm-ess-content-card {
      background: var(--hm-card);
      border: 1px solid var(--hm-border);
      box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    }

    #hm-ess-regents-calculator .hm-ess-hero-card {
      border-radius: 24px;
      padding: 20px;
    }

    #hm-ess-regents-calculator .hm-ess-stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-top: 18px;
    }

    #hm-ess-regents-calculator .hm-ess-stat {
      background: #ffffff;
      border: 1px solid var(--hm-border);
      border-radius: 18px;
      padding: 14px;
    }

    #hm-ess-regents-calculator .hm-ess-stat strong {
      display: block;
      font-size: 1.45rem;
      font-weight: 950;
      color: var(--hm-blue-dark);
      line-height: 1.15;
    }

    #hm-ess-regents-calculator .hm-ess-stat span {
      display: block;
      color: var(--hm-muted);
      font-size: .9rem;
      font-weight: 850;
      margin-top: 4px;
    }

    #hm-ess-regents-calculator .hm-ess-tool {
      margin-top: 26px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 390px;
      gap: 20px;
      align-items: start;
    }

    #hm-ess-regents-calculator .hm-ess-panel {
      border-radius: 26px;
      padding: clamp(18px, 2.4vw, 28px);
    }

    #hm-ess-regents-calculator .hm-ess-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    #hm-ess-regents-calculator .hm-ess-field {
      background: var(--hm-soft);
      border: 1px solid var(--hm-border);
      border-radius: 18px;
      padding: 14px;
    }

    #hm-ess-regents-calculator .hm-ess-field label {
      display: block;
      font-size: .92rem;
      color: #263b52;
      font-weight: 950;
      margin-bottom: 7px;
    }

    #hm-ess-regents-calculator input[type="number"],
    #hm-ess-regents-calculator select {
      width: 100%;
      background: #ffffff;
      color: var(--hm-ink);
      border: 1px solid #bfd7ff;
      border-radius: 14px;
      font-size: 1.05rem;
      font-weight: 900;
      padding: 12px 12px;
      outline: none;
    }

    #hm-ess-regents-calculator input[type="number"]:focus,
    #hm-ess-regents-calculator select:focus {
      border-color: var(--hm-blue);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    }

    #hm-ess-regents-calculator .hm-ess-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 18px;
    }

    #hm-ess-regents-calculator .hm-ess-tabs label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 13px;
      border: 1px solid #cfe2ff;
      background: #f8fbff;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 950;
      color: #1f3b5a;
    }

    #hm-ess-regents-calculator .hm-ess-tabs input {
      accent-color: var(--hm-blue);
    }

    #hm-ess-regents-calculator .hm-ess-range-row {
      display: grid;
      grid-template-columns: 1fr 90px;
      gap: 12px;
      align-items: center;
      margin-top: 8px;
    }

    #hm-ess-regents-calculator input[type="range"] {
      width: 100%;
      accent-color: var(--hm-blue);
    }

    #hm-ess-regents-calculator .hm-ess-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }

    #hm-ess-regents-calculator .hm-ess-btn {
      appearance: none;
      border: none;
      border-radius: 16px;
      padding: 13px 18px;
      font-weight: 950;
      cursor: pointer;
      font-size: 1rem;
      transition: transform .18s ease, box-shadow .18s ease;
    }

    #hm-ess-regents-calculator .hm-ess-btn:hover {
      transform: translateY(-1px);
    }

    #hm-ess-regents-calculator .hm-ess-btn-primary {
      background: linear-gradient(135deg, var(--hm-blue), #60a5fa);
      color: #ffffff;
      box-shadow: 0 12px 22px rgba(37, 99, 235, .22);
    }

    #hm-ess-regents-calculator .hm-ess-btn-light {
      background: #eef6ff;
      color: #17406b;
      border: 1px solid #bfdbfe;
    }

    #hm-ess-regents-calculator .hm-ess-results {
      position: sticky;
      top: 16px;
    }

    #hm-ess-regents-calculator .hm-ess-score-box {
      text-align: center;
      padding: 22px 18px;
      border-radius: 24px;
      background:
        radial-gradient(circle at top, rgba(37, 99, 235, .18), transparent 38%),
        #ffffff;
      border: 1px solid var(--hm-border);
    }

    #hm-ess-regents-calculator .hm-ess-big-score {
      font-size: clamp(3rem, 7vw, 5.5rem);
      font-weight: 950;
      letter-spacing: -0.06em;
      color: var(--hm-blue-dark);
      line-height: 1;
      margin: 10px 0;
    }

    #hm-ess-regents-calculator .hm-ess-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 8px 12px;
      font-size: .92rem;
      font-weight: 950;
      background: #eaf3ff;
      color: #1d4ed8;
      border: 1px solid #bfdbfe;
      margin: 4px;
    }

    #hm-ess-regents-calculator .hm-ess-pill.green {
      background: #ecfdf3;
      color: var(--hm-green);
      border-color: #bbf7d0;
    }

    #hm-ess-regents-calculator .hm-ess-pill.amber {
      background: #fff7ed;
      color: var(--hm-amber);
      border-color: #fed7aa;
    }

    #hm-ess-regents-calculator .hm-ess-pill.red {
      background: #fef2f2;
      color: var(--hm-red);
      border-color: #fecaca;
    }

    #hm-ess-regents-calculator .hm-ess-progress {
      background: #e5efff;
      border-radius: 999px;
      overflow: hidden;
      height: 13px;
      margin: 14px 0 6px;
    }

    #hm-ess-regents-calculator .hm-ess-progress span {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, var(--hm-blue), #38bdf8);
      width: 0%;
      transition: width .3s ease;
    }

    #hm-ess-regents-calculator .hm-ess-note {
      background: #fffaf0;
      border: 1px solid #fde68a;
      border-radius: 18px;
      padding: 14px;
      color: #7c4a03;
      font-size: .95rem;
      font-weight: 850;
      margin-top: 14px;
    }

    #hm-ess-regents-calculator .hm-ess-success {
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      color: #14532d;
    }

    #hm-ess-regents-calculator .hm-ess-danger {
      background: #fef2f2;
      border: 1px solid #fecaca;
      color: #7f1d1d;
    }

    #hm-ess-regents-calculator .hm-ess-table-wrap {
      width: 100%;
      overflow-x: auto;
      border: 1px solid var(--hm-border);
      border-radius: 20px;
      background: #ffffff;
      margin: 18px 0;
    }

    #hm-ess-regents-calculator table {
      width: 100%;
      border-collapse: collapse;
      min-width: 720px;
    }

    #hm-ess-regents-calculator th,
    #hm-ess-regents-calculator td {
      padding: 12px 13px;
      border-bottom: 1px solid #e7f0ff;
      text-align: left;
      font-weight: 800;
      color: #25364a;
      vertical-align: top;
    }

    #hm-ess-regents-calculator th {
      background: #eef6ff;
      color: #123055;
      font-weight: 950;
    }

    #hm-ess-regents-calculator tr:last-child td {
      border-bottom: none;
    }

    #hm-ess-regents-calculator .hm-ess-content-card {
      border-radius: 26px;
      padding: clamp(18px, 2.6vw, 32px);
      margin-top: 22px;
    }

    #hm-ess-regents-calculator .hm-ess-toc {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin: 20px 0;
    }

    #hm-ess-regents-calculator .hm-ess-toc a {
      display: block;
      background: #f8fbff;
      border: 1px solid var(--hm-border);
      border-radius: 16px;
      padding: 12px;
      color: #17406b;
      text-decoration: none;
      font-weight: 950;
    }

    #hm-ess-regents-calculator .hm-ess-formula {
      background: #f8fbff;
      border: 1px solid var(--hm-border);
      border-left: 6px solid var(--hm-blue);
      border-radius: 18px;
      padding: 14px 16px;
      margin: 16px 0;
      color: #183656;
      font-weight: 900;
      overflow-x: auto;
    }

    #hm-ess-regents-calculator .hm-ess-list {
      margin: 12px 0 18px;
      padding-left: 22px;
      color: var(--hm-muted);
      font-weight: 700;
    }

    #hm-ess-regents-calculator .hm-ess-list li {
      margin-bottom: 9px;
    }

    #hm-ess-regents-calculator details {
      background: #f8fbff;
      border: 1px solid var(--hm-border);
      border-radius: 18px;
      padding: 14px 16px;
      margin: 12px 0;
    }

    #hm-ess-regents-calculator summary {
      cursor: pointer;
      font-weight: 950;
      color: #14365b;
      font-size: 1.05rem;
    }

    #hm-ess-regents-calculator .hm-ess-hidden {
      display: none;
    }

    @media (max-width: 980px) {
      #hm-ess-regents-calculator .hm-ess-hero-grid,
      #hm-ess-regents-calculator .hm-ess-tool {
        grid-template-columns: 1fr;
      }

      #hm-ess-regents-calculator .hm-ess-results {
        position: static;
      }

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

    @media (max-width: 640px) {
      #hm-ess-regents-calculator {
        padding: 12px 8px;
      }

      #hm-ess-regents-calculator .hm-ess-grid,
      #hm-ess-regents-calculator .hm-ess-stats,
      #hm-ess-regents-calculator .hm-ess-toc {
        grid-template-columns: 1fr;
      }

      #hm-ess-regents-calculator .hm-ess-range-row {
        grid-template-columns: 1fr;
      }

      #hm-ess-regents-calculator .hm-ess-hero {
        border-radius: 22px;
      }
    }
  
}
