/* High School GPA Calculator v3.2 — drop-in for calc-assets/high-school-gpa-calc.css
   Every rule is scoped to #root .hsx: no global resets, and theme styles can't restyle it. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Undo the theme's 720px reservation for this page (page-id-77). */
body.page-id-77 #root, #root.hs-root { min-height: 0 !important; }

#root .hsx {
  --ink: #0f172a; --body: #334155; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e8f0; --line2: #eef2f7; --soft: #f8fafc; --tint: #f5f3ff;
  --brand: #7c3aed; --brand2: #4f46e5; --brandsoft: #ede9fe;
  --ok: #16a34a; --mid: #0284c7; --hard: #d97706; --bad: #dc2626;
  --r: 14px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'tnum';
  color: var(--body); text-align: left; font-size: 15px; line-height: 1.5;
  max-width: 800px; margin: 0 auto; position: relative; z-index: 2;
  background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 48px -20px rgba(79,70,229,.28);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
#root .hsx *, #root .hsx *::before, #root .hsx *::after { box-sizing: border-box; }
#root .hsx button { font-family: inherit; cursor: pointer; line-height: 1.2; text-transform: none; letter-spacing: normal; margin: 0; }
#root .hsx button:disabled { cursor: not-allowed; }
#root .hsx p { margin: 0; }
#root .hsx [hidden] { display: none !important; }
#root .hsx :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- app header ---------- */
#root .hs-app { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; }
#root .hsx input.hs-title {
  flex: 1; min-width: 0; height: 40px; margin: 0; border: 1px solid transparent; border-radius: 10px; background: transparent;
  padding: 0 10px; margin-left: -10px; font: 700 20px/1.2 'Inter', system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); box-shadow: none; outline: none;
}
#root .hsx input.hs-title::placeholder { color: #c0c7d4; font-weight: 600; opacity: 1; }
#root .hsx input.hs-title:hover { background: var(--soft); }
#root .hsx input.hs-title:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,58,237,.14); }
#root .hs-app-act { display: flex; gap: 6px; flex-shrink: 0; }
#root .hs-ghost {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--body); font-size: 13px; font-weight: 600;
}
#root .hs-ghost:hover { border-color: #cbd5e1; color: var(--ink); background: var(--soft); }
#root .hs-count:empty { display: none; }
#root .hs-count { background: var(--brandsoft); color: var(--brand); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
#root .hs-menuwrap { position: relative; }
#root .hs-menu {
  position: absolute; right: 0; top: calc(100% + 6px); width: 300px; z-index: 30; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(15,23,42,.25); padding: 8px; animation: hsIn .15s ease;
}
#root .hs-menu-h { font-size: 12px; font-weight: 700; color: var(--ink); padding: 6px 8px 8px; }
#root .hs-menu-h small { font-weight: 500; color: var(--faint); margin-left: 4px; }
#root .hs-menu-empty { font-size: 13px; color: var(--muted); padding: 4px 8px 10px !important; line-height: 1.5; }
#root .hs-mi { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
#root .hs-mi:hover, #root .hs-mi.is-cur { background: var(--soft); }
#root .hs-mi-open { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
#root .hs-mi-open b { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#root .hs-mi-open small { font-size: 12px; color: var(--faint); }
#root .hs-mi-del { width: 30px; height: 30px; border: 0; background: none; color: #c0c7d4; border-radius: 8px; display: grid; place-items: center; padding: 0; }
#root .hs-mi-del:hover { color: var(--bad); background: #fef2f2; }
#root .hs-mi-new { width: 100%; margin-top: 6px !important; border: 1px dashed var(--line); background: none; color: var(--brand); font-size: 13px; font-weight: 600; padding: 9px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
#root .hs-mi-new:hover { border-color: var(--brand); background: var(--tint); }

/* ---------- stepper ---------- */
#root .hs-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 0 20px; padding: 5px; background: #f1f5f9; border-radius: 14px; }
#root .hs-step {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; padding: 0 8px; transition: background .15s, color .15s;
}
#root .hs-step:not(:disabled):hover { color: var(--ink); }
#root .hs-step:disabled { color: #b6bfcc; }
#root .hs-dotn { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #e2e8f0; color: var(--muted); flex-shrink: 0; }
#root .hs-step.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.1); }
#root .hs-step.is-on .hs-dotn { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }
#root .hs-step.is-done .hs-dotn { background: #dcfce7; color: var(--ok); }
#root .hs-step:disabled .hs-dotn { background: #eef2f7; color: #c0c7d4; }

/* ---------- banner / strip ---------- */
#root .hs-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 12px 20px 0; padding: 10px 14px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; font-size: 13px; color: #78350f; }
#root .hs-ban-t { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 200px; }
#root .hs-ban-t svg { margin-top: 2px; }
#root .hs-banner svg { color: #d97706; flex-shrink: 0; }
#root .hs-strip { display: flex; align-items: center; gap: 10px; margin: 12px 20px 0; padding: 10px 14px; border-radius: 12px; background: var(--tint); border: 1px solid #e9e3ff; }
#root .hs-strip-l { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
#root .hs-strip-go { white-space: nowrap; }
#root .hs-strip-v { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
#root .hs-mini { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 7px; }
#root .hs-strip-go { margin-left: auto !important; }

/* ---------- panels ---------- */
#root .hs-panel { padding: 16px 20px 20px; animation: hsIn .2s ease; }
@keyframes hsIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#root .hs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line2); }
#root .hs-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(79,70,229,.6); transition: transform .12s, box-shadow .12s, opacity .12s;
}
#root .hs-primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(79,70,229,.65); }
#root .hs-primary:disabled { background: #e2e8f0; color: #94a3b8; box-shadow: none; }
#root .hs-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 6px; border-radius: 8px; }
#root .hs-link:hover { color: var(--brand); }
#root .hs-soft { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #ddd6fe; background: #fff; color: var(--brand); font-size: 13px; font-weight: 700; }
#root .hs-soft:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- step 1 ---------- */
#root .hs-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 8px; border-radius: 14px; background: linear-gradient(135deg, #f5f3ff, #eef2ff); border: 1px solid #e0e7ff; }
#root .hs-empty-t { font-size: 14px; color: var(--body); flex: 1; min-width: 220px; }
#root .hs-empty-t b { color: var(--ink); }
#root .hs-sbtns { display: flex; gap: 8px; flex-wrap: wrap; }
#root .hs-head, #root .hs-row { display: grid; gap: 10px; grid-template-columns: minmax(0,1fr) 160px 104px 36px; }
#root .hs-head { align-items: end; font-size: 12px; font-weight: 600; color: var(--faint); padding: 10px 0 6px; }
#root .hs-head em { font-style: normal; font-weight: 500; color: #b6bfcc; }
#root .hs-row { padding: 5px 0; align-items: start; }
#root .hs-field { position: relative; margin: 0; display: block; }
#root .hsx input.hs-in {
  width: 100%; height: 46px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 0 14px; font: 500 15px/1 'Inter', system-ui, sans-serif; color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,.03); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#root .hsx input.hs-in::placeholder { color: #b6bfcc; font-weight: 400; opacity: 1; }
