    html.epay-topbar-loading .schedule-e-page {
        visibility: hidden !important;
    }

    .schedule-e-page {
        --se-navy: #023047;
        --se-teal: #0097b2;
        --se-orange: #f97316;
        --se-orange-soft: #fff7ed;
        --se-teal-soft: #effbfd;
        --se-surface: #f6f9fb;
        --se-border: #d9e3e8;
        --se-text: #294b5b;
        --se-muted: #627783;
        --se-danger: #b42318;
        --se-success: #14804a;
        background: #fff;
        color: var(--se-text);
        font-family: inherit;
    }

    .schedule-e-page *,
    .schedule-e-page *::before,
    .schedule-e-page *::after {
        box-sizing: border-box;
    }

    .schedule-e-page button,
    .schedule-e-page input,
    .schedule-e-page select,
    .schedule-e-page textarea {
        font: inherit;
    }

    /* Hero directly below the website menu, matched to Schedule C */
    .schedule-e-hero {
        position: relative;
        min-height: 354px;
        overflow: hidden;
        padding: 55px 0 46px;
        background: linear-gradient(
            90deg,
            #fffaf7 0%,
            #ffffff 39%,
            #eef3f5 55%,
            #c8d7dc 73%,
            #155a70 100%
        );
    }

    .schedule-e-hero::before,
    .schedule-e-hero::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .schedule-e-hero::before {
        left: -72px;
        bottom: -112px;
        width: 180px;
        height: 180px;
        background: #fde7d7;
    }

    .schedule-e-hero::after {
        top: -106px;
        right: -58px;
        width: 188px;
        height: 188px;
        background: rgba(43, 125, 145, .48);
    }

    .schedule-e-hero > .container {
        position: relative;
        z-index: 2;
        width: min(1184px, calc(100% - 48px));
        max-width: 1184px;
        margin: 0 auto;
        padding: 0;
    }

    .schedule-e-hero__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 560px;
        gap: 58px;
        align-items: center;
    }

    .schedule-e-hero__content {
        width: 100%;
        max-width: 560px;
    }

    /* Match the shared create-page H1 rule before the hero can paint. */
    html body #scheduleEHeroTitle {
        font-family: "Open Sans", sans-serif !important;
        font-size: 40px !important;
        font-weight: 700 !important;
        line-height: 46px !important;
        letter-spacing: -.8px !important;
        text-align: center !important;
        margin: 0 0 10px !important;
        padding: 0 !important;
        max-width: none !important;
        color: #062b45 !important;
    }

    .schedule-e-hero h1 {
        width: 100%;
        max-width: 560px;
        margin: 0 0 14px;
        color: var(--se-navy);
        font-size: clamp(2.15rem, 3vw, 2.36rem);
        font-weight: 800;
        line-height: 1.16;
        letter-spacing: -.025em;
        text-wrap: balance;
    }

    .schedule-e-hero__description {
        width: 100%;
        max-width: 550px;
        margin: 0 0 27px;
        color: #31566a;
        font-size: 1.02rem;
        line-height: 1.9;
    }

    .schedule-e-hero__cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 198px;
        min-height: 53px;
        padding: 13px 24px;
        border: 2px solid var(--se-orange);
        border-radius: 13px;
        background: var(--se-orange);
        color: #06283a;
        font-size: .95rem;
        font-weight: 800;
        text-decoration: none;
        box-shadow: 0 13px 25px rgba(249, 115, 22, .22);
        transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
    }

    .schedule-e-hero__cta:hover,
    .schedule-e-hero__cta:focus {
        border-color: #ff811a;
        background: #ff811a;
        color: #06283a;
        transform: translateY(-2px);
        box-shadow: 0 16px 29px rgba(249, 115, 22, .3);
    }

    .schedule-e-hero__steps-card {
        position: relative;
        width: 560px;
        max-width: 100%;
        min-height: 249px;
        margin-left: auto;
        padding: 43px 30px 29px;
        border: 1px solid #d7e1e6;
        border-radius: 25px;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 18px 45px rgba(2, 48, 71, .11);
    }

    .schedule-e-hero__badge {
        position: absolute;
        top: -16px;
        left: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 7px 17px;
        border-radius: 999px;
        background: var(--se-navy);
        color: #fff;
        font-size: .82rem;
        font-weight: 800;
        box-shadow: 0 8px 17px rgba(2, 48, 71, .17);
    }

    .schedule-e-hero__steps {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
    }

    .schedule-e-hero__step {
        min-width: 0;
        text-align: center;
    }

    .schedule-e-hero__step-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 29px;
        height: 29px;
        margin-bottom: 11px;
        border-radius: 50%;
        background: var(--se-navy);
        color: #fff;
        font-size: .76rem;
        font-weight: 800;
    }

    .schedule-e-hero__step-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 66px;
        height: 66px;
        margin: 0 auto 12px;
        border: 2px solid var(--se-orange);
        border-radius: 50%;
        background: var(--se-navy);
        box-shadow: 0 8px 16px rgba(2, 48, 71, .13);
    }

    .schedule-e-hero__step-icon svg {
        display: block;
        width: 27px;
        height: 27px;
        fill: none;
        stroke: #fff;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .schedule-e-hero__step h3 {
        margin: 0 0 6px;
        color: var(--se-navy);
        font-size: .98rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .schedule-e-hero__step p {
        margin: 0;
        color: #5e7080;
        font-size: .78rem;
        line-height: 1.45;
        white-space: nowrap;
    }

    .schedule-e-hero__connector {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 23px;
    }

    .schedule-e-hero__connector span {
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 99px;
        background: linear-gradient(90deg, var(--se-orange) 0 48%, var(--se-teal) 48% 100%);
    }

    .schedule-e-main {
        padding: 28px 0 64px;
        overflow: visible;
        background: #fff;
        scroll-margin-top: 90px;
    }

    .schedule-e-main > .container {
        margin: 0 auto;
        padding: 0 12px 0;
        width: 100%;
        max-width: 1220px;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    .schedule-e-intro {
        margin-bottom: 20px;
        padding: 16px 18px;
        border: 1px solid #cfe7ec;
        border-radius: 14px;
        background: var(--se-teal-soft);
    }

    .schedule-e-intro strong {
        display: block;
        margin-bottom: 4px;
        color: var(--se-navy);
        font-size: .95rem;
    }

    .schedule-e-intro span {
        color: var(--se-muted);
        font-size: .86rem;
        line-height: 1.55;
    }

    .schedule-e-error-box {
        margin-bottom: 18px;
        padding: 12px 14px;
        border: 1px solid #f1b9b4;
        border-radius: 10px;
        background: #fff3f2;
        color: var(--se-danger);
        font-size: .85rem;
        line-height: 1.55;
    }

    .schedule-e-error-box:empty {
        display: none;
    }

    .schedule-e-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr);
        gap: 24px;
        align-items: start;
    }

    .schedule-e-form {
        min-width: 0;
    }


    .schedule-e-layout-row {
        overflow: visible;
    }

    .schedule-e-form-column,
    .schedule-e-preview-column {
        min-width: 0;
    }

    @media (min-width: 1200px) {
        .schedule-e-layout-row {
        }

        .schedule-e-layout-row > .schedule-e-form-column,
        .schedule-e-layout-row > .schedule-e-preview-column {
            width: 100%;
            max-width: none;
            padding: 0;
        }
    }

    @media (min-width: 992px) and (max-width: 1199.98px) {
        .schedule-e-layout-row {
        }

        .schedule-e-layout-row > .schedule-e-form-column,
        .schedule-e-layout-row > .schedule-e-preview-column {
            width: 100%;
            max-width: none;
            padding: 0;
        }
    }

    .schedule-e-card {
        --se-field-gap: 18px;
        --se-label-gap: 7px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--se-field-gap);
        margin: 0 0 24px;
        padding: 24px 26px;
        overflow: visible;
        border: 1px solid var(--se-border);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(2, 48, 71, .07);
    }

    .schedule-e-card__head {
        display: block;
        margin: 0;
        padding: 0 0 14px;
        border-bottom: 2px solid #e8eef1;
    }

    .schedule-e-card__number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--se-navy);
        color: #fff;
        font-size: .86rem;
        font-weight: 800;
        box-shadow: 0 5px 12px rgba(2, 48, 71, .15);
    }

    .schedule-e-card__head h2 {
        margin: 0;
        color: var(--se-navy);
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1.35;
    }

    .schedule-e-card__head p {
        margin: 6px 0 0;
        color: var(--se-muted);
        font-size: .78rem;
        line-height: 1.5;
    }

    .schedule-e-card__body {
        padding: 0;
    }

    .schedule-e-grid,
    .schedule-e-grid--3,
    .schedule-e-grid--5 {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--se-field-gap, 18px);
    }


    /* Purpose-specific layouts keep long Schedule E labels readable. */
    .schedule-e-property-grid,
    .schedule-e-remic-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--se-field-gap, 18px);
        align-items: stretch;
    }

    .schedule-e-property-grid > .schedule-e-field,
    .schedule-e-remic-grid > .schedule-e-field {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

    .schedule-e-property-grid .schedule-e-input,
    .schedule-e-property-grid .schedule-e-select,
    .schedule-e-property-grid .schedule-e-money,
    .schedule-e-property-grid .schedule-e-choice,
    .schedule-e-remic-grid .schedule-e-input,
    .schedule-e-remic-grid .schedule-e-select,
    .schedule-e-remic-grid .schedule-e-money {
        margin-top: auto;
    }

    .schedule-e-choice-field {
        display: flex;
        align-items: stretch;
    }

    .schedule-e-choice-field .schedule-e-choice {
        width: 100%;
        min-height: 44px;
        margin: 0;
        align-items: center;
    }

    .schedule-e-entity-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-e-entity-options {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        margin-top: 15px;
    }

    .schedule-e-entity-options .schedule-e-choice {
        width: 100%;
        min-height: 44px;
        margin: 0;
        align-items: center;
    }

    .schedule-e-remic-grid .schedule-e-field--full {
        grid-column: 1 / -1;
    }

    .schedule-e-summary--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-e-summary--single .schedule-e-summary__item {
        width: 100%;
    }

    .schedule-e-reconciliation-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .schedule-e-reconciliation-grid .schedule-e-field {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        align-items: stretch;
        min-height: 0;
        padding: 13px 14px;
        border: 1px solid #dce5e9;
        border-radius: 10px;
        background: #fbfdfe;
    }

    .schedule-e-reconciliation-grid .schedule-e-label {
        margin: 0;
    }

    .schedule-e-field,
    .schedule-e-field--full {
        min-width: 0;
    }

    .schedule-e-field--full {
        grid-column: 1 / -1;
    }

    .schedule-e-label {
        display: block;
        margin: 0 0 var(--se-label-gap, 7px);
        color: var(--se-navy);
        font-size: .84rem;
        font-weight: 600;
        line-height: 1.38;
    }

    .schedule-e-label small {
        display: block;
        margin-top: 3px;
        color: var(--se-muted);
        font-size: .78rem;
        font-weight: 500;
        line-height: 1.5;
    }

    .schedule-e-input,
    .schedule-e-select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        height: 44px;
        padding: 9px 12px;
        border: 1px solid #cfdbe1;
        border-radius: 9px;
        background: var(--se-surface);
        color: var(--se-navy);
        font-size: .9rem;
        line-height: 1.35;
        outline: none;
        box-shadow: none;
        transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    }

    .schedule-e-textarea {
        width: 100%;
        min-width: 0;
        min-height: 96px;
        padding: 9px 12px;
        border: 1px solid #cfdbe1;
        border-radius: 9px;
        background: var(--se-surface);
        color: var(--se-navy);
        font-size: .9rem;
        line-height: 1.45;
        outline: none;
        box-shadow: none;
        resize: vertical;
    }

    .schedule-e-input:focus,
    .schedule-e-select:focus,
    .schedule-e-textarea:focus {
        border-color: var(--se-teal);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0, 151, 178, .14);
    }

    .schedule-e-radio {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .schedule-e-choice,
    .schedule-e-checkline {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 13px;
        border: 1px solid #dce5e9;
        border-radius: 10px;
        background: #fbfdfe;
        color: #294b5b;
        font-size: .84rem;
        font-weight: 600;
        line-height: 1.5;
        cursor: pointer;
    }

    .schedule-e-choice:hover,
    .schedule-e-checkline:hover {
        border-color: #9bcbd5;
        background: #f3fbfc;
    }

    .schedule-e-choice input,
    .schedule-e-checkline input {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: var(--se-teal);
    }

    .schedule-e-checkline {
        margin-top: 18px;
    }

    .schedule-e-money {
        position: relative;
    }

    .schedule-e-money::before {
        content: "$";
        position: absolute;
        top: 50%;
        left: 14px;
        z-index: 1;
        color: #6d7f89;
        font-weight: 700;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .schedule-e-money .schedule-e-input {
        padding-left: 30px;
        text-align: right;
    }

    .schedule-e-source {
        margin-bottom: 18px;
        overflow: hidden;
        border: 1px solid #dce5e9;
        border-radius: 14px;
        background: #fbfdfe;
    }

    .schedule-e-source__title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        border-bottom: 1px solid #dce5e9;
        background: #f0fbfd;
    }

    .schedule-e-source__title h3 {
        margin: 0;
        color: var(--se-navy);
        font-size: 1rem;
        font-weight: 800;
    }

    .schedule-e-source__title span {
        color: var(--se-muted);
        font-size: .76rem;
        font-weight: 600;
    }

    .schedule-e-source__body {
        padding: 18px;
    }

    .schedule-e-subtitle {
        margin: 20px 0 12px;
        color: var(--se-navy);
        font-size: 1rem;
        font-weight: 800;
    }

    /* Long expense labels use one full-width row like Schedule C Part II. */
    .schedule-e-expenses {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .schedule-e-expense {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        align-items: stretch;
        min-height: 0;
        padding: 13px 14px;
        border: 1px solid #dce5e9;
        border-radius: 10px;
        background: #fff;
    }

    .schedule-e-expense label {
        min-width: 0;
        margin: 0;
        color: var(--se-navy);
        font-size: .84rem;
        font-weight: 600;
        line-height: 1.38;
        word-break: normal;
        overflow-wrap: normal;
    }

    .schedule-e-calcs,
    .schedule-e-summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        margin-top: 16px;
    }

    .schedule-e-calc,
    .schedule-e-summary__item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 56px;
        padding: 12px 14px;
        border: 1px solid #b9dfe6;
        border-radius: 10px;
        background: #f0fbfd;
        color: var(--se-navy);
        font-size: .82rem;
        font-weight: 700;
        line-height: 1.4;
    }

    .schedule-e-calc strong,
    .schedule-e-summary__item strong {
        flex: 0 0 auto;
        color: var(--se-teal);
        font-size: .9rem;
        white-space: nowrap;
    }

    .schedule-e-add {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        min-height: 44px;
        padding: 8px 14px;
        border: 0;
        border-radius: 10px;
        background: var(--se-teal);
        color: #fff;
        font-size: .88rem;
        font-weight: 800;
        cursor: pointer;
        transition: transform .2s ease, background-color .2s ease;
    }

    .schedule-e-add:hover,
    .schedule-e-add:focus {
        background: #00859d;
        transform: translateY(-1px);
    }

    .schedule-e-hidden {
        display: none !important;
    }

    /* Sticky preview remains visible until the left form ends. */
    .schedule-e-preview-column {
        position: sticky;
        top: 96px;
        align-self: flex-start;
        min-width: 0;
        height: fit-content;
    }

    .schedule-e-preview {
        position: relative;
        top: auto;
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 12px;
        overflow: visible;
        border: 1px solid var(--se-border);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 14px 36px rgba(2, 48, 71, .1);
    }

    .schedule-e-preview__heading {
        margin: 0 0 16px;
        text-align: center;
    }

    .schedule-e-preview__heading h2 {
        margin: 0 0 5px;
        color: var(--se-navy);
        font-size: 1.2rem;
        font-weight: 800;
        line-height: 1.35;
    }

    .schedule-e-preview__heading p {
        margin: 0;
        color: var(--se-muted);
        font-size: .82rem;
        line-height: 1.5;
    }

    .schedule-e-year-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 8px;
        padding: 5px 10px;
        border: 1px solid #c9dbe3;
        border-radius: 999px;
        background: #eef8fa;
        color: var(--se-navy);
        font-size: .78rem;
        font-weight: 700;
    }

    .schedule-e-preview__frame-wrap {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: clamp(560px, calc(100vh - 220px), 940px);
        min-height: 560px;
        max-height: 940px;
        overflow: hidden;
        padding: 0;
        border: 1px solid #cfdbe1;
        border-radius: 10px;
        background: #fff;
    }

    .schedule-e-preview__frame {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        background: #fff;
    }

    .schedule-e-preview__status {
        margin-top: 10px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #647681;
        font-size: .76rem;
        line-height: 1.45;
        text-align: center;
    }

    .schedule-e-preview__order {
        margin-top: 11px;
        padding: 11px 13px;
        border: 1px solid #dce5e9;
        border-radius: 10px;
        background: #fbfdfe;
    }

    .schedule-e-preview__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #536c78;
        font-size: .8rem;
        line-height: 1.4;
    }

    .schedule-e-preview__row + .schedule-e-preview__row {
        margin-top: 7px;
        padding-top: 7px;
        border-top: 1px solid #e4ebee;
    }

    .schedule-e-preview__row strong {
        color: var(--se-navy);
        white-space: nowrap;
    }

    .schedule-e-preview__total {
        font-size: .86rem;
        font-weight: 800;
    }

    .schedule-e-preview__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        max-width: 580px;
        margin: 30px auto 8px;
    }

    .schedule-e-preview-button,
    .schedule-e-submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 44px;
        min-height: 44px;
        margin: 0;
        padding: 8px 12px;
        border-radius: 10px;
        font-size: .88rem;
        font-weight: 800;
        line-height: 1.25;
        white-space: nowrap;
        text-align: center;
        cursor: pointer;
    }

    .schedule-e-preview-button {
        border: 1px solid var(--se-navy);
        background: #fff;
        color: var(--se-navy);
    }

    .schedule-e-submit {
        border: 0;
        background: #1a9ba8;
        color: #fff;
        box-shadow: none;
    }

    .schedule-e-preview-button:hover,
    .schedule-e-preview-button:focus,
    .schedule-e-submit:hover,
    .schedule-e-submit:focus {
        transform: translateY(-1px);
    }

    .schedule-e-submit:hover,
    .schedule-e-submit:focus {
        background: #158793;
        color: #fff;
        box-shadow: none;
    }

    .schedule-e-help {
        margin: 0;
        color: #647681;
        font-size: .78rem;
        line-height: 1.5;
        text-align: justify;
        text-justify: inter-word;
    }

    @media (min-width: 992px) and (max-height: 760px) {
        .schedule-e-preview {
            top: auto;
            height: auto;
            min-height: 0;
            padding: 12px;
        }

        .schedule-e-preview__heading {
            margin-bottom: 10px;
        }

        .schedule-e-preview__status,
        .schedule-e-preview__order {
            margin-top: 8px;
        }

        .schedule-e-preview__actions {
            margin-top: 9px;
        }

        .schedule-e-preview-button,
        .schedule-e-submit {
            min-height: 44px;
            padding: 9px 12px;
        }
    }

    @media (max-width: 1199.98px) {
        .schedule-e-hero__grid {
            grid-template-columns: minmax(0, 1fr) 520px;
            gap: 38px;
        }

        .schedule-e-hero__steps-card {
            width: 520px;
            padding-right: 24px;
            padding-left: 24px;
        }

        .schedule-e-layout {
            grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
        }
    }

    @media (max-width: 991.98px) {
        .schedule-e-hero {
            padding: 48px 0;
        }

        .schedule-e-hero__grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .schedule-e-hero__content {
            max-width: 700px;
            margin: 0 auto;
            text-align: center;
        }

        .schedule-e-hero h1,
        .schedule-e-hero__description {
            max-width: 700px;
            margin-right: auto;
            margin-left: auto;
        }

        .schedule-e-hero__steps-card {
            width: min(720px, 100%);
            margin: 18px auto 0;
        }

        .schedule-e-layout {
            grid-template-columns: minmax(0, 1fr);
        }

        .schedule-e-preview-column {
            position: static;
            top: auto;
            align-self: auto;
            height: auto;
        }

        .schedule-e-preview {
            position: relative;
            top: auto;
            height: auto;
            min-height: 0;
            max-height: none;
            margin-top: 8px;
        }

        .schedule-e-preview__frame-wrap {
            height: clamp(540px, 72dvh, 760px);
            min-height: 0;
            max-height: 760px;
        }
    }

    @media (max-width: 767.98px) {
        .schedule-e-main {
            padding-top: 28px;
            padding-bottom: 44px;
        }

        .schedule-e-card {
            padding: 20px;
            border-radius: 14px;
        }

        .schedule-e-card__head {
            margin: 0;
            padding: 0 0 14px;
        }

        .schedule-e-card__body {
            padding: 0;
        }

        .schedule-e-card__head h2 {
            font-size: 1.18rem;
        }

        .schedule-e-grid,
        .schedule-e-grid--3,
        .schedule-e-grid--5,
        .schedule-e-property-grid,
        .schedule-e-entity-details,
        .schedule-e-entity-options,
        .schedule-e-remic-grid,
        .schedule-e-reconciliation-grid,
        .schedule-e-radio,
        .schedule-e-calcs,
        .schedule-e-summary {
            grid-template-columns: minmax(0, 1fr);
        }

        .schedule-e-reconciliation-grid .schedule-e-field {
            grid-template-columns: minmax(0, 1fr);
            gap: 9px;
        }

        .schedule-e-expense {
            grid-template-columns: minmax(0, 1fr);
            gap: 9px;
        }

        .schedule-e-preview {
            padding: 10px;
            border-radius: 14px;
        }

        .schedule-e-preview__frame-wrap {
            height: clamp(460px, 70dvh, 640px);
            min-height: 0;
            max-height: 640px;
        }

    }

    @media (max-width: 479.98px) {
        .schedule-e-preview__actions {
            grid-template-columns: minmax(0, 1fr);
            max-width: 100%;
        }
        .schedule-e-preview-button,
        .schedule-e-submit { white-space: normal; }
    }

    @media (max-width: 575.98px) {
        .schedule-e-hero {
            min-height: 0;
            padding: 42px 0 38px;
        }

        .schedule-e-hero > .container {
            width: min(100% - 28px, 1184px);
        }

        .schedule-e-hero h1 {
            font-size: 2rem;
        }

        .schedule-e-hero__description {
            font-size: .96rem;
            line-height: 1.7;
        }

        .schedule-e-hero__cta {
            width: 100%;
        }

        .schedule-e-hero__steps-card {
            min-height: 0;
            padding: 42px 20px 24px;
        }

        .schedule-e-hero__badge {
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
        }

        .schedule-e-hero__steps {
            grid-template-columns: minmax(0, 1fr);
            gap: 10px;
        }

        .schedule-e-hero__connector {
            min-height: 20px;
            padding: 0;
        }

        .schedule-e-hero__connector span {
            width: 4px;
            height: 22px;
            background: linear-gradient(180deg, var(--se-orange) 0 48%, var(--se-teal) 48% 100%);
        }

        .schedule-e-hero__step p {
            white-space: normal;
        }

        .schedule-e-main > .container {
                width: 100%;
                max-width: 1220px;
                min-width: 0;
                padding-left: 12px;
                padding-right: 12px;
                box-sizing: border-box;
                margin-left: auto;
                margin-right: auto;
        }

        .schedule-e-card {
            padding: 16px;
        }

        .schedule-e-card__head {
            margin: 0;
        }

        .schedule-e-card__body {
            padding: 0;
        }

        .schedule-e-preview {
            padding: 8px;
        }

        .schedule-e-source__title {
            align-items: flex-start;
            flex-direction: column;
        }

        .schedule-e-source__body {
            padding: 14px;
        }

        .schedule-e-preview__frame-wrap {
            height: clamp(420px, 68dvh, 560px);
            min-height: 0;
            max-height: 560px;
        }
    }

