body {
  --color-bg: #f8faf9;
  --color-text: #2f3336;
  --color-accent: #5d8787;
  --color-button: #5d8787;
  --color-muted: #d6dce0;

  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

.mini-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.2s ease;
  background: rgba(251, 253, 252, 0.9);
  border-bottom: 1px solid #e9eef1;
  backdrop-filter: blur(6px);
}

.mini-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mini-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mini-logo {
  display: block;
  width: 96px;
  height: auto;
}

.mini-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-select {
  min-height: 31px;
  max-width: 128px;
  width: auto;
  padding: 4px 8px;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.94);
}

.mini-refresh-button {
  min-height: 31px;
  width: auto;
  margin-top: 0;
  padding: 4px 10px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4d5c63;
  background: #fff;
}

.mini-refresh-button:hover {
  background: #f6faf9;
  border-color: #cfdade;
}

.site-header {
  padding: 27px 16px 14px;
  background: #fff;
  border-bottom: 1px solid #e4eaec;
}

.site-header-row {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.site-brand-block {
  min-width: 0;
}

.site-header-nav {
  position: relative;
  padding-top: 4px;
}

.menu-button {
  width: auto;
  min-height: 30px;
  margin-top: 0;
  padding: 4px 10px;
  border: 1px solid #dde5e9;
  border-radius: 8px;
  background: #fff;
  color: #5a676e;
  font-size: 14px;
  line-height: 1;
}

.menu-button:hover {
  background: #f6faf9;
  border-color: #d1dde2;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 36px;
  min-width: 164px;
  padding: 8px;
  border: 1px solid #e4eaed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 46, 52, 0.08);
  z-index: 30;
}

.menu-panel a {
  display: block;
  padding: 7px 8px;
  border-radius: 7px;
  color: #344047;
  text-decoration: none;
  font-size: 13px;
}

.menu-panel a:hover {
  background: #f3f8f8;
}

.about-top-nav {
  display: inline-flex;
  gap: 10px;
  padding-top: 4px;
}

.about-top-nav a {
  color: #46565d;
  text-decoration: none;
  font-size: 13px;
}

.about-top-nav a:hover {
  text-decoration: underline;
}

.site-header h1 {
  margin: 0 0 6px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0.02em;
  font-weight: 780;
}

.brand-heading {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  font-size: 0;
}

.site-logo {
  display: block;
  width: 160px;
  height: auto;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 760;
  letter-spacing: 0.018em;
  display: inline-flex;
  align-items: center;
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-heading .beta-badge {
  margin-left: 0;
}

.site-header p {
  margin: 0;
  color: #687178;
  font-size: 14px;
}

.beta-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--color-muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #627177;
  background: #f5f8f8;
  vertical-align: middle;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 16px 44px;
}

.controls-band {
  margin-bottom: 14px;
  padding: 8px 4px 8px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.24);
}

.filters {
  margin-bottom: 5px;
}

.filters-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.list-status {
  margin-bottom: 0;
  padding-top: 4px;
  border-top: 1px solid #eef3f5;
}

.board-note {
  margin: 7px 0 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #7e898f;
}

select {
  width: 100%;
  max-width: 300px;
  min-height: 34px;
  padding: 5px 8px;
  font-size: 13.5px;
  border: 1px solid #e1e7ea;
  border-radius: 8px;
  background: #fff;
}

.filter-refresh-group {
  display: flex;
  align-items: flex-end;
}

.filter-refresh-group label {
  visibility: hidden;
  margin-bottom: 4px;
}

.refresh-button {
  width: auto;
  min-height: 34px;
  margin-top: 0;
  padding: 5px 12px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4d5c63;
  background: #fff;
}

.refresh-button:hover {
  background: #f6faf9;
  border-color: #cfdade;
}

.updates-list {
  display: block;
}

.card {
  padding: 24px 0;
  border-bottom: 1px solid #e6ecef;
}

.card:last-child {
  border-bottom: 0;
}

.card h2 {
  margin: 0 0 2px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-text);
}

.meta {
  font-size: 13px;
  color: #7a756d;
  margin-bottom: 10px;
  line-height: 1.5;
}

.card p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
}

.card-comment {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.76;
  color: #32383d;
}

.card-shop-description {
  margin: 0px 0 8px;
  font-size: 9px;
  line-height: 1.22;
  color: #7f8a92;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.card-comment-fallback {
  color: #7a756d;
}

.card-meta-secondary {
  margin-top: 12px;
  font-size: 11.5px;
  color: #98a1a8;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.history-actions button {
  width: auto;
  min-height: 34px;
  margin-top: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
}

.card-link-wrap {
  display: inline-flex;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  cursor: pointer;
  width: auto;
  min-height: 24px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.15;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.map-link-primary {
  background: var(--color-button);
  border-color: var(--color-button);
  color: #fff;
}

.map-link-primary:hover {
  background: #4f7575;
  border-color: #4f7575;
}

.map-link-secondary {
  background: #fff;
  border-color: #ccd2d6;
  color: #4b555c;
}

.map-link-secondary:hover {
  background: #f6f8f9;
  border-color: #bec6cc;
}

.empty-state {
  padding: 18px 0;
  border-bottom: 1px solid #e8ecef;
  color: #6f787f;
}

.admin-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

.about-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.about-section + .about-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9eef1;
}

