:root {
  --color-primary: #4caf50;
  --color-primary-hover: #45a049;
  --color-primary-soft: #f0f9f0;
  --color-accent: #52c41a;
  --color-accent-hover: #45ad15;

  --color-surface: #ffffff;
  --color-surface-muted: #f9f9f9;
  --color-surface-soft: #fdfdfd;
  --color-surface-alt: #f8f9fa;
  --color-bg: #f5f5f5;
  --color-overlay: rgba(0, 0, 0, 0.4);
  --color-overlay-strong: rgba(0, 0, 0, 0.5);
  --color-overlay-heavy: rgba(0, 0, 0, 0.6);
  --color-overlay-modal: rgba(0, 0, 0, 0.7);

  --color-text: #333;
  --color-text-strong: #222;
  --color-text-muted: #666;
  --color-text-soft: #888;
  --color-text-faint: #999;
  --color-text-subtle: #777;
  --color-text-inactive: #aaa;
  --color-text-light: #bbb;
  --color-inverse: #fff;

  --color-border: #ddd;
  --color-border-soft: #eee;
  --color-border-muted: #e0e0e0;
  --color-border-light: #f0f0f0;
  --color-border-strong: #ccc;
  --color-border-hover: #bbb;
  --color-border-success: #e8ece8;
  --color-border-warning: #ffe58f;

  --color-danger: #ff4d4d;
  --color-danger-hover: #ff1a1a;
  --color-danger-soft: #fff8f8;
  --color-danger-accent: #ff4d4f;
  --color-danger-strong: #ff5252;
  --color-danger-deep: #d63031;
  --color-info: #2196f3;
  --color-info-soft: #f8fbff;
  --color-success-dark: #1f7a3d;
  --color-success-warm: #856404;
  --color-success-soft: #d4edda;
  --color-warning-soft: #fff3cd;
  --color-hidden-soft: #f8d7da;
  --color-hidden-text: #721c24;

  --shadow-xs: 0 1px 5px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-3xl: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-4xl: 0 8px 15px rgba(0, 0, 0, 0.1);
  --shadow-5xl: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-6xl: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-7xl: 0 10px 30px rgba(0, 0, 0, 0.08);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 15px;
  --space-6: 20px;
  --space-7: 25px;
  --space-8: 30px;
  --space-9: 40px;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 15px;
  --radius-2xl: 16px;
  --radius-3xl: 20px;
  --radius-4xl: 25px;
  --radius-pill: 20px;
  --radius-round: 50%;

  --font-size-2xs: 10px;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 15px;
  --font-size-xl: 16px;

  --line-height-tight: 1.2;
  --line-height-base: 1.4;
  --line-height-relaxed: 1.5;
  --line-height-loose: 1.6;
  --line-height-extra: 1.8;

  --button-height-common: 38px;
  --button-height-action: 44px;
  --button-height-compact: 35px;
  --button-padding-inline-common: 12px;
  --button-padding-inline-action: 16px;

  --layout-max-width: 1400px;
  --layout-content-width: 1000px;
  --layout-upload-width: 800px;
  --layout-card-min: 260px;

  --z-base: 0;
  --z-map: 1;
  --z-footer: 900;
  --z-header: 1000;
  --z-fab: 1100;
  --z-overlay: 10010;
  --z-gallery: 10020;
  --z-upload-modal: 10030;
  --z-toast: 10040;
  --z-report-modal: 10050;
  --z-cookie: 99999;

  --primary-color: var(--color-primary);
  --primary-hover: var(--color-primary-hover);
  --bg-color: var(--color-bg);
  --card-bg: var(--color-surface);
  --text-color: var(--color-text);
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding-top: 100px;
  padding-bottom: 50px;
  background-color: var(--bg-color);
  color: var(--color-text);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow-y: auto;
}

body.violet-dashboard-page {
  -webkit-user-drag: auto;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.field.field-required > label::after {
  content: ' *';
  color: var(--color-danger, #e53e3e);
  font-weight: 700;
}

body.detail-modal-active header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2xl);
}

html.detail-modal-active,
html.no-scroll {
  overflow: hidden;
  overscroll-behavior: none;
}

body.map-mode-active,
.no-scroll {
  overflow: hidden;
}

body.detail-modal-active,
body.no-scroll {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

input,
textarea {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
}

#mapView {
  position: relative;
  z-index: var(--z-map);
  display: none;
  width: 100%;
  height: auto;
}

header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-header);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface);
  box-shadow: var(--shadow-2xl);
}

.header-top,
.header-bottom,
.notice-container,
.footer-container,
.mushroom-grid,
.detail-wrapper,
.about-wrapper,
.notice-wrapper,
.contact-wrapper {
  box-sizing: border-box;
  width: 100%;
}

.header-top,
.header-bottom,
.notice-container,
.footer-container,
.mushroom-grid,
.detail-wrapper {
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

.about-wrapper,
.notice-wrapper,
.contact-wrapper {
  max-width: var(--layout-content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.info-page {
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.96), rgba(249, 249, 249, 1));
}

.info-page-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--layout-content-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) calc(var(--space-9) * 1.5);
}

.info-page-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 60px var(--space-9) var(--space-9);
  border: 1px solid rgba(223, 231, 223, 0.92);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 249, 0.96));
  box-shadow: 0 18px 40px rgba(27, 39, 29, 0.08);
  box-sizing: border-box;
}

.info-page-header {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.info-page-kicker {
  margin: 2px, auto;
  text-align: center;
  color: var(--color-success-dark);
  font-size: var(--font-size-sm);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-page-title {
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-strong);
  font-size: clamp(1.25rem, 1.5vw + 1rem, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.info-page-meta {
  margin: 0;
  text-align: right;
  color: var(--color-text-soft);
  font-size: var(--font-size-md);
  line-height: var(--line-height-base);
}

.info-page-content {
  display: grid;
  gap: var(--space-6);
}

.info-page-content h1,
.info-page-content h2,
.info-page-content h3,
.info-page-content h4 {
  margin: 0 0 var(--space-3);
  color: var(--color-text-strong);
  line-height: 1.2;
}

.info-page-content p,
.info-page-content ul,
.info-page-content ol,
.info-page-content li,
.info-page-content .section-content,
.info-page-content .about-section-content,
.info-page-content .notice-accordion-content {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.info-page-content ul,
.info-page-content ol {
  margin: 0;
  padding-left: 1.4rem;
}

.info-page-content p {
  margin: 0;
}

.info-page-content .section-box {
  margin: 0;
}

.info-page-content .section-content,
.info-page-content .about-section-content,
.info-page-content .notice-accordion-content {
  white-space: normal;
}

.info-page-container.contact-box {
  max-width: 860px;
}

.info-page-container.info-page-container--notice {
  max-width: 1000px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--button-height-common);
}

.header-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.title-area {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.logo-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.logo-link:hover h1 {
  opacity: 0.8;
}

.header-logo {
  height: 1.2em;
  margin-top: -4px;
  margin-right: var(--space-2);
  vertical-align: middle;
}

header h1 {
  margin: 0;
  color: var(--color-text);
  font-size: 1.2em;
  letter-spacing: -0.5px;
}

.search-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  opacity: 1;
}

.search-area.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.search-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 280px;
  height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  box-sizing: border-box;
  vertical-align: middle;
}

#searchInput {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 5px 0 30px;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: var(--font-size-md);
}

.search-icon {
  position: absolute;
  left: var(--space-3);
  z-index: 10;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  pointer-events: none;
}

.clear-button {
  position: absolute;
  right: var(--space-3);
  z-index: 10;
}

.filter-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  overflow: visible !important;
}

.filter-left-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  overflow: visible !important;
}

.desktop-row {
  display: flex;
  align-items: flex-end;
  width: 100%;
  gap: var(--space-5);
}

.group-type {
  flex: 1;
}

.group-name {
  flex: 3;
}

.fab-wrapper {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: var(--z-fab);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-menu {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mushroom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  padding: var(--space-6);
}

@media (min-width: 1100px) {
  .mushroom-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .mushroom-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

@media (min-width: 801px) {
  .notice-popup-modal__controls .lang-options .btn-common {
    min-width: 33px;
    min-height: 33px;
    height: 33px;
    padding-inline: 8px;
    box-sizing: border-box;
  }

  /* Header lang button (desktop) */
  .title-area .lang-options .btn-common,
  header .lang-options .btn-common {
    min-width: 33px;
    min-height: 33px;
    height: 33px;
    padding-inline: 8px;
    box-sizing: border-box;
  }
}
}

@media (max-width: 699px) {
  .mushroom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scroll-sentinel {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 84px;
  padding: var(--space-4) 0 var(--space-2);
  color: var(--color-text-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.scroll-sentinel.is-visible {
  opacity: 1;
}

.scroll-sentinel-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border-muted);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: scroll-sentinel-spin 0.8s linear infinite;
}

.scroll-sentinel-text {
  font-size: var(--font-size-md);
  line-height: var(--line-height-base);
}

@keyframes scroll-sentinel-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.main-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-footer);
  padding: var(--space-2) var(--space-6);
  border-top: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  color: var(--color-text-faint);
  font-size: var(--font-size-sm);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 14px;
  margin-right: 5px;
  vertical-align: middle;
  filter: grayscale(100%);
  opacity: 0.6;
}

.footer-disclaimer {
  flex: 1;
  padding: 0 var(--space-3);
  text-align: center;
  font-size: var(--font-size-xs);
}

.wip-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: var(--space-6);
  text-align: center;
}

.about-card,
.contact-box,
.notice-wrapper .section-box,
.upload-container,
.table-container,
.migration-card,
.login-card {
  background: var(--color-surface);
}

.about-card {
  position: relative;
  padding: 60px var(--space-9) var(--space-9);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-6xl);
}

.info-page-container.about-card,
.info-page-container.contact-box {
  padding: 60px var(--space-9) var(--space-9);
  border: 1px solid rgba(223, 231, 223, 0.92);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 249, 0.96));
  box-shadow: 0 18px 40px rgba(27, 39, 29, 0.08);
}

.contact-wrapper {
  display: flex;
  justify-content: center;
}

.contact-box {
  position: relative;
  align-self: flex-start;
  width: 100%;
  max-width: 600px;
  padding: var(--space-9);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-7xl);
  box-sizing: border-box;
}

.detail-wrapper {
  padding: 0 var(--space-6);
}

.detail-mobile-back {
  display: none;
}

.detail-container {
  display: flex;
  max-height: 800px;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-7xl);
}

.detail-visual {
  position: relative;
  display: flex;
  flex: 0 0 48%;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-3);
  min-height: 500px;
}

.detail-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain !important;
  object-position: center;
  transition: transform 0.3s ease;
}

.detail-info {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-5);
  min-height: 0;
  overflow: hidden;
  padding: var(--space-6) var(--space-3) var(--space-3) var(--space-3);
}

.detail-modal-page {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(76, 175, 80, 0.12), transparent 34%),
    rgba(18, 24, 20, 0.48);
}

body.detail-modal-page {
  height: 100vh;
  padding-bottom: 0;
  overflow: hidden;
}

.detail-modal-page header,
.detail-modal-page .main-footer {
  display: none;
}

.detail-modal-page .detail-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-modal-page .detail-container {
  width: min(1120px, calc(100vw - (var(--space-4) * 2)));
  max-width: 100%;
  max-height: min(800px, calc(100vh - (var(--space-4) * 2)));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  background: var(--color-surface);
  backdrop-filter: blur(14px);
  box-shadow: 0 32px 80px rgba(9, 14, 11, 0.22);
}

.detail-modal-page .detail-visual {
  min-height: 0;
}

.detail-modal-page .detail-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain !important;
  object-position: center;
}

.detail-modal-page .detail-info {
  gap: var(--space-6);
  padding: var(--space-6) var(--space-3) var(--space-3) var(--space-3);
  overflow: hidden;
}

.detail-modal-inline .detail-info {
  gap: var(--space-6);
  padding: var(--space-6) var(--space-3) var(--space-3) var(--space-3);
  overflow: hidden;
}

