:root {
  color-scheme: light;
  --bg: #efe5cc;
  --bg-soft: rgba(243, 236, 216, 0.9);
  --panel: rgba(251, 245, 229, 0.88);
  --panel-strong: rgba(246, 237, 213, 0.96);
  --panel-border: rgba(103, 92, 53, 0.2);
  --text: #372c1d;
  --muted: #6e6148;
  --accent: #a55a2a;
  --accent-strong: #844118;
  --secondary: #61733d;
  --secondary-soft: #7b8f4d;
  --highlight: #c8984f;
  --shadow: 0 24px 60px rgba(72, 54, 20, 0.15);
  --province-default: linear-gradient(135deg, rgba(137, 115, 65, 0.16), rgba(255, 255, 255, 0.08));
}

html[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(208, 163, 82, 0.22), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(122, 146, 73, 0.18), transparent 26%),
    linear-gradient(180deg, #c8d8b0 0%, #e7ddbf 20%, #efe5cc 42%, #ddcea8 100%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 24%),
    repeating-linear-gradient(115deg, rgba(124, 115, 70, 0.045) 0 2px, transparent 2px 18px);
  opacity: 0.65;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 24vh;
  background:
    radial-gradient(circle at 18% 140%, rgba(100, 122, 58, 0.28), transparent 34%),
    radial-gradient(circle at 82% 120%, rgba(143, 109, 45, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(113, 132, 62, 0) 0%, rgba(113, 132, 62, 0.18) 100%);
  pointer-events: none;
  z-index: -1;
}

.site-layout {
  width: min(96vw, 1800px);
  margin: 0 auto;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: auto -5% 1.5rem;
  height: 8rem;
  background: linear-gradient(180deg, rgba(123, 143, 77, 0), rgba(123, 143, 77, 0.18));
  filter: blur(26px);
  pointer-events: none;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.8;
  pointer-events: none;
}

.ambient-a {
  width: 22rem;
  height: 22rem;
  top: 4rem;
  right: -6rem;
  background: rgba(214, 168, 80, 0.22);
}

.ambient-b {
  width: 18rem;
  height: 18rem;
  bottom: 2rem;
  left: -4rem;
  background: rgba(116, 140, 70, 0.2);
}

.hero-card,
.sidebar-card,
.content-card {
  position: relative;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 2rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(252, 247, 234, 0.98), rgba(244, 235, 210, 0.9)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15));
}

.eyebrow,
.panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 800;
}

.display-title {
  font-family: "Bitter", serif;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 1.02;
  font-weight: 800;
  max-width: 12ch;
  color: #2f2416;
}

.hero-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.hero-side-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
}

.hero-heading-tools,
.language-switcher {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.hero-heading-tools {
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(105, 90, 51, 0.16);
  background: rgba(255, 250, 241, 0.78);
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(132, 65, 24, 0.3);
  background: rgba(255, 249, 235, 0.95);
  box-shadow: 0 10px 22px rgba(90, 66, 26, 0.08);
}

.theme-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.22rem rgba(165, 90, 42, 0.14);
}

.theme-toggle-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, #f5cb6a, #d58a35);
  box-shadow: inset -0.2rem -0.12rem 0 rgba(105, 61, 20, 0.16);
}

.theme-toggle[data-next-theme="dark"] .theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: 0.12rem;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.9);
  transform: translateX(0.2rem);
}

.theme-toggle[data-next-theme="light"] .theme-toggle-icon {
  background: linear-gradient(135deg, #f4cf74, #e39f3f);
  box-shadow: 0 0 0 0.16rem rgba(243, 195, 83, 0.18);
}

.theme-toggle[data-next-theme="light"] .theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: -0.18rem;
  border-radius: 999px;
  border: 2px solid rgba(243, 195, 83, 0.38);
}

.language-switcher-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.language-select {
  min-width: 8.5rem;
}

.hero-feedback-link,
.feedback-callout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(165, 90, 42, 0.14), rgba(200, 152, 79, 0.2));
  border: 1px solid rgba(132, 65, 24, 0.28);
  color: #432b15;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero-feedback-link:hover,
.feedback-callout-link:hover {
  color: #2f1b0b;
  background: linear-gradient(135deg, rgba(165, 90, 42, 0.22), rgba(200, 152, 79, 0.28));
}

.hero-copy,
.detail-copy,
.note-copy {
  color: var(--muted);
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.hero-metrics--tablet {
  display: none;
}

.feedback-card {
  border-radius: 1.5rem;
  padding: 1rem;
  background: rgba(255, 250, 241, 0.46);
  border: 1px solid rgba(109, 93, 52, 0.12);
}

.feedback-callout-card {
  width: 100%;
  margin-top: auto;
  border-radius: 1.5rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(244, 234, 207, 0.92), rgba(237, 228, 201, 0.78));
  border: 1px solid rgba(109, 93, 52, 0.14);
}

.service-offer-card {
  width: 100%;
  border-radius: 1.5rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(247, 239, 218, 0.96), rgba(240, 229, 201, 0.78));
  border: 1px solid rgba(109, 93, 52, 0.14);
}

