﻿.workflow-page {
  min-height: 100vh;
}

.workflow-page[data-page="add-place"] {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.workflow-page[data-page="add-place"] .workflow-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 0 20px;
}

.workflow-page[data-page="add-place"] .workflow-layout {
  flex: 1;
  min-height: 0;
}

.workflow-page[data-page="add-place"] .workflow-panel,
.workflow-page[data-page="add-place"] .workflow-map-card {
  min-height: 0;
  height: 100%;
}

.workflow-page[data-page="add-place"] .workflow-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.workflow-page[data-page="add-place"] .workflow-form {
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.workflow-page[data-page="add-place"] .workflow-map-card {
  min-height: 0;
}

.workflow-page[data-page="add-place"] .workflow-map {
  min-height: 0;
}

.workflow-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.workflow-panel,
.workflow-map-card,
.moderation-card,
.admin-card,
.not-found-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.workflow-panel,
.workflow-map-card,
.moderation-card,
.admin-card,
.not-found-shell,
.moderation-hero {
  padding: 28px;
}

.workflow-panel h1,
.workflow-map-head h2,
.moderation-hero h1,
.admin-hero h1,
.not-found-shell h1,
.moderation-card h3,
.admin-card h3 {
  margin: 10px 0 0;
  font-family: "Sora", sans-serif;
  letter-spacing: var(--brand-letter-spacing);
}

.workflow-panel > .eyebrow,
.workflow-map-head > .eyebrow {
  display: none;
}

.workflow-map-head h2 {
  margin-top: 0;
}

.workflow-panel h1,
.moderation-hero h1,
.admin-hero h1,
.not-found-shell h1 {
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 0.95;
}

.workflow-page[data-page="add-place"] .workflow-panel h1 {
  max-width: 13ch;
  font-size: clamp(1.8rem, 4vw, 2.95rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.workflow-lead,
.workflow-map-head p:last-child,
.moderation-card p,
.not-found-shell p {
  color: var(--muted);
  line-height: 1.65;
}

.workflow-lead,
.workflow-map-head p:last-child,
.workflow-photo-picker small,
.workflow-field > small,
.workflow-category-card small,
.workflow-category-summary,
.not-found-shell > p:not(.eyebrow) {
  display: none;
}

.workflow-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.workflow-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workflow-field span {
  font-size: 0.94rem;
  font-weight: 700;
}

.workflow-field small {
  color: var(--muted);
  font-size: 0.84rem;
}

.workflow-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.workflow-photo-picker {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 118px;
  padding: 22px;
  border-radius: 24px;
  border: 1px dashed rgba(35, 43, 47, 0.14);
  background: linear-gradient(180deg, rgba(241, 243, 244, 0.98) 0%, rgba(232, 236, 238, 0.96) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.workflow-photo-picker:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.24);
  box-shadow: 0 18px 42px rgba(35, 43, 47, 0.08);
}

.workflow-photo-picker strong {
  font-size: 1.02rem;
}

.workflow-photo-picker small {
  max-width: 24ch;
  font-size: 0.9rem;
  line-height: 1.5;
}

.workflow-photo-picker-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(35, 43, 47, 0.08);
  box-shadow: 0 10px 24px rgba(35, 43, 47, 0.08);
}

.workflow-photo-picker-icon::before {
  content: "";
  position: absolute;
  inset: 16px;
  background-color: #2f7a45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4 11-11 3 3-11 11-4 1Z'/%3E%3Cline x1='14' y1='6' x2='17' y2='9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4 11-11 3 3-11 11-4 1Z'/%3E%3Cline x1='14' y1='6' x2='17' y2='9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.workflow-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-page[data-page="add-place"] .workflow-category-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.workflow-category-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 84px;
  width: 100%;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 12px 28px rgba(35, 43, 47, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.workflow-category-card:hover {
  transform: translateY(-1px);
  border-color: var(--category-color, rgba(var(--accent-rgb), 0.28));
  box-shadow: 0 16px 34px rgba(35, 43, 47, 0.08);
}

.workflow-category-card-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(35, 43, 47, 0.08);
}

.workflow-category-card-icon img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.workflow-category-card-icon-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--category-color, var(--accent));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.workflow-category-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.workflow-category-card small {
  font-size: 0.84rem;
  line-height: 1.5;
}

.workflow-category-card.is-selected {
  border-color: var(--category-color, rgba(var(--accent-rgb), 0.4));
  background: linear-gradient(180deg, var(--category-color-fill, rgba(var(--accent-rgb), 0.16)) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 18px 38px var(--category-color-glow, rgba(var(--accent-rgb), 0.16));
}

.workflow-category-summary {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.workflow-tag-hint {
  margin: -2px 0 2px;
  color: rgba(35, 43, 47, 0.62);
  font-size: 0.9rem;
  line-height: 1.45;
}

.workflow-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workflow-tag-chip {
  appearance: none;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 999px;
  background: rgba(247, 251, 247, 0.86);
  color: rgba(35, 43, 47, 0.8);
  padding: 11px 15px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.workflow-tag-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.24);
  box-shadow: 0 12px 24px rgba(35, 43, 47, 0.08);
}

.workflow-tag-chip.is-selected {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(var(--accent-rgb), 0.16);
}

.workflow-field input:not(.workflow-file-input),
.workflow-field select,
.workflow-field textarea,
.moderation-note {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 1);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.workflow-field input:not(.workflow-file-input):focus,
.workflow-field select:focus,
.workflow-field textarea:focus,
.moderation-note:focus {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

.workflow-field input:not(.workflow-file-input)::placeholder,
.workflow-field textarea::placeholder,
.moderation-note::placeholder {
  color: rgba(90, 102, 94, 0.76);
  font: inherit;
}

/* Event date range (revealed for the "Ивенты" category on the add-place form).
   The inputs themselves inherit the .workflow-field input styling above. */
.workflow-event-dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.workflow-event-date {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.workflow-event-date-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(90, 102, 94, 0.85);
}
:root[data-theme="dark"] .workflow-event-date-label {
  color: var(--muted);
}

/* Custom site-styled date picker (event range): trigger button + popup calendar
   that replaces the native <input type=date> control. */
.workflow-datepicker {
  position: relative;
}
.workflow-datepicker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.workflow-datepicker-trigger:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
}
.workflow-datepicker-trigger[aria-expanded="true"] {
  border-color: rgba(var(--accent-rgb), 0.46);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}
.workflow-datepicker-value {
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workflow-datepicker-value.is-placeholder {
  color: rgba(90, 102, 94, 0.7);
  font-weight: 600;
}
.workflow-datepicker-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: rgba(var(--accent-rgb), 0.92);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cline x1='4' y1='9' x2='20' y2='9'/%3E%3Cline x1='8' y1='3' x2='8' y2='6'/%3E%3Cline x1='16' y1='3' x2='16' y2='6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cline x1='4' y1='9' x2='20' y2='9'/%3E%3Cline x1='8' y1='3' x2='8' y2='6'/%3E%3Cline x1='16' y1='3' x2='16' y2='6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.workflow-datepicker-pop {
  /* Fixed so the overflow:auto step never clips it; positioned in JS on open. */
  position: fixed;
  z-index: 200;
  width: min(300px, calc(100vw - 48px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(16, 25, 29, 0.18);
}
.workflow-datepicker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.workflow-datepicker-title {
  font-weight: 800;
  font-size: 0.95rem;
}
.workflow-datepicker-nav {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
}
.workflow-datepicker-nav::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(2px) rotate(45deg);
}
.workflow-datepicker-nav--next::before {
  transform: translateX(-2px) rotate(-135deg);
}
.workflow-datepicker-nav:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}
.workflow-datepicker-weekdays,
.workflow-datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.workflow-datepicker-weekdays {
  margin-bottom: 4px;
}
.workflow-datepicker-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(90, 102, 94, 0.7);
  padding: 4px 0;
}
.workflow-datepicker-day {
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 140ms ease, color 140ms ease;
}
.workflow-datepicker-day.is-empty {
  cursor: default;
}
.workflow-datepicker-day:not(.is-empty):hover {
  background: rgba(var(--accent-rgb), 0.12);
}
.workflow-datepicker-day.is-selected {
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}
/* Dark theme. */
:root[data-theme="dark"] .workflow-datepicker-trigger,
:root[data-theme="dark"] .workflow-datepicker-pop {
  background: #171e1a;
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="dark"] .workflow-datepicker-value.is-placeholder,
:root[data-theme="dark"] .workflow-datepicker-weekdays span {
  color: var(--muted);
}
:root[data-theme="dark"] .workflow-datepicker-day:not(.is-empty):hover {
  background: rgba(255, 255, 255, 0.08);
}

.workflow-field textarea {
  height: 128px;
  max-height: 128px;
  resize: none;
  overflow-y: auto;
}

.moderation-note {
  resize: vertical;
}

.moderation-intent {
  margin: -2px 0 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(186, 54, 54, 0.06);
  border: 1px solid rgba(186, 54, 54, 0.12);
  color: #9f3535;
  font-weight: 700;
}

.workflow-day-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workflow-day-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 16px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease,
    color 160ms ease;
}

.workflow-day-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 12px 26px rgba(35, 43, 47, 0.08);
}

.workflow-day-chip.is-selected {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 1) 0%, rgba(var(--accent-rgb), 0.9) 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(var(--accent-rgb), 0.22);
}

.workflow-day-chip[data-workday-option="Суббота"]:not(.is-selected),
.workflow-day-chip[data-workday-option="Воскресенье"]:not(.is-selected) {
  border-color: rgba(214, 97, 97, 0.22);
  background: rgba(214, 97, 97, 0.06);
  color: #b75252;
}

.workflow-day-chip[data-workday-option="Суббота"].is-selected,
.workflow-day-chip[data-workday-option="Воскресенье"].is-selected {
  border-color: rgba(214, 97, 97, 0.4);
  background: linear-gradient(180deg, #d96d6d 0%, #c95757 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(201, 87, 87, 0.24);
}

.workflow-time-builder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-height: 430px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 560ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 380ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.workflow-time-builder.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.workflow-time-panel {
  --wheel-row-height: 34px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-height: 196px;
  padding: 14px;
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round 28px);
  border-radius: 28px;
  background: linear-gradient(180deg, #2a3236 0%, #1f2629 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(35, 43, 47, 0.16);
}

.workflow-time-panel-label {
  margin: 0;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--brand-letter-spacing);
  text-transform: uppercase;
}

.workflow-time-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  max-width: 172px;
  min-height: calc(var(--wheel-row-height) * 5);
  gap: 8px;
}

.workflow-time-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: var(--wheel-row-height);
  align-self: center;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Manrope", sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}

.workflow-time-wheel {
  --wheel-row-height: 34px;
  position: relative;
  width: 100%;
  min-width: 0;
  height: calc(var(--wheel-row-height) * 5);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  clip-path: inset(0 round 22px);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.workflow-time-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 38, 41, 0.88) 0%,
    rgba(31, 38, 41, 0.45) 18%,
    rgba(31, 38, 41, 0) 34%,
    rgba(31, 38, 41, 0) 66%,
      rgba(31, 38, 41, 0.45) 82%,
      rgba(31, 38, 41, 0.88) 100%
    );
  pointer-events: none;
  z-index: 3;
}

.workflow-time-wheel-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  will-change: transform;
}

.workflow-time-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--wheel-row-height);
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.18);
  font-family: "Manrope", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 180ms ease, opacity 180ms ease;
}

.workflow-time-option:hover {
  color: rgba(255, 255, 255, 0.62);
}

.workflow-time-option.is-adjacent {
  color: rgba(255, 255, 255, 0.62);
}

.workflow-time-option.is-distant {
  color: rgba(255, 255, 255, 0.34);
}

.workflow-time-option.is-selected {
  color: #ffffff;
}

.workflow-time-wheel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.workflow-fulltime-toggle {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 248, 0.96) 100%);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease,
    color 160ms ease;
}

.workflow-fulltime-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 14px 30px rgba(35, 43, 47, 0.08);
}

.workflow-fulltime-toggle.is-active {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 1) 0%, rgba(var(--accent-rgb), 0.9) 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(var(--accent-rgb), 0.22);
}

.workflow-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.workflow-photo-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  cursor: grab;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    opacity 180ms ease;
  will-change: transform;
}

.workflow-photo-preview:hover {
  border-color: rgba(var(--accent-rgb), 0.22);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(12, 18, 20, 0.12);
}

.workflow-photo-preview.is-dragging {
  opacity: 0.2;
  transform: scale(0.9);
  cursor: grabbing;
}

.workflow-photo-preview.is-drop-target {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.14),
    0 18px 34px rgba(12, 18, 20, 0.14);
}

.workflow-photo-preview-ghost {
  z-index: 9999;
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow:
    0 24px 52px rgba(12, 18, 20, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: rotate(-2.5deg) scale(1.04);
  opacity: 0.96;
  cursor: grabbing;
}

.workflow-photo-preview-ghost .workflow-photo-remove {
  display: none;
}

.workflow-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workflow-photo-index {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(35, 43, 47, 0.72);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
}

.workflow-photo-remove {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 43, 47, 0.78);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.workflow-point-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.workflow-point-card strong,
.workflow-point-card p {
  display: block;
  margin: 0;
}

.workflow-point-card p {
  margin-top: 8px;
  color: var(--muted);
}

.workflow-point-card p:empty {
  display: none;
}

.workflow-message {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 245, 245, 0.94);
  border: 1px solid rgba(186, 54, 54, 0.18);
  color: #a43434;
  font-weight: 700;
}

.workflow-message[data-state="success"] {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.2);
  color: var(--accent-strong);
}

.workflow-submit {
  width: 100%;
  justify-content: center;
}

.workflow-form-actions {
  display: grid;
  gap: 12px;
}

.workflow-delete-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(186, 54, 54, 0.18);
  border-radius: 999px;
  background: rgba(255, 245, 245, 0.96);
  color: #b23d3d;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease,
    color 160ms ease;
}

.workflow-delete-button:hover {
  transform: translateY(-1px);
  border-color: rgba(186, 54, 54, 0.28);
  background: rgba(255, 240, 240, 0.98);
  box-shadow: 0 18px 36px rgba(186, 54, 54, 0.12);
}

.workflow-delete-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.workflow-map-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 720px;
}

.workflow-map-head {
  display: grid;
  gap: 14px;
}

.workflow-map-head p:last-child {
  margin: 10px 0 0;
}

.workflow-map-search {
  position: relative;
  z-index: 4;
}

