/* ID180 MemberHub Frontend
   Build 8.0.9: contained app shell with dashboard stacking.
   MemberHub owns the app layout, never exceeds the page/builder container, and stacks dashboard panels cleanly. */

.id180-mh-shortcode-frame {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 1440px;
    margin: 24px auto;
    padding: 0;
    position: static;
    left: auto;
    right: auto;
    transform: none;
    overflow-x: clip;
}

.id180-mh-shortcode-frame,
.id180-mh-shortcode-frame * {
    min-inline-size: 0;
}

.id180-mh-app,
.id180-mh-app *,
.id180-mh-app *::before,
.id180-mh-app *::after {
    box-sizing: border-box;
}

.id180-mh-app {
    background: var(--id180-mh-surface-soft);
    border: 1px solid var(--id180-mh-border);
    border-radius: var(--id180-mh-radius-lg);
    box-shadow: var(--id180-mh-shadow);
    color: var(--id180-mh-ink);
    font-family: var(--id180-mh-font);
    inline-size: 100%;
    max-inline-size: 100%;
    margin: 0;
    overflow: hidden;
}


.id180-mh-shortcode-frame,
.id180-mh-app,
.id180-mh-shell,
.id180-mh-sidebar,
.id180-mh-main,
.id180-mh-view {
    max-width: 100%;
}

.id180-mh-main {
    overflow-x: clip;
}

.id180-mh-app a,
.id180-mh-app button {
    font-family: inherit;
}

.id180-mh-app img,
.id180-mh-app video,
.id180-mh-app iframe {
    max-inline-size: 100%;
}

.id180-mh-header {
    align-items: center;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--id180-mh-border);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-inline-size: 0;
    padding: 18px 28px;
}

.id180-mh-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-inline-size: 0;
}

.id180-mh-brand-mark {
    align-items: center;
    background: var(--id180-mh-primary);
    border-radius: 14px;
    color: #fff;
    display: flex;
    flex: 0 0 42px;
    font-size: 13px;
    font-weight: 900;
    block-size: 42px;
    justify-content: center;
    inline-size: 42px;
}