/* Original Schedule E image preview box */
.schedule-e-original-preview {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 14px;
    background: #edf2f5;
}

.schedule-e-original-preview img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 18px;
    border: 1px solid #d7e2e7;
    border-radius: 8px;
    background: #ffffff;
}

.schedule-e-original-preview img:last-child {
    margin-bottom: 0;
}

.schedule-e-original-preview[hidden],
.schedule-e-preview__frame[hidden] {
    display: none;
}

.schedule-e-preview-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 28px);
    min-height: 44px;
    margin: 24px auto;
    padding: 8px 12px;
    border: 1px solid var(--se-navy);
    border-radius: 10px;
    background: #fff;
    color: var(--se-navy);
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.schedule-e-preview-fallback:hover,
.schedule-e-preview-fallback:focus {
    background: #f4f8fa;
    color: var(--se-navy);
    text-decoration: none;
}

html.schedule-e-modal-open,
body.schedule-e-modal-open {
    overflow: hidden;
}

.schedule-e-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 40px);
    overflow: auto;
    margin: 0;
    isolation: isolate;
    background: rgba(2, 48, 71, .72);
}

.schedule-e-modal.is-open {
    display: flex;
}

.schedule-e-modal__dialog {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(960px, calc(100vw - 32px));
    height: min(94dvh, 1000px);
    max-width: 100%;
    max-height: 94dvh;
    aspect-ratio: auto;
    margin: auto;
    padding: 6px;
    overflow: visible;
    border: 1px solid #cfdbe1;
    border-radius: 12px;
    background: #edf2f5;
    box-shadow: 0 16px 42px rgba(0, 18, 27, .24);
}