.detail-heading-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.detail-modal-page .detail-heading-row,
.detail-modal-inline .detail-heading-row {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: var(--space-3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.detail-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: transparent;
  background: none;
  box-shadow: none;
  font-size: 1.2rem;
}

.detail-modal-page .detail-title {
    display:flex;
    align-items: center;
  gap: var(--space-2);
  min-width: 0;
  font-size: clamp(1rem, 1vw, 1.5rem);
  letter-spacing: -0.04em;
  line-height:1;
}

.detail-modal-page .detail-title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-inline-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.detail-tags-row {
  gap: var(--space-4);
}

.detail-story-row {
  gap: var(--space-2);
}

.detail-story-row .info-label {
  display: inline;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.detail-story-row .description-content {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-modal-page .tag-group.detail-inline-row.detail-tags-row.detail-surface-card,
.detail-modal-inline .tag-group.detail-inline-row.detail-tags-row.detail-surface-card,
.detail-modal-page .description-content.detail-surface-card,
.detail-modal-inline .description-content.detail-surface-card {
  min-height: 35px;
}

.detail-tags-inline {
  flex: 1;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.detail-location-row {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-4);
  width: 100%;
}

.detail-location-row .location-left {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.detail-location-row .coords-box {
  flex: 3 1 0;
  min-width: 0;
  white-space: nowrap;
}

.detail-modal-page .country-tag-text,
.detail-modal-page .tag-item,
.detail-modal-page .coords-text,
.detail-modal-page .description-content,
.detail-modal-page .comment-item-body {
  color: var(--color-text-muted);
}

.detail-modal-page .description-content {
  font-size: 0.85em;
  line-height: 1.8;
}

.comment-section,
.detail-modal-page .comment-section,
.detail-modal-inline .comment-section {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
}

.detail-modal-page #commentList,
.detail-modal-inline #commentList {
  flex: 1 1 auto;
  min-height: 160px;
  max-height: none;
  margin-bottom: 0;
  padding-right: var(--space-2);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-modal-page .comment-item,
.detail-modal-page .comment-item-compact {
  padding: var(--space-4);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
}

.detail-modal-page .comment-item + .comment-item,
.detail-modal-page .comment-item-compact + .comment-item-compact {
  margin-top: var(--space-3);
}

.detail-modal-page .comment-item-header {
  gap: var(--space-3);
  align-items: center;
}

.detail-modal-page .comment-item-header > * {
  min-width: 0;
}

.detail-modal-page .comment-item-body,
.detail-modal-page .detail-empty-comment {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-modal-page .comment-form-vertical {
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid rgba(76, 175, 80, 0.12);
  background: rgba(247, 250, 247, 0.96);
}

.detail-modal-page .comment-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
}

.detail-modal-page .comment-row label {
  width: auto;
  min-width: 0;
  padding-top: 10px;
}

.detail-modal-page .comment-input-text {
  min-width: 0;
}

.detail-modal-page .comment-input-nickname,
.detail-modal-page .comment-input-captcha {
  flex: initial;
}

.detail-modal-page .comment-captcha-label {
  margin-left: 0;
}

.detail-visual-footer {
  position: absolute;
  right: var(--space-5);
  bottom: 0;
  left: var(--space-5);
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.detail-modal-page .detail-visual-footer,
.detail-modal-inline .detail-visual-footer {
  position: absolute;
  right: var(--space-5);
  bottom: 0;
  left: var(--space-5);
  z-index: 2;
  margin-top: 0;
  padding-top: var(--space-3);
}

.detail-visual-footer .btn-icon {
  background: transparent;
}

.notice-wrapper .section-box {
  overflow: hidden;
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.notice-wrapper .section-box.pinned {
  border-left: 5px solid var(--color-primary-hover);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-7);
  cursor: pointer;
}

.upload-page {
  display: grid;
  place-items: start center;
  margin: 0;
  padding: var(--space-6);
  background-color: var(--bg-color);
  font-family: "Pretendard Variable", sans-serif;
}

.upload-container {
  display: grid;
  gap: var(--space-6);
  width: min(95%, var(--layout-upload-width));
  margin: 0 auto;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

.upload-header {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.upload-form {
  display: grid;
  gap: var(--space-6);
}

.coords-wrapper {
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
  margin-top: 5px;
}

.coords-wrapper input {
  flex: 3;
  box-sizing: border-box;
}

.coords-btns {
  display: grid;
  flex: 2;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.coords-btns .btn-secondary,
.coords-btns .btn-secondary-action {
  width: 100%;
}

.detail-footer,
.gallery-header,
.upload-form-actions,
.report-modal-actions,
.section-row-last,
.btn-group,
.modal-btns,
.migration-actions,
.admin-header-row,
.admin-header-actions,
.info-row-0,
.info-row-3 .input-with-btn,
.section-row-1,
.section-row-5,
.location-row,
.location-left,
.tag-group,
.detail-tags,
.tag-selection,
.tag-wrap,
.card-tags,
.gallery-slider,
.slider-container,
.comment-row,
.comment-form-vertical,
.report-target-info,
.list-container,
.feature-grid,
.guide-list,
.feature-item,
.guide-item,
.custom-map-popup .leaflet-popup-content,
.custom-dropdown .dropdown-btn,
.dropdown-item,
.btn-icon,
.country-tag,
.ad-image-area,
.ad-footer-btn,
.card-title-row,
.card-footer,
.map-popup-footer,
.u-flex-between,
.u-flex-center,
.u-flex {
  gap: var(--space-2);
}

.btn-common,
.btn-primary-action,
.btn-secondary-action,
.btn-secondary,
.coords-box,
.btn-back-floating,
.close-modal-btn,
.btn-lang-admin,
.btn-img-change,
.btn-img-crop,
.btn-search,
.admin-btn-secondary,
.btn-submit,
.btn-cancel,
.btn-modal-apply,
.btn-modal-cancel,
.violet-btn,
.btn-save,
.page-link,
.fab-main,
.fab-item,
.wip-btn,
.btn-comment-submit,
.close-btn,
.btn-remove-img {
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.btn-common {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--button-height-common);
  min-width: 33px;
  padding: 0 var(--button-padding-inline-common);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-sizing: border-box;
  color: var(--primary-color);
  font-size: 0.8em;
  font-weight: 700;
  text-decoration: none;
}

.btn-common:hover {
  background: var(--primary-color);
  color: var(--color-inverse);
}

.btn-primary-action,
.cookie-accept-btn,
.upload-submit,
.btn-comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--button-height-action);
  padding: var(--space-4) var(--button-padding-inline-action);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--primary-color);
  box-sizing: border-box;
  color: var(--color-inverse);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary-action:hover,
.cookie-accept-btn:hover,
.upload-submit:hover,
.btn-comment-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.upload-spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.upload-spinner-overlay[hidden] {
  display: none;
}

.upload-spinner-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-5xl);
}

.upload-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-round);
  animation: upload-spin 0.7s linear infinite;
}

@keyframes upload-spin {
  to { transform: rotate(360deg); }
}

.btn-secondary-action,
.btn-secondary,
.coords-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: var(--button-height-compact);
  padding: var(--space-2) var(--space-4);
  border: 1px dashed var(--primary-color);
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  box-sizing: border-box;
  color: var(--color-text-muted);
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-secondary-action:hover,
.btn-secondary:hover,
.coords-box:hover {
  background: var(--primary-color);
  color: var(--color-inverse);
}

.btn-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-4);
  border: none !important;
  background: transparent !important;
  color: var(--primary-color);
  font-size: 0.8em;
  font-weight: 700;
  cursor: pointer;
}

.btn-reset:hover {
  color: var(--color-danger);
}

.btn-reset .btn-icon {
  margin-right: 6px;
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  line-height: 1;
}

.btn-reset:hover .btn-icon {
  display: inline-block;
  transform: rotate(-180deg);
  transition: transform 0.3s ease;
}

.btn-back-floating {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--button-height-compact);
  padding: 0 var(--space-4);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-sizing: border-box;
  box-shadow: var(--shadow-lg);
  color: var(--primary-color) !important;
  font-size: 0.8em;
  font-weight: 700;
  text-decoration: none;
}

.btn-back-floating:hover {
  background: var(--primary-color);
  color: var(--color-inverse) !important;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-text-muted);
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
}

.btn-lang,
.btn-lang-admin
.vioet-admin-logout {
  min-width: fit-content;
}

.btn-lang-admin
.vioet-admin-logout {
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.5em;
  font-weight: 500;
  text-decoration: none;
}

.btn-lang-admin:hover
.violet-admin-logout:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--color-inverse);
}

.btn-submit {
  flex: 2;
  padding: 16px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--primary-color);
  color: var(--color-inverse);
  font-weight: 700;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-cancel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: none;
  border-radius: var(--radius-lg);
  background: #f0f0f0;
  color: var(--color-text-muted);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-cancel:hover {
  background: #e5e5e5;
}

.fab-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  box-shadow: var(--shadow-md);
  color: var(--color-inverse);
  cursor: pointer;
}

.fab-main.active {
  background: var(--color-danger-accent);
}

.hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  pointer-events: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-inverse);
  transition: all 0.3s;
}

.fab-main.active .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.fab-main.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.fab-main.active .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.fab-item {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  width: auto;
  min-width: 160px;
  height: 44px;
  padding: 0 var(--space-5);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-4xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.8);
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.fab-item span {
  flex-shrink: 0;
  font-size: 18px;
}

.fab-item small {
  white-space: nowrap;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.fab-menu.active .fab-item {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.fab-menu.active .fab-item:nth-child(1) {
  transform: translate(0, -345px);
}

.fab-menu.active .fab-item:nth-child(2) {
  transform: translate(0, -290px);
}

.fab-menu.active .fab-item:nth-child(3) {
  transform: translate(0, -235px);
}

.fab-menu.active .fab-item:nth-child(4) {
  transform: translate(0, -180px);
}

.fab-menu.active .fab-item:nth-child(5) {
  transform: translate(0, -125px);
}

.fab-menu.active .fab-item:nth-child(6) {
  transform: translate(0, -70px);
}

.clear-button {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
}

.clear-icon,
.search-icon {
  display: flex;
  align-items: center;
  color: var(--color-text-soft);
  font-size: var(--font-size-md);
  cursor: pointer;
}

.clear-icon {
  position: static !important;
  margin-left: 5px;
  transform: none !important;
  color: var(--color-border-strong);
}

.filter-row select,
.upload-form .form-group select,
.status-select {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.filter-row select {
  padding: 8px 30px 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 12px;
  font-size: 0.9em;
}

.filter-row select:hover,
.upload-form .form-group select:focus {
  border-color: var(--primary-color);
}

.custom-dropdown {
  position: relative;
  display: inline-block;
}

.custom-dropdown .dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 120px;
  height: 38px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-sizing: border-box;
  color: var(--color-text);
  font-size: 11.5px;
  cursor: pointer;
}

.custom-dropdown .dropdown-btn:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-muted);
}

.dropdown-arrow {
  margin-left: var(--space-2);
  color: var(--color-text-faint);
  font-size: 8px;
  transition: transform 0.2s;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--z-header);
  display: none;
  flex-direction: column;
  width: 100%;
  min-width: 180px;
  max-height: 300px;
  margin-top: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
  overflow-y: auto;
}

.dropdown-content:not(.is-hidden):not([hidden]) {
  display: flex;
}

.dropdown-content > .tag-list-body,
.dropdown-content .tag-list-body,
.dropdown-content .region-group-container,
.dropdown-content > label:not(.all-option) {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.dropdown-content .tag-list-body,
.dropdown-content .region-group-container {
  display: block;
  width: 100%;
  height: auto;
}

.dropdown-content::-webkit-scrollbar {
  width: 5px;
}

.dropdown-content::-webkit-scrollbar-thumb,
.gallery-slider::-webkit-scrollbar-thumb {
  border-radius: var(--radius-xs);
  background: var(--color-border-strong);
}

.dropdown-item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: 5px var(--space-4);
  background: var(--color-surface);
  color: #444;
  font-size: 10.5px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--color-surface-alt);
}

.dropdown-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: var(--space-3);
  accent-color: var(--color-primary-hover);
  cursor: pointer;
}

.dropdown-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
}

.dropdown-apply-area {
  padding: var(--space-2);
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-surface-soft);
}

.dropdown-apply-area.sticky-bottom {
  position: sticky;
  bottom: 0;
  z-index: 10;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding: var(--space-3);
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-surface);
  box-sizing: border-box;
}

.dropdown-item-footer {
  margin-bottom: var(--space-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-soft);
  background: transparent;
  font-weight: 600;
}

.dropdown-active {
  border: 3px solid var(--primary-color) !important;
  background-color: #f8fff9;
}

.selected-text {
  display: block;
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.region-name {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  margin-left: var(--space-3);
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.region-label,
.region-toggle-meta {
  display: inline-flex;
  align-items: center;
}

.region-toggle-meta {
  gap: var(--space-2);
}

.region-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--color-text-faint);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.region-group {
  flex: none;
  overflow: visible;
}

.region-header {
  justify-content: flex-start;
}

.country-list {
  display: block;
  margin-left: var(--space-5);
  padding: 0 var(--space-4);
  border-left: 1px dashed var(--color-border);
  background: var(--color-surface-muted);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.22s ease, padding 0.22s ease;
}

.country-list:not(.is-hidden):not([hidden]) {
  padding: 5px var(--space-4);
}

.region-group.is-expanded .region-arrow {
  color: var(--primary-color);
}

.btn-apply-green {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--primary-color);
  color: var(--color-inverse);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-apply-green:hover {
  background: var(--primary-hover);
}

.notice-bar {
  padding: var(--space-2) 16px;
  border-bottom: 1px solid var(--color-border-warning);
  background-color: #fffbe6;
  font-size: 0.9rem;
}

.notice-container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.notice-icon {
  flex-shrink: 0;
}

.notice-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  overflow: hidden;
}