.workflow-map-search-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(35, 43, 47, 0.08);
  box-shadow: 0 18px 32px rgba(35, 43, 47, 0.1);
}

.workflow-map-search-icon {
  width: 16px;
  height: 16px;
  display: block;
  background-color: var(--accent-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.95;
}

.workflow-map-search-field input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.workflow-map-search-field input::placeholder {
  color: rgba(102, 113, 115, 0.82);
}

.workflow-map-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: min(36vh, 300px);
  overflow: auto;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(35, 43, 47, 0.08);
  box-shadow: 0 22px 40px rgba(35, 43, 47, 0.16);
  backdrop-filter: blur(16px);
}

.workflow-map-search-results[hidden] {
  display: none;
}

.workflow-map-search-result {
  width: 100%;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.workflow-map-search-result:hover {
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}

.workflow-map-search-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.workflow-map-search-result-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  flex: 0 0 auto;
}

.workflow-map-search-result-subtitle,
.workflow-map-search-meta {
  color: rgba(102, 113, 115, 0.88);
  font-size: 0.92rem;
  line-height: 1.35;
}

.workflow-map-search-meta {
  padding: 12px 14px;
}

.workflow-map {
  position: relative;
  flex: 1;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel-soft);
}

#placePickerMap {
  width: 100%;
  height: 100%;
}

.workflow-map .map-provider-message {
  min-height: 420px;
}

.moderation-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-shell {
  padding-top: 18px;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: minmax(248px, 292px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 12px;
  padding: 18px 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(35, 43, 47, 0.05);
  backdrop-filter: blur(20px);
}

.admin-sidebar-head {
  display: grid;
  gap: 4px;
  padding: 0 10px 6px;
}

.admin-sidebar-head h1,
.admin-section-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: var(--brand-letter-spacing);
}

.admin-sidebar-head h1 {
  font-size: 1.1rem;
  line-height: 1.1;
}

.admin-sidebar-head p:not(.eyebrow),
.admin-section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav-button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 180ms ease;
}

.admin-nav-button:hover {
  background: rgba(35, 43, 47, 0.045);
  color: var(--text);
}

.admin-nav-button:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.28);
  outline-offset: 2px;
}

.admin-nav-button.is-active {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-strong);
}

.admin-nav-icon {
  position: relative;
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0.88;
}

.admin-nav-button.is-active .admin-nav-icon {
  opacity: 1;
}

.admin-nav-icon-categories {
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-nav-icon-categories::before {
  content: none;
}

.admin-nav-icon-moderation {
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 5 2 6 2 6H4s2-1 2-6Z'/%3E%3Cpath d='M10 19a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 5 2 6 2 6H4s2-1 2-6Z'/%3E%3Cpath d='M10 19a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-nav-icon-moderation::before,
.admin-nav-icon-moderation::after {
  content: none;
}

.admin-nav-icon-reports {
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V4'/%3E%3Cpath d='M6 4h11l-2.5 4L17 12H6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V4'/%3E%3Cpath d='M6 4h11l-2.5 4L17 12H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-nav-icon-reports::before,
.admin-nav-icon-reports::after {
  content: none;
}

.admin-nav-icon-activity {
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-nav-icon-activity::before,
.admin-nav-icon-activity::after {
  content: none;
}

.admin-nav-label {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.admin-nav-badge {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
}

.admin-workspace {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 18px;
  transition: none;
}

.admin-section {
  display: grid;
  align-content: start;
  gap: 18px;
  will-change: opacity;
}

.admin-section-head {
  display: grid;
  gap: 10px;
  padding: 8px 4px 2px;
}

.admin-section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.94;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-card {
  display: grid;
  gap: 16px;
}

.admin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-card-head .eyebrow {
  display: none;
}

.admin-card-head h3 {
  margin-top: 0;
}

.admin-badge {
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-strong);
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.admin-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-preview-list {
  display: grid;
  gap: 12px;
}

.admin-preview-item,
.admin-preview-empty {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.admin-preview-item strong,
.admin-preview-item span,
.admin-preview-item small {
  display: block;
}

.admin-preview-item span {
  margin-top: 6px;
  color: rgba(35, 43, 47, 0.7);
  font-size: 0.94rem;
}

.admin-preview-item small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-preview-empty {
  color: var(--muted);
  line-height: 1.6;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-report-list {
  display: grid;
  gap: 16px;
}

.admin-report-card {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(35, 43, 47, 0.06);
}

.admin-report-photo {
  min-height: 180px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--panel-soft);
  color: var(--muted);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 800;
  text-align: center;
}

.admin-report-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-report-content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.admin-report-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.admin-report-head h4 {
  margin: 6px 0 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

.admin-report-head time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-report-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.admin-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-report-grid article {
  padding: 14px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
}

.admin-report-grid strong,
.admin-report-grid span {
  display: block;
}

.admin-report-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.admin-report-details {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--text);
  background: rgba(239, 68, 68, 0.055);
  border: 1px solid rgba(239, 68, 68, 0.12);
  line-height: 1.55;
}

.admin-report-note textarea {
  min-height: 92px;
}

.admin-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-report-action {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.admin-report-action:hover {
  transform: translateY(-1px);
}

.admin-report-action:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.2);
  outline-offset: 3px;
}

.admin-report-action:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.admin-report-action.is-danger {
  border: 1.5px solid #dc2626;
  background: transparent;
  color: #dc2626;
}

.admin-report-action.is-danger:hover {
  background: rgba(239, 68, 68, 0.06);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12);
}

.admin-report-action.is-primary {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 14px 24px rgba(var(--accent-rgb), 0.18);
}

.admin-report-action.is-secondary {
  border: 0;
  color: var(--text);
  background: rgba(35, 43, 47, 0.07);
}

.admin-category-cancel-button {
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(35, 43, 47, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(35, 43, 47, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.admin-category-cancel-button:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 18px 30px rgba(35, 43, 47, 0.12);
}

.admin-category-cancel-button:disabled {
  opacity: 0.56;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.admin-category-form {
  display: grid;
  gap: 16px;
}

.admin-category-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.admin-category-color-field {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-category-color-picker {
  width: 56px;
  height: 56px;
  padding: 4px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
}

.admin-category-icon-picker {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed rgba(var(--accent-rgb), 0.28);
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.04);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.admin-category-icon-picker:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.07);
}

.admin-category-icon-picker.has-file {
  border-style: solid;
  background: rgba(var(--accent-rgb), 0.09);
}

.admin-category-icon-picker strong {
  font-size: 0.98rem;
}

.admin-category-icon-picker-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4 11-11 3 3-11 11-4 1Z'/%3E%3Cline x1='14' y1='6' x2='17' y2='9'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4 11-11 3 3-11 11-4 1Z'/%3E%3Cline x1='14' y1='6' x2='17' y2='9'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.admin-category-preview {
  --admin-category-color: #07b63c;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}

.admin-category-preview strong,
.admin-category-preview p {
  margin: 0;
}

.admin-category-preview p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-category-preview-icon,
.admin-category-list-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-category-preview-icon::before,
.admin-category-list-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--admin-category-color, var(--accent));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4 11-11 3 3-11 11-4 1Z'/%3E%3Cline x1='14' y1='6' x2='17' y2='9'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4 11-11 3 3-11 11-4 1Z'/%3E%3Cline x1='14' y1='6' x2='17' y2='9'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}

.admin-category-preview-icon.has-image::before,
.admin-category-list-icon.has-image::before {
  display: none;
}

.admin-category-preview-icon.has-image img,
.admin-category-list-icon.has-image img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.admin-category-list {
  display: grid;
  gap: 12px;
}

.admin-category-list-item {
  --admin-category-color: #07b63c;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
}

.admin-category-list-item.is-editing {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 18px 36px rgba(var(--accent-rgb), 0.1);
}

.admin-category-list-copy strong,
.admin-category-list-copy span {
  display: block;
}

.admin-category-list-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-category-list-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.admin-category-list-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-category-color-badge,
.admin-category-system-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-category-color-badge {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.admin-category-system-badge {
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.12);
}

.admin-category-list-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-category-edit-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.admin-category-edit-button:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.12);
}

.admin-category-edit-button.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(var(--accent-rgb), 0.18);
}

.moderation-list {
  display: grid;
  gap: 18px;
}

.moderation-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
}

.moderation-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.moderation-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
}

.moderation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moderation-photo--single {
  grid-column: 1 / -1;
  aspect-ratio: 1.2;
}

.moderation-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.moderation-meta .eyebrow {
  display: none;
}

.moderation-meta h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.moderation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.moderation-grid article,
.moderation-empty {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.moderation-grid strong,
.moderation-grid span {
  display: block;
}

.moderation-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 6px;
  line-height: 1.45;
}

.moderation-note {
  min-height: 110px;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.moderation-approve,
.moderation-reject {
  min-width: 160px;
  justify-content: center;
}

.moderation-reject {
  background: linear-gradient(135deg, #273033 0%, #31393d 100%);
  color: var(--white);
}

.moderation-empty {
  text-align: center;
}

.moderation-empty .eyebrow {
  display: none;
}

.moderation-empty h3 {
  margin-top: 0;
}

.not-found-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
}

.not-found-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0 0;
}

.not-found-shell {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.not-found-code {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: var(--brand-letter-spacing);
  color: var(--text);
}

.not-found-shell .primary-button {
  margin-top: 6px;
}

/* 404 reference layout */
body[data-page="404"] {
  --not-found-green: #009b36;
  --not-found-green-dark: #078c34;
  --not-found-ink: #11191d;
  --not-found-muted: #707b80;
  --not-found-border: rgba(17, 25, 29, 0.08);
  --not-found-shadow: 0 24px 60px rgba(17, 25, 29, 0.075);
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(0, 155, 54, 0.045), transparent 26%),
    radial-gradient(circle at 12% 9%, rgba(0, 155, 54, 0.055), transparent 24%),
    linear-gradient(180deg, #fbfdfc 0%, #f7faf8 100%);
  color: var(--not-found-ink);
}

body[data-page="404"] .site-header {
  position: fixed;
  left: 12px;
  right: 12px;
  top: 10px;
  z-index: 40;
  width: auto;
  height: 82px;
  margin: 0;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(17, 25, 29, 0.06);
  backdrop-filter: blur(18px);
  transform: none;
}

body[data-page="404"] .site-header::before {
  content: none;
  display: none;
}

body[data-page="404"] .brand-wordmark {
  flex: 0 0 auto;
  color: var(--not-found-green);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.48rem, 2vw, 1.78rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

body[data-page="404"] .header-actions {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  --not-found-header-icon-size: var(--header-icon-size);
  gap: 24px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

body[data-page="404"] .header-city-picker-anchor {
  margin-left: 34px;
}

body[data-page="404"] .header-chip-location {
  height: 44px;
  min-height: 44px;
  margin-left: 0;
  gap: 8px;
  padding: 0;
  color: var(--not-found-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 800;
}

body[data-page="404"] .header-chip-location::before {
  width: var(--not-found-header-icon-size);
  height: var(--not-found-header-icon-size);
  flex: 0 0 var(--not-found-header-icon-size);
  background: var(--not-found-green);
}

body[data-page="404"] .header-chip-location::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="404"] .not-found-city-link {
  margin-left: auto;
  color: var(--not-found-ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

body[data-page="404"] #loginButton.header-chip-auth {
  width: auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--not-found-ink);
  font-size: 0.92rem;
  font-weight: 900;
}

body[data-page="404"] .site-header:not(.auth-header) .primary-button.header-signup-button {
  min-width: 144px;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #08b942, #079b38);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(8, 185, 66, 0.24);
  font-size: 0.92rem;
  font-weight: 900;
}

body[data-page="404"] .header-notification-button,
body[data-page="404"] #logoutButton.header-chip-auth {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--not-found-ink);
  background: transparent;
  box-shadow: none;
}

body[data-page="404"] .header-notification-button:hover,
body[data-page="404"] .header-notification-button:focus-visible,
body[data-page="404"] .header-notification-button.is-open,
body[data-page="404"] .header-notification-button.has-unread,
body[data-page="404"] .header-chip-user:hover,
body[data-page="404"] #logoutButton.header-chip-auth:hover,
body[data-page="404"] #logoutButton.header-chip-auth:focus-visible,
body[data-page="404"] #logoutButton.header-chip-auth.is-logging-out {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="404"] #logoutButton.header-chip-auth::before,
body[data-page="404"] .header-notification-icon {
  width: var(--not-found-header-icon-size);
  height: var(--not-found-header-icon-size);
  flex: 0 0 var(--not-found-header-icon-size);
}

body[data-page="404"] .header-notification-button {
  color: var(--text);
}

body[data-page="404"] .header-notification-shell {
  margin-left: auto;
}

body[data-page="404"] .header-notification-badge {
  top: 5px;
  right: 4px;
}

body[data-page="404"] .header-chip-user {
  width: auto;
  min-width: 0;
  height: 50px;
  gap: 12px;
  padding: 0 4px 0 0;
  color: var(--not-found-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="404"] .header-user-chip-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--not-found-green);
  background: rgba(0, 155, 54, 0.1);
}

body[data-page="404"] .header-user-chip-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-page="404"] .header-user-chip-name,
body[data-page="404"] .header-user-chip-role {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  clip-path: none;
}

body[data-page="404"] .header-user-chip-name {
  color: var(--not-found-ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.05;
}

body[data-page="404"] .header-user-chip-role {
  color: var(--not-found-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.05;
}

body[data-page="404"] .not-found-main {
  width: min(100% - 32px, 1540px);
  min-height: 100vh;
  padding: 126px 0 54px;
}

body[data-page="404"] .not-found-shell {
  width: min(760px, 100%);
  gap: 0;
  padding-top: clamp(34px, 7vh, 92px);
}

body[data-page="404"] .not-found-illustration {
  position: relative;
  width: 278px;
  height: 142px;
  margin: 0 auto 6px;
}

body[data-page="404"] .not-found-map-art {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 228px;
  height: 86px;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 24px rgba(0, 155, 54, 0.08));
}

body[data-page="404"] .not-found-map-fold {
  position: absolute;
  top: 16px;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(0, 155, 54, 0.13), rgba(0, 155, 54, 0.04)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.32) 0 14px, transparent 14px 28px);
  clip-path: polygon(14% 0, 100% 16%, 86% 100%, 0 80%);
  opacity: 0.95;
}

body[data-page="404"] .not-found-map-fold-left {
  left: 0;
  width: 82px;
  transform: skewY(-8deg);
}

