.account-intro {
  padding: 12px 4px 28px;
}
.account-intro h1 {
  font-size: 24px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.account-intro small {
  font-size: 12px;
}
.account-intro .left {
  gap: 16px;
}
.personal-menu {
  padding: 5px 18px;
}
.personal-menu .list-row {
  min-height: 87px;
}
.personal-menu .left {
  gap: 14px;
}
.personal-menu small {
  margin-top: 5px;
  font-size: 11px;
}
.menu-symbol {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--mint);
  flex-shrink: 0;
}
.menu-symbol .icon {
  width: 22px;
  height: 22px;
  color: var(--deep);
}
.menu-symbol.warm {
  background: #fff1e5;
}
.menu-symbol.warm .icon {
  color: #a95629;
}
.settings-entry {
  padding: 18px;
  margin-top: 4px;
  min-height: 80px;
}
.settings-entry .left {
  gap: 14px;
}
.settings-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.settings-card h2 {
  font-size: 16px;
}
.settings-card > p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 18px;
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.theme-choice {
  position: relative;
  min-width: 0;
  padding: 8px 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
}
.theme-choice.selected {
  border-color: var(--green);
  background: var(--mint);
}
.theme-choice > span:last-of-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  margin-top: 10px;
  min-height: 32px;
}
.theme-choice .icon {
  width: 15px;
  height: 15px;
}
.choice-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--bg);
  position: absolute;
  right: 4px;
  top: 4px;
}
.theme-swatch {
  display: block;
  margin: 2px auto;
  width: 58px;
  height: 76px;
  border-radius: 10px;
  background: #f6faf7;
  border: 1px solid #dae8df;
  position: relative;
  overflow: hidden;
}
.theme-swatch i,
.theme-swatch b,
.theme-swatch em {
  position: absolute;
  display: block;
  border-radius: 4px;
  left: 7px;
  right: 7px;
}
.theme-swatch i {
  height: 6px;
  top: 10px;
  right: 25px;
  background: #1b3b2b;
}
.theme-swatch b {
  height: 22px;
  top: 23px;
  background: #cdeed6;
}
.theme-swatch em {
  height: 14px;
  top: 51px;
  background: #e4eae5;
}
.theme-swatch.dark {
  background: #111a16;
  border-color: #334a3b;
}
.theme-swatch.dark i {
  background: #d8eddf;
}
.theme-swatch.dark b {
  background: #28553c;
}
.theme-swatch.dark em {
  background: #25352b;
}
.theme-swatch.system {
  background: linear-gradient(90deg, #f6faf7 50%, #111a16 50%);
}
.theme-swatch.system i {
  background: linear-gradient(90deg, #1b3b2b 69%, #d8eddf 69%);
}
.theme-swatch.system b {
  background: linear-gradient(90deg, #cdeed6 50%, #28553c 50%);
}
.theme-swatch.system em {
  background: linear-gradient(90deg, #e4eae5 50%, #25352b 50%);
}
.language-options .list-row {
  min-height: 58px;
  font-size: 14px;
}
.language-options .icon {
  color: var(--deep);
}
.import-backup {
  flex-wrap: wrap;
}
.import-backup input {
  font-size: 12px;
  width: 100%;
  min-height: 44px;
  padding-top: 8px;
  color: var(--muted);
}
.personal-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 8px 3px 20px;
}
.chart-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0;
}
.chart-entry {
  width: 100%;
  text-align: left;
}
.chart-entry p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 14px;
}
.chart-entry .mini-zw {
  max-width: 240px;
}
.chart-entry-grid {
  display: grid;
  gap: 0;
}
.chart-entry.orange {
  background: #fff4eb;
}
.chart-entry .pillars {
  max-width: 300px;
}
html[lang="en"] h1 {
  letter-spacing: -0.6px;
}
html[lang="en"] .hero h1 {
  font-size: 26px;
}
html[lang="en"] .tool-card h3 {
  font-size: 14px;
}
html[lang="en"] .daily-grid {
  gap: 5px;
}
html[lang="en"] .daily-metric > span {
  font-size: 11px;
}
html[lang="en"] .nav button {
  font-size: 10px;
}
html[lang="en"] .natal-table {
  font-size: 10px;
}
html[lang="en"] .natal-table th {
  font-size: 9px;
  overflow-wrap: normal;
}
html[lang="en"] .natal-table .hidden-stem small {
  font-size: 8px;
}
html[lang="en"] .zi-grid .palace h3 {
  font-size: 9px;
}
html[lang="en"] .zi-legend {
  flex-wrap: wrap;
}
html[lang="en"] .chart-star {
  font-size: 9px;
}
html[lang="en"] .alm-hours {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
html[lang="en"] .almanac > div {
  align-items: flex-start;
}
html[lang="en"] .badge {
  min-width: 40px;
  width: auto;
  border-radius: 10px;
  padding: 3px 5px;
  font-size: 10px;
}
html[lang="en"] .theme-choice > span:last-of-type {
  gap: 3px;
  font-size: 10px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.import-backup {
  position: relative;
  cursor: pointer;
}
.import-backup input {
  position: absolute;
  inset: 0;
  opacity: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.import-backup:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.backup-file-button {
  color: var(--deep);
  font-size: 12px;
  padding: 8px 10px;
  background: var(--mint);
  border-radius: 10px;
}
.backup-result { margin: 18px 0; }
.backup-result-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
.backup-result-row > * { min-width: 0; overflow-wrap: anywhere; }
.backup-result-row > :not(:first-child) { text-align: center; }
.backup-result-row [role="cell"]:nth-child(2) { color: var(--deep); font-weight: 700; }
