:root {
  --bg: #fff8f0;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --text-main: #5e5264;
  --text-soft: #8a7f90;
  --heading-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --pink: #fadadd;
  --pink-deep: #f49dac;
  --blue: #b5d3e7;
  --blue-deep: #6f97bb;
  --yellow: #f5e6ca;
  --yellow-deep: #d7b46f;
  --mint: #dcefdc;
  --shadow-soft: 0 20px 45px rgba(183, 154, 173, 0.16);
  --shadow-hover: 0 24px 50px rgba(183, 154, 173, 0.22);
  --border: rgba(255, 255, 255, 0.76);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(250, 218, 221, 0.9), transparent 32%),
    radial-gradient(circle at top right, rgba(181, 211, 231, 0.8), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 48%, #fffaf3 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.45) 0 3px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px);
  background-size: 180px 180px;
  opacity: 0.8;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.top-nav,
.nav-links,
.footer-links,
.guide-card-grid,
.guide-actions,
.article-meta,
.article-grid,
.article-list,
.faq-list,
.cta-actions,
.crumbs {
  display: flex;
  align-items: center;
}

.top-nav,
.site-footer {
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 26px rgba(183, 154, 173, 0.12);
}

.top-nav {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-link,
.nav-links a,
.footer-links a,
.guide-link,
.text-link {
  color: #6b5668;
  text-decoration: none;
}

.brand-link {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 500;
}

.nav-links,
.footer-links,
.guide-actions,
.cta-actions,
.crumbs {
  flex-wrap: wrap;
  gap: 12px;
}

.nav-links a,
.footer-links a,
.crumbs a,
.crumbs span {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.guide-link:hover,
.guide-link:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.crumbs a:hover,
.crumbs a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(177, 140, 153, 0.18);
}

.hero-card,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: 36px;
  isolation: isolate;
}

.hero-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(250, 218, 221, 0.35);
  content: "";
  z-index: -1;
}

.eyebrow,
.section-kicker,
.baby-card-label {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-copy h1,
.panel h2,
.baby-card strong {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 500;
}

.hero-copy h1 {
  margin-top: 12px;
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  line-height: 1.1;
  color: #6a5164;
}

.hero-text {
  max-width: 48rem;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-tags span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #755f74;
  font-size: 0.94rem;
}

.hero-ornaments {
  position: relative;
  min-height: 280px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
}

.bubble-pink {
  top: 6%;
  right: 22%;
  width: 132px;
  height: 132px;
  background: rgba(250, 218, 221, 0.82);
}

.bubble-blue {
  top: 34%;
  right: 0;
  width: 156px;
  height: 156px;
  background: rgba(181, 211, 231, 0.88);
}

.bubble-yellow {
  bottom: 4%;
  left: 8%;
  width: 116px;
  height: 116px;
  background: rgba(245, 230, 202, 0.88);
}

.baby-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 6px;
  width: min(100%, 250px);
  padding: 24px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.baby-card strong {
  font-size: 1.6rem;
  color: #6b5975;
}

.baby-card small {
  color: var(--text-soft);
}

.content-stack {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.panel {
  padding: 28px;
}

.guide-card-grid,
.article-grid {
  gap: 16px;
}

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

.guide-card,
.article-card,
.faq-item,
.callout-card {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(201, 182, 189, 0.14);
}

.guide-card,
.article-card,
.callout-card {
  padding: 20px;
}

.guide-card {
  display: grid;
  gap: 14px;
}

.guide-card-kicker,
.article-eyebrow {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-card h3,
.article-card h3,
.faq-item h3,
.article-copy h2,
.cta-card h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 500;
  color: #654d60;
}

.guide-card h3 {
  font-size: 1.45rem;
}

.guide-card p,
.article-card p,
.faq-item p,
.article-copy p,
.article-copy li,
.callout-card p,
.site-footer p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.guide-link,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd4dc 0%, #ffe5bc 100%);
  font-weight: 700;
  box-shadow: 0 12px 20px rgba(234, 173, 184, 0.2);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 500;
  color: #654d60;
}

.guide-page .page-shell {
  width: min(980px, calc(100% - 32px));
}

.article-hero {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.article-hero h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.15;
  color: #654d60;
}

.article-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.95;
  color: #6d6271;
}

.crumbs {
  gap: 8px;
}

.crumbs span {
  color: var(--text-soft);
}

.article-meta,
.article-list,
.faq-list {
  gap: 12px;
}

.article-meta {
  flex-wrap: wrap;
}

.article-meta span {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.86);
  color: #755f74;
  font-size: 0.92rem;
}