.id180-mh-brand-title {
    color: var(--id180-mh-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.id180-mh-brand-subtitle,
.id180-mh-user-pill {
    color: var(--id180-mh-muted);
    font-size: 13px;
    font-weight: 700;
}

.id180-mh-user-pill {
    background: var(--id180-mh-surface-soft);
    border: 1px solid var(--id180-mh-border);
    border-radius: 999px;
    flex: 0 1 auto;
    max-inline-size: 100%;
    overflow: hidden;
    padding: 8px 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id180-mh-shell {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    inline-size: 100%;
    max-inline-size: 100%;
    min-block-size: 620px;
    min-inline-size: 0;
}

.id180-mh-sidebar {
    background: #fff;
    border-right: 1px solid var(--id180-mh-border);
    min-inline-size: 0;
    padding: 20px;
}

.id180-mh-nav {
    display: grid;
    gap: 8px;
}

.id180-mh-nav-item {
    align-items: center;
    border-radius: var(--id180-mh-radius-sm);
    color: var(--id180-mh-muted) !important;
    display: flex;
    font-weight: 800;
    gap: 10px;
    min-inline-size: 0;
    padding: 12px 14px;
    text-decoration: none !important;
    transition: background var(--id180-mh-transition), color var(--id180-mh-transition);
}

.id180-mh-nav-item:hover,
.id180-mh-nav-item.is-active {
    background: var(--id180-mh-primary-soft);
    color: var(--id180-mh-primary-dark) !important;
}

.id180-mh-nav-icon {
    flex: 0 0 22px;
    inline-size: 22px;
}

.id180-mh-main {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    overflow: hidden;
    padding: var(--id180-mh-page-padding, 32px);
}

.id180-mh-view {
    display: grid;
    gap: var(--id180-mh-section-gap, 24px);
    inline-size: 100%;
    max-inline-size: none;
    min-inline-size: 0;
    margin: 0;
}

.id180-mh-view > * {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
}

.id180-mh-app :where(h1,h2,h3,h4,p,span,strong,em,a,div) {
    overflow-wrap: anywhere;
    word-break: normal;
}

.id180-mh-breadcrumb {
    align-items: center;
    color: var(--id180-mh-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    margin: 0 0 18px;
    min-inline-size: 0;
    text-transform: uppercase;
}

.id180-mh-breadcrumb-separator { opacity: .55; }

.id180-mh-kicker {
    color: var(--id180-mh-primary) !important;
    font-size: 12px !important;
    font-weight: 900;
    letter-spacing: .12em;
    margin: 0 0 8px !important;
    text-transform: uppercase;
}

/* Shared components */
.id180-mh-panel,
.id180-mh-stat-card,
.id180-mh-card,
.id180-mh-feature-card,
.id180-mh-empty-state,
.id180-mh-public-message,
.id180-mh-program-hero,
.id180-mh-collection-hero,
.id180-mh-continue-card,
.id180-mh-roadmap-item,
.id180-mh-lesson-card,
.id180-mh-next-card,
.id180-mh-resource-item,
.id180-mh-next-link,
.id180-mh-soft-note,
.id180-mh-program-row,
.id180-mh-collection-row {
    min-inline-size: 0;
}

.id180-mh-panel {
    background: var(--id180-mh-surface);
    border: 1px solid var(--id180-mh-border);
    border-radius: var(--id180-mh-card-radius, 20px);
    box-shadow: var(--id180-mh-shadow-soft);
    padding: 22px;
}

.id180-mh-panel-header {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
    min-inline-size: 0;
}

.id180-mh-panel-header h2 {
    color: var(--id180-mh-ink);
    font-size: 22px;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 0;
    min-inline-size: 0;
}

.id180-mh-panel-header a {
    color: var(--id180-mh-primary) !important;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.id180-mh-small-meta,
.id180-mh-stat-label {
    color: var(--id180-mh-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Dashboard */
.id180-mh-dashboard-hero {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.id180-mh-dashboard-hero h1,
.id180-mh-program-hero h1,
.id180-mh-collection-hero h1 {
    color: var(--id180-mh-ink);
    letter-spacing: -.05em;
    line-height: 1;
    margin: 0 0 12px;
}

.id180-mh-dashboard-hero h1 { font-size: clamp(34px, 4vw, 48px); }
.id180-mh-program-hero h1 { font-size: clamp(34px, 4vw, 54px); }
.id180-mh-collection-hero h1 { font-size: clamp(32px, 4vw, 50px); }

.id180-mh-dashboard-hero p:not(.id180-mh-kicker),
.id180-mh-program-hero-main > p:not(.id180-mh-kicker),
.id180-mh-collection-hero-main > p:not(.id180-mh-kicker) {
    color: var(--id180-mh-muted);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
}

.id180-mh-stats-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.id180-mh-stat-card {
    align-items: center;
    background: var(--id180-mh-surface);
    border: 1px solid var(--id180-mh-border);
    border-radius: 18px;
    box-shadow: var(--id180-mh-shadow-soft);
    display: grid;
    gap: 4px 14px;
    grid-template-columns: 54px minmax(0, 1fr);
    min-block-size: 118px;
    padding: 20px;
    transition: transform var(--id180-mh-transition), box-shadow var(--id180-mh-transition);
}

.id180-mh-stat-card:hover {
    box-shadow: var(--id180-mh-shadow);
    transform: translateY(-2px);
}

.id180-mh-stat-icon {
    align-items: center;
    background: var(--id180-mh-primary-soft);
    border-radius: 16px;
    color: var(--id180-mh-primary);
    display: flex;
    font-size: 22px;
    font-weight: 900;
    grid-row: span 3;
    block-size: 48px;
    justify-content: center;
    inline-size: 48px;
}

.id180-mh-stat-title {
    color: var(--id180-mh-ink);
    font-size: 14px;
    font-weight: 800;
}

.id180-mh-stat-card strong {
    color: var(--id180-mh-ink);
    display: block;
    font-size: 30px;
    letter-spacing: -.04em;
    line-height: 1;
}

.id180-mh-stat-card span:last-child {
    color: var(--id180-mh-muted);
    font-size: 13px;
    font-weight: 700;
}

.id180-mh-dashboard-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.id180-mh-panel-large { min-block-size: 330px; }

.id180-mh-continue-card {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: 18px;
    display: grid;
    gap: 24px;
    grid-template-columns: 150px minmax(0, 1fr);
    min-block-size: 240px;
    padding: 26px;
}

.id180-mh-continue-art {
    align-items: center;
    background: #fff;
    border: 1px solid var(--id180-mh-border);
    border-radius: 22px;
    box-shadow: var(--id180-mh-shadow-soft);
    display: flex;
    font-size: 56px;
    block-size: 140px;
    justify-content: center;
    inline-size: 140px;
}

.id180-mh-continue-card h3 {
    color: var(--id180-mh-ink);
    font-size: 26px;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin: 0 0 8px;
}

.id180-mh-continue-card p:not(.id180-mh-kicker) {
    color: var(--id180-mh-muted);
    margin: 0 0 16px;
}

.id180-mh-program-list,
.id180-mh-collection-list,
.id180-mh-roadmap-list,
.id180-mh-lesson-list,
.id180-mh-resource-list,
.id180-mh-next-list,
.id180-mh-collection-side-stack {
    display: grid;
    gap: 12px;
    min-inline-size: 0;
}

.id180-mh-program-row,
.id180-mh-collection-row {
    align-items: center;
    border: 1px solid var(--id180-mh-border);
    border-radius: 16px;
    color: inherit !important;
    display: flex;
    gap: 14px;
    padding: 12px;
    text-decoration: none !important;
    transition: background var(--id180-mh-transition), transform var(--id180-mh-transition), box-shadow var(--id180-mh-transition);
}

.id180-mh-program-row:hover,
.id180-mh-collection-row:hover {
    background: var(--id180-mh-primary-soft);
    box-shadow: var(--id180-mh-shadow-soft);
    transform: translateY(-1px);
}

.id180-mh-program-thumb {
    align-items: center;
    background: linear-gradient(135deg, var(--id180-mh-primary), var(--id180-mh-primary-dark));
    border-radius: 14px;
    color: #fff;
    display: flex;
    flex: 0 0 64px;
    font-size: 13px;
    font-weight: 900;
    block-size: 64px;
    justify-content: center;
    inline-size: 64px;
}

.id180-mh-program-row-body,
.id180-mh-collection-row > span:first-child {
    display: grid;
    flex: 1 1 auto;
    gap: 6px;
    min-inline-size: 0;
}

.id180-mh-program-row strong,
.id180-mh-collection-row strong {
    color: var(--id180-mh-ink);
    font-size: 16px;
    line-height: 1.2;
}

.id180-mh-program-row-body > span:not(.id180-mh-mini-progress),
.id180-mh-collection-row em {
    color: var(--id180-mh-muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.id180-mh-row-arrow {
    color: var(--id180-mh-muted);
    flex: 0 0 auto;
    font-size: 28px;
    line-height: 1;
}

.id180-mh-mini-progress {
    background: #e5e7eb;
    border-radius: 999px;
    display: block;
    block-size: 7px;
    overflow: hidden;
}

.id180-mh-mini-progress span,
.id180-mh-progress-fill {
    background: var(--id180-mh-primary);
    display: block;
    block-size: 100%;
}

/* Program + Collection shared */
.id180-mh-program-hero,
.id180-mh-collection-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: var(--id180-mh-card-radius, 20px);
    box-shadow: var(--id180-mh-shadow-soft);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    overflow: hidden;
    padding: 30px;
}

.id180-mh-program-hero-main,
.id180-mh-collection-hero-main {
    min-inline-size: 0;
}

.id180-mh-program-progress-wrap { max-inline-size: 620px; }

.id180-mh-program-actions,
.id180-mh-collection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.id180-mh-program-summary,
.id180-mh-collection-summary {
    background: rgba(255,255,255,.74);
    border: 1px solid var(--id180-mh-border);
    border-radius: 20px;
    box-shadow: var(--id180-mh-shadow-soft);
    display: grid;
    gap: 12px;
    min-inline-size: 0;
    padding: 16px;
}

.id180-mh-program-summary div,
.id180-mh-collection-summary div {
    background: #fff;
    border: 1px solid var(--id180-mh-border);
    border-radius: 16px;
    min-inline-size: 0;
    padding: 16px;
}

.id180-mh-program-summary strong,
.id180-mh-collection-summary strong,
.id180-mh-stat-number {
    color: var(--id180-mh-primary);
    display: block;
    font-size: 30px;
    letter-spacing: -.04em;
    line-height: 1;
}

.id180-mh-program-summary span,
.id180-mh-collection-summary span {
    color: var(--id180-mh-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.id180-mh-program-layout,
.id180-mh-collection-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    min-inline-size: 0;
}

.id180-mh-roadmap-item,
.id180-mh-lesson-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--id180-mh-border);
    border-radius: var(--id180-mh-card-radius, 20px);
    color: inherit !important;
    display: grid;
    gap: 16px;
    padding: 16px;
    position: relative;
    text-decoration: none !important;
    transition: background var(--id180-mh-transition), box-shadow var(--id180-mh-transition), transform var(--id180-mh-transition), border-color var(--id180-mh-transition);
}

.id180-mh-roadmap-item { grid-template-columns: 52px minmax(0, 1fr) 24px; }
.id180-mh-lesson-card { grid-template-columns: 52px minmax(0, 1fr) minmax(80px, 120px) 24px; }

.id180-mh-roadmap-item:hover,
.id180-mh-lesson-card:hover {
    background: var(--id180-mh-primary-soft);
    border-color: rgba(37,99,235,.24);
    box-shadow: var(--id180-mh-shadow-soft);
    transform: translateY(-1px);
}

.id180-mh-roadmap-marker,
.id180-mh-lesson-marker {
    align-items: center;
    background: var(--id180-mh-surface-soft);
    border: 1px solid var(--id180-mh-border);
    border-radius: 16px;
    color: var(--id180-mh-muted);
    display: flex;
    font-size: 17px;
    font-weight: 950;
    block-size: 52px;
    justify-content: center;
    inline-size: 52px;
}

.id180-mh-roadmap-item.is-current .id180-mh-roadmap-marker,
.id180-mh-lesson-card.is-current .id180-mh-lesson-marker {
    background: var(--id180-mh-primary);
    border-color: var(--id180-mh-primary);
    color: #fff;
}

.id180-mh-roadmap-item.is-complete .id180-mh-roadmap-marker,
.id180-mh-lesson-card.is-complete .id180-mh-lesson-marker {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.id180-mh-roadmap-body,
.id180-mh-lesson-body {
    display: grid;
    gap: 8px;
    min-inline-size: 0;
}

.id180-mh-roadmap-topline,
.id180-mh-lesson-topline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    justify-content: space-between;
    min-inline-size: 0;
}

.id180-mh-roadmap-topline strong,
.id180-mh-lesson-topline strong {
    color: var(--id180-mh-ink);
    flex: 1 1 180px;
    font-size: 17px;
    line-height: 1.25;
    min-inline-size: 0;
}

.id180-mh-roadmap-topline em,
.id180-mh-type-pill,
.id180-mh-status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    gap: 6px;
    letter-spacing: .04em;
    padding: 6px 9px;
    text-transform: uppercase;
}

.id180-mh-roadmap-topline em,
.id180-mh-type-pill {
    background: var(--id180-mh-primary-soft);
    color: var(--id180-mh-primary-dark);
}

.id180-mh-status-pill {
    background: #f1f5f9;
    color: #475569;
}

.id180-mh-status-pill.is-current {
    background: var(--id180-mh-primary-soft);
    color: var(--id180-mh-primary-dark);
}

.id180-mh-status-pill.is-complete {
    background: #dcfce7;
    color: #166534;
}

.id180-mh-roadmap-description,
.id180-mh-roadmap-meta,
.id180-mh-lesson-description {
    color: var(--id180-mh-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    min-inline-size: 0;
}

.id180-mh-roadmap-meta {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(90px, 160px);
}

.id180-mh-lesson-meta {
    color: var(--id180-mh-muted);
    display: grid;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    justify-items: end;
    min-inline-size: 0;
    text-transform: uppercase;
}

.id180-mh-next-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: 18px;
    padding: 22px;
}

.id180-mh-next-icon,
.id180-mh-resource-icon,
.id180-mh-soft-note > span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--id180-mh-border);
    border-radius: 16px;
    display: flex;
    flex: 0 0 44px;
    font-size: 20px;
    block-size: 44px;
    justify-content: center;
    inline-size: 44px;
}

.id180-mh-next-icon {
    border-radius: 18px;
    box-shadow: var(--id180-mh-shadow-soft);
    font-size: 22px;
    block-size: 56px;
    inline-size: 56px;
    margin-bottom: 18px;
}

.id180-mh-next-card h3 {
    color: var(--id180-mh-ink);
    font-size: 22px;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 0 0 10px;
}

.id180-mh-next-card p:not(.id180-mh-kicker) {
    color: var(--id180-mh-muted);
    font-size: 14px;
    margin: 0 0 18px;
}

.id180-mh-resource-item,
.id180-mh-next-link {
    align-items: center;
    border: 1px solid var(--id180-mh-border);
    border-radius: 16px;
    color: inherit !important;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 14px;
    text-decoration: none !important;
    transition: background var(--id180-mh-transition), transform var(--id180-mh-transition), box-shadow var(--id180-mh-transition);
}

.id180-mh-resource-item:hover,
.id180-mh-next-link:hover {
    background: var(--id180-mh-primary-soft);
    box-shadow: var(--id180-mh-shadow-soft);
    transform: translateY(-1px);
}

.id180-mh-resource-item strong,
.id180-mh-next-link strong {
    color: var(--id180-mh-ink);
    display: block;
    font-size: 14px;
    line-height: 1.25;
    min-inline-size: 0;
}

.id180-mh-resource-item span,
.id180-mh-next-link span {
    color: var(--id180-mh-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
    min-inline-size: 0;
}

.id180-mh-soft-note {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border-radius: 16px;
    display: grid;
    gap: 16px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 18px;
}

.id180-mh-soft-note strong {
    color: var(--id180-mh-ink);
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.id180-mh-soft-note p {
    color: var(--id180-mh-muted);
    font-size: 13px;
    margin: 0;
}

/* Progress */
.id180-mh-progress { margin-top: var(--id180-mh-space, 16px); }
.id180-mh-progress-track { background: #e5e7eb; border-radius: 999px; block-size: 10px; overflow: hidden; }
.id180-mh-progress-fill { border-radius: inherit; transition: inline-size 300ms ease, width 300ms ease; }
.id180-mh-progress-label { color: var(--id180-mh-muted); display: block; font-size: 13px; font-weight: 700; margin-top: 8px; }

/* Generic legacy classes */
.id180-mh-hero,
.id180-mh-section,
.id180-mh-grid { min-inline-size: 0; }

.id180-mh-grid { display: grid; gap: var(--id180-mh-space, 16px); }
.id180-mh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.id180-mh-hero {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: var(--id180-mh-radius-lg);
    display: flex;
    gap: var(--id180-mh-space-lg);
    justify-content: space-between;
    padding: var(--id180-mh-space-xl);
}

.id180-mh-hero h1 { color: var(--id180-mh-ink); font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; line-height: 1; margin: 0 0 12px; }
.id180-mh-hero p { color: var(--id180-mh-muted); font-size: 16px; margin: 0; max-inline-size: 620px; }
.id180-mh-hero-card { background: #fff; border: 1px solid var(--id180-mh-border); border-radius: var(--id180-mh-radius); min-inline-size: 170px; padding: var(--id180-mh-space-lg); text-align: center; }


/* Builder/long-content hardening */
.id180-mh-main > *,
.id180-mh-view > *,
.id180-mh-dashboard-grid > *,
.id180-mh-program-layout > *,
.id180-mh-collection-layout > *,
.id180-mh-stats-grid > *,
.id180-mh-program-hero > *,
.id180-mh-collection-hero > *,
.id180-mh-panel > *,
.id180-mh-card > * {
    min-inline-size: 0;
    max-inline-size: 100%;
}

.id180-mh-app :where(h1,h2,h3,h4,p,strong,span,em,a,li) {
    max-inline-size: 100%;
    overflow-wrap: anywhere;
}


@media (max-width: 1280px) {
    .id180-mh-continue-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .id180-mh-continue-art {
        block-size: 104px;
        inline-size: 104px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .id180-mh-dashboard-grid,
    .id180-mh-program-layout,
    .id180-mh-collection-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .id180-mh-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .id180-mh-program-hero,
    .id180-mh-collection-hero { grid-template-columns: 1fr; }
    .id180-mh-program-summary,
    .id180-mh-collection-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .id180-mh-shortcode-frame { width: 100%; max-width: 100%; margin: 0; }
    .id180-mh-app { border-radius: 0; inline-size: 100%; max-inline-size: 100%; }
    .id180-mh-shell { grid-template-columns: 1fr; }
    .id180-mh-sidebar { border-bottom: 1px solid var(--id180-mh-border); border-right: 0; }
    .id180-mh-nav { display: flex; overflow-x: auto; }
    .id180-mh-nav-item { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 760px) {
    .id180-mh-header,
    .id180-mh-main,
    .id180-mh-program-hero,
    .id180-mh-collection-hero,
    .id180-mh-hero { padding: 20px; }
    .id180-mh-header { align-items: flex-start; flex-direction: column; }
    .id180-mh-stats-grid,
    .id180-mh-dashboard-grid,
    .id180-mh-continue-card,
    .id180-mh-program-summary,
    .id180-mh-collection-summary,
    .id180-mh-roadmap-item,
    .id180-mh-roadmap-meta,
    .id180-mh-lesson-card,
    .id180-mh-resource-item,
    .id180-mh-next-link,
    .id180-mh-soft-note,
    .id180-mh-grid-3 { grid-template-columns: 1fr; }
    .id180-mh-continue-art { block-size: 96px; inline-size: 96px; }
    .id180-mh-lesson-meta { justify-items: start; }
    .id180-mh-panel-header,
    .id180-mh-dashboard-hero,
    .id180-mh-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .id180-mh-main { padding: 16px; }
    .id180-mh-panel { padding: 18px; }
    .id180-mh-dashboard-hero h1,
    .id180-mh-program-hero h1,
    .id180-mh-collection-hero h1 { font-size: 34px; }
}

/* Build 8.1: Lesson Experience */
.id180-mh-main {
    container-type: inline-size;
    container-name: id180-mh-main;
}

.id180-mh-lesson-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: var(--id180-mh-card-radius, 20px);
    box-shadow: var(--id180-mh-shadow-soft);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    overflow: hidden;
    padding: 30px;
}

.id180-mh-lesson-hero-main,
.id180-mh-lesson-progress-card,
.id180-mh-lesson-layout,
.id180-mh-lesson-content-panel,
.id180-mh-lesson-content-viewer,
.id180-mh-lesson-side-stack,
.id180-mh-lesson-nav {
    min-inline-size: 0;
    max-inline-size: 100%;
}

.id180-mh-lesson-hero h1 {
    color: var(--id180-mh-ink);
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -.05em;
    line-height: 1;
    margin: 0 0 12px;
}

.id180-mh-lesson-hero-main > p:not(.id180-mh-kicker) {
    color: var(--id180-mh-muted);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
}

.id180-mh-lesson-meta-row {
    align-items: center;
    color: var(--id180-mh-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    margin-top: 18px;
}

.id180-mh-lesson-progress-card {
    background: rgba(255,255,255,.78);
    border: 1px solid var(--id180-mh-border);
    border-radius: 20px;
    box-shadow: var(--id180-mh-shadow-soft);
    display: grid;
    gap: 8px;
    padding: 18px;
}

.id180-mh-lesson-progress-card strong {
    color: var(--id180-mh-primary);
    font-size: 34px;
    letter-spacing: -.04em;
    line-height: 1;
}

.id180-mh-lesson-progress-card > span {
    color: var(--id180-mh-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.id180-mh-lesson-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.id180-mh-lesson-content-panel {
    padding: 0;
    overflow: hidden;
}

.id180-mh-lesson-content-toolbar {
    align-items: center;
    border-bottom: 1px solid var(--id180-mh-border);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-inline-size: 0;
    padding: 18px 22px;
}

.id180-mh-back-link {
    color: var(--id180-mh-primary) !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
}

.id180-mh-lesson-content-viewer {
    background: #fff;
    padding: 28px;
}


.id180-mh-video-lesson {
    display: grid;
    gap: 22px;
    min-inline-size: 0;
}

.id180-mh-video-player {
    background: #0f172a;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .20);
    min-inline-size: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.id180-mh-video-player::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.id180-mh-video-player iframe,
.id180-mh-video-player video {
    border: 0;
    display: block;
    height: 100%;
    inset: 0;
    max-inline-size: 100%;
    object-fit: contain;
    position: absolute;
    width: 100%;
}

.id180-mh-video-details {
    align-items: start;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: 18px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px;
}

.id180-mh-video-details h2,
.id180-mh-video-resource h2 {
    color: var(--id180-mh-ink);
    font-size: 28px;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: 0 0 8px;
}

.id180-mh-video-details p:not(.id180-mh-kicker),
.id180-mh-video-resource p:not(.id180-mh-kicker) {
    color: var(--id180-mh-muted);
    line-height: 1.55;
    margin: 0;
}

.id180-mh-video-resource {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: 18px;
    display: grid;
    gap: 20px;
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 30px;
}

.id180-mh-video-resource-icon {
    align-items: center;
    background: #fff;
    border: 1px solid var(--id180-mh-border);
    border-radius: 22px;
    box-shadow: var(--id180-mh-shadow-soft);
    display: flex;
    font-size: 34px;
    block-size: 76px;
    justify-content: center;
    inline-size: 76px;
}

.id180-mh-video-resource-body {
    display: grid;
    gap: 12px;
    min-inline-size: 0;
}

.id180-mh-video-frame,
.id180-mh-embed-frame,
.id180-mh-pdf-frame {
    background: #0f172a;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.id180-mh-video-frame {
    aspect-ratio: 16 / 9;
}

.id180-mh-embed-frame,
.id180-mh-pdf-frame {
    min-block-size: 480px;
}

.id180-mh-video-frame iframe,
.id180-mh-video-frame video,
.id180-mh-embed-frame iframe,
.id180-mh-pdf-frame iframe {
    border: 0;
    display: block;
    height: 100%;
    max-inline-size: 100%;
    width: 100%;
}

.id180-mh-video-frame video {
    object-fit: contain;
}

.id180-mh-audio-player {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: 18px;
    padding: 28px;
}

.id180-mh-audio-player audio {
    width: 100%;
}

.id180-mh-wp-content {
    color: var(--id180-mh-ink);
    font-size: 17px;
    line-height: 1.7;
}

.id180-mh-wp-content :where(h1,h2,h3,h4) {
    color: var(--id180-mh-ink);
    letter-spacing: -.03em;
    line-height: 1.15;
}

.id180-mh-wp-content :where(p,ul,ol,blockquote) {
    margin-block: 0 1.1em;
}

.id180-mh-wp-content img {
    border-radius: 14px;
    height: auto;
}

.id180-mh-download-view,
.id180-mh-lesson-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: 18px;
    display: grid;
    gap: 20px;
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 30px;
}


.id180-mh-lesson-placeholder-body {
    min-inline-size: 0;
    max-inline-size: 100%;
}

.id180-mh-lesson-placeholder-body > :last-child {
    margin-bottom: 0;
}

.id180-mh-download-icon,
.id180-mh-lesson-placeholder > span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--id180-mh-border);
    border-radius: 22px;
    box-shadow: var(--id180-mh-shadow-soft);
    display: flex;
    font-size: 34px;
    block-size: 76px;
    justify-content: center;
    inline-size: 76px;
}

.id180-mh-download-view h2,
.id180-mh-lesson-placeholder h2 {
    color: var(--id180-mh-ink);
    font-size: 28px;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: 0 0 8px;
}

.id180-mh-download-view p,
.id180-mh-lesson-placeholder p {
    color: var(--id180-mh-muted);
    margin: 0 0 16px;
}

.id180-mh-lesson-side-stack,
.id180-mh-lesson-action-stack {
    display: grid;
    gap: 12px;
}

.id180-mh-lesson-action-stack .id180-mh-button {
    justify-content: center;
    text-align: center;
}

.id180-mh-action-note {
    color: var(--id180-mh-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    margin: 14px 0 0;
}

.id180-mh-resource-item.is-active {
    background: var(--id180-mh-primary-soft);
    border-color: rgba(37,99,235,.28);
}

.id180-mh-lesson-nav {
    align-items: center;
    background: #fff;
    border: 1px solid var(--id180-mh-border);
    border-radius: var(--id180-mh-card-radius, 20px);
    box-shadow: var(--id180-mh-shadow-soft);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 16px;
}

.id180-mh-lesson-nav > div:last-child {
    text-align: right;
}

@container id180-mh-main (max-width: 899px) {
    .id180-mh-dashboard-grid,
    .id180-mh-lesson-layout,
    .id180-mh-lesson-hero {
        grid-template-columns: 1fr;
    }

    .id180-mh-lesson-nav {
        grid-template-columns: 1fr;
    }

    .id180-mh-lesson-nav > div:last-child {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .id180-mh-lesson-hero,
    .id180-mh-lesson-content-viewer,
    .id180-mh-download-view,
    .id180-mh-lesson-placeholder {
        padding: 20px;
    }

    .id180-mh-download-view,
    .id180-mh-lesson-placeholder,
    .id180-mh-video-resource,
    .id180-mh-video-details {
        grid-template-columns: 1fr;
    }

    .id180-mh-video-details .id180-mh-button {
        justify-self: start;
    }

    .id180-mh-embed-frame,
    .id180-mh-pdf-frame {
        min-block-size: 360px;
    }
}

/* Progress Engine */
.id180-mh-button.is-loading {
    cursor: wait;
    opacity: .72;
}

.id180-mh-button.is-complete,
.id180-mh-mark-complete.is-complete {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.id180-mh-resource-item.is-complete .id180-mh-resource-icon {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.id180-mh-resource-item.is-complete strong::before {
    content: '✓ ';
    color: #166534;
}

/* Member Experience Build 8.3.2 - Renderer and lesson sidebar polish */
.id180-mh-lesson-content-toolbar {
    justify-content: flex-start;
}

.id180-mh-lesson-complete-panel.is-complete .id180-mh-mark-complete {
    background: #16a34a;
    border-color: #16a34a;
}

.id180-mh-continue-next.is-hidden {
    display: none !important;
}

.id180-mh-document-lesson {
    display: grid;
    gap: 22px;
    min-inline-size: 0;
}

.id180-mh-document-details {
    align-items: start;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid var(--id180-mh-border);
    border-radius: 18px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-inline-size: 0;
    padding: 22px;
}

.id180-mh-document-details h2 {
    color: var(--id180-mh-ink);
    font-size: 28px;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: 0 0 8px;
}

.id180-mh-document-details p {
    color: var(--id180-mh-muted);
    line-height: 1.55;
    margin: 0;
}

.id180-mh-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.id180-mh-pdf-frame {
    background: #f8fafc;
    border: 1px solid var(--id180-mh-border);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
    min-block-size: 640px;
    min-inline-size: 0;
    overflow: hidden;
    width: 100%;
}

.id180-mh-pdf-frame iframe {
    background: #fff;
    border: 0;
    display: block;
    height: 640px;
    inline-size: 100%;
    max-inline-size: 100%;
}

@container id180-mh-main (max-width: 900px) {
    .id180-mh-document-details {
        grid-template-columns: 1fr;
    }

    .id180-mh-document-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .id180-mh-document-details {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .id180-mh-document-actions {
        justify-content: flex-start;
    }

    .id180-mh-pdf-frame,
    .id180-mh-pdf-frame iframe {
        min-block-size: 420px;
        height: 420px;
    }
}
