/* COGO_LECTURE_LAYOUT_R2. The main viewport owns scrolling; cards own their height. */
html body[data-view=lectures] #main#main.content {
  display:flex!important;flex-direction:column!important;
  overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable!important;
}
html body[data-view=lectures] #main#main.content > .page {
  display:flex!important;flex-direction:column!important;
  flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;
}
html body[data-view=lectures] #main#main.content .media-desk11 {
  flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;
}
html body[data-view=lectures] #main#main.content #lectureCards11 {
  grid-template-rows:none!important;grid-auto-rows:minmax(var(--lf-card,240px),auto)!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  flex:0 0 auto!important;overflow:visible!important;align-content:start!important;
}
html body[data-view=lectures] #main#main.content #lectureCards11 > :is([role=status],[role=alert],.ops-board-empty22,.empty9,[data-shelf-retry-br2]) {
  grid-column:1 / -1!important;
}
html body[data-view=lectures] #main#main.content #lecturePager11 {
  position:static!important;flex:0 0 auto!important;transform:none!important;
}
/* One gap between controls, without the old extra margin after the coin. */
html body .topbar {--cogo-header-gap:10px;--cogo-header-control:40px;}
html body .topbar > .flex {
  column-gap:var(--cogo-header-gap)!important;align-items:center!important;
}
html body .topbar :is(#xpHeader7,.energy-pill15,.coin,#coachButton6,#courseBell21,[data-notify27],[data-notifications26]) {
  margin-inline:0!important;margin-block:0!important;box-sizing:border-box!important;
  height:var(--cogo-header-control)!important;min-height:var(--cogo-header-control)!important;
  align-self:center!important;flex-shrink:0!important;
}
html body .topbar :is(#coachButton6,#courseBell21,[data-notify27],[data-notifications26]) {
  width:var(--cogo-header-control)!important;min-width:var(--cogo-header-control)!important;
  padding:8px!important;
}
/* Retain the timer's existing wider treatment while it is counting. */
html body .topbar #coachButton6.has-clock {width:auto!important;}
@media(max-width:1100px) {
  html body .topbar {--cogo-header-gap:6px;--cogo-header-control:36px;}
}
@media(max-width:420px) {
  html body .topbar {--cogo-header-gap:4px;}
}

