.task-page-intro {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.task-page-intro p {
    margin: 0;
    color: var(--ds-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.task-page-intro .button {
    min-height: 44px;
    flex: 0 0 auto;
}

.task-center-tabs {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
    padding: 4px;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    background: #fff;
}

.task-center-tabs a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 9px;
    color: var(--ds-text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.task-center-tabs a:hover {
    color: var(--ds-primary);
    background: #f8f9ff;
}

.task-center-tabs a.active {
    color: var(--ds-primary);
    background: var(--ds-primary-soft);
}

.task-center-tabs a:focus-visible {
    outline: 3px solid rgba(49, 86, 217, .2);
    outline-offset: 1px;
}

.task-center-tabs b {
    min-width: 19px;
    color: inherit;
    font-size: 11px;
    text-align: center;
}

.task-filter-drawer {
    min-width: 0;
    margin-bottom: 16px;
}

.task-filter-drawer > summary {
    display: none;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--ds-border);
    border-radius: 10px;
    color: #344054;
    background: #fff;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 650;
}

.task-filter-drawer > summary::marker {
    content: "";
}

.task-filter-drawer > summary::-webkit-details-marker {
    display: none;
}

.task-filter-drawer > summary > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-filter-drawer > summary svg {
    width: 17px;
    height: 17px;
}

.task-filter-drawer > summary > svg:last-child {
    transition: transform .16s ease;
}

.task-filter-drawer[open] > summary > svg:last-child {
    transform: rotate(180deg);
}

.task-center-filters {
    display: grid;
    min-width: 0;
    align-items: end;
    grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    background: #fff;
}

.task-center-filters label {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.task-center-filters label > span {
    color: #344054;
    font-size: 12px;
    font-weight: 650;
}

.task-center-filters .web-select-trigger {
    border-radius: 10px;
    font-size: 13px;
}

.task-filter-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.task-filter-actions .button {
    min-height: 44px;
}

.task-empty-card {
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    background: #fff;
}

.task-record-list {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.task-record-card {
    min-width: 0;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    background: #fff;
}

.task-record-summary {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.task-record-summary > div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.task-record-type {
    color: var(--ds-primary);
    font-size: 11px;
    font-weight: 750;
}

.task-record-summary h2 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ds-text);
    font-size: 16px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.task-record-summary p {
    margin: 0;
    color: #8a94a6;
    font-size: 12px;
}

.task-record-summary .badge {
    flex: 0 0 auto;
}

.task-record-progress,
.task-record-alert,
.task-record-success {
    min-width: 0;
    margin: 16px 0 0;
}

.task-record-progress {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f5f7ff;
}

.task-record-progress > div:first-child {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: 12px;
    color: #475467;
    font-size: 12px;
}

.task-record-progress > div:first-child span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-record-progress > div:first-child b {
    color: var(--ds-primary);
}

.task-record-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    color: #b42318;
    background: #fffbfa;
}

.task-record-alert > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
}

.task-record-alert > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.task-record-alert strong {
    font-size: 12px;
}

.task-record-alert span {
    color: #7a271a;
    font-size: 12px;
    line-height: 1.6;
}

.task-record-success {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #067647;
    font-size: 12px;
    font-weight: 650;
}

.task-record-success svg {
    width: 18px;
    height: 18px;
}

.task-result-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.task-result-grid > a {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: 10px;
    color: #344054;
    background: #fff;
    text-decoration: none;
}

.task-result-grid > a:hover,
.task-result-grid > a:focus-visible {
    border-color: #91a4e9;
    box-shadow: 0 0 0 3px rgba(49, 86, 217, .12);
    outline: 0;
}

.task-result-media {
    display: grid;
    min-width: 0;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    background: #f7f8fa;
}

.task-video-result {
    min-width: 0;
    border: 1px solid var(--ds-border);
    border-radius: 10px;
    overflow: hidden;
}

.task-video-result video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #141a27;
}

.task-result-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.task-result-media > svg {
    width: 28px;
    height: 28px;
    color: #98a2b3;
}

.task-result-caption {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
}

.task-result-caption small {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-result-caption em {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    color: var(--ds-primary);
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
}

.task-result-caption svg {
    width: 14px;
    height: 14px;
}

.task-record-footer {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf0f3;
}

.task-record-details {
    position: relative;
    min-width: 0;
}

.task-record-details > summary {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    color: var(--ds-text-secondary);
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 650;
}

.task-record-details > summary::marker {
    content: "";
}

.task-record-details > summary::-webkit-details-marker {
    display: none;
}

.task-record-details > summary svg {
    width: 15px;
    height: 15px;
    transition: transform .16s ease;
}

.task-record-details[open] > summary svg {
    transform: rotate(180deg);
}

.task-record-details dl {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    z-index: 12;
    display: grid;
    width: 220px;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--ds-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
}

.task-record-details dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.task-record-details dt,
.task-record-details dd {
    margin: 0;
    font-size: 12px;
}

.task-record-details dt {
    color: #7b8495;
}

.task-record-details dd {
    color: #344054;
    font-weight: 650;
}

.task-record-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.task-record-actions form {
    margin: 0;
}

.task-record-actions .button {
    min-height: 44px;
}

.pagination {
    margin-top: 18px;
}

@media (min-width: 768px) {
    .task-filter-drawer:not([open]) > .task-center-filters {
        display: grid;
    }
}

@media (max-width: 767px) {
    .task-page-intro {
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .task-page-intro p {
        max-width: 58%;
        font-size: 13px;
    }

    .task-page-intro .button {
        padding-inline: 12px;
        font-size: 12px;
    }

    .task-record-summary h2 {
        display: block;
        overflow: visible;
        overflow-wrap: anywhere;
        -webkit-line-clamp: unset;
    }

    .task-center-tabs {
        gap: 2px;
        padding: 3px;
    }

    .task-center-tabs a {
        min-height: 46px;
        gap: 3px;
        padding: 0 4px;
        flex-direction: column;
        font-size: 12px;
    }

    .task-center-tabs b {
        font-size: 12px;
        line-height: 1;
    }

    .task-filter-drawer > summary {
        display: flex;
    }

    .task-filter-drawer[open] > summary {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .task-center-filters {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
        border-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .task-filter-actions {
        justify-content: stretch;
    }

    .task-filter-actions .button {
        flex: 1;
        justify-content: center;
    }

    .task-empty-card {
        padding: 22px 14px;
    }

    .task-record-card {
        padding: 16px;
    }

    .task-record-summary {
        gap: 10px;
    }

    .task-record-summary h2 {
        font-size: 15px;
    }

    .task-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .task-result-caption {
        padding: 0 8px;
    }

    .task-record-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .task-record-details dl {
        position: static;
        width: 100%;
        margin-bottom: 8px;
        box-shadow: none;
    }

    .task-record-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-record-actions form,
    .task-record-actions .button {
        width: 100%;
    }

    .task-record-actions .button {
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .task-page-intro .button {
        min-width: 92px;
        padding: 0 10px;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .task-record-card {
        padding-inline: 12px;
    }

    .task-center-tabs a {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .task-filter-drawer > summary > svg:last-child,
    .task-record-details > summary svg {
        transition: none;
    }
}

.task-create-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }.task-record-card { scroll-margin-top:84px; }
@media(max-width:767px) { .task-page-intro { flex-direction:column; align-items:stretch; gap:14px; }.task-create-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; }.task-create-actions .button { justify-content:center; } }