#root .hsx input.hs-in:hover { border-color: #cbd5e1; }
#root .hsx input.hs-in:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
#root .hsx input.hs-in.is-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
#root .hs-row .f-weight input.hs-in, #root .hs-fw input.hs-in, #root .hs-tg input.hs-in { padding-right: 30px; }
#root .hsx input.hs-in[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
#root .hs-suffix { position: absolute; right: 12px; top: 23px; transform: translateY(-50%); font-size: 13px; font-weight: 500; color: var(--faint); pointer-events: none; }
#root .hs-ml { display: none; }
#root .hs-conv { display: block; font-size: 12px; font-weight: 600; color: var(--brand); text-align: right; padding: 4px 2px 0; }
#root .hs-conv:empty { display: none; }
#root .hs-conv.is-err { color: var(--bad); text-align: left; font-weight: 500; }
#root .hs-del { width: 36px; height: 46px; border: 0; background: transparent; border-radius: 10px; color: #c0c7d4; display: grid; place-items: center; padding: 0; }
#root .hs-del:hover { background: #fef2f2; color: var(--bad); }
#root .hs-del:disabled { visibility: hidden; }
#root .hs-addbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
#root .hs-addl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#root .hs-exlink { font-size: 13px; padding: 8px 0; color: var(--muted); }
#root .hs-exlink svg { color: var(--brand); }
#root .hs-placeholder .hs-userem { display: flex; margin: 12px auto 0; }
#root .hs-add { border: 0; background: none; color: var(--brand); font-size: 14px; font-weight: 700; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
#root .hs-add:hover { color: var(--brand2); }
#root .hs-scale { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; }
#root .hs-scale select {
  height: 36px; width: auto; margin: 0; border: 1px solid var(--line); border-radius: 10px; background-color: #fff; color: var(--ink);
  font: 600 13px/1 'Inter', system-ui, sans-serif; padding: 0 30px 0 12px; -webkit-appearance: none; appearance: none; box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
#root .hs-meter { margin: 4px 0 12px; }
#root .hs-meter-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
#root .hs-meter-row b { color: var(--ink); font-weight: 700; }
#root .hs-bar { height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
#root .hs-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .25s ease; }
#root .hs-meter.is-over .hs-bar i { background: var(--bad); }
#root .hs-meter.is-over .hs-meter-row b { color: var(--bad); }
#root .hs-warn { font-size: 13px; color: #b45309; margin-top: 8px !important; line-height: 1.45; }
#root .hsx ul.hs-howto { list-style: none; margin: 8px 0 0; padding: 12px 14px; background: var(--soft); border-radius: 12px; display: grid; gap: 4px; }
#root .hsx ul.hs-howto li { margin: 0 !important; padding: 0 !important; font-size: 13px !important; line-height: 1.55 !important; color: var(--muted); list-style: none !important; display: block !important; }
#root .hsx ul.hs-howto li::before { content: none; }
#root .hs-howto b { color: var(--body); font-weight: 600; }
#root .hsx .hs-howto code { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px solid var(--line); color: var(--brand); padding: 2px 6px; border-radius: 6px; }

/* ---------- live grade bar (floats at the bottom of the screen until the result card is in view) ---------- */
#root .hs-live { position: sticky; bottom: 112px; z-index: 5; height: 0; overflow: visible; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; transition: opacity .2s, transform .2s; }
#root .hs-live.is-off { opacity: 0; transform: translateY(6px); }
#root .hs-live:not(.is-off) button { pointer-events: auto; }
#root .hs-live button { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.08); background: var(--ink); color: #fff; box-shadow: 0 12px 30px -8px rgba(15,23,42,.5); font-size: 13px; }
#root .hs-live-l { color: #cbd5e1; font-weight: 500; white-space: nowrap; }
#root .hs-live button, #root .hs-live-go { white-space: nowrap; }
#root .hs-live-v { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
#root .hs-live-go { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.12); font-weight: 600; }
#root .hs-result { margin-top: 8px; scroll-margin-top: 90px; }

/* ---------- result ---------- */
#root .hs-hero { padding: 22px 24px 18px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, #f5f3ff 0%, #eef2ff 55%, #f8fafc 100%); border: 1px solid #e9e3ff; position: relative; overflow: hidden; }
#root .hs-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.10), rgba(124,58,237,0) 70%); pointer-events: none; }
#root .hs-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }
#root .hs-kicker { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 6px; }
#root .hs-score { font-size: 60px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
#root .hs-score small { font-size: 28px; font-weight: 700; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
#root .hs-verdict { margin-top: 10px !important; font-size: 15px; color: var(--body); max-width: 440px; }
#root .hs-verdict b { color: var(--ink); }
#root .hs-ring { position: relative; width: 116px; height: 116px; flex-shrink: 0; background: transparent !important; }
#root .hs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
#root .hs-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
#root .hs-ring .hs-ring-bg { stroke: rgba(15,23,42,.07); }
#root .hs-ring .hs-ring-fg { transition: stroke-dasharray .6s cubic-bezier(.2,.8,.2,1); }
#root .hs-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#root .hs-ring-in b { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
#root .hs-ring-in span { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 4px; }
#root .hs-track { margin-top: 20px; position: relative; z-index: 1; }
#root .hs-track-bar { position: relative; display: flex; height: 10px; border-radius: 99px; overflow: visible; }
#root .hs-track-bar i { position: relative; display: block; height: 100%; }
#root .hs-track-bar i:first-child { border-radius: 99px 0 0 99px; } #root .hs-track-bar i:nth-last-child(2) { border-radius: 0 99px 99px 0; }
#root .hs-track-bar i em { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--faint); }
#root .hs-tk-f { background: #fecaca; } #root .hs-tk-d { background: #fed7aa; } #root .hs-tk-c { background: #fde68a; } #root .hs-tk-b { background: #bfdbfe; } #root .hs-tk-a { background: #bbf7d0; }
#root .hs-track-pin { position: absolute; top: -5px; width: 20px; height: 20px; margin-left: -10px; border-radius: 99px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 6px rgba(15,23,42,.25); transition: left .6s cubic-bezier(.2,.8,.2,1); }
#root .hs-track-pin b { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--ink); padding: 3px 6px; border-radius: 6px; white-space: nowrap; }
#root .hs-track { padding-top: 22px; padding-bottom: 16px; }
#root .hs-g-a { background: #dcfce7; color: #166534; }
#root .hs-g-b { background: #dbeafe; color: #1e40af; }
#root .hs-g-c { background: #fef3c7; color: #92400e; }
#root .hs-g-d { background: #ffedd5; color: #9a3412; }
#root .hs-g-f { background: #fee2e2; color: #991b1b; }
#root .hs-basis { font-size: 14px; color: var(--muted); margin: 14px 2px 0 !important; }
#root .hs-basis b { color: var(--ink); font-weight: 600; }
#root .hs-stack { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; margin: 12px 0 16px; background: #eef2f7; }
#root .hs-stack i { display: block; min-width: 4px; }
#root .hs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
#root .hs-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
#root .hs-card span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
#root .hs-card p { font-size: 17px; font-weight: 700; color: var(--ink); margin: 6px 0 4px !important; letter-spacing: -.01em; }
#root .hs-card small { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
#root .hsx h4.hs-h4 { font: 700 14px/1.3 'Inter', system-ui, sans-serif !important; color: var(--ink) !important; margin: 20px 0 8px !important; text-transform: none !important; letter-spacing: 0 !important; }
#root .hs-tblwrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
#root .hsx table.hs-tbl { width: 100% !important; border-collapse: collapse !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; }
#root .hsx .hs-tbl thead { background: #f8fafc !important; }
#root .hsx .hs-tbl th, #root .hsx .hs-tbl td { padding: 10px 14px !important; text-align: right !important; border: 0 !important; border-bottom: 1px solid var(--line2) !important; background: transparent !important; color: var(--body) !important; font: 500 14px/1.4 'Inter', system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
#root .hsx .hs-tbl th { font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .05em !important; color: var(--faint) !important; }
#root .hsx .hs-tbl th:first-child, #root .hsx .hs-tbl td:first-child { text-align: left !important; white-space: normal; color: var(--ink) !important; font-weight: 600 !important; }
#root .hsx .hs-tbl thead th:first-child { color: var(--faint) !important; font-weight: 700 !important; }
#root .hsx .hs-tbl tbody tr:hover { background: transparent !important; }
#root .hsx .hs-tbl tr:last-child td { border-bottom: 0 !important; }
#root .hs-dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; margin-right: 9px; vertical-align: 0; }
#root .hs-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
#root .hs-chipbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--body); font-size: 13px; font-weight: 600; }
#root .hs-chipbtn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- step 3 ---------- */
#root .hs-plan-in { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
#root .hs-flbl { display: block; font-size: 13px; font-weight: 600; color: var(--body); margin: 0 0 8px; }
#root .hs-flbl em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 4px; }
#root .hs-flbl b { color: var(--brand); }
#root .hs-fw { width: 220px; }
#root .hsx input.hs-in.is-pts { padding-right: 40px; }
#root .hs-fw .hs-suffix, #root .hs-tg .hs-suffix { top: auto; bottom: 23px; transform: translateY(50%); }
#root .hs-goal { flex: 1; min-width: 280px; }
#root .hs-goalrow { display: flex; gap: 6px; flex-wrap: wrap; }
#root .hs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
#root .hs-chip { height: 46px; min-width: 52px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; padding: 0 10px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
#root .hs-chip small { font-size: 10px; font-weight: 600; color: var(--faint); }
#root .hs-chip:hover { border-color: var(--brand); }
#root .hs-chip[aria-pressed="true"] { background: var(--tint); border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
#root .hs-chip[aria-pressed="true"] small { color: var(--brand); }
#root .hs-tg { width: 96px; }
#root .hs-note { font-size: 13px; color: var(--faint); margin-top: 10px !important; line-height: 1.5; }
#root .hs-note b { color: var(--muted); }
#root .hs-plan-out { margin-top: 16px; }
#root .hs-placeholder { padding: 22px; border: 1px dashed #cbd5e1; border-radius: 14px; text-align: center; color: var(--muted); font-size: 14px; background: var(--soft); }
#root .hs-need { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #f5f3ff, #eef2ff); border: 1px solid #e9e3ff; }
#root .hs-need-n { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
#root .hs-need-n small { font-size: 22px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
#root .hs-need-r { flex: 1; min-width: 0; }
#root .hs-need p { font-size: 15px; color: var(--body); line-height: 1.45; }
#root .hs-need p b { color: var(--ink); }
#root .hs-diff { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
#root .hs-diff-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(15,23,42,.08); overflow: hidden; }
#root .hs-diff-bar i { display: block; height: 100%; border-radius: 99px; }
#root .hs-diff span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
#root .hs-lv-ok .hs-diff-bar i { background: var(--ok); } #root .hs-lv-ok .hs-diff span { color: var(--ok); }
#root .hs-lv-mid .hs-diff-bar i { background: var(--mid); } #root .hs-lv-mid .hs-diff span { color: var(--mid); }
#root .hs-lv-hard .hs-diff-bar i { background: var(--hard); } #root .hs-lv-hard .hs-diff span { color: #b45309; }
#root .hs-lv-bad { background: #fef2f2; border-color: #fee2e2; }
#root .hs-lv-bad .hs-diff-bar i { background: var(--bad); width: 100% !important; }
#root .hs-lv-bad .hs-diff span, #root .hs-lv-bad .hs-need-n { color: var(--bad); }
#root .hs-sub2 { margin-top: 18px; }
#root .hsx ul.hs-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
#root .hsx ul.hs-ladder li { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; background: #fff; list-style: none; }
#root .hsx ul.hs-ladder li::before { content: none; }
#root .hs-ladder span { font-size: 15px; font-weight: 800; color: var(--ink); }
#root .hs-ladder b { font-size: 14px; font-weight: 600; color: var(--body); font-variant-numeric: tabular-nums; }
#root .hs-ladder .is-ok b { color: var(--ok); }
#root .hsx ul.hs-ladder li.is-bad { background: var(--soft); border-style: dashed; }
#root .hs-ladder .is-bad span, #root .hs-ladder .is-bad b { color: #b6bfcc; }
#root .hsx ul.hs-ladder li.is-cur { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
#root .hs-whatif { margin-top: 20px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
#root .hsx input.hs-range { width: 100%; margin: 2px 0 8px; accent-color: var(--brand); height: 24px; background: none; border: 0; box-shadow: none; padding: 0; }
#root .hs-wi-out { font-size: 15px; color: var(--body); }
#root .hs-wi-out b { color: var(--ink); }
#root .hs-next { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
#root .hs-next span { font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin-right: 2px; }
#root .hsx .hs-next a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--body) !important; font-weight: 600; text-decoration: none !important; }
#root .hsx .hs-next a:hover { border-color: var(--brand); color: var(--brand) !important; }