body[data-page="404"] .not-found-map-fold-center {
  left: 72px;
  width: 86px;
  transform: skewY(8deg);
}

body[data-page="404"] .not-found-map-fold-right {
  right: 0;
  width: 82px;
  transform: skewY(-8deg);
}

body[data-page="404"] .not-found-map-path {
  position: absolute;
  left: 52px;
  top: 42px;
  width: 126px;
  height: 42px;
  border-top: 3px dashed rgba(0, 155, 54, 0.42);
  border-radius: 50%;
  transform: rotate(-12deg);
}

body[data-page="404"] .not-found-pin {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 42px;
  height: 58px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #08b942, #079b38);
  box-shadow: 0 16px 28px rgba(0, 155, 54, 0.22);
  transform: translateX(-50%) rotate(-45deg);
}

body[data-page="404"] .not-found-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

body[data-page="404"] .not-found-cloud {
  position: absolute;
  width: 54px;
  height: 18px;
  border-radius: 999px;
  background: rgba(17, 25, 29, 0.065);
}

body[data-page="404"] .not-found-cloud::before,
body[data-page="404"] .not-found-cloud::after {
  content: "";
  position: absolute;
  bottom: 6px;
  border-radius: 50%;
  background: inherit;
}

body[data-page="404"] .not-found-cloud::before {
  left: 10px;
  width: 22px;
  height: 22px;
}

body[data-page="404"] .not-found-cloud::after {
  right: 10px;
  width: 28px;
  height: 28px;
}

body[data-page="404"] .not-found-cloud-left {
  left: 0;
  top: 50px;
}

body[data-page="404"] .not-found-cloud-right {
  right: 8px;
  top: 48px;
}

body[data-page="404"] .not-found-tree {
  position: absolute;
  right: 40px;
  bottom: 25px;
  width: 11px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 155, 54, 0.16);
}

body[data-page="404"] .not-found-tree::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -15px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(0, 155, 54, 0.14);
  transform: translateX(-50%);
}

body[data-page="404"] .not-found-code {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(6.8rem, 10vw, 9.1rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.86;
  background: linear-gradient(100deg, #151d20 0%, #1a2527 28%, #078c34 58%, #33c052 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 26px rgba(17, 25, 29, 0.08));
}

body[data-page="404"] .not-found-shell h2 {
  margin: 22px 0 0;
  color: var(--not-found-ink);
  font-family: "Manrope", "Sora", sans-serif;
  font-size: clamp(2.05rem, 3.3vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

body[data-page="404"] .not-found-shell p {
  display: block;
  margin: 18px 0 0;
  color: var(--not-found-muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

body[data-page="404"] .not-found-shell p + p {
  margin-top: 20px;
}

body[data-page="404"] .not-found-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 42px;
}

body[data-page="404"] .not-found-map-button,
body[data-page="404"] .not-found-home-button,
body[data-page="404"] .not-found-suggest-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

body[data-page="404"] .not-found-map-button {
  min-width: 236px;
  margin: 0;
  padding: 0 34px;
  background: linear-gradient(135deg, #08b942, #079b38);
  box-shadow: 0 20px 38px rgba(8, 185, 66, 0.25);
}

body[data-page="404"] .not-found-home-button {
  min-width: 232px;
  padding: 0 34px;
  border: 1px solid rgba(17, 25, 29, 0.13);
  background: rgba(255, 255, 255, 0.96);
  color: var(--not-found-ink);
  box-shadow: 0 14px 32px rgba(17, 25, 29, 0.04);
}

body[data-page="404"] .not-found-action-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  background: currentColor;
  -webkit-mask: var(--not-found-action-icon) center / contain no-repeat;
  mask: var(--not-found-action-icon) center / contain no-repeat;
}

body[data-page="404"] .not-found-action-icon-map {
  --not-found-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3.5 6.5v13L9 17l6 2.5 5.5-2.5v-13L15 6.5 9 4Z'/%3E%3Cline x1='9' y1='4' x2='9' y2='17'/%3E%3Cline x1='15' y1='6.5' x2='15' y2='19.5'/%3E%3C/svg%3E");
}

body[data-page="404"] .not-found-action-icon-home {
  --not-found-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11 12 4l8 7'/%3E%3Cpath d='M6 10v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-9'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E");
}

body[data-page="404"] .not-found-suggest-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(600px, 100%);
  min-height: 116px;
  margin-top: 50px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 155, 54, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 155, 54, 0.07), rgba(255, 255, 255, 0.96) 64%),
    #ffffff;
  box-shadow: var(--not-found-shadow);
  text-align: left;
}

body[data-page="404"] .not-found-suggest-icon {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 155, 54, 0.1);
}

body[data-page="404"] .not-found-suggest-icon::before {
  content: "";
  width: 34px;
  height: 42px;
  background: linear-gradient(135deg, #08b942, #079b38);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="404"] .not-found-suggest-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body[data-page="404"] .not-found-suggest-copy strong {
  color: var(--not-found-ink);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
}

body[data-page="404"] .not-found-suggest-copy span {
  color: #4d5c62;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

body[data-page="404"] .not-found-suggest-button {
  min-width: 166px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(0, 155, 54, 0.55);
  background: rgba(255, 255, 255, 0.92);
  color: var(--not-found-green);
  font-size: 0.82rem;
  box-shadow: none;
}

@media (min-width: 821px) and (max-height: 980px) {
  body[data-page="404"] {
    overflow-y: hidden;
  }

  body[data-page="404"] .not-found-main {
    height: 100svh;
    min-height: 0;
    padding: 108px 0 18px;
  }

  body[data-page="404"] .not-found-shell {
    padding-top: 18px;
  }

  body[data-page="404"] .not-found-illustration {
    width: 244px;
    height: 116px;
    margin-bottom: 0;
  }

  body[data-page="404"] .not-found-map-art {
    width: 202px;
    height: 76px;
  }

  body[data-page="404"] .not-found-pin {
    width: 38px;
    height: 52px;
  }

  body[data-page="404"] .not-found-cloud-left {
    left: 4px;
    top: 42px;
  }

  body[data-page="404"] .not-found-cloud-right {
    right: 6px;
    top: 40px;
  }

  body[data-page="404"] .not-found-code {
    font-size: clamp(6.2rem, 9vw, 8.1rem);
  }

  body[data-page="404"] .not-found-shell h2 {
    margin-top: 16px;
    font-size: clamp(1.9rem, 3vw, 2.35rem);
  }

  body[data-page="404"] .not-found-shell p {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.38;
  }

  body[data-page="404"] .not-found-shell p + p {
    margin-top: 14px;
  }

  body[data-page="404"] .not-found-actions {
    margin-top: 28px;
  }

  body[data-page="404"] .not-found-map-button,
  body[data-page="404"] .not-found-home-button {
    min-height: 50px;
  }

  body[data-page="404"] .not-found-suggest-card {
    min-height: 98px;
    margin-top: 30px;
    padding: 16px 20px;
  }

  body[data-page="404"] .not-found-suggest-icon {
    width: 62px;
    height: 62px;
  }
}

@media (min-width: 821px) and (max-height: 740px) {
  body[data-page="404"] .site-header {
    height: 72px;
    padding: 0 32px;
  }

  body[data-page="404"] .not-found-main {
    padding: 88px 0 10px;
  }

  body[data-page="404"] .not-found-shell {
    padding-top: 0;
  }

  body[data-page="404"] .not-found-illustration {
    width: 210px;
    height: 86px;
  }

  body[data-page="404"] .not-found-map-art {
    width: 176px;
    height: 62px;
    bottom: 0;
  }

  body[data-page="404"] .not-found-map-fold {
    top: 12px;
  }

  body[data-page="404"] .not-found-map-path {
    left: 42px;
    top: 34px;
    width: 96px;
    height: 32px;
  }

  body[data-page="404"] .not-found-pin {
    width: 32px;
    height: 44px;
  }

  body[data-page="404"] .not-found-pin::before {
    width: 12px;
    height: 12px;
  }

  body[data-page="404"] .not-found-cloud {
    transform: scale(0.8);
  }

  body[data-page="404"] .not-found-cloud-left {
    top: 34px;
  }

  body[data-page="404"] .not-found-cloud-right {
    top: 32px;
  }

  body[data-page="404"] .not-found-tree {
    right: 36px;
    bottom: 16px;
    height: 22px;
  }

  body[data-page="404"] .not-found-code {
    font-size: clamp(5.4rem, 8vw, 6.9rem);
  }

  body[data-page="404"] .not-found-shell h2 {
    margin-top: 12px;
    font-size: clamp(1.72rem, 2.7vw, 2.05rem);
  }

  body[data-page="404"] .not-found-shell p {
    margin-top: 9px;
    font-size: 0.88rem;
    line-height: 1.32;
  }

  body[data-page="404"] .not-found-shell p + p {
    margin-top: 10px;
  }

  body[data-page="404"] .not-found-actions {
    margin-top: 18px;
  }

  body[data-page="404"] .not-found-map-button,
  body[data-page="404"] .not-found-home-button {
    min-height: 46px;
  }

  body[data-page="404"] .not-found-suggest-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    min-height: 82px;
    margin-top: 18px;
    padding: 12px 18px;
  }

  body[data-page="404"] .not-found-suggest-icon {
    width: 54px;
    height: 54px;
  }

  body[data-page="404"] .not-found-suggest-copy {
    gap: 4px;
  }

  body[data-page="404"] .not-found-suggest-copy strong {
    font-size: 0.92rem;
  }

  body[data-page="404"] .not-found-suggest-copy span {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  body[data-page="404"] .not-found-suggest-button {
    min-height: 38px;
    min-width: 154px;
    padding: 0 16px;
  }
}

@media (max-width: 820px) {
  body[data-page="404"] .site-header {
    left: 8px;
    right: 8px;
    height: auto;
    min-height: 76px;
    padding: 12px 18px;
    border-radius: 24px;
  }

  body[data-page="404"] .header-actions {
    gap: 12px;
  }

  body[data-page="404"] .header-city-picker-anchor,
  body[data-page="404"] .not-found-city-link,
  body[data-page="404"] .header-user-chip-copy {
    display: none;
  }

  body[data-page="404"] .not-found-main {
    width: min(100% - 24px, 1540px);
    padding-top: 116px;
  }

  body[data-page="404"] .not-found-shell {
    padding-top: 30px;
  }

  body[data-page="404"] .not-found-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 34px;
  }

  body[data-page="404"] .not-found-map-button,
  body[data-page="404"] .not-found-home-button {
    width: min(100%, 320px);
  }

  body[data-page="404"] .not-found-suggest-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    padding: 18px 14px;
  }

  .workflow-page[data-page="add-place"] {
    height: auto;
    overflow: visible;
  }

  .workflow-page[data-page="add-place"] .workflow-shell {
    display: block;
    padding: 24px 0 56px;
  }

  .workflow-page[data-page="add-place"] .workflow-layout {
    min-height: auto;
  }

  .workflow-page[data-page="add-place"] .workflow-panel,
  .workflow-page[data-page="add-place"] .workflow-map-card {
    height: auto;
  }

  .workflow-page[data-page="add-place"] .workflow-panel {
    overflow: visible;
  }

  .workflow-page[data-page="add-place"] .workflow-form {
    overflow: visible;
    padding-right: 0;
  }

  .workflow-layout,
  .moderation-card,
  .admin-report-card {
    grid-template-columns: 1fr;
  }

  .workflow-map-card {
    min-height: 540px;
  }

  .workflow-category-list {
    grid-template-columns: 1fr;
  }

  .workflow-time-builder {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-nav-button {
    padding: 11px 12px;
  }

  .admin-sidebar-head h1 {
    font-size: 1.08rem;
  }

  .admin-section-head h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .workflow-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 24px;
  }

  .workflow-panel,
  .workflow-map-card,
  .moderation-card,
  .admin-card,
  .not-found-shell,
  .moderation-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .not-found-main {
    width: min(100% - 20px, 1440px);
    padding-top: 24px;
  }

  .workflow-photo-grid,
  .moderation-grid,
  .admin-report-grid {
    grid-template-columns: 1fr;
  }

  .admin-report-head,
  .admin-report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-report-action {
    width: 100%;
  }

  .admin-category-form-row,
  .admin-category-list-item {
    grid-template-columns: 1fr;
  }

  .admin-category-list-side {
    justify-items: start;
  }

  .admin-category-list-meta {
    justify-content: flex-start;
  }

  .admin-category-list-actions {
    justify-content: flex-start;
  }

  .moderation-photos {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-map {
    min-height: 360px;
  }

  .workflow-photo-picker {
    min-height: 138px;
  }

  .workflow-category-card {
    min-height: 76px;
  }

  .workflow-day-list {
    gap: 8px;
  }

  .workflow-day-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .workflow-time-panel {
    --wheel-row-height: 32px;
    min-height: 184px;
    padding: 12px;
    border-radius: 22px;
  }

  .workflow-time-wheel {
    width: 100%;
    height: calc(var(--wheel-row-height) * 5);
  }

  .workflow-time-option {
    font-size: 2.1rem;
  }

  .workflow-time-panel-body {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    max-width: 152px;
    gap: 6px;
  }

  .workflow-time-separator {
    width: 16px;
    font-size: 2rem;
  }
}

/* Admin dashboard reference layout */
body[data-page="admin"] {
  --admin-ref-green: #009b36;
  --admin-ref-green-dark: #078c34;
  --admin-ref-ink: #11191d;
  --admin-ref-muted: #69767b;
  --admin-ref-border: rgba(17, 25, 29, 0.075);
  --admin-ref-shadow: 0 22px 56px rgba(17, 25, 29, 0.08);
  --admin-ref-soft-shadow: 0 14px 34px rgba(17, 25, 29, 0.055);
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 5%, rgba(0, 155, 54, 0.08), transparent 27%),
    linear-gradient(180deg, #fbfdfc 0%, #f5f7f6 100%);
  color: var(--admin-ref-ink);
}

body[data-page="admin"] .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  width: 100%;
  height: 76px;
  margin: 0;
  padding: 0 52px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(17, 25, 29, 0.04), 0 12px 32px rgba(17, 25, 29, 0.04);
  backdrop-filter: blur(18px);
  transform: none;
}

body[data-page="admin"] .site-header::before {
  content: none;
  display: none;
}

body[data-page="admin"] .brand-wordmark {
  flex: 0 0 auto;
  color: var(--admin-ref-green);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

body[data-page="admin"] .header-actions {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  --admin-header-icon-size: var(--header-icon-size);
  gap: 24px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

body[data-page="admin"] .header-city-picker-anchor {
  margin-left: 34px;
}

body[data-page="admin"] .header-chip-location {
  height: 44px;
  min-height: 44px;
  margin-left: 0;
  gap: 8px;
  padding: 0;
  color: var(--admin-ref-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 800;
}

body[data-page="admin"] .header-chip-location::before {
  width: var(--admin-header-icon-size);
  height: var(--admin-header-icon-size);
  flex: 0 0 var(--admin-header-icon-size);
  background: var(--admin-ref-green);
}

body[data-page="admin"] .header-chip-location::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="admin"] .profile-header-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  margin-left: auto;
  padding: 0;
  color: var(--admin-ref-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    color 160ms ease;
}

body[data-page="admin"] .profile-header-map-link::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background: var(--admin-ref-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3.5 6.5v13L9 17l6 2.5 5.5-2.5v-13L15 6.5 9 4Z'/%3E%3Cline x1='9' y1='4' x2='9' y2='17'/%3E%3Cline x1='15' y1='6.5' x2='15' y2='19.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3.5 6.5v13L9 17l6 2.5 5.5-2.5v-13L15 6.5 9 4Z'/%3E%3Cline x1='9' y1='4' x2='9' y2='17'/%3E%3Cline x1='15' y1='6.5' x2='15' y2='19.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="admin"] .profile-header-map-link:hover,
body[data-page="admin"] .profile-header-map-link:focus-visible {
  transform: translateY(-1px);
  color: var(--admin-ref-ink);
}

/* Icon-only map link: hide the "Карта" label (kept for screen readers) and
   render the icon in the theme ink (white on dark) instead of green. */
body[data-page="admin"] .profile-header-map-link {
  font-size: 0;
  gap: 0;
  width: 42px;
}
body[data-page="admin"] .profile-header-map-link::before {
  background: var(--admin-ref-ink);
}

body[data-page="admin"] .header-notification-button,
body[data-page="admin"] #logoutButton.header-chip-auth {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--admin-ref-ink);
  background: transparent;
  box-shadow: none;
}

body[data-page="admin"] .header-notification-button:hover,
body[data-page="admin"] .header-notification-button:focus-visible,
body[data-page="admin"] .header-notification-button.is-open,
body[data-page="admin"] .header-notification-button.has-unread,
body[data-page="admin"] .header-chip-user:hover,
body[data-page="admin"] #logoutButton.header-chip-auth:hover,
body[data-page="admin"] #logoutButton.header-chip-auth:focus-visible,
body[data-page="admin"] #logoutButton.header-chip-auth.is-logging-out {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="admin"] #logoutButton.header-chip-auth::before,
body[data-page="admin"] .header-notification-icon {
  width: var(--admin-header-icon-size);
  height: var(--admin-header-icon-size);
  flex: 0 0 var(--admin-header-icon-size);
}

body[data-page="admin"] .header-notification-button {
  color: var(--admin-ref-ink);
}

body[data-page="admin"] .header-notification-badge {
  top: 5px;
  right: 4px;
}

body[data-page="admin"] .header-chip-user {
  width: auto;
  min-width: 0;
  height: 50px;
  gap: 12px;
  padding: 0 4px 0 0;
  color: var(--admin-ref-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="admin"] .header-user-chip-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--admin-ref-green);
  background: rgba(0, 155, 54, 0.1);
}

/* The admin avatar is 42px, but without an icon-size override the fallback
   person glyph stayed at the base 22px and read as small/off-centre in the
   larger circle. Scale it up so it sits centred and fills the circle. */
body[data-page="admin"] .header-user-chip-avatar-fallback::before {
  width: 24px;
  height: 24px;
}

body[data-page="admin"] .header-user-chip-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-page="admin"] .header-user-chip-name,
body[data-page="admin"] .header-user-chip-role {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  clip-path: none;
}

