/* ================================================================
   Group Lessons — Frontend CSS
   Uses --gl-* variables throughout. Map these to your Bricks
   variables via the bridge CSS in Page Settings > Custom CSS.
   ================================================================ */

/* ----------------------------------------------------------------
   Plugin-level variable defaults (fallbacks if bridge not set)
   ---------------------------------------------------------------- */
/* ----------------------------------------------------------------
   Plugin-level variable bridge
   Text + space scale is sourced from the Studio's Bricks variables
   (--text-2xs, --text-xs, --text-s, --text-m, --text-l, --text-xl,
   --space-2xs ... --space-2xl). Editing those in Bricks Variable
   Manager flows through to every widget automatically.
   Fallback px values are only used if Studio variables are missing.
   ---------------------------------------------------------------- */
:root {
    --gl-text-2xs:      var(--text-2xs, 11px);
    --gl-text-xs:       var(--text-xs, 13px);
    --gl-text-s:        var(--text-s, 15px);
    --gl-text-m:        var(--text-m, 18px);
    --gl-text-l:        var(--text-l, 22px);
    --gl-text-xl:       var(--text-xl, 26px);
    --gl-space-2xs:     var(--space-2xs, 8px);
    --gl-space-xs:      var(--space-xs, 12px);
    --gl-space-s:       var(--space-s, 16px);
    --gl-space-m:       var(--space-m, 20px);
    --gl-space-l:       var(--space-l, 28px);
    --gl-radius:        0.75rem;
    --gl-radius-sm:     0.5rem;
    --gl-dark:          #2C1A0E;
    --gl-dark-l5:       #8c827c;
    --gl-dark-l8:       #c5c1bd;
    --gl-dark-l10:      #eceae9;
    --gl-cream:         #faf7f2;
    --gl-action:        #1D9E75;
    --gl-action-light:  #d5e1df;
    --gl-text-primary:  #1e120a;
    --gl-text-muted:    #8c827c;
    /* Semantic — not overridden by bridge */
    --gl-live:          #E24B4A;
    --gl-live-bg:       #FFF5F5;
    --gl-live-border:   #FFBCBC;
    --gl-amber:         #EF9F27;
    --gl-amber-bg:      #fef8ee;
    --gl-border:        #dde5e0;
    --gl-surface:       #f6f7f7;
    --gl-white:         #ffffff;
}

/* ----------------------------------------------------------------
   Group Lessons section palette mapping
   Re-points all --gl-* tokens to the new --section-grouplessons
   palette so every widget inherits the blue theme.
   Wins over Bricks bridge by being scoped to widget wrappers.
   ---------------------------------------------------------------- */
.gl-sessions-panel,
.gl-dashboard-widget,
.gl-replay-tabs,
.gl-prev-lessons,
.gl-ul-wrap,
.gl-ul-empty-state,
.gl-my-stats,
.gl-materials,
.gl-dw-item {
    --gl-dark:          var(--section-grouplessons-d-3, #1a3a66);
    --gl-dark-l5:       var(--section-grouplessons-d-1, #2c5fa0);
    --gl-dark-l8:       var(--section-grouplessons-l-2, #b3c9ec);
    --gl-dark-l10:      var(--section-grouplessons-l-3, #e6efff);
    --gl-action:        var(--section-grouplessons,     #3a78c9);
    --gl-action-light:  var(--section-grouplessons-l-3, #e6efff);
    --gl-text-primary:  var(--section-grouplessons-d-3, #1a3a66);
    --gl-text-muted:    var(--section-grouplessons-d-1, #2c5fa0);
}

/* ----------------------------------------------------------------
   Panel wrapper
   ---------------------------------------------------------------- */
.gl-sessions-panel,
.gl-dashboard-widget,
.gl-replay-tabs,
.gl-prev-lessons {
    font-family: inherit;
    font-size: var(--gl-text-s);
    color: var(--gl-text-primary);
}

.gl-panel-head,
.gl-dw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gl-space-xs);
}

.gl-panel-title,
.gl-dw-title {
    font-size: var(--gl-text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gl-dark);
}

.gl-dw-rule {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
}

.gl-rule-note {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    margin-bottom: var(--gl-space-xs);
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   Session card
   ---------------------------------------------------------------- */
.gl-session {
    border: none;
    border-bottom: 1px solid var(--gl-dark-l10);
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: none;
}
.gl-session:last-child { border-bottom: none; }

/* Softer state treatment — subtle left accent only, no fill/outline */
.gl-session--mine {
    border-bottom: 1px solid var(--gl-dark-l10);
    border-left: 2px solid var(--gl-action);
    padding-left: var(--gl-space-xs);
    background: transparent;
}
.gl-session--live {
    border-bottom: 1px solid var(--gl-dark-l10);
    border-left: 2px solid var(--gl-live);
    padding-left: var(--gl-space-xs);
    background: transparent;
}
.gl-session--completed { border-bottom: 1px solid var(--gl-dark-l10); }

.gl-session__head {
    padding: var(--gl-space-xs) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    transition: opacity .1s;
}

.gl-session__head:hover { opacity: .7; }

.gl-session__info {
    display: flex;
    align-items: center;
    gap: var(--gl-space-xs);
}

.gl-session__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--gl-dark-l8);
}

.gl-session--mine .gl-session__dot { background: var(--gl-action); }
.gl-session--live .gl-session__dot { background: var(--gl-live); }

.gl-session__host-time {
    font-size: var(--gl-text-xs);
    font-weight: 600;
    color: var(--gl-dark);
}

.gl-session__tz-label {
    font-size: var(--gl-text-2xs);
    font-weight: 400;
    color: var(--gl-text-muted);
    margin-left: 3px;
}

.gl-session__user-time {
    font-size: var(--gl-text-2xs);
    color: var(--gl-action);
    font-weight: 500;
    margin-top: 2px;
}

.gl-session__body {
    padding: var(--gl-space-2xs) var(--gl-space-xs) var(--gl-space-xs);
    border-top: 1px solid var(--gl-dark-l10);
    display: none;
}

.gl-session--open .gl-session__body { display: block; }

/* ----------------------------------------------------------------
   Time detail box
   ---------------------------------------------------------------- */
.gl-time-detail {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: var(--gl-space-xs);
}

.gl-time-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--gl-text-2xs);
    padding: 2px 0;
}

.gl-time-label  { color: var(--gl-text-muted); }
.gl-time-value  { font-weight: 600; color: var(--gl-dark); }
.gl-time-value--user { color: var(--gl-action); }

/* ----------------------------------------------------------------
   Countdown
   ---------------------------------------------------------------- */
.gl-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gl-space-2xs);
    margin-bottom: var(--gl-space-xs);
}

.gl-cbox {
    background: transparent;
    border-radius: 0;
    padding: var(--gl-space-2xs) 3px;
    text-align: center;
}

.gl-cnum {
    font-size: var(--gl-text-l);
    font-weight: 700;
    color: var(--gl-dark);
    display: block;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.gl-clbl {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ----------------------------------------------------------------
   Spots bar
   ---------------------------------------------------------------- */
.gl-spots { margin-bottom: var(--gl-space-xs); }

.gl-spots__bar {
    height: 2px;
    background: var(--gl-dark-l8);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.gl-spots__fill {
    height: 100%;
    border-radius: 2px;
    transition: width .3s;
    opacity: .55;
}

.gl-bar--red   { background: var(--gl-live); }
.gl-bar--amber { background: var(--gl-amber); }
.gl-bar--green { background: var(--gl-action); }

.gl-spots__meta {
    display: flex;
    justify-content: space-between;
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
}

/* ----------------------------------------------------------------
   Badges
   ---------------------------------------------------------------- */
.gl-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--gl-text-2xs);
    font-weight: 700;
    padding: 2px var(--gl-space-2xs);
    border-radius: 20px;
    white-space: nowrap;
}

.gl-badge--live   { background: var(--gl-live);         color: var(--gl-white); }
.gl-badge--done   { background: var(--gl-surface);      color: var(--gl-text-muted); }
.gl-badge--signed { background: var(--gl-action-light); color: var(--gl-action); }
.gl-badge--full   { background: var(--gl-surface);      color: var(--gl-text-muted); opacity: .7; }
.gl-badge--red    { background: var(--gl-live-bg);      color: var(--gl-live); }
.gl-badge--amber  { background: var(--gl-amber-bg);     color: #7a4100; }
.gl-badge--green  { background: var(--gl-action-light); color: var(--gl-action); }

@keyframes gl-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.gl-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gl-white);
    animation: gl-pulse 1s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.gl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gl-space-2xs);
    padding: var(--gl-space-2xs) var(--gl-space-xs);
    border-radius: var(--gl-radius);
    font-size: var(--gl-text-xs);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-decoration: none;
    transition: opacity .15s;
    width: 100%;
    margin-bottom: var(--gl-space-2xs);
}

