/* Task directory: isolated from the shared app navigation. */
.page-tasks main { background: #fff; color: #19243a; }
.tasks-directory { --task-blue: #3155e7; --task-muted: #647087; }
.tasks-directory .shell { width: min(1240px,calc(100% - 64px)); }
.tasks-directory :is(h1,h2,h3) { font-family: var(--font-body); letter-spacing: -.04em; }
.tasks-intro { padding: 42px 0 32px; background: linear-gradient(120deg,#f4f7ff,#fafbfe); border-bottom: 1px solid #e7ecf5; }
.tasks-eyebrow { color: #3155e7; font-size: 10px; font-weight: 700; letter-spacing: .12em; margin: 0 0 12px; }
.tasks-intro__heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tasks-intro h1 { font-size: clamp(30px,3.3vw,46px); line-height: 1.2; max-width: 650px; margin-bottom: 13px; }
.tasks-intro h1 span { color: #3155e7; }
.tasks-intro__heading p { margin: 0; font-size: 15px; line-height: 1.7; color: #647087; }
.tasks-text-link { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: #3155e7; }
.tasks-intro__heading > a { flex-shrink: 0; padding-bottom: 4px; }
.tasks-spotlight-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 12px; }
.tasks-spotlight-head h2 { font-size: 13px; letter-spacing: 0; margin: 0; }
.tasks-spotlight-head > span { font-size: 11px; color: #647087; }
.tasks-spotlights { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.tasks-spotlight { display: grid; gap: 13px; padding: 18px; background: #fff; border: 1px solid #e0e6f1; border-radius: 10px; color: #19243a; transition: border-color .2s, transform .2s; }
.tasks-spotlight:hover { border-color: #a9bcec; transform: translateY(-2px); color: #2342b6; }
.tasks-spotlight strong { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.tasks-spotlight > span:last-child { display: flex; justify-content: space-between; align-items: center; color: #647087; font-size: 12px; }
.tasks-spotlight b { font-size: 17px; color: #3155e7; font-weight: 500; }
.tasks-directory .task-card__mark { width: 38px; height: 38px; background: #edf1ff; color: #4d65bc; border: 0; border-radius: 9px; }
.tasks-spotlight:nth-child(2) .task-card__mark { color: #946934; background: #fbf0e3; }
.tasks-spotlight:nth-child(3) .task-card__mark { color: #447c68; background: #eaf5ef; }
.tasks-browser { padding-block: 34px 42px; }
.tasks-browser__heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.tasks-browser h2 { font-size: 25px; line-height: 1.3; margin: 0; }
.tasks-total { font-size: 12px; color: #647087; white-space: nowrap; background: #f4f6fb; padding: 6px 10px; border-radius: 5px; }
.tasks-directory .tasks-search { margin: 0 0 22px; max-width: none; }
.tasks-controls { display: flex; gap: 12px; align-items: stretch; }
.tasks-directory .tasks-search__field { display: flex; align-items: center; flex: 1; min-width: 0; gap: 12px; border: 1px solid #d9e1ef; border-radius: 9px; background: #fff; padding: 0 15px; box-shadow: none; }
.tasks-directory .tasks-search__field:focus-within { outline: 3px solid #3155e71a; border-color: #3155e7; }
.tasks-directory .tasks-search__field svg { flex-shrink: 0; color: #77869e; }
.tasks-directory .tasks-search__field input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 15px 0; font: 400 15px var(--font-body); background: transparent; box-shadow: none; }
.tasks-clear { border: 0; background: #f2f5fb; color: #536179; width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; cursor: pointer; font-size: 22px; }
.tasks-sort { display: flex; gap: 10px; align-items: center; border: 1px solid #d9e1ef; border-radius: 9px; padding: 0 12px; color: #647087; font-size: 12px; }
.tasks-sort select { border: 0; background: #fff; font: 600 13px var(--font-body); color: #19243a; padding: 12px 3px; cursor: pointer; }
.tasks-submit { border: 0; border-radius: 8px; padding: 0 20px; color: #fff; background: #3155e7; font: 600 14px var(--font-body); cursor: pointer; }
.tasks-submit:hover { background: #2342b6; }
.tasks-results-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; color: #647087; font-size: 12px; }
.tasks-results-meta p { margin: 0; }
.tasks-results-meta strong { color: #19243a; }
.tasks-directory .tasks-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0; }
.tasks-directory .task-card { padding: 16px; gap: 12px; background: #fff; border: 1px solid #e3e8f1; border-radius: 9px; animation: none; }
.tasks-directory .task-card:hover { border-color: #b8c7ef; background: #f9faff; transform: none; }
.tasks-directory .task-card__name { white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.tasks-directory .task-card__count { font-size: 12px; font-weight: 400; }
.tasks-directory .task-card__go { opacity: 1; transform: none; color: #a0abc0; font-size: 18px; }
.tasks-directory .task-card:hover .task-card__mark { color: #3155e7; background: #eaf0ff; }
.tasks-directory [hidden] { display: none !important; }
.tasks-filter-empty { grid-column: 1/-1; padding: 44px 24px; text-align: center; background: #f8faff; border: 1px dashed #c8d3e8; border-radius: 12px; }
.tasks-filter-empty > span { font-size: 35px; color: #6c82cb; }
.tasks-filter-empty h3 { font-size: 22px; margin: 12px 0; }
.tasks-filter-empty p { font-size: 14px; color: #647087; }
.tasks-filter-empty > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.tasks-guide { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; padding: 24px; background: #f3f6fd; border-radius: 10px; }
.tasks-guide h2 { font-size: 18px; }
.tasks-guide p { font-size: 13px; color: #647087; margin: 9px 0 0; }
.tasks-guide > a { flex-shrink: 0; }
.tasks-directory :is(a,button,select):focus-visible { outline: 3px solid #3155e7; outline-offset: 3px; }
@media(max-width:1200px) {
 .tasks-intro__heading { align-items: flex-start; flex-direction: column; gap: 14px; }
 .tasks-directory .tasks-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .tasks-controls { flex-wrap: wrap; }
 .tasks-directory .tasks-search__field { flex-basis: 100%; }
 .tasks-sort { flex: 1; justify-content: space-between; }
 .tasks-submit { min-height: 44px; }
}
@media(max-width:600px) {
 .tasks-directory .shell { width: calc(100% - 36px); }
 .tasks-intro { padding: 28px 0 24px; }
 .tasks-intro h1 { font-size: 32px; }
 .tasks-intro__heading p { font-size: 14px; }
 .tasks-spotlights { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .tasks-spotlight { padding: 15px; gap: 10px; }
 .tasks-spotlight strong { font-size: 14px; }
 .tasks-browser__heading { align-items: flex-start; flex-direction: column; gap: 12px; }
 .tasks-browser h2 { font-size: 24px; }
 .tasks-results-meta > span { display: none; }
 .tasks-directory .tasks-grid { grid-template-columns: minmax(0,1fr); }
 .tasks-directory .tasks-search__field input { font-size: 16px; }
 .tasks-sort select { font-size: 16px; }
 .tasks-guide { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media(prefers-reduced-motion:reduce) { .tasks-directory :is(.task-card,.tasks-spotlight) { transition: none; } }
@media(max-width:600px) {
 .tasks-spotlight { grid-template-columns: 32px minmax(0,1fr); gap: 7px 9px; padding: 12px; }
 .tasks-spotlight .task-card__mark { width: 32px; height: 32px; grid-row: 1 / 3; }
 .tasks-spotlight > span:last-child { grid-column: 2; font-size: 11px; }
 .tasks-spotlight strong { font-size: 13px; }
 .tasks-spotlight b { font-size: 15px; }
}
