
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Inter', sans-serif; }

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #1f2937;
  border-bottom: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #9f1239, #7f1d1d);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #f9fafb;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: #9ca3af;
  font-weight: 400;
  margin-left: 8px;
  font-size: 14px;
}

.data-updated {
  font-size: 11px;
  color: #9ca3af;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 14px;
  white-space: nowrap;
}

.sidebar-updated {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 8px;
}

.layers {
  display: flex;
  gap: 8px;
}

.layer-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.layer-btn .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.layer-btn.stores { background: #9f1239; color: #fff; }
.layer-btn.stores .dot { background: #9f1239; }
.layer-btn.stores.off { background: #374151; color: #9ca3af; }
.layer-btn.stores.off .dot { background: #6b7280; }

.layer-btn.competitors { background: #2563eb; color: #fff; }
.layer-btn.competitors .dot { background: #2563eb; }
.layer-btn.competitors.off { background: #374151; color: #9ca3af; }
.layer-btn.competitors.off .dot { background: #6b7280; }

.layer-btn.masters { background: #059669; color: #fff; }
.layer-btn.masters .dot { background: #059669; }
.layer-btn.masters.off { background: #374151; color: #9ca3af; }
.layer-btn.masters.off .dot { background: #6b7280; }

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.type-filters {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 6px;
  padding-left: 12px;
  border-left: 1px solid #4b5563;
}
.type-filter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #e5e7eb;
  background: none;
  border: 1px solid #4b5563;
  border-radius: 4px;
  padding: 3px 7px 3px 5px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}
.type-filter-btn:hover { background: #374151; }
.type-filter-btn.off { opacity: 0.35; border-style: dashed; }
.type-filter-btn svg { width: 9px; height: 13px; flex-shrink: 0; }

#map {
  position: absolute;
  top: 56px;
  left: 320px;
  width: calc(100% - 320px);
  height: calc(100% - 56px);
}

.sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  width: 320px;
  height: calc(100% - 56px);
  background: #fff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.sidebar-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: #6b7280;
}

.sidebar-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-stats .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sidebar-section {
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-section-header {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-section-header .count {
  background: #e5e7eb;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

.sidebar-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-item:hover {
  background: #f9fafb;
}

.sidebar-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-item-name .size-badge {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
}

.sidebar-item-meta {
  font-size: 11px;
  color: #9ca3af;
}

.sidebar-item.store .sidebar-item-name::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #9f1239;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-item.competitor .sidebar-item-name::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-item.master .sidebar-item-name::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #059669;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-empty {
  padding: 32px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.region-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  margin-bottom: 12px;
}

.region-select:hover {
  border-color: #9f1239;
}

.region-select:focus {
  border-color: #9f1239;
  box-shadow: 0 0 0 3px rgba(159, 18, 57, 0.1);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #374151;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s;
}
.menu-btn:hover { background: #4b5563; }
.menu-btn svg { width: 20px; height: 20px; fill: currentColor; }

.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  flex-shrink: 0;
}
.sidebar-close-btn svg { width: 16px; height: 16px; fill: currentColor; }
.sidebar-close-btn:hover { background: #e5e7eb; color: #1f2937; }

.sidebar-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sidebar-topbar-title {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-bottom-bar {
  display: none;
}

/* ====== SEARCH ====== */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 340px;
  margin: 0 16px;
}
.search-input {
  width: 100%;
  padding: 8px 32px 8px 36px;
  background: #374151;
  border: 1.5px solid #4b5563;
  border-radius: 8px;
  color: #f9fafb;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: #6b7280; }
.search-input:focus { border-color: #9f1239; box-shadow: 0 0 0 3px rgba(159,18,57,0.15); }
.search-icon-lbl {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: #6b7280;
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #4b5563;
  border: none;
  border-radius: 50%;
  color: #9ca3af;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  transition: background 0.15s;
}
.search-clear:hover { background: #6b7280; color: #fff; }
.search-clear.visible { display: flex; }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  z-index: 2000;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  overflow: hidden;
  display: none;
  max-height: 420px;
  overflow-y: auto;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #374151;
  transition: background 0.12s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item.kbd-active { background: #374151; }
.search-result-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.search-result-name {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
  line-height: 1.3;
}
.search-result-name mark {
  background: #9f1239;
  color: #fff;
  border-radius: 2px;
  padding: 0 2px;
  font-style: normal;
}
.search-result-meta {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}
.search-no-results {
  padding: 20px 14px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}
.search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #374151;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s;
}
.search-btn:hover { background: #4b5563; }
.search-btn svg { width: 18px; height: 18px; fill: currentColor; }
.search-mobile-overlay {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: #1f2937;
  border-bottom: 2px solid #9f1239;
  z-index: 1500;
  padding: 12px 16px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.search-mobile-overlay.open { display: block; }
.search-mobile-bar { position: relative; }
.search-mobile-input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  background: #374151;
  border: 1.5px solid #4b5563;
  border-radius: 8px;
  color: #f9fafb;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
}
.search-mobile-input:focus { border-color: #9f1239; }
.search-mobile-input::placeholder { color: #6b7280; }
.search-mobile-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #4b5563;
  border: none;
  border-radius: 50%;
  color: #9ca3af;
  cursor: pointer;
  width: 26px;
  height: 26px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-mobile-results {
  margin-top: 10px;
  background: #111827;
  border-radius: 10px;
  overflow: hidden;
  max-height: 55vh;
  overflow-y: auto;
  display: none;
}
.search-mobile-results.open { display: block; }

.mobile-layer-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  border-top: 3px solid transparent;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 4px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.2px;
}
.mobile-layer-btn svg { width: 20px; height: 20px; fill: currentColor; margin-bottom: 1px; }
.mobile-layer-btn:not(.off).stores  { color: #fb7185; border-top-color: #fb7185; }
.mobile-layer-btn:not(.off).competitors { color: #60a5fa; border-top-color: #60a5fa; }
.mobile-layer-btn:not(.off).masters { color: #34d399; border-top-color: #34d399; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}
.sidebar-overlay.open { display: block; }

@media (max-width: 1400px) {
  .route-btn span { display: none; }
}

@media (max-width: 1200px) {
  .data-updated { display: none; }
}

@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .search-btn { display: flex; }
  .search-wrap { display: none !important; }
  .type-filters { display: none; }
  .logo-text span { display: none; }
  .data-updated { display: none; }
  .controls .layers { display: none; }

  #map { left: 0 !important; width: 100% !important; height: calc(100% - 56px - 64px) !important; }

  .sidebar {
    transform: translateX(-320px);
    transition: transform 0.3s ease;
    z-index: 200;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    height: calc(100% - 56px - 64px);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-topbar { display: flex; }
  .sidebar-close-btn { display: flex; }

  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #1f2937;
    border-top: 1px solid #374151;
    z-index: 500;
    align-items: stretch;
  }
}

/* ====== ROUTE PANEL ====== */
.route-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: #374151;
  border: none;
  border-radius: 6px;
  color: #e5e7eb;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.route-btn:hover { background: #4b5563; }
.route-btn.active { background: #9f1239; color: #fff; }
.route-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

.route-panel {
  position: fixed;
  top: 68px;
  right: 16px;
  width: 300px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  z-index: 900;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  display: none;
  overflow: hidden;
}
.route-panel.open { display: block; }
.route-panel-header {
  padding: 11px 14px;
  border-bottom: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.route-panel-title { font-size: 13px; font-weight: 600; color: #f9fafb; }
.route-panel-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 2px 4px;
}
.route-panel-close:hover { color: #f9fafb; }
.route-panel-body { padding: 12px 14px; max-height: calc(100vh - 120px); overflow-y: auto; }

.prospect-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.route-input-row { margin-bottom: 8px; }
.route-input-lbl { font-size: 10px; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.route-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 11px;
  background: #374151;
  border: 1px dashed #4b5563;
  border-radius: 6px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.route-mode-btn:hover { background: #4b5563; color: #e5e7eb; }
.route-mode-btn.active { background: #064e3b; border-color: #059669; border-style: solid; color: #6ee7b7; }
.route-mode-btn svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.route-hint { font-size: 10px; color: #4b5563; margin-bottom: 8px; font-style: italic; line-height: 1.4; }
.route-pts-list { min-height: 10px; margin-bottom: 4px; }
.route-pt-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  background: #374151;
  border-radius: 6px;
  margin-bottom: 5px;
}
.route-pt-letter {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.route-pt-letter.origin { background: #059669; }
.route-pt-letter.dest   { background: #dc2626; }
.route-pt-letter.mid    { background: #2563eb; }
.route-pt-name { flex: 1; font-size: 11px; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-pt-actions { display: flex; gap: 1px; flex-shrink: 0; }
.route-pt-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.15s;
}
.route-pt-btn:hover { background: #4b5563; color: #f9fafb; }
.route-pt-btn.del:hover { background: none; color: #ef4444; }
.route-actions { display: flex; gap: 7px; margin-top: 11px; }
.route-calc-btn {
  flex: 1;
  padding: 8px 0;
  background: #9f1239;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.route-calc-btn:hover { background: #be123c; }
.route-calc-btn:disabled { background: #4b5563; cursor: not-allowed; }
.route-clear-btn {
  padding: 8px 12px;
  background: #374151;
  border: none;
  border-radius: 6px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.route-clear-btn:hover { background: #4b5563; color: #f9fafb; }
.route-summary {
  margin-top: 10px;
  padding: 9px 11px;
  background: #111827;
  border-radius: 8px;
  display: none;
}
.route-summary.visible { display: block; }
.route-summary-lbl { font-size: 10px; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.route-summary-legs { font-size: 10px; color: #6b7280; margin-bottom: 6px; }
.route-summary-legs div { padding: 2px 0; border-bottom: 1px solid #1f2937; }
.route-totals { display: flex; gap: 14px; padding-top: 6px; border-top: 1px solid #374151; }
.route-total-val { font-size: 14px; font-weight: 700; color: #f9fafb; }
.route-total-lbl { font-size: 10px; color: #6b7280; margin-top: 1px; }
.route-gmaps-link {
  display: block;
  margin-top: 8px;
  padding: 7px 0;
  background: #1d4ed8;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.route-gmaps-link:hover { background: #2563eb; }
@media (max-width: 768px) {
  .route-btn span { display: none; }
  .route-panel { right: 8px; left: 8px; width: auto; }
}

/* ── Додано в новій версії ─────────────────────────────────────────────── */

/* Кнопки шарів тепер генеруються з чотирьох статусів, тому колір приходить
   інлайном, а не окремим класом на кожен шар. */
.layer-btn.off { background: #374151 !important; color: #9ca3af; }
.layer-btn.off .dot { background: #6b7280 !important; }

.add-btn { background: #9f1239; color: #fff; }
.add-btn:hover { background: #881337; }
.add-btn.active { background: #059669; }

.mod-badge {
  margin-left: 5px; background: #dc2626; color: #fff; border-radius: 9px;
  padding: 1px 6px; font-size: 10px; font-style: normal; font-weight: 700;
}

.sidebar-item-name .dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* Підказка режиму додавання */
.add-hint {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 950; background: #059669; color: #fff; padding: 9px 16px;
  border-radius: 20px; font-size: 13px; font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Форма точки */
.pm { position: fixed; inset: 0; background: rgba(17,24,39,.6); z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto; }
.pm[hidden] { display: none; }
.pm-box { width: 100%; max-width: 560px; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4); overflow: hidden; }
.pm-head { padding: 14px 18px; border-bottom: 1px solid #e5e7eb; display: flex;
  justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; }
.pm-close { background: none; border: none; font-size: 18px; color: #6b7280; cursor: pointer; }
.pm-body { padding: 18px; }
.pm-field { margin-bottom: 13px; }
.pm-row { display: flex; gap: 12px; }
.pm-row .pm-field { flex: 1; min-width: 0; }
.pm-body label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 5px; font-weight: 500; }
.pm-body input[type=text], .pm-body input:not([type]), .pm-body input[type=file],
.pm-body select, .pm-body textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 13px; font-family: 'Inter', sans-serif; color: #1f2937; background: #fff; }
.pm-body textarea { resize: vertical; }
.pm-body input:focus, .pm-body select:focus, .pm-body textarea:focus {
  outline: none; border-color: #9f1239; }
.pm-check { display: flex; align-items: center; gap: 8px; font-size: 12px;
  color: #374151; margin: 4px 0 14px; cursor: pointer; }
.pm-check input { width: auto; }
.pm-hint { font-size: 11px; color: #9ca3af; margin-top: 5px; }
.pm-status { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-status label { display: flex; align-items: center; gap: 8px; padding: 9px 11px;
  border: 1.5px solid #e5e7eb; border-radius: 9px; cursor: pointer;
  font-size: 12px; font-weight: 500; color: #1f2937; margin: 0; }
.pm-status label:hover { background: #f9fafb; }
.pm-status label.sel { border-color: #1f2937; background: #f9fafb; }
.pm-status label i { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.pm-status input { display: none; }
.pm-shots { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.pm-shots img { width: 64px; height: 64px; object-fit: cover; border-radius: 7px;
  border: 1px solid #e5e7eb; }
.pm-msg { padding: 9px 12px; border-radius: 8px; font-size: 12px; margin-bottom: 12px; }
.pm-msg.err { background: #fef2f2; color: #b91c1c; }
.pm-actions { display: flex; gap: 9px; margin-top: 6px; }
.pm-save { flex: 1; padding: 11px; background: #9f1239; border: none; border-radius: 8px;
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }
.pm-save:hover { background: #881337; }
.pm-save:disabled { opacity: .6; cursor: default; }
.pm-cancel { padding: 11px 16px; background: none; border: 1px solid #d1d5db;
  border-radius: 8px; color: #6b7280; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; }

@media (max-width: 768px) {
  .pm-row { flex-direction: column; gap: 0; }
  .pm-status { grid-template-columns: 1fr; }
  .pm { padding: 0; }
  .pm-box { max-width: none; border-radius: 0; min-height: 100%; }
}
