/* Estudar: catálogo compacto, seguindo as cores e o tema do aplicativo. */
#study.study-compact{--study-accent:#8b681f;--study-soft:#f5efdf;--study-line:#e6e2d9;--study-card:#fff;--study-ink:#242a35;--study-muted:#656b74;padding-bottom:22px}
[data-theme="dark"] #study.study-compact{--study-accent:#edc675;--study-soft:#332d21;--study-line:#383a3c;--study-card:#20242b;--study-ink:#f2f3f5;--study-muted:#b6bdc9}
#study [hidden]{display:none!important}
#study .study-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 20px}
#study .study-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;color:var(--study-accent)}
#study .study-page-heading h2{font-size:clamp(24px,3vw,32px);letter-spacing:-.8px;line-height:1.15;margin:7px 0;color:var(--study-ink)}
#study .study-page-heading p{font-size:14px;color:var(--study-muted);margin:0}
#study .study-mastery-badge{font-size:12px;white-space:nowrap;border:1px solid var(--study-line);border-radius:20px;padding:8px 12px;color:var(--study-muted);background:var(--study-card)}
#study .study-search-box{background:var(--study-card);border:1px solid var(--study-line);border-radius:16px;padding:14px 18px}
#study .study-search-box label{display:block;font-size:12px;font-weight:700;margin:0 0 8px;color:var(--study-ink)}
#study .study-search-input{display:flex;align-items:center;gap:12px}
#study .study-search-input svg{width:21px;height:21px;flex:none;stroke:var(--study-accent);stroke-width:1.8;fill:none}
#study .study-search-input input{border:0;outline:none!important;box-shadow:none;background:transparent;color:var(--study-ink);padding:4px 0;min-width:0;width:100%;font:inherit;font-size:16px;height:34px}
#study .study-search-box:focus-within{outline:2px solid var(--study-accent);outline-offset:2px}
#study .study-search-input button{border:0;background:transparent;color:var(--study-muted);font-size:26px;min-width:44px;min-height:44px;padding:0}
#study .study-toolbar{display:flex;align-items:center;margin:16px 0 14px}
#study .study-filters{display:flex;gap:8px;flex-wrap:wrap}
#study .study-filters button{background:var(--study-card);border:1px solid var(--study-line);border-radius:22px;padding:10px 16px;min-height:44px;font-size:13px;font-weight:700;color:var(--study-muted);cursor:pointer}
#study .study-filters button[aria-pressed="true"]{background:var(--study-soft);border-color:var(--study-accent);color:var(--study-accent)}
#study .study-filters button span{display:inline-block;padding:1px 5px;margin-left:4px;border-radius:8px;font-size:11px;background:var(--study-soft)}
#study .study-guest-note{font-size:12px;line-height:1.45;color:var(--study-muted);margin:0 0 16px}
#studyCatalog{scroll-margin-top:90px}
#study .study-results-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px}
#study .study-results-heading h3{font-size:16px;margin:0;color:var(--study-ink)}
#study .study-results-heading>span{color:var(--study-muted);font-size:12px;flex-shrink:0}
#study .study-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#study .study-subject-card,#study .study-lesson-card{position:relative;display:flex;flex-direction:column;margin:0;background:var(--study-card);border:1px solid var(--study-line);border-radius:16px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
#study .study-subject-card:hover,#study .study-lesson-card:hover{border-color:var(--study-accent);box-shadow:0 4px 16px #00000008}
#study .study-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 10px 0 16px;min-height:48px}
#study .study-subject-icon{display:grid;place-items:center;background:var(--study-soft);color:var(--study-accent);width:36px;height:36px;border-radius:10px}
#study .study-subject-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#study .study-star{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:10px;border:0;border-radius:50%;color:var(--study-muted);background:transparent;cursor:pointer}
#study .study-star svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linejoin:round}
#study .study-star.is-saved{color:var(--study-accent);background:var(--study-soft)}
#study .study-star.is-saved svg{fill:currentColor}
#study .study-subject-open,#study .study-lesson-open{display:flex;flex-direction:column;flex:1;text-align:left;background:none;border:0;color:var(--study-ink);padding:8px 16px 15px;margin:0;cursor:pointer;width:100%;font:inherit;min-width:0}
#study .study-subject-open h3,#study .study-lesson-open h3{font-size:16px;line-height:1.35;font-weight:750;margin:0 0 6px;overflow-wrap:anywhere}
#study .study-subject-open p{font-size:12px;line-height:1.5;margin:0 0 14px;color:var(--study-muted)}
#study .study-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;margin-top:auto;font-size:12px;color:var(--study-muted)}
#study .study-open-label{font-weight:700;color:var(--study-accent);white-space:nowrap}
#study .study-progress-line{height:3px;background:var(--study-soft)}
#study .study-progress-line span{display:block;height:100%;background:var(--study-accent)}
#study .study-lesson-category{color:var(--study-muted);font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}
#study .study-lesson-meta{font-size:12px;color:var(--study-muted);margin:0 0 16px;line-height:1.4}
#study .study-back{background:none;border:0;padding:6px 0;min-height:44px;color:var(--study-accent);font-weight:700;cursor:pointer}
#study .study-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:18px;font-size:12px;color:var(--study-muted)}
#study .study-pagination button{min-height:44px}
#study .study-pagination button:disabled{opacity:.45;cursor:default}
#study .study-empty{grid-column:1/-1;text-align:center;padding:28px 18px;border:1px dashed var(--study-line);border-radius:16px;background:var(--study-card);color:var(--study-muted)}
#study .study-empty>span{font-size:32px;color:var(--study-accent)}
#study .study-empty h3{margin:8px 0;color:var(--study-ink);font-size:18px}
#study .study-empty p{margin:8px auto 16px;max-width:420px;font-size:14px}
#study .study-plan-details{margin-top:18px;border:1px solid var(--study-line);border-radius:14px;background:var(--study-card)}
#study .study-plan-details>summary{cursor:pointer;min-height:54px;padding:16px 18px;color:var(--study-ink);font-size:14px;font-weight:700}
#study .study-plan-summary-hint{font-size:11px;font-weight:400;color:var(--study-muted);margin-left:12px}
#study .study-plan-details .course-dashboard{padding:0 18px 18px;margin:0}
#study .study-footnote{font-size:11px;line-height:1.5;color:var(--study-muted);margin:14px 2px 0}
#study button:focus-visible,#study summary:focus-visible{outline:2px solid var(--study-accent);outline-offset:3px}
@media(max-width:800px){#study .study-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#study .study-page-heading{align-items:flex-start;margin:16px 0}#study .study-mastery-badge{font-size:10px;padding:7px 8px}#study .study-page-heading h2{font-size:25px}#study .study-page-heading p{font-size:12px}#study .study-card-grid{gap:10px}#study .study-card-heading{padding-left:12px}#study .study-subject-open,#study .study-lesson-open{padding:8px 12px 13px}#study .study-subject-open h3,#study .study-lesson-open h3{font-size:14px}#study .study-subject-open p{display:none}#study .study-card-bottom{font-size:11px;margin-top:12px;flex-wrap:wrap}#study .study-results-heading{flex-wrap:wrap;gap:4px}#study .study-plan-summary-hint{display:none}#study .study-pagination{gap:10px}#study .study-pagination button{font-size:12px;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){#study .study-subject-card,#study .study-lesson-card{transition:none}}
