.exercise-page-hero {
    max-width: 820px;
    margin: 8px auto 28px;
    text-align: center;
}

.exercise-page-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #607080;
}

.exercise-page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: #13283b;
}

.exercise-page-lead {
    max-width: 68ch;
    margin: 14px auto 0;
    font-size: 1rem;
    line-height: 1.72;
    color: #5c6d7c;
}

.sidebar-intro {
    margin: 0 0 14px;
    font-size: 0.94rem;
    line-height: 1.62;
    color: #5c6d7c;
}

.page-container:has(.exercise-page-hero) {
    max-width: 1740px;
}

body.exercise-category-1 .exercise-layout {
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(180px, 205px);
    column-gap: 36px;
    row-gap: 22px;
    max-width: 1700px;
    align-items: start;
}

body.exercise-category-1 #exerciseList {
    gap: 18px;
}

body.exercise-category-1 .info-card {
    grid-column: auto;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    border: 1px solid #dbe4ee;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    text-align: left;
    position: sticky;
    top: 20px;
}

body.exercise-category-1 .info-card.info-card-static .info-toggle {
    display: none;
}

body.exercise-category-1 .info-card.info-card-static #infoBody {
    padding: 0;
    max-height: none;
}

.simple-help-stack {
    display: grid;
    gap: 14px;
}

.simple-help-card {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe4ee;
}

.simple-help-card-accent {
    background: linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
    border-color: #e4dcef;
}

.simple-help-card h2 {
    margin: 0;
    font-size: 1rem;
    color: #17304a;
}

.simple-help-card p,
.simple-help-list li {
    margin: 10px 0 0;
    font-size: 0.95rem;
    line-height: 1.66;
    color: #5a6e7f;
}

.simple-help-list {
    margin: 10px 0 0 18px;
    padding: 0;
}

body.exercise-category-1 .info-btn {
    width: 100%;
    margin-top: 0;
    text-align: center;
    border-radius: 12px;
}

body.exercise-category-1 .calc-container,
body.exercise-category-1 .sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    overflow-x: hidden;
    align-self: flex-start;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

body.exercise-category-1 .calc-container {
    display: none;
}

body.exercise-category-1 .sidebar {
    width: 100%;
    min-width: 0;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    border: 1px solid #dbe4ee;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.exercise-category-1 .sidebar h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #17304a;
}

body.exercise-category-1 #resetProgressBtn {
    width: 100% !important;
    margin-top: 18px !important;
}

body.exercise-category-1 .class-box {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.exercise-category-1 .card {
    min-width: 0;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    border: 1px solid #dbe4ee;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.exercise-category-1 .exercise-card-head {
    margin-bottom: 16px;
}

body.exercise-category-1 .exercise-card-head h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.25;
    color: #13283b;
}

body.exercise-category-1 .exercise-task-kicker {
    margin: 2px 0 0;
    color: #607489;
    font-size: 0.9rem;
    font-weight: 800;
}

body.exercise-category-1 .simple-booking-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

body.exercise-category-1 .simple-booking-steps span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 12px;
    background: #f4f8fb;
    border: 1px solid #dbe5ed;
    color: #42586c;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

body.exercise-category-1 .simple-booking-steps strong {
    display: inline-grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #214661;
    color: #ffffff;
    font-size: 0.74rem;
}

body.exercise-category-1 .exercise-badge {
    background: #eef5fb;
    color: #325065;
}

body.exercise-category-1 .exercise-entry-card {
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe4ee;
    box-shadow: none;
}

body.exercise-category-1 .booking-row-clean {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

body.exercise-category-1 .booking-label {
    color: #718395;
}

body.exercise-category-1 .dropzone {
    min-height: 56px;
    justify-content: flex-start;
    text-align: left;
    background: #f8fafc;
    border-radius: 14px;
    border-color: #cfd9e2;
}

body.exercise-category-1 .dropzone .drop-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 38px;
    border-radius: 10px;
    text-align: left;
}

