.mt-field-edit {
    display: flex;
    gap: 8px;
    min-width: 0;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}
.mt-field-edit .tool-select {
    width: 116px;
    flex: 0 0 116px;
    margin: 0 !important;
}
.mt-field-edit .tool-input {
    min-width: 0;
    flex: 1;
    margin: 0 !important;
}
.mt-field-edit input:disabled {
    opacity: 0.55;
}
.mt-clear-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 8px;
    font-weight: 600;
}
.mt-files {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.mt-file-row {
    padding: 16px;
    border: 1px solid var(--site-border, #dce4f0);
    border-radius: 12px;
    background: var(--site-panel, #fff);
    min-width: 0;
}
.mt-file-header {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.mt-file-header strong {
    overflow-wrap: anywhere;
}
.mt-file-header span {
    font-size: 0.9rem;
    color: var(--site-muted, #667085);
}
.mt-original-cover {
    max-width: 180px;
    max-height: 180px;
    display: block;
    object-fit: contain;
    margin: 12px 0;
    border-radius: 8px;
}
.mt-tag-list {
    display: grid;
    grid-template-columns: minmax(80px, 150px) minmax(0, 1fr);
    gap: 6px 14px;
    margin: 12px 0;
    font-size: 0.93rem;
}
.mt-tag-list dt {
    font-weight: 600;
    overflow-wrap: anywhere;
}
.mt-tag-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.mt-small-button {
    padding: 10px 16px;
    min-height: 46px;
    border: 1px solid var(--site-border, #dce4f0);
    border-radius: 8px;
    background: var(--site-panel, #fff);
    color: inherit;
}
.mt-small-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#mt-settings[hidden],
#mt-cover-upload[hidden],
#mt-cover-preview[hidden],
#mt-cancel[hidden],
#mt-download-all[hidden],
#mt-progress-wrap[hidden] {
    display: none !important;
}
.mt-field-edit .tool-select,
#mt-cover-mode {
    appearance: none;
    -webkit-appearance: none;
    min-height: 46px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
@media (max-width: 540px) {
    .mt-field-edit .tool-select {
        width: 112px;
        flex-basis: 112px;
    }
    .mt-file-header {
        display: block;
    }
    .mt-file-header span {
        display: block;
        margin-top: 4px;
    }
    .mt-tag-list {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}
.tool-page-wrap:has(#mt-detected-tags) .tool-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
    .tool-page-wrap:has(#mt-detected-tags) .tool-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .tool-page-wrap:has(#mt-detected-tags) .tool-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