.service-offer-copy {
  color: var(--muted);
  line-height: 1.65;
}

.service-contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.service-contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 1.15rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(105, 90, 51, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service-contact-link:hover {
  transform: translateY(-1px);
  color: var(--text);
  background: rgba(255, 250, 241, 0.96);
  border-color: rgba(132, 65, 24, 0.24);
  box-shadow: 0 12px 24px rgba(90, 66, 26, 0.08);
}

.service-contact-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.22rem rgba(165, 90, 42, 0.14);
}

.service-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(165, 90, 42, 0.18), rgba(123, 143, 77, 0.16));
  color: #4d371e;
  flex: 0 0 auto;
}

.service-contact-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-contact-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.service-contact-copy strong {
  font-weight: 800;
}

.service-contact-copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.feedback-title {
  font-family: "Bitter", serif;
  font-size: 1.18rem;
  font-weight: 800;
}

.feedback-copy,
.feedback-note,
.feedback-upload-note,
.feedback-submission-meta,
.feedback-submission-copy {
  color: var(--muted);
  line-height: 1.55;
}

.feedback-form {
  display: block;
}

.feedback-grid {
  display: grid;
  gap: 0.75rem;
}

.feedback-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-select {
  border-radius: 1rem;
  background: rgba(255, 251, 241, 0.78);
  border: 1px solid rgba(105, 90, 51, 0.16);
  color: var(--text);
}

.form-select option {
  background: #f6efdb;
  color: var(--text);
}

.form-select:focus {
  background: rgba(255, 251, 241, 0.96);
  border-color: rgba(132, 65, 24, 0.42);
  box-shadow: 0 0 0 0.25rem rgba(165, 90, 42, 0.12);
  color: var(--text);
}

.feedback-textarea {
  resize: vertical;
  min-height: 5.2rem;
}

.feedback-textarea-tall {
  min-height: 7.5rem;
}

.feedback-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feedback-submit-button {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(132, 65, 24, 0.34);
  background: linear-gradient(135deg, rgba(165, 90, 42, 0.18), rgba(200, 152, 79, 0.16));
  color: #3c2715;
  font-weight: 800;
}

.feedback-submit-button:hover {
  border-color: rgba(132, 65, 24, 0.52);
}

.feedback-status {
  min-height: 1.35rem;
  font-size: 0.86rem;
}

.feedback-status[data-tone="success"] {
  color: #baf7d6;
}

.feedback-status[data-tone="error"] {
  color: #ffb3b3;
}

.image-preview-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-preview-card,
.feedback-submission-item {
  border-radius: 1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 250, 241, 0.54);
  border: 1px solid rgba(109, 93, 52, 0.1);
}

.image-preview-name,
.feedback-submissions-title {
  font-weight: 800;
}

.image-preview-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.feedback-submissions-header,
.feedback-submission-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.feedback-submission-list,
.feedback-submission-tags {
  display: grid;
  gap: 0.6rem;
}

.feedback-page-layout {
  width: min(92vw, 1120px);
  margin: 0 auto;
}

.feedback-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
}

.feedback-page-intro,
.feedback-page-panel {
  border-radius: 1.8rem;
  padding: 1.5rem;
  border: 1px solid var(--panel-border);
  background: var(--panel-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.feedback-page-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.feedback-page-backlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 93, 52, 0.16);
  background: rgba(255, 250, 241, 0.75);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.feedback-page-backlink:hover {
  color: #2f1b0b;
  border-color: rgba(132, 65, 24, 0.3);
}

.feedback-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(121, 143, 77, 0.14);
  color: var(--text);
  font-size: 0.75rem;
}

.hero-metrics > div {
  padding: 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.8), rgba(239, 229, 205, 0.7));
  border: 1px solid rgba(109, 93, 52, 0.12);
}

.metric-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 1.75rem;
}

.sidebar-card,
.content-card {
  border-radius: 1.8rem;
  padding: 1.5rem;
}

.sidebar-card {
  background:
    linear-gradient(180deg, rgba(251, 246, 233, 0.96), rgba(245, 236, 214, 0.9));
}

.content-card {
  background:
    linear-gradient(180deg, rgba(252, 247, 236, 0.96), rgba(242, 233, 210, 0.9));
}

.sidebar-header,
.content-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.panel-title,
.detail-title {
  font-family: "Bitter", serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.selection-pill,
.status-chip,
.source-badge {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(121, 143, 77, 0.12);
  border: 1px solid rgba(98, 116, 58, 0.18);
  font-size: 0.86rem;
  color: var(--text);
  white-space: nowrap;
}

.small-label {
  color: var(--muted);
  font-weight: 700;
}

.form-control {
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.8);
  border: 1px solid rgba(105, 90, 51, 0.16);
  color: var(--text);
}

.form-control:focus {
  background: rgba(255, 252, 244, 0.95);
  border-color: rgba(132, 65, 24, 0.42);
  box-shadow: 0 0 0 0.25rem rgba(165, 90, 42, 0.12);
  color: var(--text);
}

