﻿:root {
  --bg: #f4efe8;
  --bg-deep: #eadbc9;
  --panel: rgba(255, 251, 246, 0.78);
  --panel-strong: rgba(255, 248, 240, 0.92);
  --line: rgba(67, 50, 34, 0.12);
  --line-strong: rgba(67, 50, 34, 0.22);
  --text: #2d221a;
  --muted: #756758;
  --accent: #c45c33;
  --accent-deep: #8d3517;
  --accent-soft: rgba(196, 92, 51, 0.12);
  --accent-glow: rgba(219, 126, 72, 0.2);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-lg: 0 5px 16px rgba(83, 56, 33, 0.15);
  --shadow-md: 0 3px 9px rgba(83, 56, 33, 0.105);
  --base-font: 14px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-size: var(--base-font);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(221, 154, 89, 0.24), transparent 26%),
    radial-gradient(circle at 85% 14%, rgba(245, 218, 191, 0.95), transparent 24%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 56%, #f0e7da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 30%),
    radial-gradient(circle at center, transparent 0, transparent 62%, rgba(141, 53, 23, 0.03) 100%);
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.page-shell {
  width: min(1360px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 22px 0 38px;
}

.star-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(141, 53, 23, 0.14);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 174, 0.45), transparent 30%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(251, 236, 220, 0.9));
  box-shadow: var(--shadow-md);
}

.star-banner__eyebrow {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.star-banner__body {
  flex: 1 1 640px;
  min-width: 0;
}

.star-banner__title {
  margin-top: 6px;
  max-width: none;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.star-banner__text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.star-banner__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #d77743);
  color: #fffaf6;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.star-banner__text a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.9fr);
  gap: 16px;
  margin-bottom: 18px;
}

.hero__copy,
.hero__stats,
.panel,
.card,
.results-head {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero__copy {
  position: relative;
  overflow: hidden;
  padding: 24px;
  backdrop-filter: blur(16px);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 174, 0.55), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 242, 0.9), rgba(250, 238, 222, 0.76));
}

.hero__copy::after {
  content: "";
  position: absolute;
  inset: auto -36px -58px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(196, 92, 51, 0) 70%);
}

.eyebrow,
.panel__eyebrow,
.results-head__eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
}

.eyebrow {
  margin-bottom: 10px;
}

.hero__title,
.panel__title {
  max-width: none;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.hero__title {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.panel__title {
  font-size: 1.46rem;
  line-height: 1.3;
}

.hero__text {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.93rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(141, 53, 23, 0.14);
  background: rgba(255, 247, 239, 0.9);
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-action--primary {
  background: linear-gradient(135deg, var(--accent), #d77743);
  border-color: transparent;
  color: #fff9f4;
}

.tag,
.unit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.9);
  border: 1px solid rgba(141, 53, 23, 0.12);
  color: var(--accent-deep);
  font-size: 0.8rem;
  line-height: 1.25;
}

.hero__stats {
  padding: 16px;
  display: grid;
  gap: 10px;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.86), rgba(247, 238, 229, 0.8));
}

.stat {
  padding: 14px 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(141, 53, 23, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 237, 0.88)),
    var(--panel-strong);
}

.stat__label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.stat strong {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

.stat__link {
  color: var(--text);
  text-decoration: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.filters {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 12px;
}

.panel {
  padding: 18px;
  background: rgba(255, 250, 244, 0.97);
}

.panel--filters {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(250, 241, 231, 0.96));
}

.panel--muted {
  background: rgba(252, 247, 240, 0.97);
}

.panel--notes {
  max-height: min(48vh, 380px);
  overflow: auto;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel--map {
  margin-bottom: 18px;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.97), rgba(246, 238, 230, 0.95));
}

.map-frame {
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(141, 53, 23, 0.12);
  background: rgba(255, 251, 247, 0.88);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: min(50vh, 480px);
  border: 0;
}

.map-panel {
  padding: 0;
  overflow: hidden;
}

.map-panel__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.map-panel__summary::-webkit-details-marker {
  display: none;
}

.map-panel__toggle {
  flex-shrink: 0;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 600;
}

.map-panel__content {
  padding: 0 18px 18px;
}

.notes-panel {
  padding: 0;
  overflow: hidden;
}

.notes-panel__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.notes-panel__summary::-webkit-details-marker {
  display: none;
}

.notes-panel__toggle {
  flex-shrink: 0;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 600;
}