.about-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.about-section p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #3a4348;
}

.panel {
  background: #fdfdfc;
  border: 1px solid #e7eaed;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.sub-note {
  margin-top: 6px;
  font-size: 13px;
  color: #707980;
  line-height: 1.5;
}

.compact-note {
  margin: 8px 0 0;
}

.admin-public-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #fff;
  color: #4d5c63;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.admin-public-link:hover {
  background: #f6faf9;
  border-color: #cfdade;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.multiline-message {
  white-space: pre-line;
}

input, textarea, button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  font-size: 15px;
  border: 1px solid #d8d0c4;
  border-radius: 14px;
  background: #fff;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.shop-description-input {
  min-height: 64px;
}

.link-mode-group {
  margin-top: 8px;
}

.link-mode-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
}

.link-mode-option input {
  width: auto;
  margin: 0;
}

.link-mode-option input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: var(--color-button);
}

.custom-link-fields {
  margin-top: 4px;
}

.custom-area-fields {
  margin-top: 8px;
}

button {
  cursor: pointer;
  margin-top: 10px;
  min-height: 44px;
  font-weight: 600;
  color: #4f4a42;
  background: #f4efe6;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

button:hover {
  background: #eee4d2;
  border-color: #cfc4b3;
}

button:disabled {
  cursor: not-allowed;
  color: #8a847b;
  background: #f1ede5;
}

.hidden {
  display: none;
}

.status-message {
  margin-top: 12px;
  font-size: 14px;
  color: #444;
}

.status-message.status-success {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #ecf5f2;
  border: 1px solid #c9ded8;
  color: #2f5f56;
  opacity: 1;
  animation: success-fade 0.26s ease-out;
}

.status-message.status-success.status-fadeout {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.section-title {
  margin: 24px 0 8px;
  font-size: 18px;
}

.place-summary {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #f8f4ec;
  border-radius: 10px;
  font-size: 14px;
  color: #4f4a42;
}

.accordion-section + .accordion-section {
  margin-top: 16px;
}

.accordion-trigger {
  width: 100%;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #e7ecef;
  border-radius: 10px;
  background: #fbfcfc;
  color: inherit;
  text-align: left;
  min-height: 36px;
  font-weight: 700;
}

.accordion-trigger:hover {
  background: #f5f9f9;
  border-color: #dce5e8;
}

.accordion-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.accordion-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  color: #6f7c84;
  font-size: 13px;
  line-height: 1;
  transform: translateY(1px);
}

.accordion-content {
  margin-top: 16px;
}

.accordion-section.collapsed .accordion-content {
  display: none;
}

@media (max-width: 640px) {
  .site-header-row {
    gap: 10px;
  }

  .site-header-nav {
    padding-top: 2px;
  }

  .menu-button {
    min-height: 28px;
    padding: 3px 8px;
    font-size: 13px;
  }

  .menu-panel {
    top: 33px;
    min-width: 152px;
  }

  .about-top-nav {
    gap: 8px;
    padding-top: 2px;
  }

  .mini-header-inner {
    padding: 7px 12px;
    gap: 8px;
  }

  .mini-brand {
    font-size: 16px;
  }

  .mini-logo {
    width: 82px;
  }

  .mini-controls {
    gap: 5px;
  }

  .mini-select {
    min-height: 30px;
    max-width: 112px;
    padding: 4px 7px;
    font-size: 12.5px;
  }

  .mini-refresh-button {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .site-header h1 {
    font-size: 42px;
  }

  .site-logo {
    width: 130px;
  }

  .card h2 {
    font-size: 21px;
  }
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-group {
  min-width: 0;
}

.filter-group label {
  display: block;
  margin: 0 0 3px;
  font-size: 11px;
  color: #748089;
  font-weight: 600;
}

.result-count {
  margin-top: 0;
  display: block;
  padding: 1px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 640;
  color: #495b63;
  line-height: 1.38;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .filter-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
  }

  .result-count {
    font-size: 14px;
  }

  .refresh-button {
    padding-inline: 10px;
    font-size: 12.5px;
  }
}

.btn-primary {
  color: #fff;
  border-color: var(--color-button);
  background: var(--color-button);
}

.btn-primary:hover {
  border-color: #4f7575;
  background: #4f7575;
}

.btn-secondary {
  color: #5e584f;
  border-color: #d8d0c4;
  background: #fff;
}

.btn-secondary:hover {
  border-color: #cfc4b3;
  background: #faf7f1;
}

.panel-footer-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ece5d9;
}

@keyframes success-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-actions {
  margin: 14px 0 10px;
}

.about-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6f787f;
}

.about-section a {
  color: var(--color-accent);
  text-decoration: none;
}

.about-section a:hover {
  text-decoration: underline;
}

.about-actions .map-link,
.about-actions .map-link:visited,
.about-actions .map-link:hover,
.about-actions .map-link:active {
  color: #fff;
  text-decoration: none;
}