.form-control::placeholder {
  color: rgba(93, 74, 46, 0.58);
}

.breed-list-dropdown {
  position: relative;
}

.breed-list-details {
  border-radius: 1.35rem;
  border: 1px solid rgba(105, 90, 51, 0.12);
  background: rgba(255, 250, 241, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  overflow: hidden;
}

.breed-list-details[open] {
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.8), rgba(244, 233, 203, 0.72));
}

.breed-list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.breed-list-summary::-webkit-details-marker {
  display: none;
}

.breed-list-summary-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.breed-list-summary-title {
  font-weight: 800;
  color: #3a2b18;
  font-size: 0.95rem;
}

.breed-list-summary-subtitle {
  color: var(--muted);
  font-size: 0.8rem;
}

.breed-list-summary-state {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(98, 116, 58, 0.18);
  background: rgba(121, 143, 77, 0.12);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.breed-list-summary::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  margin-left: -0.25rem;
  border-right: 2px solid rgba(58, 43, 24, 0.72);
  border-bottom: 2px solid rgba(58, 43, 24, 0.72);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.breed-list-details[open] .breed-list-summary::after {
  transform: rotate(225deg);
}

.breed-list-panel {
  max-height: 36rem;
  overflow: auto;
  padding: 0 1rem 1rem;
}

.breed-list-panel::-webkit-scrollbar {
  width: 8px;
}

.breed-list-panel::-webkit-scrollbar-thumb {
  background: rgba(120, 101, 58, 0.22);
  border-radius: 999px;
}

.breed-list-panel .breed-list {
  max-height: none;
  padding-right: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-chip {
  border: 1px solid rgba(105, 90, 51, 0.14);
  background: rgba(255, 249, 238, 0.72);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
}

.filter-chip.active {
  background: rgba(121, 143, 77, 0.16);
  border-color: rgba(98, 116, 58, 0.34);
  color: #33411d;
}

.breed-list {
  display: grid;
  gap: 0.85rem;
  max-height: 60vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.breed-list::-webkit-scrollbar {
  width: 8px;
}

.breed-list::-webkit-scrollbar-thumb {
  background: rgba(120, 101, 58, 0.28);
  border-radius: 999px;
}

.breed-card {
  border-radius: 1.2rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.82), rgba(245, 235, 211, 0.68));
  border: 1px solid rgba(105, 90, 51, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.breed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 65, 24, 0.24);
  box-shadow: 0 14px 28px rgba(90, 66, 26, 0.1);
}

.breed-card.active {
  background: linear-gradient(180deg, rgba(236, 222, 187, 0.92), rgba(241, 232, 209, 0.82));
  border-color: rgba(132, 65, 24, 0.34);
  box-shadow: inset 0 0 0 1px rgba(132, 65, 24, 0.12);
}

.breed-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.breed-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.breed-meta,
.province-count,
.empty-state {
  color: var(--muted);
  font-size: 0.9rem;
}

.breed-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breed-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.7rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(105, 90, 51, 0.14);
  background: rgba(255, 250, 241, 0.82);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.color-input {
  width: 2.7rem;
  height: 2.2rem;
  padding: 0.15rem;
  border: 1px solid rgba(105, 90, 51, 0.18);
  border-radius: 0.7rem;
  background: transparent;
}

.breed-summary {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0.75rem 0;
}

.province-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.province-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(121, 143, 77, 0.1);
  color: var(--text);
  font-size: 0.78rem;
}

.note-card,
.province-detail-card,
.source-card {
  border-radius: 1.4rem;
  padding: 1rem;
  background: rgba(255, 250, 241, 0.58);
  border: 1px solid rgba(105, 90, 51, 0.12);
}

.note-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.map-and-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 360px);
  gap: 1.5rem;
  align-items: start;
}