.notes-panel__content {
  padding: 0 18px 18px;
}

.notes-panel--en {
  max-height: min(58vh, 460px);
}

.panel__header,
.card__top,
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.panel__hint {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.84rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

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

.check-dropdown {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.9);
  overflow: hidden;
}

.check-dropdown summary {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.check-dropdown summary::-webkit-details-marker {
  display: none;
}

.check-dropdown[open] summary {
  border-bottom: 1px solid var(--line);
}

.check-dropdown .check-list {
  padding: 12px;
  max-height: 220px;
  overflow: auto;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(141, 53, 23, 0.14);
  border-radius: 999px;
  background: rgba(255, 247, 239, 0.92);
  color: var(--accent-deep);
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
}

.check-item input {
  margin: 0;
  accent-color: var(--accent);
}

.field {
  display: grid;
  gap: 6px;
}

.field--search {
  grid-column: 1 / -1;
}

.field span,
.metric__label,
.card__region,
.notes-list,
.results-meta {
  color: var(--muted);
}

.field span {
  font-size: 0.8rem;
  font-weight: 600;
}

.field input,
.field select,
.ghost-button {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
  padding: 10px 12px;
  font-size: 0.86rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(196, 92, 51, 0.45);
  box-shadow: 0 0 0 4px rgba(196, 92, 51, 0.12);
}

.ghost-button {
  width: auto;
  cursor: pointer;
  color: var(--accent-deep);
  background: rgba(255, 247, 239, 0.92);
}

.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(141, 53, 23, 0.24);
}

.ghost-button--link {
  text-decoration: none;
}

.results {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.results-head {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 244, 233, 0.96));
}

.results-head h2 {
  margin-top: 4px;
}

.results-meta {
  align-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.88);
  border: 1px solid rgba(141, 53, 23, 0.12);
  font-size: 0.82rem;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(var(--card-columns, 3), minmax(0, 1fr));
  gap: 12px;
}

.card {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(255, 247, 239, 0.96));
  box-shadow: var(--shadow-md);
}

.card__heading {
  min-width: 0;
}

.card__region {
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.card__title {
  font-size: 1.1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.card__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(141, 53, 23, 0.14);
  background: rgba(255, 247, 239, 0.9);
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
}

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

.metric {
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 250, 245, 0.82);
  border: 1px solid rgba(141, 53, 23, 0.1);
}

.metric__label {
  display: block;
  font-size: 0.75rem;
}