.notice-item,
.notice-link-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notice-link-row {
  color: inherit;
  text-decoration: none;
}

.notice-item a {
  color: var(--color-text);
  text-decoration: none;
}

.notice-item a:hover {
  text-decoration: underline;
}

.notice-badge,
.badge {
  display: inline-block;
  border-radius: var(--radius-xs);
  font-weight: 700;
  vertical-align: middle;
}

.notice-badge {
  padding: 1px 6px;
  background: var(--color-accent);
  color: var(--color-inverse);
  font-size: 0.75rem;
}

.notice-badge.important {
  background: var(--color-danger-accent);
}

.notice-item.none {
  color: var(--color-text-faint);
}

.badge {
  margin-right: var(--space-2);
  padding: 2px 6px;
  font-size: var(--font-size-2xs);
}

.badge-pin {
  border: 1px solid var(--color-primary-hover);
  background: var(--color-primary-hover);
  color: var(--color-inverse);
}

.notice-title {
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: var(--line-height-base);
}

.notice-meta {
  margin-top: 5px;
  color: var(--color-text-inactive);
  font-size: var(--font-size-sm);
}

.notice-accordion-content {
  display: none;
  padding: var(--space-7);
  border-top: 1px solid var(--color-border-soft);
  background: #fafafa;
  color: #444;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-extra);
}

.section-box.active .notice-accordion-content {
  display: block;
}

.arrow-icon {
  color: var(--color-border);
  transition: 0.3s;
}

.section-box.active .arrow-icon {
  transform: rotate(180deg);
  color: var(--color-primary-hover);
}

.card {
  position: relative;
  z-index: var(--z-base);
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.card-clickable {
  cursor: pointer;
  touch-action: manipulation;
}

.card:hover {
  transform: translateY(-5px);
}

.card img,
.card-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  background: var(--color-border-soft);
  object-fit: cover;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.card img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.card-content {
  padding: var(--space-5);
}

.card:hover .card-thumb.is-carousel-active {
  transform: scale(1.01);
}

.card-thumb.is-card-image-fading {
  opacity: 0.4;
}

.card-title,
.card-title-text,
.map-popup-title-text,
.ad-title {
  font-weight: 700;
}

.card-title {
  margin-bottom: var(--space-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1em;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.card-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.card-title-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.card-tags {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin-bottom: var(--space-4);
  white-space: nowrap;
}

.card-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.card-marquee-track {
  display: inline-flex;
  align-items: center;
  min-width: 100%;
  white-space: nowrap;
  transform: translateX(0);
  will-change: transform;
}

.card-title-text-track {
  display: inline-flex;
  align-items: center;
  min-width: 100%;
}

.card-tags-track {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.card-marquee.is-overflowing:not(.is-animating)::after {
  content: "...";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-left: var(--space-3);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--color-surface) 45%);
}

.card:hover .card-marquee.is-overflowing.is-animating::after {
  opacity: 0;
}

.card:hover .card-marquee.is-overflowing.is-animating .card-marquee-track {
  animation: card-marquee-slide var(--marquee-duration, 1s) linear infinite;
}

@media (hover: none), (pointer: coarse) {
  .card-marquee.is-overflowing::after {
    opacity: 0;
  }

  .card-marquee.is-overflowing .card-marquee-track {
    animation: card-marquee-slide var(--marquee-duration, 1s) linear infinite;
  }
}

.card-tag-item {
  color: var(--color-text-soft);
  font-size: 0.85em;
  font-weight: 500;
}

.card-tag-item::before,
.tag-item::before {
  content: "#";
  margin-right: 1px;
  color: var(--primary-color);
}

.country-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: var(--color-text-soft);
  font-size: 0.75em;
  font-weight: 700;
}

.country-tag img {
  display: block;
  width: 16px;
  height: auto;
  border-radius: 1px;
}

@keyframes card-marquee-slide {
  0%,
  10% {
    transform: translateX(0);
  }

  45%,
  55% {
    transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
  }

  100% {
    transform: translateX(0);
  }
}

.coords-box {
  width: 100%;
}

.coords-text {
  color: #555;
  font-size: 0.75em;
  font-weight: 500;
}

.coords-box:hover .coords-text,
.coords-box:hover span,
.btn-secondary:hover {
  color: var(--color-inverse) !important;
}

.card-footer {
  display: flex;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid var(--color-border-light);
}

.card-footer .btn-icon,
.detail-footer .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-footer .btn-icon {
  flex: 1;
  margin: 0;
  padding: 12px 0;
  border: none;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.card-footer .btn-icon:first-child {
  border-right: 1px solid var(--color-border-light);
}

.card-footer .btn-icon:hover {
  background-color: var(--color-surface-muted);
}

.card-footer .btn-icon:first-child:hover {
  color: #e91e63;
}

.card-footer .btn-icon:last-child:hover {
  color: var(--color-danger-strong);
}

.btn-icon span {
  color: inherit;
  font-size: 0.85em;
  font-weight: 500;
}

.card.ad-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-muted);
  background-color: var(--color-surface);
  cursor: pointer;
}

.card.ad-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-4xl);
}

.ad-image-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  border-bottom: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: #f8fdf8;
}

.ad-coffee-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.2));
}

.ad-support-label {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-xs);
  background-color: var(--primary-color);
  color: var(--color-inverse);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ad-title {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-color);
  font-size: 1.05rem;
}

.ad-desc {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: var(--line-height-loose);
  word-break: keep-all;
}

.ad-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.card.ad-card:hover .ad-footer-btn {
  background-color: var(--primary-color);
  color: var(--color-inverse);
}

.page-header-title {
  font-size: 24px;
  font-weight: 800;
}

.notice-header-spacing {
  margin-top: 50px;
  margin-bottom: 30px;
}

.notice-pagination-spacing {
  margin-top: 30px;
}

.country-flag-small {
  width: 20px;
  height: auto;
  margin-right: 4px;
  vertical-align: middle;
}

.gallery-open-trigger,
.gallery-trigger {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.gallery-open-trigger {
  font-size: 1.3em;
}

.gallery-trigger {
  font-size: 1.2em;
  transition: transform 0.2s;
}

.gallery-trigger:hover {
  transform: scale(1.2);
}

.report-modal-relative {
  position: relative;
}

.cookie-desc-primary {
  margin-bottom: var(--space-3);
  color: var(--color-text);
  font-weight: 700;
}

.cookie-desc-secondary {
  margin-bottom: var(--space-7);
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.cookie-accept-btn {
  width: 100%;
  padding: var(--space-5);
}

.cookie-btn-subtext {
  display: block;
  opacity: 0.9;
  font-size: 0.8em;
  font-weight: 400;
}

.emoji-marker-icon {
  font-size: 30px;
  line-height: 1;
}

.map-popup-card {
  width: 250px;
  margin: 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.map-popup-thumb {
  height: 140px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.map-popup-card-content {
  padding: var(--space-4);
  background: var(--color-surface);
}

.map-popup-tags {
  margin-top: var(--space-2);
}

.map-popup-coords {
  margin-top: var(--space-3);
}

.map-popup-footer {
  display: flex;
  justify-content: space-around;
  padding: var(--space-2);
  border-top: 1px solid var(--color-border-soft);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--color-surface);
}

.gallery-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-error-message {
  color: red;
  text-align: center;
}

.custom-emoji-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  background: none !important;
}

.leaflet-control-locate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  color: inherit;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.custom-map-popup .leaflet-popup-content-wrapper {
  overflow: hidden;
  padding: 0 !important;
  border-radius: var(--radius-lg);
}

.custom-map-popup .leaflet-popup-content {
  width: 250px !important;
  margin: 0 !important;
}

.custom-map-popup .card {
  box-shadow: none !important;
}

#toast,
#toast-msg {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  background-color: var(--color-text);
  box-shadow: var(--shadow-md);
  color: var(--color-inverse);
}

#toast {
  bottom: 80px;
  z-index: var(--z-toast);
  visibility: hidden;
  padding: var(--space-4) var(--space-7);
  font-size: 0.9em;
  transition: 0.3s;
}

#toast.show {
  visibility: visible;
}

#toast-msg {
  bottom: 30px;
  z-index: var(--z-fab);
  padding: var(--space-4) var(--space-7);
  font-size: var(--font-size-md);
  transition: opacity 0.5s ease;
}

body.violet-dashboard-page #toast,
body.violet-dashboard-page #toast-msg {
  z-index: calc(var(--z-report-modal) + 30);
}

#reportModal,
#cookieOverlay,
#mapModal,
#editModal,
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#reportModal {
  z-index: var(--z-report-modal);
  display: none;
  background: var(--color-overlay-heavy);
}

#cookieOverlay {
  z-index: var(--z-cookie);
  display: none;
  background: var(--color-overlay);
  backdrop-filter: blur(2px);
}

#mapModal {
  z-index: 10000;
  display: none;
  background: var(--color-overlay-strong);
}

#editModal {
  z-index: var(--z-overlay);
  display: none;
  background: var(--color-overlay-modal);
  backdrop-filter: blur(4px);
}

#editModal.is-open {
  display: flex;
}

#galleryModal {
  z-index: var(--z-gallery);
}

#uploadFormModal {
  z-index: var(--z-upload-modal);
}

.modal-overlay {
  z-index: var(--z-overlay);
  display: none;
  background-color: var(--color-overlay-modal);
}

.detail-modal-overlay-runtime {
  z-index: calc(var(--z-overlay) + 5);
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: rgba(12, 18, 15, 0.36);
  backdrop-filter: blur(8px);
}

.detail-modal-overlay-runtime.is-open {
  display: flex;
}

.detail-modal-host {
  width: 100%;
  min-height: calc(100vh - (var(--space-5) * 2));
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.detail-modal-host > * {
  pointer-events: auto;
}

.detail-modal-inline {
  position: static;
  inset: auto;
  z-index: auto;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.detail-modal-inline .detail-wrapper {
  position: relative;
  inset: auto;
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  flex: none;
  overflow: visible;
}

.detail-modal-inline .detail-container {
  margin: 0;
  width: min(1120px, calc(100vw - (var(--space-4) * 2)));
  max-width: 100%;
  max-height: min(750px, calc(100vh - (var(--space-4) * 2)));
}

.detail-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-muted);
  font-weight: 600;
}

.modal-content,
.report-modal-content,
.cookie-box,
.upload-modal-content,
.admin-modal-content {
  position: relative;
  background-color: var(--color-surface);
}

.modal-content {
  width: 90%;
  max-width: 500px;
  padding: var(--space-7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3xl);
}

.gallery-content {
  width: min(95%, 600px);
  max-width: 800px;
}

.slider-container {
  display: flex;
  overflow-x: auto;
  padding: var(--space-6) 0;
  -webkit-overflow-scrolling: touch;
}

.slider-container img {
  height: 400px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  object-fit: contain;
}

.gallery-slider {
  display: flex;
  overflow-x: auto;
  padding: var(--space-3) 0;
}

.gallery-slider::-webkit-scrollbar {
  height: 8px;
}

.gallery-slide {
  flex: 0 0 auto;
  width: 85vw;
  max-width: 550px;
  scroll-snap-align: center;
}

.gallery-slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  color: var(--color-text-inactive);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.close-btn:hover {
  color: var(--color-text);
}

.close-modal-btn {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--button-height-common);
  height: var(--button-height-common);
  padding: 0;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
}

.close-modal-btn:hover {
  background: var(--primary-color);
  color: var(--color-inverse);
}

.report-modal-content {
  width: 90%;
  max-width: 450px;
  padding: var(--space-7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-5xl);
}

.target-info-wrapper {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.target-info-img-box {
    flex: 1; 
    min-width: 0;
}

.target-info-img-box img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    object-fit: cover;
    display: block;
}

.target-info-text-box {
    flex: 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.target-row {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-sm);
}

.target-title {
    font-weight: bold;
    font-size: var(--font-size-md);
    color: var(--color-text-main);
}

