#panel-catalog {
  --ct-ink:#1e2330;
  --ct-muted:#596272;
  --ct-line:#dce0e6;
  --ct-accent:#5144aa;
  background:#f6f7f9;
  color:var(--ct-ink);
  font:15px/1.5 var(--sans,system-ui,sans-serif);
  padding:0 clamp(20px,5vw,82px);
  min-height:calc(100dvh - 52px);
}
#panel-catalog .ct-wrap { width:min(1120px,100%); margin-inline:auto; padding:30px 0 52px; }
#panel-catalog button, #panel-catalog select { font:inherit; }
#panel-catalog button:focus-visible, #panel-catalog select:focus-visible { outline:2px solid var(--ct-accent); outline-offset:-2px; }
#panel-catalog .ct-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:18px; align-items:center; margin-bottom:15px; }
#panel-catalog h1,#panel-catalog h2,#panel-catalog h3,#panel-catalog p { margin:0; }
#panel-catalog .ct-heading h1 { font:650 clamp(21px,2vw,27px)/1.3 var(--sans,system-ui,sans-serif); }
#panel-catalog .ct-feedback { grid-column:1/-1; margin-top:4px; color:var(--ct-muted); font-size:14px; line-height:1.5; }
#panel-catalog .ct-switch { display:flex; align-items:center; gap:10px; min-width:0; }
#panel-catalog .ct-switch label { color:var(--ct-muted); font-size:13px; white-space:nowrap; }
#panel-catalog .ct-switch-field { --inset:12px; position:relative; display:inline-grid; min-width:0; }
#panel-catalog .ct-switch select { appearance:none; border:1px solid #c8ced7; border-radius:5px; padding:8px calc(var(--inset) + 20px) 8px var(--inset); color:var(--ct-ink); background:white; max-width:260px; min-height:38px; cursor:pointer; font-size:13px; }
#panel-catalog .ct-select-arrow { position:absolute; right:calc(1px + var(--inset)); top:50%; transform:translateY(-50%); width:10px; height:6px; color:var(--ct-ink); pointer-events:none; }
#panel-catalog .ct-overview { background:white; border:1px solid var(--ct-line); border-radius:8px; padding:22px; display:flex; align-items:center; gap:22px; }
#panel-catalog .ct-art { flex:none; width:184px; height:105px; display:grid; align-items:center; }
#panel-catalog .ct-plate { position:relative; width:168px; flex:none; aspect-ratio:2250/1406; overflow:hidden; border-radius:5px; }
#panel-catalog .ct-plate img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; }
#panel-catalog .ct-pair { width:184px; aspect-ratio:1080/608; padding:0; border:0; background:none; cursor:pointer; }
#panel-catalog .ct-pair:focus-visible { outline-offset:3px; }
#panel-catalog .ct-plate .ct-photo { object-fit:cover; object-position:50% 16%; }
#panel-catalog .ct-blocks { opacity:0; transition:opacity .3s ease-in-out; }
#panel-catalog .ct-pair[aria-pressed="true"] .ct-blocks { opacity:1; }
@media(prefers-reduced-motion:reduce) {
  #panel-catalog .ct-blocks { transition:none; }
}
#panel-catalog .ct-info { min-width:0; }
#panel-catalog .ct-title-slot { display:grid; grid-template-columns:minmax(0,1fr); font:650 clamp(20px,2vw,27px)/1.4 var(--sans,system-ui,sans-serif); overflow-wrap:anywhere; }
#panel-catalog .ct-title-slot > * { grid-area:1/1; font:inherit; }
/* Size the title row for either course at the current width and font size. */
#panel-catalog .ct-title-slot > span { visibility:hidden; }
#panel-catalog .ct-course-meta { display:flex; align-items:center; gap:8px; font-size:13px; margin-top:5px; color:var(--ct-muted); }
#panel-catalog .ct-progress { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--ct-muted); margin-top:13px; line-height:1.5; }
#panel-catalog progress { width:90px; height:5px; border:0; border-radius:4px; overflow:hidden; appearance:none; background:#e5e6ec; accent-color:var(--ct-accent); }
#panel-catalog progress::-webkit-progress-bar { background:#e5e6ec; }
#panel-catalog progress::-webkit-progress-value { background:var(--ct-accent); }
#panel-catalog progress::-moz-progress-bar { background:var(--ct-accent); }
#panel-catalog .ct-locked { font-size:12px; line-height:1.5; color:var(--ct-muted); margin-top:13px; }
#panel-catalog .ct-entry { margin-left:auto; text-align:right; max-width:40%; }
#panel-catalog .ct-start { display:inline-flex; gap:9px; align-items:center; justify-content:center; min-height:42px; white-space:nowrap; border:0; border-radius:5px; color:white; font-size:14px; font-weight:600; background:var(--ct-accent); padding:8px 20px; cursor:pointer; }
#panel-catalog .ct-start:hover { background:#423692; }
#panel-catalog .ct-start:disabled { opacity:.55; cursor:default; }
#panel-catalog .ct-start i { border-block:4px solid transparent; border-left:7px solid white; }
#panel-catalog .ct-resume-at { color:var(--ct-muted); font-size:12px; margin-top:6px; overflow-wrap:anywhere; }
#panel-catalog .ct-resume-at[aria-hidden="true"] { visibility:hidden; }
#panel-catalog .ct-index { margin:24px 0 0; }
#panel-catalog .ct-index > h2 { margin-bottom:12px; font:650 20px/1.5 var(--sans,system-ui,sans-serif); }
#panel-catalog .ct-chapters { overflow:hidden; background:white; border:1px solid var(--ct-line); border-radius:8px; }
#panel-catalog .ct-chapter { scroll-margin-top:75px; }
#panel-catalog .ct-chapter + .ct-chapter { border-top:1px solid var(--ct-line); }
#panel-catalog .ct-chapter-toggle { display:flex; align-items:center; width:100%; min-height:49px; padding:12px 20px; gap:12px; border:0; background:#f1f3f6; color:var(--ct-ink); text-align:left; font-size:15px; font-weight:650; cursor:pointer; }
#panel-catalog .ct-chapter-toggle:hover { background:#e9ecf1; }
#panel-catalog .ct-chapter-size { margin-left:auto; font-size:12px; font-weight:400; color:var(--ct-muted); }
#panel-catalog .ct-chapter-toggle i,#panel-catalog .ct-row-arrow { width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(-45deg); flex-shrink:0; color:#71798a; }
#panel-catalog .ct-chapter.open .ct-chapter-toggle i { transform:translateY(-2px) rotate(45deg); }
#panel-catalog .ct-lessons { display:none; list-style:none; padding:0; margin:0; }
#panel-catalog .ct-chapter.open .ct-lessons { display:block; }
#panel-catalog .ct-lessons li { border-top:1px solid #eceef1; }
#panel-catalog .ct-row { width:100%; display:flex; align-items:center; gap:15px; min-height:48px; border:0; background:white; padding:10px 22px; text-align:left; color:var(--ct-ink); cursor:pointer; }
#panel-catalog .ct-row:hover { background:#f6f5fc; }
#panel-catalog .ct-row-last { background:#f4f2fb; }
#panel-catalog .ct-number,#panel-catalog .ct-duration { color:var(--ct-muted); font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
#panel-catalog .ct-number { min-width:20px; }
#panel-catalog .ct-duration { text-align:right; min-width:39px; }
#panel-catalog .ct-row-content { flex:1; min-width:0; }
#panel-catalog .ct-lesson-title { font-size:14px; overflow-wrap:anywhere; }
#panel-catalog .ct-clip { display:inline-block; vertical-align:middle; margin-left:8px; color:#493c9f; background:#efedfb; border-radius:3px; padding:1px 5px; font-size:11px; line-height:1.5; }
#panel-catalog .ct-row-state { font-size:12px; color:var(--ct-accent); white-space:nowrap; }
@media(max-width:720px) {
  #panel-catalog { padding-inline:14px; }
  #panel-catalog .ct-wrap { padding-top:18px; }
  #panel-catalog .ct-heading { column-gap:8px; }
  #panel-catalog .ct-switch label { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  #panel-catalog .ct-switch select { max-width:50vw; }
  #panel-catalog .ct-overview { display:grid; grid-template-columns:auto minmax(0,1fr); gap:13px; padding:14px; }
  #panel-catalog .ct-art { width:clamp(96px,27vw,128px); height:auto; aspect-ratio:2250/1406; }
  #panel-catalog .ct-plate { width:100%; }
  #panel-catalog .ct-title-slot { font-size:19px; }
  #panel-catalog .ct-course-meta { font-size:12px; gap:5px; }
  #panel-catalog .ct-progress { gap:6px; flex-wrap:wrap; }
  #panel-catalog .ct-progress,#panel-catalog .ct-locked { margin-top:8px; }
  #panel-catalog progress { width:46px; }
  #panel-catalog .ct-entry { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; gap:10px; margin:0; max-width:none; grid-column:1/-1; text-align:left; }
  #panel-catalog .ct-start { min-width:112px; }
  #panel-catalog .ct-resume-at { margin:0; }
  #panel-catalog .ct-index { margin-top:18px; }
  #panel-catalog .ct-chapter-toggle,#panel-catalog .ct-row { padding-inline:12px; }
  #panel-catalog .ct-row { gap:7px; }
  #panel-catalog .ct-number { min-width:17px; }
  #panel-catalog .ct-clip { margin-left:4px; }
}