.gl-btn:hover { opacity: .88; }

.gl-btn--zoom      { background: var(--gl-action);       color: var(--gl-white); }
.gl-btn--join-live { background: var(--gl-live);         color: var(--gl-white); }
.gl-btn--signup    { background: var(--gl-action);       color: var(--gl-white); }
.gl-btn--cancel    { background: var(--gl-live-bg); border: 1px solid transparent; color: var(--gl-live); }
.gl-btn--cal       { background: var(--gl-dark-l10, #f2f4f3); border: 1px solid transparent; color: var(--gl-dark); }
.gl-btn--details   { background: var(--gl-action-light); color: var(--gl-action); }
.gl-btn--disabled  { background: var(--gl-dark-l8);      color: var(--gl-white); cursor: default; }

/* ----------------------------------------------------------------
   Calendar dropdown
   ---------------------------------------------------------------- */
.gl-cal-wrap { position: relative; margin-bottom: var(--gl-space-2xs); }

.gl-cal-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    min-width: 220px;
    background: var(--gl-white);
    border: 1px solid transparent;
    border-radius: var(--gl-radius);
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(31,18,10,.12);
}

.gl-cal-opt {
    display: flex;
    align-items: flex-start;
    gap: var(--gl-space-xs);
    padding: var(--gl-space-xs) var(--gl-space-s);
    font-size: var(--gl-text-xs);
    color: var(--gl-dark);
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}

.gl-cal-opt svg { flex-shrink: 0; margin-top: 2px; }

.gl-cal-opt:hover { background: var(--gl-action-light); }
.gl-cal-opt:not(:last-child) { border-bottom: 1px solid var(--gl-dark-l10); }
.gl-cal-opt__note {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
    margin-top: 2px;
}

/* ----------------------------------------------------------------
   Live state
   ---------------------------------------------------------------- */
.gl-live-box {
    background: var(--gl-live-bg);
    border: 1px solid var(--gl-live-border);
    border-radius: var(--gl-radius);
    padding: var(--gl-space-2xs) var(--gl-space-xs);
    margin-bottom: var(--gl-space-2xs);
}

.gl-live-header {
    display: flex;
    align-items: center;
    gap: var(--gl-space-2xs);
    margin-bottom: var(--gl-space-2xs);
}

.gl-live-dot-lg {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gl-live);
    flex-shrink: 0;
    animation: gl-pulse 1.2s ease-in-out infinite;
}

.gl-live-title {
    font-size: var(--gl-text-xs);
    font-weight: 600;
    color: var(--gl-live);
}

.gl-live-meta {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
    margin-bottom: var(--gl-space-2xs);
}

/* ----------------------------------------------------------------
   Completed state
   ---------------------------------------------------------------- */
.gl-completed-box {
    background: var(--gl-surface);
    border-radius: var(--gl-radius);
    padding: var(--gl-space-xs);
    text-align: center;
    margin-bottom: var(--gl-space-2xs);
}

.gl-completed-check {
    font-size: var(--gl-space-m);
    color: var(--gl-action);
    margin-bottom: var(--gl-space-2xs);
}

.gl-completed-title {
    font-size: var(--gl-text-xs);
    font-weight: 600;
    color: var(--gl-text-primary);
    margin-bottom: 3px;
}

.gl-completed-date {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
}

.gl-replay-notice {
    background: var(--gl-action-light);
    border: 1px solid var(--gl-action);
    border-radius: var(--gl-radius);
    padding: var(--gl-space-2xs) var(--gl-space-xs);
    display: flex;
    align-items: center;
    gap: var(--gl-space-xs);
    margin-bottom: var(--gl-space-2xs);
}

.gl-replay-notice__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gl-action);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gl-replay-notice__title {
    font-size: var(--gl-text-xs);
    font-weight: 600;
    color: var(--gl-action);
    margin-bottom: 2px;
}

.gl-replay-notice__hint {
    font-size: var(--gl-text-2xs);
    color: var(--gl-action);
}

.gl-coming-soon {
    background: var(--gl-amber-bg);
    border: 1px solid transparent;
    border-radius: var(--gl-radius);
    padding: var(--gl-space-xs);
    text-align: center;
    margin-bottom: var(--gl-space-2xs);
}

.gl-coming-soon__title {
    font-size: var(--gl-text-xs);
    font-weight: 600;
    color: #7a4100;
    margin-bottom: 2px;
}

.gl-coming-soon__hint {
    font-size: var(--gl-text-2xs);
    color: #7a4100;
}

/* ----------------------------------------------------------------
   Subscribers / avatars
   ---------------------------------------------------------------- */
.gl-subscribers { margin-top: var(--gl-space-xs); }

.gl-subscribers__label {
    font-size: var(--gl-text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gl-text-muted);
    margin-bottom: var(--gl-space-2xs);
}

.gl-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: var(--gl-space-2xs);
}

.gl-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--gl-text-2xs);
    font-weight: 700;
    color: var(--gl-white);
    border: 2px solid var(--gl-white);
    cursor: default;
}

.gl-avatar--overflow { background: var(--gl-dark-l5); }
.gl-avatar--sm { width: 22px; height: 22px; font-size: var(--gl-text-2xs); }

.gl-subscribers__names {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
    line-height: 1.6;
}

.gl-you { color: var(--gl-action); font-weight: 600; }

/* ----------------------------------------------------------------
   Misc
   ---------------------------------------------------------------- */
.gl-hint {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
    text-align: center;
    margin-top: var(--gl-space-2xs);
}

.gl-help-note {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
    text-align: center;
    margin-top: var(--gl-space-xs);
}

.gl-help-note a { color: var(--gl-action); }

.gl-notice {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    padding: var(--gl-space-2xs);
    background: var(--gl-surface);
    border-radius: var(--gl-radius-sm);
    margin-bottom: var(--gl-space-xs);
}

.gl-notice--info {
    background: var(--gl-action-light);
    color: var(--gl-action);
}

/* ----------------------------------------------------------------
   Previous lessons
   ---------------------------------------------------------------- */
.gl-prev-lessons { margin-top: var(--gl-space-s); }

.gl-prev-lessons__list {
    background: var(--gl-white);
    border-radius: var(--gl-radius);
    border: 1px solid var(--gl-border);
    padding: var(--gl-space-2xs) var(--gl-space-xs);
}

