.feedback-attachment-editor {
    min-width: 0;
    padding: 0.65rem;
    border: 1px dashed #c8d7cb;
    border-radius: 12px;
    background: #f7faf7;
    color: #253c2c;
    font-size: 0.82rem;
}

.feedback-attachment-editor[hidden], .feedback-attachment-editor [hidden] {
    display: none !important;
}

.feedback-attachment-controls, .feedback-attachment-row, .feedback-attachment-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-attachment-controls {
    flex-wrap: wrap;
    justify-content: space-between;
}

.feedback-attachment-copy, .feedback-attachment-details {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.feedback-attachment-hint, .feedback-attachment-size {
    font-size: 0.74rem;
    color: #536458;
}

.feedback-attachment-list, .class-notes-content ul.feedback-attachment-list {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.feedback-attachment-list:empty {
    display: none;
}

.feedback-attachment-list .feedback-attachment-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: 1px solid #dce7de;
    border-radius: 9px;
    background: #fff;
    color: #253c2c;
    font-size: 0.8rem;
}

.feedback-attachment-row.is-removed {
    background: #f2f4f2;
}

.feedback-attachment-row.is-removed .feedback-attachment-name {
    text-decoration: line-through;
}

.feedback-attachment-details {
    flex: 1 1 7rem;
}

.feedback-attachment-list .feedback-attachment-row--draft {
    flex-wrap: nowrap;
}

.feedback-attachment-row--draft .feedback-attachment-details {
    flex-basis: 0;
}

.feedback-attachment-name {
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.feedback-attachment-type {
    flex: none;
    padding: 0.2rem 0.35rem;
    border-radius: 5px;
    background: #e6f0e8;
    color: #265537;
    font-size: 0.7rem;
    font-weight: 800;
}

.feedback-attachment-actions {
    flex-wrap: wrap;
    gap: 0.15rem 0.4rem;
}

.feedback-attachment-button, .feedback-attachment-remove, .feedback-attachment-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.22rem 0.4rem;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #1b5a35;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.feedback-attachment-button {
    min-height: 38px;
    padding-inline: 0.65rem;
    border-color: #afc9b6;
    background: #e8f3ea;
}

.feedback-attachment-remove {
    color: #79423a;
}

.feedback-attachment-button:disabled, .feedback-attachment-remove:disabled {
    opacity: 0.55;
    cursor: default;
}

.feedback-attachment-button:not(:disabled):hover, .feedback-attachment-link:hover, .feedback-attachment-remove:not(:disabled):hover {
    background: #e3efe5;
    text-decoration: underline;
}

.feedback-attachment-button:focus-visible, .feedback-attachment-link:focus-visible, .feedback-attachment-remove:focus-visible {
    outline: 2px solid #237347;
    outline-offset: 2px;
}

.feedback-attachment-progress {
    width: 100%;
    height: 0.42rem;
    accent-color: #2f8050;
}

.feedback-attachment-editor .feedback-attachment-status {
    margin: 0.35rem 0 0;
    color: #962f26;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}
