.isabel-wrap {
    font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    max-width: 720px;
    color: #1f2937;
}

/* Cards */
.isabel-wrap .isabel-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.isabel-wrap .isabel-card + .isabel-card {
    margin-top: 18px;
}
.isabel-wrap .isabel-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.isabel-wrap .isabel-card-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.isabel-wrap .isabel-card-meta {
    font-size: .82rem;
    color: #6b7280;
}
.isabel-wrap .isabel-card-meta strong {
    color: #111827;
    margin-left: 3px;
}
.isabel-wrap .isabel-payoff strong {
    color: #2563eb;
}

/* Progress bar */
.isabel-wrap .isabel-bar {
    position: relative;
    height: 26px;
    background: #eef1f4;
    border-radius: 999px;
    overflow: hidden;
}
.isabel-wrap .isabel-bar-fill {
    height: 100%;
    min-width: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #34d399, #10b981);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: width .4s ease;
}
.isabel-wrap .isabel-bar-fill-pct {
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    padding-right: 10px;
    white-space: nowrap;
}
.isabel-wrap .isabel-bar-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}
.isabel-wrap .foot {
    display: flex;
    flex-direction: column;
}
.isabel-wrap .foot-right {
    text-align: right;
}
.isabel-wrap .foot-amt {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
}
.isabel-wrap .foot-amt-paid {
    color: #10b981;
}
.isabel-wrap .foot-lbl {
    font-size: .78rem;
    color: #6b7280;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Timeline */
.isabel-wrap .isabel-tl {
    position: relative;
    height: 36px;
    margin: 4px 0 0;
    /* Small buffer below the track; the hover detail card floats over the gap. */
    padding-bottom: 18px;
}
.isabel-wrap .tl-track {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.isabel-wrap .tl-elapsed {
    height: 100%;
    background: linear-gradient(90deg, #93c5fd, #3b82f6);
    border-radius: 999px;
}
.isabel-wrap .tl-tick {
    position: absolute;
    top: 14px;
    width: 1px;
    height: 18px;
    background: #cbd5e1;
}
.isabel-wrap .tl-year {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: .72rem;
    color: #94a3b8;
}
/* Markers (pin + hover detail card) */
.isabel-wrap .tl-marker {
    position: absolute;
    top: 16px;
    transform: translateX(-50%);
    z-index: 2;
}
.isabel-wrap .tl-marker:hover,
.isabel-wrap .tl-marker:focus-within {
    z-index: 6;
    outline: none;
}
.isabel-wrap .tl-pin {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .25);
    cursor: pointer;
    transition: transform .12s ease;
}
.isabel-wrap .tl-marker:hover .tl-pin,
.isabel-wrap .tl-marker:focus-within .tl-pin {
    transform: scale(1.2);
}
.isabel-wrap .tl-pin-start { background: #10b981; }
.isabel-wrap .tl-pin-today { background: #111827; }
.isabel-wrap .tl-pin-proj  { background: #2563eb; }
.isabel-wrap .tl-pin-end   { background: #9ca3af; }

/* Hover detail card (desktop) */
.isabel-wrap .tl-card {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .16);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
    z-index: 6;
}
.isabel-wrap .tl-marker:hover .tl-card,
.isabel-wrap .tl-marker:focus-within .tl-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.isabel-wrap .tl-card::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #fff;
}
.isabel-wrap .tl-marker-hl .tl-card { border-color: #bfdbfe; background: #eff6ff; }
.isabel-wrap .tl-marker-hl .tl-card::before { border-bottom-color: #eff6ff; }
.isabel-wrap .tl-marker-hl .tl-card .ms-val { color: #2563eb; }
/* Keep edge cards from overflowing the container */
.isabel-wrap .tl-marker--start .tl-card { left: 0; transform: translateX(0) translateY(-4px); }
.isabel-wrap .tl-marker--start:hover .tl-card,
.isabel-wrap .tl-marker--start:focus-within .tl-card { transform: translateX(0) translateY(0); }
.isabel-wrap .tl-marker--start .tl-card::before { left: 10px; transform: none; }
.isabel-wrap .tl-marker--end .tl-card { left: auto; right: 0; transform: translateX(0) translateY(-4px); }
.isabel-wrap .tl-marker--end:hover .tl-card,
.isabel-wrap .tl-marker--end:focus-within .tl-card { transform: translateX(0) translateY(0); }
.isabel-wrap .tl-marker--end .tl-card::before { left: auto; right: 10px; transform: none; }

/* Milestone chips — persistent on mobile, hidden on desktop (hover cards used instead) */
.isabel-wrap .isabel-milestones {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 4px;
}
.isabel-wrap .ms {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafbfc;
}
.isabel-wrap .ms-hl {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.isabel-wrap .ms-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 2px;
}
.isabel-wrap .ms-dot-start { background: #10b981; }
.isabel-wrap .ms-dot-today { background: #111827; }
.isabel-wrap .ms-dot-proj  { background: #2563eb; }
.isabel-wrap .ms-dot-end   { background: #9ca3af; }
.isabel-wrap .ms-lbl {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7280;
}
.isabel-wrap .ms-val {
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
}

/* Account balance */
.isabel-wrap .isabel-balance {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
}

/* Transactions table */
.isabel-wrap .isabel-txns {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.isabel-wrap .isabel-txns th,
.isabel-wrap .isabel-txns td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid #eef1f4;
}
.isabel-wrap .isabel-txns thead th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}
.isabel-wrap .isabel-txns .isabel-amt {
    text-align: right;
    white-space: nowrap;
}
.isabel-wrap .isabel-txns .isabel-amt-payment {
    color: #10b981;
}
.isabel-wrap .isabel-txns .isabel-count {
    color: #6b7280;
    font-size: .84rem;
}

/* Month group rows */
.isabel-wrap .isabel-month-row {
    cursor: pointer;
    background: #f8fafc;
}
.isabel-wrap .isabel-month-row:hover {
    background: #eef2f7;
}
.isabel-wrap .isabel-month-row:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}
.isabel-wrap .isabel-month-row td {
    border-bottom: 1px solid #e5e7eb;
}
.isabel-wrap .isabel-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 8px;
    vertical-align: middle;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #6b7280;
    transition: transform .15s ease;
}
.isabel-wrap .isabel-month-row[aria-expanded="true"] .isabel-caret {
    transform: rotate(90deg);
}
.isabel-wrap .isabel-txn-row.is-hidden {
    display: none;
}
.isabel-wrap .isabel-txn-row .isabel-txn-date {
    padding-left: 26px;
    color: #4b5563;
    white-space: nowrap;
}
/* Desktop: full month names / dates; abbreviations hidden */
.isabel-wrap .isabel-lbl-abbr,
.isabel-wrap .isabel-count-abbr,
.isabel-wrap .isabel-d-abbr {
    display: none;
}

@media (max-width: 560px) {
    /* No hover on touch — reclaim the reserved space and show cards persistently */
    .isabel-wrap .isabel-tl {
        padding-bottom: 0;
    }
    .isabel-wrap .tl-card {
        display: none;
    }
    .isabel-wrap .isabel-milestones {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Transaction table: give rows room and use compact labels */
    .isabel-wrap .isabel-txns {
        font-size: .9rem;
    }
    .isabel-wrap .isabel-txns th,
    .isabel-wrap .isabel-txns td {
        padding: 11px 8px;
    }
    .isabel-wrap .isabel-txns thead th {
        font-size: .66rem;
    }
    /* Swap full month / date for 3-letter abbreviations */
    .isabel-wrap .isabel-lbl-full,
    .isabel-wrap .isabel-d-full {
        display: none;
    }
    .isabel-wrap .isabel-lbl-abbr {
        display: inline;
    }
    .isabel-wrap .isabel-d-abbr {
        display: inline;
    }
    /* Count column: show just the number in a subtle pill to save width */
    .isabel-wrap .isabel-txns .isabel-count {
        font-size: 0;
        text-align: center;
        white-space: nowrap;
    }
    .isabel-wrap .isabel-count-abbr {
        display: inline-block;
        min-width: 1.4em;
        padding: 1px 7px;
        font-size: .78rem;
        line-height: 1.5;
        color: #475569;
        background: #e8edf3;
        border-radius: 999px;
    }
    .isabel-wrap .isabel-month-name strong {
        font-size: .98rem;
    }
    .isabel-wrap .isabel-txn-row .isabel-txn-date {
        padding-left: 22px;
    }
}
