.container {
    background: #f6f8fb;
    border-radius: 10px;
    padding: 14px 16px 16px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.createButton {
    background: linear-gradient(98deg, #12d49c 0%, #0ec9c9 100%);
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    height: 34px;
    box-shadow: 0 6px 14px rgba(18, 212, 156, 0.25);

    &:hover,
    &:focus {
        background: linear-gradient(98deg, #0fcf94 0%, #0cbcbc 100%);
    }
}

.filters {
    display: flex;
    align-items: center;
    gap: 24px;
}

.filterGroup {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 13px;
}

.filterLabel {
    color: #888;
    min-width: 64px;
    text-align: right;
}

.statusGroup {
    :global(.ant-checkbox-wrapper) {
        margin-right: 10px;
    }

    :global(.ant-checkbox-inner) {
        border-radius: 4px;
    }
}

.creatorSelect {
    width: 120px;

    :global(.ant-select-selector) {
        border-radius: 6px !important;
        height: 34px;
        box-shadow: none !important;
    }
}

.grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}

.card {
    position: relative;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 214px;
    overflow: hidden;
}

.ribbon {
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
    font-size: 12px;
    padding: 8px 14px;
    transform: translate(26px, -6px) rotate(45deg);
    width: 92px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.cardBody {
    padding: 16px 16px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.titleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.metaRow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    color: #666;
    font-size: 13px;

    &:last-of-type {
        grid-template-columns: 1fr;
    }
}

.emphasis {
    color: #333;
    font-weight: 600;
    margin-left: 6px;
}

.muted {
    color: #999;
    margin-left: 6px;
}

.files {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 8px;
}

.fileChip {
    background: #f6f8fb;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4a5560;
    font-size: 12px;
}

.actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    border-top: 1px solid #f0f2f5;
    background: #fbfbfb;
}

.actions :global(.ant-btn) {
    border: none;
    height: 44px;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
}

.view {
    color: #14b981;
}

.copy {
    color: #3e7aff;
}

.archive {
    color: #999;
}
