.progressOverview {
    max-width: 400px;
    background: #e3deff;
    border-radius: 16px;
    display: inline-block;
    padding:40px;
    margin-bottom: 10px;
    margin-right: 8px;
    vertical-align: top;
}

.streakContainer {
    background: #e3deff;
    border-radius: 16px;
    padding:20px;
    margin-bottom: 10px;
    text-align: center;
}

.progressChart {
    background: #e3deff;
    border-radius: 16px;
    padding:30px;
    padding-bottom:20px;
    margin-bottom: 10px;
}

.recommendedExercises {
    background: #e3deff;
    border-radius: 16px;
    padding:40px;
    padding-bottom: 10px;
}

.innerRecommendedExercises {
    padding-bottom:10px;
}

.rightSideContainer {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 415px);
}

.progressHighlight {
    background:#e3deff;
    border-radius: 16px;
    margin:4px;
    padding: 8px;
    padding-right: 2px;
    max-width: 400px;
    min-width:330px;
    height:150px;
    display: inline-block;
    vertical-align: top;
}

.progressHighlightLeft {
    width:100px;display:inline-block;
    padding-top:12px;
    height:100%;
}

.progressHighlightRight {
    margin-left:16px;width:200px;display:inline-block;vertical-align:middle;
}

.progressHighlightImgContainer {
    height:110px;width:110px;background:white;border-radius:110px;text-align:center;padding-top:8px;
}

.highlightContainer {
    display: block;
    vertical-align: top;
    width: 100%;
    background: #e3deff;
    border-radius: 16px;
    padding:40px;
    padding-bottom: 10px;
}

.progressTitle {
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    line-height: 125%;
}

.progressStatContainer {
    height: 101px;

    background: white;
    border-radius: 16px;
    padding:10px;
    margin-bottom: 10px;
}

.streakContainer {
    position:relative;
}

.pastStreakEntry {
    position: absolute;
    width:25px;
    height:175px;
    margin:10px;
    z-index: 110;
    left: 10px;
    background:green;
}

.streakEntry {
    border: 2px solid white;
    height:180px;
    background: white;
    border-radius: 16px;
    padding:10px;
    display: inline-block;
    width:275px;
    margin:10px;
    min-width: 200px;
}

.progressStatTitle {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
}

.progressStatTitle.small {
    font-size: 14px;
}

.streakRecord {
    color:#848280;
}

.recordStreak {
    border: 2px solid #9187d3;
    background: #fbe2c0;
}


@media only screen and (max-width: 998px) {
  .rightSideContainer {
        width:100%;
    }
    .progressOverview {
        width:100%;
        max-width: 100%;
    }
}


@media only screen and (max-width: 768px) {
    .progressOverview {
        padding:10px;
        width:100%;
    }

    .progressChart {
        padding:20px;
        width:100%;
    }

    .rightSideContainer {
        width:100%;
    }

    .highlightContainer {
        padding:10px;
    }

    .innerRecommendedExercises {
        overflow-x: scroll;
        white-space: nowrap;
    }

    }

/* ── Progress Calendar & Streak Redesign ──────────────────────────────────── */

/* Outer flex wrapper: streak card + calendar card side by side */
.pc-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