body[data-page="admin"] .header-user-chip-name {
  color: var(--admin-ref-ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.05;
}

body[data-page="admin"] .header-user-chip-role {
  color: var(--admin-ref-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.05;
}

body[data-page="admin"] #loginButton.header-chip-auth,
body[data-page="admin"] .site-header:not(.auth-header) .primary-button.header-signup-button {
  color: var(--admin-ref-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 800;
}

body[data-page="admin"] .site-header:not(.auth-header) .primary-button.header-signup-button {
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--admin-ref-green), var(--admin-ref-green-dark));
  box-shadow: 0 14px 28px rgba(0, 155, 54, 0.22);
}

body[data-page="admin"] .admin-shell {
  width: min(1816px, calc(100% - 64px));
  padding: 104px 0 26px;
}

body[data-page="admin"] .admin-dashboard {
  display: grid;
  grid-template-columns: minmax(286px, 348px) minmax(0, 1fr);
  gap: clamp(40px, 4vw, 62px);
  align-items: start;
}

body[data-page="admin"] .admin-sidebar {
  position: sticky;
  top: 104px;
  min-height: calc(100vh - 132px);
  gap: 24px;
  align-content: start;
  grid-auto-rows: max-content;
  padding: 34px 26px;
  border: 1px solid rgba(17, 25, 29, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--admin-ref-shadow);
  backdrop-filter: blur(18px);
}

body[data-page="admin"] .admin-sidebar-head {
  padding: 0 6px;
}

body[data-page="admin"] .admin-sidebar-head h1 {
  margin: 0;
  color: var(--admin-ref-ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

body[data-page="admin"] .admin-nav {
  display: grid;
  gap: 12px;
}

body[data-page="admin"] .admin-nav-button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #738085;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: left;
  box-shadow: none;
}

body[data-page="admin"] .admin-nav-button:hover {
  background: rgba(17, 25, 29, 0.035);
  color: var(--admin-ref-ink);
}

body[data-page="admin"] .admin-nav-button.is-active {
  background: linear-gradient(90deg, rgba(0, 155, 54, 0.12), rgba(0, 155, 54, 0.06));
  color: var(--admin-ref-green);
}

body[data-page="admin"] .admin-nav-icon {
  width: 22px;
  height: 22px;
  opacity: 1;
}

body[data-page="admin"] .admin-nav-badge {
  min-width: 31px;
  height: 31px;
  padding: 0 9px;
  background: rgba(17, 25, 29, 0.06);
  color: #748186;
  font-size: 0.82rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-nav-button.is-active .admin-nav-badge {
  background: rgba(0, 155, 54, 0.14);
  color: var(--admin-ref-green);
}

body[data-page="admin"] .admin-nav-icon-users::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="admin"] .admin-workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  transition: none;
}

body[data-page="admin"] .admin-section {
  display: grid;
  align-content: start;
  gap: 20px;
}

body[data-page="admin"] .admin-section-head {
  gap: 8px;
  padding: 30px 0 8px;
}

body[data-page="admin"] .admin-section-head h2 {
  margin: 0;
  color: var(--admin-ref-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.35rem, 3.1vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

body[data-page="admin"] .admin-section-head p {
  margin: 0;
  color: #58676d;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

body[data-page="admin"] .admin-card {
  border: 1px solid rgba(17, 25, 29, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--admin-ref-soft-shadow);
  backdrop-filter: blur(18px);
  align-content: start;
}

body[data-page="admin"] .admin-category-create-card {
  display: block;
  position: relative;
  min-height: 326px;
  padding: 28px 28px 26px;
}

body[data-page="admin"] .admin-card-head {
  margin-bottom: 18px;
}

body[data-page="admin"] .admin-card-head h3 {
  margin: 0;
  color: var(--admin-ref-ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

body[data-page="admin"] .admin-card-head p {
  margin: 8px 0 0;
  color: #59686e;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

body[data-page="admin"] .admin-category-form {
  display: grid;
  gap: 22px;
}

body[data-page="admin"] .admin-category-form-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.8fr) minmax(170px, 0.72fr) minmax(190px, 0.86fr);
  align-items: end;
  gap: 18px;
  padding-right: 424px;
}

body[data-page="admin"] .workflow-field {
  gap: 10px;
}

body[data-page="admin"] .workflow-field > span {
  color: var(--admin-ref-ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

body[data-page="admin"] .workflow-field input:not(.workflow-file-input),
body[data-page="admin"] .workflow-field select,
body[data-page="admin"] .workflow-field textarea,
body[data-page="admin"] .admin-category-search input,
body[data-page="admin"] .admin-category-sort select {
  height: 52px;
  padding: 0 17px;
  border: 1px solid rgba(17, 25, 29, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--admin-ref-ink);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: none;
}

body[data-page="admin"] .workflow-field input:not(.workflow-file-input)::placeholder,
body[data-page="admin"] .admin-category-search input::placeholder {
  color: #9aa4a8;
  font-weight: 700;
}

body[data-page="admin"] .admin-category-color-field {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

body[data-page="admin"] .admin-category-color-picker {
  appearance: none;
  width: 42px;
  height: 42px;
  align-self: center;
  padding: 4px;
  border: 1px solid rgba(17, 25, 29, 0.08);
  border-radius: 8px;
  background: #07b63c;
  cursor: pointer;
}

body[data-page="admin"] .admin-category-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

body[data-page="admin"] .admin-category-color-picker::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}

body[data-page="admin"] .admin-category-icon-picker {
  min-height: 52px;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px dashed rgba(0, 155, 54, 0.28);
  border-radius: 14px;
  background: rgba(0, 155, 54, 0.04);
  color: var(--admin-ref-ink);
}

body[data-page="admin"] .admin-category-icon-picker-icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16v3a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3'/%3E%3Cline x1='12' y1='15' x2='12' y2='4'/%3E%3Cpolyline points='8 8 12 4 16 8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16v3a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3'/%3E%3Cline x1='12' y1='15' x2='12' y2='4'/%3E%3Cpolyline points='8 8 12 4 16 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="admin"] .admin-category-icon-picker strong {
  font-size: 0.92rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-category-preview-panel {
  position: absolute;
  top: 32px;
  right: 28px;
  width: min(380px, calc(100% - 56px));
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 24px 22px;
  border: 1px solid rgba(17, 25, 29, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

body[data-page="admin"] .admin-category-preview-panel > strong {
  color: var(--admin-ref-ink);
  font-size: 0.96rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-category-preview-panel > span {
  color: var(--admin-ref-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

body[data-page="admin"] .admin-category-preview {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(17, 25, 29, 0.055);
}

body[data-page="admin"] .admin-category-preview-icon,
body[data-page="admin"] .admin-category-list-icon {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--admin-category-color, var(--admin-ref-green));
}

body[data-page="admin"] .admin-category-preview-icon::before,
body[data-page="admin"] .admin-category-list-icon::before {
  width: 22px;
  height: 22px;
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h11v6a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V7Z'/%3E%3Cpath d='M15 9h2a3 3 0 0 1 0 6h-2'/%3E%3Cpath d='M6 3v2'/%3E%3Cpath d='M10 3v2'/%3E%3Cpath d='M14 3v2'/%3E%3Cpath d='M4 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h11v6a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V7Z'/%3E%3Cpath d='M15 9h2a3 3 0 0 1 0 6h-2'/%3E%3Cpath d='M6 3v2'/%3E%3Cpath d='M10 3v2'/%3E%3Cpath d='M14 3v2'/%3E%3Cpath d='M4 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="admin"] .admin-category-preview strong {
  color: var(--admin-ref-ink);
  font-size: 0.96rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-category-preview p {
  margin-top: 5px;
  color: #59686e;
  font-size: 0.9rem;
  font-weight: 800;
}

body[data-page="admin"] .admin-category-preview-pin {
  width: 22px;
  height: 22px;
  background: var(--admin-category-color, var(--admin-ref-green));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="admin"] .admin-card-actions {
  justify-content: flex-end;
  gap: 14px;
  margin-top: 6px;
}

body[data-page="admin"] .admin-category-create-card .admin-card-actions {
  margin-top: 58px;
}

body[data-page="admin"] .admin-category-cancel-button,
body[data-page="admin"] .admin-card-actions .primary-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

body[data-page="admin"] .admin-category-cancel-button {
  border: 1px solid rgba(17, 25, 29, 0.1);
  background: #ffffff;
  color: var(--admin-ref-ink);
  box-shadow: none;
}

body[data-page="admin"] .admin-card-actions .primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--admin-ref-green), var(--admin-ref-green-dark));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 155, 54, 0.24);
}

body[data-page="admin"] .admin-category-table-card {
  padding: 24px 26px 22px;
}

body[data-page="admin"] .admin-category-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) minmax(180px, 220px);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

body[data-page="admin"] .admin-category-search,
body[data-page="admin"] .admin-category-sort {
  position: relative;
  display: grid;
  align-items: center;
}

body[data-page="admin"] .admin-category-search span,
body[data-page="admin"] .admin-category-sort span {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  background: #768489;
  pointer-events: none;
}

body[data-page="admin"] .admin-category-search span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="admin"] .admin-category-sort span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='M12 4v16'/%3E%3Cpath d='m17 9-5-5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='M12 4v16'/%3E%3Cpath d='m17 9-5-5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="admin"] .admin-category-search input,
body[data-page="admin"] .admin-category-sort select {
  width: 100%;
  padding-left: 46px;
}

body[data-page="admin"] .admin-category-sort select {
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

body[data-page="admin"] .admin-category-filters {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

body[data-page="admin"] .admin-category-filter {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(17, 25, 29, 0.075);
  border-radius: 14px;
  background: #ffffff;
  color: #607077;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-category-filter.is-active {
  border-color: rgba(0, 155, 54, 0.14);
  background: rgba(0, 155, 54, 0.1);
  color: var(--admin-ref-green);
}

body[data-page="admin"] .admin-category-table {
  display: grid;
}

body[data-page="admin"] .admin-category-table-head,
body[data-page="admin"] .admin-category-list-item {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(150px, 0.7fr) minmax(86px, 0.45fr) minmax(150px, 0.7fr) minmax(210px, 0.88fr);
  gap: 18px;
  align-items: center;
}

body[data-page="admin"] .admin-category-table-head {
  min-height: 34px;
  padding: 0 8px;
  color: #7c898e;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-category-list {
  display: grid;
}

body[data-page="admin"] .admin-category-list-item {
  min-height: 70px;
  padding: 0 8px;
  border-width: 1px 0 0;
  border-style: solid;
  border-color: rgba(17, 25, 29, 0.075);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="admin"] .admin-category-list-item.is-editing {
  background: rgba(0, 155, 54, 0.035);
  box-shadow: none;
}

body[data-page="admin"] .admin-category-list-name,
body[data-page="admin"] .admin-category-list-color,
body[data-page="admin"] .admin-category-list-actions {
  display: flex;
  align-items: center;
}

body[data-page="admin"] .admin-category-list-name {
  gap: 14px;
}

body[data-page="admin"] .admin-category-list-copy strong,
body[data-page="admin"] .admin-category-list-copy span {
  display: block;
}

body[data-page="admin"] .admin-category-list-copy strong {
  color: var(--admin-ref-ink);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.2;
}

body[data-page="admin"] .admin-category-list-copy span {
  margin-top: 4px;
  color: #68767b;
  font-size: 0.86rem;
  font-weight: 700;
}

body[data-page="admin"] .admin-category-list-color {
  gap: 12px;
  color: #59686e;
  font-size: 0.88rem;
  font-weight: 800;
}

body[data-page="admin"] .admin-category-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--admin-category-color, var(--admin-ref-green));
}

body[data-page="admin"] .admin-category-list-places {
  color: #344147;
  font-size: 0.9rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-category-system-badge {
  min-height: 27px;
  padding: 0 14px;
  border: 1px solid rgba(0, 155, 54, 0.12);
  border-radius: 999px;
  background: rgba(0, 155, 54, 0.1);
  color: var(--admin-ref-green);
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-category-list-actions {
  justify-content: flex-end;
  gap: 12px;
}

body[data-page="admin"] .admin-category-edit-button {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(17, 25, 29, 0.09);
  border-radius: 14px;
  background: #ffffff;
  color: var(--admin-ref-green);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: none;
}

body[data-page="admin"] .admin-category-edit-button:hover,
body[data-page="admin"] .admin-category-edit-button.is-active {
  transform: translateY(-1px);
  border-color: rgba(0, 155, 54, 0.18);
  background: rgba(0, 155, 54, 0.08);
  color: var(--admin-ref-green);
  box-shadow: none;
}

body[data-page="admin"] .admin-category-menu-button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 25, 29, 0.09);
  border-radius: 14px;
  background: #ffffff;
  color: var(--admin-ref-ink);
}

body[data-page="admin"] .admin-category-menu-button::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='0.3'/%3E%3Ccircle cx='12' cy='12' r='0.3'/%3E%3Ccircle cx='12' cy='19' r='0.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='0.3'/%3E%3Ccircle cx='12' cy='12' r='0.3'/%3E%3Ccircle cx='12' cy='19' r='0.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="admin"] .admin-category-table-empty {
  margin-top: 12px;
  border-radius: 14px;
}

body[data-page="admin"] .workflow-message {
  border-radius: 14px;
}

/* The wide "category" layout puts the preview panel absolutely in a 424px
   reserve beside a 4-column form (~1314px min), which only fits at ~1788px+
   viewport. Below that, stack the form (2 cols) and flow the preview below so
   nothing is clipped off the right edge. */
@media (max-width: 1800px) {
  body[data-page="admin"] .site-header {
    padding: 0 32px;
  }

  body[data-page="admin"] .admin-shell {
    width: min(100% - 48px, 1816px);
  }

  body[data-page="admin"] .admin-category-form-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 0;
  }

  body[data-page="admin"] .admin-category-preview-panel {
    position: static;
    width: auto;
    grid-column: 1 / -1;
  }

  body[data-page="admin"] .admin-category-toolbar,
  body[data-page="admin"] .admin-category-table-head,
  body[data-page="admin"] .admin-category-list-item {
    grid-template-columns: minmax(240px, 1.5fr) minmax(120px, 0.65fr) minmax(70px, 0.4fr) minmax(130px, 0.65fr) minmax(180px, 0.9fr);
  }
}

@media (max-width: 1024px) {
  body[data-page="admin"] .admin-dashboard {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .admin-sidebar {
    position: static;
    min-height: 0;
  }

  body[data-page="admin"] .admin-category-toolbar {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .admin-category-filters {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  body[data-page="admin"] .site-header {
    height: auto;
    min-height: 76px;
    padding: 12px 18px;
    align-items: center;
  }

  body[data-page="admin"] .header-actions {
    gap: 12px;
  }

  body[data-page="admin"] .header-city-picker-anchor,
  body[data-page="admin"] .profile-header-map-link,
  body[data-page="admin"] .header-user-chip-copy {
    display: none;
  }

  body[data-page="admin"] .admin-shell {
    width: min(100% - 24px, 1816px);
    padding-top: 98px;
  }

  body[data-page="admin"] .admin-category-form-layout,
  body[data-page="admin"] .admin-category-table-head,
  body[data-page="admin"] .admin-category-list-item {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .admin-category-table-head {
    display: none;
  }

  body[data-page="admin"] .admin-category-list-item {
    gap: 10px;
    align-items: start;
    padding: 16px 0;
  }

  body[data-page="admin"] .admin-category-list-actions {
    justify-content: flex-start;
  }
}

/* Admin moderation/reports polish */
body[data-page="admin"] .admin-section[hidden] {
  display: none !important;
}

body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-card {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, auto);
  grid-template-areas:
    "head actions"
    "copy actions"
    "list actions";
  align-items: end;
  column-gap: 34px;
  row-gap: 14px;
  min-height: 244px;
  padding: 28px;
}

body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-card-head {
  grid-area: head;
  align-self: start;
}

body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-card-copy {
  grid-area: copy;
  max-width: 720px;
  color: #5f6d72;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-preview-list,
body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-report-list {
  grid-area: list;
  width: min(100%, 720px);
}

body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-preview-empty {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 18px 22px 18px 72px;
  border: 1px solid rgba(0, 155, 54, 0.12);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 155, 54, 0.075), rgba(255, 255, 255, 0.96));
  color: #59686e;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.45;
}

body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-preview-empty::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 155, 54, 0.12);
  transform: translateY(-50%);
}

body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-preview-empty::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--admin-ref-green);
  transform: translateY(-50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9 17.5 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9 17.5 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Dark theme: the empty-state card faded to near-white on the right, washing
   out its text. Keep a subtle green→dark surface wash and readable ink. */
:root[data-theme="dark"]
  body[data-page="admin"]
  .admin-section:not(.admin-categories-section)
  .admin-preview-empty {
  background: linear-gradient(135deg, rgba(0, 155, 54, 0.16), rgba(23, 30, 26, 0.92));
  border-color: rgba(0, 155, 54, 0.24);
  color: var(--text);
}

body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-card-actions {
  grid-area: actions;
  align-self: end;
  justify-content: flex-end;
  margin-top: 0;
}

body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-card-actions .primary-button {
  min-width: 268px;
}

@media (max-width: 980px) {
  body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "copy"
      "list"
      "actions";
  }

  body[data-page="admin"] .admin-section:not(.admin-categories-section) .admin-card-actions {
    justify-content: flex-start;
  }
}

/* Activity log ("Журнал изменений") */
body[data-page="admin"] .admin-section[data-admin-section="activity"] .admin-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  min-height: 244px;
  padding: 28px;
}

body[data-page="admin"] .admin-activity-card .admin-card-head {
  margin-bottom: 0;
  align-items: center;
}

.admin-activity-total {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--admin-ref-muted);
  white-space: nowrap;
}

