/* 34-icons.css — category / item icons (ui/cat-icon.js): Font Awesome glyph in a soft rounded square, like the drawer tiles. */
.cat-tile {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    inline-size: 32px; block-size: 32px; border-radius: var(--radius-md);
    background: var(--c-primary-soft); color: var(--c-text-muted); font-size: .85rem; line-height: 1;
}
.cat-tile--sm { inline-size: 24px; block-size: 24px; border-radius: var(--radius-sm); font-size: .7rem; }
.cat-tile--lg { inline-size: 44px; block-size: 44px; font-size: 1.15rem; }
/* Rows that carry a small tile before the name. */
.m-cat-row .n, .alc-row__name { display: inline-flex; align-items: center; gap: 8px; }

/* A bare <i> that replaced an emoji inside a heading, chip or message keeps the text colour and a small gap. */
.ico { margin-inline-end: .4em; color: var(--c-text-muted); }

/* Phones: a page with a floating «+» scrolls its last content clear of it (bar 82 + FAB 56 + gap 16 + safe area). */
@media (max-width: 768px) {
    .main-content > .view.active:has(.page-fab) { padding-block-end: calc(154px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ─── Spending categories in Settings (features/budget/categories.js) ─── */
.bw__meta { font-size: .72rem; font-weight: 700; color: var(--text-muted); line-height: 1.3; font-variant-numeric: tabular-nums; }
.bw__meta:empty { display: none; }
.bcat {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 12px 6px 4px; min-height: 60px; background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
}
.bcat:last-child { border-bottom: none; }
.bcat .cat-tile { inline-size: 36px; block-size: 36px; font-size: .9rem; }
.bcat--need .cat-tile   { background: var(--c-danger-soft);  color: var(--danger-text); }
.bcat--want .cat-tile   { background: var(--c-warning-soft); color: var(--warning-text); }
.bcat--saving .cat-tile { background: var(--c-primary-soft); color: var(--accent-text); }
.bcat__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bcat__name { font-size: .9rem; font-weight: 700; color: var(--text-main); line-height: 1.35; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcat__sub { font-size: .7rem; font-weight: 600; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcat__amt { font-size: .92rem; font-weight: 800; color: var(--text-main); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bcat__amt small { font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.bcat__amt--none { font-size: .72rem; font-weight: 600; color: var(--text-faint); }
.bcat__actions { display: flex; align-items: center; gap: 0; }
.bcat .bcat__btn { inline-size: 44px; block-size: 44px; min-width: 44px; min-height: 44px; padding: 0; margin: 0;
    display: inline-flex; align-items: center; justify-content: center; color: var(--text-faint); font-size: .82rem; border-radius: 50%; }
.bcat .bcat__btn--del:active { color: var(--c-danger); }
.bcat .bcat__btn:not(.bcat__btn--del):active { color: var(--c-primary); }
@media (hover: hover) and (pointer: fine) { .bcat .bcat__btn--del:hover { color: var(--c-danger); background: var(--c-danger-soft); } }

.bcat-suggest:empty { display: none; }
.bcat-suggest {
    border: 1px dashed var(--c-border); border-radius: 14px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 10px;
}
.bcat-suggest__head { font-size: .8rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.bcat-suggest__head i { color: var(--c-primary); }
.bcat-suggest__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bcat-chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap, 44px);
    padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c-border);
    background: var(--c-surface); color: var(--text-main); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
}
.bcat-chip > i:first-child { color: var(--text-muted); }
.bcat-chip__plus { font-size: .65rem; color: var(--c-primary); }
.bcat-chip:active { transform: scale(.96); }