.gl-prev-item {
    padding: var(--gl-space-2xs) 0;
    border-bottom: 1px solid var(--gl-dark-l10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gl-space-2xs);
}

.gl-prev-item:last-child { border-bottom: none; }
.gl-prev-item__title { font-size: var(--gl-text-xs); color: var(--gl-action); text-decoration: none; flex: 1; }
.gl-prev-item__title:hover { text-decoration: underline; }
.gl-prev-item__date { font-size: var(--gl-text-2xs); color: var(--gl-text-muted); white-space: nowrap; }

/* ----------------------------------------------------------------
   Dashboard widget
   ---------------------------------------------------------------- */
.gl-dw-rule-note {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.gl-dw-list { display: flex; flex-direction: column; gap: var(--gl-space-s); }

.gl-dw-lesson {
    display: flex;
    flex-direction: column;
    gap: var(--gl-space-xs);
}

.gl-dw-lesson__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--gl-space-2xs);
    margin-bottom: 2px;
}

.gl-dw-lesson__title {
    font-size: var(--gl-text-xs);
    font-weight: 700;
    color: var(--gl-dark);
    margin: 0;
    flex: 1;
    min-width: 0;
}

.gl-dw-lesson__title a {
    color: inherit;
    text-decoration: none;
}

.gl-dw-lesson__title a:hover { text-decoration: underline; }

.gl-dw-blocked-msg {
    font-size: var(--gl-text-2xs);
    color: #7a4100;
    background: var(--gl-amber-bg);
    border: 1px solid transparent;
    border-radius: var(--gl-radius-sm);
    padding: var(--gl-space-2xs) var(--gl-space-xs);
    margin-top: var(--gl-space-2xs);
    line-height: 1.5;
}

.gl-dw-item {
    background: rgba(58, 120, 201, .06);
    border: none;
    border-radius: var(--gl-radius);
    padding: var(--gl-space-s);
}

.gl-dw-item--signed {
    background: rgba(58, 120, 201, .06);
    border: none;
    border-left: 3px solid var(--gl-action);
    padding-left: var(--gl-space-s);
}

.gl-dw-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gl-space-2xs);
    margin-bottom: var(--gl-space-xs);
}

.gl-dw-item__info { flex: 1; min-width: 0; }

/* New TZ-aware time block — primary (user) + optional host helper */
.gl-dw-times {
    margin: 0 0 2px;
}
.gl-dw-time-primary {
    font-size: var(--gl-text-xs);
    font-weight: 500;
    color: var(--gl-dark);
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.gl-dw-time-host {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
    margin: 2px 0 0;
    font-variant-numeric: tabular-nums;
}
.gl-dw-time-host__lbl {
    font-weight: 500;
}
.gl-dw-time-host__lbl::after { content: ': '; }

/* Legacy (kept for back-compat) */
.gl-dw-item__date {
    font-size: var(--gl-text-xs);
    font-weight: 500;
    color: var(--gl-dark);
    margin: 0 0 2px;
}

.gl-dw-item__tz {
    font-size: var(--gl-text-2xs);
    font-weight: 400;
    color: var(--gl-text-muted);
}

.gl-dw-item__usertime {
    font-size: var(--gl-text-2xs);
    color: var(--gl-action);
    margin: 0;
}

.gl-dw-item__badge .gl-btn {
    width: auto;
    margin-bottom: 0;
    white-space: nowrap;
    padding: 4px var(--gl-space-xs);
    font-size: var(--gl-text-2xs);
    flex-shrink: 0;
}

.gl-dw-item__badge .gl-badge {
    flex-shrink: 0;
}

.gl-dw-item__actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--gl-space-s);
    margin-top: var(--gl-space-xs);
    padding-top: var(--gl-space-xs);
    border-top: 1px solid var(--gl-dark-l8);
    align-items: center;
}

/* Paper style: secondary dashboard actions read as quiet text-buttons */
.gl-dw-item__actions .gl-btn--details {
    background: transparent;
    color: var(--gl-action);
    padding: var(--gl-space-2xs) 0;
    justify-content: flex-start;
}
.gl-dw-item__actions .gl-btn--details:hover { text-decoration: underline; opacity: 1; }
.gl-dw-item__actions .gl-btn--cal {
    background: transparent;
    color: var(--gl-text-muted);
    padding: 4px;
    justify-content: center;
    width: auto;
    min-width: 0;
}
.gl-dw-item__actions .gl-btn--cal:hover { color: var(--gl-action); opacity: 1; }
.gl-dw-item__actions .gl-btn--cal svg { display: block; }
.gl-dw-item__actions .gl-btn--cancel {
    background: transparent;
    color: var(--gl-text-muted);
}
.gl-dw-item__actions .gl-btn--cancel:hover { color: var(--gl-live); opacity: 1; }

.gl-dw-item__actions .gl-btn {
    margin-bottom: 0;
    font-size: var(--gl-text-2xs);
    padding: var(--gl-space-2xs) var(--gl-space-xs);
    white-space: nowrap;
    width: 100%;
}

.gl-dw-item__actions .gl-cal-wrap {
    margin-bottom: 0;
    position: relative;
}

.gl-dw-item__actions .gl-cal-wrap .gl-btn {
    width: 100%;
    height: 100%;
}

.gl-dw-item__actions .gl-btn--cancel {
    width: auto;
    padding: var(--gl-space-2xs) var(--gl-space-xs);
}

/* ----------------------------------------------------------------
   Replay tabs  [gl_replay_tabs]
   ---------------------------------------------------------------- */
.gl-rt-tabs {
    display: flex;
    border-bottom: 1px solid var(--gl-border);
    flex-wrap: wrap;
}

.gl-rt-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--gl-space-2xs);
    padding: var(--gl-space-2xs) var(--gl-space-s);
    font-size: var(--gl-text-xs);
    font-weight: 500;
    color: var(--gl-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s;
}

.gl-rt-tab:hover { color: var(--gl-dark); }

.gl-rt-tab--active {
    color: var(--gl-dark);
    border-bottom-color: var(--gl-action);
}

.gl-rt-tab__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gl-rt-tab__dot--ready    { background: var(--gl-action); }
.gl-rt-tab__dot--pending  { background: var(--gl-border); }
.gl-rt-tab__dot--upcoming { background: var(--gl-dark-l8); }
.gl-rt-tab__dot--live     { background: var(--gl-live); animation: gl-pulse 1.2s ease-in-out infinite; }

.gl-rt-panel { display: none; padding: var(--gl-space-s) 0 0; }
.gl-rt-panel--active { display: block; }

.gl-rt-session-date {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
    margin-bottom: var(--gl-space-xs);
}

.gl-rt-replay { margin-bottom: var(--gl-space-m); }
.gl-rt-replay:last-child { margin-bottom: 0; }

.gl-rt-replay__label {
    font-size: var(--gl-text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gl-text-muted);
    margin-bottom: var(--gl-space-2xs);
}

.gl-rt-replay__desc {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-primary);
    line-height: 1.6;
    margin-bottom: var(--gl-space-xs);
}

.gl-rt-replay__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--gl-radius);
    background: #1a1a1a;
}

.gl-rt-replay__embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.gl-rt-replay__link { margin-top: var(--gl-space-2xs); }

.gl-rt-coming-soon {
    text-align: center;
    padding: var(--gl-space-l) var(--gl-space-s);
    background: var(--gl-surface);
    border-radius: var(--gl-radius);
    margin-top: var(--gl-space-2xs);
}

.gl-rt-coming-soon--live {
    background: var(--gl-live-bg);
    border: 1px solid var(--gl-live-border);
}

.gl-rt-coming-soon__icon { font-size: var(--gl-text-xl); margin-bottom: var(--gl-space-2xs); }

