.bugreport-textarea {
    width: 100%;
    resize: vertical;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.bugreport-files-section {
    margin-top: var(--space-5);
    border-top: 1px solid var(--border);
    padding-top: var(--space-5);
}

.bugreport-files-label {
    margin: 0 0 var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
}

.bugreport-files-hint {
    margin: 0 0 var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-xs);
    line-height: 1.5;
}

.bugreport-source-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.bugreport-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 0;
    background: none;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.bugreport-tab:hover { color: var(--text-primary); }
.bugreport-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.bugreport-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-7) var(--space-5);
    border: 2px dashed var(--border-mid);
    border-radius: var(--radius);
    background: var(--bg);
    text-align: center;
    transition: border-color .15s, background .15s;
    cursor: default;
}

.bugreport-drop.is-over {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.bugreport-drop__icon {
    font-size: 2rem;
    color: var(--text-muted);
}

.bugreport-drop__label {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.bugreport-drop__sub {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.bugreport-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.bugreport-link:hover { opacity: .8; }

.bugreport-upload-status {
    margin: var(--space-3) 0 0;
    color: var(--text-muted);
    font-size: var(--text-xs);
    line-height: 1.5;
}

.bugreport-device-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.bugreport-device-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.55;
}

.bugreport-device-list { display: flex; flex-direction: column; gap: var(--space-3); }

.bugreport-device-list__label {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
}

.bugreport-device-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.bugreport-device-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-surface);
    cursor: pointer;
    transition: border-color .15s;
}

.bugreport-device-item:hover { border-color: var(--accent-dim); }
.bugreport-device-item input[type="checkbox"] { flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }

.bugreport-device-item__name {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.bugreport-device-item__meta {
    margin-left: auto;
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.bugreport-queue {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--accent-dim);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}

.bugreport-queue__label {
    margin: 0 0 var(--space-3);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
}

.bugreport-queue-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.bugreport-queue-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    font-size: var(--text-xs);
}

.bugreport-queue-item__name {
    font-family: var(--font-mono);
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bugreport-queue-item__type {
    color: var(--text-muted);
    flex: 0 0 auto;
}

.bugreport-queue-item__size {
    color: var(--text-muted);
    flex: 0 0 auto;
}

.bugreport-queue-item__remove {
    background: none;
    border: none;
    padding: 0 var(--space-1);
    color: var(--text-muted);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: color .15s;
    line-height: 1;
    flex: 0 0 auto;
}

.bugreport-queue-item__remove:hover { color: #e05252; }

.bugreport-result {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

@media (max-width: 560px) {
    .bugreport-drop {
        padding: var(--space-5) var(--space-4);
    }
}