.admin-activity-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(168px, 220px) minmax(168px, 220px);
  gap: 14px;
  align-items: center;
}

.admin-activity-search,
.admin-activity-select {
  position: relative;
  display: grid;
  align-items: center;
}

.admin-activity-search > span,
.admin-activity-select > span {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  background: #768489;
  pointer-events: none;
}

.admin-activity-search > span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-activity-select > span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='8 9 12 5 16 9'/%3E%3Cpolyline points='8 15 12 19 16 15'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='8 9 12 5 16 9'/%3E%3Cpolyline points='8 15 12 19 16 15'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-activity-search input,
.admin-activity-select select {
  width: 100%;
  height: 52px;
  padding: 0 17px 0 46px;
  border: 1px solid rgba(17, 25, 29, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--admin-ref-ink);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
}

.admin-activity-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.admin-activity-search input::placeholder {
  color: #9aa4a8;
  font-weight: 700;
}

.admin-activity-search input:focus,
.admin-activity-select select:focus {
  outline: none;
  border-color: rgba(0, 155, 54, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 155, 54, 0.12);
}

.admin-activity-list {
  display: grid;
  gap: 10px;
}

.admin-activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--admin-ref-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
}

.admin-activity-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 25, 29, 0.06);
  color: #59686e;
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-activity-avatar[data-kind="admin"] {
  background: rgba(0, 155, 54, 0.12);
  color: var(--admin-ref-green);
}

.admin-activity-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-activity-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-activity-actor {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--admin-ref-ink);
}

.admin-activity-chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(17, 25, 29, 0.06);
  color: #5f6d72;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.admin-activity-chip[data-kind="admin"] {
  background: rgba(0, 155, 54, 0.12);
  color: var(--admin-ref-green);
}

.admin-activity-summary {
  color: #3a474c;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.admin-activity-meta {
  color: var(--admin-ref-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-activity-time {
  align-self: start;
  color: var(--admin-ref-muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-activity-footer {
  display: flex;
  justify-content: center;
}

.admin-activity-more {
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(0, 155, 54, 0.18);
  border-radius: 14px;
  background: rgba(0, 155, 54, 0.08);
  color: var(--admin-ref-green);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.admin-activity-more:hover {
  background: rgba(0, 155, 54, 0.14);
}

.admin-activity-more:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 720px) {
  .admin-activity-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-activity-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .admin-activity-time {
    grid-column: 2;
  }
}

/* Admin user management ("Пользователи") */
body[data-page="admin"] .admin-section[data-admin-section="users"] .admin-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  min-height: 244px;
  padding: 28px;
}

body[data-page="admin"] .admin-users-card .admin-card-head {
  margin-bottom: 0;
  align-items: center;
}

.admin-users-total {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--admin-ref-muted);
  white-space: nowrap;
}

body[data-page="admin"] .admin-users-toolbar {
  grid-template-columns: minmax(200px, 1fr) minmax(150px, 200px) minmax(150px, 200px);
}

.admin-users-list {
  display: grid;
  gap: 10px;
}

.admin-user-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--admin-ref-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
}

.admin-user-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 25, 29, 0.06);
  color: #59686e;
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-user-avatar[data-kind="admin"] {
  background: rgba(0, 155, 54, 0.12);
  color: var(--admin-ref-green);
}

.admin-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-user-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-user-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-user-name {
  min-width: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--admin-ref-ink);
}

.admin-user-role {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(17, 25, 29, 0.06);
  color: #5f6d72;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.admin-user-role[data-kind="admin"] {
  background: rgba(0, 155, 54, 0.12);
  color: var(--admin-ref-green);
}

.admin-user-meta {
  color: var(--admin-ref-muted);
  font-size: 0.84rem;
  font-weight: 600;
  word-break: break-word;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-user-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 155, 54, 0.2);
  background: rgba(0, 155, 54, 0.08);
  color: var(--admin-ref-green);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-user-action:hover {
  background: rgba(0, 155, 54, 0.14);
}

.admin-user-action.is-ghost {
  border-color: rgba(17, 25, 29, 0.12);
  background: #fff;
  color: #51606a;
}

.admin-user-action.is-ghost:hover {
  background: rgba(17, 25, 29, 0.05);
}

.admin-user-action.is-danger {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.07);
  color: #c0392b;
}

.admin-user-action.is-danger:hover {
  background: rgba(220, 38, 38, 0.12);
}

.admin-user-action:disabled {
  opacity: 0.55;
  cursor: default;
}

.admin-user-role[data-kind="deleted"] {
  background: rgba(220, 38, 38, 0.12);
  color: #c0392b;
}

.admin-user-avatar[data-kind="deleted"] {
  background: rgba(220, 38, 38, 0.1);
  color: #c0392b;
}

.admin-user-item.is-deleted {
  border-color: rgba(220, 38, 38, 0.14);
  background: rgba(220, 38, 38, 0.03);
}

.admin-user-self {
  flex: 0 0 auto;
  color: var(--admin-ref-muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  body[data-page="admin"] .admin-users-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-user-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .admin-user-actions,
  .admin-user-self {
    grid-column: 2;
    justify-self: start;
  }
}

/* Admin user edit modal */
body.admin-modal-is-open {
  overflow: hidden;
}

.admin-user-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 25, 29, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-user-modal-overlay.is-visible {
  opacity: 1;
}

.admin-user-modal {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(17, 25, 29, 0.25);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.admin-user-modal-overlay.is-visible .admin-user-modal {
  transform: translateY(0) scale(1);
}

.admin-user-modal h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--admin-ref-ink);
}

.admin-user-modal-subtitle {
  margin: -6px 0 4px;
  color: var(--admin-ref-muted);
  font-size: 0.9rem;
  font-weight: 700;
  word-break: break-word;
}

.admin-user-modal-field {
  display: grid;
  gap: 6px;
}

.admin-user-modal-field span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #5b6469;
}

.admin-user-modal-field input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(17, 25, 29, 0.14);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.96rem;
}

.admin-user-modal-field input:focus {
  outline: none;
  border-color: rgba(0, 155, 54, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 155, 54, 0.12);
}

.admin-user-modal-error {
  margin: 0;
  color: #c0392b;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-user-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.admin-user-modal-actions .primary-button {
  min-height: 46px;
}

/* Add place reference stepper layout */
body[data-page="add-place"] {
  --add-ref-green: #009b36;
  --add-ref-green-dark: #078c34;
  --add-ref-ink: #11191d;
  --add-ref-muted: #6b787d;
  --add-ref-border: rgba(17, 25, 29, 0.075);
  --add-ref-shadow: 0 22px 56px rgba(17, 25, 29, 0.08);
  --add-ref-soft-shadow: 0 14px 34px rgba(17, 25, 29, 0.055);
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: #f4f8f5;
  color: var(--add-ref-ink);
}

body[data-page="add-place"] .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  width: 100%;
  height: 76px;
  margin: 0;
  padding: 0 52px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(17, 25, 29, 0.04), 0 12px 32px rgba(17, 25, 29, 0.04);
  backdrop-filter: blur(18px);
  transform: none;
}

body[data-page="add-place"] .site-header::before {
  content: none;
  display: none;
}

