.ftree {
    padding: 4px 0 8px;
}

.ftree-empty,
.ftree-loading,
.pinfo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    gap: 6px;
}

.pinfo-card {
    padding: 12px;
}

.pinfo-cover {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
}

.pinfo-cover-drop {
    width: 128px;
    height: 128px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s, outline-color 0.15s;
    flex-shrink: 0;
    overflow: hidden;
    outline: 2px dashed transparent;
    outline-offset: 2px;
}

.pinfo-cover-drop--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1.5px dashed rgba(107,114,128,0.45);
}

.pinfo-cover-drop--empty:hover {
    border-color: var(--accent-border-strong);
    background: rgba(var(--accent-rgb), 0.04);
}

.pinfo-cover-hint {
    font-size: 10px;
    color: #6b7280;
    pointer-events: none;
}


.pinfo-cover-drop:not(.pinfo-cover-drop--empty):hover {
    box-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

.pinfo-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    pointer-events: none;
}

.pinfo-name {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.3;
}

.pinfo-desc {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    line-height: 1.5;
}

.pinfo-slug {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.pinfo-stats {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.pinfo-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9ca3af;
}

.pinfo-stat i {
    color: #6b7280;
    flex-shrink: 0;
}

.pinfo-section-label {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 12px;
    margin-bottom: 4px;
}

.pinfo-key-widget {
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.pinfo-key-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.pinfo-key-label {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex: 1;
}

.pinfo-key-privacy {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #6b7280;
    background: none;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.pinfo-key-privacy:hover {
    background: rgba(255,255,255,0.07);
    color: #e5e7eb;
}

.pinfo-key-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.pinfo-company-projects {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pinfo-company-project {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 12px;
    color: #d4d8e0;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.pinfo-company-project:hover {
    background: var(--accent-subtle);
    color: var(--accent);
}

.pinfo-company-project i {
    color: rgba(var(--accent-rgb), 0.6);
    flex-shrink: 0;
}

.pinfo-company-project span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ftree-node {
    position: relative;
}

.ftree-node--collapsed > .ftree-children {
    display: none;
}

.ftree-node--collapsed .ftree-toggle i {
    transform: rotate(0deg);
}

.ftree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 2px;
    border-radius: 9px;
    cursor: default;
    transition: background 0.14s, outline-color 0.14s, box-shadow 0.14s;
    position: relative;
}

.ftree-row:hover {
    background: rgba(255,255,255,0.07);
    outline: 1px solid rgba(var(--accent-rgb), 0.22);
    outline-offset: -1px;
}

.ftree-node--active > .ftree-row {
    background: rgba(var(--accent-rgb), 0.12);
    outline: 1px solid rgba(var(--accent-rgb), 0.38);
    outline-offset: -1px;
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.07);
}

.ftree-node--active > .ftree-row .ftree-icon {
    color: var(--accent);
}

.ftree-node--active > .ftree-row .ftree-name {
    color: var(--accent);
    font-weight: 600;
}

.ftree-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: color 0.12s;
}

.ftree-toggle i {
    transform: rotate(90deg);
    transition: transform 0.15s;
}

.ftree-toggle:hover {
    color: #e5e7eb;
}

.ftree-toggle-spacer {
    width: 16px;
    flex-shrink: 0;
}

.ftree-icon {
    color: var(--accent-muted);
    flex-shrink: 0;
}

.ftree-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #d4d8e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    letter-spacing: 0.015em;
}

.ftree-name:hover {
    color: #ffffff;
}

.ftree-count {
    font-size: 11.5px;
    font-weight: 700;
    color: #6b7280;
    background: rgba(255,255,255,0.06);
    border-radius: 5px;
    padding: 1px 5px;
    margin-left: 2px;
    flex-shrink: 0;
    min-width: 18px;
    text-align: center;
}

.ftree-node--active > .ftree-row .ftree-count {
    color: rgba(var(--accent-rgb), 0.7);
    background: rgba(var(--accent-rgb), 0.1);
}

.ftree-actions {
    display: none;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.ftree-row:hover .ftree-actions {
    display: flex;
}

.ftree-action-btn {
    background: none;
    border: none;
    padding: 3px;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.ftree-action-btn:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.ftree-action-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.ftree-node--trash .ftree-icon {
    color: rgba(239, 68, 68, 0.45);
}

.ftree-node--trash.ftree-node--active > .ftree-row .ftree-icon {
    color: #ef4444;
}

.ftree-node--trash.ftree-node--active > .ftree-row .ftree-name {
    color: #ef4444;
}

.ftree-node--trash.ftree-node--active > .ftree-row {
    background: rgba(239, 68, 68, 0.08);
    outline-color: rgba(239, 68, 68, 0.25);
}

.ftree-row.dragging-folder {
    opacity: 0.4;
}

.ftree-row.drop-highlight {
    outline: 1px dashed var(--accent);
    outline-offset: -1px;
    background: var(--accent-subtle);
}

.ftree-children {
    position: relative;
}

.ftree-children::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.1);
}