.gl-rt-coming-soon__title {
    font-size: var(--gl-text-xs);
    font-weight: 600;
    color: var(--gl-text-primary);
    margin-bottom: 4px;
}

.gl-rt-coming-soon__hint {
    font-size: var(--gl-text-2xs);
    color: var(--gl-text-muted);
}

.gl-replay-empty {
    background: var(--gl-surface);
    border-radius: var(--gl-radius);
    padding: var(--gl-space-m);
    text-align: center;
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
}

/* ================================================================
   Upcoming Lessons Cards  [gl_upcoming_lessons]
   ================================================================ */

.gl-ul-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--gl-space-s);
    /* No height/overflow at this level — let it grow naturally,
       and let the OUTER scroll only when constrained by parent */
    min-height: 0;
}

.gl-ul-empty {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    padding: var(--gl-space-m);
    text-align: center;
    background: var(--gl-surface);
    border-radius: var(--gl-radius);
}

/* Dark card */
.gl-ul-card {
    /* Hard-coded blue gradient — guaranteed to render even if section vars unloaded */
    background: linear-gradient(135deg, #224a82 0%, #1a3a66 100%);
    /* Section vars override the hard-coded colour when present */
    background: linear-gradient(135deg, var(--section-grouplessons-d-2, #224a82) 0%, var(--section-grouplessons-d-3, #1a3a66) 100%);
    border-radius: calc(var(--gl-radius) * 2);
    padding: var(--gl-space-m) var(--gl-space-m);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.gl-ul-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
    pointer-events: none;
}
.gl-ul-card::after {
    content: '';
    position: absolute;
    top: 20px; right: 20px;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.04);
    pointer-events: none;
}

/* Badges */
.gl-ul-card__meta {
    display: flex;
    align-items: center;
    gap: var(--gl-space-2xs);
    margin-bottom: var(--gl-space-xs);
}

.gl-ul-badge {
    font-size: var(--gl-text-2xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 4px;
}

.gl-ul-badge--group  { background: var(--gl-action); color: #fff; }
.gl-ul-badge--spots  { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.gl-ul-badge--signed { background: rgba(63,168,119,.35); color: #A8F0CE; }
.gl-ul-badge--live   { background: var(--gl-live); color: #fff; }
.gl-ul-badge--full   { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }

/* Title + desc */
.gl-ul-card__title {
    font-size: var(--gl-text-m);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--gl-space-2xs);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.gl-ul-card__desc {
    font-size: var(--gl-text-xs);
    color: rgba(255,255,255,.65);
    margin-bottom: var(--gl-space-s);
    line-height: 1.55;
}

/* Sessions list */
.gl-ul-sessions {
    display: flex;
    flex-direction: column;
    gap: var(--gl-space-2xs);
    margin-bottom: var(--gl-space-xs);
}

.gl-ul-session {
    background: rgba(255,255,255,.07);
    border: 1px solid transparent;
    border-radius: var(--gl-radius);
    padding: var(--gl-space-xs) var(--gl-space-s);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gl-space-xs);
    transition: background .15s;
}

.gl-ul-session--mine {
    border-left: 3px solid var(--gl-action);
    background: rgba(63,168,119,.12);
}

.gl-ul-session__info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }

/* Primary time line — user's local time (or host's when TZ matches) */
.gl-ul-times {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gl-ul-time-primary {
    font-size: var(--gl-text-s);
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Secondary helper — only shown when user TZ differs from host TZ */
.gl-ul-time-host {
    font-size: var(--gl-text-2xs);
    color: rgba(255,255,255,.5);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gl-ul-time-host__lbl {
    color: rgba(255,255,255,.4);
    font-weight: 500;
}
.gl-ul-time-host__lbl::after { content: ': '; }

/* Legacy classes kept for back-compat (used by sessions-panel and other widgets) */
.gl-ul-session__date {
    font-size: var(--gl-text-s);
    font-weight: 600;
    color: #fff;
}
.gl-ul-session__tz {
    font-size: var(--gl-text-2xs);
    color: rgba(255,255,255,.5);
    margin-left: 4px;
    font-weight: 400;
}
.gl-ul-session__usertime {
    font-variant-numeric: tabular-nums;
}

.gl-ul-session__spots {
    font-size: var(--gl-text-2xs);
    color: rgba(255,255,255,.45);
    margin-top: 1px;
}

.gl-ul-session__actions {
    display: flex;
    align-items: center;
    gap: var(--gl-space-2xs);
    flex-shrink: 0;
}

.gl-ul-signed-check {
    font-size: var(--gl-text-xs);
    color: #6EE7B7;
    font-weight: 500;
    white-space: nowrap;
}

/* Buttons on dark card */
.gl-ul-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--gl-radius);
    font-size: var(--gl-text-xs);
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-decoration: none;
    transition: opacity .15s, background .15s;
    white-space: nowrap;
}

.gl-ul-btn:hover { opacity: .88; }

.gl-ul-btn--signup {
    background: rgba(255,255,255,.9);
    color: var(--gl-dark);
}
.gl-ul-btn--signup:hover { background: #fff; opacity: 1; }

.gl-ul-btn--cancel {
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.65);
}
.gl-ul-btn--cancel:hover { border-color: var(--gl-live); color: var(--gl-live); opacity: 1; }

.gl-ul-btn--blocked {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.4);
    cursor: pointer;
}

.gl-ul-btn--zoom {
    background: var(--gl-action);
    color: #fff;
    padding: 8px 18px;
}

.gl-ul-btn--details {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    border: 1px solid transparent;
    padding: 8px 18px;
}
.gl-ul-btn--details:hover { background: rgba(255,255,255,.15); }

/* Post-signup actions row */
.gl-ul-card__actions {
    display: flex;
    gap: var(--gl-space-2xs);
    margin-bottom: var(--gl-space-s);
    flex-wrap: wrap;
}

/* Footer: avatars + countdown */
.gl-ul-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--gl-space-xs);
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: var(--gl-space-xs);
    gap: var(--gl-space-xs);
}

.gl-ul-footer__left {
    display: flex;
    align-items: center;
    gap: var(--gl-space-2xs);
}

.gl-ul-avatars {
    display: flex;
    align-items: center;
}

.gl-ul-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--gl-dark);
    margin-left: -7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--gl-text-2xs);
    font-weight: 700;
    color: var(--gl-dark);
    cursor: default;
}

.gl-ul-avatar:first-child { margin-left: 0; }
.gl-ul-avatar--more { background: rgba(255,255,255,.2); color: #fff; }

.gl-ul-signed-label {
    font-size: var(--gl-text-xs);
    color: rgba(255,255,255,.5);
    margin-left: var(--gl-space-2xs);
}

/* Countdown */
.gl-ul-countdown {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.gl-ul-cbox {
    background: rgba(255,255,255,.12);
    border-radius: var(--gl-radius-sm);
    padding: 5px 8px;
    text-align: center;
    min-width: 38px;
}

.gl-ul-cnum {
    font-size: var(--gl-text-s);
    font-weight: 700;
    color: #fff;
    display: block;
    font-variant-numeric: tabular-nums;
}

.gl-ul-clbl {
    font-size: var(--gl-text-2xs);
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-top: 2px;
}



/* ================================================================
   My Stats Widget  [gl_my_stats]
   ================================================================ */

.gl-my-stats {
    font-family: inherit;
    color: var(--headings);
}

.gl-ms-heading {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--section-grouplessons-d-1, #2c5fa0);
    margin-bottom: var(--space-xs);
}

.gl-ms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xs);
    margin-bottom: var(--space-xs);
}