.metric__value {
  display: block;
  margin-top: 5px;
  font-size: 0.92rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tags,
.unit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.tag,
.unit-pill {
  background: var(--accent-soft);
  min-height: 34px;
  align-self: flex-start;
}

.card__section {
  display: grid;
  gap: 6px;
}

.card__section h4 {
  font-size: 0.86rem;
}

.card__section p,
.details__content p {
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.details summary {
  cursor: pointer;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 600;
}

.details__content {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.notes-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.empty-state {
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 251, 246, 0.74);
  border: 1px dashed var(--line-strong);
  font-size: 0.9rem;
}

.table-link {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.sheet-page {
  width: min(100vw - 110px, 1600px);
}

.sheet-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.sheet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sheet-toolbar > div:first-child {
  flex: 1 1 520px;
  min-width: 0;
}

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

.font-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(141, 53, 23, 0.12);
  border-radius: 999px;
  background: rgba(255, 247, 239, 0.92);
}

.font-control {
  min-width: 36px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.font-control.is-active {
  background: rgba(196, 92, 51, 0.16);
}

.sheet-grid {
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(141, 53, 23, 0.1);
  background: rgba(255, 251, 247, 0.88);
}

.sheet-table {
  width: 100%;
  min-width: 1560px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: calc(0.86rem * var(--table-font-scale, 1));
}

.sheet-table th,
.sheet-table td {
  padding: 8px 10px;
  border-right: 1px solid rgba(141, 53, 23, 0.08);
  border-bottom: 1px solid rgba(141, 53, 23, 0.1);
  vertical-align: top;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff4e8;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.sheet-table .sheet-table__notes td {
  background: rgba(246, 238, 228, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
}

.sheet-table .sheet-table__index {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 64px;
  min-width: 64px;
  background: #fffaf5;
  text-align: center;
  font-weight: 600;
}

.sheet-table thead .sheet-table__index {
  z-index: 3;
  background: #fff1e1;
}

.sheet-table .sheet-table__notes .sheet-table__index {
  background: rgba(243, 231, 217, 0.96);
}

.update-hero {
  margin-bottom: 18px;
}

.update-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.update-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.panel--code {
  overflow: hidden;
}

.code-block {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 247, 239, 0.92);
  border: 1px solid rgba(141, 53, 23, 0.1);
  overflow: auto;
}

.code-block code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .layout {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .hero,
  .layout,
  .update-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .field--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100vw - 24px, 1360px);
    padding-top: 14px;
  }

  .hero__copy,
  .hero__stats,
  .panel,
  .results-head,
  .card {
    padding: 14px;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 40px, 1360px);
  }

  .hero__copy,
  .hero__stats,
  .panel,
  .results-head,
  .card {
    padding: 22px;
  }

  .map-panel__summary,
  .notes-panel__summary {
    padding: 22px;
  }

  .map-panel__content,
  .notes-panel__content {
    padding: 0 22px 22px;
  }

  .field input,
  .field select,
  .ghost-button {
    padding: 13px 15px;
  }

  .check-dropdown summary {
    padding: 15px 16px;
  }

  .check-dropdown .check-list {
    padding: 16px;
  }

  .metric {
    padding: 13px;
  }

  .panel__header,
  .card__top,
  .results-head,
  .section-head,
  .map-panel__summary,
  .notes-panel__summary,
  .sheet-toolbar,
  .star-banner,
  .sheet-actions {
    flex-direction: column;
  }

  .star-banner__body,
  .sheet-toolbar > div:first-child,
  .sheet-actions {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .star-banner__action,
  .sheet-actions > .hero-action,
  .sheet-actions > .font-controls {
    width: 100%;
  }

  .font-controls {
    justify-content: center;
  }

  .field-grid,
  .check-grid,
  .metric-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .results-meta {
    white-space: normal;
  }

  .sheet-table {
    min-width: 1120px;
  }

  .sheet-page {
    width: min(100vw - 36px, 1600px);
  }
}

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

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

html[data-theme="light"] body,
html[data-theme="dark"] body {
  background: var(--bg) !important;
  color: var(--text);
}

html[data-theme="light"] {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.18);
  --text: #111111;
  --muted: #5f5f5f;
}

html[data-theme="dark"] {
  --bg: #000000;
  --panel: #000000;
  --panel-strong: #000000;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f5f5f5;
  --muted: #b6b6b6;
}

html[data-theme="light"] body::before,
html[data-theme="dark"] body::before,
html[data-theme="light"] .hero__copy::after,
html[data-theme="dark"] .hero__copy::after {
  display: none !important;
}

html[data-theme="light"] .star-banner,
html[data-theme="light"] .hero__copy,
html[data-theme="light"] .hero__stats,
html[data-theme="light"] .panel,
html[data-theme="light"] .card,
html[data-theme="light"] .results-head,
html[data-theme="light"] .stat,
html[data-theme="light"] .map-frame,
html[data-theme="light"] .sheet-grid,
html[data-theme="light"] .sheet-table thead th,
html[data-theme="light"] .sheet-table .sheet-table__index,
html[data-theme="light"] .sheet-table .sheet-table__notes td,
html[data-theme="light"] .sheet-table .sheet-table__notes .sheet-table__index,
html[data-theme="dark"] .star-banner,
html[data-theme="dark"] .hero__copy,
html[data-theme="dark"] .hero__stats,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .results-head,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .map-frame,
html[data-theme="dark"] .sheet-grid,
html[data-theme="dark"] .sheet-table thead th,
html[data-theme="dark"] .sheet-table .sheet-table__index,
html[data-theme="dark"] .sheet-table .sheet-table__notes td,
html[data-theme="dark"] .sheet-table .sheet-table__notes .sheet-table__index {
  background: var(--panel) !important;
}

html[data-theme="dark"] .hero-action,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .check-dropdown,
html[data-theme="dark"] .check-item,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .font-controls,
html[data-theme="dark"] .font-control.is-active,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .language-toggle {
  background: #111111 !important;
  color: var(--text);
}

.page-controls {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.theme-toggle,
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  min-width: 92px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  text-align: center;
}

.language-toggle {
  text-decoration: none;
}

@media (max-width: 640px) {
  .page-controls {
    top: 14px;
    right: 14px;
  }
}

.hero-action--accent {
  background: linear-gradient(135deg, #ff6a00, #ff8f3a);
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
}

.notes-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