/* ---------- toast ---------- */
#root .hs-toast { position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 12px); z-index: 2147483000; max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 11px 16px; border-radius: 12px; box-shadow: 0 12px 30px -8px rgba(15,23,42,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#root .hs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  body.page-id-77 #root { margin-left: -16px !important; margin-right: -16px !important; }
  #root .hsx { border-radius: 18px; font-size: 14px; }
  #root .hs-app { padding: 14px 14px 10px; flex-wrap: wrap; }
  #root .hsx input.hs-title { font-size: 18px; flex-basis: 100%; }
  #root .hs-app-act { width: 100%; }
  #root .hs-app-act > * { flex: 1; }
  #root .hs-ghost { width: 100%; justify-content: center; }
  #root .hs-menu { left: 0; right: auto; width: min(300px, calc(100vw - 40px)); }
  #root .hs-steps { margin: 0 14px; gap: 4px; }
  #root .hs-step { flex-direction: column; gap: 3px; height: 54px; font-size: 12px; }
  #root .hs-banner, #root .hs-strip { margin-left: 14px; margin-right: 14px; }
  #root .hs-panel { padding: 14px 14px 16px; }
  #root .hs-head { display: none; }
  #root .hs-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 36px; grid-template-areas: "name name del" "grade weight weight"; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
  #root .hs-row > .f-name { grid-area: name; } #root .hs-row > .f-grade { grid-area: grade; }
  #root .hs-row > .f-weight { grid-area: weight; } #root .hs-row > .hs-del { grid-area: del; }
  #root .hs-ml { display: block; position: absolute; left: 14px; top: 23px; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--faint); pointer-events: none; }
  #root .hsx input.hs-in { font-size: 16px; }
  #root .hs-foot { flex-direction: column-reverse; align-items: stretch; }
  #root .hs-primary { width: 100%; }
  #root .hs-hero { padding: 16px; }
  #root .hs-hero { padding: 18px 16px 14px; }
  #root .hs-live-l { display: none; }
  #root .hs-live button { gap: 8px; padding-left: 14px; }
  #root .hs-score { font-size: 46px; }
  #root .hs-ring { width: 92px; height: 92px; }
  #root .hs-ring-in b { font-size: 26px; }
  #root .hs-verdict { font-size: 14px; }
  #root .hs-fw { width: 100%; }
  #root .hs-goal { min-width: 0; width: 100%; }
  #root .hs-chip { min-width: 0; flex: 1; }
  #root .hs-chips { flex: 1 1 100%; }
  #root .hs-tg { width: 100%; }
  #root .hs-need { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  #root .hs-need-n { font-size: 40px; }
  #root .hs-need-r { width: 100%; }
  #root .hsx ul.hs-ladder { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  #root .hsx ul.hs-ladder li { padding: 8px 9px; flex-direction: column; align-items: flex-start; gap: 2px; }
  #root .hs-strip { padding: 10px 12px; gap: 8px; }
  #root .hs-strip-l { font-size: 12px; }
  #root .hsx .hs-tbl th, #root .hsx .hs-tbl td { padding: 9px 10px !important; font-size: 13px !important; }
}

/* =====================================================================
   High School GPA additions (on top of the shared v3 component styles)
   ===================================================================== */

/* ---------- page: compact hero so the result lands above the fold (this page only) ---------- */