.gl-ms-stat {
    background: var(--section-grouplessons-l-3, #e6efff);
    border-radius: var(--space-2xs);
    padding: var(--space-xs) var(--space-xs);
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-left: 3px solid var(--section-grouplessons-l-2, #b3c9ec);
    transition: border-color .2s;
}

.gl-ms-stat--replay { border-left-color: var(--action); }
.gl-ms-stat--hot    { border-left-color: #EF9F27; }

.gl-ms-icon {
    font-size: var(--text-xs);
    line-height: 1;
    margin-bottom: var(--space-2xs);
    display: block;
}

.gl-ms-num {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--section-grouplessons-d-3, #1a3a66);
    line-height: 1;
}

.gl-ms-lbl {
    font-size: var(--text-xs);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    line-height: 1.3;
    margin-top: 2px;
}

.gl-ms-encourage {
    font-size: var(--text-xs);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    line-height: 1.5;
    margin-top: var(--space-2xs);
}

.gl-ms-encourage--hot {
    color: #7a4100;
    background: #fef8ee;
    border-radius: var(--space-2xs);
    padding: var(--space-2xs) var(--space-xs);
}

/* ----------------------------------------------------------------
   Upcoming lessons — empty state card
   ---------------------------------------------------------------- */
.gl-ul-empty-state {
    background: linear-gradient(135deg, #224a82 0%, #1a3a66 100%);
    background: linear-gradient(135deg, var(--section-grouplessons-d-2, #224a82) 0%, var(--section-grouplessons-d-3, #1a3a66) 100%);
    border-radius: var(--space-xs);
    padding: var(--space-l) var(--space-m);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
}

.gl-ul-empty-state::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
    pointer-events: none;
}

.gl-ul-empty-state::after {
    content: '';
    position: absolute;
    top: 20px; right: 20px;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.04);
    pointer-events: none;
}

.gl-ul-empty-state__icon {
    font-size: var(--text-xl);
    display: block;
    opacity: .7;
    margin-bottom: var(--space-2xs);
}

.gl-ul-empty-state__title {
    font-size: var(--text-m);
    font-weight: 600;
    color: #fff;
    margin: 0 0 var(--space-2xs);
    line-height: 1.3;
}

.gl-ul-empty-state__text {
    font-size: var(--text-s);
    color: rgba(255,255,255,.6);
    line-height: 1.65;
    margin: 0 0 var(--space-xs);
    max-width: 38ch;
}

.gl-ul-empty-state__hint {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--text-xs);
    color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: var(--space-2xs) var(--space-s);
}

/* ================================================================
   Materials Widget  [gl_materials]
   Sits inside the existing "Materials" Bricks card
   Uses Bricks vars directly — no bridge needed
   ================================================================ */

.gl-materials {
    font-family: inherit;
    color: var(--body);
}

.gl-mat-empty {
    font-size: var(--text-s);
    color: var(--espresso-l-5);
    margin: 0;
    font-style: italic;
}

.gl-mat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.gl-mat-item { margin: 0; }

.gl-mat-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-s);
    background: var(--warm-cream);
    border: 1px solid var(--section-grouplessons-l-2, #b3c9ec);
    border-radius: var(--space-2xs);
    color: var(--body);
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
}

.gl-mat-link:hover {
    background: #fff;
    border-color: var(--section-grouplessons, #3a78c9);
    transform: translateY(-1px);
    color: var(--body);
}

/* File-type chip on the left */
.gl-mat-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 6px;
    border-radius: var(--space-2xs);
    background: var(--espresso-l-10);
    color: var(--espresso);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .03em;
}

/* Type-specific accents */
.gl-mat-icon--pdf     { background: #fcecec; color: #9a1f1f; }
.gl-mat-icon--audio   { background: #e9f1ee; color: #1e6b5e; }
.gl-mat-icon--video   { background: #f0e9f5; color: #5a2870; }
.gl-mat-icon--image   { background: #eef5ec; color: #2d6633; }
.gl-mat-icon--doc     { background: #e8edf5; color: #1d3f70; }
.gl-mat-icon--sheet   { background: #e8f5ed; color: #155b29; }
.gl-mat-icon--archive { background: #f5efe1; color: #7a5a10; }
.gl-mat-icon--score   { background: #fff4e1; color: #8a4a00; }

.gl-mat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gl-mat-title {
    font-size: var(--text-s);
    font-weight: 600;
    color: var(--headings);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gl-mat-meta {
    font-size: var(--text-xs);
    color: var(--espresso-l-5);
    line-height: 1.3;
}

.gl-mat-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--section-grouplessons, #3a78c9);
    color: #fff;
    transition: background .15s;
}

.gl-mat-link:hover .gl-mat-download {
    background: var(--section-grouplessons-d-1, #2c5fa0);
}

/* ================================================================
   Widget overflow safety
   The wrap grows naturally with its content. Card has its own
   overflow:hidden for decorative elements — no max-height clip
   needed here, which was cutting the countdown labels.
   ================================================================ */

.gl-ul-wrap {
    /* Natural sizing — no max-height clipping */
}

/* Ensure countdown labels are always inside the card */
.gl-ul-card { padding-bottom: var(--gl-space-l, 2rem); }
.gl-ul-cbox { padding-bottom: 8px; }

/* ================================================================
   [gl_archive] — table-density archive with hover cards
   ================================================================ */
.gl-arch {
    font-family: inherit;
    color: var(--body);
}

/* ── Toolbar ── */
.gl-arch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}

.gl-arch-tabs {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.gl-arch-tab {
    padding: 6px 0;
    font-size: var(--text-xs, 13px);
    font-weight: 500;
    color: var(--espresso-l-5);
    cursor: pointer;
    border: 0;
    background: transparent;
    font-family: inherit;
    position: relative;
    transition: color .15s;
}
.gl-arch-tab:hover { color: var(--headings); }
.gl-arch-tab--active {
    color: var(--headings);
    font-weight: 600;
}
.gl-arch-tab--active::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--section-grouplessons, #3a78c9);
    border-radius: 1px;
}
.gl-arch-tab__count {
    font-size: var(--gl-text-2xs);
    color: var(--espresso-l-5);
    margin-left: 4px;
    font-weight: 400;
}
.gl-arch-tab--active .gl-arch-tab__count {
    color: var(--section-grouplessons-d-1, #2c5fa0);
}

.gl-arch-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gl-arch-year {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 6px 22px 6px 4px;
    font-size: var(--text-xs, 13px);
    font-weight: 500;
    color: var(--espresso-l-5);
    font-family: inherit;
    cursor: pointer;
    outline: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%237a6358' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
}
.gl-arch-year:hover { color: var(--headings); }
.gl-arch-year:focus {
    border-bottom-color: var(--section-grouplessons, #3a78c9);
    color: var(--headings);
}

.gl-arch-search { position: relative; }
.gl-arch-search__input {
    width: 200px;
    padding: 6px 4px 6px 24px;
    border: 0;
    border-bottom: 1px solid var(--espresso-l-9, #e8e0d8);
    background: transparent;
    font-size: var(--text-xs, 13px);
    font-family: inherit;
    color: var(--body);
    outline: 0;
    transition: border-color .15s, width .2s;
}
.gl-arch-search__input:focus {
    border-bottom-color: var(--section-grouplessons, #3a78c9);
    width: 240px;
}
.gl-arch-search__input::placeholder { color: var(--espresso-l-5); }
.gl-arch-search::before {
    content: '🔍';
    position: absolute;
    left: 2px; top: 50%;
    transform: translateY(-50%);
    font-size: var(--gl-text-xs);
    opacity: .4;
    pointer-events: none;
}

/* ── Year section ── */
.gl-arch-year-section { margin-bottom: 32px; }
.gl-arch-year-section--hidden { display: none; }
.gl-arch-year-section__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--text-s, 18px);
    color: var(--espresso-l-5);
    font-weight: 400;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--espresso-l-9, #e8e0d8);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.gl-arch-year-section__title small {
    font-family: inherit;
    font-size: var(--gl-text-2xs);
    color: var(--espresso-l-5);
    font-weight: 400;
}

/* ── Rows ── */
.gl-arch-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gl-arch-row {
    display: grid;
    grid-template-columns: 64px 1fr auto auto auto;
    gap: 16px;
    padding: 12px 18px;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    cursor: default;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    border: 1px solid transparent;
}
.gl-arch-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26,58,102,.06);
    border-color: rgba(58,120,201,.15);
}

.gl-arch-row__date {
    font-size: var(--gl-text-xs);
    color: var(--espresso-l-5);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.gl-arch-row__title-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}
.gl-arch-row__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--gl-text-s);
    color: var(--headings);
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.gl-arch-row__title:hover { color: var(--section-grouplessons-d-1, #2c5fa0); }
.gl-arch-row--reviewed .gl-arch-row__title {
    color: var(--espresso-l-3);
}
.gl-arch-row__song {
    color: var(--espresso-l-5);
    text-decoration: none;
    font-size: var(--gl-text-xs);
    font-weight: 400;
    flex-shrink: 0;
    transition: color .15s;
}
.gl-arch-row__song:hover { color: var(--section-grouplessons, #3a78c9); }
.gl-arch-row__song::before { content: '· '; opacity: .5; }

/* Attended chip */
.gl-arch-attended {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--gl-text-2xs);
    color: var(--action, #1d9e75);
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}
.gl-arch-attended__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--action, #1d9e75);
    display: inline-block;
}
.gl-arch-attended--empty { visibility: hidden; }

/* Review toggle — filled/outline pill */
.gl-arch-review-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 16px;
    font-size: var(--gl-text-xs);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    border: 1px solid transparent;
    background: var(--espresso-l-10, #ebe9e9);
    color: var(--espresso-l-3);
    min-width: 140px;
    justify-content: center;
    white-space: nowrap;
}
.gl-arch-review-toggle:hover {
    color: var(--section-grouplessons, #3a78c9);
    background: var(--section-grouplessons-l-3, #e6efff);
}
.gl-arch-review-toggle--on {
    background: var(--section-grouplessons-l-3, #e6efff);
    color: var(--section-grouplessons-d-1, #2c5fa0);
}
.gl-arch-review-toggle--on:hover {
    background: var(--section-grouplessons-l-2, #b3c9ec);
    color: var(--section-grouplessons-d-1, #2c5fa0);
}
.gl-arch-review-toggle__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: var(--gl-text-2xs);
    line-height: 1;
}
.gl-arch-review-toggle--on .gl-arch-review-toggle__check {
    background: var(--section-grouplessons, #3a78c9);
    color: #fff;
    border-color: var(--section-grouplessons, #3a78c9);
}
.gl-arch-review-toggle--disabled {
    opacity: .35;
    cursor: not-allowed;
}
.gl-arch-review-toggle--disabled:hover {
    border-color: var(--espresso-l-9, #e8e0d8);
    color: var(--espresso-l-3);
    background: #fff;
}

/* Replay action */
.gl-arch-replay {
    font-size: var(--gl-text-xs);
    font-weight: 600;
    color: var(--headings);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.gl-arch-replay:hover {
    color: var(--section-grouplessons-d-1, #2c5fa0);
    background: var(--section-grouplessons-l-3, #e6efff);
}
.gl-arch-replay--pending {
    color: var(--espresso-l-5);
    cursor: default;
    font-weight: 400;
    font-style: italic;
}
.gl-arch-replay--pending:hover {
    background: transparent;
    color: var(--espresso-l-5);
}

/* Load more */
.gl-arch-foot {
    margin-top: 24px;
    text-align: center;
}
.gl-arch-load-more {
    background: transparent;
    border: 0;
    color: var(--section-grouplessons-d-1, #2c5fa0);
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--gl-text-xs);
}
.gl-arch-load-more:hover { color: var(--section-grouplessons, #3a78c9); }

/* Empty state */
.gl-arch-empty,
.gl-arch-no-results {
    text-align: center;
    padding: 48px 24px;
    color: var(--espresso-l-3);
    font-style: italic;
    font-size: var(--gl-text-xs);
}
.gl-arch-empty p { margin: 0 0 8px; }
.gl-arch-empty__admin {
    margin-top: 12px;
    font-size: var(--gl-text-xs);
    font-style: normal;
    color: var(--espresso-l-5);
    background: rgba(196,161,73,.1);
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-block;
}

/* Hidden row (for filter) */
.gl-arch-row[hidden] { display: none; }
.gl-arch-year-section[hidden] { display: none; }

/* Mobile — collapse columns */
@media (max-width: 720px) {
    .gl-arch-row {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
        row-gap: 8px;
    }
    .gl-arch-row__title-wrap { grid-column: 2; }
    .gl-arch-attended { grid-column: 2; }
    .gl-arch-review-toggle { grid-column: 2; justify-self: start; }
    .gl-arch-replay { grid-column: 2; justify-self: start; }
    .gl-arch-tabs { gap: 14px; }
}

/* ================================================================
   Hero v2 — status pill row + song link
   ================================================================ */
.gl-ul-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.gl-ul-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--gl-text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.3;
}
.gl-ul-pill--signed-up {
    background: var(--action, #1d9e75);
    color: #fff;
}
.gl-ul-pill--signup-cta {
    background: var(--gold, #c4a149);
    color: var(--espresso, #2c1a0e);
}
.gl-ul-pill--live {
    background: #E24B4A;
    color: #fff;
    animation: gl-pulse-soft 1.6s ease-in-out infinite;
}
.gl-ul-pill--month {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.15);
}
.gl-ul-pill--song {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--gl-text-xs);
    padding: 5px 10px;
}
.gl-ul-pill--song a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.3);
    transition: border-color .15s, color .15s;
}
.gl-ul-pill--song a:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.6);
}

@keyframes gl-pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}


/* ================================================================
   [gl_progress_dashboard] — horizontal strip with goal + rewatch
   ================================================================ */
.gl-pd {
    background: var(--section-grouplessons-l-3, #e6efff);
    border-radius: 12px;
    padding: var(--space-xs) var(--space-s);
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: var(--space-s);
    align-items: center;
    color: var(--body);
    font-family: inherit;
}

/* Block 1: intro */
.gl-pd__intro {
    border-right: 1px solid var(--section-grouplessons-l-2, #b3c9ec);
    padding-right: var(--space-s);
    min-width: 0;
}
.gl-pd__heading {
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--section-grouplessons-d-1, #2c5fa0);
    margin: 0 0 4px;
}
.gl-pd__encourage {
    font-size: var(--text-xs);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    line-height: 1.35;
    margin: 0;
}

/* Block 2: stat columns (divider style, no boxes) */
.gl-pd__tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(64px, auto));
    gap: 0;
}
.gl-pd-tile {
    background: transparent;
    border-radius: 0;
    padding: 0 var(--space-s);
    border-left: 1px solid var(--section-grouplessons-l-2, #b3c9ec);
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.gl-pd-tile:first-child { padding-left: 0; border-left: none; }
.gl-pd-tile--hot    { }
.gl-pd-tile--replay { }

.gl-pd-tile__icon {
    font-size: var(--text-2xs);
    margin-bottom: 2px;
    line-height: 1;
    display: block;
    opacity: .8;
}
.gl-pd-tile__num {
    font-family: Georgia, serif;
    font-size: var(--text-l);
    font-weight: 400;
    color: var(--section-grouplessons-d-3, #1a3a66);
    line-height: 1;
    display: block;
    font-variant-numeric: tabular-nums;
}
.gl-pd-tile__lbl {
    font-size: var(--text-2xs);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    line-height: 1.25;
    margin-top: 3px;
    display: block;
}

/* Block 3: goal bar (own grid cell, capped width) */
.gl-pd-goal {
    min-width: 160px;
    max-width: 240px;
}
.gl-pd-goal__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.gl-pd-goal__label {
    font-size: var(--text-xs);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    font-weight: 600;
}
.gl-pd-goal__value {
    font-size: var(--text-2xs);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    font-variant-numeric: tabular-nums;
}
.gl-pd-goal__bar {
    height: 5px;
    border-radius: 3px;
    background: var(--section-grouplessons-l-2, #b3c9ec);
    overflow: hidden;
}
.gl-pd-goal__fill {
    height: 100%;
    background: var(--section-grouplessons, #3a78c9);
    transition: width .3s ease;
}

/* Last attended quick-rewatch link */
.gl-pd-rewatch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-2xs) 10px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--headings);
    border: 1px solid var(--section-grouplessons-l-2, #b3c9ec);
    transition: border-color .15s, transform .15s;
    max-width: 260px;
    min-width: 200px;
}
.gl-pd-rewatch:hover {
    border-color: var(--section-grouplessons, #3a78c9);
    transform: translateY(-1px);
    color: var(--headings);
}
.gl-pd-rewatch__icon {
    font-size: var(--text-xs);
    color: var(--section-grouplessons, #3a78c9);
    flex-shrink: 0;
    line-height: 1;
}
.gl-pd-rewatch__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.gl-pd-rewatch__lbl {
    display: block;
    font-size: var(--text-2xs);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.gl-pd-rewatch__title {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--headings);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gl-pd-rewatch__cta {
    font-size: var(--text-2xs);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    font-weight: 600;
    flex-shrink: 0;
}

/* Empty state */
.gl-pd--empty {
    background: var(--section-grouplessons-l-3, #e6efff);
    border-radius: 14px;
    padding: 24px 28px;
    text-align: center;
    display: block;
}
.gl-pd-empty__title {
    font-size: var(--gl-text-s);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    font-weight: 600;
    margin: 0 0 4px;
}
.gl-pd-empty__text {
    font-size: var(--gl-text-xs);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    margin: 0;
}

/* Mobile — stack to vertical */
@media (max-width: 1080px) {
    .gl-pd {
        grid-template-columns: auto 1fr;
        row-gap: 16px;
    }
    .gl-pd__tiles { grid-column: 2; }
    .gl-pd-goal   { grid-column: 1 / -1; max-width: none; }
    .gl-pd-rewatch { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 720px) {
    .gl-pd {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .gl-pd__tiles { grid-column: 1; }
    .gl-pd__intro {
        border-right: 0;
        border-bottom: 1px solid var(--section-grouplessons-l-2, #b3c9ec);
        padding-right: 0;
        padding-bottom: 14px;
    }
    .gl-pd__encourage br { display: none; }
    .gl-pd__tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .gl-pd__tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ================================================================
   Hero v2 — two-column layout
   ================================================================ */
.gl-ul-card--v2 .gl-ul-card__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: stretch;
    position: relative;
}

.gl-ul-card--v2 .gl-ul-card__main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* Right column — framed panel */
.gl-ul-card--v2 .gl-ul-card__side {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}

/* Side label "Starts in" */
.gl-ul-side-label {
    font-size: var(--gl-text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.5);
}
.gl-ul-side-label--live {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E24B4A;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: var(--gl-text-xs);
    letter-spacing: .06em;
}
.gl-ul-pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: gl-pulse-soft 1.4s ease-in-out infinite;
}
.gl-ul-side-tagline {
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: var(--gl-text-xs);
    text-align: center;
}

/* Framed countdown — replaces the bottom-row layout */
.gl-ul-countdown--framed {
    display: flex;
    gap: 8px;
    margin: 0;
}
.gl-ul-countdown--framed .gl-ul-cbox {
    background: rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 56px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gl-ul-countdown--framed .gl-ul-cnum {
    font-size: var(--gl-text-l);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    display: block;
    font-variant-numeric: tabular-nums;
}
.gl-ul-countdown--framed .gl-ul-clbl {
    font-size: var(--gl-text-2xs);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.5);
    display: block;
}

/* Social proof footer */
.gl-ul-social {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.6);
    font-size: var(--gl-text-xs);
    text-align: center;
}
.gl-ul-social__text {
    font-size: var(--gl-text-xs);
    color: rgba(255,255,255,.6);
}

/* Mobile — stack columns */
@media (max-width: 880px) {
    .gl-ul-card--v2 .gl-ul-card__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .gl-ul-card--v2 .gl-ul-card__side {
        padding: 18px 16px;
    }
    .gl-ul-countdown--framed .gl-ul-cbox {
        min-width: 48px;
        padding: 10px 8px;
    }
    .gl-ul-countdown--framed .gl-ul-cnum {
        font-size: var(--gl-text-m);
    }
}


/* ================================================================
   Sessions panel — DARK theme
   Applies when [gl_sessions_panel theme="dark"] OR inside a
   Bricks container with class .cpt-lesson-cards (Tim's dark panel)
   ================================================================ */
.gl-sessions-panel--dark,
.cpt-lesson-cards .gl-sessions-panel {
    --gl-dark: #fff;
    --gl-text-muted: rgba(255,255,255,.72);
    color: rgba(255,255,255,.92);
}

/* Remove the left accent band on dark — Tim found it adds complexity */
.gl-sessions-panel--dark .gl-session--mine,
.cpt-lesson-cards .gl-session--mine {
    border-left: none;
    padding-left: 0;
}
.gl-sessions-panel--dark .gl-session--live,
.cpt-lesson-cards .gl-session--live {
    border-left: none;
    padding-left: 0;
}

/* Text + headings */
.gl-sessions-panel--dark .gl-session__host-time,
.cpt-lesson-cards .gl-session__host-time { color: #fff; }
.gl-sessions-panel--dark .gl-session__tz-label,
.cpt-lesson-cards .gl-session__tz-label { color: rgba(255,255,255,.7); }
.gl-sessions-panel--dark .gl-session__user-time,
.cpt-lesson-cards .gl-session__user-time { color: #aee0d0; }
.gl-sessions-panel--dark .gl-rule-note,
.cpt-lesson-cards .gl-rule-note,
.gl-sessions-panel--dark .gl-notice,
.cpt-lesson-cards .gl-notice { color: rgba(255,255,255,.7); }
.gl-sessions-panel--dark .gl-time-label,
.cpt-lesson-cards .gl-time-label { color: rgba(255,255,255,.7); }
.gl-sessions-panel--dark .gl-time-value,
.cpt-lesson-cards .gl-time-value { color: #fff; }
.gl-sessions-panel--dark .gl-time-value--user,
.cpt-lesson-cards .gl-time-value--user { color: #aee0d0; }

/* Session row dividers → white-alpha hairlines */
.gl-sessions-panel--dark .gl-session,
.cpt-lesson-cards .gl-session { border-bottom-color: rgba(255,255,255,.14); }
.gl-sessions-panel--dark .gl-session--completed,
.cpt-lesson-cards .gl-session--completed { border-bottom-color: rgba(255,255,255,.14); }
.gl-sessions-panel--dark .gl-session__body,
.cpt-lesson-cards .gl-session__body { border-top-color: rgba(255,255,255,.14); }
.gl-sessions-panel--dark .gl-session__head:hover,
.cpt-lesson-cards .gl-session__head:hover { opacity: .8; }

/* Session dot */
.gl-sessions-panel--dark .gl-session__dot,
.cpt-lesson-cards .gl-session__dot { background: rgba(255,255,255,.35); }

/* Countdown — light numerals on dark */
.gl-sessions-panel--dark .gl-cnum,
.cpt-lesson-cards .gl-cnum { color: #fff; }
.gl-sessions-panel--dark .gl-clbl,
.cpt-lesson-cards .gl-clbl { color: rgba(255,255,255,.68); }

/* Spots bar track */
.gl-sessions-panel--dark .gl-spots__bar,
.cpt-lesson-cards .gl-spots__bar { background: rgba(255,255,255,.18); }
.gl-sessions-panel--dark .gl-spots__meta,
.cpt-lesson-cards .gl-spots__meta { color: rgba(255,255,255,.74); }

/* Buttons */
.gl-sessions-panel--dark .gl-btn--zoom,
.cpt-lesson-cards .gl-btn--zoom { background: var(--gl-action); color: #fff; }
.gl-sessions-panel--dark .gl-btn--cal,
.cpt-lesson-cards .gl-btn--cal {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
}
.gl-sessions-panel--dark .gl-btn--cal:hover,
.cpt-lesson-cards .gl-btn--cal:hover { background: rgba(255,255,255,.2); }
.gl-sessions-panel--dark .gl-btn--cancel,
.cpt-lesson-cards .gl-btn--cancel {
    background: transparent;
    color: #f2a8a8;
}
.gl-sessions-panel--dark .gl-btn--cancel:hover,
.cpt-lesson-cards .gl-btn--cancel:hover { color: var(--gl-live); }

/* Completed box */
.gl-sessions-panel--dark .gl-completed-box,
.cpt-lesson-cards .gl-completed-box {
    background: rgba(255,255,255,.06);
    border-radius: var(--gl-radius);
}
.gl-sessions-panel--dark .gl-completed-check,
.cpt-lesson-cards .gl-completed-check { color: #aee0d0; }
.gl-sessions-panel--dark .gl-completed-title,
.cpt-lesson-cards .gl-completed-title { color: #fff; }
.gl-sessions-panel--dark .gl-completed-date,
.cpt-lesson-cards .gl-completed-date { color: rgba(255,255,255,.74); }

/* Replay notice / coming soon */
.gl-sessions-panel--dark .gl-replay-notice,
.cpt-lesson-cards .gl-replay-notice { background: rgba(255,255,255,.1); }
.gl-sessions-panel--dark .gl-replay-notice__title,
.cpt-lesson-cards .gl-replay-notice__title { color: #fff; }
.gl-sessions-panel--dark .gl-replay-notice__hint,
.cpt-lesson-cards .gl-replay-notice__hint { color: rgba(255,255,255,.78); }
.gl-sessions-panel--dark .gl-coming-soon,
.cpt-lesson-cards .gl-coming-soon { background: rgba(255,255,255,.06); }
.gl-sessions-panel--dark .gl-coming-soon__title,
.cpt-lesson-cards .gl-coming-soon__title { color: #fff; }
.gl-sessions-panel--dark .gl-coming-soon__hint,
.cpt-lesson-cards .gl-coming-soon__hint { color: rgba(255,255,255,.74); }

/* Subscribers */
.gl-sessions-panel--dark .gl-subscribers__label,
.cpt-lesson-cards .gl-subscribers__label { color: rgba(255,255,255,.74); }
.gl-sessions-panel--dark .gl-subscribers__names,
.cpt-lesson-cards .gl-subscribers__names { color: rgba(255,255,255,.74); }
.gl-sessions-panel--dark .gl-you,
.cpt-lesson-cards .gl-you { color: #aee0d0; font-weight: 600; }
.gl-sessions-panel--dark .gl-avatar,
.cpt-lesson-cards .gl-avatar { border-color: var(--section-grouplessons-d-1, #2c5fa0); }

/* Contact link */
.gl-sessions-panel--dark .gl-help-note,
.cpt-lesson-cards .gl-help-note { color: rgba(255,255,255,.72); }
.gl-sessions-panel--dark .gl-help-note a,
.cpt-lesson-cards .gl-help-note a {
    color: #aee0d0;
    font-weight: 600;
    text-decoration: underline;
}
.gl-sessions-panel--dark .gl-help-note a:hover,
.cpt-lesson-cards .gl-help-note a:hover { color: #fff; }

/* ================================================================
   Restriction notice — shown to non-PRO users by GL_Gate
   ================================================================ */
.gl-gate {
    display: flex;
    flex-direction: column;
    gap: var(--gl-space-m, 20px);
    font-family: inherit;
    color: var(--body, #5a3e2b);
}

.gl-gate__card {
    background: var(--gl-white, #fff);
    border-left: 4px solid var(--section-grouplessons, #3a78c9);
    border-radius: 4px;
    padding: var(--gl-space-l, 28px) var(--gl-space-l, 32px);
}

.gl-gate__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--section-grouplessons-l-3, #e6efff);
    color: var(--section-grouplessons-d-1, #2c5fa0);
    font-size: var(--gl-text-2xs);
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    margin-bottom: 16px;
    letter-spacing: .01em;
}

.gl-gate__title {
    font-family: Georgia, serif;
    font-size: var(--gl-text-xl, 24px);
    color: var(--headings, #1e120a);
    line-height: 1.2;
    margin: 0 0 12px;
}

.gl-gate__body {
    font-size: var(--gl-text-s);
    line-height: 1.65;
    color: var(--body);
    margin: 0 0 20px;
    max-width: 60ch;
}

.gl-gate__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 24px;
}

.gl-gate__bullets li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: var(--gl-text-xs);
    color: var(--headings);
}

.gl-gate__bullets li svg {
    color: var(--teal, #2e6b5e);
    flex-shrink: 0;
}

.gl-gate__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal, #2e6b5e);
    color: var(--cream, #faf7f2);
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: var(--gl-text-xs);
    font-weight: 600;
    transition: background .15s, transform .15s;
}

.gl-gate__cta:hover {
    background: var(--headings, #1e120a);
    color: var(--cream, #faf7f2);
    transform: translateY(-1px);
}

/* Teaser list — locked, non-clickable preview of past lessons */
.gl-gate__teaser-heading {
    font-size: var(--gl-text-2xs);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--espresso-l-3, #5c534d);
    border-left: 3px solid var(--section-grouplessons, #3a78c9);
    padding-left: 9px;
    margin: 0 0 12px;
}

.gl-gate__teaser-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gl-gate__teaser-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gl-white, #fff);
    border-radius: 8px;
    padding: 11px 14px;
    opacity: .82;
    color: var(--headings);
    font-size: var(--gl-text-xs);
}

.gl-gate__teaser-date {
    font-size: var(--gl-text-2xs);
    color: var(--espresso-l-3, #888780);
    min-width: 56px;
    font-weight: 600;
    letter-spacing: .03em;
}

.gl-gate__teaser-title {
    flex: 1;
    color: var(--headings);
}

.gl-gate__teaser-lock {
    color: var(--espresso-l-3, #888780);
    flex-shrink: 0;
}

.gl-gate__teaser-more {
    text-align: center;
    font-size: var(--gl-text-2xs);
    color: var(--espresso-l-3, #888780);
    padding: 6px;
    font-style: italic;
}
