/* ═══════════════════════════════════════════════════════════════════
 * modals.css — все модалки + оверлеи (login, feedback, users, error, lightbox, help-tip, toasts)
 * ═══════════════════════════════════════════════════════════════════
 * Сгенерировано: scripts/arch3_4_split_css.py
 * Источник: frontend/index.html (3 <style> блока)
 * ═══════════════════════════════════════════════════════════════════
 */

.lb-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.93); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}

.lb-overlay.active { display: flex; }

.lb-img { max-width: 88vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); }

.lb-close {
  position: fixed; top: 16px; right: 20px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.4em; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}

.lb-close:hover { background: rgba(255,255,255,0.25); }

.lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 2em; cursor: pointer;
  width: 52px; height: 80px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}

.lb-btn:hover { background: rgba(255,255,255,0.22); }

.lb-prev { left: 16px; }

.lb-next { right: 16px; }

.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.65); font-size: 0.88em; letter-spacing: 0.05em;
}

.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 11px 16px; border-radius: var(--r2);
  font-size: 0.83em; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: var(--shadow3);
  border: 1px solid var(--border2);
  background: var(--bg2); color: var(--fg0);
  max-width: 320px; line-height: 1.4;
  pointer-events: none;
}

.toast::before {
  content: '';
  width: 3px; min-width: 3px; height: 100%;
  position: absolute; left: 0; top: 0;
  border-radius: var(--r2) 0 0 var(--r2);
  background: var(--border2);
}

.toast.success { background: rgba(0,217,126,0.06); border-color: var(--green-border); }

.toast.success::before { background: var(--green); }

.toast.error   { background: rgba(255,71,87,0.06);  border-color: var(--red-border); }

.toast.error::before   { background: var(--red); }

.toast.info    { background: #ff6a2f0f; border-color: #ff6a2f40; }

.toast.info::before    { background: var(--acc); }

.toast.hiding  { opacity: 0; transform: translateY(6px); }

.toast-icon { font-style: normal; font-size: 0.95em; flex-shrink: 0; }

.cmd-chip {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--r1); padding: 4px 10px; font-size: 0.73em;
  font-family: var(--mono); color: var(--acc);
}

.cmd-chip span { color: var(--fg2); font-family: var(--mono); margin-left: 4px; }

#cal-lot-popup { display:none; position:fixed; z-index:500; background:var(--bg1); border:1px solid var(--border); border-radius:var(--r2); padding:16px; min-width:240px; max-width:300px; box-shadow:0 8px 32px rgba(0,0,0,0.45); pointer-events:auto; }

#cal-lot-popup .cal-pop-photo { width:100%; height:110px; object-fit:cover; border-radius:6px; margin-bottom:10px; background:var(--bg2); }

#cal-lot-popup .cal-pop-title { font-weight:700; font-size:0.9em; margin-bottom:6px; }

#cal-lot-popup .cal-pop-row { display:flex; justify-content:space-between; font-size:0.8em; color:var(--fg1); margin-bottom:3px; }

#cal-lot-popup .cal-pop-row b { color:var(--fg0); }

#cal-lot-popup .cal-pop-btn { display:block; width:100%; margin-top:10px; padding:8px; background:var(--acc); color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:0.85em; font-weight:600; text-align:center; }

.help-tip { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:var(--bg2); border:1px solid var(--border); color:var(--fg2); font-size:11px; font-weight:700; cursor:help; padding:0; font-family:inherit; transition:all 0.12s; flex-shrink:0; vertical-align:middle; }

.help-tip:hover { color:var(--acc); border-color:var(--acc); background:var(--acc-soft); }

.help-tip__pop { position:fixed; z-index:1000; max-width:320px; padding:12px 14px; background:var(--bg2); border:1px solid var(--border2); border-radius:var(--r2); box-shadow:var(--shadow3); font-size:12px; line-height:1.55; color:var(--fg1); pointer-events:none; opacity:0; transform:translateY(-4px); transition:opacity 0.15s, transform 0.15s; }

.help-tip__pop.open { opacity:1; transform:translateY(0); pointer-events:auto; }

.help-tip__pop b { color:var(--fg0); display:block; margin-bottom:4px; font-weight:700; }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 8, 13, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: overlayIn 0.18s ease;
}

