/* ==========================================================================
   oc-scrum-attachments.css — the attachments panel on a Scrum Board card
   (phase 2 attachments stream, 2026-08-09). Extends oc-scrum-board.css's
   ocsb- family; loaded from the attachments seam line in index.html.

   HOUSE RULE: --oc-* tokens only, no raw color values — a raw hex does not
   flip for dark mode. oc-theme.css is the only file allowed to hold colors.
   ========================================================================== */

.ocsb-attach {
    margin-top: 1rem;
    border-top: 1px solid var(--oc-border);
    padding-top: .75rem;
}

.ocsb-attach-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .375rem;
}

.ocsb-attach-title {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    margin: 0;
}

/* The upload control has to be a <label> wrapping a hidden InputFile — a <button>
   cannot open a file dialog by association, so this is the one control in the
   board UI that OcButton genuinely cannot replace (Wave 3 "designsystem"). It
   therefore carries the secondary-button look itself, matched to OcButton's
   metrics so it sits level with real buttons beside it. */
.ocsb-attach-upload {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    margin: 0;
    padding: .375rem .75rem;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-md);
    background: var(--oc-surface);
    color: var(--oc-text);
    font-size: var(--oc-fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--oc-dur-fast) var(--oc-ease);
}

.ocsb-attach-upload:hover { background: var(--oc-gray-50); }

.ocsb-attach-upload:focus-within {
    outline: none;
    box-shadow: var(--oc-shadow-focus);
}

.ocsb-attach-upload input[type="file"] {
    display: none;
}

.ocsb-attach-upload.is-busy {
    opacity: .65;
    pointer-events: none;
}

.ocsb-attach-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ocsb-attach-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem 0;
    border-bottom: 1px solid var(--oc-border);
}

.ocsb-attach-row:last-child {
    border-bottom: none;
}

.ocsb-attach-icon {
    color: var(--oc-text-muted);
    flex: none;
}

.ocsb-attach-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.ocsb-attach-name {
    font-size: var(--oc-fs-sm);
    color: var(--oc-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ocsb-attach-actions {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    flex: none;
}

.ocsb-attach-remove:hover {
    color: var(--oc-danger);
}
