:root {
  --bg: #f4f1ec;
  --ink: #1c1917;
  --muted: #78716c;
  --card: #fffdf9;
  --line: #e7e0d6;
  --accent: #0f5c4c;
  --accent-2: #c45c26;
  --danger: #b42318;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --tap: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-x: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #dceee8 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #f3e0d4 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
  padding-bottom: var(--safe-bottom);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px max(16px, var(--safe-x)) 48px;
}
h1 { margin: 0 0 16px; font-size: 1.6rem; letter-spacing: -0.02em; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }

/* ——— Header / nav ——— */
.top {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + var(--safe-top)) max(16px, var(--safe-x)) 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.brand {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  gap: 4px 14px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}
.main-nav a {
  color: var(--muted);
  padding: 8px 4px;
  font-size: 0.95rem;
}
.main-nav a.active { color: var(--accent); font-weight: 600; }

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.settings-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.settings-tabs a:hover { color: var(--ink); background: #f7f2ea; }
.settings-tabs a.active {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.detail-tab {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 9px;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.detail-tab:hover { color: var(--ink); background: #f7f2ea; }
.detail-tab.active {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}
.detail-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}
.detail-tab:not(.active) .detail-tab-count {
  background: #e8f3ef;
  color: var(--accent);
}
.detail-panel { margin-top: 0; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail-main .detail-tabs {
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
}
.detail-aside {
  min-width: 0;
}
.detail-aside > .panel {
  margin: 0;
}
.lead-detail-wrap {
  max-width: 1280px;
}

@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
  }
  .detail-aside {
    position: sticky;
    top: 12px;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .detail-main .detail-panel {
    max-width: 100%;
  }
}

.detail-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 12px;
}
.detail-top-main {
  flex: 1 1 240px;
  min-width: 0;
}
.detail-top-main h1 { margin: 4px 0 6px; }
.detail-back { margin: 0 0 2px; }
.detail-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
}
.detail-top-actions .btn,
.detail-top-actions .btn-ghost {
  white-space: nowrap;
}
.logout { margin: 0; }
.logout-in-nav { display: none; }
.nav-toggle {
  display: none;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.logout button, .filters button, .login-card button, .form-actions button, .btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 40px;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.btn { text-decoration: none; }
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-ghost {
  color: var(--muted);
  padding: 10px 12px;
  align-self: center;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.logout button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
a.sort { color: inherit; }
a.sort:hover { color: var(--accent); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: inherit;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
}
.card:hover { text-decoration: none; border-color: #c9dcd5; }
.card .n { font-size: 1.8rem; font-weight: 700; color: var(--accent); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.view-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 100%;
}
.view-switch-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.view-switch-item:hover {
  color: var(--ink);
  background: #f7f2ea;
  text-decoration: none;
}
.view-switch-item.is-active {
  color: #fff;
  background: var(--accent);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.filters--compact {
  gap: 6px;
  align-items: center;
}
.filters input:not([type="checkbox"]):not([type="radio"]),
.filters select,
.login-card input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  min-width: 160px;
  min-height: 42px;
}
.filters--compact input:not([type="checkbox"]):not([type="radio"]),
.filters--compact select {
  flex: 1 1 140px;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  min-height: 34px;
  height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  box-sizing: border-box;
}
.filters--compact .chk {
  flex: 0 0 auto;
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.filters--compact button {
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  box-sizing: border-box;
}
.filters--compact .filters-reset {
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f7f3ee; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 28px !important; }
.card-row { cursor: pointer; }
.card-row:hover { background: #faf7f2; }

.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; }
.nowrap { white-space: nowrap; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f3ef;
  color: var(--accent);
  font-size: 0.8rem;
}
.badge-danger {
  background: #fdeceb;
  color: var(--danger);
}
.badge-callback {
  background: #eef2ff;
  color: #3730a3;
  margin-left: 4px;
}
.last-note {
  margin: 8px 0 0;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 3px solid #94a3b8;
  background: none;
  max-width: 360px;
}
.board-card .last-note {
  max-width: none;
  margin-top: 10px;
}
.last-note-body {
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  margin: 0;
}
.last-note-body.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.last-note-body.is-collapsed > *:last-child {
  margin-bottom: 0;
}
.last-note-toggle {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent, #0f766e);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.last-note-toggle:hover { text-decoration: underline; }
.td-note { min-width: 160px; vertical-align: top; }
.pager {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  margin: 6px 0 14px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.03);
}
.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
  transition: background 0.12s ease, color 0.12s ease;
}
.pager-btn:hover {
  background: #e8f3ef;
  color: var(--accent);
  text-decoration: none;
}
.pager-btn.is-disabled {
  opacity: 0.28;
  pointer-events: none;
}
.pager-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 12px;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  justify-content: center;
  color: var(--muted);
}
.pager-label {
  font-weight: 500;
}
.pager-meta b {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.pager-of {
  color: var(--muted);
}
.pager-total {
  color: var(--muted);
  margin-left: 2px;
}
.board-col-more {
  text-align: center;
  font-size: 12px;
  padding: 8px 4px 4px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0;
}

/* ——— Редактор текстов бота ——— */
.bot-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.bot-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 14px;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.03);
}
.bot-card-solo { margin-top: 4px; }
.bot-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 32px;
}
.bot-card-idx {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e8f3ef;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bot-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
}
.bot-card-title-input {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 6px 10px !important;
  min-height: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.bot-card-title-input:hover,
.bot-card-title-input:focus {
  border-color: var(--line) !important;
  background: #fff !important;
  outline: none;
  box-shadow: none !important;
}
.bot-card.is-hidden {
  opacity: 0.72;
  background: #f7f3ee;
}
.bot-hidden-chk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.bot-hidden-chk input {
  margin: 0;
  width: 14px;
  height: 14px;
}
.bot-chip {
  font-size: 0.72rem;
  color: var(--accent);
  background: #e8f3ef;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.bot-chip.muted {
  color: var(--muted);
  background: #f3eee7;
}
.bot-save {
  margin-left: auto;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 32px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bot-save:hover { opacity: 0.92; }
.bot-prompt {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink);
  resize: vertical;
  min-height: 2.8em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bot-prompt:focus {
  outline: none;
  border-color: #9bc4b8;
  box-shadow: 0 0 0 3px rgba(15, 92, 76, 0.12);
}
.bot-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.bot-hint code {
  font-size: 0.78em;
  background: #f3eee7;
  padding: 1px 5px;
  border-radius: 4px;
}
.bot-solo-form { display: flex; flex-direction: column; gap: 8px; }
.bot-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.bot-variant {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  background: #f7f3ee;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  max-width: 100%;
}
.bot-variant-new {
  background: #fff;
  border-style: dashed;
}
.bot-variant-input {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  min-height: 0 !important;
  font: inherit;
  font-size: 0.84rem;
  min-width: 7rem;
  max-width: 18rem;
  width: auto;
  box-shadow: none !important;
}
.bot-variant-new .bot-variant-input {
  min-width: 9rem;
}
.bot-variant-input:focus {
  outline: none;
}
.bot-variant-del,
.bot-variant-add {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.bot-variant-del:hover { color: var(--danger); background: #fdeceb; }
.bot-variant-add:hover { color: var(--accent); background: #e8f3ef; }

@media (max-width: 640px) {
  .bot-card-head { flex-wrap: wrap; }
  .bot-save { width: 100%; margin-left: 0; }
  .bot-variant,
  .bot-variant-input {
    max-width: none;
    width: 100%;
  }
  .bot-variant { border-radius: 10px; }
  .bot-variants { flex-direction: column; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.code {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f3ee;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.82rem;
}
.code.tight { padding: 6px; max-width: 100%; }

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: max(20px, var(--safe-top)) 20px max(20px, var(--safe-bottom));
}
.login-card {
  width: min(400px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
}
.login-card label { display: grid; gap: 6px; margin: 16px 0; }
.login-card button { width: 100%; min-height: 48px; }
.error { color: var(--danger); font-weight: 600; }
.login-attempts { margin: -8px 0 12px; font-size: 0.9rem; }

.edit-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.edit-form input,
.edit-form select,
.edit-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  width: 100%;
  min-height: 42px;
}
.edit-form textarea { min-height: 96px; }
.edit-form textarea.mono,
.edit-form input.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.edit-form .lead-multi {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.edit-form .lead-multi-label {
  font-size: 0.9rem;
  color: var(--muted);
}
.edit-form .lead-multi-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.edit-form .lead-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
}
.edit-form .lead-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.edit-form .lead-chip span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.edit-form .lead-chip:hover span {
  border-color: #c9bfb2;
  background: #faf7f2;
}
.edit-form .lead-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.edit-form .lead-chip input:checked + span {
  border-color: var(--accent);
  background: #e8f3ef;
  color: var(--accent);
  font-weight: 600;
}
.edit-form textarea[data-autosize] {
  min-height: 42px;
  resize: vertical;
}

/* Поля заявки: ширина как у блока tabs */
#lead-edit-form {
  max-width: none;
  margin: 0;
  width: 100%;
}
#lead-edit-form .detail-panel {
  text-align: left;
  width: 100%;
}
#lead-edit-form .grid-2 {
  grid-template-columns: 1fr;
  gap: 0;
}
#lead-edit-form textarea[data-autosize] {
  min-height: 42px;
  overflow: hidden;
  resize: none;
  field-sizing: content;
  line-height: 1.4;
}
.form-actions { margin: 8px 0 20px; }
.form-actions button, .form-actions .btn { width: auto; }

.flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0 0 14px;
  font-weight: 600;
  line-height: 1.35;
}
.flash.ok { background: #e8f3ef; color: var(--accent); }
.flash.err { background: #fdeceb; color: var(--danger); }
.panel-link {
  margin: 8px 0 24px;
  font-size: 0.95rem;
}
.panel-link a { color: var(--accent); font-weight: 600; }
.event-details {
  margin: 0;
  padding-left: 1.1em;
  line-height: 1.45;
}
.event-details li { margin: 0 0 0.25em; }
.filters-hint { margin: -4px 0 12px; }

.btn-danger {
  border: 0;
  background: #fdeceb;
  color: var(--danger);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  cursor: pointer;
  font: inherit;
}
.form-actions.inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.inline-form { display: inline; margin: 0; }
.tiny { font-size: 0.8rem; }

.note-form .tox-tinymce,
.note-edit .tox-tinymce {
  visibility: visible !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  overflow: hidden;
  background: #fff !important;
}
.note-form .tox .tox-edit-area__iframe,
.note-edit .tox .tox-edit-area__iframe {
  background: #fff !important;
}
.note-form .tox-editor-header,
.note-edit .tox-editor-header {
  border-bottom: 1px solid var(--line) !important;
  background: #faf7f2 !important;
  padding: 4px !important;
}
.note-form textarea.js-tinymce,
.note-edit textarea.js-tinymce {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
.note-card {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.note-meta {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  min-width: 0;
  flex: 1 1 auto;
}
.note-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.note-actions .inline-form {
  display: inline;
  margin: 0;
}
.note-icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
}
.note-icon-btn:hover,
.note-icon-btn:focus-visible {
  background: #f3eee6;
  color: var(--ink);
  outline: none;
}
.note-icon-btn.is-active {
  background: #e8f3ef;
  color: var(--accent);
}
.note-icon-btn--danger:hover,
.note-icon-btn--danger:focus-visible {
  background: #fdeceb;
  color: var(--danger);
}
.md-body { line-height: 1.5; }
.md-body p { margin: 0 0 0.6em; }
.md-body ul, .md-body ol { margin: 0 0 0.6em; padding-left: 1.2em; }
.note-edit { margin-top: 8px; }

.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1.5px dashed #cfc5b6;
  border-radius: 14px;
  padding: 22px 18px 20px;
  background:
    linear-gradient(180deg, #fffefb 0%, #f7f2ea 100%);
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f3faf7 0%, #eef6f3 100%);
  box-shadow: 0 0 0 3px rgba(15, 92, 76, 0.08);
}
.file-drop.is-dragover {
  border-color: var(--accent);
  border-style: solid;
  background: #e8f3ef;
  box-shadow: 0 0 0 3px rgba(15, 92, 76, 0.12);
}
.file-drop-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 0;
}
.file-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  color: var(--accent);
  border: 1px solid #d9eee8;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  margin-bottom: 4px;
}
.file-drop-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.file-drop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 18px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 1px 2px rgba(15, 92, 76, 0.2);
  pointer-events: none;
}
.file-drop:hover .file-drop-btn,
.file-drop:focus-within .file-drop-btn {
  background: #0c4d40;
}
.file-drop-hint {
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 2px;
}
.file-picked {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-picked li,
.file-picked-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.file-picked-thumb,
.file-picked-badge {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--line);
}
.file-picked-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.file-picked-meta {
  flex: 1 1 140px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-picked-name {
  font-weight: 500;
  word-break: break-word;
}
.file-picked-size { font-size: 0.85rem; }
.upload-form .form-actions { margin-top: 12px; }
.upload-form .btn-upload {
  width: 100%;
  max-width: 280px;
}
.upload-form .btn-upload:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 860px) {
  .upload-form .btn-upload { max-width: none; }
}
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li,
.file-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.file-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.file-thumb--pdf { background: #fef2f2; color: #b91c1c; }
.file-thumb--media { background: #f0f9ff; color: #0369a1; font-size: 18px; }
.file-item-meta {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.file-item-meta > a {
  word-break: break-word;
  font-weight: 600;
}
.file-item-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.file-item-title > a {
  word-break: break-word;
  font-weight: 600;
}
.badge-client {
  background: #ecfdf5;
  color: #047857;
  margin-left: 0;
}
.file-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.btn-text-danger {
  border: 0;
  background: transparent;
  color: var(--danger);
  padding: 4px 2px;
  min-height: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-text-danger:hover {
  color: #9f1239;
}

.board-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, var(--safe-x));
  padding-right: max(20px, var(--safe-x));
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 72px - var(--safe-top));
}
.board {
  --board-col-h: calc(100dvh - 220px - var(--safe-top) - var(--safe-bottom));
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  align-items: stretch;
  justify-content: safe center;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: var(--board-col-h);
}
.board-col {
  flex: 0 0 min(300px, 82vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--col, var(--accent));
  height: var(--board-col-h);
  min-height: var(--board-col-h);
  max-height: var(--board-col-h);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.board-col-h {
  padding: 12px 14px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.board-col-h .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.board-col-body {
  padding: 10px;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}
.board-col-body.drag-over { background: #eef6f3; }
.board-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
  touch-action: manipulation;
}
.board-card:hover {
  border-color: #d2c8ba;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.07);
}
.board-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.board-card-id { font-weight: 700; display: inline; padding-right: 0; }
.board-card-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 8px;
  padding-right: 56px;
  min-width: 0;
}
.board-card-top .board-card-id {
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}
.board-card-top .board-card-phone {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.board-card > .lead-counts {
  position: absolute;
  top: 10px;
  right: 10px;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.lead-id-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.lead-id-line > a {
  flex: 0 0 auto;
  font-weight: 700;
  white-space: nowrap;
}
.lead-id-line .td-phone {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  font-size: 0.92rem;
}
.td-id {
  vertical-align: top;
  width: 1%;
}
.td-id-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.td-id-stack > a {
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.lead-counts {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  color: #475569;
  white-space: nowrap;
  user-select: none;
}
.lead-count {
  display: inline-block;
}
.board-card-kind {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #eef2ff;
  color: #3730a3;
}
.board-card-title { margin: 4px 0; font-size: 0.95rem; }
.board-card-city {
  margin: 1px 0 4px;
  font-size: 13px;
  color: #64748b;
}
.board-card-car {
  font-size: 0.86rem;
}

.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.status-list li.dragging { opacity: 0.5; }
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.status-row input[type="text"] {
  min-width: 140px;
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
}
.status-row .btn-save-sm {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 36px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  flex: 0 0 auto;
}
.status-del {
  margin: 0;
  flex: 0 0 auto;
}
.btn-icon-danger {
  border: 1px solid #fecaca;
  background: #fff;
  color: var(--danger);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon-danger:hover {
  background: #fef2f2;
}
.drag-handle { cursor: grab; color: var(--muted); user-select: none; padding: 8px; }
.chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.chk input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  min-width: 16px;
  min-height: 16px;
  border: 1.5px solid #c4b9ab;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}
.chk input[type="checkbox"]:hover {
  border-color: var(--accent);
}
.chk input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}
.chk input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.chk input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.filters .chk {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.filters .chk:hover {
  border-color: #c9bfb2;
  background: #faf7f2;
}

/* ——— Mobile ——— */
@media (max-width: 860px) {
  .top {
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 0;
  }
  .top-bar {
    width: 100%;
    padding-bottom: 10px;
  }
  .nav-toggle { display: inline-flex; }
  .logout-desktop { display: none; }
  .logout-in-nav { display: block; width: 100%; margin-top: 8px; }
  .logout-in-nav button { width: 100%; }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 12px;
    border-top: 1px solid var(--line);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .main-nav a.active {
    background: #e8f3ef;
    margin: 0 -4px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 10px;
    border-bottom-color: transparent;
  }

  .wrap { padding: 16px 14px 40px; }
  h1 { font-size: 1.35rem; margin-bottom: 12px; }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .view-switch {
    width: 100%;
  }
  .view-switch-item {
    flex: 1 1 0;
  }
  .toolbar-right {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
  .toolbar-right .btn,
  .toolbar-right .btn-ghost {
    flex: 1 1 auto;
    justify-content: center;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .filters--compact,
  .filters.filters--compact {
    flex-direction: column;
  }
  .filters input:not([type="checkbox"]):not([type="radio"]),
  .filters select,
  .filters--compact input:not([type="checkbox"]):not([type="radio"]),
  .filters--compact select,
  .filters--compact button,
  .filters--compact .filters-reset,
  .filters--compact .chk {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .filters--compact button,
  .filters--compact .filters-reset {
    justify-content: center;
  }
  .filters--compact .chk {
    justify-content: flex-start;
  }

  .pager {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
  }
  .pager-meta {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 6px;
    font-size: 0.8rem;
  }

  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .table-cards thead { display: none; }
  .table-cards,
  .table-cards tbody {
    display: block;
    width: 100%;
  }
  .table-cards tr {
    display: block;
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 2px 0 4px;
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.04);
  }
  .table-cards tr:last-child { margin-bottom: 0; }
  .table-cards td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 7px 12px;
    border-bottom: 1px solid #f0ebe4;
    text-align: left;
    word-break: break-word;
    align-items: baseline;
  }
  .table-cards td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 1px;
    grid-column: 1;
    grid-row: 1;
  }
  /* Все данные — только в правой колонке (не под названиями полей) */
  .table-cards td > * {
    grid-column: 2;
    min-width: 0;
  }
  .table-cards td:last-child { border-bottom: 0; }
  .table-cards td.empty {
    display: block;
    text-align: center;
    padding: 28px 14px !important;
  }
  .table-cards td.empty::before { content: none; }
  .td-value-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .table-cards .td-phone,
  .table-cards .td-city {
    font-variant-numeric: tabular-nums;
  }
  .lead-card-row {
    padding-top: 4px;
  }
  .lead-card-row .td-id {
    padding-right: 78px;
  }
  .lead-card-row .lead-counts {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    margin: 0;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
  }
  .table-cards .code.tight { max-width: none; }

  .grid-2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .panel { padding: 14px; margin: 12px 0; }

  .form-actions button,
  .form-actions .btn,
  .btn-danger {
    width: 100%;
  }
  .status-list .btn-danger,
  .status-list .btn-icon-danger,
  .status-del .btn-icon-danger {
    width: 32px !important;
    min-width: 32px;
    max-width: 32px;
  }
  .status-row .btn-save-sm {
    width: auto;
    min-width: 110px;
    flex: 1 1 auto;
  }

  .status-list li {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .status-row { width: 100%; flex: 1 1 auto; }
  .status-del { align-self: flex-start; margin-top: 4px; }
  .file-list li,
  .file-item { flex-direction: column; align-items: flex-start; }
  .file-item-actions .btn-text-danger {
    font-size: 0.95rem;
    padding: 8px 0;
  }

  .board-col {
    flex: 0 0 min(260px, 82vw);
  }
  .board {
    --board-col-h: calc(100dvh - 250px - var(--safe-top) - var(--safe-bottom));
  }
  .board-card {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
  }
  .board-card-id {
    font-size: 0.9rem;
  }
  .board-card-top {
    padding-right: 52px;
    gap: 6px;
  }
  .board-card-top .board-card-phone {
    font-size: 12px;
  }
  .board-card > .lead-counts {
    top: 8px;
    right: 8px;
    font-size: 11px;
  }
  .board-card-kind {
    margin: 2px 0 1px;
    font-size: 10px;
    padding: 0 6px;
  }
  .board-card-title {
    margin: 2px 0;
    font-size: 0.88rem;
  }
  .board-card-city {
    margin: 0 0 2px;
    font-size: 12px;
  }
  .board-card .last-note {
    margin-top: 6px;
  }
  .board-card .last-note-body {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .code.tight { font-size: 0.75rem; }
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 860px) {
  .toolbar-actions {
    width: 100%;
  }
  .toolbar-actions .btn,
  .toolbar-actions .btn-ghost {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
  .detail-tabs {
    width: 100%;
  }
  .detail-tab {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    padding: 10px 12px;
  }
  .detail-top-actions {
    width: 100%;
  }
  .detail-top-actions .btn,
  .detail-top-actions .btn-ghost {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
  .detail-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .brand { font-size: 0.98rem; }
  h1 { font-size: 1.22rem; }
  .table-cards td {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 6px 10px;
  }
  .pager-label { display: none; }
}

/* ——— Global loader ——— */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, var(--safe-top)) max(16px, var(--safe-x)) max(16px, var(--safe-bottom));
  background: rgba(244, 241, 236, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.app-loader.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.app-loader-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.12);
  min-width: 140px;
}
.app-loader-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #dceee8;
  border-top-color: var(--accent);
  animation: app-loader-spin 0.7s linear infinite;
}
.app-loader-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
html.app-loading,
html.app-loading body {
  cursor: progress;
}
@keyframes app-loader-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .app-loader-spinner { animation-duration: 1.4s; }
  .app-loader { transition: none; }
}