.target-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.target-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.target-title-text {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

.target-title-text-track {
  display: inline-flex;
  align-items: center;
  min-width: 100%;
}

.target-title-row .card-marquee.is-overflowing::after {
  opacity: 0;
}

.target-title-row .card-marquee.is-overflowing .card-marquee-track {
  animation: card-marquee-slide var(--marquee-duration, 1s) linear infinite;
}

.target-meta {
    color: var(--color-text-muted);
    display: flex;
    gap: var(--space-2);
}

.meta-divider {
    color: var(--color-border);
}

.target-coords {
    color: var(--color-primary);
    font-family: monospace;
}

.report-options {
    margin-top: var(--space-4); 
}

#otherReason {
  display: none;
  width: 100%;
  margin-top: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.cookie-box {
  width: 85%;
  max-width: 450px;
  padding: var(--space-6);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-6xl);
  text-align: center;
}

.gallery-empty {
  width: 100%;
  padding: var(--space-9) 0;
  text-align: center;
}

.gallery-empty img {
  width: 80px;
  opacity: 0.2;
  filter: grayscale(1);
}

.gallery-empty p {
  margin-top: var(--space-5);
  color: var(--color-text-faint);
  line-height: var(--line-height-relaxed);
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  padding-right: var(--space-6);
}

.gallery-header [data-open-upload-form] .btn-icon {
  display: none;
}

.gallery-header [data-open-upload-form] .btn-text {
  display: inline-block;
}

.image-preview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 150px;
  margin-bottom: var(--space-5);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #f0f0f0;
  text-align: center;
}

.image-preview-container img {
  display: none;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.upload-form-actions {
  display: flex;
}

.upload-form-actions > * {
  flex: 1;
}

.report-modal-actions {
  display: flex;
  margin-top: var(--space-6);
}

.report-modal-actions .btn-secondary-action {
  flex: 2;
}

.wip-icon {
  display: block;
  margin-bottom: var(--space-6);
  font-size: 60px;
}

.wip-content h2 {
  margin-bottom: var(--space-5);
  color: var(--color-accent);
  font-size: 2rem;
}

.wip-content p {
  margin-bottom: var(--space-9);
  color: var(--color-text-muted);
  line-height: var(--line-height-loose);
}

.wip-btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  border-radius: 30px;
  background: var(--color-accent);
  box-shadow: 0 4px 15px rgba(82, 196, 26, 0.2);
  color: var(--color-inverse);
  font-weight: 700;
  text-decoration: none;
}

.wip-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.page-header {
  margin-bottom: var(--space-9);
  text-align: center;
}

.page-header h2 {
  margin-bottom: var(--space-3);
  color: var(--primary-color);
  font-size: 2em;
}

.page-header span {
  color: var(--color-text-soft);
  font-size: 0.9em;
}

.section-title {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border-soft);
  color: var(--color-text);
  font-size: 1.3em;
  font-weight: 700;
}

.section-content {
  color: #555;
  font-size: 0.95em;
  line-height: var(--line-height-extra);
  word-break: keep-all;
}

.about-intro-title,
.about-feature-title {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-6);
  color: var(--primary-color);
  font-size: clamp(1.1rem, 1vw + 0.8rem, 1.25rem);
  font-weight: 600;
}

.about-section-content {
  color: #444;
  font-size: 1.05em;
  line-height: var(--line-height-extra);
}

.guide-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--space-6);
  gap: var(--space-5);
}

.guide-item {
  padding: 18px;
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
}

.guide-item h4 {
  margin: 0 0 var(--space-2);
  color: var(--color-text-strong);
  font-size: 1em;
  font-weight: 700;
}

.guide-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9em;
  line-height: var(--line-height-relaxed);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-6);
  gap: var(--space-5);
}

.feature-item {
  padding: var(--space-6);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  display: block;
  margin-bottom: var(--space-4);
  font-size: 2em;
}

.feature-item h4 {
  margin-bottom: var(--space-2);
  font-size: 1em;
  font-weight: 800;
}

.feature-item p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.85em;
  line-height: var(--line-height-base);
}

.admin-note {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  border-left: none !important;
  background: #fff4f4 !important;
  text-align: center;
}

.admin-note p {
  margin: 0 !important;
  color: var(--color-danger-deep) !important;
  font-size: 0.85em !important;
  font-weight: 600;
  line-height: var(--line-height-tight);
}

.section-divider {
  margin: var(--space-8) 0;
  border: 0;
  border-top: 1px solid var(--color-border-soft);
}

.contact-box h2 {
  margin-bottom: var(--space-8);
  color: var(--color-text-strong);
  font-size: 1.8em;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-form .form-group label {
  margin-left: 5px;
  color: #444;
  font-size: 0.85em;
  font-weight: 800;
}

.contact-form .form-group label.required::after {
  content: " *";
  color: var(--color-danger-accent);
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.95em;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.upload-form label {
  display: block;
  margin-bottom: var(--space-2);
  color: #444;
  font-size: 0.9em;
  font-weight: 700;
}

.upload-form input[type="text"],
.upload-form input[type="file"],
.upload-form select {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  font-family: inherit;
}

.upload-form .form-group select {
  padding: 12px 30px 12px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font-size: 0.95em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.upload-form .form-group select:focus {
  outline: none;
}

.required-star,
#tag_error_msg,
.login-error,
.admin-list-delete {
  color: #e74c3c;
}

.required-star {
  margin-left: 2px;
}

.upload-modal-content {
  width: 90%;
  max-width: 600px;
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
}

#modalMapView {
  width: 100%;
  height: 400px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
}

.map-search-bar {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.map-search-bar input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.modal-btns {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.btn-modal-apply {
    flex: 2;
    padding: var(--space-4);
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--color-inverse);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.btn-modal-cancel {
    flex: 1;
    padding: var(--space-4);
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-border-soft);
    color: var(--color-text-main);
    cursor: pointer;
    text-align: center;
}

#image_preview_container {
  position: relative;
  display: none;
  width: 100%;
  max-width: 200px;
  margin-top: var(--space-3);
  line-height: 0;
}

#image_preview {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.btn-remove-img {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--color-danger);
  color: var(--color-inverse);
  font-size: var(--font-size-xl);
  cursor: pointer;
}

.tag-selection {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
}

.tag-chip,
.tag-chip span,
.tag-item span {
  cursor: pointer;
}

.tag-chip input,
.tag-item input {
  display: none !important;
}

.tag-chip span,
.tag-item span {
  display: inline-block;
  line-height: 1;
}

.tag-chip span {
  padding: 6px 14px;
  border: 1px solid var(--color-border-soft);
  border-radius: 20px;
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: 0.85em;
}

.tag-chip input:checked + span,
.tag-item input:checked + span {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--color-inverse);
}

#tag_error_msg {
  display: none;
  margin-top: var(--space-2);
  font-size: 0.75em;
  font-weight: 700;
}

#country_preview {
  min-height: 1.2em;
  margin-top: var(--space-2);
  color: var(--primary-color);
  font-size: 0.85em;
  font-weight: 700;
}

.hint {
  margin-top: var(--space-1);
  color: var(--color-text-faint);
  font-size: 0.75em;
}

.type-badge {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-2xl);
  background: var(--primary-color);
  color: var(--color-inverse);
  font-size: 0.85em;
  font-weight: 600;
}

.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  color: var(--color-text-strong);
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.tag-label,
.info-label {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.75em;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.info-label {
  display: block;
  margin-bottom: var(--space-3);
}

.tag-item {
  color: var(--primary-color);
  font-size: 0.9em;
  font-weight: 600;
}

.country-tag-text {
  margin: 0;
  color: #555;
  font-size: 0.9em;
  font-weight: 600;
}

.description-content {
  color: #444;
  font-size: 1.05em;
  line-height: 1.7;
  white-space: pre-line;
}

.comment-title {
  margin-bottom: var(--space-5);
  color: var(--color-text-strong);
  font-size: 0.8em;
  font-weight: 800;
}

.comment-form-vertical {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--color-surface-muted);
}

.comment-row {
  display: flex;
  align-items: center;
}

.comment-row label {
  width: 60px;
  color: #555;
  font-size: 0.85em;
  font-weight: 700;
  white-space: nowrap;
}

.comment-input-text {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 0.9em;
  justify-content: flex-end;
  margin-top: 5px;
}

.comment-item {
  padding: var(--space-5) 5px;
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-surface);
}

.comment-item-compact {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.comment-item-header {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-soft);
  font-size: 0.8em;
}

.comment-item-body {
  margin-top: 5px;
  font-size: 0.95em;
}

.detail-empty-comment {
  padding: var(--space-6) 0;
  color: var(--color-border-strong);
  font-size: 0.9em;
  text-align: center;
}

.comment-input-nickname {
  flex: 0.4;
}

.comment-captcha-label {
  width: auto;
  margin-left: var(--space-5);
}

.detail-modal-page .detail-tags .tag-item {
  color: var(--color-text-soft);
  font-size: 0.85em;
  font-weight: 500;
}

.detail-modal-page .detail-tags .tag-item::before {
  content: "#";
  margin-right: 1px;
  color: var(--primary-color) !important;
}

.comment-captcha-question {
  color: var(--primary-color);
  align-items: stretch;
}

.comment-input-captcha {
  flex: 0.2;
}

.detail-footer {
  display: flex;
}

.detail-footer .btn-icon {
  flex: 1;
  height: 45px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  font-weight: 600;
}

.detail-footer .btn-icon:hover {
  background: var(--color-surface-muted);
  transform: translateY(-2px);
}

.gallery-file-input {
  width: 100%;
  margin-bottom: var(--space-6);
}

.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-6);
  background: var(--bg-color);
  box-sizing: border-box;
  font-family: sans-serif;
}

.not-found-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-6);
  background:
    radial-gradient(circle at top, rgba(76, 175, 80, 0.12), transparent 34%),
    linear-gradient(180deg, var(--color-bg), var(--color-surface-muted));
  box-sizing: border-box;
}

.not-found-card {
  width: min(100%, 520px);
  padding: clamp(32px, 5vw, 48px);
  border: 1px solid var(--color-border-soft);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 249, 0.96));
  box-shadow: var(--shadow-5xl);
  text-align: center;
}

.not-found-card__code {
  margin: 0 0 var(--space-3);
  color: var(--primary-color);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.not-found-card__title {
  margin: 0 0 var(--space-3);
  color: var(--color-text-strong);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
}

.not-found-card__message {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: var(--line-height-loose);
}

.not-found-card__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.not-found-card__home-link {
  min-width: 180px;
  min-height: var(--button-height-action);
  padding: 0 var(--button-padding-inline-action);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
}

.login-card {
  width: min(100%, 360px);
  padding: var(--space-9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  text-align: center;
}

.login-card input {
  width: 100%;
  margin: var(--space-5) 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.login-card button {
  width: 100%;
  padding: var(--space-4);
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary-color);
  color: var(--color-inverse);
  font-weight: 700;
  cursor: pointer;
}

.migration-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 var(--space-6) var(--space-6);
  padding: 16px var(--space-6);
  border: 1px solid var(--color-border-success);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

.migration-copy p {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.violet-btn {
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-success-dark);
  color: var(--color-inverse);
  font-weight: 700;
  cursor: pointer;
}

.violet-btn-cancel {
  background: #8a3b2d;
}

.violet-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.migration-summary {
  color: #555;
  font-size: 0.9em;
}

.migration-log {
  min-height: 120px;
  max-height: 300px;
  margin: 0 var(--space-6) var(--space-6);
  padding: var(--space-4);
  overflow: auto;
  border-radius: var(--radius-2xl);
  background: #111;
  color: #d7f7dc;
  font: 12px/1.5 Consolas, Monaco, monospace;
  white-space: pre-wrap;
}

.status-select {
  padding: 8px 35px 8px 15px;
  border-radius: var(--radius-pill);
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23666%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center / 12px;
  background-size: 16px;
}

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

th {
  padding: var(--space-5) var(--space-4);
  background: var(--color-surface-alt);
  color: var(--color-text-subtle);
  font-size: 0.85em;
  text-transform: uppercase;
}

th a {
  display: block;
  color: var(--color-text-subtle) !important;
  text-decoration: none !important;
}

th.active-sort a {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.sort-arrow {
  margin-left: var(--space-1);
  font-size: 0.8em;
}

td {
  padding: var(--space-5) var(--space-4);
  border-top: 1px solid var(--color-border-soft);
  font-size: 0.9em;
}

tr:hover td {
  background: #fcfcfc;
}

.admin-id-cell {
  color: var(--color-text-soft);
  font-weight: 700;
  text-align: center;
}

.admin-type-cell,
.admin-coords-cell {
  color: var(--color-text-muted);
  font-size: 0.85em;
}

.admin-align-center {
  text-align: center;
}

.admin-cell-muted {
  padding: 50px;
  color: var(--color-text-faint);
  text-align: center;
}

.admin-flag-report {
  color: var(--color-danger-strong);
  font-weight: 700;
}

.admin-flag-report[data-zero="1"] {
  color: var(--color-border-strong);
  font-weight: 400;
}

.admin-align-center > span:last-child {
  color: var(--color-info);
}

.status-badge {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75em;
  font-weight: 700;
}

.PENDING {
  background: var(--color-warning-soft);
  color: var(--color-success-warm);
}

.PUBLISHED {
  background: var(--color-success-soft);
  color: #155724;
}

.HIDDEN {
  background: var(--color-hidden-soft);
  color: var(--color-hidden-text);
}

.table-container img {
  width: 50px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-8) 0;
  gap: 5px;
}

.page-link {
  padding: var(--space-2) 16px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.9em;
  text-decoration: none;
}

.page-link:hover {
  border-color: var(--color-border);
  background: #f0f0f0;
}

.page-link.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--color-inverse);
  font-weight: 700;
}