body[data-page="add-place"] .brand-wordmark {
  flex: 0 0 auto;
  color: var(--add-ref-green);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

body[data-page="add-place"] .header-actions {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  --add-header-icon-size: var(--header-icon-size);
  gap: 24px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

body[data-page="add-place"] .header-city-picker-anchor {
  margin-left: 34px;
}

body[data-page="add-place"] .header-chip-location {
  height: 44px;
  min-height: 44px;
  margin-left: 0;
  gap: 8px;
  padding: 0;
  color: var(--add-ref-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 800;
}

body[data-page="add-place"] .header-chip-location::before {
  width: var(--add-header-icon-size);
  height: var(--add-header-icon-size);
  flex: 0 0 var(--add-header-icon-size);
  background: var(--add-ref-green);
}

body[data-page="add-place"] .header-chip-location::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="add-place"] .profile-header-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  margin-left: auto;
  padding: 0;
  color: var(--add-ref-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    color 160ms ease;
}

body[data-page="add-place"] .profile-header-map-link::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background: var(--add-ref-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3.5 6.5v13L9 17l6 2.5 5.5-2.5v-13L15 6.5 9 4Z'/%3E%3Cline x1='9' y1='4' x2='9' y2='17'/%3E%3Cline x1='15' y1='6.5' x2='15' y2='19.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3.5 6.5v13L9 17l6 2.5 5.5-2.5v-13L15 6.5 9 4Z'/%3E%3Cline x1='9' y1='4' x2='9' y2='17'/%3E%3Cline x1='15' y1='6.5' x2='15' y2='19.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="add-place"] .profile-header-map-link:hover,
body[data-page="add-place"] .profile-header-map-link:focus-visible {
  transform: translateY(-1px);
  color: var(--add-ref-ink);
}

/* Icon-only map link: hide the "Карта" label and use theme ink (white on dark). */
body[data-page="add-place"] .profile-header-map-link {
  font-size: 0;
  gap: 0;
  width: 42px;
}
body[data-page="add-place"] .profile-header-map-link::before {
  background: var(--add-ref-ink);
}

body[data-page="add-place"] .header-notification-button,
body[data-page="add-place"] #logoutButton.header-chip-auth {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--add-ref-ink);
  background: transparent;
  box-shadow: none;
}

body[data-page="add-place"] .header-notification-button:hover,
body[data-page="add-place"] .header-notification-button:focus-visible,
body[data-page="add-place"] .header-notification-button.is-open,
body[data-page="add-place"] .header-notification-button.has-unread,
body[data-page="add-place"] .header-chip-user:hover,
body[data-page="add-place"] #logoutButton.header-chip-auth:hover,
body[data-page="add-place"] #logoutButton.header-chip-auth:focus-visible,
body[data-page="add-place"] #logoutButton.header-chip-auth.is-logging-out {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="add-place"] #logoutButton.header-chip-auth::before,
body[data-page="add-place"] .header-notification-icon {
  width: var(--add-header-icon-size);
  height: var(--add-header-icon-size);
  flex: 0 0 var(--add-header-icon-size);
}

body[data-page="add-place"] .header-notification-button {
  color: var(--add-ref-ink);
}

body[data-page="add-place"] .header-notification-badge {
  top: 5px;
  right: 4px;
}

body[data-page="add-place"] .header-chip-user {
  width: auto;
  min-width: 0;
  height: 50px;
  gap: 12px;
  padding: 0 4px 0 0;
  color: var(--add-ref-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="add-place"] .header-user-chip-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--add-ref-green);
  background: rgba(0, 155, 54, 0.1);
}

body[data-page="add-place"] .header-user-chip-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-page="add-place"] .header-user-chip-name,
body[data-page="add-place"] .header-user-chip-role {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  clip-path: none;
}

body[data-page="add-place"] .header-user-chip-name {
  color: var(--add-ref-ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.05;
}

body[data-page="add-place"] .header-user-chip-role {
  color: var(--add-ref-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.05;
}

body[data-page="add-place"] #loginButton.header-chip-auth,
body[data-page="add-place"] .site-header:not(.auth-header) .primary-button.header-signup-button {
  color: var(--add-ref-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 800;
}

body[data-page="add-place"] .site-header:not(.auth-header) .primary-button.header-signup-button {
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--add-ref-green), var(--add-ref-green-dark));
  box-shadow: 0 14px 28px rgba(0, 155, 54, 0.22);
}

body[data-page="add-place"] .workflow-shell {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 76px 0 0;
}

body.workflow-page[data-page="add-place"] .workflow-shell {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 76px 0 0;
}

body[data-page="add-place"] .workflow-layout {
  display: grid;
  grid-template-columns: minmax(424px, 560px) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: calc(100dvh - 76px);
  min-height: 0;
  align-items: stretch;
}

body.workflow-page[data-page="add-place"] .workflow-layout {
  display: grid;
  grid-template-columns: minmax(424px, 560px) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: calc(100dvh - 76px);
  min-height: 0;
  align-items: stretch;
}

body[data-page="add-place"] .workflow-panel {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100dvh - 116px);
  margin: 20px 0 20px 28px;
  padding: 26px 24px 18px;
  overflow: hidden;
  border: 1px solid rgba(17, 25, 29, 0.06);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--add-ref-shadow);
  backdrop-filter: blur(20px);
}

body.workflow-page[data-page="add-place"] .workflow-panel {
  min-height: 0;
  height: calc(100dvh - 116px);
  margin: 20px 0 20px 28px;
  overflow: hidden;
}

body[data-page="add-place"] .add-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  flex: 0 0 auto;
}

body[data-page="add-place"] .workflow-panel > .eyebrow,
body[data-page="add-place"] .add-panel-head .eyebrow {
  display: none;
}

