/* Окно «Добавить валюту» (public/features/currency-add.js) — отдельный файл:
   style.css уже в бюджете размера (scripts/check-file-size.js). Окно лежит
   выше шторки траты (z-index 50), потому что открывается и из неё. */
.currency-add-overlay{z-index:60}
.currency-add-sheet{display:flex;flex-direction:column;gap:10px;max-height:min(84vh,760px)}
.currency-add-sheet .sheet-head{padding-bottom:6px}
.currency-add-sheet .sheet-head h3{margin:0}
.currency-add-search{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:500 .9rem Manrope,ui-sans-serif,system-ui,sans-serif;outline:none}
.currency-add-search:focus{border-color:var(--accent)}
.currency-add-list{display:flex;flex-direction:column;gap:6px;max-height:46vh;overflow-y:auto;overscroll-behavior:contain}
.currency-add-row{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--tap-bg);color:var(--ink);font:500 .82rem Manrope,ui-sans-serif,system-ui,sans-serif;text-align:left}
.currency-add-row:not(:disabled):hover,.currency-add-row:not(:disabled):focus-visible{background:var(--tap-bg-hover);outline:none;border-color:var(--accent)}
.currency-add-row:disabled{cursor:default;background:transparent;opacity:.6}
.currency-add-code{flex:0 0 3.4em;font:600 .8rem 'DM Mono','Manrope',ui-sans-serif,system-ui,sans-serif}
.currency-add-name{flex:1;min-width:0;overflow-wrap:anywhere}
.currency-add-mark{flex:0 0 auto;color:var(--muted);font:12px 'DM Mono','Manrope',ui-sans-serif,system-ui,sans-serif;white-space:nowrap}
.currency-add-row.is-included .currency-add-mark{color:var(--accent)}
.currency-add-status{min-height:1.1em;margin:0;color:var(--muted);font-size:.78rem}
.currency-add-rate{display:grid;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.38)}
.currency-add-rate[hidden]{display:none}
.currency-add-rate-hint{margin:0;padding-left:12px;border-left:2px solid var(--accent);font-size:.75rem;line-height:1.4;color:var(--muted)}
.currency-add-rate label{display:grid;gap:6px;margin:0;color:var(--muted);font-size:.72rem}
.currency-add-rate input{width:100%;padding:10px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:500 .95rem 'DM Mono','Manrope',ui-sans-serif,system-ui,sans-serif;outline:none}
.currency-add-rate input:focus{border-color:var(--accent)}
.currency-add-rate-submit{justify-self:start}
#add-currency{justify-self:start;margin:4px 0 8px}
/* Пометка «вручную · кто задал» длиннее прежнего «вручную»: на 320–375 строка
   курса переносится, а не уезжает за левый край. */
.rate-row .rate-controls{flex-wrap:wrap;max-width:100%;min-width:0}
.rate-row .rate-manual-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis}
/* Пометка ручного курса у пересчёта («Обзор», «Что изменится») и подсказка
   под ручными курсами в «Параметрах»: курс траты фиксируется при записи. */
.manual-rate-note{margin:4px 0 10px;padding-left:10px;border-left:2px solid var(--accent);color:var(--muted);font-size:.74rem;line-height:1.35;overflow-wrap:anywhere}
.manual-rate-note[hidden]{display:none}
.rate-rows-hint{margin:2px 0 8px;color:var(--muted);font-size:.72rem;line-height:1.35}