/* COGO_HOME_TEXT_CLARITY_R1: text contrast only; keep typography and geometry. */
html body[data-view="home"] #main .sh-workspace-r2 .gw-layout-r4[data-home-editorial] :is(
  .gw-story-r4 p,.he-week-meta,.gw-range-r3,.hs-metric-r2 span,.hs-metric-r2 small,
  .hs-state-r2,.gw-day-r3>span,.gw-day-r3>small,.gw-extra-r4
){color:color-mix(in srgb,var(--gw-muted) 30%,var(--gw-ink))!important;}
/* The future tile stays pale; only its readable date escapes the group opacity. */
html body[data-view="home"] #main .sh-workspace-r2 .gw-layout-r4[data-home-editorial="r2"] .gw-day-r3.is-future{
  opacity:1!important;background:color-mix(in srgb,var(--hs-soft) 60%,transparent)!important;
}
html body[data-view="home"] #main .sh-workspace-r2 .gw-layout-r4[data-home-editorial="r2"] .gw-day-r3.is-future>:is(i,.gw-special-r4){opacity:.6;}
html body[data-view="home"] #main .sh-workspace-r2 .cg-growth-r1 :is(
  .cg-motto-r1,.cg-stats-r1 span,.cg-stats-r1 small,.cg-progress-r1>div:first-child>span,
  .gp-hint-r1,.gp-report-r1,.gp-status-r1,.cg-heading-r1>button
){color:color-mix(in srgb,var(--cg-muted) 35%,var(--cg-ink))!important;}
html body[data-view="home"] #main .sh-workspace-r2 .gp-home-r2 .gp-copy-r1 small{opacity:1!important;}
html body[data-view="home"] #main .sh-workspace-r2 .home-action9 :is(small,div>span){
  color:color-mix(in srgb,var(--muted,#65748a) 35%,var(--ink,#20334d))!important;
}

/* COGO_GIFT_POINTS_PERIOD_R1 */
.cgp-period{margin-top:16px;max-width:100%;font-variant-numeric:tabular-nums;color:#284268}
.cgp-period-state{font-size:13px;font-weight:700;margin:0 0 10px!important;color:inherit!important}
.cgp-period dl{display:grid;gap:6px;margin:0;font-size:13px}
.cgp-period dl[hidden],.cgp-period .cgp-time-left[hidden]{display:none}
.cgp-period dl>div{display:flex;flex-wrap:wrap;gap:5px 14px;align-items:baseline}
.cgp-period dt{min-width:58px;opacity:.72}.cgp-period dd{margin:0;overflow-wrap:anywhere}
.cgp-time-left{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:12px 0 5px}
.cgp-time-left>span{font-size:12px;opacity:.78}.cgp-time-left strong{font-size:clamp(15px,2.6vw,20px);letter-spacing:-.03em;white-space:normal}
.cgp-period>small{display:block;font-size:11px;opacity:.65;margin-top:7px}
#platformPanel23.cbd-panel .cbd-hero:has(.cgp-period){height:auto;min-height:0;align-items:flex-start}
#platformPanel23 .cbd-hero:has(.cgp-period) .cbd-plan-intro{min-width:0;flex:1}
#cogoGiftDialogR1[data-plan="points"] .cgp-ticket{--cgn-accent:#61411a;background:linear-gradient(135deg,#fff2ca,#f7dca0);color:#5e4019}
#cogoGiftDialogR1[data-plan="points"] .cgp-ticket>strong{color:#513716;font-size:clamp(24px,6.5vw,46px);letter-spacing:-1px;overflow-wrap:anywhere}
#cogoGiftDialogR1[data-plan="points"] .cgn-ticket-top>span:first-child,#cogoGiftDialogR1[data-plan="points"] .cgn-ticket-bottom>span{color:#6d522b}
#cogoGiftDialogR1[data-plan="points"] .cgn-gift-seal,#cogoGiftDialogR1[data-plan="points"] .cgn-ticket-bottom{border-color:#81643955}
#cogoGiftDialogR1[data-plan="points"] .cgn-ticket-art{opacity:.16}
#cogoGiftDialogR1[data-plan="points"] .cgp-ticket>strong small{font-size:.45em}
:is(html[data-theme="dark"],body[data-theme="dark"],body.dark) #platformPanel23.cbd-panel .cbd-hero:has(.cgp-period){background:linear-gradient(115deg,#222f4c,#303e65);border-color:#4a5d8b}
:is(html[data-theme="dark"],body[data-theme="dark"],body.dark) #platformPanel23.cbd-panel .cgp-period{color:#e4edff}
:is(html[data-theme="dark"],body[data-theme="dark"],body.dark) #platformPanel23.cbd-panel .cbd-hero:has(.cgp-period) .cbd-plan-name{color:#edf3ff}
:is(html[data-theme="dark"],body[data-theme="dark"],body.dark) #platformPanel23.cbd-panel .cbd-hero:has(.cgp-period) :is(.cbd-plan-meta,.cbd-plan-label,.cbd-kicker){color:#bdceed}
@media(max-width:520px){#platformPanel23 .cbd-hero:has(.cgp-period) .cbd-plan-emblem{width:44px;height:44px;flex:0 0 44px}.cgp-period dl>div{display:block}.cgp-period dd{margin-top:3px}.cgp-time-left{display:block}.cgp-time-left strong{display:block;margin-top:5px}}

/* COGO_WORKBOOK_COLUMNS_R1: align workbook headings with their badges. */
html body[data-view="workbooks"] #main .book-results300 :is(.cms-head11,.book-head12,.book-row12,.cert-row11) {
  grid-template-columns:44px minmax(0,1fr) 84px 140px;
  column-gap:12px;
  padding-left:16px;
  padding-right:16px;
  align-items:center;
  box-sizing:border-box;
}
html body[data-view="workbooks"] #main .book-results300 :is(.cms-head11,.book-head12) > :is(:nth-child(3),:nth-child(4)) {
  justify-self:stretch;
  text-align:center;
  padding:0;
  margin:0;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  white-space:nowrap;
}
html body[data-view="workbooks"] #main .book-results300 :is(.book-row12,.cert-row11) > :is(.badge,.book-status300) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:center;
  box-sizing:border-box;
  height:28px;
  min-height:28px;
  min-width:0;
  max-width:100%;
  margin:0;
  padding:0 8px;
  border-radius:8px;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  text-align:center;
  white-space:nowrap;
}
html body[data-view="workbooks"] #main .book-results300 :is(.book-row12,.cert-row11) > .badge {width:68px}
html body[data-view="workbooks"] #main .book-results300 :is(.book-row12,.cert-row11) > .book-status300 {width:132px}
html body[data-view="workbooks"] #main .book-results300 .book-status300.unseen {color:#607087}
html body[data-view="workbooks"] #main .book-results300 :is(.book-row12,.cert-row11):not(.book-head12) {
  height:auto!important;
  max-height:none!important;
}
html[data-theme="dark"] body[data-view="workbooks"] #main .book-results300 .book-status300.unseen {color:#c1cce0;background:#28364d}
html[data-theme="dark"] body[data-view="workbooks"] #main .book-results300 .book-status300.complete {color:#a2dec0;background:#1d3d34}
html[data-theme="dark"] body[data-view="workbooks"] #main .book-results300 [data-book-status300="complete"] > b {color:#a2dec0}
html[data-theme="dark"] body[data-view="workbooks"] #main .book-results300 .book-status300:is(.attempted,.submitted) {color:#f3d28b;background:#453922}
@media(max-width:760px) {
  html body[data-view="workbooks"] #main .book-results300 :is(.cms-head11,.book-head12,.book-row12,.cert-row11) {
    grid-template-columns:30px minmax(0,1fr) 76px 136px;
    column-gap:8px;
    padding-left:12px;
    padding-right:12px;
  }
}
@media(max-width:600px) {
  html body[data-view="workbooks"] #main .book-results300 :is(.cms-head11,.book-head12,.book-row12,.cert-row11) {
    grid-template-columns:30px minmax(0,1fr) 68px;
    row-gap:8px;
  }
  html body[data-view="workbooks"] #main .book-results300 :is(.cms-head11,.book-head12) > :nth-child(4) {display:none}
  html body[data-view="workbooks"] #main .book-results300 :is(.book-row12,.cert-row11):not(.book-head12) {
    min-height:82px;
    padding-top:12px;
    padding-bottom:12px;
  }
  html body[data-view="workbooks"] #main .book-results300 :is(.book-row12,.cert-row11) > .badge {width:64px;font-size:11px}
  html body[data-view="workbooks"] #main .book-results300 :is(.book-row12,.cert-row11) > .book-status300 {
    grid-column:2/4;
    justify-self:start;
  }
}

