.admin-logo {
  display: block;
  width: min(280px, 80%);
  height: auto;
  margin: 0 auto 1rem;
}

.admin-logo-sm {
  display: block;
  height: 42px;
  width: auto;
}

.admin-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.admin-brand-row h1 {
  margin: 0;
}

.login-panel {
  max-width: 420px;
  margin: 4rem auto;
}

#login-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}

#login-screen[hidden],
#admin-app[hidden] {
  display: none !important;
}

.install {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.admin-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-top h1 {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  color: var(--leaf-deep);
}

.admin-sub {
  margin: 0;
  color: var(--ink-soft);
}

.save-status {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.save-status.ok { color: var(--leaf); }
.save-status.err { color: var(--coral); }

.admin-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

.admin-form h2,
.admin-side h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.check-field {
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem !important;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--leaf);
}

.check-field span {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.field-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.field input[type="text"],
.field input[type="search"],
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.field input[type="color"] {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.25rem;
  background: #fff;
  cursor: pointer;
}

.city-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem 0;
}

.city-opt {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #f7fbf8;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.city-opt.on {
  background: var(--leaf-deep);
  border-color: var(--leaf-deep);
  color: #f3faf5;
}

.selected-cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
}

.selected-cities li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: #f7fbf8;
  border: 1px solid var(--line);
}

.selected-cities .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.selected-cities .sel-name {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.selected-cities button {
  margin-left: auto;
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.admin-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.preview-panel #admin-map {
  height: 320px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #c5d5cb;
}

.preview-hint {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.custom-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.custom-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbf8;
}

.custom-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.custom-actions {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.custom-actions button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}

.custom-actions button.danger {
  color: var(--coral);
}

@media (max-width: 960px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}