.schedule-e-modal__body,
.schedule-e-modal__body iframe {
    width: 100%;
    height: 100%;
}

.schedule-e-modal__body {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.schedule-e-modal__body iframe {
    display: block;
    border: 0;
    background: #fff;
}

.schedule-e-modal__close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #009bb5;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0,18,27,.24);
}

.schedule-e-modal__close:hover,
.schedule-e-modal__close:focus-visible {
    background: #007f96;
    outline: 3px solid rgba(0,155,181,.28);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .schedule-e-modal {
        padding: 16px;
    }

    .schedule-e-modal__dialog {
        width: min(720px, calc(100vw - 32px));
        max-width: 100%;
        height: calc(100dvh - 32px);
        max-height: 900px;
        aspect-ratio: auto;
    }

    .schedule-e-modal__close {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 767.98px) {
    .schedule-e-modal {
        align-items: stretch;
        padding: 12px;
    }

    .schedule-e-modal__dialog {
        width: 100%;
        height: calc(100dvh - 24px);
        max-height: none;
        padding: 4px;
        border-radius: 10px;
    }

    .schedule-e-modal__close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}
.schedule-e-hero .tax1040-w2-intro ol,
.schedule-e-hero .tax1040-w2-intro li {
    font-size: 14px;
    text-align: left;
}
/* Container layout verified against Form 941; page-scoped, 2026-11-01. */
.schedule-e-layout-row{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,13fr);gap:24px;margin:0;width:100%;min-width:0;align-items:start;box-sizing:border-box}
.schedule-e-layout-row > *{width:100%;max-width:none;min-width:0;padding-left:0;padding-right:0;margin:0;box-sizing:border-box}
@media(min-width:992px) and (max-width:1199.98px){.schedule-e-layout-row{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:22px}}
@media(max-width:991.98px){.schedule-e-layout-row{grid-template-columns:minmax(0,1fr);gap:24px}}