.article-main {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

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

.article-copy {
  display: grid;
  gap: 16px;
}

.article-copy h2 {
  font-size: 1.8rem;
}

.article-list,
.faq-list {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
}

.article-list li,
.faq-item {
  padding: 18px 20px;
}

.article-list li {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.faq-list {
  gap: 14px;
}

.faq-item {
  display: grid;
  gap: 10px;
}

.callout-card {
  display: grid;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 245, 235, 0.96) 0%, rgba(255, 233, 240, 0.92) 100%);
}

.cta-card {
  display: grid;
  gap: 16px;
}

.cta-actions {
  align-items: stretch;
}

.cta-link.is-secondary {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 20px rgba(183, 154, 173, 0.14);
}

.results-panel {
  overflow: visible;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 16px;
}

.field-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 24px rgba(201, 182, 189, 0.12);
}

.field-label,
.field-hint {
  margin: 0;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6a5164;
}

.field-hint {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.field-hint.is-warning {
  color: #b26a57;
}

.section-note.is-warning {
  color: #b26a57;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #654d60;
  font: inherit;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.text-input:focus {
  outline: 2px solid rgba(244, 157, 172, 0.38);
  outline-offset: 2px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.overview-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(201, 182, 189, 0.14);
}

.overview-card.is-total {
  background: linear-gradient(135deg, rgba(255, 245, 235, 0.96) 0%, rgba(255, 234, 214, 0.92) 100%);
}

.overview-card.tone-1 {
  background: linear-gradient(135deg, rgba(255, 248, 228, 0.98) 0%, rgba(255, 240, 208, 0.94) 100%);
}

.overview-card.tone-2 {
  background: linear-gradient(135deg, rgba(236, 247, 255, 0.98) 0%, rgba(220, 240, 255, 0.94) 100%);
}

.overview-card.tone-3 {
  background: linear-gradient(135deg, rgba(241, 234, 255, 0.98) 0%, rgba(232, 223, 255, 0.94) 100%);
}

.overview-card.tone-4 {
  background: linear-gradient(135deg, rgba(255, 235, 241, 0.98) 0%, rgba(255, 223, 232, 0.94) 100%);
}

.overview-label,
.overview-meta {
  margin: 0;
}

.overview-label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.overview-value {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  color: #644f5e;
}

.overview-meta {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.stats-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.stats-panel h2 {
  margin-top: 8px;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  color: #654d60;
}

#result-count {
  color: #e08b99;
}

.muted-text,
.section-note,
.favorite-meta,
.name-meta,
.empty-state p {
  color: var(--text-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.favorites-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-head h2 {
  margin-top: 8px;
  font-size: 1.65rem;
  color: #654d60;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-chip {
  min-width: 124px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #fff1f3;
  color: #855d71;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(212, 163, 174, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.action-button:hover,
.action-button:focus-visible,
.favorite-remove:hover,
.favorite-remove:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(177, 140, 153, 0.22);
}

.filter-chip.tone-1 {
  background: #fff1d8;
  color: #9b7441;
}

.filter-chip.tone-2 {
  background: #e8f6ff;
  color: #527b9e;
}

.filter-chip.tone-3 {
  background: #efe6ff;
  color: #7262a1;
}

.filter-chip.tone-4 {
  background: #ffe2e9;
  color: #b76578;
}

.filter-chip.is-active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f49dac 0%, #ffcf8e 100%);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(227, 138, 155, 0.34);
}

.group-stack,
.name-grid,
.favorites-grid {
  display: grid;
  gap: 16px;
}

.group-stack {
  gap: 18px;
}

.name-grid {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
}

.favorites-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.results-toolbar,
.pagination-bar,
.pagination-actions,
.results-actions,
.sound-group-header,
.sound-group-copy,
.pagination-summary,
.pagination-jump-form {
  display: flex;
  align-items: center;
}

.results-toolbar,
.pagination-bar,
.sound-group-header {
  justify-content: space-between;
}

.pagination-summary,
.pagination-jump-form {
  gap: 10px;
}

.pagination-summary {
  flex-wrap: wrap;
}

.results-toolbar {
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.results-hint,
.pagination-copy,
.sound-group-meta,
.pagination-meta,
.pagination-jump-label,
.pagination-jump-suffix {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.results-actions,
.pagination-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-jump-form {
  flex-wrap: wrap;
  padding-inline-start: 4px;
}

.mini-action,
.page-button,
.pagination-jump-input {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  font: inherit;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.mini-action,
.page-button {
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.mini-action {
  padding: 10px 16px;
  background: #fff6de;
  color: #916d43;
  box-shadow: 0 10px 22px rgba(213, 186, 134, 0.16);
}

.export-action {
  min-width: 126px;
}

.mini-action:hover,
.mini-action:focus-visible,
.page-button:hover,
.page-button:focus-visible,
.sound-group-header:hover,
.sound-group-header:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(177, 140, 153, 0.18);
}

.sound-group {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(201, 182, 189, 0.16);
  overflow: visible;
}

.sound-group.is-open {
  background: rgba(255, 255, 255, 0.84);
}

.sound-group-header {
  width: 100%;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.sound-group.is-open .sound-group-header {
  position: sticky;
  top: 12px;
  z-index: 8;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 24px rgba(177, 140, 153, 0.18);
}

.sound-group-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.sound-group-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 500;
  color: #5c6f93;
}

.sound-group-toggle {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ebf6ff;
  color: #53789a;
  font-size: 0.9rem;
  font-weight: 700;
}

.sound-group-body {
  margin-top: 18px;
}

.pagination-bar {
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.page-button {
  padding: 10px 14px;
  background: #fff1f3;
  color: #855d71;
}

.pagination-jump-input {
  width: 88px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #6c5f71;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pagination-jump-input:focus {
  outline: 2px solid rgba(244, 157, 172, 0.45);
  outline-offset: 2px;
}

.pagination-jump-input::-webkit-outer-spin-button,
.pagination-jump-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.pagination-jump-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.page-jump-confirm {
  background: #ebf6ff;
  color: #53789a;
}

.page-button.is-active {
  background: linear-gradient(135deg, #f49dac 0%, #ffcf8e 100%);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(227, 138, 155, 0.24);
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.name-card,
.favorite-card,
.empty-state {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: var(--panel-strong);
  box-shadow: 0 12px 30px rgba(201, 182, 189, 0.18);
}

.name-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  content-visibility: auto;
  contain-intrinsic-size: 220px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.name-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.card-topline,
.favorite-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tone-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tone-badge.tone-1 {
  background: #fff1d8;
  color: #9d7a43;
}

.tone-badge.tone-2 {
  background: #e7f5ff;
  color: #51799b;
}

.tone-badge.tone-3 {
  background: #efe6ff;
  color: #6f61a2;
}

.tone-badge.tone-4 {
  background: #ffe3ea;
  color: #b76578;
}

.name-char,
.favorite-char {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 3.1rem;
  color: #6d5667;
  line-height: 1;
}

.name-char-link,
.lookup-link {
  text-decoration: none;
}

.name-char-link {
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.name-char-link:hover,
.name-char-link:focus-visible {
  color: #b76578;
  transform: translateY(-1px);
}

.name-pinyin,
.favorite-pinyin {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #4f768e;
}

.name-meta,
.favorite-meta {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.lookup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(235, 246, 255, 0.96);
  color: #53789a;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.lookup-link:hover,
.lookup-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(111, 151, 187, 0.18);
}

.lookup-link-secondary {
  background: rgba(255, 241, 243, 0.96);
  color: #855d71;
}

.action-button,
.favorite-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.action-button {
  width: 100%;
  background: linear-gradient(135deg, #ffd4dc 0%, #ffe5bc 100%);
  color: #87576d;
  box-shadow: 0 12px 20px rgba(234, 173, 184, 0.22);
}

.action-button.is-saved {
  background: linear-gradient(135deg, #f59fb0 0%, #f7b4c2 100%);
  color: #ffffff;
}

.favorite-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.favorite-remove {
  width: 100%;
  background: #ebf6ff;
  color: #53789a;
}

.empty-state {
  padding: 28px 20px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 500;
  color: #6b5668;
}

@media (max-width: 900px) {
  .guide-card-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-ornaments {
    min-height: 220px;
  }

  .stats-panel,
  .section-head,
  .top-nav,
  .site-footer,
  .results-toolbar,
  .pagination-bar,
  .sound-group-header {
    align-items: start;
    flex-direction: column;
  }

  .favorites-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links,
  .footer-links {
    width: 100%;
  }

  .pagination-actions,
  .pagination-jump-form {
    width: 100%;
  }

  .sound-group-toggle {
    width: 100%;
    text-align: center;
  }

  .sound-group.is-open .sound-group-header {
    top: 8px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
  }

  .panel,
  .hero-card {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .name-grid,
  .favorites-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .article-hero,
  .article-card,
  .callout-card {
    padding: 22px 18px;
  }

  .results-actions,
  .pagination-actions {
    width: 100%;
  }

  .mini-action,
  .page-button.page-jump,
  .page-jump-confirm {
    flex: 1 1 calc(50% - 5px);
  }

  .pagination-jump-input {
    flex: 1 1 88px;
  }

  .filter-chip {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .nav-links a,
  .footer-links a,
  .crumbs a,
  .crumbs span {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .name-grid,
  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .hero-tags span,
  .status-pill {
    width: 100%;
    justify-content: center;
  }
}
