.knn-resource-submit {
    color: #333;
    font-size: 14px;
}

.knn-resource-submit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.knn-resource-submit-head h3 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.35;
}

.knn-resource-submit-head p {
    margin: 0;
    color: #8a94a6;
    font-size: 13px;
}

.knn-resource-submit-auth {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.knn-resource-submit-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.knn-resource-submit-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    color: #667085;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.knn-resource-submit-tabs button:hover {
    color: #3b82f6;
    background: #f5f8ff;
}

.knn-resource-submit-tabs button.is-active {
    color: #fff;
    background: #3b82f6;
}

.knn-resource-tab-count {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    color: #667085;
    background: #eef2f7;
    font-size: 11px;
    line-height: 18px;
}

.knn-resource-submit-tabs button.is-active .knn-resource-tab-count {
    color: #2563eb;
    background: #fff;
}

.knn-resource-submit-form,
.knn-resource-submit-list,
.knn-resource-submit-notice {
    padding: 20px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.knn-resource-submit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.knn-resource-form-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
}

.knn-resource-form-mode strong,
.knn-resource-form-mode span {
    display: block;
}

.knn-resource-form-mode strong {
    color: #344054;
    font-size: 16px;
}

.knn-resource-form-mode span {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 12px;
}

.knn-resource-edit-cancel,
.knn-resource-create-new,
.knn-resource-edit-button {
    border: 1px solid #dbe4f0;
    border-radius: 6px;
    color: #3b82f6;
    background: #fff;
    cursor: pointer;
}

.knn-resource-edit-cancel,
.knn-resource-create-new {
    padding: 8px 14px;
}

.knn-resource-edit-cancel:hover,
.knn-resource-create-new:hover,
.knn-resource-edit-button:hover {
    border-color: #3b82f6;
    background: #f5f8ff;
}

.knn-resource-submit label {
    display: block;
    min-width: 0;
}

.knn-resource-submit label span,
.knn-resource-submit-field > span {
    display: block;
    margin-bottom: 6px;
    color: #667085;
    font-size: 13px;
}

.knn-resource-submit input,
.knn-resource-submit textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 9px 11px;
    color: #333;
    background: #fff;
    outline: none;
}

.knn-resource-submit textarea {
    resize: vertical;
}

.knn-resource-cover-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.knn-resource-cover-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.knn-resource-cover-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 96px;
    overflow: hidden;
    border: 1px dashed #d8e2f0;
    border-radius: 8px;
    color: #98a2b3;
    background: #f8fafc;
    cursor: pointer;
}

.knn-resource-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.knn-resource-cover-open {
    height: 36px;
    border: 1px solid #409eff;
    border-radius: 6px;
    padding: 0 16px;
    color: #409eff;
    background: #fff;
    cursor: pointer;
}

.knn-resource-submit-full {
    margin-top: 14px;
}

.knn-resource-category-select {
    position: relative;
    max-width: 420px;
}

.knn-resource-category-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    padding: 6px 10px;
    color: #606266;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.knn-resource-category-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.knn-resource-category-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    max-height: 220px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #ebeef5;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.knn-resource-category-select.is-open .knn-resource-category-menu {
    display: block;
}

.knn-resource-category-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 5px;
    cursor: pointer;
}

.knn-resource-category-option:hover {
    background: #f5f7fa;
}

.knn-resource-category-option input {
    width: auto;
    padding: 0;
}

.knn-resource-category-option span,
.knn-resource-category-empty {
    margin: 0;
    color: #606266;
    font-size: 13px;
}

.knn-resource-category-empty {
    padding: 10px;
    text-align: center;
}

.knn-resource-submit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.knn-resource-submit-button {
    border: 0;
    border-radius: 6px;
    padding: 10px 28px;
    color: #fff;
    background: #3b82f6;
    cursor: pointer;
}

.knn-resource-submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.knn-resource-submit-msg {
    font-size: 13px;
}

.knn-resource-submit-msg.is-success {
    color: #16a34a;
}

.knn-resource-submit-msg.is-error {
    color: #ef4444;
}

.knn-resource-submit-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 2px;
    border-bottom: 1px solid #f0f2f5;
}

.knn-resource-submit-title strong,
.knn-resource-submit-title span {
    display: block;
}

.knn-resource-submit-title strong {
    color: #344054;
    font-size: 16px;
}

.knn-resource-submit-title span {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 400;
}

.knn-resource-create-new i,
.knn-resource-edit-button i {
    margin-right: 5px;
}

.knn-resource-submit-empty {
    color: #98a2b3;
    text-align: center;
    padding: 24px 0;
}

.knn-resource-submit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.knn-resource-submit-item:last-child {
    border-bottom: 0;
}

.knn-resource-submit-item img {
    width: 72px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f4f6;
    flex: 0 0 auto;
}

.knn-resource-submit-item-main {
    min-width: 0;
    flex: 1;
}

.knn-resource-submit-item-main strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.knn-resource-submit-item-main span {
    display: inline-flex;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    font-size: 12px;
}

.knn-resource-submit-item-price {
    color: #f43f5e;
    font-weight: 700;
    white-space: nowrap;
}

.knn-resource-edit-button {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 12px;
}

.knn-resource-submit-item-main .knn-resource-submit-status-1 {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
}

.knn-resource-submit-item-main .knn-resource-submit-status-0 {
    color: #667085;
    background: #eef2f7;
}

@media (max-width: 767px) {
    .knn-resource-submit-head,
    .knn-resource-submit-actions,
    .knn-resource-submit-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .knn-resource-submit-tabs button {
        flex: 1;
        padding: 0 10px;
    }

    .knn-resource-submit-grid {
        grid-template-columns: 1fr;
    }

    .knn-resource-cover-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .knn-resource-cover-preview,
    .knn-resource-category-select {
        width: 100%;
        max-width: none;
    }

    .knn-resource-submit-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .knn-resource-submit-item-main {
        min-width: calc(100% - 96px);
    }

    .knn-resource-submit-item-price {
        margin-left: 84px;
    }
}