body.exercise-category-1 .amountInput {
    width: 100%;
    min-height: 56px;
    border-radius: 14px;
    text-align: left;
}

body.exercise-category-1 .exercise-card-actions {
    margin-top: 16px;
}

body.exercise-category-1 .exercise-result {
    margin-top: 12px;
}

body.exercise-category-1 .open-items-bridge {
    border-color: #c7dfd2;
    background:
        linear-gradient(135deg, rgba(235, 247, 239, 0.92) 0%, rgba(255, 252, 242, 0.92) 100%),
        #ffffff;
    box-shadow: 0 18px 42px rgba(39, 91, 69, 0.11);
}

.open-items-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.open-items-head h3 {
    margin: 10px 0 0;
    color: #12324a;
    font-size: 1.55rem;
    line-height: 1.18;
}

.open-items-head p {
    max-width: 72ch;
    margin: 10px 0 0;
    color: #526a5f;
    line-height: 1.62;
}

.open-items-badge {
    background: #e4f2e8;
    color: #255f3f;
}

.open-items-status {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7df;
    border: 1px solid #ead08e;
    color: #7a5108;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.open-items-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: start;
}

.open-items-cases {
    display: grid;
    gap: 12px;
}

.open-items-case {
    display: grid;
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(64, 121, 85, 0.22);
    background: rgba(255, 255, 255, 0.76);
}

.open-items-case-copy span,
.open-items-account-card > span {
    display: inline-flex;
    margin-bottom: 6px;
    color: #287049;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.open-items-case-copy h4,
.open-items-ledger h4 {
    margin: 0;
    color: #18334b;
    font-size: 1.02rem;
    line-height: 1.28;
}

.open-items-case-copy p {
    margin: 8px 0 0;
    color: #405567;
    line-height: 1.52;
}

.open-items-case-copy small {
    display: block;
    margin-top: 8px;
    color: #6d7f73;
    line-height: 1.45;
}

.open-items-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.open-items-fields label {
    display: grid;
    gap: 6px;
    color: #526675;
    font-size: 0.78rem;
    font-weight: 800;
}

.open-items-select,
.open-items-input {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfded4;
    border-radius: 12px;
    background: #ffffff;
    color: #17304a;
    font: inherit;
    font-size: 0.9rem;
    padding: 0 10px;
    outline: none;
}

.open-items-select:focus,
.open-items-input:focus {
    border-color: #2f7a50;
    box-shadow: 0 0 0 3px rgba(47, 122, 80, 0.13);
}

.open-items-ledger {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbf6;
    border: 1px solid #d6e5d8;
}

.open-items-ledger p {
    margin: 2px 0 0;
    color: #64786c;
    font-size: 0.92rem;
    line-height: 1.55;
}

.open-items-account-card {
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dce8de;
}

.open-items-account-row,
.open-items-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.open-items-account-row {
    padding: 8px 0;
    border-bottom: 1px solid #edf3ee;
    color: #405567;
    font-size: 0.94rem;
}

.open-items-account-row strong {
    font-weight: 800;
}

.open-items-account-row b {
    font-variant-numeric: tabular-nums;
}

.open-items-balance {
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 900;
}

body.exercise-category-1 #resetProgressBtn {
    width: 100% !important;
    max-width: 100%;
}

.open-items-balance.is-open {
    background: #fff3d7;
    color: #825606;
}

.open-items-balance.is-clear {
    background: #e8f5eb;
    color: #286342;
}

.open-items-actions {
    justify-content: flex-start;
}

.open-items-scenario {
    display: grid;
    gap: 18px;
}

.open-items-bookings {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #d7e7dc;
    background: rgba(255, 255, 255, 0.75);
    color: #405567;
    line-height: 1.45;
}

.open-items-bookings h4 {
    margin: 0 0 4px;
    color: #18334b;
    font-size: 1.02rem;
}

.open-items-bookings strong {
    color: #1f6040;
}