.admin-modal-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 90%;
  max-width: 850px;
  max-height: 80vh;
  padding: 50px var(--space-8) var(--space-8);
  overflow-y: auto;
  border-radius: var(--radius-3xl);
  box-sizing: border-box;
}

.btn-close-x {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-danger);
  box-shadow: var(--shadow-md);
  color: var(--color-inverse) !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 0;
  cursor: pointer;
}

.btn-close-x:hover {
  background: var(--color-danger-hover);
  transform: rotate(90deg) scale(1.1);
}

.btn-img-change,
.btn-img-crop,
.btn-search,
.admin-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  box-sizing: border-box;
  color: #444;
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
}

.btn-img-change:hover,
.btn-img-crop:hover
.btn-search:hover,
.admin-btn-secondary:hover {
  border-color: var(--color-border-strong);
  background: var(--color-border-soft);
}

.info-row-0 {
  display: flex;
  width: 100%;
}

.info-row-0 .field {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.info-row-0 label,
.field label,
.label-title {
  color: var(--color-text-subtle);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.info-row-0 label {
  margin-bottom: 5px;
}

.info-row-0 select {
  width: 100%;
  padding: var(--space-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  background-color: var(--color-surface);
}

.btn-search {
  min-width: 60px;
  flex-shrink: 0;
  white-space: nowrap;
}

.photo-left {
  width: 220px;
  flex-shrink: 0;
}

.photo-left img {
  width: 100%;
  height: 220px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: #f0f0f0;
  object-fit: contain;
}



.btn-img-change 
.btn-img-crop {
  width: 100%;
  height: auto;
  margin-top: var(--space-3);
}

.section-row-1 {
  display: flex;
}

.info-right-column {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-4);
}

.field input,
.field select,
.admin-modal-content textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--font-size-md);
}

.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  padding: var(--space-5);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  gap: 10px 6px;
}

.tag-item span {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.section-row-5 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.list-container {
  min-height: 100px;
  padding: var(--space-5);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  font-size: 13px;
}

.report-bg {
  background: var(--color-danger-soft);
}

.comment-bg {
  background: var(--color-info-soft);
}

.section-row-last {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-soft);
}

.btn-save {
  height: 45px;
  padding: var(--space-4) var(--space-9);
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary-color);
  color: var(--color-inverse);
  font-size: var(--font-size-md);
  font-weight: 700;
  cursor: pointer;
}

.admin-list-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.admin-list-delete {
  padding: 0 5px;
  border: none;
  background: none;
  font-weight: 700;
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.u-flex {
  display: flex;
}

.u-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.u-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.u-gap-8 {
  gap: var(--space-2);
}

.u-gap-10 {
  gap: var(--space-3);
}

.u-gap-12 {
  gap: var(--space-4);
}

.u-gap-15 {
  gap: var(--space-5);
}

.u-gap-20 {
  gap: var(--space-6);
}

.u-mt-20 {
  margin-top: var(--space-6);
}

.u-mb-15 {
  margin-bottom: var(--space-5);
}

.u-mb-25 {
  margin-bottom: var(--space-7);
}

.u-pr-30 {
  padding-right: var(--space-8);
}

.u-text-center {
  text-align: center;
}

.u-text-muted {
  color: var(--color-text-faint);
}

.u-text-soft {
  color: var(--color-text-soft);
}

.u-font-08 {
  font-size: 0.8em;
}

.u-font-09 {
  font-size: 0.9em;
}

.u-font-095 {
  font-size: 0.95em;
}

.u-font-11 {
  font-size: 1.1em;
}

.u-grow {
  flex-grow: 1;
}

.tag-chip.is-priority {
  order: -1;
}

@media (max-width: 900px) {

  .migration-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .migration-actions {
    width: 100%;
  }

  .section-row-1 {
    flex-direction: column;
  }

  .photo-left {
    width: 100%;
  }
}

@media (max-width: 800px) {
  body[data-page="index"] {
    padding-top: 150px !important;
  }

  body[data-page="detail"],
  body.detail-modal-page,
  body[data-page="admin"],
  body.violet-dashboard-page {
    padding-top: 0 !important;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  header h1 {
    font-size: 1.1em;
  }

  .filter-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 4px !important;
  }

  .violet-dashboard-page .violet-admin-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .violet-dashboard-page .violet-metric-card {
    flex: none;
  }

  .search-area {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 5px;
  }

  .search-container {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    padding: 0 var(--space-3);
    border-radius: var(--radius-pill);
    background-color: var(--color-surface);
  }

  #searchInput {
    font-size: 13px !important;
    padding-left: 44px !important;
    padding-right: 44px !important;
  }

  .search-icon {
    position: absolute;
    left: var(--space-2);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10 !important;
    font-size: 1.2rem;
    color: var(--color-text-soft);
    pointer-events: none;
  }

  .clear-button {
    position: absolute;
    right: var(--space-2);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10 !important;
  }

  .btn-common {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 35px;
    min-width: 35px;
    height: 35px;
    margin-left: 5px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .btn-common .btn-text,
  .selected-detail,
  .reset-text {
    display: none !important;
  }

  .btn-common .btn-icon {
    margin: 0;
    font-size: 1rem;
  }

  .gallery-header [data-open-upload-form] {
    width: 35px;
    min-width: 35px;
    height: 35px;
    padding: 0 !important;
  }

  .gallery-header [data-open-upload-form] .btn-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .gallery-header [data-open-upload-form] .btn-text {
    display: none !important;
  }

  .filter-left-group {
    gap: 4px !important;
  }

  .custom-dropdown .dropdown-btn {
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 var(--space-4) !important;
    font-size: 10.5px !important;
  }

  .dropdown-arrow {
    margin-left: 2px !important;
    font-size: 7px !important;
  }

  #reset-filter-area {
    display: flex;
    flex: 0 0 auto !important;
    align-items: center;
  }

  .btn-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px !important;
    height: 35px !important;
    margin-left: 4px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    cursor: pointer;
  }

  .btn-reset .btn-icon {
    margin: 0 !important;
    font-size: 1.5rem !important;
  }

  .footer-container {
    flex-direction: column;
    gap: 5px;
  }

  .footer-disclaimer {
    display: block;
    padding: 5px 0;
    line-height: var(--line-height-base);
    text-align: center;
  }

  .upload-container {
    padding: var(--space-4);
  }

  .upload-header {
    gap: var(--space-3);
  }

  .coords-btns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.sub-page {
    padding-top: 0;
  }

  .guide-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .guide-item {
    grid-column: span 1 !important;
  }

  .about-card {
    padding: 60px var(--space-6) var(--space-8);
  }

  .info-page-shell,
  .about-wrapper,
  .notice-wrapper,
  .contact-wrapper {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .info-page-container,
  .info-page-container.contact-box,
  .info-page-container.info-page-container--notice {
    padding: 60px var(--space-6) var(--space-8);
    border-radius: var(--radius-xl);
  }

  .info-page-header {
    margin-bottom: var(--space-6);
  }

  .info-page-title {
    font-size: clamp(1.2rem, 5vw + 0.5rem, 1.8rem);
  }

  .section-title {
    font-size: 1.2em;
  }

  .contact-wrapper {
    padding: 0 var(--space-3);
  }

  .contact-box {
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-xl);
  }

  .btn-back-floating {
    top: var(--space-3);
    left: var(--space-3);
  }

  .notice-wrapper {
    padding-top: 50px;
  }

  .notice-wrapper .btn-back-floating {
    top: 0;
    left: var(--space-5);
    height: 30px;
    font-size: 0.75em;
  }

  .upload-page {
    padding-top: 70px !important;
  }

  .desktop-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }

  .group-type,
  .group-name {
    flex: none;
    width: 100%;
  }

  .coords-wrapper {
    flex-direction: column;
  }

  .detail-container {
    flex-direction: column;
    max-height: 800px;
  }

  .detail-modal-overlay-runtime {
    padding: var(--space-3);
  }

  .detail-modal-host {
    min-height: calc(100vh - (var(--space-3) * 2));
    height: auto;
  }

  .detail-modal-inline .detail-wrapper {
    width: 100%;
    min-height: 0;
  }

  .detail-modal-inline .detail-container {
    width: min(1120px, calc(100vw - (var(--space-3) * 2)));
    max-width: 100%;
    min-height: 0;
    max-height: min(800px, calc(100vh - (var(--space-3) * 2))) !important;
    border-radius: 24px;
  }

  .detail-visual {
    flex: 0 0 320px;
    min-height: 320px;
    border-right: none;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .detail-title {
    font-size: 1.5em;
  }

  .detail-modal-page .detail-wrapper {
    align-items: center;
    min-height: 100vh;
  }

  .detail-modal-page .detail-container {
    width: min(1120px, calc(100vw - (var(--space-3) * 2)));
    max-width: 100%;
    min-height: 0;
    max-height: min(800px, calc(100vh - (var(--space-3) * 2))) !important;
    border-radius: 24px;
  }

  .detail-modal-inline .detail-info,
  .detail-modal-page .detail-info {
    min-height: 0;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .detail-modal-page .detail-visual {
    flex: 0 0 280px;
    min-height: 280px;
  }

  .detail-modal-page .detail-visual img {
    height: 100%;
  }

  .detail-modal-inline .detail-heading-row,
  .detail-modal-page .detail-heading-row {
    top: 0;
    margin: calc(var(--space-6) * -1) calc(var(--space-3) * -1) 0;
    padding: var(--space-4) var(--space-3) var(--space-3);
  }

  .detail-heading-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%
  }

  .detail-tags-row {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-location-row {
    gap: var(--space-3);
  }

  .detail-location-row .location-left {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-modal-page .country-tag-text,
  .detail-modal-inline .country-tag-text {
    color: var(--color-text-strong);
    font-size: 1rem;
    font-weight: 700;
  }

  .detail-modal-page .coords-box,
  .detail-modal-inline .coords-box {
    margin-top: 0;
    min-height: var(--button-height-compact);
    padding: var(--space-2) var(--space-4);
    border-style: dashed;
    border-color: var(--primary-color);
    border-radius: var(--radius-sm);
    background: var(--color-primary-soft);
    color: var(--color-text-muted);
    box-shadow: none;
  }

  .detail-modal-page .coords-box:hover,
  .detail-modal-inline .coords-box:hover {
    transform: translateY(-1px);
    box-shadow: none;
  }

  .detail-modal-page .coords-text,
  .detail-modal-inline .coords-text,
  .detail-modal-page .description-content,
  .detail-modal-inline .description-content,
  .detail-modal-page .comment-item-body,
  .detail-modal-inline .comment-item-body {
    color: var(--color-text-muted);
  }

  /* .detail-modal-page .description-content,
  .detail-modal-inline .description-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    line-height: 1.8;
    text-align: center;
    white-space: pre-wrap;
  } */

  .detail-modal-page .detail-comments-card,
  .detail-modal-inline .detail-comments-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .detail-modal-page .detail-comments-header,
  .detail-modal-inline .detail-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .detail-modal-page .detail-comment-count,
  .detail-modal-inline .detail-comment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.12);
    color: var(--color-success-dark);
    font-size: 0.9rem;
    font-weight: 800;
  }

  .detail-modal-page #commentList,
  .detail-modal-inline #commentList {
    min-height: 140px;
    max-height: none;
    margin: 0;
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .detail-modal-page .comment-item,
  .detail-modal-page .comment-item-compact,
  .detail-modal-inline .comment-item,
  .detail-modal-inline .comment-item-compact {
    padding: 14px 16px;
    border: 1px solid rgba(223, 231, 223, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(25, 38, 28, 0.04);
  }

  .detail-modal-page .comment-item + .comment-item,
  .detail-modal-page .comment-item-compact + .comment-item-compact,
  .detail-modal-inline .comment-item + .comment-item,
  .detail-modal-inline .comment-item-compact + .comment-item-compact {
    margin-top: 10px;
  }

  .detail-modal-page .comment-item-header,
  .detail-modal-inline .comment-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-text-soft);
    font-size: 0.8rem;
  }

  .detail-modal-page .comment-item-header strong,
  .detail-modal-inline .comment-item-header strong {
    color: var(--color-text-strong);
  }

  .detail-modal-page .detail-empty-comment,
  .detail-modal-inline .detail-empty-comment {
    padding: 20px;
    border: 1px dashed rgba(76, 175, 80, 0.24);
    border-radius: 18px;
    background: rgba(247, 250, 247, 0.82);
  }

  .detail-modal-page .comment-form-vertical,
  .detail-modal-inline .comment-form-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(76, 175, 80, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(247, 250, 247, 0.96), rgba(243, 248, 244, 0.92));
  }

  .detail-modal-page .comment-row,
  .detail-modal-inline .comment-row {
    display: grid;
    align-items: center;
    gap: 6px 8px;
  }

  .detail-modal-page .comment-row:first-of-type,
  .detail-modal-inline .comment-row:first-of-type {
    grid-template-columns: auto minmax(0, 1fr) auto minmax(76px, 102px);
  }

  .detail-modal-page .comment-row:last-of-type,
  .detail-modal-inline .comment-row:last-of-type {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .detail-modal-page .comment-row label,
  .detail-modal-inline .comment-row label {
    width: auto;
    min-width: 0;
    padding-top: 0;
    color: var(--color-text-soft);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .detail-modal-page .comment-input-text,
  .detail-modal-inline .comment-input-text {
    min-width: 0;
    min-height: 38px;
    margin-top: 0;
    padding: 0 11px;
    border: 1px solid rgba(205, 214, 205, 0.96);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.84rem;
    box-shadow: inset 0 1px 2px rgba(21, 31, 23, 0.03);
  }

  .detail-modal-page .comment-input-text:focus,
  .detail-modal-inline .comment-input-text:focus {
    border-color: rgba(76, 175, 80, 0.45);
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
  }

  .detail-modal-page .comment-captcha-label,
  .detail-modal-inline .comment-captcha-label {
    margin-left: 0;
  }

  .detail-modal-page .comment-submit-wrapper,
  .detail-modal-inline .comment-submit-wrapper {
    display: flex;
    justify-content: flex-end;
  }

  .detail-modal-page .btn-comment-submit,
  .detail-modal-inline .btn-comment-submit {
    min-width: 116px;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.2);
  }

  .detail-modal-page .btn-back-floating,
  .detail-modal-inline .btn-back-floating {
    top: 24px;
    left: 24px;
    z-index: 3;
    min-height: var(--button-height-common);
    height: auto;
    padding: 0 var(--button-padding-inline-common);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--primary-color) !important;
    font-size: 0.8em;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
  }

  .detail-modal-page .btn-back-floating:hover,
  .detail-modal-inline .btn-back-floating:hover {
    background: var(--primary-color);
    color: var(--color-inverse) !important;
    transform: translateY(-1px);
  }

  .detail-modal-page .detail-visual-footer,
  .detail-modal-inline .detail-visual-footer {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 28px rgba(21, 31, 23, 0.16);
  }

  .detail-modal-page .detail-visual-footer .btn-icon,
  .detail-modal-inline .detail-visual-footer .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--button-height-compact);
    gap: 6px;
    padding: var(--space-2) var(--space-4);
    border: 1px dashed var(--primary-color);
    border-radius: var(--radius-sm);
    background: var(--color-primary-soft);
    color: var(--color-text-muted);
    font-size: 0.85em;
    font-weight: 600;
  }

  .detail-modal-page .detail-visual-footer .btn-icon span,
  .detail-modal-inline .detail-visual-footer .btn-icon span {
    color: inherit;
    font-size: 0.85em;
    font-weight: 500;
  }
}