.modal-box {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  width: 100%; max-height: 90vh; overflow-y: auto;
  animation: modalSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 96px rgba(0,0,0,0.6), 0 0 0 1px var(--acc-soft);
}

.modal-box.sm { max-width: 400px; }

.modal-box.md { max-width: 520px; }

.modal-box.lg { max-width: 640px; }

.modal-inner { padding: 28px 32px; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.05em; font-weight: 700; color: var(--fg0);
  display: flex; align-items: center; gap: 10px;
}

.modal-title-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--acc-soft); border: 1px solid #ff6a2f33;
  display: flex; align-items: center; justify-content: center; font-size: 0.95em;
}

.modal-close {
  width: 30px; height: 30px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 7px; color: var(--fg2);
  cursor: pointer; font-size: 0.9em;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; line-height: 1;
}

.modal-close:hover { background: var(--bg3); color: var(--fg0); border-color: var(--border2); }

.modal-subtitle { font-size: 0.83em; color: var(--fg2); margin-bottom: 18px; line-height: 1.5; }

.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-btn {
  padding: 8px 20px; border-radius: 8px;
  font-size: 0.88em; font-family: inherit; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--bg2); color: var(--fg1);
  transition: all 0.15s;
}

.modal-btn:hover { background: var(--bg3); color: var(--fg0); }

.modal-btn.primary {
  background: var(--acc); color: #fff;
  border-color: transparent; font-weight: 600;
}

.modal-btn.primary:hover { opacity: 0.88; }

.modal-btn.danger { background: rgba(239,68,68,0.1); color: #ef4444; border-color: rgba(239,68,68,0.2); }

.modal-btn.danger:hover { background: rgba(239,68,68,0.2); }

.modal-form-row { margin-bottom: 14px; }

.modal-form-row label {
  display: block; font-size: 0.77em; font-weight: 600;
  color: var(--fg2); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.modal-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--fg0);
  padding: 9px 12px; font-size: 16px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }

.modal-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.modal-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

.modal-section-label {
  font-size: 0.77em; font-weight: 700; color: var(--fg2);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px;
}

.modal-error { color: #f87171; font-size: 0.82em; min-height: 18px; margin-top: 6px; }

.modal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.modal-chip {
  padding: 4px 10px; border-radius: 20px; font-size: 0.79em; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg2); color: var(--fg1);
  transition: all 0.12s; user-select: none;
}

.modal-chip.selected { background: var(--acc-soft); color: var(--acc); border-color: var(--acc); }

.quick-search { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }

.quick-search__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }

.quick-search__panel { position: relative; width: min(620px, 92vw); background: var(--bg1); border: 1px solid var(--border2); border-radius: var(--r3); box-shadow: 0 32px 96px rgba(0,0,0,0.6); padding: 14px; }

.quick-search__input { width: 100%; padding: 12px 14px; font-size: 16px; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--r2); color: var(--fg0); outline: none; box-sizing: border-box; }

.quick-search__input:focus { border-color: var(--acc); }

.quick-search__hint { font-size: 11px; color: var(--fg2); margin-top: 8px; padding: 0 4px; }

.quick-search__results { max-height: 380px; overflow-y: auto; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }

.quick-search__results:empty { display: none; }

.quick-search__row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; cursor: pointer; }

.quick-search__row:hover, .quick-search__row.is-active { background: var(--bg2); }

.quick-search__row.is-active { box-shadow: inset 2px 0 0 var(--acc); }

.quick-search__row__thumb { width: 40px; height: 28px; object-fit: cover; border-radius: 4px; background: var(--bg2); }

.quick-search__row__title { font-weight: 500; color: var(--fg0); font-size: 13px; }

.quick-search__row__sub { font-size: 11px; color: var(--fg2); }

.quick-search__row__profit { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.hotkeys-help { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }

.hotkeys-help__panel { width: min(420px, 92vw); max-height: 85vh; overflow-y: auto; background: var(--bg1); border: 1px solid var(--border2); border-radius: var(--r3); box-shadow: 0 32px 96px rgba(0,0,0,0.6); padding: 18px 22px; }

.hotkeys-help__title { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--fg0); }

