.artifact-body--freelance-fee-simulator-codex {
    --artifact-header-accent: #1d4ed8;
    --artifact-header-muted: #475569;
    --artifact-header-surface: rgba(255, 255, 255, 0.92);
    --artifact-header-border: rgba(30, 64, 175, 0.12);
    background:
        radial-gradient(circle at top left, rgba(191, 219, 254, 0.85), transparent 28%),
        linear-gradient(180deg, #eef5ff 0%, #f7fbff 42%, #ffffff 100%);
    color: #0f172a;
}

.fee-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.fee-hero,
.fee-section,
.fee-cta {
    padding: 28px 0;
}

.fee-hero__grid,
.fee-simulator {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.fee-hero__content,
.fee-hero__panel,
.fee-form-panel,
.fee-results-panel,
.fee-table-wrap,
.insight-item,
.fee-steps article,
.fee-faq details,
.fee-cta__inner {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 60px rgba(30, 64, 175, 0.08);
}

.fee-hero__content {
    padding: 34px;
}

.fee-hero__panel {
    padding: 28px;
    background: linear-gradient(180deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #eff6ff;
}

.fee-eyebrow {
    margin: 0;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.fee-hero__panel-label,
.fee-hero__panel .fee-eyebrow {
    color: rgba(219, 234, 254, 0.88);
}

.fee-hero h1 {
    margin: 12px 0 0;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    max-width: 11ch;
}

.fee-lead,
.fee-hero__panel p,
.fee-section-heading p,
.fee-summary-card p,
.insight-item p,
.fee-steps p,
.fee-faq p,
.fee-cta p,
.fee-footer p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
}

.fee-hero__panel h2,
.fee-section-heading h2,
.fee-cta h2 {
    margin: 8px 0 0;
    font-size: 1.4rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.fee-hero__panel p {
    margin-top: 12px;
    color: rgba(239, 246, 255, 0.94);
}

.fee-hero__actions,
.fee-cta__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.fee-hero__actions {
    margin-top: 24px;
}

.fee-button,
.fee-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s, border-color 0.15s;
}

.fee-button:hover,
.fee-copy-button:hover {
    transform: translateY(-1px);
}

.fee-button--primary,
.fee-copy-button {
    background: #1d4ed8;
    color: #eff6ff;
}

.fee-button--secondary {
    background: #fff;
    color: #1e3a8a;
    border-color: rgba(30, 64, 175, 0.18);
}

.fee-points {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: #334155;
}

.fee-points li {
    position: relative;
    padding-left: 18px;
    line-height: 1.7;
}

.fee-points li::before {
    content: '';
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
}

.fee-form-panel,
.fee-results-panel,
.fee-table-wrap,
.fee-cta__inner {
    padding: 24px;
}

.fee-section--soft {
    background: rgba(219, 234, 254, 0.24);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.fee-section-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.fee-section-heading--stack {
    display: grid;
}

.fee-results-panel__note {
    font-size: 0.95rem;
}

.fee-scenario-list {
    display: grid;
    gap: 14px;
}

.fee-scenario-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.fee-scenario-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.fee-scenario-card__header h3,
.fee-scenario-card__header p,
.fee-summary-card__label,
.metric-card__label,
.metric-card__value,
.fee-comparison-table th,
.fee-comparison-table td {
    margin: 0;
}

.fee-scenario-card__header h3 {
    font-size: 1rem;
}

.fee-scenario-card__header p {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.08);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
}

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

.fee-field {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.fee-field input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #fff;
    color: #0f172a;
    font: inherit;
    box-sizing: border-box;
}

.fee-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.metric-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.metric-card__label {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
}

.metric-card__value {
    margin-top: 6px;
    font-size: clamp(1.15rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.fee-summary-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.fee-summary-card__label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fee-summary-card h3 {
    margin: 8px 0;
    font-size: 1.25rem;
}

.fee-table-wrap {
    overflow-x: auto;
}

.fee-comparison-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.fee-comparison-table th,
.fee-comparison-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: left;
}

.fee-comparison-table thead th {
    font-size: 0.84rem;
    font-weight: 800;
    color: #334155;
}

.fee-comparison-table tbody th {
    color: #475569;
    width: 140px;
}

.fee-comparison-table td {
    font-weight: 700;
    color: #0f172a;
}

.fee-comparison-table td.is-best {
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
}

.fee-insights,
.fee-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.insight-item,
.fee-steps article {
    padding: 22px;
}

.insight-item h3,
.fee-steps h3,
.fee-faq summary {
    margin: 0;
}

.insight-item p,
.fee-steps p {
    margin-top: 10px;
}

.fee-steps article span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
}

.fee-steps h3 {
    margin-top: 14px;
}

.fee-faq {
    display: grid;
    gap: 12px;
}

.fee-faq details {
    padding: 18px 20px;
}

.fee-faq summary {
    cursor: pointer;
    font-weight: 800;
    color: #0f172a;
}

.fee-faq p {
    margin-top: 12px;
}

.fee-cta__inner {
    justify-content: space-between;
}

.fee-footer {
    padding: 0 0 28px;
}

.fee-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fee-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.fee-footer__links a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 980px) {
    .fee-hero__grid,
    .fee-simulator,
    .fee-insights,
    .fee-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .fee-shell {
        width: min(100% - 24px, 1160px);
    }

    .fee-hero,
    .fee-section,
    .fee-cta {
        padding: 20px 0;
    }

    .fee-hero__content,
    .fee-hero__panel,
    .fee-form-panel,
    .fee-results-panel,
    .fee-table-wrap,
    .insight-item,
    .fee-steps article,
    .fee-faq details,
    .fee-cta__inner {
        padding: 18px;
        border-radius: 18px;
    }

    .fee-hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.9rem);
        max-width: none;
    }

    .fee-form-grid,
    .fee-metrics {
        grid-template-columns: 1fr;
    }

    .fee-section-heading,
    .fee-footer__inner,
    .fee-cta__inner {
        display: grid;
    }

    .fee-button,
    .fee-copy-button {
        width: 100%;
    }

    .fee-comparison-table {
        min-width: 620px;
    }
}