.map-stage {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-radius: 1.6rem;
  padding: 1.15rem 1.2rem 1rem;
  background:
    linear-gradient(180deg, #e6d7af 0%, #eadfc0 14%, #efe6cf 100%);
  border: 1px solid rgba(121, 105, 58, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.map-frame {
  position: relative;
  width: min(100%, 880px);
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, #eef0df 0%, #efe7d3 42%, #eadfca 100%);
  border: 1px solid rgba(137, 118, 71, 0.24);
}

.map-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(189, 215, 177, 0.28), rgba(241, 233, 212, 0.22) 22%, rgba(229, 217, 184, 0.38) 100%),
    repeating-linear-gradient(135deg, rgba(142, 131, 87, 0.045) 0 2px, transparent 2px 22px),
    radial-gradient(circle at 74% 10%, rgba(214, 229, 216, 0.38), transparent 26%);
  z-index: 0;
}
.map-svg {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.map-helper {
  margin-top: 0;
  color: rgba(73, 60, 38, 0.82);
  text-align: center;
  font-size: 0.88rem;
}

.province-drilldown {
  border-radius: 1.4rem;
  padding: 1rem;
  background: rgba(255, 250, 241, 0.58);
  border: 1px solid rgba(105, 90, 51, 0.12);
}

.drilldown-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.drilldown-copy {
  max-width: 72ch;
}

.map-frame-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  max-width: calc(100% - 2rem);
}

.map-frame-button {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(105, 90, 51, 0.14);
  background: rgba(255, 250, 241, 0.8);
  color: var(--text);
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.return-map-button-overlay,
.enlarge-map-button {
  box-shadow: 0 10px 24px rgba(72, 54, 20, 0.12);
}

.map-frame-button:hover:not(:disabled) {
  border-color: rgba(132, 65, 24, 0.3);
  background: rgba(165, 90, 42, 0.1);
}

.map-frame-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.map-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: transparent;
}

.map-overlay-stage {
  width: min(96vw, 96vh, 1120px);
}

.map-overlay-stage .map-frame {
  width: 100%;
  margin: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.map-overlay-stage .map-frame::before {
  background: none;
}

body.map-overlay-open {
  overflow: hidden;
}

.province-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.province-selector-chip {
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(105, 90, 51, 0.14);
  background: rgba(255, 250, 241, 0.78);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.province-selector-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 65, 24, 0.24);
}

.province-selector-chip.active {
  background: rgba(121, 143, 77, 0.16);
  border-color: rgba(98, 116, 58, 0.3);
  box-shadow: inset 0 0 0 1px rgba(98, 116, 58, 0.14);
}

.province-selector-chip span,
.province-selector-chip strong {
  display: block;
}

.province-selector-chip span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.province-group {
  cursor: pointer;
  outline: none;
  transition: opacity 180ms ease;
}

.province-group:focus,
.province-group:focus-visible {
  outline: none;
}

.province-group.dimmed {
  opacity: 0.18;
}

.province-group.focused {
  opacity: 1;
}

.province-group:hover .province-default-fill,
.province-group:hover .province-segment,
.province-group.active .province-default-fill,
.province-group.active .province-segment {
  filter: brightness(0.9) saturate(0.96);
}

.province-outline {
  fill: rgba(255, 249, 236, 0.2);
  stroke: #8d855f;
  stroke-width: 2.2;
  stroke-linejoin: round;
  transition: fill 180ms ease, stroke 180ms ease, filter 180ms ease;
}

.province-group:hover .province-outline,
.province-group.active .province-outline {
  stroke: transparent;
  filter: none;
}

.province-default-fill {
  opacity: 0.97;
}

.province-segment {
  opacity: 0.9;
}

.province-name {
  fill: #58482f;
  font-size: 16px;
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: 0.04em;
}

.province-name.small {
  font-size: 11px;
}

.province-name.tiny {
  font-size: 8px;
}

.province-percent {
  fill: #2f3119;
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(250, 245, 233, 0.92);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.province-percent.small {
  font-size: 11px;
}

.province-percent.tiny {
  font-size: 9px;
}

.province-hover-target {
  fill: transparent;
  stroke: transparent;
}

.map-context-label {
  fill: rgba(109, 95, 61, 0.76);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-anchor: middle;
  pointer-events: none;
}

.map-context-label.small {
  font-size: 11px;
}

.map-context-label.tiny {
  font-size: 9px;
}

.map-context-label.vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.detail-stack {
  display: grid;
  gap: 1rem;
}

.legend-list,
.source-list {
  display: grid;
  gap: 0.7rem;
}

.legend-item,
.source-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.76);
  border: 1px solid rgba(105, 90, 51, 0.1);
}

.legend-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.legend-copy strong,
.source-item a {
  color: var(--text);
}

.legend-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.source-item {
  align-items: start;
}

.source-link {
  color: #664115;
  text-decoration: none;
  font-weight: 700;
}

.source-link:hover {
  color: #43270d;
  text-decoration: underline;
}

.source-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.empty-state {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.68);
  border: 1px dashed rgba(105, 90, 51, 0.16);
}

html[data-theme="dark"] body {
  color: #eef0e3;
  background:
    radial-gradient(circle at top left, rgba(191, 141, 56, 0.2), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(105, 132, 67, 0.2), transparent 24%),
    linear-gradient(180deg, #1a2318 0%, #20291d 18%, #2b2619 48%, #171811 100%);
}

html[data-theme="dark"] body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%),
    repeating-linear-gradient(115deg, rgba(196, 168, 96, 0.035) 0 2px, transparent 2px 18px);
  opacity: 0.7;
}