.hotkeys-help__group { font-size: 10px; text-transform: uppercase; color: var(--fg2); letter-spacing: 0.5px; margin: 10px 0 6px; border-bottom: 1px solid var(--border2); padding-bottom: 4px; }

.hotkeys-help__row { font-size: 12.5px; color: var(--fg1); padding: 4px 0; display: flex; align-items: center; gap: 8px; }

.hotkeys-help__row kbd { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--bg2); border: 1px solid var(--border2); border-bottom-width: 2px; border-radius: 4px; padding: 2px 7px; color: var(--fg0); min-width: 18px; text-align: center; }

.hotkeys-help__row--more { margin-top: 12px; opacity: 0.7; font-size: 11px; }

.feedback-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }

.feedback-modal__panel { width: min(520px, 92vw); background: var(--bg1); border: 1px solid var(--border2); border-radius: var(--r3); box-shadow: 0 32px 96px rgba(0,0,0,0.6); padding: 22px; }

.feedback-modal__title { font-size: 15px; font-weight: 700; color: var(--fg0); margin-bottom: 4px; }

.feedback-modal__sub { font-size: 12px; color: var(--fg2); margin-bottom: 12px; }

.feedback-modal__errid { font-size: 11px; padding: 6px 10px; background: var(--bg2); border-radius: 6px; margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; }

.feedback-modal__text { width: 100%; min-height: 140px; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--r2); color: var(--fg0); font-size: 13px; font-family: inherit; box-sizing: border-box; resize: vertical; outline: none; }

.feedback-modal__text:focus { border-color: var(--acc); }

.feedback-modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

.feedback-modal__actions .btn-cancel { padding: 8px 16px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 6px; color: var(--fg1); cursor: pointer; font-size: 12px; }

.feedback-modal__actions .btn-cancel:hover { background: var(--bg3); }

.feedback-modal__actions .btn-send { padding: 8px 18px; background: var(--acc); border: 1px solid var(--acc); border-radius: 6px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 600; }

.feedback-modal__actions .btn-send:hover { filter: brightness(1.1); }

.feedback-modal__actions .btn-send:disabled { opacity: 0.5; cursor: wait; }

.error-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,0.7); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; }

.error-overlay__panel { width: min(420px, 92vw); background: var(--bg1); border: 1px solid #f87171; border-radius: var(--r3); box-shadow: 0 32px 96px rgba(0,0,0,0.7), 0 0 0 4px rgba(248,113,113,0.1); padding: 24px; text-align: center; }

.error-overlay__icon { font-size: 36px; margin-bottom: 8px; }

.error-overlay__title { font-size: 16px; font-weight: 700; color: var(--fg0); margin-bottom: 6px; }

.error-overlay__sub { font-size: 13px; color: var(--fg1); margin-bottom: 12px; line-height: 1.5; }

.error-overlay__errid { font-size: 11px; color: var(--fg2); padding: 6px 10px; background: var(--bg2); border-radius: 6px; margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; }

.error-overlay__actions { display: flex; gap: 10px; justify-content: center; }

.error-overlay__actions .btn-cancel, .error-overlay__actions .btn-send { padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 12px; }

.error-overlay__actions .btn-cancel { background: var(--bg2); border: 1px solid var(--border2); color: var(--fg1); }

.error-overlay__actions .btn-send { background: var(--acc); border: 1px solid var(--acc); color: #fff; font-weight: 600; }

.task-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:1001; align-items:flex-start; justify-content:center; overflow-y:auto; padding:20px 0; }

.task-modal-overlay.open { display:flex; }

.task-modal { background:var(--bg1); border:1px solid var(--border); border-radius:var(--r2); padding:24px; min-width:320px; max-width:400px; width:90%; margin:auto; }

.task-modal__hdr { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }

.task-modal__title { font-weight:700; font-size:1em; }

.task-modal__field { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; font-size:0.88em; color:var(--fg1); }

.task-modal__input, .task-modal__select { background:var(--bg2); border:1px solid var(--border); border-radius:6px; color:var(--fg0); padding:8px 10px; font-size:0.9em; font-family:inherit; color-scheme:dark; width:100%; box-sizing:border-box; }

.task-modal__input:focus, .task-modal__select:focus { outline:none; border-color:var(--acc); }

.task-modal__footer { display:flex; gap:8px; justify-content:flex-end; margin-top:16px; }