/* COGO_LOGOUT_HOVER_R1: equal feedback for the two existing account actions. */
html body .topbar #accountMenu7.cogoAccountMenuFix1 > :is(.cogoAccountMenuFix1-item,#accountAuth7) {
  transition:background-color .16s ease,color .16s ease,box-shadow .16s ease;
}
/* Include the logout ID so its normal transparent background cannot win. */
html body .topbar #accountMenu7.cogoAccountMenuFix1 > :is(.cogoAccountMenuFix1-item,#accountAuth7):is(:hover,:focus-visible,:active) {
  background:var(--blue-soft);
  color:var(--blue);
  outline:none;
}
html body .topbar #accountMenu7.cogoAccountMenuFix1 > :is(.cogoAccountMenuFix1-item,#accountAuth7):focus-visible {
  box-shadow:inset 0 0 0 2px var(--blue);
}
@media(prefers-reduced-motion:reduce) {
  html body .topbar #accountMenu7.cogoAccountMenuFix1 > :is(.cogoAccountMenuFix1-item,#accountAuth7) {transition:none}
}

/* COGO_BILLING_LAYOUT_R1: use the modal's width before adding vertical space. */
html body dialog#modal:has(#platformPanel23.cbd-panel) {
  width:min(1080px,calc(100vw - 40px))!important;
  max-width:1080px!important;
  height:fit-content!important;
  min-height:0!important;
  max-height:calc(100dvh - 32px)!important;
  overflow:auto!important;
  border-radius:22px!important;
}
html body dialog#modal:has(#platformPanel23.cbd-panel) > .dialog-head {padding:16px 24px!important;min-height:64px!important}
html body dialog#modal:has(#platformPanel23.cbd-panel) #modalTitle {font-size:20px!important}
html body dialog#modal:has(#platformPanel23.cbd-panel) > #modalContent {
  flex:0 0 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  padding:20px 24px!important;
}
html body #platformPanel23.cbd-panel {
  display:grid!important;
  grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
  align-items:start;
  gap:16px!important;
}
html body #platformPanel23.cbd-panel > :not(.cbd-services):not(.cbd-history) {grid-column:1/-1}
html body #platformPanel23.cbd-panel .cbd-hero {
  min-height:128px;
  padding:18px 22px;
  gap:22px;
  border-radius:17px;
  align-items:center!important;
}
html body #platformPanel23.cbd-panel .cbd-plan-intro {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  align-items:center;
  column-gap:24px;
  row-gap:4px;
  flex:1;
  width:100%;
}
html body #platformPanel23.cbd-panel .cbd-plan-intro > :not(.cgp-period) {grid-column:1}
html body #platformPanel23.cbd-panel .cbd-kicker {font-size:10px;letter-spacing:1.2px;margin:0}
html body #platformPanel23.cbd-panel .cbd-plan-label {font-size:12px}
html body #platformPanel23.cbd-panel h3.cbd-plan-name {font-size:28px!important;line-height:1.15!important;letter-spacing:-.7px}
html body #platformPanel23.cbd-panel .cbd-plan-meta {font-size:12px;margin-top:3px;line-height:1.5}
html body #platformPanel23.cbd-panel .cbd-plan-emblem {width:58px;height:58px;flex:0 0 58px;border-radius:18px}
html body #platformPanel23.cbd-panel .cbd-plan-emblem svg {width:30px;height:30px}
html body #platformPanel23.cbd-panel .cgp-period {
  grid-column:2;
  grid-row:1/5;
  margin:0;
  padding-left:24px;
  border-left:1px solid #91a5d545;
  align-self:center;
  min-width:0;
}
html body #platformPanel23.cbd-panel .cgp-period-state {font-size:12px;line-height:1.5;margin:0 0 5px!important}
html body #platformPanel23.cbd-panel .cgp-period dl {font-size:12px;gap:3px}
html body #platformPanel23.cbd-panel .cgp-period dl > div {gap:4px 10px;display:flex}
html body #platformPanel23.cbd-panel .cgp-period dt {min-width:52px}
html body #platformPanel23.cbd-panel .cgp-time-left {margin:6px 0 0;gap:4px 10px;display:flex}
html body #platformPanel23.cbd-panel .cgp-time-left strong {font-size:17px;line-height:1.5}
html body #platformPanel23.cbd-panel .cgp-period :is(dl,.cgp-time-left)[hidden] {display:none!important}
html body #platformPanel23.cbd-panel .cgp-period > small {margin-top:4px;font-size:10px}
html body #platformPanel23.cbd-panel :is(.cbd-services,.cbd-history) {min-width:0;margin:0;padding:16px;border:1px solid var(--cbd-border);border-radius:17px;align-self:stretch}
html body #platformPanel23.cbd-panel .cbd-heading {gap:3px}
html body #platformPanel23.cbd-panel .cbd-heading h3 {font-size:16px!important;line-height:1.4!important}
html body #platformPanel23.cbd-panel .cbd-grid {grid-template-columns:minmax(0,1fr)!important;gap:7px!important;margin-top:12px!important}
html body #platformPanel23.cbd-panel .cbd-service {
  display:grid;
  grid-template-columns:30px minmax(64px,1fr) auto;
  align-items:center;
  gap:4px 10px;
  padding:9px 10px!important;
  border-radius:11px!important;
  box-shadow:none;
}
html body #platformPanel23.cbd-panel .cbd-service:hover {transform:none}
html body #platformPanel23.cbd-panel .cbd-service-icon {width:30px;height:30px;border-radius:9px;grid-row:1/3}
html body #platformPanel23.cbd-panel .cbd-service-icon svg {width:18px;height:18px}
html body #platformPanel23.cbd-panel .cbd-service-name {font-size:13px;line-height:1.5}
html body #platformPanel23.cbd-panel .cbd-status {font-size:10px;padding:4px 7px;line-height:1.5;white-space:normal;text-align:center;justify-self:end}
html body #platformPanel23.cbd-panel .cbd-service small {grid-column:2/4;font-size:10px;line-height:1.4}
html body #platformPanel23.cbd-panel .cbd-tech {margin-top:7px!important}
html body #platformPanel23.cbd-panel .cbd-tech summary {min-height:24px;padding:0;font-size:11px}
html body #platformPanel23.cbd-panel .cbd-history {display:flex;flex-direction:column;gap:12px}
html body #platformPanel23.cbd-panel .cbd-history-head {margin:0;gap:10px}
html body #platformPanel23.cbd-panel .cbd-refresh {font-size:11px!important;padding:6px 9px!important;min-height:34px!important}
html body #platformPanel23.cbd-panel .cbd-empty {flex:1;min-height:120px;padding:16px!important;border-radius:12px!important}
html body #platformPanel23.cbd-panel .cbd-empty-copy {font-size:11px;line-height:1.5}
html body #platformPanel23.cbd-panel .cbd-orders {max-height:none;overflow:visible;padding:0;gap:8px}
html body #platformPanel23.cbd-panel .cbd-order {padding:12px 13px;gap:5px;border-radius:12px}
html body #platformPanel23.cbd-panel .cbd-order b {font-size:13px;line-height:1.5}
html body #platformPanel23.cbd-panel .cbd-order :is(p,small) {font-size:11px;line-height:1.5;overflow-wrap:anywhere}
html body #platformPanel23.cbd-panel .cbd-order[hidden] {display:none!important}
html body #platformPanel23.cbd-panel .cbl-pages-r1 {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:2px}
html body #platformPanel23.cbd-panel .cbl-pages-r1 > span {font-size:11px;color:var(--cbd-muted);font-variant-numeric:tabular-nums}
html body #platformPanel23.cbd-panel .cbl-pages-r1 > div {display:flex;align-items:center;gap:6px}
html body #platformPanel23.cbd-panel .cbl-pages-r1 button {min-height:32px;min-width:42px;padding:5px 9px;font:inherit;font-size:11px;line-height:1.5;border:1px solid var(--cbd-border);border-radius:8px;color:var(--cbd-ink);background:var(--cbd-surface);cursor:pointer}
html body #platformPanel23.cbd-panel .cbl-pages-r1 button:disabled {opacity:.4;cursor:default}
html body #platformPanel23.cbd-panel .cbl-pages-r1[hidden] {display:none!important}
html body #platformPanel23.cbd-panel .cbd-policy summary {min-height:40px;padding:9px 14px;font-size:12px}
@media(max-height:750px) and (min-width:900px) {
  html body dialog#modal:has(#platformPanel23.cbd-panel) > .dialog-head {min-height:56px!important;padding:12px 20px!important}
  html body dialog#modal:has(#platformPanel23.cbd-panel) > #modalContent {padding:16px 20px!important}
  html body #platformPanel23.cbd-panel {gap:12px!important}
  html body #platformPanel23.cbd-panel .cbd-hero {padding:14px 18px;min-height:116px}
  html body #platformPanel23.cbd-panel :is(.cbd-services,.cbd-history) {padding:12px}
  html body #platformPanel23.cbd-panel .cbd-grid {margin-top:9px!important;gap:6px!important}
  html body #platformPanel23.cbd-panel .cbd-service {padding:7px 9px!important}
}
@media(max-height:650px) and (min-width:900px) {
  html body dialog#modal:has(#platformPanel23.cbd-panel) > #modalContent {padding:12px 20px!important}
  html body #platformPanel23.cbd-panel {gap:10px!important}
  html body #platformPanel23.cbd-panel .cbd-hero {padding:10px 16px}
  html body #platformPanel23.cbd-panel .cbd-history {gap:8px}
  html body #platformPanel23.cbd-panel .cbd-order [data-platform-refund] {min-height:32px;padding:5px 10px;margin-top:0}
}
@media(max-width:899px) {
  html body dialog#modal:has(#platformPanel23.cbd-panel) {width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
  html body #platformPanel23.cbd-panel {grid-template-columns:minmax(0,1fr);gap:12px!important}
  html body #platformPanel23.cbd-panel .cbd-hero {padding:16px;gap:14px}
  html body #platformPanel23.cbd-panel .cbd-plan-intro {column-gap:16px}
  html body #platformPanel23.cbd-panel .cgp-period {padding-left:16px}
}
@media(max-width:600px) {
  html body dialog#modal:has(#platformPanel23.cbd-panel) > .dialog-head {padding:12px 16px!important;min-height:56px!important}
  html body dialog#modal:has(#platformPanel23.cbd-panel) #modalTitle {font-size:17px!important}
  html body dialog#modal:has(#platformPanel23.cbd-panel) > #modalContent {padding:12px!important}
  html body #platformPanel23.cbd-panel .cbd-hero {position:relative;padding:14px;min-height:0}
  html body #platformPanel23.cbd-panel .cbd-plan-intro {grid-template-columns:minmax(0,1fr);gap:3px}
  html body #platformPanel23.cbd-panel .cbd-plan-intro > :not(.cgp-period) {padding-right:48px}
  html body #platformPanel23.cbd-panel h3.cbd-plan-name {font-size:24px!important}
  html body #platformPanel23.cbd-panel .cbd-plan-emblem {position:absolute;right:16px;top:18px;width:38px;height:38px;border-radius:12px}
  html body #platformPanel23.cbd-panel .cbd-plan-emblem svg {width:24px;height:24px}
  html body #platformPanel23.cbd-panel .cgp-period {grid-column:1;grid-row:auto;width:100%;padding:10px 0 0;margin-top:7px;border-left:0;border-top:1px solid #91a5d545}
  html body #platformPanel23.cbd-panel :is(.cbd-services,.cbd-history) {padding:12px}
  html body #platformPanel23.cbd-panel .cbd-grid {margin-top:8px!important;gap:6px!important}
  html body #platformPanel23.cbd-panel .cbd-service {grid-template-columns:28px minmax(54px,1fr) auto;padding:7px 8px!important;column-gap:7px}
  html body #platformPanel23.cbd-panel .cbd-service-name {font-size:12px}
  html body #platformPanel23.cbd-panel .cbd-status {font-size:9px;padding:4px 5px}
  html body #platformPanel23.cbd-panel .cbd-empty {min-height:100px;padding:12px!important}
  html body #platformPanel23.cbd-panel .cbl-pages-r1 button {min-height:36px}
}