@keyframes detail-modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes detail-visual-reveal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 920px) {
  .detail-modal-page .detail-info,
  .detail-modal-inline .detail-info,
  .detail-modal-page .detail-meta-grid,
  .detail-modal-inline .detail-meta-grid {
    --detail-mobile-stack-gap: 10px;
  }

  .detail-modal-overlay-runtime {
    padding: 0;
    align-items: flex-end;
  }

  .detail-modal-host {
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    align-items: flex-end;
  }

  .detail-modal-inline {
    display: block;
    width: 100%;
    min-height: 0;
    align-items: flex-end;
  }

  .detail-modal-page .detail-wrapper,
  .detail-modal-inline .detail-wrapper {
    align-items: flex-end;
    justify-content: stretch;
    min-height: 0;
    max-height: none;
    padding: 0;
    overflow: hidden;
  }

  .detail-modal-page .detail-container,
  .detail-modal-inline .detail-container {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 28px 28px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    animation: detail-modal-sheet-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .detail-modal-page .detail-mobile-back,
  .detail-modal-inline .detail-mobile-back {
    position: sticky;
    top: calc(env(safe-area-inset-top) + 18px);
    z-index: calc(var(--z-overlay) + 2);
    display: block;
    grid-column: 1 / -1;
    height: 0;
    pointer-events: none;
  }

  .detail-modal-page .detail-mobile-back .btn-back-floating,
  .detail-modal-inline .detail-mobile-back .btn-back-floating {
    position: relative;
    top: 0;
    left: 18px;
    z-index: inherit;
    pointer-events: auto;
  }

  .detail-modal-page .detail-visual > .btn-back-floating,
  .detail-modal-inline .detail-visual > .btn-back-floating {
    display: none;
  }

  .detail-modal-page .detail-visual,
  .detail-modal-inline .detail-visual {
    min-height: 320px;
    padding: 18px 18px 96px;
    border-right: none;
    border-bottom: 1px solid rgba(76, 175, 80, 0.12);
  }

  .detail-modal-page .detail-visual::after,
  .detail-modal-inline .detail-visual::after {
    inset: 18px 18px 86px;
  }

  .detail-modal-page .detail-info,
  .detail-modal-inline .detail-info {
    gap: var(--detail-mobile-stack-gap);
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    overflow: visible;
    -webkit-overflow-scrolling: auto;
  }

  .detail-modal-page .detail-info-header,
  .detail-modal-inline .detail-info-header {
    gap: 10px;
    margin: 0;
    padding: 18px 16px 14px;
  }

  .detail-modal-page .detail-info-header::before,
  .detail-modal-inline .detail-info-header::before {
    content: none;
  }

  .detail-modal-page .detail-heading-row,
  .detail-modal-inline .detail-heading-row {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .detail-modal-page .detail-type-icon,
  .detail-modal-inline .detail-type-icon {
    width: 22px;
    height: 22px;
    border-radius: 9px;
    font-size: 0.76rem;
    background: transparent;
    box-shadow: none;
  }

  .detail-modal-page .detail-title,
  .detail-modal-inline .detail-title {
    flex: 1 1 0;
    align-items: center;
    font-size: 0.9rem;
    min-width: 0;
    width: auto;
    max-width: 100%;
    justify-self: stretch;
    overflow: hidden;
    white-space: nowrap;
  }

  .detail-modal-page .detail-title-text,
  .detail-modal-inline .detail-title-text {
    display: block;
    position: relative;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .detail-modal-page .detail-title-text.card-marquee,
  .detail-modal-inline .detail-title-text.card-marquee {
    display: block;
    position: relative;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .detail-modal-page .detail-title-text-track.card-title-text-track.card-marquee-track,
  .detail-modal-inline .detail-title-text-track.card-title-text-track.card-marquee-track {
    display: inline-block;
    white-space: nowrap;
    min-width: 100%;
    font-size: 20px;
  }

  .detail-modal-page .detail-meta-grid,
  .detail-modal-inline .detail-meta-grid {
    grid-template-columns: 1fr;
    gap: var(--detail-mobile-stack-gap);
  }

  .detail-modal-page .detail-surface-card,
  .detail-modal-inline .detail-surface-card {
    padding: 14px;
    border-radius: 18px;
  }

  .detail-modal-page .tag-group.detail-inline-row.detail-tags-row.detail-surface-card,
  .detail-modal-inline .tag-group.detail-inline-row.detail-tags-row.detail-surface-card,
  .detail-modal-page .description-content.detail-surface-card,
  .detail-modal-inline .description-content.detail-surface-card,
  .detail-modal-page .location-group.detail-surface-card,
  .detail-modal-inline .location-group.detail-surface-card {
    box-sizing: border-box;
    height: 25px;
    min-height: 30px;
    max-height: 30px;
    padding: 0 10px;
    border-radius: 14px;
    gap: 6px;
    overflow: hidden;
  }

  .detail-modal-page .detail-location-row,
  .detail-modal-inline .detail-location-row,
  .detail-modal-page .detail-tags-row,
  .detail-modal-inline .detail-tags-row {
    flex-direction: row;
    align-items: center;
  }

  .detail-modal-page .detail-location-row,
  .detail-modal-inline .detail-location-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .detail-modal-page .location-group .detail-location-row,
  .detail-modal-inline .location-group .detail-location-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .detail-modal-page .detail-location-row .location-left,
  .detail-modal-inline .detail-location-row .location-left {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-modal-page .coords-box,
  .detail-modal-inline .coords-box {
    width: min(180px, 100%);
    max-width: 100%;
    min-width: 0;
    flex: 0 1 180px;
    min-height: 22px;
    padding: 0 6px;
    font-size: 0.63rem;
    overflow: hidden;
  }

  .detail-modal-page .tag-group.detail-inline-row.detail-tags-row.detail-surface-card .tag-label,
  .detail-modal-inline .tag-group.detail-inline-row.detail-tags-row.detail-surface-card .tag-label,
  .detail-modal-page .location-group.detail-surface-card .u-font-11,
  .detail-modal-inline .location-group.detail-surface-card .u-font-11,
  .detail-modal-page .info-group.detail-surface-card.detail-story-card .info-label,
  .detail-modal-inline .info-group.detail-surface-card.detail-story-card .info-label,
  .detail-modal-page .comment-section.detail-surface-card.detail-comments-card .comment-title,
  .detail-modal-inline .comment-section.detail-surface-card.detail-comments-card .comment-title {
    flex: 0 0 auto;
    font-size: 12px !important;
    line-height: 1;
  }

  .detail-modal-page .detail-tags-inline,
  .detail-modal-inline .detail-tags-inline {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
  }

  .detail-modal-page .detail-tags-track,
  .detail-modal-inline .detail-tags-track {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .detail-modal-page .tag-item,
  .detail-modal-inline .tag-item {
    font-size: 0.66rem;
  }

  .detail-modal-page .country-tag-text,
  .detail-modal-inline .country-tag-text,
  .detail-modal-page .coords-text,
  .detail-modal-inline .coords-text {
    font-size: 0.64rem;
  }

  .detail-modal-page .detail-comments-header,
  .detail-modal-inline .detail-comments-header {
    align-items: flex-end;
  }

  .detail-modal-page .comment-title,
  .detail-modal-inline .comment-title {
    align-self: flex-end;
    line-height: 1;
  }

  .detail-modal-page .coords-text,
  .detail-modal-inline .coords-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-modal-page .gallery-trigger,
  .detail-modal-inline .gallery-trigger {
    width: 22px;
    height: 22px;
    font-size: 0.76rem;
  }

  .detail-modal-page .detail-comments-card,
  .detail-modal-inline .detail-comments-card {
    display: flex;
    flex-direction: column;
    min-height: fit-content;
    overflow: hidden;
  }

  .detail-modal-page #commentList,
  .detail-modal-inline #commentList {
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .detail-modal-page .comment-form-vertical,
  .detail-modal-inline .comment-form-vertical,
  .detail-modal-page .comment-row,
  .detail-modal-inline .comment-row {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .detail-modal-page .comment-form-vertical > *,
  .detail-modal-inline .comment-form-vertical > *,
  .detail-modal-page .comment-row > *,
  .detail-modal-inline .comment-row > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .detail-modal-page .comment-input-text,
  .detail-modal-inline .comment-input-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .detail-modal-page .comment-row:first-of-type,
  .detail-modal-inline .comment-row:first-of-type,
  .detail-modal-page .comment-row:last-of-type,
  .detail-modal-inline .comment-row:last-of-type {
    grid-template-columns: 1fr;
  }

  .detail-modal-page .comment-submit-wrapper,
  .detail-modal-inline .comment-submit-wrapper {
    justify-content: stretch;
  }

  .detail-modal-page .btn-comment-submit,
  .detail-modal-inline .btn-comment-submit {
    width: 100%;
  }

  .detail-modal-page .btn-back-floating,
  .detail-modal-inline .btn-back-floating {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: calc(var(--z-overlay) + 2);
  }

  .detail-modal-page .detail-visual-footer,
  .detail-modal-inline .detail-visual-footer {
    display: flex;
    align-items: center;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    right: 18px;
    bottom: 18px;
    left: 18px;
    grid-template-columns: none;
    gap: 7px;
    padding: 0 5px;
    border-radius: 16px;
  }

  .detail-modal-page .detail-visual-footer .btn-icon,
  .detail-modal-inline .detail-visual-footer .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 1 1 0;
    min-height: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .detail-modal-page .detail-visual-footer .btn-icon span,
  .detail-modal-inline .detail-visual-footer .btn-icon span {
    font-size: 0.72rem;
    line-height: 1;
  }
}

@keyframes detail-modal-sheet-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.violet-dashboard-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(114, 81, 181, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(72, 154, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #f6f3ff 0%, #f7f9fd 42%, #eef3fb 100%);
}

.violet-dashboard-page .violet-admin-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.violet-dashboard-page .violet-admin-hero,
.violet-dashboard-page .violet-admin-toolbar-panel,
.violet-dashboard-page .violet-migration-panel,
.violet-dashboard-page .violet-table-panel,
.violet-dashboard-page .violet-admin-modal-content {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 22px 60px rgba(54, 64, 108, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.violet-dashboard-page .violet-admin-hero::before,
.violet-dashboard-page .violet-admin-toolbar-panel::before,
.violet-dashboard-page .violet-migration-panel::before,
.violet-dashboard-page .violet-table-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(114, 81, 181, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(92, 172, 255, 0.12), transparent 24%);
}

.violet-dashboard-page .violet-admin-hero {
  padding: 28px;
}

.violet-dashboard-page .violet-admin-topbar,
.violet-dashboard-page .violet-admin-actions,
.violet-dashboard-page .violet-table-panel-head,
.violet-dashboard-page .violet-table-meta,
.violet-dashboard-page .violet-filter-form,
.violet-dashboard-page .violet-admin-metrics {
  display: flex;
}

.violet-dashboard-page .violet-admin-topbar {
  width: 100%;
  position: relative;
  z-index: 1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.violet-dashboard-page .violet-admin-intro {
  max-width: 760px;
}

.violet-dashboard-page .violet-admin-kicker,
.violet-dashboard-page .violet-panel-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(114, 81, 181, 0.1);
  color: #5e43a5;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.violet-dashboard-page .violet-admin-intro h2,
.violet-dashboard-page .violet-table-panel-head h2,
.violet-dashboard-page .violet-toolbar-copy h2 {
  margin: 10px 0 6px;
  color: #1c2238;
  font-size: clamp(1rem, 1vw + 0.95rem, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.violet-dashboard-page .violet-toolbar-copy {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.violet-dashboard-page .violet-toolbar-copy .toolbar-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between; /* spread children evenly across full width */
  width: 100%;
}

.violet-dashboard-page .violet-toolbar-copy .toolbar-buttons > * {
  flex: 1 1 0; /* each child takes equal share */
  min-width: 0; /* allow children to shrink
                 to avoid overflow when content is long */
}

.violet-dashboard-page .violet-toolbar-copy .toolbar-button-form {
  margin: 0;
}

.violet-dashboard-page .violet-toolbar-copy .toolbar-button-form .violet-btn {
  display: block;
  width: 100%;
}

/* Keep migration controls on a single horizontal row regardless of viewport */
.violet-dashboard-page .violet-toolbar-copy .migration-card-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.violet-dashboard-page .violet-toolbar-copy .migration-card-inline .violet-btn {
  flex: 0 0 auto; /* buttons keep intrinsic size */
}

.violet-dashboard-page .violet-toolbar-copy .migration-card-inline .upload-filename,
.violet-dashboard-page .violet-toolbar-copy .migration-card-inline .migration-summary {
  flex: 1 1 auto; /* summary/span takes remaining space */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.violet-dashboard-page .violet-admin-intro p,
.violet-dashboard-page .violet-toolbar-copy p,
.violet-dashboard-page .migration-copy p {
  margin: 0;
  color: #5f6680;
  line-height: 1.65;
}

.violet-dashboard-page .violet-admin-actions {
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
  gap: 5px;
  justify-content: flex-end;
}

.violet-dashboard-page .btn-lang-admin,
.violet-dashboard-page .violet-admin-logout,
.violet-dashboard-page .violet-filter-submit,
.violet-dashboard-page .violet-btn,
.violet-dashboard-page .admin-btn-secondary,
.violet-dashboard-page .btn-save,
.violet-dashboard-page .btn-img-change,
.violet-dashboard-page .btn-img-crop,
.violet-dashboard-page .btn-search {
  border-radius: 16px;
}

.violet-dashboard-page .btn-lang-admin,
.violet-dashboard-page .violet-admin-logout {
  min-height: 30px;
  padding: 0 16px;
  border: 1px solid rgba(111, 123, 173, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #30384f;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(55, 66, 103, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.violet-dashboard-page .btn-lang-admin:hover,
.violet-dashboard-page .violet-admin-logout:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 67, 165, 0.26);
  background: #ffffff;
}

.violet-dashboard-page .violet-admin-metrics {
  position: relative;
  z-index: 1;
  gap: 16px;
}

.violet-dashboard-page .violet-metric-card {
  flex: 1 1 0;
    font-size: 12px;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px;
    position: sticky;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 247, 255, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.violet-dashboard-page .violet-metric-label {
  color: #7a8097;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
    padding: 0;
}

  .detail-modal-page .detail-visual-footer .btn-icon,
  .detail-modal-inline .detail-visual-footer .btn-icon {
    min-height: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .detail-modal-page .detail-visual-footer .btn-icon span,
  .detail-modal-inline .detail-visual-footer .btn-icon span {
    font-size: 0.72rem;
    line-height: 1;
  }
.violet-dashboard-page .violet-metric-value {
  color: #1f2540;
  font-size: clamp(1rem, 1vw + 0.85rem, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.violet-dashboard-page .violet-metric-note {
  color: #6c7288;
  font-size: 0.88rem;
}

.violet-dashboard-page .violet-admin-toolbar-panel,
.violet-dashboard-page .violet-migration-panel,
.violet-dashboard-page .violet-table-panel {
  padding: 22px;
}

.violet-dashboard-page .violet-admin-toolbar-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: end;
}

/* If only one panel child is present, span it across both columns */
.violet-dashboard-page .violet-admin-toolbar-panel > .violet-toolbar-copy:only-child,
.violet-dashboard-page .violet-admin-toolbar-panel > .violet-filter-form:only-child {
  grid-column: 1 / -1;
}

.violet-dashboard-page .violet-filter-form {
  position: relative;
  z-index: 1;
  gap: 12px;
  align-items: end;
}

.violet-dashboard-page .violet-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.violet-dashboard-page .violet-field-compact {
  width: min(220px, 100%);
}

.violet-dashboard-page .violet-field-search {
  flex: 1 1 auto;
}

.violet-dashboard-page .violet-field-label {
  color: #6f7690;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.violet-dashboard-page .status-select,
.violet-dashboard-page .admin-search-input,
.violet-dashboard-page .field input,
.violet-dashboard-page .field select,
.violet-dashboard-page .violet-admin-modal-content textarea {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(112, 125, 170, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 1px rgba(25, 32, 58, 0.02);
}

.violet-dashboard-page .status-select,
.violet-dashboard-page .field select {
  padding-right: 42px;
}

.violet-dashboard-page .violet-filter-submit {
  min-width: 120px;
  min-height: 48px;
  box-shadow: 0 12px 28px rgba(94, 67, 165, 0.22);
}

.violet-dashboard-page .violet-migration-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.violet-dashboard-page .migration-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
}

.violet-dashboard-page .migration-copy strong {
  color: #1f2540;
  font-size: 1.15rem;
}

.violet-dashboard-page .migration-actions {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.violet-dashboard-page .violet-btn {
  min-height: 46px;
  padding: 0 18px;
  border: none;
  background: linear-gradient(135deg, #5f43a8, #7a62dd);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(94, 67, 165, 0.22);
}

.violet-dashboard-page .violet-btn-cancel {
  background: linear-gradient(135deg, #f06b6b, #dd5050);
  box-shadow: 0 14px 28px rgba(208, 76, 76, 0.18);
}

.violet-dashboard-page .migration-summary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(244, 247, 255, 0.88);
  color: #4c5676;
  font-weight: 700;
}

.violet-dashboard-page .migration-log {
  padding: 18px 20px;
  border: 1px solid rgba(114, 81, 181, 0.14);
  border-radius: 22px;
  background: rgba(29, 33, 49, 0.92);
  color: #edf1ff;
  box-shadow: 0 20px 44px rgba(24, 29, 43, 0.18);
}

.violet-dashboard-page .violet-table-panel {
  position: relative;
  z-index: 1;
}

.violet-dashboard-page .violet-table-panel-head {
  position: relative;
  z-index: 1;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.violet-dashboard-page .violet-table-head-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.violet-dashboard-page .violet-table-filter-form {
  flex: 0 1 auto;
}

.violet-dashboard-page .violet-table-filter-form .violet-field-compact {
  width: min(240px, 100%);
}

.violet-dashboard-page .violet-table-meta {
  flex-wrap: wrap;
  gap: 10px;
  color: #6e758c;
  font-size: 0.84rem;
  font-weight: 700;
}

.violet-dashboard-page .violet-table-wrap {
  position: relative;
  z-index: 1;
  overflow: auto;
  border: 1px solid rgba(113, 126, 171, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.violet-dashboard-page .violet-admin-table {
  min-width: 1080px;
}

.violet-dashboard-page .violet-admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(110, 123, 167, 0.14);
  background: rgba(247, 249, 255, 0.92);
  color: #616983;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.violet-dashboard-page .violet-admin-table thead th a {
  color: inherit;
  text-decoration: none;
}

.violet-dashboard-page .violet-admin-table tbody td {
  padding: 16px 14px;
  border-top: 1px solid rgba(113, 126, 171, 0.1);
  color: #2f364d;
  background: transparent;
}

.violet-dashboard-page .violet-table-row {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.violet-dashboard-page .violet-table-row:hover td {
  background: rgba(245, 247, 255, 0.86);
}

.violet-dashboard-page .violet-table-row td:first-child {
  border-left: 4px solid transparent;
}

.violet-dashboard-page .violet-table-row:hover td:first-child {
  border-left-color: rgba(114, 81, 181, 0.48);
}

.violet-dashboard-page .admin-id-cell {
  color: #69708a;
  font-size: 0.82rem;
}

.violet-dashboard-page .admin-type-cell,
.violet-dashboard-page .admin-coords-cell {
  color: #69708a;
}

.violet-dashboard-page .status-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.violet-dashboard-page .table-container img {
  width: 58px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(38, 49, 89, 0.1);
}

.violet-dashboard-page .violet-pagination {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
}

.violet-dashboard-page .page-link,
.violet-dashboard-page .page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 700;
}

.violet-dashboard-page .page-link {
  border: 1px solid rgba(111, 124, 171, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #47506c;
}

.violet-dashboard-page .page-link:hover {
  background: rgba(247, 249, 255, 0.96);
}

.violet-dashboard-page .page-link.active {
  border-color: transparent;
  background: linear-gradient(135deg, #5f43a8, #7a62dd);
  color: #fff;
}

.violet-dashboard-page .page-dots {
  color: #7b8299;
}

.violet-dashboard-page #editModal {
  background: rgba(12, 16, 28, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.violet-dashboard-page .violet-admin-modal-content {
  width: min(1080px, calc(100% - 32px));
  max-height: min(86vh, 980px);
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 255, 0.94));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.violet-dashboard-page .violet-admin-modal-content h3 {
  margin: 0;
  color: #1d2439;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.violet-dashboard-page .btn-close-x {
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ef5d6a, #d84e57);
}

.violet-dashboard-page .section-row-1,
.violet-dashboard-page .section-row-5,
.violet-dashboard-page .section-row-last,
.violet-dashboard-page .info-row-0,
.violet-dashboard-page .photo_edit_buttons_group,
.violet-dashboard-page .input-with-btn {
  gap: 14px;
}

.violet-dashboard-page .photo_edit_buttons_group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}

.violet-dashboard-page .photo_edit_buttons_group .btn-img-change,
.violet-dashboard-page .photo_edit_buttons_group .btn-img-crop {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .violet-dashboard-page .info-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .violet-dashboard-page .input-with-btn {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .violet-dashboard-page .input-with-btn input {
    flex: 1 1 auto;
    min-width: 0; /* allow flex item to shrink below intrinsic width */
  }

  .violet-dashboard-page .input-with-btn button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.violet-dashboard-page .section-row-1 {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}

.violet-dashboard-page .photo-left {
  width: 100%;
}

.violet-dashboard-page .photo-left img {
  width: 100%;
  height: 240px;
  border: 1px solid rgba(113, 126, 171, 0.14);
  border-radius: 22px;
  background: rgba(243, 246, 255, 0.8);
  box-shadow: 0 14px 28px rgba(53, 62, 94, 0.08);
}

.violet-dashboard-page .info-right-column,
.violet-dashboard-page .field,
.violet-dashboard-page .section-row-3,
.violet-dashboard-page .section-row-4 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.violet-dashboard-page .label-title,
.violet-dashboard-page .info-row-0 label,
.violet-dashboard-page .field label {
  color: #69708a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.violet-dashboard-page .tag-wrap,
.violet-dashboard-page .list-container,
.violet-dashboard-page .section-row-3,
.violet-dashboard-page .section-row-4 {
  border-radius: 22px;
  background: rgba(249, 250, 255, 0.86);
}

.violet-dashboard-page .tag-wrap {
  padding: 16px;
  border: 1px solid rgba(113, 126, 171, 0.12);
  gap: 10px;
}

.violet-dashboard-page .tag-item span {
  border-radius: 999px;
  border-color: rgba(113, 126, 171, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.violet-dashboard-page label.tag-item::before {
  content: none;
  display: none;
}

.violet-dashboard-page .section-row-3,
.violet-dashboard-page .section-row-4 {
  padding: 16px;
  border: 1px solid rgba(113, 126, 171, 0.12);
}

.violet-dashboard-page .section-row-3 .field {
  min-width: 0;
}

@media (min-width: 768px) {
  .violet-dashboard-page .section-row-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 16px;
  }
}

.violet-dashboard-page .violet-admin-modal-content textarea {
  min-height: 110px;
  padding: 14px 16px;
}

.violet-dashboard-page .list-container {
  min-height: 140px;
  padding: 16px;
  border: 1px solid rgba(113, 126, 171, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.violet-dashboard-page .report-bg {
  background: linear-gradient(180deg, rgba(255, 244, 246, 0.94), rgba(255, 250, 251, 0.9));
}

.violet-dashboard-page .comment-bg {
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.94), rgba(249, 252, 255, 0.9));
}

.violet-dashboard-page .section-row-last {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(113, 126, 171, 0.12);
}

.violet-dashboard-page .admin-modal-actions-left,
.violet-dashboard-page .admin-modal-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.violet-dashboard-page .btn-save,
.violet-dashboard-page .admin-btn-danger,
.violet-dashboard-page .admin-btn-secondary,
.violet-dashboard-page .btn-img-change,
.violet-dashboard-page .btn-img-crop,
.violet-dashboard-page .btn-search {
  min-height: 46px;
  padding: 0 18px;
}

.violet-dashboard-page .btn-save {
  box-shadow: 0 14px 28px rgba(94, 67, 165, 0.22);
}

.violet-dashboard-page .admin-btn-danger {
  height: 45px;
  padding: var(--space-2) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-danger-accent); 
  color: var(--color-inverse);
  font-size: var(--font-size-md);
  font-weight: 700;
  cursor: pointer;

}

.violet-dashboard-page .admin-btn-danger:hover {
  background: rgba(214, 48, 49, 0.18);
  color: var(--color-inverse);
}

.violet-dashboard-page .admin-btn-secondary,
.violet-dashboard-page .btn-img-change,
.violet-dashboard-page .btn-img-crop,
.violet-dashboard-page .btn-search {
  border: 1px solid rgba(111, 124, 171, 0.14);
  background: rgba(255, 255, 255, 0.84);
}

.btn-group {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.admin-image-editor-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) + 40);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 22, 34, 0.6);
  backdrop-filter: blur(6px);
}

.admin-image-editor-modal.is-open {
  display: flex;
}

.admin-image-editor-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(980px, calc(100% - 16px));
  min-height: 780px;
  max-height: min(92vh, 860px);
  padding: 18px;
  border: 1px solid rgba(139, 148, 184, 0.25);
  border-radius: 20px;
  background: #f7f9ff;
  box-sizing: border-box;
  overflow: hidden;
}

.admin-image-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-image-editor-header h3 {
  margin: 0;
}

.admin-image-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  min-height: 0;
}

.admin-image-editor-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(113, 126, 171, 0.18);
  border-radius: 16px;
  background: #ffffff;
}

#adminCropPreviewCanvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62vh;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2f4fb, #eef2fb);
  cursor: default;
}

.admin-crop-hint {
  margin: 0;
  color: #5e6887;
  font-size: 12px;
  line-height: 1.45;
}

.admin-crop-meta {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(113, 126, 171, 0.2);
  border-radius: 12px;
  background: #f6f8ff;
}

.admin-crop-meta-row {
  display: grid;
  gap: 3px;
}

.admin-crop-meta-label {
  font-size: 11px;
  font-weight: 700;
  color: #5e6887;
}

.admin-crop-meta-value {
  margin: 0;
  color: #1f2740;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.admin-crop-meta-input {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 8px;
  border: 1px solid rgba(113, 126, 171, 0.35);
  border-radius: 7px;
  background: #ffffff;
  color: #1f2740;
  font-size: 13px;
  line-height: 1.35;
}

.admin-image-editor-controls {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(113, 126, 171, 0.18);
  border-radius: 16px;
  background: #ffffff;
  overflow-y: auto;
}

.admin-image-editor-controls .field {
  display: grid;
  gap: 6px;
}

.admin-image-editor-controls .field span {
  font-size: 12px;
  font-weight: 700;
  color: #5e6887;
}

.admin-image-editor-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.admin-image-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 900px) {
  .admin-image-editor-body {
    grid-template-columns: minmax(0, 1fr);
  }

  #adminCropPreviewCanvas {
    max-height: 44vh;
  }
}

.btn-group .btn-cancel,
.btn-group .btn-submit {
  flex: 1 1 0%;
  min-width: 0;
}

.btn-group .btn-cancel {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.site-info-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: rgba(16, 21, 18, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-info-modal[hidden],
.notice-popup-modal[hidden],
#cookieOverlay[hidden] {
  display: none !important;
}

.site-info-modal.is-open {
  display: flex;
}

.site-info-modal__dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, calc(100vw - (var(--space-3) * 2)));
  max-width: 100%;
  min-height: 0;
  max-height: min(800px, calc(100vh - (var(--space-3) * 2)));
  overflow: hidden;
  border: 1px solid rgba(220, 229, 220, 0.9);
  border-radius: 28px;
  background: white;
  box-shadow: 0 30px 80px rgba(10, 18, 12, 0.24);
}

.site-info-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: start;
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(223, 231, 223, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 250, 0.94));
}

.site-info-modal__header-copy {
  min-width: 0;
}

.site-info-modal__eyebrow {
  margin: 0 auto 8px auto;
  color: var(--color-success-dark);
  font-size: var(--font-size-sm);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.site-info-modal__title {
  margin: 0 auto;
  color: var(--color-text-strong);
  font-size: clamp(1.45rem, 1.6vw + 1rem, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-align: center;
}

.site-info-modal__meta {
  margin: 8px 0 0;
  color: var(--color-text-soft);
  font-size: var(--font-size-md);
  line-height: var(--line-height-base);
  text-align: right;
  justify-self: end;
}

.site-info-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(210, 219, 210, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.site-info-modal__close:hover {
  transform: translateY(-1px);
  color: var(--color-text-strong);
  border-color: rgba(76, 175, 80, 0.4);
}

.site-info-modal__body {
  min-height: 0;
  overflow: auto;
  padding: 24px 28px 28px;
}

.site-info-modal__status {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.site-info-modal__view {
  display: grid;
  gap: var(--space-6);
}

.site-info-modal__view > .section-box,
.site-info-modal__view > .page-header,
.site-info-modal__view > .guide-list,
.site-info-modal__view > .feature-grid,
.site-info-modal__view > .notice-list,
.site-info-modal__view > .contact-form,
.site-info-modal__view > .pagination,
.site-info-modal__view > .section-divider {
  margin: 0;
}

.site-info-modal__view .btn-back-floating,
.site-info-modal__view .info-page-header,
.site-info-modal__view .page-header {
  display: none !important;
}

.site-info-modal__view .section-box {
  background: rgba(255, 255, 255, 0.96);
}

.site-info-modal__view .notice-list {
  display: grid;
  gap: var(--space-6);
}

.site-info-modal__view .contact-form {
  display: grid;
  gap: var(--space-6);
}

.site-info-modal__view .pagination {
  justify-content: center;
}

.site-info-modal__view .about-section-content,
.site-info-modal__view .section-content,
.site-info-modal__view .notice-accordion-content,
.site-info-modal__view p,
.site-info-modal__view li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notice-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--color-overlay-modal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notice-popup-modal.is-open {
  display: flex;
}

.notice-popup-modal__dialog {
  width: min(100%, 640px);
  max-height: min(88vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--color-border-warning);
  background: linear-gradient(180deg, var(--color-primary-soft), var(--color-surface));
  box-shadow: var(--shadow-5xl);
}

.notice-popup-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--color-border-soft);
}

.notice-popup-modal__header > div:first-child {
  flex: 1 1 0;
  min-width: 0; 
}
.notice-popup-modal__controls {
  flex: 0 0 auto;
}
.notice-popup-modal__controls .btn-common {
  flex-shrink: 0;
}

.notice-popup-modal__eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-success-warm);
}

.notice-popup-modal__title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.25;
  color: var(--color-text-strong);
}

.notice-popup-modal__title {
  min-width: 0;
}

.notice-popup-modal__meta {
  
  margin: 10px 0 0;
  font-size: 0.80rem;
  color: var(--color-text-muted);
}

.notice-popup-modal__close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-strong);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.notice-popup-modal__close:hover {
  transform: translateY(-1px);
  background: #fff;
}

.notice-popup-modal__body {
  min-height: 0;
  overflow: auto;
  padding: 0 24px 8px;
}

.notice-popup-modal__content {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notice-popup-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--color-border-soft);
}

/* Keep popup actions in a single horizontal row on all viewports */
.notice-popup-modal__actions {
  display: flex;
  flex-direction: row !important;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap !important;
}

@media (max-width: 420px) {
  .notice-popup-modal__actions {
    flex-direction: row !important;
    gap: 8px;
    justify-content: flex-end;
  }
  .notice-popup-modal__actions .notice-popup-modal__action {
    white-space: nowrap;
  }
}

.notice-popup-modal__controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

/* Ensure controls remain a row even on narrow viewports */
@media (max-width: 768px) {
  .notice-popup-modal__controls {
    flex-direction: row !important;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
  }

  .notice-popup-modal__controls .lang-options {
    display: inline-flex;
    align-items: center;
  }
}

.notice-popup-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.notice-popup-modal__action:hover {
  transform: translateY(-1px);
}

.notice-popup-modal__action--muted {
  border: 1px solid var(--color-border-muted);
  background: var(--color-surface-soft);
  color: var(--text-color);
}

.notice-popup-modal__action--primary {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--color-accent) 100%);
  box-shadow: var(--shadow-5xl);
  color: var(--color-inverse);
}

@media (max-width: 1100px) {
  .violet-dashboard-page .violet-admin-toolbar-panel,
  .violet-dashboard-page .violet-migration-panel,
  .violet-dashboard-page .violet-filter-form,
  .violet-dashboard-page .violet-table-panel-head {
    flex-direction: column;
  }

  .violet-dashboard-page .violet-admin-toolbar-panel {
    grid-template-columns: 1fr;
  }

  .violet-dashboard-page .violet-admin-actions,
  .violet-dashboard-page .migration-actions {
    justify-content: flex-start;
  }

  .violet-dashboard-page .violet-table-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .violet-dashboard-page .violet-field-compact,
  .violet-dashboard-page .violet-field-search {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body.index-page {
    padding-top: 150px !important;
  }

  body.detail-page, body.violet-page {
    padding-top: 0 !important;
  }

  .violet-dashboard-page .violet-admin-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .violet-dashboard-page .violet-metric-card {
    flex: none !important;
  }

  .violet-dashboard-page .violet-toolbar-copy .toolbar-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100%;
  }

  .violet-dashboard-page .violet-toolbar-copy .toolbar-button-form {
    width: 100%;
  }

  .violet-dashboard-page .violet-toolbar-copy .toolbar-button-form .btn-upload {
    display: block;
    width: 100%;
    text-align: center;
  }

  .violet-dashboard-page .section-row-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .violet-dashboard-page .photo-left,
  .violet-dashboard-page .info-right-column {
    width: 100%;
  }

  .violet-dashboard-page .input-with-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .violet-dashboard-page .input-with-btn input {
    flex: 1 1 auto;
    min-width: 0;
  }

  .violet-dashboard-page .input-with-btn button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
