.categories-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem;
}

.categories-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.categories-hero h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.categories-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-create-form {
    background: var(--surface, #1e1e2e);
    border: 1px solid var(--border, #2e2e3e);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.category-create-fields {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.category-color-input {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border, #2e2e3e);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
}

.category-name-input {
    flex: 1;
    background: var(--input-bg, #13131f);
    border: 1px solid var(--border, #2e2e3e);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    color: var(--text, #e2e8f0);
    font-size: 1rem;
    min-width: 0;
}

.category-create-btn {
    background: var(--accent, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface, #1e1e2e);
    border: 1px solid var(--border, #2e2e3e);
    border-radius: 12px;
    overflow: hidden;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border, #2e2e3e);
}

.category-item:last-child {
    border-bottom: none;
}

.category-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text, #e2e8f0);
}

.category-delete-form {
    display: inline;
}

.category-delete-btn {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    cursor: pointer;
    min-height: 32px;
}

.categories-empty {
    padding: 1rem;
    color: var(--text-muted, #9a9ab0);
    font-size: 0.875rem;
    text-align: center;
}
