.phone-dock,.phone-account-panel{display:none}
.free-resource-card{border:2px solid #8a73b1;box-shadow:0 4px 18px #67509216}
.free-resource-card .category{color:#593b86;font-weight:800}
.free-resource-card .tag{background:#65508f!important;color:white!important;font-size:11px!important}
#filters [data-filter="Free Resources"]{border:2px solid #8063aa;background:#eee7f8;color:#503475;font-weight:700}
#filters [data-filter="Free Resources"].active{background:#65508f;color:white}
.catalog-overview-image{display:block;width:100%;max-height:310px;object-fit:cover;border-radius:12px;margin:18px 0}
.catalog-overview .overview-price{display:block;font-size:18px;color:#5f4689;margin:16px 0}
.catalog-overview .coral{margin-top:12px}
@media(max-width:600px){
 body{padding-bottom:100px}
 #courses.catalog{padding:32px 20px}
 #grid.course-grid{grid-template-columns:1fr;gap:20px}
 #grid .course-art{height:210px;width:100%}
 #courses .filters{display:flex!important;flex-wrap:wrap;gap:8px}
 #courses .filters button{padding:10px 12px;font-size:12px}
 #courses .search{width:100%;max-width:none}
 #modal:not(.workspace-page){width:calc(100% - 24px);max-width:560px;max-height:85dvh;margin:auto;padding:42px 22px 24px;border-radius:18px}
 #modal:not(.workspace-page) h2{font-size:25px}
 .catalog-overview-image{max-height:230px}
 .phone-dock{position:fixed;display:flex;justify-content:space-around;bottom:calc(12px + env(safe-area-inset-bottom));left:20px;right:20px;z-index:90;border-radius:26px;padding:12px 8px;background:#ffffffb8;border:1px solid #fff;box-shadow:0 8px 35px #42375418;backdrop-filter:blur(22px)}.phone-dock a{display:flex;align-items:center;flex-direction:column;gap:4px;font-size:10px;font-weight:600;text-decoration:none;color:#645180}.phone-dock span{font-size:25px;line-height:27px}body.course-workspace .phone-dock{display:none}

}
.phone-account-panel{display:none}
@media(max-width:600px){body>footer{display:none!important}.phone-course-icon:has(.phone-personality-art){position:relative;overflow:hidden;border-radius:22%;background:none}.phone-dock .phone-account-toggle{display:flex;flex-direction:column;align-items:center;flex:1;gap:7px;color:#655b78;background:none;border:0;padding:0;font-size:10px;font-weight:400;min-width:0}.phone-account-panel:not([hidden]){display:flex;flex-direction:column;position:fixed;z-index:95;bottom:calc(105px + env(safe-area-inset-bottom));right:12px;left:12px;padding:20px;border-radius:22px;background:#fffef9f5;backdrop-filter:blur(20px);border:1px solid #e5dff0;box-shadow:0 12px 50px #35244925;max-height:65svh;overflow:auto}.phone-account-panel h2{font-size:22px;margin:0 0 12px;letter-spacing:-.5px}.phone-account-panel a,.phone-account-panel button{display:block;text-align:left;background:transparent;border:0;border-top:1px solid #eee9f4;border-radius:0;padding:14px 0;color:#514163;font-size:14px;font-weight:500}.phone-account-panel small{padding-top:15px;color:#8b8093;font-size:11px}body.course-workspace .phone-account-panel{display:none}}

@media(max-width:600px){.phone-account-panel:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 16px;padding:22px}.phone-account-panel h2,.phone-account-panel small{grid-column:1/-1;margin:0}.phone-account-panel .phone-account-tile{display:flex;flex-direction:column;align-items:center;gap:9px;padding:0;border:0;text-align:center;text-decoration:none}.phone-account-art{display:grid;place-items:center;width:68px;height:68px;border-radius:18px;background:linear-gradient(140deg,#d8c6fb,#8661e8);box-shadow:inset 0 1px 2px #fff9,0 4px 10px #69508a15}.phone-account-art svg{width:46px;height:46px;filter:drop-shadow(0 2px 2px #45335925)}.account-art-1{background:linear-gradient(140deg,#b9c7ef,#7670bd)}.account-art-2{background:linear-gradient(140deg,#a5dee7,#4f9cce)}.account-art-3{background:linear-gradient(140deg,#efc1d5,#bc80ad)}.phone-account-label{font-size:13px;line-height:1.3;color:#443351}.phone-account-panel small{padding-top:3px;text-align:center}.phone-account-panel .phone-account-tile:focus-visible{outline:2px solid #8953ed;outline-offset:5px;border-radius:12px}}

@media(max-width:600px){.phone-account-art{width:76px;height:76px;border-radius:23%;background:linear-gradient(145deg,#e5d4ff 0%,#b098df 55%,#9674c9 100%);border:1px solid #ffffff91;box-shadow:inset 0 1px 1px #fff, inset 0 -2px 3px #3a32731c,0 5px 9px #3c396b18;position:relative}.phone-account-art:before{content:'';position:absolute;inset:1px;border-radius:inherit;box-shadow:inset 1px 1px 2px #ffffff8a;pointer-events:none}.phone-account-art svg{width:59px;height:59px;filter:none;overflow:visible}.account-art-1{background:linear-gradient(140deg,#5bc5ff,#248de7 55%,#1763ae)}.account-art-2{background:linear-gradient(140deg,#62e1d6,#22b4b2 55%,#168b92)}.account-art-3{background:linear-gradient(140deg,#ffcae0,#ed91af 55%,#d57193)}.phone-account-label{font-size:13px;color:#302640;font-weight:500}.phone-account-panel:not([hidden]){background:#fcfbfff5;gap:20px 16px}}

@media(max-width:600px){.phone-tone-16 .phone-personality-art img{width:100%;height:100%;left:0;top:0;object-fit:cover}}
@media(max-width:600px){.phone-dock svg{display:block;width:24px;height:24px}.phone-dock span{display:block;width:24px;height:24px}.phone-dock a{flex:1;gap:7px;min-width:0}.phone-dock{align-items:center}.phone-dock .phone-account-toggle{gap:7px}}

/* Group courses by category; only matching courses share a row. */
#grid.course-grid{display:block}
.catalog-category{border-top:1px solid #d8cde5;padding-top:24px;margin-top:28px}
.catalog-category:first-child{margin-top:8px}
.catalog-category-title{font-size:23px;letter-spacing:-.5px;margin:0 0 20px;color:#51416d}
.category-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.compact-course-name{display:none}
.choose-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}
.choose-categories button{text-align:left;border:1px solid #d6cbe6;background:#eee8f7;color:#51416d;padding:15px;border-radius:10px}
@media(max-width:900px){.category-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 #grid.course-grid{display:block!important}
 .catalog-category{padding-top:18px;margin-top:22px}
 .catalog-category-title{font-size:20px;margin-bottom:14px}
 .category-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #grid .course-art{height:108px;padding:0}
 #grid .course-art .tag{display:none}
 #grid .course-info{padding:12px 10px}
 #grid .course-info>.category,#grid .course-info>p,#grid .meta,#grid .course-bottom,#grid .heading-wave{display:none}
 #grid .course-info h3{font-size:14px;line-height:1.4;margin:0;letter-spacing:-.15px}
 #grid .coming-soon-badge{font-size:9px;margin:0 0 7px}
 .desktop-course-name{display:none}.compact-course-name{display:inline}
 #filters.academy-menu-panel,#filters.academy-menu-panel.academy-menu-open{display:flex!important;flex-direction:row;flex-wrap:nowrap!important;overflow-x:auto;gap:8px;width:100%;padding:8px 0;border:0;background:transparent;box-shadow:none}
 #filters button{flex:0 0 auto;white-space:nowrap}
 .academy-menu-toggle[aria-controls="filters"]{display:none!important}
 .hero{padding:28px 20px;gap:16px}.hero h1{font-size:34px}.hero-art,.values{display:none}
 .choose-categories{grid-template-columns:1fr}
}

@media(max-width:600px){body #courses #filters button{padding-left:46px;padding-right:12px}.search{box-sizing:border-box}}

/* Compact course selection: details remain in the course dialog. */
#courses .category-course-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}
#grid .course-art{height:auto;aspect-ratio:4/3;padding:0;width:100%}
#grid .course-art .tag,#grid .course-info>.category,#grid .course-info>p,#grid .meta,#grid .course-bottom,#grid .heading-wave{display:none}
#grid .course-info{padding:10px}
#grid .course-title{min-height:0;margin:0;display:block}
#grid .course-title h3{min-height:0;margin:0;font-size:15px;line-height:1.35;letter-spacing:0}
#grid .desktop-course-name{display:none}
#grid .compact-course-name{display:inline}
#grid .coming-soon-badge{font-size:9px;margin:0 0 5px;padding:3px 5px}
@media(max-width:600px){
 #courses.catalog{padding:22px 12px}
 #courses .category-course-grid{gap:8px}
 #grid .course-card{border-radius:9px}
 #grid .course-art{aspect-ratio:1}
 #grid .course-info{padding:6px 4px}
 #grid .course-title h3{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
 #grid .coming-soon-badge{font-size:8px;padding:2px 3px}
 .catalog-category-title{font-size:18px;margin-bottom:12px}
}

/* Equal-height cards with concise summaries and aligned price rows. */
#courses .category-course-grid{align-items:stretch}
#grid .course-card{display:flex;flex-direction:column}
#grid .course-art{flex:none}
#grid .course-info{display:flex;flex-direction:column;padding:10px;flex:1}
#grid .course-title{height:61px;flex:none}
#grid .course-title h3{display:block;font-size:15px;line-height:20px}
#grid .course-title-link{display:inline}
#grid .coming-soon-badge{display:inline-block;vertical-align:middle;margin:0 0 0 5px;line-height:12px;font-size:9px;letter-spacing:0;white-space:nowrap}
#grid .course-info>p.card-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:12px;line-height:17px;height:51px;min-height:0;margin:8px 0}
#grid .course-bottom{display:flex;align-items:flex-start;min-height:42px;margin:0;padding:0;border:0}
#grid .course-bottom .preview{display:none}
#grid .course-bottom .price{font-size:13px;line-height:18px;white-space:normal}
#grid .course-bottom .price small{font-size:11px}
@media(max-width:600px){
 #grid .course-info{padding:6px 4px}
 #grid .course-title{height:70px}
 #grid .course-title h3{font-size:11px;line-height:14px}
 #grid .coming-soon-badge{font-size:7px;line-height:10px;padding:1px 2px;margin-left:2px}
 #grid .course-info>p.card-summary{font-size:10px;line-height:13px;height:52px;-webkit-line-clamp:4;margin:5px 0}
 #grid .course-bottom{min-height:56px}
 #grid .course-bottom .price,#grid .course-bottom .price small{font-size:10px;line-height:13px}
}

#grid .free-resource-card{border-width:1px}
#grid .course-title{height:40px}
#grid .course-info>p.card-summary{height:34px;-webkit-line-clamp:2}
#grid .course-bottom{min-height:36px}
@media(max-width:600px){#grid .course-title{height:56px}#grid .course-info>p.card-summary{height:52px;-webkit-line-clamp:4}#grid .course-bottom{min-height:52px}}

/* Cleaner selection without the retired catalogue toolbar. */
body #courses .retired-catalog-controls{display:none!important}
#courses.catalog{padding-top:24px}
#courses .catalog-category:first-child{border-top:0;margin-top:0;padding-top:0}
@media(max-width:600px){
 #courses.catalog{padding-top:16px;padding-bottom:24px}
 #courses .catalog-category{margin-top:18px;padding-top:16px}
 #grid .course-card{cursor:pointer}
 #grid .course-title h3{font-size:12px;line-height:14px}
 #grid .course-info>p.card-summary{font-size:11px;line-height:14px;height:56px;margin:6px 0}
 #grid .course-bottom .price,#grid .course-bottom .price small{font-size:11px;line-height:13px}
 #modal:not(.workspace-page){box-sizing:border-box;width:calc(100% - 16px);max-height:90dvh;padding:44px 18px 22px;overscroll-behavior:contain}
 #modal:not(.workspace-page) .close{min-width:44px;min-height:44px;top:4px;right:4px}
 #modal:not(.workspace-page) .catalog-overview .coral{width:100%;min-height:48px}
 .phone-dock{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));padding:10px 6px}
 .phone-dock a,.phone-dock .phone-account-toggle{min-height:44px;justify-content:center}
}

/* Two readable course cards per row on phones; desktop retains four. */
@media(max-width:600px){
 #courses.catalog{padding:20px 16px 28px}
 #courses .category-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
 #grid .course-card{border-radius:12px}
 #grid .course-art{aspect-ratio:4/3}
 #grid .course-info{padding:12px 10px}
 #grid .course-title{height:66px}
 #grid .course-title h3{font-size:15px;line-height:20px;overflow-wrap:normal}
 #grid .coming-soon-badge{font-size:9px;line-height:13px;margin-left:4px;padding:2px 4px}
 #grid .course-info>p.card-summary{font-size:13px;line-height:18px;height:54px;-webkit-line-clamp:3;margin:8px 0}
 #grid .course-bottom{min-height:54px}
 #grid .course-bottom .price,#grid .course-bottom .price small{font-size:13px;line-height:18px}
 .catalog-category-title{font-size:21px;margin-bottom:14px}
 #modal:not(.workspace-page) .catalog-overview{font-size:15px;line-height:1.6}
}