body[data-page="add-place"] .workflow-panel h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--add-ref-ink);
  font-family: "Manrope", "Sora", sans-serif;
  font-size: clamp(1.35rem, 1.7vw, 1.62rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

body.workflow-page[data-page="add-place"] .workflow-panel h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--add-ref-ink);
  font-family: "Manrope", "Sora", sans-serif;
  font-size: clamp(1.35rem, 1.7vw, 1.62rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

body[data-page="add-place"] .add-panel-lead {
  max-width: 31ch;
  margin: 8px 0 0;
  color: var(--add-ref-muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

body[data-page="add-place"] .add-step-progress {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-top: 3px;
  color: var(--add-ref-muted);
  font-size: 0.86rem;
  font-weight: 900;
}

body[data-page="add-place"] #addStepCounter {
  color: var(--add-ref-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

body[data-page="add-place"] .add-step-dots {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body[data-page="add-place"] .add-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e9e6;
}

body[data-page="add-place"] .add-step-dot.is-active,
body[data-page="add-place"] .add-step-dot.is-complete {
  background: var(--add-ref-green);
}

body[data-page="add-place"] .workflow-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: 22px;
  padding: 0;
  overflow: hidden;
}

body.workflow-page[data-page="add-place"] .workflow-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: 22px;
  padding: 0;
  overflow: hidden;
}

body[data-page="add-place"] .workflow-step {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 12px 0;
  /* Scroll without showing the (green) scrollbar strip. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body[data-page="add-place"] .workflow-step::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body[data-page="add-place"] .workflow-step[hidden] {
  display: none !important;
}

body[data-page="add-place"] .workflow-step-body {
  display: grid;
  gap: 18px;
}

body[data-page="add-place"] .add-step-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--add-ref-ink);
  font-size: 0.94rem;
  font-weight: 900;
}

body[data-page="add-place"] .add-step-number {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--add-ref-green);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

body[data-page="add-place"] .workflow-field {
  gap: 10px;
}

body[data-page="add-place"] .workflow-field span {
  color: var(--add-ref-ink);
  font-size: 0.9rem;
  font-weight: 900;
}

body[data-page="add-place"] .workflow-photo-picker {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px dashed rgba(0, 155, 54, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 155, 54, 0.055), rgba(255, 255, 255, 0.96));
  box-shadow: none;
}

body[data-page="add-place"] .workflow-photo-picker:hover {
  border-color: rgba(0, 155, 54, 0.34);
  box-shadow: 0 16px 34px rgba(0, 155, 54, 0.08);
}

body[data-page="add-place"] .workflow-photo-picker-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 155, 54, 0.1);
  border: 0;
  box-shadow: none;
}

body[data-page="add-place"] .workflow-photo-picker-icon::before {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 0;
  background-color: var(--add-ref-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

body[data-page="add-place"] .workflow-photo-picker-icon::after {
  content: none;
}

body[data-page="add-place"] .workflow-photo-picker-copy {
  display: grid;
  gap: 5px;
}

body[data-page="add-place"] .workflow-photo-picker strong {
  color: var(--add-ref-ink);
  font-size: 0.94rem;
  font-weight: 900;
}

body[data-page="add-place"] .workflow-photo-picker small {
  display: block;
  max-width: 32ch;
  color: var(--add-ref-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

body[data-page="add-place"] .workflow-photo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="add-place"] .workflow-photo-preview {
  border-radius: 14px;
}

body[data-page="add-place"] .workflow-category-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="add-place"] .workflow-category-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 54px;
  gap: 10px;
  padding: 0 14px;
  border-radius: 12px;
  border-color: rgba(17, 25, 29, 0.09);
  background: #ffffff;
  box-shadow: none;
  text-align: left;
}

body[data-page="add-place"] .workflow-category-card:hover {
  box-shadow: 0 12px 24px rgba(17, 25, 29, 0.06);
}

body[data-page="add-place"] .workflow-category-card.is-selected {
  border-color: rgba(0, 155, 54, 0.34);
  background: rgba(0, 155, 54, 0.08);
  box-shadow: none;
}

body[data-page="add-place"] .workflow-category-card-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="add-place"] .workflow-category-card-icon-dot::before {
  width: 19px;
  height: 19px;
  border-radius: 0;
  background: #65757b;
  -webkit-mask: var(--add-category-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1'/%3E%3Ccircle cx='16.5' cy='16.5' r='3.5'/%3E%3C/svg%3E")) center / contain no-repeat;
  mask: var(--add-category-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1'/%3E%3Ccircle cx='16.5' cy='16.5' r='3.5'/%3E%3C/svg%3E")) center / contain no-repeat;
}

body[data-page="add-place"] .workflow-category-card[data-category-option="scenic"] {
  --add-category-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='2'/%3E%3Ccircle cx='8' cy='9.5' r='1.5'/%3E%3Cpath d='M4 17l5-5 3 3 3-4 5 6'/%3E%3C/svg%3E");
}

body[data-page="add-place"] .workflow-category-card[data-category-option="architecture"],
body[data-page="add-place"] .workflow-category-card[data-category-option="museums"] {
  --add-category-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='1'/%3E%3Cpath d='M10 21v-3a2 2 0 0 1 4 0v3'/%3E%3Cline x1='9' y1='7' x2='9' y2='7'/%3E%3Cline x1='15' y1='7' x2='15' y2='7'/%3E%3Cline x1='9' y1='11' x2='9' y2='11'/%3E%3Cline x1='15' y1='11' x2='15' y2='11'/%3E%3C/svg%3E");
}

body[data-page="add-place"] .workflow-category-card[data-category-option="parks-nature"] {
  --add-category-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 6 12h3.5L5 18h14l-4.5-6H18L12 3Z'/%3E%3Cline x1='12' y1='18' x2='12' y2='21'/%3E%3C/svg%3E");
}

body[data-page="add-place"] .workflow-category-card[data-category-option="beaches-waterfront"] {
  --add-category-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9c2 0 2 2 4.5 2S10 9 12 9s2 2 4.5 2S19 9 21 9'/%3E%3Cpath d='M3 14c2 0 2 2 4.5 2S10 14 12 14s2 2 4.5 2S19 14 21 14'/%3E%3C/svg%3E");
}

body[data-page="add-place"] .workflow-category-card[data-category-option="cafes-restaurants"] {
  --add-category-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v6a2 2 0 0 0 4 0V3'/%3E%3Cline x1='8' y1='3' x2='8' y2='21'/%3E%3Cpath d='M16 3c-1.5 0-2.5 2-2.5 5s1 4 2.5 4 2.5-1 2.5-4-1-5-2.5-5Z'/%3E%3Cline x1='16' y1='12' x2='16' y2='21'/%3E%3C/svg%3E");
}

body[data-page="add-place"] .workflow-category-card[data-category-option="event"] {
  --add-category-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cline x1='4' y1='9' x2='20' y2='9'/%3E%3Cline x1='8' y1='3' x2='8' y2='6'/%3E%3Cline x1='16' y1='3' x2='16' y2='6'/%3E%3Cpath d='M9 14.5l2 2 4-4'/%3E%3C/svg%3E");
}

body[data-page="add-place"] .workflow-category-card[data-category-option="photo-spots"] {
  --add-category-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 1 2-2h2l1.5-2h7L19 6h0a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8Z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
}

body[data-page="add-place"] .workflow-category-card[data-category-option="hidden-places"] {
  --add-category-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='4' y1='20' x2='20' y2='4'/%3E%3C/svg%3E");
}

body[data-page="add-place"] .workflow-category-card strong {
  min-width: 0;
  color: #344145;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.15;
}

body[data-page="add-place"] .workflow-category-summary {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 155, 54, 0.08);
  color: var(--add-ref-green);
  font-size: 0.78rem;
  line-height: 1.35;
}

body[data-page="add-place"] .workflow-tag-hint {
  display: block;
  margin: -4px 0 2px;
  color: var(--add-ref-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

body[data-page="add-place"] .workflow-tag-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="add-place"] .workflow-tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border-color: rgba(0, 155, 54, 0.17);
  background: #ffffff;
  box-shadow: none;
  color: #4d5d62;
  font-size: 0.78rem;
}

body[data-page="add-place"] .workflow-tag-chip:hover {
  box-shadow: none;
}

body[data-page="add-place"] .workflow-tag-chip.is-selected {
  border-color: rgba(0, 155, 54, 0.25);
  background: rgba(0, 155, 54, 0.1);
  color: var(--add-ref-green);
  box-shadow: none;
}

body[data-page="add-place"] .workflow-field input:not(.workflow-file-input),
body[data-page="add-place"] .workflow-field textarea {
  padding: 13px 14px;
  border-radius: 13px;
  border-color: rgba(17, 25, 29, 0.09);
  background: #ffffff;
  box-shadow: none;
  color: var(--add-ref-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

body[data-page="add-place"] .workflow-field textarea {
  height: 86px;
  max-height: 120px;
}

body[data-page="add-place"] .workflow-day-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

body[data-page="add-place"] .workflow-day-chip {
  min-height: 31px;
  padding: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.75rem;
}

body[data-page="add-place"] .workflow-day-chip:hover {
  box-shadow: none;
}

body[data-page="add-place"] .workflow-time-builder {
  grid-template-columns: repeat(2, minmax(0, 168px));
  justify-content: center;
  gap: 12px;
}

body[data-page="add-place"] .workflow-time-panel {
  --wheel-row-height: 24px;
  width: 168px;
  min-height: 142px;
  padding: 12px;
  border-radius: 18px;
  background: #1f2a2e;
  box-shadow: none;
}

body[data-page="add-place"] .workflow-time-panel-body {
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  justify-self: center;
  align-self: center;
  width: 128px;
  max-width: 128px;
  gap: 5px;
}

body[data-page="add-place"] .workflow-time-panel-label {
  font-size: 0.68rem;
  letter-spacing: 0;
}

body[data-page="add-place"] .workflow-time-wheel {
  border-radius: 14px;
}

body[data-page="add-place"] .workflow-time-option {
  font-size: 1.52rem;
}

body[data-page="add-place"] .workflow-time-separator {
  width: 12px;
  font-size: 1.48rem;
}

body[data-page="add-place"] .workflow-fulltime-toggle {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.82rem;
}

body[data-page="add-place"] .workflow-point-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border-color: rgba(17, 25, 29, 0.08);
}

body[data-page="add-place"] .workflow-point-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 155, 54, 0.1);
}

body[data-page="add-place"] .workflow-point-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--add-ref-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="add-place"] .workflow-point-copy {
  display: grid;
  gap: 4px;
}

body[data-page="add-place"] .workflow-point-card strong {
  color: var(--add-ref-ink);
  font-size: 0.86rem;
  font-weight: 900;
}

body[data-page="add-place"] .workflow-point-card p {
  margin: 0;
  color: var(--add-ref-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

body[data-page="add-place"] .workflow-point-card p:empty {
  display: block;
}

body[data-page="add-place"] .workflow-point-card p:empty::after {
  content: "Поставьте метку на карте";
}

body[data-page="add-place"] .workflow-message {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: 0.82rem;
  line-height: 1.3;
}

body[data-page="add-place"] .add-step-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

body[data-page="add-place"] .workflow-step-back-button,
body[data-page="add-place"] .workflow-step-next-button,
body[data-page="add-place"] .workflow-submit {
  min-height: 44px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 900;
}

body[data-page="add-place"] .workflow-step-back-button {
  min-width: 116px;
  border: 1px solid rgba(17, 25, 29, 0.08);
  background: #ffffff;
  color: var(--add-ref-ink);
  box-shadow: none;
}

body[data-page="add-place"] .workflow-step-next-button,
body[data-page="add-place"] .workflow-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--add-ref-green), var(--add-ref-green-dark));
  box-shadow: 0 16px 34px rgba(0, 155, 54, 0.24);
}

body[data-page="add-place"] .workflow-step-next-button {
  grid-column: 2;
}

body[data-page="add-place"][data-add-step="1"] .workflow-step-next-button {
  grid-column: 1 / -1;
}

body[data-page="add-place"] .workflow-step-next-button[hidden],
body[data-page="add-place"] .workflow-submit[hidden],
body[data-page="add-place"] .workflow-step-back-button[hidden] {
  display: none !important;
}

body[data-page="add-place"] .add-step-actions .workflow-submit {
  grid-column: 2;
}

body[data-page="add-place"] .add-step-actions .workflow-submit:first-child,
body[data-page="add-place"] .add-step-actions .workflow-step-next-button:first-child {
  grid-column: 1 / -1;
}

body[data-page="add-place"] .workflow-delete-button {
  min-height: 44px;
  border-radius: 12px;
  font-size: 0.86rem;
}

body[data-page="add-place"] .add-submit-note {
  flex: 0 0 auto;
  margin: 8px 0 0;
  color: #879196;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

body[data-page="add-place"] .add-submit-note::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -2px;
  background: currentColor;
  opacity: 0.7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 5 3 8 7 10 4-2 7-5 7-10V6l-7-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 5 3 8 7 10 4-2 7-5 7-10V6l-7-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="add-place"] .workflow-map-card {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="add-place"] .workflow-map {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: 0;
  background: #eef5ef;
}

body[data-page="add-place"] #placePickerMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* (white wash over the add-place map removed — it made the map look faded) */

/* В шапке остался только поиск, поэтому отступы и скругление подтянуты под
   строку поиска, а не под карточку с заголовком и подписью. */
body[data-page="add-place"] .workflow-map-head {
  position: absolute;
  left: 44px;
  top: 24px;
  z-index: 5;
  width: min(420px, calc(100% - 88px));
  display: grid;
  gap: 0;
  padding: 12px;
  border: 1px solid rgba(17, 25, 29, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--add-ref-soft-shadow);
  backdrop-filter: blur(18px);
}

/* Заголовок и подпись из шапки карты удалены — в ней остался только поиск.
   margin-top у поиска отделял его от заголовка; без заголовка он делал верхний
   отступ (12 + 1 + 8 = 21px) больше нижнего (12 + 1 = 13px). */
body[data-page="add-place"] .workflow-map-search {
  margin-top: 0;
}

body[data-page="add-place"] .workflow-map-search-field {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #ffffff;
  border-color: rgba(17, 25, 29, 0.08);
  box-shadow: none;
}

body[data-page="add-place"] .workflow-map-search-icon {
  width: 17px;
  height: 17px;
  background-color: #7c8a90;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="add-place"] .workflow-map-search-field input {
  font-size: 0.84rem;
  font-weight: 700;
}

body[data-page="add-place"] .workflow-map-search-results {
  border-radius: 16px;
}

body[data-page="add-place"] .map-control-stack {
  top: 24px;
  right: 44px;
  z-index: 5;
}

/* Match the standalone map page: a 50px icon-only dark circle (the "Где я?"
   label is dropped to a11y-hidden text, exactly like body[data-page="map"]). */
/* flex, а не grid: у кнопки есть текстовый узел «Где я?» (скрыт через
   font-size: 0). В grid он становится отдельной строкой под иконкой, строки
   выкладываются от верха, и иконка уезжает выше центра. Во flex он остаётся
   рядом с иконкой нулевой шириной — ровно как на /map. */
body[data-page="add-place"] #placeLocateUserButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(16, 25, 29, 0.1);
  color: var(--add-ref-ink);
  font-size: 0;
  line-height: 1;
}

body[data-page="add-place"] #placeLocateUserButton::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--add-ref-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='12' y1='2.5' x2='12' y2='6'/%3E%3Cline x1='12' y1='18' x2='12' y2='21.5'/%3E%3Cline x1='2.5' y1='12' x2='6' y2='12'/%3E%3Cline x1='18' y1='12' x2='21.5' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='12' y1='2.5' x2='12' y2='6'/%3E%3Cline x1='12' y1='18' x2='12' y2='21.5'/%3E%3Cline x1='2.5' y1='12' x2='6' y2='12'/%3E%3Cline x1='18' y1='12' x2='21.5' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="add-place"] .map-zoom-stack {
  top: 50%;
  right: 44px;
  bottom: auto;
  z-index: 5;
  transform: translateY(-50%);
}

body[data-page="add-place"] .map-control-button-square {
  width: 48px;
  min-height: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(16, 25, 29, 0.1);
  color: var(--add-ref-ink);
  font-size: 1.55rem;
}

@media (max-width: 1320px) {
  body[data-page="add-place"] .site-header {
    padding: 0 32px;
  }

  body[data-page="add-place"] .workflow-layout,
  body.workflow-page[data-page="add-place"] .workflow-layout {
    grid-template-columns: minmax(396px, 500px) minmax(0, 1fr);
  }

  body[data-page="add-place"] .workflow-panel,
  body.workflow-page[data-page="add-place"] .workflow-panel {
    margin-left: 22px;
  }

  body[data-page="add-place"] .workflow-map-head {
    left: 32px;
    width: min(390px, calc(100% - 64px));
  }
}

@media (max-width: 1024px) {
  body[data-page="add-place"] {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body[data-page="add-place"] .site-header {
    height: auto;
    min-height: 76px;
    padding: 12px 18px;
  }

  body[data-page="add-place"] .header-actions {
    gap: 12px;
  }

  body[data-page="add-place"] .header-city-picker-anchor,
  body[data-page="add-place"] .profile-header-map-link,
  body[data-page="add-place"] .header-user-chip-copy {
    display: none;
  }

  body[data-page="add-place"] .workflow-shell,
  body.workflow-page[data-page="add-place"] .workflow-shell {
    height: auto;
    min-height: 100vh;
    padding: 98px 14px 24px;
  }

  body[data-page="add-place"] .workflow-layout,
  body.workflow-page[data-page="add-place"] .workflow-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
  }

  body[data-page="add-place"] .workflow-panel,
  body.workflow-page[data-page="add-place"] .workflow-panel {
    width: 100%;
    height: auto;
    min-height: 540px;
    margin: 0;
  }

  body[data-page="add-place"] .workflow-form,
  body.workflow-page[data-page="add-place"] .workflow-form {
    min-height: 430px;
  }

  body[data-page="add-place"] .workflow-map-card,
  body.workflow-page[data-page="add-place"] .workflow-map-card {
    height: min(70vh, 620px);
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
  }

  body[data-page="add-place"] .workflow-map-head {
    left: 18px;
    top: 18px;
    width: min(390px, calc(100% - 36px));
  }

  body[data-page="add-place"] .map-control-stack,
  body[data-page="add-place"] .map-zoom-stack {
    right: 18px;
  }

}

@media (max-width: 640px) {
  body[data-page="add-place"] .workflow-panel {
    padding: 22px 18px 16px;
    border-radius: 22px;
  }

  body[data-page="add-place"] .add-panel-head {
    grid-template-columns: 1fr;
  }

  body[data-page="add-place"] .workflow-category-list,
  body[data-page="add-place"] .workflow-tag-list {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="add-place"] .workflow-day-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page="add-place"] .workflow-time-builder {
    grid-template-columns: 1fr;
  }

  body[data-page="add-place"] .workflow-time-panel {
    width: 100%;
  }

  body[data-page="add-place"] .workflow-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="add-place"] .add-step-actions {
    grid-template-columns: 1fr;
  }

  body[data-page="add-place"] .add-step-actions .workflow-submit {
    grid-column: auto;
  }
}

/* ===========================================================================
   Тёмная тема — админка / модерация / 404 / добавление места
   ========================================================================= */
:root[data-theme="dark"] body[data-page="admin"],
:root[data-theme="dark"] body[data-page="moderation"] {
  --admin-ref-ink: #e9efe9;
  --admin-ref-muted: #9aa8a1;
  --admin-ref-border: rgba(255, 255, 255, 0.09);
  --admin-ref-shadow: 0 22px 56px rgba(0, 0, 0, 0.55);
  --admin-ref-soft-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  background:
    radial-gradient(circle at 82% 6%, rgba(40, 200, 90, 0.08), transparent 30%),
    linear-gradient(180deg, #0d1210 0%, #0e1311 100%);
  color: var(--admin-ref-ink, #e9efe9);
}
:root[data-theme="dark"] body[data-page="404"] {
  --not-found-ink: #e9efe9;
  --not-found-muted: #9aa8a1;
  --not-found-border: rgba(255, 255, 255, 0.09);
  --not-found-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, #0d1210 0%, #0e1311 100%);
}
:root[data-theme="dark"] body[data-page="add-place"] {
  --add-ref-ink: #e9efe9;
  --add-ref-muted: #9aa8a1;
  --add-ref-border: rgba(255, 255, 255, 0.09);
  --add-ref-shadow: 0 22px 56px rgba(0, 0, 0, 0.55);
  --add-ref-soft-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  background: #0e1311;
}

/* White headers + cards across these pages -> dark glass. */
:root[data-theme="dark"] body[data-page="admin"] .site-header,
:root[data-theme="dark"] body[data-page="moderation"] .site-header,
:root[data-theme="dark"] body[data-page="add-place"] .site-header,
:root[data-theme="dark"] body[data-page="404"] .site-header {
  background: rgba(18, 24, 21, 0.92);
  border-color: var(--border);
}
:root[data-theme="dark"] .moderation-card,
:root[data-theme="dark"] .admin-card,
:root[data-theme="dark"] .admin-sidebar,
:root[data-theme="dark"] .admin-report-card,
:root[data-theme="dark"] .admin-category-list-item,
:root[data-theme="dark"] .admin-category-color-picker,
:root[data-theme="dark"] .admin-preview-item,
:root[data-theme="dark"] .moderation-note,
:root[data-theme="dark"] .workflow-panel,
:root[data-theme="dark"] .workflow-map-card,
:root[data-theme="dark"] .workflow-category-card,
/* :not(.is-selected) обязателен: без него это правило (вес 0,3,0) перекрывает
   .workflow-day-chip.is-selected (0,2,0), и в тёмной теме выбранный день
   выглядел точно так же, как невыбранный — казалось, что клик не срабатывает. */
:root[data-theme="dark"] .workflow-day-chip:not(.is-selected),
:root[data-theme="dark"] .workflow-tag-chip,
:root[data-theme="dark"] .workflow-map-search-field,
:root[data-theme="dark"] .workflow-map-search-results {
  background: #171e1a;
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="dark"] .workflow-field input,
:root[data-theme="dark"] .workflow-field select,
:root[data-theme="dark"] .workflow-field textarea,
:root[data-theme="dark"] .workflow-fulltime-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="dark"] .workflow-photo-picker {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
:root[data-theme="dark"] .workflow-photo-picker-icon {
  background: rgba(255, 255, 255, 0.08);
}
/* The 404 header has a hardcoded near-white border. */
:root[data-theme="dark"] body[data-page="404"] .site-header {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Add-place map picker surfaces. */
:root[data-theme="dark"] .workflow-map-head,
:root[data-theme="dark"] body[data-page="add-place"] .map-control-button {
  background: #171e1a;
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="dark"] .workflow-map {
  background: var(--bg);
}
/* Step indicator dots (light-gray inactive) -> dark.
   :not(...) обязателен: без него это правило (вес 0,4,1) перекрывало
   .add-step-dot.is-active / .is-complete (0,3,1), и в тёмной теме текущий шаг
   не подсвечивался зелёным — все точки оставались серыми. */
:root[data-theme="dark"] body[data-page="add-place"] .add-step-dot:not(.is-active):not(.is-complete) {
  background: rgba(255, 255, 255, 0.14);
}
/* 404 card. */
:root[data-theme="dark"] .not-found-card,
:root[data-theme="dark"] .not-found-panel {
  background: #171e1a;
  border-color: var(--border);
  color: var(--text);
}
/* 404 "suggest a place" card + its action buttons were left opaque white
   (the white "На главную" button even had light text on a white fill). */
:root[data-theme="dark"] body[data-page="404"] .not-found-suggest-card {
  background:
    linear-gradient(135deg, rgba(0, 155, 54, 0.16), rgba(23, 30, 26, 0.96) 64%),
    #171e1a;
  border-color: var(--border);
}
:root[data-theme="dark"] body[data-page="404"] .not-found-suggest-copy span {
  color: var(--not-found-muted);
}
:root[data-theme="dark"] body[data-page="404"] .not-found-home-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--not-found-ink);
}
:root[data-theme="dark"] body[data-page="404"] .not-found-suggest-button {
  background: rgba(0, 155, 54, 0.14);
  border-color: rgba(0, 155, 54, 0.5);
  color: #36d96a;
}

/* =========================================================================
   Dark theme — remaining admin / add-place light surfaces (site-wide sweep).
   These are the user-edit modal, activity/user list rows, category controls
   and a few secondary buttons that had no dark override.
   ========================================================================= */
:root[data-theme="dark"] .admin-user-modal {
  background: #171e1a;
  border: 1px solid var(--border);
  color: var(--text);
}
:root[data-theme="dark"] .admin-activity-item,
:root[data-theme="dark"] .admin-user-item {
  background: #171e1a;
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="dark"] body[data-page="admin"] .admin-category-preview-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
:root[data-theme="dark"] body[data-page="admin"] .admin-category-preview {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}
:root[data-theme="dark"] body[data-page="admin"] .admin-category-filter:not(.is-active) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--muted);
}
:root[data-theme="dark"] .admin-activity-search input,
:root[data-theme="dark"] .admin-activity-select select,
:root[data-theme="dark"] body[data-page="admin"] .admin-category-search input,
:root[data-theme="dark"] body[data-page="admin"] .admin-category-sort select {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="dark"] body[data-page="admin"] .admin-category-cancel-button,
:root[data-theme="dark"] body[data-page="admin"] .admin-category-edit-button,
:root[data-theme="dark"] body[data-page="admin"] .admin-category-menu-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="dark"] .admin-user-action.is-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--muted);
}
:root[data-theme="dark"] body[data-page="add-place"] .workflow-point-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}
:root[data-theme="dark"] body[data-page="add-place"] #placeLocateUserButton {
  background: #171e1a;
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="dark"] body[data-page="add-place"] .workflow-step-back-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}
/* Form status banner + destructive delete button read light-pink. */
:root[data-theme="dark"] .workflow-message,
:root[data-theme="dark"] .workflow-delete-button {
  background: rgba(186, 54, 54, 0.16);
  border-color: rgba(186, 54, 54, 0.3);
}

