.nfs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.nfs-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nfs-tab {
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease);
}

.nfs-tab:hover,
.nfs-tab:focus-visible {
    border-color: var(--tool-accent);
}

.nfs-tab.is-active {
    border-color: var(--tool-accent);
    background: rgba(97, 208, 148, 0.12);
}

.nfs-panel[hidden] {
    display: none !important;
}

.nfs-conn {
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.92rem;
}

.nfs-conn.is-idle { color: var(--muted); }
.nfs-conn.is-pending { border-color: rgba(255, 193, 7, 0.45); color: #e6c200; }
.nfs-conn.is-connected { border-color: rgba(97, 208, 148, 0.5); color: var(--tool-accent); }
.nfs-conn.is-error { border-color: rgba(255, 99, 99, 0.5); color: #ff8a8a; }
.nfs-conn.is-transfer { border-color: rgba(97, 208, 148, 0.35); color: var(--text); }

.nfs-dropzone {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 120px;
    padding: 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    transition: border-color var(--ease), background var(--ease);
    cursor: pointer;
}

.nfs-dropzone.is-hover,
.nfs-dropzone:focus-visible {
    border-color: var(--tool-accent);
    background: rgba(97, 208, 148, 0.06);
}

.nfs-drop-title {
    margin: 0;
    font-weight: 600;
}

.nfs-drop-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.nfs-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.nfs-file-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}

.nfs-file-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.nfs-file-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nfs-file-sub {
    font-size: 0.85rem;
    color: var(--muted);
}

.nfs-file-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nfs-step-title {
    margin: 20px 0 8px;
    font-size: 1rem;
}

.nfs-sdp {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.82rem;
    line-height: 1.45;
}

.nfs-qr-wrap {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.nfs-qr {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.nfs-progress-block {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.nfs-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.nfs-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--tool-accent), var(--tool-accent-2, #61d094));
    transition: width 0.2s ease;
}

.nfs-per-file {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.nfs-per-item label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nfs-limit-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 8px;
}

[data-theme="light"] .nfs-dropzone {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .nfs-file-item {
    background: rgba(0, 0, 0, 0.02);
}
