/* ---------- Шаг 4: модалка «Новый товар» (макет 2e) ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center;
         justify-content: center; padding: 24px; background: rgba(0,0,0,.62);
         backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal-card { width: 460px; max-width: 100%; background: var(--surface); border-radius: 20px;
              padding: 26px 26px 22px; box-shadow: var(--sh-modal); }
.modal-title { font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 20px; }
.flabel { display: block; font-size: 12px; color: var(--muted); margin: 0 0 7px; }
.fcontrol { width: 100%; padding: 12px 16px; border: 1px solid var(--line-strong);
            border-radius: 14px; background: var(--card); color: var(--text);
            font: inherit; font-size: 14px; margin-bottom: 16px; }
.fcontrol::placeholder { color: var(--muted-2); }
.fcontrol:focus, .chipsfield:focus-within { outline: none; border-color: var(--accent);
                  box-shadow: 0 0 0 3px var(--accent-soft); }
/* Нативный список открывается системным окном — на тёмной теме он берёт
   цвета отсюда, иначе строки остаются светлыми. */
select.fcontrol option { background: var(--surface); color: var(--text); }
textarea.fcontrol { resize: vertical; }
.chipsfield { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
              min-height: 50px; padding: 9px 12px; }
.chips-inline { display: contents; }
.chipsfield .ac input { border: none; padding: 6px 4px; font-size: 13px; background: none;
                        width: 100%; color: var(--text); }
.chipsfield .ac input:focus { outline: none; box-shadow: none; }
#np-interval { width: fit-content; margin-bottom: 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions button { border-radius: 14px; padding: 12px 22px; font-size: 14px; }
.modal-actions .primary { padding: 12px 26px; }

/* Пароль с кнопкой «показать» */
.passfield { display: flex; align-items: center; gap: 10px; padding: 0 16px;
             border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); }
.passfield:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.passfield input { flex: 1; border: none; padding: 13px 0; background: none; color: var(--text); }
.passfield input:focus { outline: none; box-shadow: none; }
.passfield button { border: none; background: none; box-shadow: none; color: var(--muted);
                    font-size: 12px; padding: 6px 0; width: auto; margin: 0; }
.passfield button:hover { color: var(--text); background: none; }


/* Предупреждение о протухшем ключе кабинета */
.notice { background: var(--st-warn-bg); color: var(--st-warn-fg); border-radius: var(--r-block);
          padding: 14px 18px; margin-bottom: 14px; font-size: 13px; font-weight: 500; }
.setsub.bad { color: var(--up); }


/* Токен подключения расширения */
.tokenbox { margin-top: 10px; padding: 12px 14px; background: var(--card);
            border-radius: 14px; border: 1px solid var(--line); }
.tokenval { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
            word-break: break-all; margin-bottom: 6px; }