/* ---------- terms (semesters / years) ---------- */
#root .hs-terms.is-multi { display: grid; gap: 10px; margin-top: 4px; }
#root .hs-terms.is-multi .hs-term { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
#root .hs-terms.is-multi .hs-term.is-open { border-color: #ddd6fe; box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 8px 24px -16px rgba(79,70,229,.35); }
#root .hs-terms.is-multi .hs-tbody { padding: 0 14px 10px; }
#root .hs-term:not(.is-open) .hs-tbody { display: none; }
#root .hs-th { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 6px; }
#root .hs-tog { width: 34px; height: 34px; border: 0; background: none; border-radius: 10px; color: var(--muted); display: grid; place-items: center; padding: 0; flex-shrink: 0; }
#root .hs-tog:hover { background: var(--soft); color: var(--ink); }
#root .hs-tog svg { transition: transform .2s; transform: rotate(-90deg); }
#root .hs-term.is-open .hs-tog svg { transform: none; }
#root .hsx input.hs-tname { flex: 1; min-width: 0; height: 36px; margin: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; padding: 0 8px;
  font: 700 15px/1 'Inter', system-ui, sans-serif; color: var(--ink); box-shadow: none; outline: none; }
#root .hsx input.hs-tname::placeholder { color: #b6bfcc; font-weight: 600; opacity: 1; }
#root .hsx input.hs-tname:hover { background: var(--soft); }
#root .hsx input.hs-tname:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
#root .hs-tsum { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
#root .hs-tsum span { margin-right: 6px; }
#root .hs-tsum b { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
#root .hs-tsum b.u { margin-left: 8px; color: var(--body); font-weight: 700; }
#root .hs-tsum small { font-size: 11px; font-weight: 700; color: var(--faint); }
#root .hs-tsum-e { color: var(--faint); }
#root .hs-tdel { width: 32px; height: 32px; border: 0; background: none; border-radius: 9px; color: #c0c7d4; display: grid; place-items: center; padding: 0; flex-shrink: 0; }
#root .hs-tdel:hover { background: #fef2f2; color: var(--bad); }

/* ---------- class rows: Class | Grade | Level | (Credits) | × ---------- */
#root .hs-head, #root .hs-row { display: grid; gap: 10px; grid-template-columns: minmax(0,1fr) 116px 140px 36px; }
#root .hsx.show-cr .hs-head, #root .hsx.show-cr .hs-row { grid-template-columns: minmax(0,1fr) 108px 132px 76px 36px; }
#root .hsx:not(.show-cr) .hs-crc { display: none !important; }
#root .hs-head { align-items: end; font-size: 12px; font-weight: 600; color: var(--faint); padding: 10px 0 4px; }
#root .hs-head em { font-style: normal; font-weight: 500; color: #b6bfcc; }
#root .hs-row { padding: 4px 0; align-items: center; }
#root .hs-field { position: relative; margin: 0; display: block; }
#root .hsx select.hs-sel {
  width: 100%; height: 46px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background-color: #fff; color: var(--ink);
  font: 600 15px/1 'Inter', system-ui, sans-serif; padding: 0 34px 0 14px; -webkit-appearance: none; appearance: none; box-shadow: 0 1px 2px rgba(15,23,42,.03); outline: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
