@scope (#original-content) {

#gcc-wrap {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    background: #fff;
    color: #1a1a2e;
    line-height: 1.72;
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 20px
}
#gcc-wrap * { box-sizing: border-box }

#gcc-wrap h1 {
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: .35em;
    line-height: 1.22
}
#gcc-wrap h2 {
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 900;
    color: #1a1a2e;
    margin-top: 2.6rem;
    margin-bottom: .8rem;
    padding-left: .85rem;
    border-left: 5px solid #ef4444
}
#gcc-wrap h3 {
    font-size: clamp(.98rem, 2.5vw, 1.18rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-top: 1.6rem;
    margin-bottom: .5rem
}
#gcc-wrap p { font-size: 1rem; font-weight: 500; margin-bottom: 1rem; color: #2a2a2a }
#gcc-wrap ul, #gcc-wrap ol { padding-left: 1.4rem; margin-bottom: 1rem }
#gcc-wrap li { font-size: 1rem; font-weight: 500; margin-bottom: .52rem; color: #2a2a2a }
#gcc-wrap strong { font-weight: 800 }
#gcc-wrap a { color: #2563eb; text-decoration: none }
#gcc-wrap a:hover { text-decoration: underline }

/* TOC */
.gcc-toc {
    background: #f8faff;
    border: 1.5px solid #dde5ff;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 1.5rem 0
}
.gcc-toc strong {
    font-size: .9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #374151;
    display: block;
    margin-bottom: 10px
}
.gcc-toc ol { margin: 0; padding-left: 1.3rem }
.gcc-toc li { font-size: .9rem; font-weight: 700; margin-bottom: 5px }

/* CALCULATOR CARD */
.gcc-card {
    background: #f8faff;
    border: 1.5px solid #dde5ff;
    border-radius: 14px;
    padding: 24px 20px;
    margin: 1.5rem 0
}
.gcc-card-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #ef4444;
    margin: 0 0 4px
}
.gcc-card-sub {
    text-align: center;
    font-size: .88rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 18px
}

/* MODE TABS */
.gcc-mode-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px
}
.gcc-mode-tab {
    background: #f1f5f9;
    border: 1.5px solid #dce0e8;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: .87rem;
    font-weight: 800;
    color: #374151;
    cursor: pointer;
    transition: all .2s
}
.gcc-mode-tab.active, .gcc-mode-tab:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444
}

/* COURSES HEADER */
.gcc-courses-header {
    display: flex;
    gap: 8px;
    padding: 0 0 8px;
    border-bottom: 2px solid #dde5ff;
    font-size: .76rem;
    font-weight: 900;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    align-items: center
}
.gcc-courses-header .gcc-h-num  { width: 28px; flex-shrink: 0; text-align: center }
.gcc-courses-header .gcc-h-name { flex: 1; min-width: 0 }
.gcc-courses-header .gcc-h-type { width: 120px; flex-shrink: 0 }
.gcc-courses-header .gcc-h-grade{ width: 78px; flex-shrink: 0 }
.gcc-courses-header .gcc-h-cr   { width: 72px; flex-shrink: 0 }
.gcc-courses-header .gcc-h-pts  { width: 64px; flex-shrink: 0; text-align: right }
.gcc-courses-header .gcc-h-del  { width: 28px; flex-shrink: 0 }

/* COURSE ROW */
.gcc-row {
    display: flex;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #edf0f5;
    align-items: center
}
.gcc-cell-num {
    width: 28px;
    flex-shrink: 0;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
    color: #9ca3af
}
.gcc-cell-name  { flex: 1; min-width: 0 }
.gcc-cell-type  { width: 120px; flex-shrink: 0 }
.gcc-cell-grade { width: 78px; flex-shrink: 0 }
.gcc-cell-cr    { width: 72px; flex-shrink: 0 }
.gcc-cell-pts {
    width: 64px;
    flex-shrink: 0;
    text-align: right;
    font-size: .85rem;
    font-weight: 800;
    color: #374151
}
.gcc-cell-del { width: 28px; flex-shrink: 0; text-align: center }