html[data-theme="dark"] body::after {
  background:
    radial-gradient(circle at 18% 140%, rgba(102, 128, 63, 0.32), transparent 34%),
    radial-gradient(circle at 82% 120%, rgba(147, 111, 48, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(113, 132, 62, 0) 0%, rgba(73, 86, 41, 0.26) 100%);
}

html[data-theme="dark"] .page-shell::before {
  background: linear-gradient(180deg, rgba(123, 143, 77, 0), rgba(95, 117, 51, 0.22));
}

html[data-theme="dark"] .ambient-a {
  background: rgba(178, 133, 52, 0.22);
}

html[data-theme="dark"] .ambient-b {
  background: rgba(85, 108, 49, 0.24);
}

html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .feedback-page-intro,
html[data-theme="dark"] .feedback-page-panel {
  border-color: rgba(203, 186, 135, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-card {
  background: linear-gradient(135deg, rgba(39, 43, 30, 0.94), rgba(55, 46, 30, 0.9));
}

html[data-theme="dark"] .sidebar-card {
  background: linear-gradient(180deg, rgba(31, 37, 28, 0.94), rgba(45, 39, 29, 0.9));
}

html[data-theme="dark"] .content-card {
  background: linear-gradient(180deg, rgba(36, 41, 31, 0.94), rgba(48, 43, 31, 0.9));
}

html[data-theme="dark"] .feedback-page-intro,
html[data-theme="dark"] .feedback-page-panel,
html[data-theme="dark"] .feedback-card,
html[data-theme="dark"] .feedback-callout-card,
html[data-theme="dark"] .hero-metrics > div,
html[data-theme="dark"] .breed-card,
html[data-theme="dark"] .note-card,
html[data-theme="dark"] .province-detail-card,
html[data-theme="dark"] .source-card,
html[data-theme="dark"] .province-drilldown,
html[data-theme="dark"] .legend-item,
html[data-theme="dark"] .source-item,
html[data-theme="dark"] .image-preview-card,
html[data-theme="dark"] .feedback-submission-item,
html[data-theme="dark"] .feedback-page-backlink,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .selection-pill,
html[data-theme="dark"] .status-chip,
html[data-theme="dark"] .source-badge,
html[data-theme="dark"] .breed-trigger,
html[data-theme="dark"] .province-selector-chip,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .feedback-tag {
  color: #eef0e3;
  border-color: rgba(208, 190, 135, 0.14);
}

html[data-theme="dark"] .feedback-card,
html[data-theme="dark"] .feedback-callout-card,
html[data-theme="dark"] .hero-metrics > div,
html[data-theme="dark"] .breed-card,
html[data-theme="dark"] .note-card,
html[data-theme="dark"] .province-detail-card,
html[data-theme="dark"] .source-card,
html[data-theme="dark"] .province-drilldown,
html[data-theme="dark"] .legend-item,
html[data-theme="dark"] .source-item,
html[data-theme="dark"] .image-preview-card,
html[data-theme="dark"] .feedback-submission-item,
html[data-theme="dark"] .feedback-page-backlink,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .selection-pill,
html[data-theme="dark"] .status-chip,
html[data-theme="dark"] .source-badge,
html[data-theme="dark"] .breed-trigger,
html[data-theme="dark"] .province-selector-chip,
html[data-theme="dark"] .filter-chip {
  background: rgba(46, 51, 37, 0.82);
}

html[data-theme="dark"] .feedback-callout-card {
  background: linear-gradient(135deg, rgba(69, 61, 37, 0.92), rgba(43, 52, 34, 0.9));
}

html[data-theme="dark"] .service-offer-card {
  background: linear-gradient(135deg, rgba(69, 61, 37, 0.92), rgba(43, 52, 34, 0.9));
}

html[data-theme="dark"] .service-contact-link {
  color: #f4edd9;
  background: rgba(41, 46, 31, 0.72);
  border-color: rgba(188, 145, 69, 0.22);
}

html[data-theme="dark"] .service-contact-link:hover {
  color: #fff8e9;
  background: rgba(53, 60, 38, 0.9);
  border-color: rgba(214, 179, 103, 0.26);
}

html[data-theme="dark"] .service-contact-icon {
  color: #f5e7be;
  background: linear-gradient(135deg, rgba(160, 100, 40, 0.28), rgba(118, 141, 64, 0.22));
}

html[data-theme="dark"] .service-contact-copy small {
  color: #d4ceb8;
}

html[data-theme="dark"] .breed-card.active,
html[data-theme="dark"] .province-selector-chip.active,
html[data-theme="dark"] .filter-chip.active {
  background: rgba(104, 121, 59, 0.28);
  border-color: rgba(167, 187, 96, 0.3);
  box-shadow: inset 0 0 0 1px rgba(172, 191, 104, 0.12);
}

html[data-theme="dark"] .breed-card:hover,
html[data-theme="dark"] .province-selector-chip:hover,
html[data-theme="dark"] .filter-chip:hover,
html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(194, 149, 67, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .hero-feedback-link,
html[data-theme="dark"] .feedback-callout-link,
html[data-theme="dark"] .feedback-submit-button,
html[data-theme="dark"] .return-map-button {
  color: #f4edd9;
  border-color: rgba(188, 145, 69, 0.32);
  background: linear-gradient(135deg, rgba(140, 88, 33, 0.22), rgba(103, 124, 55, 0.18));
}

html[data-theme="dark"] .hero-feedback-link:hover,
html[data-theme="dark"] .feedback-callout-link:hover,
html[data-theme="dark"] .feedback-submit-button:hover,
html[data-theme="dark"] .return-map-button:hover:not(:disabled) {
  color: #fff8e9;
  background: linear-gradient(135deg, rgba(160, 100, 40, 0.28), rgba(118, 141, 64, 0.22));
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  color: #eef0e3;
  background: rgba(30, 35, 28, 0.9);
  border-color: rgba(208, 190, 135, 0.14);
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
  color: #eef0e3;
  background: rgba(36, 42, 33, 0.96);
  border-color: rgba(194, 149, 67, 0.34);
  box-shadow: 0 0 0 0.25rem rgba(165, 123, 52, 0.14);
}

html[data-theme="dark"] .form-control::placeholder {
  color: rgba(226, 220, 196, 0.46);
}

html[data-theme="dark"] .form-select option {
  background: #21251c;
}

html[data-theme="dark"] .map-stage {
  background: linear-gradient(180deg, #40351e 0%, #342e22 14%, #2a2d24 100%);
  border-color: rgba(188, 171, 119, 0.18);
}

html[data-theme="dark"] .map-frame {
  background: linear-gradient(180deg, #2f3b30 0%, #3b3728 44%, #2d2b22 100%);
  border-color: rgba(188, 171, 119, 0.18);
}

html[data-theme="dark"] .map-frame::before {
  background:
    linear-gradient(180deg, rgba(94, 118, 78, 0.24), rgba(76, 66, 43, 0.18) 26%, rgba(50, 53, 41, 0.34) 100%),
    repeating-linear-gradient(135deg, rgba(209, 190, 129, 0.03) 0 2px, transparent 2px 22px),
    radial-gradient(circle at 74% 10%, rgba(203, 217, 183, 0.12), transparent 26%);
}

html[data-theme="dark"] .map-helper,
html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .detail-copy,
html[data-theme="dark"] .note-copy,
html[data-theme="dark"] .feedback-copy,
html[data-theme="dark"] .feedback-note,
html[data-theme="dark"] .feedback-upload-note,
html[data-theme="dark"] .feedback-submission-meta,
html[data-theme="dark"] .feedback-submission-copy,
html[data-theme="dark"] .small-label,
html[data-theme="dark"] .breed-meta,
html[data-theme="dark"] .province-count,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .source-text,
html[data-theme="dark"] .metric-label,
html[data-theme="dark"] .province-selector-chip span,
html[data-theme="dark"] .legend-copy span,
html[data-theme="dark"] .image-preview-meta,
html[data-theme="dark"] .language-switcher-label {
  color: #c8c6b5;
}

html[data-theme="dark"] .display-title,
html[data-theme="dark"] .panel-title,
html[data-theme="dark"] .detail-title,
html[data-theme="dark"] .feedback-title,
html[data-theme="dark"] .note-title,
html[data-theme="dark"] .breed-name,
html[data-theme="dark"] .metric-value,
html[data-theme="dark"] .image-preview-name,
html[data-theme="dark"] .feedback-submissions-title,
html[data-theme="dark"] .legend-copy strong,
html[data-theme="dark"] .source-item a {
  color: #f3eedf;
}

html[data-theme="dark"] .source-link {
  color: #f0ce80;
}

html[data-theme="dark"] .source-link:hover {
  color: #ffe8b5;
}

html[data-theme="dark"] .province-tag {
  background: rgba(104, 121, 59, 0.16);
  color: #edf0e0;
}

html[data-theme="dark"] .province-outline {
  fill: rgba(255, 245, 219, 0.07);
  stroke: #b2a06c;
}

html[data-theme="dark"] .province-group:hover .province-outline,
html[data-theme="dark"] .province-group.active .province-outline {
  stroke: transparent;
  filter: none;
}

html[data-theme="dark"] .province-group:hover .province-default-fill,
html[data-theme="dark"] .province-group:hover .province-segment,
html[data-theme="dark"] .province-group.active .province-default-fill,
html[data-theme="dark"] .province-group.active .province-segment {
  filter: brightness(0.88) saturate(0.96);
}

html[data-theme="dark"] .province-name {
  fill: #f1ead9;
}

html[data-theme="dark"] .province-percent {
  fill: #f7e5aa;
  stroke: rgba(35, 37, 26, 0.9);
}

html[data-theme="dark"] .map-context-label {
  fill: rgba(227, 218, 191, 0.58);
}

@media (max-width: 1199.98px) {
  .main-grid,
  .map-and-detail,
  .feedback-page-grid {
    grid-template-columns: 1fr;
  }

  .map-frame {
    width: min(100%, 760px);
  }

  .province-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-grid.two-up,
  .image-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1499.98px) {
  .hero-metrics--desktop {
    display: none;
  }

  .hero-metrics--tablet {
    display: grid;
  }

  .service-contact-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .hero-metrics--tablet {
    display: none;
  }

  .hero-metrics--desktop {
    display: grid;
  }
}

@media (max-width: 767.98px) {
  .hero-card,
  .sidebar-card,
  .content-card {
    padding: 1.2rem;
    border-radius: 1.4rem;
  }

  .hero-metrics {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-metrics--tablet {
    display: none;
  }

  .hero-metrics--desktop {
    display: grid;
  }

  .sidebar-header,
  .content-topbar {
    flex-direction: column;
  }

  .hero-heading-row {
    flex-direction: column;
  }

  .hero-side-column {
    align-items: stretch;
    align-self: auto;
  }

  .feedback-callout-card {
    margin-top: 0;
  }

  .hero-heading-tools,
  .language-switcher,
  .feedback-page-actions {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .service-contact-links {
    grid-template-columns: 1fr;
  }

  .drilldown-header {
    flex-direction: column;
  }

  .province-selector {
    grid-template-columns: 1fr;
  }

  .return-map-button-overlay {
    padding: 0.65rem 0.9rem;
  }

  .map-frame-controls {
    top: 0.75rem;
    right: 0.75rem;
    gap: 0.5rem;
    max-width: calc(100% - 1.5rem);
  }

  .feedback-submissions-header,
  .feedback-submission-top {
    flex-direction: column;
  }

  .province-name {
    font-size: 13px;
  }

  .province-name.small {
    font-size: 11px;
  }

  .province-percent {
    font-size: 10px;
  }

  .province-percent.small,
  .province-percent.tiny {
    font-size: 8px;
  }
}

.site-auth-header {
  width: min(96vw, 1800px);
  margin: 1.25rem auto 0;
  position: relative;
  z-index: 3;
}

.site-auth-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(103, 92, 53, 0.16);
  background: rgba(251, 245, 229, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(72, 54, 20, 0.1);
}

.site-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.site-auth-brand strong,
.site-auth-brand small {
  display: block;
}

.site-auth-brand strong {
  font-size: 0.95rem;
  line-height: 1.05;
}

.site-auth-brand small {
  color: var(--muted);
}

.site-auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(165, 90, 42, 0.18), rgba(121, 143, 77, 0.22));
  color: #3a2b18;
  font-family: "Bitter", serif;
  font-weight: 800;
}

.site-auth-nav,
.site-auth-tools,
.auth-inline-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-auth-nav-link,
.site-auth-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.site-auth-nav-link {
  color: var(--muted);
}

.site-auth-nav-link.active,
.site-auth-nav-link:hover {
  color: var(--text);
  background: rgba(255, 250, 241, 0.78);
}

.site-auth-guest-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-auth-action {
  border: 1px solid rgba(132, 65, 24, 0.22);
  color: #432b15;
  background: linear-gradient(135deg, rgba(165, 90, 42, 0.14), rgba(200, 152, 79, 0.2));
}

.site-auth-action-secondary {
  background: rgba(255, 250, 241, 0.7);
}

.site-auth-user-menu {
  position: relative;
}

.site-auth-user-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 65, 24, 0.18);
  background: rgba(255, 250, 241, 0.78);
  color: var(--text);
}

.site-auth-user-copy {
  display: grid;
  text-align: left;
  line-height: 1.1;
}

.site-auth-user-copy small {
  color: var(--muted);
}

.auth-avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.auth-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ba7d47, #72854c);
  color: #fff9ef;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-auth-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 13rem;
  padding: 0.45rem;
  border-radius: 1rem;
  border: 1px solid rgba(103, 92, 53, 0.16);
  background: rgba(251, 245, 229, 0.96);
  box-shadow: 0 18px 32px rgba(72, 54, 20, 0.16);
}

.site-auth-dropdown-link {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0.75rem 0.8rem;
  border-radius: 0.8rem;
  color: var(--text);
  background: transparent;
  border: 0;
  text-decoration: none;
  text-align: left;
}

.site-auth-dropdown-link:hover {
  background: rgba(121, 143, 77, 0.12);
}

.site-auth-dropdown-button {
  cursor: pointer;
}

.auth-page-layout {
  width: min(92vw, 1260px);
  margin: 0 auto;
}

.auth-page-panel {
  border-radius: 1.8rem;
  padding: 1.6rem;
  border: 1px solid var(--panel-border);
  background: var(--panel-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.auth-page-panel-wide {
  padding: 2rem;
}

.auth-page-grid,
.profile-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.auth-page-copy {
  padding: 0.5rem 0.25rem;
}

.auth-display-title {
  max-width: 10ch;
}

.auth-form-card,
.profile-summary-card {
  border-radius: 1.4rem;
  padding: 1.15rem;
  background: rgba(255, 250, 241, 0.58);
  border: 1px solid rgba(105, 90, 51, 0.12);
}

.auth-form-grid {
  display: grid;
  gap: 1rem;
}

.auth-form-footnote {
  margin-top: 1rem;
  color: var(--muted);
}

.auth-form-footnote a {
  color: #664115;
  font-weight: 700;
}

.auth-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-summary-card {
  display: grid;
  gap: 1rem;
}

.profile-summary-avatar-wrap {
  display: flex;
}

.profile-summary-avatar {
  width: 5.4rem;
  height: 5.4rem;
}

.profile-summary-meta {
  color: var(--muted);
  line-height: 1.6;
}

.developer-panel {
  border-radius: 1.6rem;
  padding: 1.25rem;
  background: rgba(255, 250, 241, 0.52);
  border: 1px solid rgba(105, 90, 51, 0.12);
}

.developer-panel-header,
.developer-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.developer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.developer-table-card,
.developer-editor-card {
  border-radius: 1.3rem;
  padding: 1rem;
  background: rgba(255, 250, 241, 0.62);
  border: 1px solid rgba(105, 90, 51, 0.12);
}

.developer-table {
  width: 100%;
  border-collapse: collapse;
}

.developer-table th,
.developer-table td {
  padding: 0.9rem 0.7rem;
  border-bottom: 1px solid rgba(105, 90, 51, 0.12);
  vertical-align: middle;
}

.developer-table th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.developer-user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.developer-user-avatar {
  width: 2.6rem;
  height: 2.6rem;
}

.developer-user-subtext {
  color: var(--muted);
  font-size: 0.78rem;
}

.developer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(121, 143, 77, 0.12);
  border: 1px solid rgba(98, 116, 58, 0.16);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.developer-badge-muted {
  background: rgba(165, 90, 42, 0.08);
  border-color: rgba(132, 65, 24, 0.12);
}

.developer-edit-button {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
}

html[data-theme="dark"] .site-auth-header-inner,
html[data-theme="dark"] .site-auth-dropdown,
html[data-theme="dark"] .auth-page-panel,
html[data-theme="dark"] .auth-form-card,
html[data-theme="dark"] .profile-summary-card,
html[data-theme="dark"] .site-auth-user-button,
html[data-theme="dark"] .site-auth-action-secondary,
html[data-theme="dark"] .site-auth-nav-link.active,
html[data-theme="dark"] .site-auth-nav-link:hover {
  background: rgba(36, 41, 31, 0.92);
  color: #eef0e3;
  border-color: rgba(208, 190, 135, 0.14);
}

html[data-theme="dark"] .site-auth-brand,
html[data-theme="dark"] .site-auth-dropdown-link,
html[data-theme="dark"] .site-auth-user-button,
html[data-theme="dark"] .site-auth-action,
html[data-theme="dark"] .site-auth-nav-link.active,
html[data-theme="dark"] .site-auth-nav-link:hover,
html[data-theme="dark"] .auth-form-footnote a {
  color: #eef0e3;
}

html[data-theme="dark"] .developer-panel,
html[data-theme="dark"] .developer-table-card,
html[data-theme="dark"] .developer-editor-card {
  background: rgba(36, 41, 31, 0.92);
  color: #eef0e3;
  border-color: rgba(208, 190, 135, 0.14);
}

html[data-theme="dark"] .developer-table th,
html[data-theme="dark"] .developer-user-subtext {
  color: #c8c6b5;
}

html[data-theme="dark"] .developer-table td {
  border-bottom-color: rgba(208, 190, 135, 0.12);
}

html[data-theme="dark"] .developer-badge {
  background: rgba(104, 121, 59, 0.28);
  border-color: rgba(167, 187, 96, 0.3);
  color: #eef0e3;
}

html[data-theme="dark"] .developer-badge-muted {
  background: rgba(140, 88, 33, 0.22);
  border-color: rgba(188, 145, 69, 0.2);
}

html[data-theme="dark"] .site-auth-brand small,
html[data-theme="dark"] .site-auth-guest-copy,
html[data-theme="dark"] .site-auth-user-copy small,
html[data-theme="dark"] .profile-summary-meta {
  color: #c8c6b5;
}

html[data-theme="dark"] .site-auth-brand-mark {
  color: #f8efde;
  background: linear-gradient(135deg, rgba(166, 103, 42, 0.38), rgba(114, 133, 76, 0.32));
}

html[data-theme="dark"] .site-auth-action {
  background: linear-gradient(135deg, rgba(140, 88, 33, 0.22), rgba(103, 124, 55, 0.18));
  border-color: rgba(188, 145, 69, 0.32);
}

html[data-theme="dark"] .site-auth-dropdown-link:hover {
  background: rgba(104, 121, 59, 0.24);
}

@media (max-width: 1199.98px) {
  .auth-page-grid,
  .profile-page-grid {
    grid-template-columns: 1fr;
  }

  .developer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .site-auth-header-inner,
  .auth-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-auth-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .developer-panel-header,
  .developer-editor-header {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .site-auth-header {
    width: min(92vw, 1800px);
    margin-top: 1rem;
  }

  .site-auth-header-inner,
  .site-auth-nav,
  .site-auth-tools,
  .auth-inline-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-auth-user-button,
  .site-auth-action,
  .site-auth-nav-link {
    width: 100%;
  }

  .site-auth-dropdown {
    position: static;
    margin-top: 0.65rem;
  }

  .auth-page-panel,
  .auth-page-panel-wide {
    padding: 1.2rem;
  }
}