/* Shared catalogue layout; the reading theme owns surfaces and typography. */
body.design-five #main.study-catalogue,body.design-five #main.study-progress{max-width:1120px!important;margin-inline:auto!important;min-width:0}
body.design-five #main .study-search{padding:20px;margin:0 0 24px;text-align:start;min-width:0}
.study-search-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,220px) auto;gap:14px;align-items:end}
.study-search-form label{display:grid;gap:8px;min-width:0;font-weight:650;font-size:.92rem}
.study-search-form input,.study-search-form select{width:100%;min-width:0;min-height:46px;box-sizing:border-box;font:inherit;border:1px solid var(--line);border-radius:12px;background:var(--reading-panel,var(--card));color:var(--text);padding:10px 12px}
.study-search>small{display:block;color:var(--muted);line-height:1.5;margin-top:10px}
#studySearchCount:empty{display:none}
.study-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.design-five .study-search-result{position:relative;display:flex;flex-direction:column;gap:6px;align-items:start;min-width:0;width:100%;text-align:start;white-space:normal;padding:16px 34px 16px 16px;border-radius:14px;border:1px solid var(--line);background:var(--reading-panel,var(--card));color:var(--text);overflow-wrap:anywhere}
.study-search-result>span,.study-search-result small{font-size:.85rem;line-height:1.5}
.study-search-result .study-result-meta{color:var(--muted);font-size:.76rem}
.study-result-arrow{position:absolute;inset-inline-end:14px;top:14px}
#studySearchMore{margin-top:14px}
body.design-five #main :is(.course-level-nav,.grammar-level-filter){display:flex;justify-content:center;flex-wrap:wrap;gap:10px;padding:0;margin:0 auto 24px;width:100%}
body.design-five #main :is(.course-level-nav,.grammar-level-filter) button[data-level]:not([data-level=""]){flex:0 1 104px;min-width:64px;min-height:52px;border:1px solid var(--level-border)!important;border-top:3px solid var(--level-accent)!important;background:var(--level-surface)!important;color:var(--level-text)!important;border-radius:14px;box-shadow:none;font-weight:800;position:relative}
body.design-five #main :is(.course-level-nav,.grammar-level-filter) button[aria-pressed="true"]{outline:2px solid var(--level-accent,var(--accent));outline-offset:3px}
body.design-five #main :is(.course-level-nav,.grammar-level-filter) button[aria-pressed="true"]:after{content:none}
body.design-five #main.study-catalogue .section-title{text-align:center;justify-content:center;margin:22px 0}
body.design-five #main.study-catalogue :is(.lesson-list,.daily-test-list){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
body.design-five #main.study-catalogue .lesson-card{display:grid!important;grid-template-columns:38px minmax(0,1fr) 16px!important;align-items:start!important;min-width:0;min-height:132px;padding:20px!important;text-align:start;white-space:normal;overflow-wrap:anywhere;border-radius:18px!important;box-shadow:none!important}
body.design-five #main.study-catalogue .lesson-card .lesson-num{width:36px;height:36px;font-size:.9rem;border-radius:12px}
body.design-five #main.study-catalogue .lesson-card h3{font-size:1.05rem;line-height:1.45;margin:0 0 8px}
body.design-five #main.study-catalogue .lesson-card p{line-height:1.55;font-size:.87rem;margin:0}
body.design-five #main.study-catalogue .lesson-card .chevron{align-self:center}
body.design-five #main .takv-catalogue-tools{display:flex;justify-content:flex-end;margin:10px 0;padding:0;background:none;border:0}
body.design-five #main .exam-collections{justify-content:center;align-items:center;gap:10px;margin:0 0 22px}
body.design-five #main .exam-collections button{padding:10px 16px;font-size:.9rem;max-width:100%;border-radius:12px;min-height:44px}
body.design-five #main .exam-collections button[data-exam-collection="external"]:not([aria-pressed="true"]){background:transparent!important;box-shadow:none!important;color:var(--muted)!important;border-color:var(--line)!important}
body.design-five #main #exam-own>.exam-collection-intro{padding:16px 20px;margin:0 0 20px;text-align:center;background:transparent;border:0;box-shadow:none}
body.design-five #main #exam-own>.exam-collection-intro h2{font-size:1.3rem}
body.design-five #main #exam-external{max-width:800px;margin-inline:auto}
body.design-five #main .exam-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.design-five #main .exam-resource{padding:16px;gap:8px;border-radius:16px}
body.design-five #main .exam-resource h3{font-size:1rem}
body.design-five #main .exam-resource small{font-size:.75rem;color:var(--muted)}
.study-progress-overview{margin:0 0 24px}
.study-progress-overview>h2{text-align:center;margin:16px 0 20px}
.study-progress-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.design-five .study-progress-level{display:grid;gap:14px;width:100%;padding:20px;text-align:start;min-width:0;white-space:normal;line-height:1.5;border-radius:18px;border:1px solid var(--level-border)!important;border-top:3px solid var(--level-accent)!important;background:var(--level-surface)!important;color:var(--level-text)!important}
.study-progress-level>span{display:flex;justify-content:space-between;align-items:center;gap:8px}.study-progress-level strong{font-size:1.6rem}
.study-progress-level progress{width:100%;height:8px;border:0;border-radius:6px;overflow:hidden;accent-color:var(--level-accent)}
.study-progress-level progress::-webkit-progress-bar{background:var(--level-border)}.study-progress-level progress::-webkit-progress-value{background:var(--level-accent)}
body.design-five #main.study-progress .metric-row{flex-wrap:wrap;gap:12px;padding:16px 0}
body.design-five #main.study-progress .metric-row b{white-space:normal;overflow-wrap:anywhere}
body.design-five #main.study-progress>.card,body.design-five #main.study-progress>.analytics-card{margin-bottom:20px}
body.design-five #main.study-progress .guest-progress-list li{background:var(--reading-panel,var(--card));border:1px solid var(--line);border-radius:12px;padding:16px;margin:10px 0}
body.design-five #main.study-progress .lesson-card{margin-bottom:10px}
@media(max-width:700px){
 .study-search-form{grid-template-columns:minmax(0,1fr) auto}.study-search-form>label:first-child{grid-column:1/-1}.study-search-form>label:nth-child(2){grid-column:1}.study-search-results{grid-template-columns:1fr}
 body.design-five #main .study-search{padding:16px;margin-bottom:20px}
 body.design-five #main :is(.course-level-nav,.grammar-level-filter){gap:10px}
 body.design-five #main .course-level-nav button[data-level]{flex:0 1 calc((100% - 20px)/3)!important;min-width:0!important;padding:10px 6px}
 body.design-five #main.study-catalogue :is(.lesson-list,.daily-test-list){grid-template-columns:1fr!important}
 body.design-five #main.study-catalogue .lesson-card{padding:16px!important;min-height:110px}
 .study-progress-levels{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.study-progress-level{padding:14px!important}
 body.design-five #main .exam-resource-grid{grid-template-columns:1fr}
 body.design-five #main .exam-collections{flex-direction:column}.exam-collections button{width:100%}
}
@media(max-width:360px){.study-progress-levels{grid-template-columns:1fr}}

body.design-five #main .level-pill[data-level]{background:var(--level-surface)!important;color:var(--level-text)!important;border:1px solid var(--level-border)!important}

body.design-five #main .grammar-level-filter{margin-top:20px}

/* One course heading for A1–C2, with a legible progress ring. */
body.design-five #main .study-course-intro{display:grid;grid-template-columns:minmax(0,1fr) 92px;align-items:center;gap:24px;padding:28px;border:1px solid var(--level-border);border-top:3px solid var(--level-accent);background:var(--reading-panel);border-radius:22px;margin:0 0 24px;text-align:start}
body.design-five #main .study-course-intro h2{margin:6px 0 12px;font-weight:750;font-size:clamp(24px,2.6vw,34px);line-height:1.3;font-family:inherit;letter-spacing:-.02em}
.study-course-intro p{margin:8px 0;line-height:1.6;max-width:74ch}.study-course-intro .tak-section-eyebrow{color:var(--level-text)}
.study-progress-badge{display:grid;place-items:center;position:relative;width:88px;height:88px;border-radius:50%;background:conic-gradient(var(--level-accent,var(--reading-accent)) var(--progress),var(--level-surface,var(--reading-soft)) 0);isolation:isolate;color:var(--level-text,var(--reading-ink));font-size:1.2rem;font-variant-numeric:tabular-nums}
.study-progress-badge:before{content:'';position:absolute;inset:7px;border-radius:50%;background:#fff;z-index:-1}
.owner-admin-links{display:grid;gap:12px;margin:20px 0}.account-panel-close{margin-inline-start:auto;flex-shrink:0;width:44px;height:44px;border:1px solid var(--reading-line);border-radius:50%;background:var(--reading-soft);color:var(--reading-ink);font-size:26px;cursor:pointer}
@media(max-width:600px){body.design-five #main .study-course-intro{grid-template-columns:minmax(0,1fr) 64px;gap:12px;padding:20px}.study-progress-badge{width:64px;height:64px;font-size:1rem}.study-progress-badge:before{inset:5px}.study-course-intro h2{font-size:24px!important}}