.gcc-input {
    width: 100%;
    padding: 7px 10px;
    font-size: .9rem;
    font-weight: 700;
    border: 2px solid #dce0e8;
    border-radius: 7px;
    background: #fff;
    color: #1a1a2e;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none
}
.gcc-input:focus { border-color: #ef4444 }
.gcc-select {
    width: 100%;
    padding: 7px 8px;
    font-size: .9rem;
    font-weight: 700;
    border: 2px solid #dce0e8;
    border-radius: 7px;
    background: #fff;
    color: #1a1a2e;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none
}
.gcc-select:focus { border-color: #ef4444 }

.gcc-remove-btn {
    width: 28px;
    height: 28px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0
}
.gcc-remove-btn:hover { background: #fca5a5 }

.gcc-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 9px 18px;
    background: #fff;
    color: #ef4444;
    border: 2px solid #ef4444;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 900;
    cursor: pointer;
    transition: all .2s
}
.gcc-add-btn:hover { background: #ef4444; color: #fff }

/* RESULT BOX */
.gcc-result-box {
    display: none;
    background: #fff;
    border: 2.5px solid #ef4444;
    border-radius: 12px;
    padding: 20px;
    margin-top: 18px;
    text-align: center
}
.gcc-gpa-big {
    font-size: clamp(2.6rem, 9vw, 4rem);
    font-weight: 900;
    color: #ef4444;
    line-height: 1.1;
    margin: 4px 0
}
.gcc-result-lbl {
    font-size: .82rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px
}
.gcc-result-grade-pill {
    display: inline-block;
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 20px;
    padding: 4px 16px;
    font-size: .88rem;
    font-weight: 800;
    color: #b91c1c;
    margin: 8px 0 14px
}
.gcc-result-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px
}
.gcc-result-stat {
    background: #f8faff;
    border: 1px solid #dde5ff;
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 120px
}
.gcc-result-stat .gcc-stat-lbl {
    font-size: .75rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px
}
.gcc-result-stat .gcc-stat-val {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2563eb
}

/* ACTION ROW */
.gcc-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    justify-content: center
}
.gcc-act-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    transition: all .2s
}
.gcc-act-btn:hover { background: #f3f4f6; border-color: #d1d5db }
.gcc-act-btn--primary {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444
}
.gcc-act-btn--primary:hover { background: #dc2626; border-color: #dc2626 }

/* FORMULA BOX */
.f-box {
    background: #f0f9ff;
    border-left: 5px solid #3b82f6;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 1rem 0
}
.f-box .f-tag {
    font-weight: 900;
    font-size: .8rem;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px
}
.f-box .f-body { font-size: 1rem; font-weight: 700; color: #1a1a2e }
.f-box .f-note { font-size: .82rem; color: #4b5563; font-weight: 600; margin-top: 6px }

/* CALLOUTS */
.c-yellow {
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 1rem 0;
    font-size: .96rem;
    font-weight: 600
}
.c-green {
    background: #f0fdf4;
    border-left: 5px solid #22c55e;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 1rem 0;
    font-size: .96rem;
    font-weight: 600
}
.c-blue {
    background: #eff6ff;
    border-left: 5px solid #3b82f6;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 1rem 0;
    font-size: .96rem;
    font-weight: 600
}
.c-red {
    background: #fef2f2;
    border-left: 5px solid #ef4444;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 1rem 0;
    font-size: .96rem;
    font-weight: 600
}

/* TABLES */
.gcc-tbl-wrap { overflow-x: auto; margin: 1rem 0 }
.gcc-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem
}
.gcc-tbl th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 800;
    padding: 10px 13px;
    text-align: left;
    white-space: nowrap
}
.gcc-tbl td {
    padding: 9px 13px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1a1a2e
}
.gcc-tbl tr:nth-child(even) td { background: #f8faff }
.gcc-tbl tr:hover td { background: #fef2f2 }

/* STEP LIST */
.step-list { counter-reset: sc; list-style: none; padding: 0 }
.step-list li {
    counter-increment: sc;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid #f1f5f9
}
.step-list li::before {
    content: counter(sc);
    min-width: 32px;
    height: 32px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 2px
}
.step-list li .sb { flex: 1 }
.step-list li .st { font-weight: 900; font-size: 1rem; color: #1a1a2e; margin-bottom: 3px }
.step-list li .sd { font-size: .92rem; font-weight: 500; color: #4b5563; margin: 0 }

/* EXAMPLE CARDS */
.ex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 1rem 0
}
.ex-card {
    background: #f8faff;
    border: 1.5px solid #dde5ff;
    border-radius: 10px;
    padding: 16px
}
.ex-card-title {
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #ef4444;
    margin-bottom: 10px
}
.ex-row {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    padding: 4px 0;
    border-bottom: 1px solid #e5e7eb
}
.ex-row:last-of-type { border-bottom: none }
.ex-row .ex-course { font-weight: 600; color: #374151 }
.ex-row .ex-grade  { font-weight: 800; color: #1a1a2e }
.ex-gpa-result {
    margin-top: 12px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ef4444
}
.ex-gpa-sub { text-align: center; font-size: .8rem; font-weight: 700; color: #6b7280 }

/* FAQ */
.gcc-faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 0
}
.gcc-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
    gap: 12px;
    user-select: none
}
.gcc-faq-q:hover { color: #ef4444 }
.gcc-faq-icon {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ef4444;
    flex-shrink: 0;
    line-height: 1
}
.gcc-faq-a {
    display: none;
    padding: 0 4px 14px;
    font-size: .96rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.7
}

/* RELATED LINKS */
.gcc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 1rem 0
}
.gcc-related-link {
    background: #f8faff;
    border: 1.5px solid #dde5ff;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .9rem;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
    display: block;
    transition: all .2s
}
.gcc-related-link:hover {
    background: #eff6ff;
    border-color: #2563eb;
    text-decoration: none
}

/* DISCLAIMER */
.gcc-disclaimer {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 2.5rem;
    font-size: .84rem;
    font-weight: 600;
    color: #6b7280
}
.gcc-disclaimer strong { color: #374151 }

/* PREDICTOR */
.gcc-pred-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px
}
.gcc-pred-tab {
    flex: 1;
    padding: 10px;
    background: #f1f5f9;
    border: 1.5px solid #dce0e8;
    border-radius: 7px;
    font-size: .87rem;
    font-weight: 800;
    color: #374151;
    cursor: pointer;
    text-align: center;
    transition: all .2s
}
.gcc-pred-tab.active, .gcc-pred-tab:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444
}

/* PRED COURSE ROW */
.gcc-pred-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #edf0f5
}
.gcc-pred-row .gcc-input { flex: 1 }
.gcc-pred-row .gcc-select { width: 80px; flex-shrink: 0 }
.gcc-pred-row .gcc-credits-input { width: 72px; flex-shrink: 0 }

/* FIELD GROUP */
.gcc-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px
}
.gcc-field label {
    display: block;
    font-size: .85rem;
    font-weight: 800;
    color: #374151;
    margin-bottom: 5px
}
.gcc-field .gcc-input, .gcc-field .gcc-select { font-size: .95rem }

/* HIGHLIGHT ROW IN TABLE */
.gcc-tbl tr.highlighted td {
    background: #fef2f2;
    font-weight: 800
}

/* WEIGHTED COMPARE GRID */
.gcc-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 1rem 0
}
.gcc-compare-card {
    background: #f8faff;
    border: 1.5px solid #dde5ff;
    border-radius: 10px;
    padding: 14px;
    text-align: center
}
.gcc-compare-card .gcc-cc-title {
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    margin-bottom: 6px
}
.gcc-compare-card .gcc-cc-gpa {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ef4444
}
.gcc-compare-card .gcc-cc-scale {
    font-size: .78rem;
    font-weight: 700;
    color: #9ca3af;
    margin-top: 3px
}

/* MOBILE RESPONSIVE */
@media (max-width: 620px) {
    .gcc-courses-header { display: none }
    .gcc-row {
        flex-wrap: wrap;
        padding: 10px;
        background: #fff;
        border: 1.5px solid #dde5ff;
        border-radius: 8px;
        margin-bottom: 8px;
        border-bottom: 1.5px solid #dde5ff
    }
    .gcc-cell-num { display: none }
    .gcc-cell-name { order: 1; flex: 1 1 calc(100% - 40px) }
    .gcc-cell-del  { order: 2; flex-shrink: 0 }
    .gcc-cell-type { order: 3; width: 100%; flex: 1 1 100% }
    .gcc-cell-grade{ order: 4; flex: 1 }
    .gcc-cell-cr   { order: 5; flex: 1 }
    .gcc-cell-pts  { order: 6; width: auto; flex: 1; text-align: left; font-size: .8rem; color: #6b7280 }
    .gcc-cell-pts::before { content: 'Pts: '; font-weight: 600 }
    .gcc-field-group { grid-template-columns: 1fr }
    .gcc-pred-row { flex-wrap: wrap }
    .gcc-pred-row .gcc-input { flex: 1 1 100% }
}
@media (max-width: 480px) {
    #gcc-wrap { padding: 18px 14px }
    .gcc-result-stats { flex-direction: column; align-items: center }
    .gcc-result-stat { width: 100%; max-width: 260px }
}

}
