/* ---- Portfolio Tags ---- */

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
    cursor: pointer;
    min-height: 1.5rem;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.6875rem;
    line-height: 1;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--fg);
    white-space: nowrap;
}

.portfolio-tags-add {
    display: inline-block;
    font-size: 0.6875rem;
    line-height: 1;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    border: 1px dashed var(--border);
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
}

.portfolio-tags-add:hover {
    border-color: var(--muted);
    color: var(--fg);
}

/* ---- Portfolio Notes Preview ---- */

.portfolio-notes-preview {
    font-size: 0.8125rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    min-height: 1.25rem;
    padding: 0.125rem 0;
}

.portfolio-notes-preview:hover {
    color: var(--fg);
}

.portfolio-notes-placeholder {
    font-style: italic;
    opacity: 0.6;
}

/* ---- Tag Editor ---- */

.tag-editor {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.tag-editor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tag-editor-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    line-height: 1;
    padding: 0.1875rem 0.375rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--fg);
}

.tag-editor-chip-remove {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1;
    padding: 0;
    font-family: var(--font);
}

.tag-editor-chip-remove:hover {
    color: var(--fg);
}

.tag-editor-input {
    font-family: var(--font);
    font-size: 0.8125rem;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--fg);
    width: 100%;
}

.tag-editor-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag-editor-preset {
    font-family: var(--font);
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
    border: 1px dashed var(--border);
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.tag-editor-preset:hover {
    border-color: var(--muted);
    color: var(--fg);
}

.tag-editor-actions {
    display: flex;
    justify-content: flex-end;
}

.tag-editor-done {
    font-family: var(--font);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg);
    cursor: pointer;
}

.tag-editor-done:hover {
    background: var(--hover-overlay);
}

/* ---- Notes Editor ---- */

.notes-editor {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.notes-editor-textarea {
    font-family: var(--font);
    font-size: 0.8125rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--fg);
    resize: vertical;
    width: 100%;
    min-height: 4rem;
    line-height: 1.4;
}

.notes-editor-actions {
    display: flex;
    gap: 0.375rem;
    justify-content: flex-end;
}

.notes-editor-save,
.notes-editor-cancel {
    font-family: var(--font);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg);
    cursor: pointer;
}

.notes-editor-save {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
}