.open-items-t-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.open-items-t-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #cfe0d4;
    background:
        linear-gradient(#eef7f0 1px, transparent 1px) 0 0 / 100% 44px,
        #ffffff;
}

.open-items-t-head {
    padding: 14px 16px 12px;
    border-bottom: 1px solid #cfe0d4;
    background: linear-gradient(180deg, #f8fbf6 0%, #eef7f0 100%);
}

.open-items-t-head span {
    color: #287049;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.open-items-t-head h4 {
    margin: 5px 0 0;
    color: #18334b;
    font-size: 1rem;
    line-height: 1.25;
}

.open-items-t-account {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 144px;
}

.open-items-t-account::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #cfe0d4;
}

.open-items-t-label {
    padding: 10px 14px 8px;
    color: #617584;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid #e4eee7;
}

.open-items-t-entry {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-height: 72px;
    padding: 12px 14px;
    color: #20384f;
    font-size: 0.94rem;
    line-height: 1.35;
}

.open-items-t-entry strong {
    flex: 0 0 auto;
    color: #12324a;
    font-variant-numeric: tabular-nums;
}

.open-items-saldo-question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr) minmax(110px, 0.55fr);
    gap: 10px;
    align-items: end;
    padding: 14px;
    border-top: 1px solid #dce9df;
    background: rgba(248, 251, 246, 0.88);
}

.open-items-saldo-question p {
    margin: 0;
    color: #405567;
    line-height: 1.45;
}

.open-items-saldo-question label {
    display: grid;
    gap: 6px;
    color: #526675;
    font-size: 0.78rem;
    font-weight: 800;
}

.open-items-note {
    margin: 0;
    padding: 14px 16px;
    border-left: 4px solid #2f7a50;
    border-radius: 14px;
    background: #f8fbf6;
    color: #526a5f;
    line-height: 1.58;
}

.open-items-simple {
    display: grid;
    gap: 16px;
}

.open-items-simple-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #d7e7dc;
    background: rgba(255, 255, 255, 0.76);
}

.open-items-simple-copy span {
    color: #287049;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.open-items-simple-copy h4 {
    margin: 6px 0 0;
    color: #18334b;
    font-size: 1.12rem;
    line-height: 1.28;
}

.open-items-simple-copy p {
    margin: 10px 0 0;
    color: #405567;
    line-height: 1.58;
}

.open-items-mini-account {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #dce8de;
    background: #ffffff;
}

.open-items-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf3ee;
    color: #405567;
    line-height: 1.35;
}

.open-items-mini-row strong {
    flex: 0 0 auto;
    color: #12324a;
    font-variant-numeric: tabular-nums;
}

.open-items-mini-answer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 10px;
    align-items: center;
    color: #255f3f;
    font-size: 0.9rem;
    font-weight: 900;
}

@media (max-width: 720px) {
    body.exercise-category-1 .exercise-layout {
        grid-template-columns: 1fr;
    }

    body.exercise-category-1 .info-card,
    body.exercise-category-1 .sidebar {
        position: static;
    }

    body.exercise-category-1 .sidebar {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.exercise-category-1 .calc-container {
        display: block;
    }

    body.exercise-category-1 .simple-booking-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .open-items-layout,
    .open-items-case,
    .open-items-t-grid,
    .open-items-saldo-question,
    .open-items-simple-card {
        grid-template-columns: 1fr;
    }

    .open-items-mini-answer {
        grid-template-columns: 1fr;
    }

    .open-items-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .exercise-page-hero {
        margin-top: 0;
        margin-bottom: 22px;
    }

    body.exercise-category-1 .card,
    body.exercise-category-1 .sidebar,
    body.exercise-category-1 .info-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    body.exercise-category-1 .simple-booking-steps {
        grid-template-columns: 1fr;
    }

    .open-items-head {
        display: grid;
    }

    .open-items-status {
        justify-self: start;
    }

    .open-items-fields {
        grid-template-columns: 1fr;
    }
}