/* =====================================================================
   Dark-theme contrast fixes (audit 2026-07) — add-place flow + admin/mod.
   Light-reference "workflow-*"/admin components hard-coded slate/green
   colors with no dark override, so labels/inputs/pills were invisible.
   ===================================================================== */

/* --- Add-place: category cards (label/icon/selected) --- */
:root[data-theme="dark"] body[data-page="add-place"] .workflow-category-card strong { color: var(--text); }
:root[data-theme="dark"] .workflow-category-card-icon-dot::before { background-color: var(--category-color, #8ea0a6); }
:root[data-theme="dark"] body[data-page="add-place"] .workflow-category-card.is-selected {
  background: linear-gradient(180deg, rgba(0, 155, 54, 0.22) 0%, #171e1a 100%);
  border-color: rgba(0, 155, 54, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 155, 54, 0.28);
}
:root[data-theme="dark"] body[data-page="add-place"] .workflow-category-card.is-selected strong { color: var(--text); }
:root[data-theme="dark"] body[data-page="add-place"] .workflow-category-summary {
  background: rgba(0, 155, 54, 0.14);
  color: #36d96a;
}

/* --- Add-place: inputs, textarea, placeholders, search icon --- */
:root[data-theme="dark"] .workflow-field input,
:root[data-theme="dark"] .workflow-field select,
:root[data-theme="dark"] .workflow-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
:root[data-theme="dark"] .workflow-field input:not(.workflow-file-input)::placeholder,
:root[data-theme="dark"] .workflow-field textarea::placeholder { color: rgba(233, 239, 233, 0.55); }
:root[data-theme="dark"] body[data-page="add-place"] .workflow-map-search-icon { background-color: var(--muted); }

/* --- Add-place: tag chips, weekend day chips, step badge --- */
:root[data-theme="dark"] body[data-page="add-place"] .workflow-tag-chip.is-selected {
  background: rgba(0, 155, 54, 0.18);
  border-color: rgba(0, 155, 54, 0.5);
  color: #36d96a;
}
:root[data-theme="dark"] .workflow-day-chip[data-workday-option="Суббота"]:not(.is-selected),
:root[data-theme="dark"] .workflow-day-chip[data-workday-option="Воскресенье"]:not(.is-selected) {
  background: rgba(214, 97, 97, 0.14);
  border-color: rgba(214, 97, 97, 0.4);
  color: #e58a8a;
}
:root[data-theme="dark"] body[data-page="add-place"] .add-step-number { background: #067a2b; color: #ffffff; }

/* --- Admin / moderation --- */
:root[data-theme="dark"] body[data-page="admin"] .admin-category-list-places { color: var(--admin-ref-ink, #e9efe9); }
:root[data-theme="dark"] .admin-activity-summary { color: var(--admin-ref-ink, #e9efe9); }
:root[data-theme="dark"] body[data-page="admin"] .admin-category-list-color { color: var(--admin-ref-muted, #9aa8a1); }
:root[data-theme="dark"] body[data-page="admin"] .admin-category-list-copy span { color: var(--admin-ref-muted, #9aa8a1); }
:root[data-theme="dark"] body[data-page="admin"] .admin-category-table-head { color: var(--admin-ref-muted, #9aa8a1); }
:root[data-theme="dark"] .admin-user-role,
:root[data-theme="dark"] .admin-activity-chip { background: rgba(255, 255, 255, 0.08); color: var(--text); }
:root[data-theme="dark"] .admin-user-role[data-kind="deleted"],
:root[data-theme="dark"] .admin-user-action.is-danger {
  color: #ff9b93;
  background: rgba(220, 70, 60, 0.16);
  border-color: rgba(220, 70, 60, 0.4);
}
:root[data-theme="dark"] .moderation-note::placeholder { color: rgba(233, 239, 233, 0.5); }

/* Add-place map-picker controls (locate + zoom): match the standalone map
   page's dark circles — same hairline edge and soft dark shadow. ID-level
   specificity so it beats the add-place dark surface rules above. */
:root[data-theme="dark"] body[data-page="add-place"] #placeLocateUserButton,
:root[data-theme="dark"] body[data-page="add-place"] .map-control-button-square {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}
:root[data-theme="dark"] body[data-page="add-place"] #placeLocateUserButton:hover,
:root[data-theme="dark"] body[data-page="add-place"] .map-control-button-square:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Admin form controls (category create + search/sort) hard-code a near-white
   fill with no dark override, so they blaze white on the dark theme and their
   white placeholders vanish. Darken to the standard dark form-control style. */
:root[data-theme="dark"] body[data-page="admin"] .workflow-field input:not(.workflow-file-input),
:root[data-theme="dark"] body[data-page="admin"] .workflow-field select,
:root[data-theme="dark"] body[data-page="admin"] .workflow-field textarea,
:root[data-theme="dark"] body[data-page="admin"] .admin-category-search input,
:root[data-theme="dark"] body[data-page="admin"] .admin-category-sort select {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
:root[data-theme="dark"] body[data-page="admin"] .workflow-field input::placeholder,
:root[data-theme="dark"] body[data-page="admin"] .workflow-field textarea::placeholder,
:root[data-theme="dark"] body[data-page="admin"] .admin-category-search input::placeholder {
  color: rgba(233, 239, 233, 0.55);
}

/* Add-place "Название места" input stayed WHITE: the page-scoped light rule
   (…input:not(.workflow-file-input)) out-specifies the generic dark override,
   so re-assert it page-scoped. (The textarea/panel/map-head are already dark.) */
:root[data-theme="dark"] body[data-page="add-place"] .workflow-field input:not(.workflow-file-input) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

/* Admin edit-user modal inputs declare no background -> UA white on the dark modal. */
:root[data-theme="dark"] .admin-user-modal-field input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
:root[data-theme="dark"] .admin-user-modal-field input::placeholder {
  color: rgba(233, 239, 233, 0.55);
}
:root[data-theme="dark"] .admin-user-modal-field span {
  color: var(--muted);
}

/* ============================================================================
   /add — выбор точки как отдельный шаг + плавный переход
   ----------------------------------------------------------------------------
   Карта не висит на странице постоянно: она показывается только на последнем
   шаге «Точка на карте». Шаг берётся из body[data-add-step], который выставляет
   updateAddStepUi() в add-place.js (значения 1…6). По умолчанию (в том числе до
   того, как отработал JS) карта скрыта — вспышки на первом шаге не будет.

   Карта прячется через opacity/visibility, а НЕ через display:none: так у её
   контейнера остаётся layout-бокс, Mapbox при ленивой инициализации меряет
   настоящий размер, и появление можно анимировать.
   ============================================================================ */
body[data-page="add-place"] .workflow-map-card {
  opacity: 0;
  visibility: hidden;
  /* visibility переключаем с задержкой, чтобы дать opacity доиграть на выходе */
  transition: opacity 460ms ease, visibility 0s linear 460ms;
}

body[data-page="add-place"][data-add-step="6"] .workflow-map-card {
  opacity: 1;
  visibility: visible;
  transition: opacity 460ms ease, visibility 0s;
}

/* Сдвиг делаем через left, а НЕ через transform.
   transform на панели превращает её в containing block для position:fixed
   потомков, а календарь (.workflow-datepicker-pop) как раз fixed — он начинал
   позиционироваться относительно панели и обрезался её overflow:hidden.
   position:relative такого containing block не создаёт, поэтому календарь
   снова считает координаты от вьюпорта.
   left:0 в базе обязателен: с `auto` переход не анимируется. */
/* Ширина первой колонки грида и отступ панели в ней. Объявлены на body, потому
   что их читает не только панель, но и шапка карты (её надо сдвинуть правее
   панели, когда карта раскрыта на весь экран). Значения обязаны совпадать с
   grid-template-columns у .workflow-layout. */
body[data-page="add-place"] {
  --add-panel-inset: 28px;
  --add-panel-col: 560px;
}

@media (max-width: 1320px) {
  body[data-page="add-place"] {
    --add-panel-inset: 22px;
    --add-panel-col: 500px;
  }
}

body[data-page="add-place"] .workflow-panel {
  left: 0;
  transition: left 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Двухколоночная раскладка (>1024px): пока карты нет, панель стоит по центру
   экрана, а на шаге 6 уезжает влево, на своё место в первой колонке.
   Панель начинается на --add-panel-inset от края своей колонки и занимает
   остаток её ширины, поэтому её центр = inset + (col − inset) / 2, а нужный
   сдвиг до центра экрана = 50vw − (col + inset) / 2. */
@media (min-width: 1025px) {
  body[data-page="add-place"]:not([data-add-step="6"]) .workflow-panel {
    left: calc(50vw - (var(--add-panel-col) + var(--add-panel-inset)) / 2);
  }
}

/* На узких экранах колонки складываются в стопку: карта заняла бы пустое место
   под панелью, поэтому там её по-прежнему убираем из потока, и панель не едет. */
@media (max-width: 1024px) {
  body[data-page="add-place"]:not([data-add-step="6"]) .workflow-map-card {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="add-place"] .workflow-panel,
  body[data-page="add-place"] .workflow-map-card {
    transition: none;
  }
}

/* ============================================================================
   /add — карта на весь экран + кнопки навигации как на /map
   ============================================================================ */

/* Раньше карта жила только во второй колонке грида и упиралась в панель слева.
   Теперь она растянута на всю раскладку, а панель просто плавает поверх неё
   (у панели z-index: 6). Только для двухколоночного режима: ниже 1024px карта
   стоит в потоке под панелью. */
@media (min-width: 1025px) {
  body[data-page="add-place"] .workflow-layout {
    position: relative;
  }

  body[data-page="add-place"] .workflow-map-card {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* Шапка карты («Выберите точку» + поиск) прибита к левому краю карты. Раз
     карта теперь начинается от края экрана, сдвигаем шапку правее панели,
     иначе она уехала бы под неё. */
  body[data-page="add-place"] .workflow-map-head {
    left: calc(var(--add-panel-col) + 44px);
    width: min(420px, calc(100% - var(--add-panel-col) - 88px));
  }
}

@media (min-width: 1025px) and (max-width: 1320px) {
  body[data-page="add-place"] .workflow-map-head {
    left: calc(var(--add-panel-col) + 32px);
    width: min(390px, calc(100% - var(--add-panel-col) - 64px));
  }
}

/* Кнопки навигации — тот же вид, что и на /map:
   «Я рядом» там — таблетка (min-height 50, padding 0 22px, radius 16, без
   рамки), зум — круги 48px. Здесь то же самое, поэтому иконочный кружок у
   «Где я?» заменяем на таблетку с текстом. */
body[data-page="add-place"] .map-control-button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(16, 25, 29, 0.1);
  color: var(--add-ref-ink);
  font-size: 0.9rem;
  font-weight: 900;
}

/* «Где я?» — круглая иконочная кнопка 50px, ровно как «Я рядом» на /map.
   Отличалась только иконка: здесь был зелёный прицел 16px, на карте — стрелка
   20px цветом чернил (--*-ref-ink, он же переворачивается в тёмной теме). */
body[data-page="add-place"] #placeLocateUserButton::before {
  content: "";
  width: 20px;
  height: 20px;
  /* Тот же оптический сдвиг, что и на /map: центр масс стрелки не совпадает с
     центром viewBox. */
  transform: translate(-1px, 1px);
  background: var(--add-ref-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 22 2 13 21 11 13Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 22 2 13 21 11 13Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="add-place"] .map-control-button-square {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.55rem;
}

body[data-page="add-place"] .map-zoom-stack {
  gap: 12px;
}

/* На узких экранах строка поиска лежит абсолютом поверх верхнего края карты и
   занимает всю её ширину, поэтому кнопки навигации опускаем под неё — иначе
   «Где я?» и кнопка севера накрывают поиск. */
@media (max-width: 1024px) {
  body[data-page="add-place"] .map-control-stack {
    top: 108px;
  }
}