#root .hsx select.hs-sel:hover { border-color: #cbd5e1; }
#root .hsx select.hs-sel:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
#root .hsx select.hs-sel.is-empty { color: #b6bfcc; font-weight: 500; }
#root .hsx select.hs-sel option { color: var(--ink); }
#root .hsx select.hs-sel.is-adv { background-color: var(--tint); border-color: #ddd6fe; color: var(--brand); }
#root .hs-del { width: 36px; height: 46px; border: 0; background: transparent; border-radius: 10px; color: #c0c7d4; display: grid; place-items: center; padding: 0; opacity: 0; transition: opacity .15s; }
#root .hs-row:hover .hs-del, #root .hs-row:focus-within .hs-del, #root .hs-del:focus-visible { opacity: 1; }
@media (hover: none) { #root .hs-del { opacity: 1; } }
#root .hs-del:hover { background: #fef2f2; color: var(--bad); }
#root .hs-del:disabled { visibility: hidden; }
#root .hs-addrow { margin-top: 2px; }
#root .hs-add svg { flex-shrink: 0; }

/* ---------- add bar: semester / credits / earlier GPA ---------- */
#root .hs-addbar { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; margin: 10px 0 8px; padding-top: 10px; border-top: 1px solid var(--line2); }
#root .hs-addbar .hs-add { color: var(--body); font-weight: 600; }
#root .hs-addbar .hs-add svg { color: var(--brand); }
#root .hs-addbar .hs-add:hover { color: var(--brand); }
#root .hs-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--body); cursor: pointer; margin: 0; user-select: none; }
#root .hs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#root .hs-switch i { width: 34px; height: 20px; border-radius: 99px; background: #e2e8f0; position: relative; transition: background .15s; flex-shrink: 0; }
#root .hs-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.25); transition: transform .15s; }
#root .hs-switch input:checked + i { background: linear-gradient(135deg, var(--brand), var(--brand2)); }
#root .hs-switch input:checked + i::after { transform: translateX(14px); }
#root .hs-switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- earlier GPA ---------- */
#root .hs-prior { margin: 4px 0 12px; padding: 14px 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); animation: hsIn .2s ease; }
#root .hs-prior-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; color: var(--ink); }
#root .hs-prior-h .hs-link { font-size: 13px; padding: 4px; }
#root .hs-prior-g { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
#root .hs-prior .hs-flbl { font-size: 12px; margin-bottom: 6px; }
#root .hs-prior .hs-note { margin-top: 8px !important; }

/* ---------- restored line ---------- */
#root .hs-restored { display: flex; align-items: center; gap: 8px; margin: 10px 20px 0; font-size: 13px; color: var(--muted); }
#root .hs-restored span { display: inline-flex; align-items: center; gap: 6px; }
#root .hs-restored svg { color: var(--faint); }
#root .hs-restored .hs-link { font-size: 13px; padding: 2px 4px; color: var(--brand); }
#root .hs-restored span::after { content: "·"; margin-left: 2px; color: var(--faint); }

/* ---------- result: two scores ---------- */
#root .hs-scores { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
#root .hs-sc { display: flex; flex-direction: column; }
#root .hs-score { font-size: 60px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
#root .hs-score2 { font-size: 34px; font-weight: 800; line-height: 1; color: var(--body); letter-spacing: -.03em; font-variant-numeric: tabular-nums; padding-bottom: 3px; }
#root .hs-sl { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; }
#root .hsx.no-adv .hs-sc-u { display: none; }
#root .hs-ring-in span { text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
#root .hs-track-bar i:first-child { border-radius: 99px 0 0 99px; }
#root .hs-track-bar i:last-of-type { border-radius: 0 99px 99px 0; }
#root .hs-track { padding-bottom: 4px; }
#root .hs-track-bar i em { display: none; }
#root .hs-track-n { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
#root .hs-cards { margin-top: 12px; }
#root .hs-card p { word-break: break-word; }
#root .hs-card b { color: var(--ok); }
#root .hsx .hs-card a { color: var(--brand) !important; font-weight: 600; text-decoration: none !important; }
#root .hsx .hs-card a:hover { text-decoration: underline !important; }

/* ---------- show calculation ---------- */
#root .hs-calc { margin-top: 14px; }
#root .hs-calc summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 6px 0; }
#root .hs-calc summary::-webkit-details-marker { display: none; }
#root .hs-calc summary svg { transition: transform .2s; transform: rotate(-90deg); }
#root .hs-calc[open] summary svg { transform: none; }
#root .hs-calc summary:hover { color: var(--brand); }
#root .hs-calc-in { margin-top: 8px; }
#root .hsx .hs-tbl td small { color: var(--faint); font-weight: 500; font-size: 12px; margin-left: 4px; }

/* ---------- planner ---------- */
#root .hs-plan-in { display: grid; gap: 18px; }
#root .hs-goal { min-width: 0; }
#root .hs-seg { display: inline-flex; margin-top: 10px; padding: 4px; background: #f1f5f9; border-radius: 12px; gap: 4px; }
#root .hs-seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
#root .hs-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.1); }
#root .hs-chip { min-width: 60px; }
#root .hs-tg { width: 110px; }
#root .hs-tg input.hs-in { padding-right: 14px; }
#root .hs-strip-s { font-size: 12px; color: var(--muted); font-weight: 500; }
#root .hs-strip-v.u { margin-left: 8px; font-size: 16px; color: var(--body); }
#root .hs-strip { flex-wrap: wrap; }
#root .hs-wi-out { margin-top: 2px !important; }

/* ---------- print: just the calculator ---------- */
@media print {
  body.page-id-77 * { visibility: hidden !important; }
  body.page-id-77 #root, body.page-id-77 #root * { visibility: visible !important; }
  body.page-id-77 #root { position: absolute; left: 0; top: 0; width: 100%; }
  #root .hsx { box-shadow: none; border: 0; }
  #root .hs-app-act, #root .hs-steps, #root .hs-addbar, #root .hs-addrow, #root .hs-del, #root .hs-tdel, #root .hs-share, #root .hs-foot, #root .hs-live, #root .hs-empty, #root .hs-restored, #root .hs-toast, #root .hs-howto { display: none !important; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  #root .hs-head { display: none; }
  /* one class = two tight lines, everything visible (no accordion): name on top, Grade + Level inline below */
  #root .hs-row, #root .hsx.show-cr .hs-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 36px; grid-template-areas: "name name del" "grade level level"; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
  #root .hsx.show-cr .hs-row { grid-template-columns: minmax(0,1.1fr) minmax(0,1.3fr) minmax(0,.8fr) 0; grid-template-areas: "name name name del" "grade level cr cr"; }
  #root .hs-row > .f-name { grid-area: name; } #root .hs-row > .f-grade { grid-area: grade; }
  #root .hs-row > .f-level { grid-area: level; } #root .hs-row > .f-cr { grid-area: cr; } #root .hs-row > .hs-del { grid-area: del; }
  #root .hsx.show-cr .hs-row > .hs-del { position: absolute; right: 0; }
  #root .hsx.show-cr .hs-row { position: relative; }
  #root .hs-row .f-name input.hs-in { height: 40px; border-color: transparent; background: var(--soft); box-shadow: none; font-size: 16px; padding: 0 12px; }
  #root .hs-row .f-name input.hs-in:focus { background: #fff; border-color: var(--brand); }
  #root .hsx select.hs-sel, #root .hsx input.hs-in { font-size: 16px; }
  #root .hs-del { height: 40px; }
  #root .hs-terms.is-multi .hs-tbody { padding: 0 12px 8px; }
  #root .hs-th { flex-wrap: wrap; padding: 6px 6px 6px 4px; row-gap: 0; }
  #root .hsx input.hs-tname { flex: 1 1 0; }
  #root .hs-tsum { order: 3; flex-basis: 100%; padding: 0 0 6px 42px; font-size: 12px; }
  #root .hs-addbar { gap: 4px 16px; }
  #root .hs-addbar > * { font-size: 13px !important; }
  #root .hs-prior-g { grid-template-columns: 1fr 1fr; }
  #root .hs-prior-g label:last-child { grid-column: 1 / -1; }
  #root .hs-score { font-size: 48px; }
  #root .hs-score2 { font-size: 28px; }
  #root .hs-scores { gap: 16px; }
  #root .hs-restored { margin: 10px 14px 0; }
  #root .hs-seg { width: 100%; } #root .hs-seg button { flex: 1; }
  #root .hs-tg { width: 100%; }
  #root .hs-live-u { display: none; }
}

/* ---------- top bar: steps + save actions in one row (saves ~60px of height) ---------- */
#root .hs-top { display: flex; align-items: center; gap: 8px; padding: 16px 20px 0; }
#root .hs-top .hs-steps { margin: 0; flex: 1; min-width: 0; }
#root .hs-top .hs-ghost { height: 42px; }
#root .hs-app-act { display: flex; gap: 6px; flex-shrink: 0; }
#root .hsx input.hs-in::-webkit-calendar-picker-indicator { opacity: 0; }
#root .hsx input.hs-in::-webkit-list-button { display: none; }
@media (max-width: 640px) {
  #root .hs-top { padding: 12px 12px 0; gap: 6px; }
  #root .hs-top .hs-step { flex-direction: row; height: 40px; font-size: 13px; gap: 6px; }
  #root .hs-top .hs-app-act { width: auto; }
  #root .hs-top .hs-app-act > * { flex: none; }
  #root .hs-top .hs-ghost { width: 42px; height: 42px; padding: 0; justify-content: center; position: relative; }
  #root .hs-top .hs-ghost span { display: none; }
  #root .hs-top .hs-count { position: absolute; top: -5px; right: -5px; }
  #root .hs-menu { left: auto; right: 0; }
}

/* The theme sets overflow:hidden on .inside-article on phones, which silently disables position:sticky
   (the floating live-GPA pill). overflow-x: clip keeps the same horizontal clipping without that side effect. */
body.page-id-77 .inside-article { overflow: visible !important; overflow-x: clip !important; }
#root .hs-step { white-space: nowrap; }
@media (max-width: 640px) {
  #root .hs-top .hs-step { font-size: 12.5px; padding: 0 4px; }
  #root .hs-strip { gap: 4px 6px; }
  #root .hs-strip-l { flex-basis: 100%; }
  #root .hs-ring { width: 78px; height: 78px; }
  #root .hs-ring-in b { font-size: 22px; }
  #root .hs-ring-in span { font-size: 8.5px; }
}
#root .hs-rename { display: block; padding: 6px 8px 10px; margin: 0 0 6px; border-bottom: 1px solid var(--line2); }
#root .hs-rename span { display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
#root .hsx .hs-rename input.hs-in { height: 40px; font-size: 14px; }
@media (max-width: 640px) { #root .hs-live-l { display: inline; } #root .hsx .hs-rename input.hs-in { font-size: 16px; } }

/* =====================================================================
   v2.1: suggestions, level colors, planner mix, what-if presets, scale table, polish
   ===================================================================== */
#root .hsx { --hon: #2563eb; --honbg: #eff6ff; --honline: #bfdbfe; --ap: #7c3aed; --apbg: #f5f3ff; --apline: #ddd6fe;
  --ib: #0d9488; --ibbg: #f0fdfa; --ibline: #99f6e4; --de: #c2410c; --debg: #fff7ed; --deline: #fed7aa; width: 100%; }

/* level colors on the Level select */
#root .hsx select.hs-sel.is-adv[data-lv="hon"] { background-color: var(--honbg); border-color: var(--honline); color: var(--hon); }
#root .hsx select.hs-sel.is-adv[data-lv="ap"]  { background-color: var(--apbg);  border-color: var(--apline);  color: var(--ap); }
#root .hsx select.hs-sel.is-adv[data-lv="ib"]  { background-color: var(--ibbg);  border-color: var(--ibline);  color: var(--ib); }
#root .hsx select.hs-sel.is-adv[data-lv="de"]  { background-color: var(--debg);  border-color: var(--deline);  color: var(--de); }
#root .hsx select.hs-sel.is-adv { font-weight: 700; }

/* suggestion dropdown */
#root .hs-sug { position: absolute; z-index: 40; max-height: 332px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 44px -14px rgba(15,23,42,.28), 0 2px 6px rgba(15,23,42,.06); animation: hsIn .12s ease; overscroll-behavior: contain; }
#root .hs-opt { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "n b" "s b"; align-items: center; column-gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
#root .hs-opt + .hs-opt { margin-top: 1px; }
#root .hs-opt:hover, #root .hs-opt[aria-selected="true"] { background: var(--tint); }
#root .hs-opt-n { grid-area: n; font-size: 14px; font-weight: 500; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#root .hs-opt-n b { font-weight: 700; color: var(--ink); }
#root .hs-opt-s { grid-area: s; font-size: 11.5px; color: var(--faint); margin-top: 1px; }
#root .hs-badge { grid-area: b; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 4px 8px; border-radius: 7px; border: 1px solid transparent; }
#root .hs-badge.is-none { padding: 0; }
#root .hs-badge[data-lv="hon"] { background: var(--honbg); color: var(--hon); border-color: var(--honline); }
#root .hs-badge[data-lv="ap"]  { background: var(--apbg);  color: var(--ap);  border-color: var(--apline); }
#root .hs-badge[data-lv="ib"]  { background: var(--ibbg);  color: var(--ib);  border-color: var(--ibline); }
#root .hs-badge[data-lv="de"]  { background: var(--debg);  color: var(--de);  border-color: var(--deline); }

/* planner: upcoming class mix */
#root .hs-mix { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fff, var(--soft)); animation: hsIn .2s ease; }
#root .hs-mix-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
#root .hs-mix-h .hs-flbl { margin: 0; }
#root .hs-mix-c { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
#root .hs-mix-c b { color: var(--ink); } #root .hs-mix-c b.is-bad { color: var(--bad); }
#root .hs-mix-g { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
#root .hs-mixi { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
#root .hs-mixl { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
#root .hs-mixl small { font-size: 11px; font-weight: 700; }
#root .hs-lvl-hon .hs-mixl small { color: var(--hon); } #root .hs-lvl-ap .hs-mixl small { color: var(--ap); }
#root .hs-lvl-ib .hs-mixl small { color: var(--ib); } #root .hs-lvl-de .hs-mixl small { color: var(--de); }
#root .hs-stepper { display: flex; align-items: center; justify-content: space-between; background: var(--soft); border-radius: 10px; padding: 3px; }
#root .hs-stp { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font-size: 18px; font-weight: 600; display: grid; place-items: center; padding: 0; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
#root .hs-stp:not(:disabled):hover { color: var(--brand); }
#root .hs-stp:disabled { color: #cbd5e1; box-shadow: none; background: transparent; }
#root .hs-step-n { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 24px; text-align: center; }

/* what-if presets */
#root .hs-wi-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
#root .hs-wi-h .hs-flbl { margin: 0; }
#root .hs-wchips .hs-chip { height: 34px; min-width: 0; padding: 0 12px; font-size: 13px; border-radius: 99px; }
#root .hs-wi-out { line-height: 1.6; }
#root .hs-wi-n { display: inline-block; margin-right: 12px; white-space: nowrap; }
#root .hs-wi-n:first-of-type { margin-left: 4px; }
#root .hs-wi-n b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
#root .hs-wi-n small { font-size: 12px; color: var(--faint); }
#root .hs-flbl em { font-style: normal; font-weight: 500; color: var(--faint); }

/* grade-points table */
#root .hs-scale { margin-top: 12px; }
#root .hsx .hs-scale .hs-tbl th, #root .hsx .hs-scale .hs-tbl td { padding: 8px 9px !important; text-align: center !important; font-size: 13px !important; }
#root .hsx .hs-scale .hs-tbl th:first-child, #root .hsx .hs-scale .hs-tbl td:first-child { text-align: left !important; white-space: nowrap; position: sticky; left: 0; background: #fff !important; }
#root .hsx .hs-scale .hs-tbl thead th:first-child { background: #f8fafc !important; }

/* polish */
#root .hs-row { transition: background .15s; }
#root .hs-hero { box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
#root .hs-score { background: linear-gradient(135deg, var(--ink) 30%, #3730a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
#root .hs-card { transition: border-color .15s, box-shadow .15s; }
#root .hs-card:hover { border-color: #ddd6fe; box-shadow: 0 8px 20px -14px rgba(79,70,229,.4); }
#root .hs-chipbtn { transition: border-color .15s, color .15s, background .15s; }
#root .hs-primary { letter-spacing: -.005em; }

@media (max-width: 640px) {
  #root .hs-mix-g { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #root .hs-sug { max-height: 260px; }
  #root .hs-opt { padding: 10px; }
  #root .hs-opt-n { font-size: 15px; }
  #root .hs-wi-h { flex-direction: column; align-items: flex-start; }
  #root .hs-wchips { width: 100%; } #root .hs-wchips .hs-chip { flex: 1; padding: 0 6px; }
  #root .hs-wi-n { display: block; margin: 2px 0 0 !important; }
}

/* Width: the card is exactly as wide as the white column from 641px up (calculator-page.css, GPA_COLUMN_TIERS) */
@media (min-width: 641px) {
  body.page-id-77 #root { width: 100% !important; max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
}
#root .hsx .hs-scale { display: block; width: 100%; }
#root .hsx .hs-scale table.hs-tbl { min-width: 100%; }
@media (max-width: 640px) { #root .hsx.is-typing .hs-live { opacity: 0; pointer-events: none; } #root .hsx.is-typing .hs-live button { pointer-events: none; } }

/* =====================================================================
   v2.2: samples, welcome back, save card, progress since last save
   ===================================================================== */
/* empty state: friendly 3-step intro + two samples */
#root .hs-empty { display: block; padding: 18px 18px 16px; margin: 4px 0 10px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, #f5f3ff 0%, #eef2ff 60%, #f8fafc 100%); border: 1px solid #e4defd; }
#root .hs-empty-h { display: flex; flex-direction: column; gap: 3px; }
#root .hs-empty-h b { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
#root .hs-empty-h span { font-size: 14px; color: var(--muted); }
#root .hsx ol.hs-how3 { list-style: none; margin: 14px 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
#root .hsx ol.hs-how3 li { margin: 0 !important; padding: 10px 12px !important; list-style: none !important; background: rgba(255,255,255,.75); border: 1px solid rgba(124,58,237,.12); border-radius: 12px;
  font-size: 13.5px !important; font-weight: 700; color: var(--ink); line-height: 1.3 !important; display: grid !important; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: center; }
#root .hsx ol.hs-how3 li::before { content: none !important; }
#root .hs-how3 i { grid-row: span 2; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
#root .hs-how3 small { font-size: 12px; font-weight: 500; color: var(--muted); }
#root .hs-sbtns { display: flex; gap: 8px; flex-wrap: wrap; }
#root .hs-sbtns .hs-soft { height: 42px; padding: 0 16px; font-size: 14px; }
#root .hs-exlink { font-size: 13px; padding: 4px 0 8px; color: var(--muted); }
#root .hs-exlink svg { color: var(--brand); }

/* sample banner */
#root .hs-banner { padding: 10px 10px 10px 14px; }
#root .hs-primary.hs-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(79,70,229,.6); }

/* welcome back */
#root .hs-welcome { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 12px 20px 0; padding: 12px 12px 12px 14px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; animation: hsIn .25s ease; }
#root .hs-wel-t { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #14532d; flex: 1; min-width: 220px; }
#root .hs-wel-t svg { color: var(--ok); margin-top: 2px; flex-shrink: 0; }
#root .hs-wel-t b { color: #14532d; }
#root .hs-wel-s { color: #166534; }
#root .hs-wel-a { display: flex; align-items: center; gap: 6px; }
#root .hs-wel-a .hs-soft { border-color: #86efac; color: #15803d; height: 36px; }
#root .hs-wel-a .hs-soft:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
#root .hs-wel-a .hs-link { font-size: 13px; }

/* progress since last save */
#root .hs-delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
#root .hs-delta.is-up { background: #dcfce7; color: #166534; }
#root .hs-delta.is-down { background: #fef3c7; color: #92400e; }

/* save card */
#root .hs-savecard { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 14px 14px 16px; border-radius: 16px; border: 1px solid #e4defd; background: linear-gradient(135deg, #faf8ff, #f5f7ff); }
#root .hs-sc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 6px 14px -8px rgba(79,70,229,.7); }
#root .hs-sc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#root .hs-sc-t b { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
#root .hs-sc-t span { font-size: 13px; color: var(--muted); line-height: 1.45; }
#root .hs-sc-t span b { font-size: 13px; font-weight: 700; color: var(--body); }
#root .hs-savecard .hs-primary { height: 42px; font-size: 14px; flex-shrink: 0; }
#root .hs-savecard .hs-ghost { height: 40px; flex-shrink: 0; }
#root .hs-savecard.is-saved:not(.is-dirty) { background: #f0fdf4; border-color: #bbf7d0; }
#root .hs-savecard.is-saved:not(.is-dirty) .hs-sc-ic { background: var(--ok); box-shadow: none; }
#root .hs-savecard.is-dirty { background: #fffbeb; border-color: #fde68a; }
#root .hs-savecard.is-dirty .hs-sc-ic { background: #d97706; box-shadow: none; }

@media (max-width: 640px) {
  #root .hsx ol.hs-how3 { grid-template-columns: 1fr; gap: 6px; }
  #root .hs-sbtns .hs-soft { flex: 1 1 100%; justify-content: center; }
  #root .hs-welcome { margin: 10px 12px 0; }
  #root .hs-wel-a { width: 100%; justify-content: space-between; }
  #root .hs-savecard { flex-wrap: wrap; }
  #root .hs-savecard .hs-primary, #root .hs-savecard .hs-ghost { width: 100%; justify-content: center; }
  #root .hs-banner .hs-sm { width: 100%; }
}
@media print { #root .hs-welcome, #root .hs-savecard, #root .hs-exlink, #root .hs-delta { display: none !important; } }
/* every control in Inter (form controls and code don't inherit fonts by default) */
#root .hsx input, #root .hsx select, #root .hsx button, #root .hsx textarea, #root .hsx code, #root .hsx option, #root .hsx table, #root .hsx summary { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }

/* =====================================================================
   v2.3 polish
   ===================================================================== */
/* add bar: actions left, Credits toggle right */
#root .hs-addbar { gap: 8px 22px; }
#root .hs-addbar .hs-switch { order: 3; margin-left: auto; }
#root .hs-addbar .hs-priorbtn { order: 2; }
/* planner headers: label left, control/hint right */
#root .hs-goal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
#root .hs-goal-h .hs-flbl { margin: 0; }
#root .hs-goal-h .hs-seg { margin-top: 0; }
#root .hs-hint { font-size: 12px; color: var(--faint); font-weight: 500; }
#root .hs-plannote:empty { display: none; }
#root .hsx .hs-tg input.hs-in::placeholder { color: #b6bfcc; font-weight: 500; text-align: right; }
/* what-if: two clear stat tiles */
#root .hs-wi-out { display: flex; flex-direction: column; gap: 10px; margin-top: 6px !important; }
#root .hs-wi-l { font-size: 14px; color: var(--body); }
#root .hs-wi-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#root .hs-wi-n { display: flex !important; flex-direction: column; gap: 2px; margin: 0 !important; padding: 10px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line2); white-space: normal; }
#root .hs-wi-n b { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
#root .hs-wi-n small { font-size: 12px; font-weight: 600; color: var(--muted); }
/* save card: secondary button so "Plan my target GPA" stays the one primary action */
#root .hs-savecard .hs-soft { height: 42px; padding: 0 16px; font-size: 14px; flex-shrink: 0; }
/* letters in the ring use a true minus sign; tighten */
#root .hs-ring-in b { letter-spacing: -.03em; }
/* softer, calmer surfaces */
#root .hsx select.hs-sel, #root .hsx input.hs-in { box-shadow: none; }
#root .hs-head { letter-spacing: .01em; }
@media (max-width: 640px) {
  #root .hs-addbar .hs-switch { margin-left: auto; }
  #root .hs-goal-h .hs-seg { width: 100%; }
  #root .hs-wi-n b { font-size: 22px; }
  #root .hs-savecard .hs-soft { width: 100%; justify-content: center; }
}

/* "Is my GPA good?" verdict inside the result (v2.6, replaces the How-colleges-see-it card) */
#root .hs-good { margin-top: 14px; max-width: 520px; }
#root .hs-good + .hs-track { margin-top: 22px; }
#root .hs-hero-l { flex: 1 1 auto; min-width: 0; }
#root .hs-good-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--goodc); background: var(--goodbg); }
#root .hs-good-tag::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
#root .hs-good-q { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
#root .hs-good-t { margin: 8px 0 0 !important; font-size: 14px; line-height: 1.55; color: var(--body); }
#root .hs-good-t a { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
#root .hs-good-t a:hover { text-decoration: underline; }
#root .hs-band-top, #root .hs-band-strong { --goodc: #15803d; --goodbg: #dcfce7; }
#root .hs-band-solid { --goodc: #1d4ed8; --goodbg: #dbeafe; }
#root .hs-band-ok { --goodc: #0369a1; --goodbg: #e0f2fe; }
#root .hs-band-grow { --goodc: #b45309; --goodbg: #fef3c7; }
#root .hs-band-build { --goodc: #c2410c; --goodbg: #ffedd5; }
@media (max-width: 640px) { #root .hs-good-t { font-size: 13.5px; } }
@media print { #root .hs-good-t a { display: none; } }

/* v2.6 order: result → Show calculation → lever card → Start over / Plan → Save my GPA → share (centered) */
#root .hs-after { margin-top: 16px; }
#root .hs-after .hs-savecard { margin-top: 0; }

@media print { #root .hs-after { display: none !important; } }

/* Desktop: compact hero so the GPA lands above the fold; text → card gap matches the Grade calculator (40px).
   Phones keep the template's standard hero and spacing. */
@media (min-width: 641px) {
  body.page-id-77 .entry-header { padding-top: 28px !important; }
  body.page-id-77 .entry-header .entry-title { margin-bottom: 12px !important; }
  body.page-id-77 .rx-hero-intro { margin-top: 8px !important; }
  body.page-id-77 .entry-header .rx-hero-intro { max-width: 760px !important; }
  body.page-id-77.page-template-template-calculator .entry-header .rx-hero-intro p { font-size: 16px !important; line-height: 1.55 !important; }
  body.page-id-77.page-template-template-calculator .site-main .entry-header h1.entry-title { margin-bottom: 12px !important; }
  body.page-id-77 #how-gpa-works { margin-top: 40px !important; }
  #root .hs-top { padding-top: 14px; }
  #root .hs-head { padding-top: 8px; }
  #root .hs-addbar { margin: 6px 0 4px; padding-top: 8px; }
  #root .hs-result { margin-top: 4px; }
}

/* v2.7: simple grade-point key replaces the 13-column scale table */
#root .hs-key { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
#root .hs-key-h { margin: 0 0 10px !important; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
#root .hs-pts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media (max-width: 640px) { #root .hs-pts { grid-template-columns: repeat(4, 1fr); } }
#root .hs-pt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 10px; background: #f8fafc; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
#root .hs-pt b { font-size: 14px; font-weight: 700; color: var(--ink); }
#root .hs-pt.is-used { background: var(--tint); box-shadow: inset 0 0 0 1px #ddd6fe; color: var(--brand); }
#root .hs-pt.is-used b { color: var(--brand); }
#root .hs-key-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0 !important; font-size: 13px; color: var(--muted); }
#root .hs-boost { padding: 4px 10px; border-radius: 99px; background: var(--tint); color: var(--body); font-weight: 600; }
#root .hs-boost b { color: var(--brand); }
#root .hs-key-n { flex-basis: 100%; }

/* v2.8: tighter bottom — Start over sits on the Show calculation line; share chips share the row with the primary button */
#root .hs-panel[data-panel="1"] .hs-foot { margin-top: 16px; }
#root .hs-foot .hs-share { margin: 0; justify-content: flex-start; gap: 6px; }
#root .hs-foot .hs-share[hidden] { display: none; }
#root .hs-foot .hs-next1 { margin-left: auto; }
@media (max-width: 640px) {
  #root .hs-foot .hs-share { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 5px; }
  #root .hs-foot .hs-chipbtn { padding: 0 9px; gap: 4px; font-size: 12.5px; }
  #root .hs-foot .hs-chipbtn { white-space: nowrap; }
  #root .hs-foot .hs-chipbtn svg { display: none; }
}
@media print { #root .hs-reset { display: none !important; } }

/* v2.9: "Is my GPA good?" is one line, no link */
#root .hs-good { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: none; margin-top: 12px; }
#root .hs-good:empty { display: none; }
#root .hs-good-q { margin-left: 0; font-size: 14px; color: var(--ink); }
#root .hs-good .hs-good-t { margin: 0 !important; font-size: 14px; color: var(--muted); }
#root .hs-good .hs-good-t::before { content: "·"; margin-right: 8px; color: var(--faint); }
@media (max-width: 640px) {
  #root .hs-good .hs-good-t { flex-basis: 100%; font-size: 13.5px; }
  #root .hs-good .hs-good-t::before { content: none; }
}

/* v2.9: Start over at the right end of the Add class line */
#root .hs-addline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#root .hs-addline .hs-reset, #root .hs-addbar .hs-reset { height: auto; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--muted); margin-left: auto; }
#root .hs-addbar .hs-reset { order: 5; margin-left: 0; }
#root .hs-addline .hs-reset:hover, #root .hs-addbar .hs-reset:hover { color: var(--bad); }

/* v2.9: clean GPA scale (replaces the banded track) */
#root .hs-good + .hs-track, #root .hs-track { margin-top: 18px; padding: 0; }
#root .hs-rail { position: relative; height: 6px; border-radius: 99px; background: rgba(15,23,42,.08); }
#root .hs-rail-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1), background .3s; }
#root .hs-rail-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 99px; background: #fff; border: 3px solid var(--brand); box-shadow: 0 1px 4px rgba(15,23,42,.2); transition: left .6s cubic-bezier(.2,.8,.2,1), border-color .3s; }
#root .hs-track-n { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { #root .hs-rail-fill, #root .hs-rail-dot { transition: none; } }

/* v3.0: "How it's calculated" tab at the bottom of the result card */
#root .hs-hero .hs-calc { position: relative; z-index: 1; margin: 16px -24px -18px; border-top: 1px solid rgba(15,23,42,.06); }
#root .hs-hero .hs-calc summary { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; padding: 11px 16px 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-radius: 0 0 20px 20px; transition: color .15s, background .15s; }
#root .hs-hero .hs-calc summary:hover { color: var(--brand); background: rgba(124,58,237,.04); }
#root .hs-hero .hs-calc summary svg { width: 14px; height: 14px; transform: none; transition: transform .2s; }
#root .hs-hero .hs-calc[open] summary svg { transform: rotate(180deg); }
#root .hs-hero .hs-calc[open] summary { border-radius: 0; }
#root .hs-hero .hs-calc-in { margin: 0; padding: 4px 24px 22px; }
#root .hs-hero .hs-calc-in > .hs-note { margin-top: 12px !important; }
@media (max-width: 640px) {
  #root .hs-hero .hs-calc { margin: 14px -16px -14px; }
  #root .hs-hero .hs-calc-in { padding: 4px 16px 18px; }
}
@media print { #root .hs-hero .hs-calc summary { display: none; } #root .hs-hero .hs-calc { border: 0; } }

/* v3.0: undo after Start over, earlier-GPA warnings */
#root .hs-toast.has-act { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
#root .hs-toast.is-on.has-act { pointer-events: auto; }
#root .hs-toast .hs-undo { border: 0; background: none; padding: 0; color: #c4b5fd; font-weight: 700; font-size: inherit; text-decoration: underline; cursor: pointer; }
#root .hs-toast .hs-undo:hover { color: #fff; }
#root .hs-prior-note.is-warn { color: #b45309 !important; font-weight: 500; }
@media (max-width: 640px) { #root .hs-fchips .hs-chip { white-space: nowrap; padding-left: 6px; padding-right: 6px; font-size: 14px; } }

/* v3.1: type scale matched to the homepage calculator (16px inputs, 14px labels, 15px actions) */
@media (min-width: 641px) {
  #root .hsx select.hs-sel, #root .hsx input.hs-in { font-size: 16px; }
  #root .hs-head { font-size: 14px; font-weight: 500; color: var(--muted); }
  #root .hs-head em { font-size: 13px; }
  #root .hs-add, #root .hs-switch, #root .hs-addline .hs-reset, #root .hs-addbar .hs-reset { font-size: 15px; }
  #root .hs-verdict { font-size: 16px; max-width: 470px; }
  #root .hs-good-q, #root .hs-good .hs-good-t { font-size: 15px; }
  #root .hs-flbl { font-size: 14px; }
  #root .hs-prior .hs-flbl { font-size: 13px; }
  #root .hs-chipbtn { font-size: 14px; }
  #root .hs-hero .hs-calc summary { font-size: 14px; }
}
@media (max-width: 640px) {
  #root .hs-addbar > * { font-size: 14px !important; }
  #root .hs-add { font-size: 15px; }
}

/* v3.2: more presence on the default screen */
/* filled inputs: the rows read as the main thing to do, not as disabled boxes */
#root .hsx input.hs-in, #root .hsx select.hs-sel { height: 50px; background-color: #f6f7fb; border: 1.5px solid #e3e7ef; border-radius: 12px; box-shadow: none; }
#root .hsx input.hs-in:hover, #root .hsx select.hs-sel:hover { border-color: #c9d1de; background-color: #f2f4f9; }
#root .hsx input.hs-in:focus, #root .hsx select.hs-sel:focus { background-color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,58,237,.14); }
#root .hsx input.hs-in::placeholder { color: #8f9bb0; font-weight: 400; }
#root .hsx select.hs-sel.is-empty { color: #8f9bb0; font-weight: 500; }
#root .hsx select.hs-sel:not(.is-empty) { color: var(--ink); font-weight: 700; }
#root .hsx select.hs-sel.is-adv { border-width: 1.5px; }
#root .hs-row .f-name input.hs-in { font-weight: 600; }
#root .hs-head { color: var(--body); font-weight: 600; }
#root .hs-head em { color: var(--faint); font-weight: 500; }
/* Add class as a real button */
#root .hs-addline .hs-addrow { height: 40px; padding: 0 14px 0 12px; margin-top: 6px; border-radius: 10px; background: var(--tint); color: var(--brand); }
#root .hs-addline .hs-addrow:hover { background: #ede9fe; }
#root .hs-addline .hs-reset { margin-top: 6px; }
/* compact "New here?" bar instead of a big tutorial box */
#root .hsx ol.hs-how3 { display: none !important; }
#root .hs-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 14px 16px; margin: 4px 0 12px; border-radius: 14px; }
#root .hs-empty-h { flex: 1 1 260px; }
#root .hs-empty-h b { font-size: 15px; }
#root .hs-sbtns .hs-soft { height: 40px; }
/* result placeholder: shows the payoff before any grade is in */
#root .hs-await { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 18px 22px; border-radius: 20px; border: 1.5px dashed #d9d1fb; background: radial-gradient(120% 140% at 0% 0%, #f7f5ff 0%, #f1f3ff 60%, #fafbfd 100%); }
#root .hs-await[hidden] { display: none; }
#root .hs-await-n { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #c9bff5; font-variant-numeric: tabular-nums; }
#root .hs-await-t { display: flex; flex-direction: column; gap: 3px; }
#root .hs-await-t b { font-size: 16px; color: var(--ink); }
#root .hs-await-t span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  #root .hsx input.hs-in, #root .hsx select.hs-sel { height: 46px; }
  #root .hs-row .f-name input.hs-in { height: 46px; border: 1.5px solid #e3e7ef; background: #f6f7fb; }
  #root .hs-row .f-name input.hs-in:focus { background: #fff; border-color: var(--brand); }
  #root .hs-sbtns { width: 100%; }
  #root .hs-sbtns .hs-soft { flex: 1 1 0; padding: 0 8px; font-size: 13.5px; justify-content: center; white-space: nowrap; }
  #root .hs-await { gap: 14px; padding: 14px 16px; margin-top: 14px; }
  #root .hs-await-n { font-size: 34px; }
  #root .hs-await-t b { font-size: 15px; } #root .hs-await-t span { font-size: 13px; }
}
@media print { #root .hs-await { display: none !important; } }