/* ── Streak card ──────────────────────────────────────────────────────────── */
.pc-streak-card {
    flex: 0 0 200px;
    background: linear-gradient(145deg, #6c5ce7 0%, #9187d3 100%);
    border-radius: 18px;
    padding: 20px 16px 16px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 180px;
}

.pc-streak-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-streak-flame {
    font-size: 34px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.pc-streak-nums { flex: 1; }

.pc-streak-big {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pc-streak-unit {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.85;
    margin-top: 2px;
}

.pc-streak-best {
    text-align: center;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 6px 10px;
}

.pc-streak-best-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.pc-streak-best-lbl {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.pc-streak-msg {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.4;
}

.pc-dot-row {
    display: flex;
    justify-content: space-between;
}

.pc-dot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pc-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.3);
}

.pc-dot--on {
    background: white;
    border-color: white;
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.pc-dot--today {
    border-color: white;
    border-width: 2.5px;
}

.pc-dot-lbl {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.3px;
}

/* ── Calendar card ────────────────────────────────────────────────────────── */
.pc-cal-card {
    flex: 1;
    background: white;
    border-radius: 18px;
    padding: 16px;
    min-width: 0;
}

/* Origin star marker */
.cal-heatmap-origin-star {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 8px;
    line-height: 1;
    color: rgba(255,255,255,0.9);
}

.cal-heatmap-cell {
    position: relative; /* needed for origin star */
}

.cal-heatmap-cell--origin {
    outline: 2px solid #ffc870;
    outline-offset: -2px;
}

.cal-heatmap-cell--planned {
    border: 2px dashed #ffc870;
    background: rgba(255,200,112,0.15) !important;
}
.cal-heatmap-cell--planned .cal-heatmap-day-num { color: #c9a227; }

/* ── Type legend ──────────────────────────────────────────────────────────── */
.pc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0eeff;
}

.pc-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pc-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.pc-legend-lbl {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

/* ── Responsive: stack on narrow screens ─────────────────────────────────── */
@media (max-width: 520px) {
    .pc-wrap { flex-direction: column; }
    .pc-streak-card { flex: none; width: 100%; box-sizing: border-box; }
}


/* ── Parent Progress: combined tabs, activity table, journey accordion ───── */

.pp-section {
    width: 100%;
    margin-top: 8px;
    background: #e3deff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Tabs */
.pp-tab-bar {
    display: flex;
    border-bottom: 2px solid #d0c8f8;
    background: #e3deff;
    padding: 0 16px;
    gap: 4px;
}

.pp-tab {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #7c6fc2;
    padding: 14px 20px 12px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
    transition: color 0.15s, border-color 0.15s;
}

.pp-tab:hover {
    color: #4a3da8;
}

.pp-tab.active {
    color: #4a3da8;
    border-bottom-color: #9187d3;
}

.pp-tab-panel {
    padding: 16px 16px 20px;
}

/* Explainer */
.pp-explainer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: white;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid #d8d2f8;
}

.pp-explainer-icon {
    flex-shrink: 0;
    color: #9187d3;
    margin-top: 1px;
}

.pp-explainer-text {
    font-size: 13px;
    color: #5a5280;
    line-height: 1.5;
}

/* Overall progress bar */
.pp-overall-bar-wrap {
    margin-bottom: 18px;
}

.pp-overall-bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.pp-overall-bar-title {
    font-weight: 700;
    font-size: 14px;
    color: #2a2540;
}

.pp-overall-bar-pct {
    font-weight: 800;
    font-size: 18px;
    color: #55ccaa;
}

.pp-overall-bar-sub {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.pp-bar-track {
    height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 99px;
    overflow: hidden;
}

.pp-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.pp-bar-fill--complete { background: linear-gradient(90deg, #55ccaa, #3db896); }
.pp-bar-fill--active   { background: linear-gradient(90deg, #89C4FF, #5aa8f0); }
.pp-bar-fill--locked   { background: #c8c2e8; }
.pp-bar-fill--done     { background: #55ccaa; }

/* Chapter accordion */
.pp-accordion {
    background: white;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(145,135,211,0.13);
}

.pp-accordion--locked {
    opacity: 0.75;
}

.pp-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.pp-accordion-header:hover {
    background: #f5f3ff;
}

.pp-acc-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pp-acc-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pp-acc-dot--done   { background: #55ccaa; }
.pp-acc-dot--active { background: #89C4FF; box-shadow: 0 0 0 3px rgba(137,196,255,0.3); }
.pp-acc-dot--locked { background: #c8c2e8; }

.pp-acc-info {
    min-width: 0;
}

.pp-acc-name {
    font-weight: 700;
    font-size: 15px;
    color: #2a2540;
    line-height: 1.2;
}

.pp-acc-count {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.pp-acc-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pp-acc-bar-mini {
    width: 80px;
    height: 6px;
    background: #ede9ff;
    border-radius: 99px;
    overflow: hidden;
}

.pp-acc-bar-fill {
    height: 100%;
    border-radius: 99px;
}

.pp-acc-bar-fill--done   { background: #55ccaa; }
.pp-acc-bar-fill--active { background: #89C4FF; }
.pp-acc-bar-fill--locked { background: #c8c2e8; }

.pp-acc-chevron {
    color: #9187d3;
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.pp-accordion--open .pp-acc-chevron {
    transform: rotate(180deg);
}

/* Accordion body: hidden by default, visible when open */
.pp-accordion-body {
    display: none;
    border-top: 1px solid #ede9ff;
}

.pp-accordion--open .pp-accordion-body {
    display: block;
}

.pp-lock-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #7c6fc2;
    background: #f0eeff;
    padding: 10px 14px;
    border-bottom: 1px solid #e4dfff;
}

.pp-lock-msg svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.pp-chapter-desc-body {
    font-size: 13px;
    color: #6b6485;
    padding: 10px 16px 4px;
    line-height: 1.5;
    margin: 0;
}

/* Exercise rows inside accordion */
.pp-ex-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f4f2ff;
    transition: background 0.12s;
}

.pp-ex-row:last-child {
    border-bottom: none;
}

.pp-ex-row:hover {
    background: #faf9ff;
}

.pp-ex-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
}

.pp-ex-dot--complete  { background: #55ccaa; }
.pp-ex-dot--progress  { background: #ffc870; }
.pp-ex-dot--improve   { background: #fb7179; }
.pp-ex-dot--locked    { background: #c8c2e8; }
.pp-ex-dot--available { background: #89C4FF; box-shadow: 0 0 0 3px rgba(137,196,255,0.25); }
.pp-ex-dot--skipped, .pp-ex-dot--shadow-skipped { background: #b0accc; }

.pp-ex-body {
    flex: 1;
    min-width: 0;
}

.pp-ex-title {
    font-weight: 600;
    font-size: 14px;
    color: #2a2540;
    line-height: 1.35;
}

.pp-ex-desc {
    font-size: 13px;
    color: #6b6485;
    margin-top: 3px;
    line-height: 1.45;
}

.pp-ex-status-msg {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    border-radius: 6px;
    display: inline-block;
    padding: 2px 8px;
}

.pp-ex-status-msg--complete  { color: #1a7a50; background: #e8faf3; }
.pp-ex-status-msg--progress  { color: #7a5000; background: #fff8e8; }
.pp-ex-status-msg--improve   { color: #9a1c22; background: #fde8e9; }
.pp-ex-status-msg--locked    { color: #5a4f8a; background: #f0eeff; }
.pp-ex-status-msg--available { color: #1a5f9e; background: #e8f4ff; }

.pp-ex-badge-wrap {
    flex-shrink: 0;
    align-self: center;
}

.pp-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pp-badge--complete  { background: #d4f5e8; color: #1a7a50; }
.pp-badge--progress  { background: #fff3d4; color: #7a5000; }
.pp-badge--improve   { background: #fde8e9; color: #9a1c22; }
.pp-badge--locked    { background: #f0eeff; color: #7c6fc2; }
.pp-badge--available { background: #dceeff; color: #1a5f9e; }

/* Activity table */
.pp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    min-width: 440px;
}

.pp-table thead tr {
    background: #9187d3;
    color: white;
}

.pp-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.pp-table th:first-child { border-radius: 10px 0 0 10px; }
.pp-table th:last-child  { border-radius: 0 10px 10px 0; }

.pp-table tbody tr {
    background: white;
    transition: background 0.15s;
}

.pp-table tbody tr:nth-child(even) {
    background: #f3f0ff;
}

.pp-table tbody tr:hover {
    background: #d4ccff;
}

.pp-table td {
    padding: 11px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #e8e4ff;
}

.pp-table tbody tr:last-child td {
    border-bottom: none;
}

.pp-sud {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 5px;
    line-height: 1.3;
}

.pp-sud-low  { color: #1a7a50; background: #d4f5e8; }
.pp-sud-mid  { color: #a05a00; background: #fff0d4; }
.pp-sud-high { color: #b5242c; background: #fde8e9; }

/* Responsive */
@media (max-width: 600px) {
    .pp-tab { padding: 12px 14px 10px; font-size: 14px; }
    .pp-tab-panel { padding: 12px 10px 16px; }

    .pp-acc-bar-mini { width: 50px; }
    .pp-accordion-header { padding: 12px 12px; }
    .pp-ex-row { gap: 10px; padding: 10px 12px; }
    .pp-ex-desc { font-size: 12px; }

    .pp-table,
    .pp-table thead,
    .pp-table tbody,
    .pp-table th,
    .pp-table td,
    .pp-table tr { display: block; }

    .pp-table { min-width: 0; }
    .pp-table thead tr { display: none; }

    .pp-table tbody tr {
        margin-bottom: 10px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(145,135,211,0.18);
    }

    .pp-table td {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 9px 14px;
        border-bottom: 1px solid #ede9ff;
    }

    .pp-table td:last-child { border-bottom: none; }

    .pp-table td::before {
        content: attr(data-label);
        flex: 0 0 90px;
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: #9187d3;
        padding-top: 2px;
    }
}