:root {
  --bg: #f6f0e6;
  --surface: #fffdf8;
  --surface-soft: #faf6ee;
  --surface-green: #f3eadc;
  --line: #eadfce;
  --line-strong: #d8c5ab;
  --ink: #2a211d;
  --muted: #81776d;
  --subtle: #a79d92;
  --green: #aa7638;
  --green-dark: #4b352c;
  --green-soft: #f4e3c9;
  --red: #a85d4c;
  --red-soft: #f4e2dc;
  --blue-soft: #eef1ef;
  --amber-soft: #f2dfbd;
  --shadow: none;
  --frame-shadow: 0 7px 18px rgba(214, 181, 135, 0.055), 0 2px 8px rgba(243, 226, 202, 0.12);
  --radius: 8px;
  --detail-font-delta: 0px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  font-size: calc(16px * var(--font-scale, 1));
}

body {
  background: linear-gradient(180deg, #f3eadf 0%, #fffdf8 46%, #f5efe6 100%);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.theme-dark {
  --bg: #18130f;
  --surface: #241c16;
  --surface-soft: #2d231b;
  --surface-green: #382a1f;
  --line: rgba(238, 219, 192, 0.2);
  --line-strong: rgba(226, 194, 150, 0.34);
  --ink: #f7ead9;
  --muted: #d4c2ac;
  --subtle: #a99783;
  --green: #d7a05c;
  --green-dark: #f0d5ad;
  --green-soft: #3d2e21;
  --red: #efb1a2;
  --red-soft: #3a211d;
  --shadow: none;
  --frame-shadow: 0 7px 18px rgba(126, 91, 50, 0.09), 0 2px 8px rgba(58, 42, 28, 0.12);
  background: linear-gradient(180deg, #17110d 0%, #241c16 54%, #18110d 100%);
  color-scheme: dark;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(170, 118, 56, 0.15);
}

textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
  line-height: 1.65;
}

select {
  min-height: 44px;
  padding: 0 12px;
  appearance: none;
}

mark {
  border-radius: 3px;
  padding: 0 2px;
  background: rgba(168, 93, 76, 0.16);
  color: #a85d4c;
  font-weight: inherit;
}

mark.search-hit {
  background: rgba(168, 93, 76, 0.16);
  color: #a85d4c;
}

.phone-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(246, 240, 230, 0.94), rgba(255, 253, 248, 0.98)),
    var(--bg);
  position: relative;
}

@media (min-width: 431px) {
  .phone-shell {
    box-shadow: 0 12px 32px rgba(77, 55, 35, 0.06);
  }
}

.statusbar {
  position: sticky;
  top: 0;
  z-index: 68;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(9px + env(safe-area-inset-top)) 18px 6px;
  background: #fffdf8;
  font-size: 12px;
  color: var(--muted);
}

body[data-route="home"] {
  height: 100vh;
  overflow: hidden;
}

body[data-route="home"] .phone-shell {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-route="home"] #app {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body[data-route="home"] .statusbar {
  position: relative;
  top: auto;
  flex: 0 0 auto;
}

body[data-route="symptom"] {
  height: 100vh;
  overflow: hidden;
}

body[data-route="symptoms"] {
  height: 100vh;
  overflow: hidden;
}

body[data-route="symptom"] .phone-shell,
body[data-route="symptoms"] .phone-shell {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-route="symptom"] #app,
body[data-route="symptoms"] #app {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body[data-route="symptom"] .statusbar,
body[data-route="symptoms"] .statusbar {
  position: relative;
  top: auto;
  flex: 0 0 auto;
}

.screen {
  min-height: calc(100vh - 32px);
  padding: 0 16px calc(92px + env(safe-area-inset-bottom));
  background: #fffdf8;
}

.screen.no-tabbar {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.home-screen,
.me-screen,
.favorites-screen,
.settings-screen,
.login-screen,
.search-screen,
.meridian-atlas-screen,
.meridian-detail-screen {
  padding-top: 8px;
  background: #fffdf8;
}

.home-screen {
  background: #fffdf8;
  padding-top: 8px;
}

body[data-route="home"] .home-screen {
  height: 100%;
  min-height: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-route="symptom"] .symptom-detail-screen {
  height: 100%;
  min-height: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-route="symptoms"] .symptom-flow-screen {
  height: 100%;
  min-height: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.meridian-atlas-screen {
  height: calc(100vh - 34px);
  min-height: calc(100vh - 34px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0;
}

body.theme-dark .home-screen,
body.theme-dark .me-screen,
body.theme-dark .favorites-screen,
body.theme-dark .settings-screen,
body.theme-dark .login-screen,
body.theme-dark .search-screen,
body.theme-dark .meridian-atlas-screen,
body.theme-dark .meridian-detail-screen {
  background: var(--surface);
}

.topbar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 4px 0 10px;
}

.topbar.has-right-actions {
  grid-template-columns: 88px minmax(0, 1fr) 88px;
}

.topbar-title {
  min-width: 0;
  text-align: center;
}

.topbar-title h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 760;
}

.topbar-title p {
  display: none;
}

.topbar-spacer {
  display: block;
  width: 40px;
  height: 40px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.topbar .icon-button,
.search-flow-back {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
}

.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .topbar-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  color: currentColor;
}

.icon-search::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 1px;
  top: 1px;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  left: 12px;
  top: 14px;
  border-radius: 2px;
}

.icon-back::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  left: 6px;
  top: 4px;
}

.icon-trash::before,
.icon-trash::after {
  content: "";
  position: absolute;
}

.icon-trash::before {
  left: 5px;
  right: 5px;
  bottom: 3px;
  top: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.icon-trash::after {
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -3px 0 0 currentColor;
  border-radius: 2px;
}

.icon-house::before,
.icon-scroll::before,
.icon-person::before,
.icon-leaf::before,
.icon-map::before,
.icon-camera::before,
.icon-compare::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-house::before {
  left: 5px;
  right: 5px;
  top: 11px;
  bottom: 3px;
  border-width: 2.2px;
  border-radius: 4px;
  border-top: 0;
}

.icon-house::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-left: 2.2px solid currentColor;
  border-top: 2.2px solid currentColor;
  transform: rotate(45deg);
  left: 5px;
  top: 4px;
  border-radius: 2px 0 0 0;
}

.icon-map::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 14px;
  background: currentColor;
  left: 9px;
  top: 3px;
  box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor;
}

.icon-person::before {
  left: 8px;
  right: 8px;
  top: 3px;
  bottom: 14px;
  border-width: 2.2px;
  border-radius: 50%;
}

.icon-person::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 11px;
  border: 2.2px solid currentColor;
  border-radius: 13px 13px 5px 5px;
}

.icon-star::before {
  content: "☆";
  position: absolute;
  inset: -2px 0 0;
  font-size: 21px;
  line-height: 20px;
}

.is-on .icon-star::before {
  content: "★";
}

.icon-share::before {
  content: "↗";
  position: absolute;
  inset: -1px 0 0;
  font-size: 22px;
  line-height: 20px;
  font-weight: 700;
}

.tabbar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: min(430px, 100vw);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

body.theme-dark .tabbar {
  background: rgba(34, 27, 22, 0.94);
}

.tab {
  min-height: 50px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}

.tab .icon {
  width: 26px;
  height: 26px;
}

.tab.is-active {
  color: var(--green);
  font-weight: 720;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.section {
  margin-top: 14px;
}

.section + .section {
  margin-top: 18px;
}

.section-head,
.search-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title,
.search-sheet-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 760;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 760;
}

.primary-button {
  background: var(--green-dark);
  color: #fffdf8;
}

.secondary-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--green-dark);
}

.text-button,
.search-sheet-action {
  color: var(--green);
  font-size: 13px;
  font-weight: 720;
}

.line-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--surface-green);
  color: var(--green);
  flex: 0 0 auto;
}

.line-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-search-sticky {
  position: sticky;
  top: 0;
  z-index: 58;
  margin: -8px -16px 10px;
  padding: 9px 16px 16px;
  background: #fffdf8;
}

body[data-route="home"] .home-search-sticky {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  margin: 0 -16px;
  padding: 8px 16px 16px;
}

.home-scroll-content {
  min-height: 0;
}

body[data-route="home"] .home-scroll-content {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 0 calc(92px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

body[data-route="home"] .home-scroll-content::-webkit-scrollbar {
  display: none;
}

.home-search-sticky::after {
  display: none;
}

body.theme-dark .home-search-sticky {
  background: var(--surface);
}

.search-entry {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(214, 196, 171, 0.82);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--muted);
  text-align: left;
  backdrop-filter: blur(10px);
}

body.theme-dark .search-entry {
  background: var(--surface-soft);
}

.search-entry .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #b27631;
}

.search-entry .search-entry-text {
  min-width: 0;
  overflow: hidden;
  color: #90867a;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-panel {
  margin-top: -6px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.home-portal-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(220, 190, 146, 0.56);
  background: #fffaf1;
  color: var(--ink);
  text-align: left;
  isolation: isolate;
  box-shadow: 0 6px 16px rgba(219, 188, 145, 0.055);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.home-portal-card:active {
  transform: scale(0.99);
}

.home-portal-primary {
  width: 100%;
  min-height: 202px;
  padding: 28px 24px 22px;
  display: grid;
  align-content: start;
  gap: 10px;
  border-radius: 19px;
  border-color: rgba(220, 175, 119, 0.6);
  background: linear-gradient(135deg, #fff2dd 0%, #f7dfbb 100%);
  box-shadow: 0 7px 18px rgba(208, 156, 92, 0.06);
}

.home-3d-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #2a211d;
}

.home-3d-title em {
  font-size: 31px;
  font-style: italic;
  font-family: "Times New Roman", Georgia, serif;
  line-height: 1;
  letter-spacing: 0;
}

.home-3d-title strong {
  font-size: 29px;
  line-height: 1.04;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 900;
}

.home-3d-subtitle {
  position: relative;
  z-index: 1;
  color: #6b513b;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.home-3d-button {
  position: relative;
  z-index: 1;
  justify-self: start;
  min-width: 132px;
  min-height: 42px;
  margin-top: 10px;
  border-radius: 999px;
  background: #c78338;
  color: #fffdf8;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  font-weight: 820;
  box-shadow: 0 4px 10px rgba(178, 111, 43, 0.12);
}

.home-3d-button b {
  font-weight: 900;
  margin-left: 5px;
}

.home-smart-badge {
  position: relative;
  z-index: 1;
  justify-self: start;
  min-height: 23px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 247, 230, 0.9);
  color: #bf7f35;
  font-size: 11px;
  line-height: 1;
  font-weight: 820;
}

.home-organ-visual {
  position: absolute;
  right: 30px;
  top: 75px;
  width: 60px;
  height: 60px;
  background: transparent;
  opacity: 0.2;
  filter: saturate(0.62) blur(0.16px);
  transform: rotate(-5deg);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.52) 36%, rgba(0, 0, 0, 0.86) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.52) 36%, rgba(0, 0, 0, 0.86) 100%);
}

.home-organ-visual path:first-of-type {
  fill: url(#homeHeartFill);
}

.home-body-section {
  margin-top: 16px;
}

.home-body-title {
  color: #8a7159;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 720;
  margin-bottom: 10px;
}

.home-body-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-body-chip {
  min-height: 36px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid rgba(220, 182, 131, 0.62);
  background: rgba(255, 253, 248, 0.92);
  color: #6f5741;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 4px 10px rgba(220, 182, 131, 0.055);
}

.home-body-chip:active {
  transform: scale(0.98);
}

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

.home-portal-small {
  min-height: 128px;
  padding: 18px 15px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 8px;
  border-color: rgba(220, 190, 146, 0.5);
  background: rgba(255, 253, 248, 0.92);
}

.home-portal-meridian {
  background: rgba(255, 253, 248, 0.94);
}

.home-portal-model {
  background: #4d3526;
  border-color: #4d3526;
  color: #fff6e8;
  box-shadow: 0 6px 16px rgba(101, 72, 43, 0.085);
}

.home-portal-icon {
  grid-column: 1;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3e1c8;
  color: #b27631;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  font-weight: 900;
}

.home-portal-model .home-portal-icon {
  background: rgba(255, 239, 214, 0.12);
  color: #f8d7ad;
}

.home-small-copy {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  display: grid;
  gap: 7px;
  align-self: end;
}

.home-small-copy strong {
  color: #403731;
  font-size: 17px;
  line-height: 1.08;
  font-weight: 860;
  white-space: nowrap;
}

.home-portal-model .home-small-copy strong {
  color: #fff6ec;
}

.home-small-copy span {
  color: #8f7356;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.home-portal-model .home-small-copy span {
  color: rgba(255, 246, 236, 0.75);
}

.home-round-arrow {
  grid-column: 2;
  grid-row: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: end;
  background: rgba(199, 131, 56, 0.12);
  color: #b27631;
  font-size: 18px;
  line-height: 1;
  font-weight: 620;
}

.home-portal-model .home-round-arrow {
  background: rgba(255, 246, 236, 0.12);
  color: rgba(255, 246, 236, 0.72);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 10px;
}

.home-feature-card {
  min-height: 86px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  text-align: left;
  border: 0;
}

.home-feature-card:active,
.menu-row:active,
.settings-row:active,
.search-result-card:active,
.point-row:active {
  transform: scale(0.99);
}

.home-feature-primary {
  min-height: 180px;
  grid-row: span 2;
  flex-direction: column;
}

.feature-text {
  display: grid;
  gap: 5px;
}

.feature-text strong {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 760;
}

.feature-text span {
  color: var(--muted);
  font-size: 12px;
}

.home-sketch {
  color: var(--ink);
  opacity: 0.82;
}

.body-sketch {
  width: 86px;
  align-self: center;
}

.book-sketch {
  width: 70px;
  align-self: flex-end;
}

.home-3d-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 820;
}

.home-section {
  margin-top: 22px;
}

.home-section-head {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.home-section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 10px;
  color: #2a211d;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 820;
}

.home-section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: #bd833f;
  transform: translateY(-50%);
}

.home-section-head button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 4px;
  color: #bf7f35;
  font-size: 13px;
  font-weight: 760;
}

.home-symptom-list {
  display: grid;
  gap: 10px;
}

.home-symptom-shortcut {
  min-height: 90px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 13px 13px;
  border-radius: 16px;
  border: 0;
  background:
    linear-gradient(105deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 253, 248, 0.92) 56%, rgba(246, 232, 213, 0.56) 100%);
  color: var(--ink);
  text-align: left;
  transition: transform 0.16s ease, background 0.16s ease;
}

.home-symptom-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4e7d5;
  color: var(--green);
  font-size: 14px;
  font-weight: 820;
}

.home-symptom-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.home-symptom-copy strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 860;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-symptom-copy small {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-symptom-copy em {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(129, 119, 109, 0.84);
  font-size: 12px;
  line-height: 1.25;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-symptom-copy i {
  flex: 0 0 auto;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-style: normal;
  color: #b2742b;
  background: rgba(244, 231, 213, 0.92);
  font-weight: 760;
}

.home-symptom-shortcut b {
  color: #b2742b;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

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

.home-meridian-card {
  min-height: 84px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.home-meridian-card span {
  width: 34px;
  height: 28px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--meridian-color, var(--green)) 82%, #fff 18%);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 820;
}

.home-meridian-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-meridian-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-focus-list {
  display: grid;
  gap: 8px;
}

.home-point-list {
  display: grid;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-point-item + .home-point-item {
  border-top: 1px solid rgba(234, 223, 206, 0.92);
}

.home-point-card {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.home-point-mark {
  width: 58px;
  height: 48px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #f3e9d8;
  color: #bd833f;
  font-size: 19px;
  font-weight: 820;
}

.home-point-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.home-point-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.home-point-title strong {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  color: #1e0d00;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-point-title small {
  min-width: 0;
  overflow: hidden;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-point-card em {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.home-point-chip {
  min-height: 88px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 13px 12px;
  border-radius: 16px;
  border: 1px solid rgba(226, 211, 190, 0.24);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 248, 0.82) 48%, rgba(249, 243, 234, 0.68));
  color: var(--ink);
  text-align: left;
}

.home-point-chip .home-point-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4e7d5;
  color: var(--green);
  font-size: 15px;
}

.home-point-chip .home-point-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.home-point-chip strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 820;
}

.home-point-chip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-point-chip em {
  color: #9a8371;
  font-size: 12px;
  line-height: 1.3;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-daily-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  border-radius: 18px;
  border: 0;
  background:
    radial-gradient(circle at 100% 50%, rgba(214, 106, 75, 0.16), transparent 116px),
    linear-gradient(135deg, #fff8ef 0%, #fffdf8 100%);
  box-shadow: 0 6px 16px rgba(238, 190, 157, 0.07);
}

.home-daily-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2dec0;
  color: #b2742b;
  font-size: 18px;
  font-weight: 860;
}

.home-daily-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-daily-copy small {
  color: #b2742b;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 760;
}

.home-daily-copy strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 860;
}

.home-daily-copy em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-daily-card button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #d66a4b;
  color: #fffdf8;
  font-size: 12px;
  font-weight: 800;
}

.home-focus-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.home-focus-row > span:first-child {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 820;
}

.home-focus-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-focus-row strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-focus-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-focus-row em {
  color: rgba(129, 119, 109, 0.74);
  font-style: normal;
  font-size: 20px;
}

.home-symptom-shortcut:active,
.home-meridian-card:active,
.home-point-card:active,
.home-point-chip:active,
.home-focus-row:active,
.home-daily-card:active {
  transform: scale(0.99);
}

@media (max-width: 374px) {
  .home-portal-primary {
    min-height: 166px;
    padding: 20px 15px 16px;
  }

  .home-3d-title em {
    font-size: 27px;
  }

  .home-3d-title strong {
    font-size: 24px;
  }

  .home-3d-subtitle {
    font-size: 13px;
  }

  .home-portal-small {
    min-height: 116px;
    grid-template-columns: minmax(0, 1fr) 22px;
    gap: 6px;
    padding: 14px 11px;
  }

  .home-small-copy strong {
    font-size: 18px;
  }

  .home-small-copy span {
    font-size: 12px;
  }

  .home-round-arrow {
    width: 20px;
    height: 20px;
    font-size: 18px;
  }

}

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

.symptom-search-wrap {
  position: relative;
  z-index: 42;
  margin-bottom: 16px;
}

.symptom-search-panel {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
}

.symptom-search-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  outline: 0;
}

.symptom-search-clear {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: var(--surface-green);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

.symptom-search-clear.is-visible {
  display: grid;
}

.symptom-suggest-layer {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 292px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.symptom-suggest-layer.is-open,
.symptom-search-wrap:focus-within .symptom-suggest-layer:not(:empty) {
  display: block;
}

.symptom-suggest-head {
  padding: 4px 6px 8px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 760;
}

.symptom-hot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.symptom-hot-chip {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 11px;
  background: var(--surface-green);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 760;
}

.symptom-suggest-list,
.symptom-point-mini-list {
  display: grid;
  gap: 8px;
}

.symptom-suggest-row,
.symptom-point-mini-card {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
}

.symptom-suggest-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 780;
}

.symptom-suggest-mark.is-point {
  background: #eef4f5;
  color: #4d8392;
}

.symptom-suggest-copy,
.symptom-point-mini-card span:last-child {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.symptom-suggest-copy strong,
.symptom-point-mini-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.symptom-suggest-copy small,
.symptom-point-mini-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.symptom-suggest-row em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  color: var(--subtle);
  padding: 3px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.symptom-result-section {
  display: grid;
  gap: 10px;
}

.symptom-result-section + .symptom-result-section,
.symptom-search-fallback + .symptom-list-grid {
  margin-top: 14px;
}

.symptom-result-section h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 14px;
  line-height: 1.3;
}

.symptom-search-fallback {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.symptom-search-fallback strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.symptom-search-fallback p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.symptom-list-grid {
  display: grid;
  gap: 10px;
}

.symptom-card {
  min-height: 92px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 10px 6px;
  text-align: center;
}

.symptom-icon,
.result-mark,
.meridian-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 780;
  flex: 0 0 auto;
}

.symptom-card span:last-child {
  font-size: 13px;
  font-weight: 720;
}

.symptom-plan-card {
  min-height: 104px;
  grid-template-columns: 40px minmax(0, 1fr);
  place-items: stretch;
  align-items: center;
  justify-content: stretch;
  padding: 13px;
  text-align: left;
}

.symptom-plan-card .symptom-icon {
  width: 38px;
  height: 38px;
}

.symptom-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.symptom-card-copy strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.symptom-card-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.symptom-card-copy em {
  justify-self: start;
  border-radius: 999px;
  background: var(--surface-green);
  color: var(--green);
  padding: 3px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.plan-card,
.field-card,
.settings-card,
.feedback-card,
.login-card,
.favorites-panel,
.about-card,
.model-info,
.model-stage,
.model-control-panel,
.legal-detail,
.empty-panel {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
}

.plan-card,
.field-card,
.about-card,
.model-info,
.legal-detail,
.empty-panel {
  padding: 14px;
}

.plan-card h2,
.field-card h2,
.about-card h3,
.model-info h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.plan-card p,
.field-card p,
.about-card p,
.model-info p,
.legal-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.plan-card p,
.field-card p:not(.label),
.legal-detail p,
.model-info p {
  white-space: pre-wrap;
}

.symptom-hero-card {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.symptom-overview-card {
  display: grid;
  gap: 12px;
}

.symptom-plan-brief {
  padding: 13px;
  gap: 10px;
}

.symptom-overview-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.symptom-overview-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.symptom-overview-main p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.symptom-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.symptom-primary-actions .secondary-button {
  min-height: 40px;
  padding: 0 10px;
}

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

.symptom-inline-actions button {
  min-height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 760;
}

.symptom-detail-screen {
  padding-top: 0;
  background: #fffdf8;
}

.symptom-detail-appbar {
  margin-bottom: 12px;
}

.symptom-hero-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.symptom-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: #f4e7d5;
  color: var(--green);
  font-weight: 820;
}

.symptom-hero-head div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.symptom-hero-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.symptom-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.symptom-quick-facts span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f8ead7;
  color: var(--green-dark);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 760;
}

.symptom-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.symptom-action-grid.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.symptom-action-grid .secondary-button {
  min-width: 0;
  padding: 0 8px;
  white-space: nowrap;
}

.symptom-decision-grid,
.symptom-relation-list {
  display: grid;
  gap: 10px;
}

.symptom-decision-grid {
  margin-top: 12px;
}

.symptom-fit-card {
  border-left: 4px solid var(--green);
}

.symptom-warning-card {
  margin-top: 12px;
  border: 1px solid rgba(209, 94, 82, 0.2);
  border-left: 4px solid var(--red);
}

.symptom-routine-card,
.symptom-global-caution {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.symptom-routine-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.symptom-routine-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: routine;
}

.symptom-routine-steps li {
  counter-increment: routine;
  min-height: 34px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.symptom-routine-steps li::before {
  content: counter(routine);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
}

.symptom-global-caution {
  border: 1px solid rgba(209, 94, 82, 0.18);
  background: rgba(209, 94, 82, 0.06);
}

.symptom-global-caution strong {
  color: #9f4d43;
  font-size: 14px;
}

.symptom-global-caution p {
  margin: 0;
  color: #9f4d43;
  font-size: 12px;
  line-height: 1.6;
}

.symptom-rhythm-card {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 13px;
  border-radius: var(--radius);
  background: var(--surface);
}

.symptom-rhythm-card > strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

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

.symptom-rhythm-grid span {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.symptom-rhythm-grid b {
  color: var(--green);
  font-size: 17px;
  line-height: 1;
}

.symptom-rhythm-grid small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.symptom-rhythm-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.symptom-points-section {
  margin-top: 16px;
}

body[data-route="symptom"] .symptom-points-section {
  margin-top: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.symptom-point-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 225, 216, 0.72);
  border-radius: var(--radius);
  background: var(--surface);
}

.symptom-point-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-soft) 78%, #fff 22%);
  border: 1px solid rgba(232, 225, 216, 0.72);
  border-left: 3px solid var(--point-accent);
}

.symptom-point-row {
  grid-template-columns: 32px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: var(--surface);
}

.symptom-point-row + .symptom-point-row {
  border-top: 1px solid rgba(232, 225, 216, 0.68);
}

.symptom-point-rank {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
}

.symptom-point-rank span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--point-accent);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 820;
}

.symptom-point-rank small {
  color: var(--green);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.symptom-point-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.symptom-point-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.symptom-point-title-row strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.symptom-point-title-row em {
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--green);
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 780;
}

.symptom-point-title-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.symptom-point-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.symptom-point-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.symptom-point-card header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.symptom-point-card header div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.symptom-point-card header em {
  justify-self: start;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--green);
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 760;
}

.symptom-point-card header strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.symptom-point-card header small,
.symptom-point-card p,
.symptom-point-logic dd,
.symptom-method-box span,
.symptom-caution-box {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.symptom-point-logic {
  display: grid;
  gap: 8px;
  margin: 0;
}

.symptom-point-logic div {
  display: grid;
  gap: 4px;
}

.symptom-point-logic dt {
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.symptom-point-logic dd {
  margin: 0;
}

.symptom-method-box {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.74);
}

.symptom-method-box strong {
  color: var(--green-dark);
  font-size: 12px;
}

.symptom-caution-box {
  border-radius: var(--radius);
  background: rgba(209, 94, 82, 0.08);
  color: #9f4d43;
  padding: 9px 10px;
}

.symptom-point-card footer,
.symptom-point-actions {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.symptom-point-card footer .secondary-button,
.symptom-point-actions .secondary-button {
  min-height: 38px;
  min-width: 0;
  padding: 0 8px;
  font-size: 12px;
}

.symptom-point-actions button {
  min-height: 30px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.84);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 760;
}

.symptom-safety-note {
  margin-top: 16px;
}

.toolbar,
.detail-actions {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.toolbar .secondary-button,
.toolbar .primary-button,
.detail-actions .secondary-button,
.detail-actions .primary-button {
  flex: 1;
}

.meridian-list,
.point-list,
.field-list,
.search-result-list,
.search-suggestion-list {
  display: grid;
  gap: 10px;
}

.meridian-card,
.search-result-card,
.search-suggestion-card,
.history-row,
.favorite-row,
.point-row {
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 0;
  min-height: 66px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.meridian-atlas {
  display: grid;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 0 0 18px;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.meridian-atlas::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.meridian-sticky-head {
  position: relative;
  flex: 0 0 auto;
  z-index: 32;
  margin: 0 -16px 16px;
  padding: 8px 16px 1px;
  background: #fffdf8;
}

.meridian-sticky-controls {
  display: grid;
  gap: 18px;
}

body.theme-dark .meridian-sticky-head {
  background: var(--surface);
}

.meridian-sync-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.meridian-sync-banner div {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.meridian-sync-banner strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.meridian-sync-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.meridian-sync-banner button {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.meridian-search {
  min-height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(214, 196, 171, 0.72);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.92);
}

.meridian-search-entry:active {
  background: #fffdf8;
}

.meridian-search span:last-child {
  min-width: 0;
  flex: 1;
  color: rgba(129, 119, 109, 0.72);
  font-size: 15px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meridian-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  outline: 0;
}

.meridian-search input::placeholder {
  color: rgba(129, 119, 109, 0.72);
}

.meridian-tabs {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  min-height: 44px;
  border-bottom: 1px solid rgba(234, 223, 206, 0.78);
}

.meridian-tabs button {
  position: relative;
  padding: 0 0 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  font-weight: 680;
}

.meridian-tabs button.is-active {
  color: var(--green);
  font-weight: 820;
}

.meridian-tabs button.is-active::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
}

.meridian-tabs button.is-active::before {
  bottom: -1px;
  width: 42px;
  height: 3px;
  border-radius: 999px;
}

.meridian-atlas-list {
  display: grid;
  gap: 18px;
  padding-right: 0;
}

.meridian-group {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(218, 191, 145, 0.58);
  border-radius: var(--radius);
  background: #fffdf8;
  scroll-margin-top: 12px;
}

.meridian-group-head {
  position: relative;
  overflow: hidden;
  min-height: 54px;
  background:
    radial-gradient(70px 34px at 56% 98%, rgba(197, 155, 96, 0.18), transparent 62%),
    radial-gradient(90px 40px at 88% 82%, rgba(197, 155, 96, 0.14), transparent 64%),
    linear-gradient(135deg, #f9ead1 0%, #fff4e4 100%);
  border-radius: 0;
  border-bottom: 1px solid rgba(218, 191, 145, 0.38);
}

.meridian-group-head::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 10px;
  width: 150px;
  height: 40px;
  opacity: 0.34;
  background:
    linear-gradient(135deg, transparent 0 32%, rgba(197, 155, 96, 0.24) 33% 39%, transparent 40%),
    linear-gradient(28deg, transparent 0 45%, rgba(197, 155, 96, 0.18) 46% 52%, transparent 53%);
  pointer-events: none;
}

.meridian-title-button {
  width: 100%;
  min-height: 54px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  text-align: left;
  background: transparent;
}

.meridian-head-text {
  min-width: 0;
  display: grid;
}

.meridian-title-line {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.meridian-head-text strong {
  color: #c18c45;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 820;
  white-space: nowrap;
}

.meridian-time-text {
  color: rgba(129, 119, 109, 0.82);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.meridian-point-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 12px;
  padding: 18px 16px 20px;
}

.meridian-point-chip {
  position: relative;
  min-height: 42px;
  border-radius: 0;
  background: rgba(214, 187, 139, 0.86);
  border: 0;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  color: #4f4a43;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7px 5px;
  box-shadow: none;
}

.meridian-point-chip::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  background: #fffdf8;
  clip-path: inherit;
  pointer-events: none;
}

.meridian-point-chip span {
  position: relative;
  z-index: 1;
  min-width: 0;
  color: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meridian-point-chip.is-match {
  background: rgba(170, 118, 56, 0.86);
  color: var(--green-dark);
  font-weight: 820;
}

.meridian-point-chip.is-match::before {
  background: #fff5e6;
}

.meridian-point-chip.is-symptom-match {
  background: #d15e52;
  color: #fffdf8;
  box-shadow: 0 4px 10px rgba(209, 94, 82, 0.055);
}

.meridian-point-chip.is-symptom-match::before {
  background: #d15e52;
}

.meridian-empty-points {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.meridian-side-index {
  position: fixed;
  z-index: 24;
  right: max(2px, calc((100vw - 430px) / 2 + 2px));
  top: 62%;
  transform: translateY(-50%);
  width: 32px;
  display: grid;
  gap: 5px;
  padding: 11px 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(218, 191, 145, 0.34);
  backdrop-filter: blur(8px);
  box-shadow:
    0 7px 18px rgba(214, 181, 135, 0.06),
    0 2px 8px rgba(243, 226, 202, 0.12);
}

.meridian-side-index button {
  min-height: 30px;
  margin: 0 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.meridian-side-index button.is-active {
  color: #fffdf8;
  background: #c18c45;
  font-weight: 820;
}

.meridian-side-index button:focus-visible {
  box-shadow: 0 0 0 2px rgba(193, 140, 69, 0.22);
}

.meridian-detail-sheet {
  margin: 0 -16px;
  padding: 24px 20px 26px;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  display: grid;
  gap: 22px;
}

.meridian-detail-meta {
  display: grid;
  gap: 20px;
}

.meridian-detail-meta p,
.meridian-detail-section p {
  margin: 0;
  white-space: pre-wrap;
  color: #4f4842;
  font-size: 16px;
  line-height: 1.9;
}

.meridian-detail-meta p {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.meridian-detail-meta strong,
.meridian-detail-section h2 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 860;
}

.meridian-detail-meta span {
  color: #56504a;
}

.meridian-detail-section {
  display: grid;
  gap: 10px;
}

.meridian-detail-section h2 {
  margin: 0;
}

.meridian-detail-actions {
  margin: 14px 0;
}

.meridian-media-section {
  gap: 12px;
}

.meridian-media-frame {
  overflow: hidden;
  border: 1px solid rgba(218, 191, 145, 0.58);
  border-radius: var(--radius);
  background: #fffaf2;
}

.meridian-media-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.meridian-media-scroller::-webkit-scrollbar {
  display: none;
}

.meridian-media-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  padding: 12px;
  background: transparent;
}

.meridian-media-slide img {
  display: block;
  width: 100%;
  height: min(430px, 62vh);
  object-fit: contain;
  border-radius: 6px;
  background: #f7f1e8;
}

.meridian-media-slide span {
  position: absolute;
  left: 18px;
  top: 18px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(42, 33, 29, 0.58);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 760;
}

.meridian-media-dots,
.meridian-media-viewer-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.meridian-media-dots {
  padding: 0 0 10px;
}

.meridian-media-dots i,
.meridian-media-viewer-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(170, 118, 56, 0.24);
}

.meridian-media-dots i.is-active,
.meridian-media-viewer-dots i.is-active {
  width: 16px;
  border-radius: 999px;
  background: var(--green);
}

.meridian-media-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(42, 33, 29, 0.58);
}

.meridian-media-backdrop {
  position: absolute;
  inset: 0;
}

.meridian-media-panel {
  width: min(430px, 100%);
  height: min(100dvh, 100%);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background: #17120f;
  color: #fffdf8;
}

.meridian-media-toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.meridian-media-toolbar strong {
  min-width: 0;
  color: #fffdf8;
  font-size: 16px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meridian-media-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meridian-media-tools button {
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.12);
  color: #fffdf8;
  font-size: 15px;
  font-weight: 760;
}

.meridian-media-tools button[data-action="reset-meridian-media"] {
  min-width: 48px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
}

.meridian-viewer-strip {
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.meridian-viewer-strip::-webkit-scrollbar {
  display: none;
}

.meridian-viewer-slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 0;
  margin: 0;
  scroll-snap-align: center;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.meridian-viewer-zoom-plane {
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #080706;
}

.meridian-viewer-slide img {
  width: calc(100% * var(--viewer-scale, 1));
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.meridian-viewer-slide figcaption {
  min-height: 22px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 12px;
  text-align: center;
}

.meridian-media-nav {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 52px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.16);
  color: #fffdf8;
  font-size: 30px;
  line-height: 1;
}

.meridian-media-nav.is-prev {
  left: 18px;
}

.meridian-media-nav.is-next {
  right: 18px;
}

.meridian-media-viewer-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(10px, env(safe-area-inset-bottom));
}

.meridian-point-sheet {
  display: grid;
  gap: 12px;
  padding: 8px 0 18px;
}

.meridian-point-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.meridian-point-sheet-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.meridian-point-sheet-head span {
  color: var(--muted);
  font-size: 12px;
}

.detail-font-scope .meridian-detail-meta p,
.detail-font-scope .meridian-detail-section p {
  font-size: calc(16px + var(--detail-font-delta));
}

@media (max-width: 374px) {
  .meridian-point-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meridian-head-text {
    display: grid;
    gap: 4px;
  }

  .meridian-atlas-list {
    padding-right: 38px;
  }
}

.point-row {
  align-items: stretch;
}

.point-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.point-3d {
  width: 84px;
  flex: 0 0 auto;
}

.text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.line-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
}

.line-title em {
  border-radius: 999px;
  background: var(--surface-green);
  color: var(--green);
  padding: 2px 6px;
  font-size: 10px;
  font-style: normal;
}

.line-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.small-copy {
  white-space: pre-wrap;
}

.chevron,
.menu-row em {
  margin-left: auto;
  color: var(--subtle);
  font-style: normal;
  font-size: 20px;
}

.field-card .label {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.field-card .original {
  color: var(--ink);
  font-weight: 650;
}

.field-card .plain {
  margin-top: 8px;
}

.point-detail-screen {
  background:
    linear-gradient(180deg, rgba(244, 227, 201, 0.56) 0, rgba(246, 240, 230, 0) 210px),
    var(--bg);
}

.point-detail-gallery p,
.detail-info-row p,
.detail-info-row small {
  white-space: pre-wrap;
}

.point-detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--point-accent, var(--green)) 20%, transparent), transparent 34%),
    linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--surface-soft) 72%, #fff 28%) 100%);
  border: 1px solid color-mix(in srgb, var(--point-accent, var(--green)) 14%, var(--line));
}

.point-hero-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--point-accent, var(--green)) 88%, #fff 12%);
  color: #fffdf8;
  font-size: 25px;
  font-weight: 820;
}

.point-hero-main {
  min-width: 0;
}

.point-hero-kicker {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.point-hero-main h2 {
  margin: 3px 0 9px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.18;
}

.point-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.point-hero-tags span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--point-accent, var(--green)) 10%, var(--surface-soft));
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.point-action-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 10px;
  margin: 12px 0 18px;
}

.point-action-bar .primary-button,
.point-action-bar .secondary-button {
  min-height: 46px;
}

.point-detail-section {
  margin-top: 18px;
}

.point-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
}

.point-section-head span {
  width: 30px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 820;
}

.point-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.point-detail-grid {
  display: grid;
  gap: 10px;
}

.point-field-card,
.point-diagram-card {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  background: var(--surface);
}

.point-field-card .label,
.point-diagram-card .label {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0;
}

.point-field-card p:not(.label),
.point-diagram-card p:not(.label) {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
}

.point-field-card.is-emphasis {
  border-color: color-mix(in srgb, var(--green) 22%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--green-soft) 34%, var(--surface)) 0%, var(--surface) 100%);
}

.point-field-card.is-emphasis p:not(.label) {
  color: var(--ink);
  font-size: 16px;
  font-weight: 680;
}

.point-detail-grid.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.point-detail-grid.is-compact .point-field-card {
  min-height: 104px;
}

.point-detail-grid.is-compact .point-field-card p:not(.label) {
  font-size: 14px;
}

.point-warning-card {
  border: 1px solid color-mix(in srgb, var(--red) 22%, var(--line));
  border-radius: 12px;
}

.point-location-section .point-diagram-card {
  overflow: hidden;
}

body.theme-dark .point-detail-hero,
body.theme-dark .point-field-card,
body.theme-dark .point-diagram-card {
  border-color: rgba(234, 223, 206, 0.12);
}

@media (max-width: 420px) {
  .point-detail-hero {
    align-items: flex-start;
    padding: 14px;
  }

  .point-hero-mark {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .point-hero-main h2 {
    font-size: 24px;
  }

  .point-detail-grid.is-compact {
    grid-template-columns: minmax(0, 1fr);
  }
}

.point-detail-screen {
  height: calc(100vh - 34px);
  min-height: calc(100vh - 34px);
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffdf8;
}

.point-detail-fixed-head {
  flex: 0 0 auto;
  position: relative;
  z-index: 20;
  margin: 0 -16px;
  padding: 0 16px 8px;
  background: #fffdf8;
  border-bottom: 1px solid rgba(232, 225, 216, 0.54);
}

.point-detail-fixed-head .detail-appbar {
  position: relative;
  top: auto;
}

.point-detail-fixed-head .point-detail-crumbs {
  padding: 0;
}

.point-detail-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.point-detail-scroll-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.meridian-detail-screen {
  padding-top: 0;
  background: #fffdf8;
}

.detail-appbar {
  position: sticky;
  top: 0;
  z-index: 18;
  min-height: 52px;
  margin: 0 -16px 10px;
  padding: 7px 18px 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  background: rgba(250, 244, 235, 0.97);
  backdrop-filter: blur(12px);
}

.detail-appbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
}

.detail-back,
.detail-star {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

.detail-back {
  background: transparent;
  color: var(--ink);
}

.detail-back .icon {
  width: 18px;
  height: 18px;
}

.detail-star {
  justify-self: end;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
}

.detail-star-svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-star.is-on {
  color: var(--green);
  background: rgba(255, 253, 248, 0.96);
}

.detail-star.is-on .detail-star-svg {
  fill: rgba(170, 118, 56, 0.14);
}

.point-detail-top-card {
  width: auto;
  min-width: 0;
  margin: 14px 2px 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(231, 224, 214, 0.68);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--frame-shadow);
}

.point-detail-crumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
}

.point-detail-crumbs button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-detail-crumbs span {
  color: rgba(170, 118, 56, 0.58);
}

.point-detail-brief {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 13px;
  align-items: stretch;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.point-detail-thumb {
  min-width: 0;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid rgba(232, 225, 216, 0.54);
}

.point-detail-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.point-detail-thumb span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--point-accent, var(--green)) 82%, #fff 18%);
  color: #fffdf8;
  font-size: 24px;
  font-weight: 850;
}

.point-detail-brief dl {
  min-width: 0;
  margin: 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

.point-detail-brief div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px;
  align-items: baseline;
}

.point-detail-brief dt,
.point-detail-brief dd {
  margin: 0;
  min-width: 0;
  font-size: 13px;
  line-height: 1.32;
}

.point-detail-brief dt {
  color: #5b4a3e;
  font-weight: 820;
  white-space: nowrap;
}

.point-detail-brief dd {
  color: #4d453f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-detail-image-card {
  position: relative;
  margin: 2px 0 18px;
  padding: 8px;
  border: 1px solid rgba(232, 225, 216, 0.72);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.point-detail-visual {
  height: 286px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fbf8ef;
}

.point-detail-visual svg {
  display: block;
  width: 100%;
  max-height: 260px;
}

.point-detail-visual .point-location-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 6px;
  background: #fbf8ef;
}

.point-detail-gallery p {
  margin: 9px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.point-detail-summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 2px 0 14px;
  padding: 15px 16px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--point-accent, var(--green)) 10%, transparent), transparent 28%),
    var(--surface-soft);
}

.point-summary-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--point-accent, var(--green)) 86%, #fff 14%);
  color: #fffdf8;
  font-size: 25px;
  font-weight: 820;
}

.point-summary-main {
  min-width: 0;
  display: grid;
  justify-items: start;
}

.point-summary-main p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.point-summary-main h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.18;
}

.point-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.point-detail-tags span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--point-accent, var(--green)) 10%, var(--surface));
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.point-summary-3d {
  margin-top: 10px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 780;
}

.point-summary-3d .icon {
  width: 16px;
  height: 16px;
}

.detail-module {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  padding: 20px 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(232, 225, 216, 0.72);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: none;
}

.point-detail-reading-flow {
  margin-top: 10px;
  padding: 20px 20px 26px;
  border: 1px solid rgba(232, 225, 216, 0.72);
  border-radius: 11px;
  background: var(--surface);
}

.point-detail-screen .detail-module {
  width: auto;
  margin-left: 2px;
  margin-right: 2px;
  border-color: rgba(231, 224, 214, 0.68);
  box-shadow: var(--frame-shadow);
}

.point-detail-screen .point-detail-reading-flow {
  box-shadow: var(--frame-shadow);
}

.detail-module > h2 {
  margin: 0 0 15px;
  padding-left: 11px;
  position: relative;
  color: var(--ink);
  font-size: 20px;
  font-weight: 820;
  line-height: 1.25;
}

.detail-module > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 17px;
  border-radius: 4px;
  background: var(--green);
}

.detail-module-body {
  min-width: 0;
  display: grid;
  gap: 0;
}

.detail-info-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 19px 0;
}

.point-detail-reading-flow .detail-info-row {
  display: block;
  padding: 19px 0;
}

.point-detail-reading-flow .detail-info-row + .detail-info-row {
  margin-top: 0;
}

.detail-info-row + .detail-info-row {
  border-top: 1px solid #f0e7db;
}

.point-detail-reading-flow .detail-info-row + .detail-info-row {
  border-top: 1px solid #f0e7db;
}

.detail-info-row:last-child {
  padding-bottom: 0;
}

.detail-info-row strong {
  color: #c1843e;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.point-detail-reading-flow .detail-info-row strong {
  display: block;
  margin: 0 0 13px -10px;
  letter-spacing: 0;
}

.detail-info-row strong::before {
  content: "【";
}

.detail-info-row strong::after {
  content: "】";
}

.detail-info-row p {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: #302821;
  font-size: 17px;
  line-height: 1.78;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.point-detail-reading-flow .detail-info-row p {
  margin: 0;
}

.detail-info-row small {
  grid-column: 1;
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
}

.detail-warning-row {
  margin: 16px 0 4px;
  padding: 14px 13px 15px;
  grid-template-columns: 1fr;
  border-top: 0 !important;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--red-soft);
}

.detail-warning-row p,
.detail-warning-row strong {
  color: var(--red);
}

.detail-warning-row small {
  grid-column: 1;
}

.detail-identity-block {
  margin-bottom: 17px;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.detail-identity-block h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 860;
}

.detail-identity-block h2 small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.detail-identity-block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.point-detail-locate-button {
  width: auto;
  min-height: 42px;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: start;
  border-radius: 9px;
  background: var(--green-dark);
  color: #fffdf8;
  font-size: 15px;
  font-weight: 820;
}

.point-detail-locate-button .icon {
  width: 17px;
  height: 17px;
}

.related-symptom-list {
  display: grid;
  gap: 9px;
}

.related-symptom-card {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
}

.related-symptom-card span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.related-symptom-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.related-symptom-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.related-symptom-card em {
  color: var(--green);
  font-style: normal;
  font-size: 18px;
}

.point-locate-action {
  margin-top: 14px;
}

.point-locate-action .primary-button {
  width: 100%;
}

body.theme-dark .point-detail-screen {
  background: var(--surface);
}

body.theme-dark .detail-appbar {
  background: rgba(42, 33, 29, 0.92);
}

body.theme-dark .point-detail-image-card,
body.theme-dark .detail-identity-block,
body.theme-dark .detail-module {
  background: var(--surface);
}

body.theme-dark .point-detail-screen .detail-module {
  border-color: rgba(234, 223, 206, 0.14);
  box-shadow: var(--frame-shadow);
}

body.theme-dark .point-detail-gallery {
  background: transparent;
}

@media (max-width: 420px) {
  .point-detail-visual {
    height: 276px;
  }

  .detail-info-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .detail-identity-block h2 {
    font-size: 22px;
  }
}

.warning-card {
  border-color: rgba(168, 93, 76, 0.34);
  background: var(--red-soft);
}

.warning-card p,
.warning-card .label {
  color: var(--red);
}

.source-note {
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.diagram-wrap {
  display: grid;
  gap: 10px;
}

.diagram-wrap svg {
  width: 100%;
  max-height: 320px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.point-location-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.detail-font-scope .field-card p,
.detail-font-scope .plan-card p,
.detail-font-scope .model-info p,
.detail-font-scope .legal-detail p,
.detail-font-scope .detail-info-row p,
.detail-font-scope .point-detail-gallery p,
.detail-font-scope .detail-identity-block p {
  font-size: calc(16px + var(--detail-font-delta));
}

.detail-font-scope .field-card .label,
.detail-font-scope .detail-info-row strong,
.detail-font-scope .point-detail-gallery strong,
.detail-font-scope .point-detail-tags span,
.detail-font-scope .detail-identity-block h2 small {
  font-size: calc(15px + var(--detail-font-delta));
}

.detail-font-scope .detail-identity-block h2 {
  font-size: calc(23px + var(--detail-font-delta));
}

.detail-font-scope .detail-module > h2 {
  font-size: calc(20px + var(--detail-font-delta));
}

.point-detail-screen.detail-font-scope .detail-appbar h1 {
  font-size: calc(18px + var(--detail-font-delta));
}

.point-detail-screen.detail-font-scope .point-detail-crumbs {
  font-size: calc(12px + var(--detail-font-delta));
}

.point-detail-screen.detail-font-scope .point-detail-brief dt,
.point-detail-screen.detail-font-scope .point-detail-brief dd {
  font-size: calc(15px + var(--detail-font-delta));
  line-height: 1.45;
}

.point-detail-screen.detail-font-scope .detail-info-row strong {
  font-size: calc(17px + var(--detail-font-delta));
}

.point-detail-screen.detail-font-scope .detail-info-row p {
  font-size: calc(18px + var(--detail-font-delta));
  line-height: 1.86;
}

.point-detail-screen.detail-font-scope .detail-info-row small {
  font-size: calc(13px + var(--detail-font-delta));
}

.point-detail-screen.detail-font-scope .detail-module > h2 {
  font-size: calc(21px + var(--detail-font-delta));
}

.search-flow-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 4px 0 14px;
}

.search-flow-back {
  background: transparent;
}

.search-panel {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.search-panel input {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  min-width: 0;
}

.search-panel button {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 13px;
  font-weight: 720;
}

.search-sheet,
.search-suggestion-panel,
.search-result-list,
.search-empty-panel {
  margin-top: 12px;
}

.search-sheet,
.search-suggestion-panel {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: none;
}

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

.search-history-chip {
  min-height: 34px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--green-dark);
  font-size: 13px;
}

.search-empty-tip {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.me-profile {
  width: 100%;
  min-height: 112px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 0;
  box-shadow: none;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.me-avatar,
.login-signed-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-green);
  display: grid;
  place-items: center;
  color: var(--green);
  flex: 0 0 auto;
}

.me-avatar .icon,
.login-signed-avatar .icon {
  width: 30px;
  height: 30px;
}

.me-identity {
  min-width: 0;
}

.me-identity h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.me-identity em {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
}

.me-identity p,
.me-notice {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.me-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-green);
  color: var(--green-dark);
}

.me-menu-list,
.settings-card {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid rgba(232, 225, 216, 0.72);
  border-radius: 11px;
  box-shadow: var(--frame-shadow);
  overflow: hidden;
}

.me-menu-list {
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
}

.menu-row,
.settings-row {
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.menu-row:last-child,
.settings-row:last-child {
  border-bottom: 0;
}

.menu-row span:not(.line-icon),
.settings-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.menu-row strong,
.settings-row span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.menu-row small,
.settings-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.settings-row small {
  margin-left: auto;
}

.settings-row.is-muted,
.settings-row.is-muted span,
.settings-row.is-muted small {
  color: var(--subtle);
}

.settings-logout {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 760;
}

.login-screen {
  display: flex;
  flex-direction: column;
}

.login-card,
.feedback-card {
  padding: 18px;
}

.login-card h2,
.feedback-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.login-card > p,
.feedback-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.login-phone-form,
.feedback-form {
  margin-top: 18px;
  display: grid;
  gap: 13px;
}

.login-phone-form label:not(.login-agreement),
.feedback-form label {
  display: grid;
  gap: 7px;
}

.login-phone-form label > span,
.feedback-form label span {
  color: var(--muted);
  font-size: 13px;
}

.login-phone-form input,
.feedback-form input,
.feedback-form select {
  min-height: 46px;
  padding: 0 12px;
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.login-code-row button {
  border-radius: var(--radius);
  background: var(--surface-green);
  color: var(--green);
  font-size: 13px;
  font-weight: 720;
}

.login-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.login-agreement input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.login-agreement button {
  display: inline;
  color: var(--green);
  font-size: 12px;
  vertical-align: baseline;
}

.login-submit {
  width: 100%;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--subtle);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

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

.login-method {
  min-height: 78px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
}

.login-method-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 780;
}

.login-method.is-wechat .login-method-icon {
  background: #eef6ee;
  color: #4d9159;
}

.login-card.is-signed {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.form-error,
.form-success {
  margin: 0;
  border-radius: var(--radius);
  padding: 9px 10px;
  font-size: 13px;
}

.form-error {
  background: var(--red-soft);
  color: var(--red);
}

.form-success {
  background: var(--surface-green);
  color: var(--green-dark);
}

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

.favorites-panel.is-empty {
  padding: 22px;
}

.favorite-row + .favorite-row {
  border-top: 1px solid var(--line);
}

.favorite-row {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.favorite-row-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.favorite-remove {
  color: var(--red);
}

.empty-state {
  min-height: 156px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

.empty-state.is-compact {
  min-height: 80px;
}

.empty-state strong {
  color: var(--ink);
  font-size: 17px;
}

.empty-state p {
  margin: 0;
  max-width: 260px;
  font-size: 13px;
  line-height: 1.6;
}

.feedback-card {
  margin-top: 4px;
}

.compliance {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 0;
  background: var(--surface-soft);
}

.compliance p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.compliance p + p {
  margin-top: 6px;
}

.detail-font-trigger {
  position: fixed;
  z-index: 28;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fffdf8;
  box-shadow: none;
  font-weight: 760;
}

.screen:not(.no-tabbar).detail-font-scope .detail-font-trigger {
  bottom: calc(96px + env(safe-area-inset-bottom));
}

.detail-font-layer {
  position: fixed;
  z-index: 35;
  inset: 0;
}

.detail-font-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 33, 29, 0.22);
}

.detail-font-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(430px, 100vw);
  transform: translateX(-50%);
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  border: 0;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: none;
}

.detail-font-grabber {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto 14px;
  background: var(--line-strong);
}

.detail-font-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-font-head strong {
  font-size: 17px;
}

.detail-font-head span {
  color: var(--muted);
  font-size: 13px;
}

.detail-font-presets {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.detail-font-presets button {
  min-height: 42px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 720;
}

.detail-font-presets button.is-active {
  background: var(--green-dark);
  color: #fffdf8;
  border-color: var(--green-dark);
}

.detail-font-done {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fffdf8;
  font-weight: 760;
}

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

.settings-font-presets button {
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
}

.settings-font-presets button span {
  font-size: 22px;
  line-height: 1;
  font-weight: 820;
}

.settings-font-presets button em {
  color: inherit;
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
}

.model-screen {
  min-height: calc(100vh - 32px);
  padding: 0 0 env(safe-area-inset-bottom);
  background: #fffdf8;
  color: #2d322e;
}

.model-screen .topbar {
  min-height: 58px;
  padding: 6px 12px 10px;
  background: #fffdf8;
  color: #4c4c4c;
}

.model-screen .topbar .icon-button {
  color: #4c4c4c;
}

.model-screen .topbar > .icon-button:last-child {
  transform: translateX(14px);
}

.model-screen .topbar-title h1 {
  font-size: 21px;
  font-weight: 520;
}

.model-layout {
  min-height: calc(100vh - 86px - env(safe-area-inset-top));
  position: relative;
}

.model-stage {
  position: relative;
  min-height: calc(100vh - 86px - env(safe-area-inset-top));
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 249, 235, var(--model-bg-brightness, 0.52)), rgba(238, 231, 218, 0) 44%),
    linear-gradient(180deg, #f2eadc 0%, #e9dfcf 100%);
}

.model-stage::before {
  content: "经 络 穴 位  骨 度 分 寸";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: start center;
  padding-top: 38px;
  color: rgba(91, 81, 65, 0.055);
  font-size: 38px;
  font-weight: 780;
  letter-spacing: 0;
  writing-mode: horizontal-tb;
  pointer-events: none;
}

.model-three-viewport,
#modelCanvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: calc(100vh - 86px - env(safe-area-inset-top));
  min-height: 620px;
  touch-action: none;
}

.model-three-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.model-three-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(55, 63, 58, 0.58);
  font-size: 14px;
  z-index: 2;
  pointer-events: none;
}

.model-three-loading.is-error {
  color: #f2b3b3;
  padding: 24px;
  text-align: center;
}

.model-left-tools {
  position: absolute;
  z-index: 7;
  left: 8px;
  top: 132px;
  display: grid;
  gap: 8px;
  width: 52px;
}

.model-view-switch {
  position: absolute;
  z-index: 9;
  left: 8px;
  top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 7px;
}

.model-view-switch button {
  min-height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(90, 86, 78, 0.16);
  color: rgba(42, 48, 43, 0.58);
  font-size: 13px;
  font-weight: 760;
  backdrop-filter: blur(8px);
}

.model-view-switch button.is-active {
  background: rgba(48, 57, 50, 0.88);
  border-color: rgba(48, 57, 50, 0.38);
  color: #fffdf7;
}

.model-study-strip {
  position: absolute;
  z-index: 9;
  left: 64px;
  right: 132px;
  top: 62px;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 210px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(49, 93, 53, 0.14);
  padding: 7px 10px;
  color: rgba(36, 67, 43, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(214, 181, 135, 0.055);
}

.model-study-strip strong {
  font-size: 13px;
  line-height: 1.15;
}

.model-study-strip span {
  color: rgba(48, 50, 46, 0.58);
  font-size: 11px;
  line-height: 1.2;
}

.model-tool {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: rgba(41, 48, 43, 0.68);
  font-size: 12px;
  font-weight: 720;
}

.model-tool.is-active {
  color: #9c403d;
}

.model-tool-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
}

.model-tool-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.model-side-panel {
  position: absolute;
  z-index: 8;
  right: 8px;
  top: 28px;
  width: 116px;
  max-height: calc(100% - 52px);
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 2px 0 18px;
  scrollbar-width: none;
}

.model-layout.has-point-sheet .model-side-panel,
.model-layout.has-settings-panel .model-side-panel {
  max-height: calc(100% - 236px);
}

.model-side-panel::-webkit-scrollbar {
  display: none;
}

.model-browser-panel {
  position: absolute;
  z-index: 10;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(81, 76, 67, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 16px rgba(214, 181, 135, 0.07);
  backdrop-filter: blur(14px);
  touch-action: pan-x;
  animation: modelPanelIn 0.2s ease both;
}

.model-browser-head {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: #24432b;
}

.model-browser-head strong {
  display: block;
  overflow: hidden;
  color: #24432b;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-browser-head span {
  display: block;
  overflow: hidden;
  color: rgba(48, 50, 46, 0.56);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-browser-detail-head {
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
}

.model-browser-back {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(36, 67, 43, 0.1);
  color: #24432b;
  font-size: 26px;
  line-height: 1;
  font-weight: 500;
}

.model-meridian-chips,
.model-point-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 2px 2px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.model-meridian-chips::-webkit-scrollbar,
.model-point-chips::-webkit-scrollbar {
  display: none;
}

.model-meridian-chip {
  min-width: 86px;
  min-height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 12px;
  border: 1px solid rgba(90, 86, 78, 0.12);
  background: rgba(250, 249, 245, 0.94);
  color: rgba(44, 50, 45, 0.72);
  font-size: 13px;
  font-weight: 760;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  scroll-snap-align: start;
}

.model-meridian-chip i {
  height: 16px;
  font-size: 24px;
  font-style: normal;
  line-height: 0.7;
}

.model-meridian-chip span {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-point-chip {
  min-width: 104px;
  min-height: 62px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(90, 86, 78, 0.12);
  background: rgba(250, 249, 245, 0.94);
  color: rgba(48, 50, 46, 0.76);
  padding: 8px;
  text-align: left;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  scroll-snap-align: start;
}

.model-meridian-chip:active,
.model-point-chip:active,
.model-browser-back:active {
  transform: scale(0.97);
}

.model-point-chip i {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(31, 109, 117, 0.12);
  color: #315d68;
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.model-point-chip span,
.model-point-chip strong,
.model-point-chip small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-point-chip strong {
  color: rgba(42, 46, 42, 0.82);
  font-size: 14px;
  line-height: 1.2;
}

.model-point-chip small {
  margin-top: 2px;
  color: rgba(48, 50, 46, 0.5);
  font-size: 10px;
  font-weight: 760;
}

.model-point-chip.is-active {
  border-color: rgba(49, 93, 53, 0.26);
  background: rgba(237, 246, 230, 0.96);
}

.model-point-chip.is-active i {
  background: rgba(49, 93, 53, 0.9);
  color: #fff;
}

@keyframes modelPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-rail-button,
.model-point-button,
.model-panel-title {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(90, 86, 78, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(48, 50, 46, 0.76);
  min-width: 0;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 740;
  backdrop-filter: blur(8px);
}

.model-rail-button.is-active,
.model-point-button.is-active {
  border-color: rgba(49, 93, 53, 0.28);
  color: #24432b;
  background: rgba(237, 246, 230, 0.92);
}

.model-rail-mark {
  font-size: 25px;
  line-height: 1;
}

.model-panel-title {
  min-height: 56px;
  display: grid;
  gap: 2px;
  color: #24432b;
}

.model-panel-title small {
  color: rgba(48, 50, 46, 0.52);
  font-size: 11px;
}

.model-panel-title em {
  color: rgba(31, 72, 61, 0.66);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.3;
  white-space: normal;
}

.model-point-button {
  min-height: 46px;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
  text-align: left;
}

.model-point-order {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(31, 109, 117, 0.12);
  color: #315d68;
  font-size: 11px;
  font-weight: 800;
}

.model-point-button.is-active .model-point-order {
  background: rgba(49, 93, 53, 0.9);
  color: #fff;
}

.model-point-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.model-point-main strong,
.model-point-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-point-main small {
  color: rgba(48, 50, 46, 0.5);
  font-size: 10px;
  font-weight: 760;
}

.model-bottom-point-strip {
  position: absolute;
  z-index: 12;
  left: 64px;
  right: 132px;
  bottom: max(8px, env(safe-area-inset-bottom));
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(91, 83, 67, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(214, 181, 135, 0.055);
  scrollbar-width: none;
}

.model-bottom-point-strip::-webkit-scrollbar {
  display: none;
}

.model-bottom-point-strip button {
  flex: 0 0 auto;
  min-width: 42px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 0 4px;
  color: rgba(54, 49, 42, 0.72);
  font-size: 10px;
  font-weight: 760;
}

.model-bottom-point-strip i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(229, 171, 46, 0.82);
  color: #fffdf5;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

.model-bottom-point-strip button.is-active i {
  background: #6b4b23;
}

.model-bottom-point-strip button.is-active span {
  color: #3f2d17;
}

.model-point-sheet {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  background: rgba(248, 250, 248, 0.96);
  color: #233a39;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 16px rgba(214, 181, 135, 0.08);
}

.model-point-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

.model-voice,
.model-sheet-close {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #6a7a80;
}

.model-sheet-close {
  font-size: 34px;
  line-height: 1;
  font-weight: 240;
}

.model-point-head h2 {
  margin: 0;
  text-align: center;
  color: #27605c;
  font-size: 18px;
  line-height: 1.2;
}

.model-point-head p {
  margin: 2px 0 0;
  text-align: center;
  color: #7c8a8f;
  font-size: 12px;
}

.model-point-copy {
  min-height: 38px;
  max-height: 48px;
  overflow: hidden;
  margin: 8px 0 10px;
  white-space: pre-wrap;
  color: #536467;
  font-size: 12px;
  line-height: 1.55;
}

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

.model-point-actions button {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #6c7b83;
  font-size: 11px;
  font-weight: 720;
}

.model-point-actions button.is-active {
  color: #2b6a65;
}

.model-point-actions .model-tool-icon {
  width: 28px;
  height: 24px;
}

.model-sheet-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.model-sheet-links .secondary-button,
.model-sheet-links .primary-button {
  min-height: 40px;
  margin: 0;
}

.model-settings-panel {
  position: absolute;
  z-index: 13;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 10px;
  background: rgba(247, 249, 248, 0.97);
  color: #263b3b;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 16px rgba(214, 181, 135, 0.08);
}

.model-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model-settings-head strong {
  font-size: 17px;
}

.model-settings-head button {
  width: 34px;
  height: 34px;
  font-size: 28px;
  line-height: 1;
  color: #66777a;
}

.model-setting-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #516366;
  font-size: 13px;
}

.model-setting-row input[type="range"] {
  height: 28px;
  padding: 0;
  border: 0;
  accent-color: #2f7771;
}

.model-toggle {
  width: 22px;
  height: 22px;
  justify-self: start;
  accent-color: #2f7771;
}

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

.model-segmented button {
  min-height: 34px;
  border-radius: 8px;
  background: #eef2f0;
  color: #647578;
  font-weight: 760;
}

.model-segmented button.is-active {
  background: #2f7771;
  color: #fff;
}

@media (max-width: 374px) {
  .model-side-panel {
    width: 102px;
  }

  .model-tool {
    min-height: 52px;
  }

  .model-setting-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom));
  max-width: min(320px, calc(100vw - 48px));
  transform: translate(-50%, 12px);
  border-radius: 999px;
  background: rgba(42, 33, 29, 0.9);
  color: #fffdf8;
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Page-level background sync with the JiZhen warm paper baseline. */
.screen,
.home-screen,
.me-screen,
.favorites-screen,
.settings-screen,
.login-screen,
.legal-screen,
.search-screen,
.search-results-screen,
.symptom-detail-screen,
.meridian-atlas-screen,
.meridian-detail-screen,
.point-detail-screen,
.model-screen {
  background: #fffdf8;
}

.home-search-sticky,
.meridian-sticky-head,
.point-detail-fixed-head,
.search-flow-header,
.search-results-screen .search-flow-header,
.model-screen .topbar {
  background: #fffdf8;
}

@media (max-width: 374px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature-grid,
  .select-row {
    grid-template-columns: 1fr;
  }

.home-feature-primary {
    min-height: 150px;
  }
}

/* Symptom flow locked to the 3D meridian visual language. */
.symptom-flow-screen,
.symptom-detail-screen {
  --symptom-bg: #fffdf8;
  --symptom-surface: rgba(255, 253, 248, 0.92);
  --symptom-line: rgba(214, 199, 177, 0.62);
  --symptom-accent: #bd833f;
  --symptom-accent-soft: rgba(189, 131, 63, 0.15);
  --symptom-ink: #333333;
  --symptom-muted: #77716a;
  background: var(--symptom-bg);
  color: var(--symptom-ink);
}

.symptom-flow-screen .topbar,
.symptom-detail-screen .detail-appbar {
  background: rgba(255, 253, 248, 0.97);
  color: var(--symptom-ink);
}

body[data-route="symptoms"] .symptom-flow-screen .topbar {
  flex: 0 0 auto;
  margin: 0 -16px 12px;
  padding: 8px 16px 12px;
  z-index: 12;
}

.symptom-flow-scroll {
  min-height: 0;
}

body[data-route="symptoms"] .symptom-flow-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

body[data-route="symptoms"] .symptom-flow-scroll::-webkit-scrollbar {
  display: none;
}

.symptom-flow-card {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--symptom-line);
  border-radius: 18px;
  background: var(--symptom-surface);
  box-shadow: 0 4px 12px rgba(214, 181, 135, 0.055);
}

.symptom-flow-title {
  display: grid;
  gap: 5px;
}

.symptom-flow-title h2 {
  margin: 0;
  color: var(--symptom-ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 840;
  letter-spacing: 0;
}

.symptom-flow-title p {
  margin: 0;
  color: var(--symptom-muted);
  font-size: 13px;
  line-height: 1.55;
}

.symptom-part-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.symptom-part-tabs button,
.symptom-feedback-actions button {
  min-height: 42px;
  border: 1px solid var(--symptom-line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.84);
  color: var(--symptom-ink);
  font-size: 14px;
  font-weight: 780;
}

.symptom-part-tabs button.is-active,
.symptom-feedback-actions button.is-active {
  border-color: rgba(189, 131, 63, 0.48);
  background: var(--symptom-accent);
  color: #fffdf8;
}

.symptom-flow-list {
  display: grid;
  gap: 10px;
}

.symptom-flow-row {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--symptom-line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  text-align: left;
}

.symptom-flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--symptom-accent);
  box-shadow: 0 0 6px rgba(189, 131, 63, 0.1);
}

.symptom-flow-row .symptom-card-copy {
  gap: 5px;
}

.symptom-flow-row strong {
  color: var(--symptom-ink);
  font-size: 16px;
  line-height: 1.25;
}

.symptom-flow-row small {
  overflow: hidden;
  color: var(--symptom-muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.symptom-flow-row em {
  border-radius: 999px;
  background: var(--symptom-accent-soft);
  color: #8f5d27;
  padding: 5px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.symptom-bottom-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 16px 0 calc(18px + env(safe-area-inset-bottom));
}

.symptom-bottom-action:has(.secondary-button) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
}

.symptom-flow-screen .primary-button,
.symptom-detail-screen .primary-button,
.symptom-flow-screen .secondary-button,
.symptom-detail-screen .secondary-button {
  min-height: 46px;
  border-radius: 16px;
  font-weight: 820;
}

.symptom-flow-screen .primary-button,
.symptom-detail-screen .primary-button {
  background: var(--symptom-accent);
  color: #fffdf8;
}

.symptom-flow-screen .secondary-button,
.symptom-detail-screen .secondary-button {
  border: 1px solid var(--symptom-line);
  background: rgba(255, 253, 248, 0.86);
  color: var(--symptom-ink);
}

.symptom-detail-screen {
  padding-bottom: 20px;
}

.symptom-detail-screen .symptom-detail-appbar {
  flex: 0 0 auto;
  margin: 0 -16px 12px;
  padding: 8px 16px 12px;
  background: #fffdf8;
  z-index: 12;
}

.symptom-detail-scroll {
  min-height: 0;
}

body[data-route="symptom"] .symptom-detail-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

body[data-route="symptom"] .symptom-detail-scroll::-webkit-scrollbar {
  display: none;
}

.symptom-detail-appbar h1 {
  color: var(--symptom-ink);
}

.symptom-detail-screen .detail-star {
  color: var(--symptom-accent);
}

.symptom-quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.symptom-quick-facts span {
  min-height: 34px;
  justify-content: center;
  border-radius: 13px;
  background: var(--symptom-accent-soft);
  color: #8a5a12;
  padding: 0 8px;
  font-size: 12px;
}

.symptom-3d-card {
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 176, 51, 0.13), transparent 34%),
    var(--symptom-surface);
}

.symptom-point-list {
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.symptom-point-group-list {
  display: grid;
  gap: 14px;
}

.symptom-point-group {
  display: grid;
  gap: 10px;
}

.symptom-point-group h3 {
  margin: 0;
  color: var(--symptom-accent);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 860;
}

.symptom-point-card.symptom-point-row {
  grid-template-columns: 34px minmax(0, 1fr) 48px;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--symptom-line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.symptom-point-card.symptom-point-row:active {
  transform: scale(0.992);
  background: rgba(250, 243, 233, 0.96);
}

.symptom-point-row + .symptom-point-row {
  border-top: 1px solid var(--symptom-line);
}

.symptom-point-rank span {
  background: var(--symptom-accent);
  color: #fffdf8;
  box-shadow: 0 0 6px rgba(255, 176, 51, 0.08);
}

.symptom-point-title-row strong {
  color: var(--symptom-ink);
}

.symptom-point-title-row small,
.symptom-method-pair dd,
.symptom-history-note {
  color: var(--symptom-muted);
}

.symptom-method-pair {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
}

.symptom-method-pair div {
  display: grid;
  gap: 4px;
}

.symptom-method-pair dt {
  color: #8a5a12;
  font-size: 12px;
  font-weight: 840;
}

.symptom-method-pair dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.symptom-point-actions {
  display: grid;
  gap: 0;
}

.symptom-point-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 176, 51, 0.38);
  border-radius: 12px;
  background: var(--symptom-accent-soft);
  color: #8a5a12;
  font-weight: 820;
}

.symptom-timer-card {
  text-align: center;
}

.symptom-timer-face {
  display: grid;
  place-items: center;
  min-height: 82px;
  border-radius: 20px;
  background: rgba(255, 176, 51, 0.12);
  color: var(--symptom-ink);
  font-size: 42px;
  line-height: 1;
  font-weight: 860;
  letter-spacing: 0;
}

.symptom-timer-actions,
.symptom-feedback-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.symptom-history-note {
  margin: -2px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 374px) {
  .symptom-part-tabs,
  .symptom-quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .symptom-bottom-action:has(.secondary-button) {
    grid-template-columns: 1fr;
  }
}

/* Night mode: keep every page readable instead of only swapping the shell. */
body.theme-dark .phone-shell {
  background:
    linear-gradient(180deg, rgba(24, 17, 13, 0.98), rgba(36, 28, 22, 0.98)),
    var(--bg);
}

body.theme-dark .statusbar,
body.theme-dark .screen,
body.theme-dark .topbar,
body.theme-dark .detail-appbar,
body.theme-dark .point-detail-fixed-head,
body.theme-dark .home-search-sticky,
body.theme-dark .meridian-sticky-head,
body.theme-dark .search-flow-header,
body.theme-dark .model-screen .topbar,
body.theme-dark .symptom-flow-screen .topbar,
body.theme-dark .symptom-detail-screen .symptom-detail-appbar {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

body.theme-dark .tabbar {
  background: rgba(36, 28, 22, 0.96);
  border-color: var(--line);
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select,
body.theme-dark .search-entry,
body.theme-dark .meridian-search {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder,
body.theme-dark .search-entry .search-entry-text,
body.theme-dark .meridian-search span:last-child,
body.theme-dark .meridian-search input::placeholder {
  color: var(--subtle);
}

body.theme-dark .search-entry .icon,
body.theme-dark .meridian-search .icon {
  color: var(--green);
}

body.theme-dark .primary-button,
body.theme-dark .home-3d-button,
body.theme-dark .point-detail-locate-button,
body.theme-dark .point-summary-3d {
  background: #b87936;
  color: #fff7ea;
}

body.theme-dark .secondary-button {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--green-dark);
}

body.theme-dark .home-portal-card,
body.theme-dark .home-portal-small,
body.theme-dark .home-portal-meridian,
body.theme-dark .home-meridian-card,
body.theme-dark .home-symptom-shortcut,
body.theme-dark .home-daily-card,
body.theme-dark .plan-card,
body.theme-dark .field-card,
body.theme-dark .settings-card,
body.theme-dark .feedback-card,
body.theme-dark .login-card,
body.theme-dark .favorites-panel,
body.theme-dark .about-card,
body.theme-dark .legal-detail,
body.theme-dark .empty-panel,
body.theme-dark .meridian-card,
body.theme-dark .search-result-card,
body.theme-dark .search-suggestion-card,
body.theme-dark .history-row,
body.theme-dark .favorite-row,
body.theme-dark .point-row,
body.theme-dark .point-detail-top-card,
body.theme-dark .detail-module,
body.theme-dark .point-detail-reading-flow,
body.theme-dark .detail-identity-block,
body.theme-dark .related-symptom-card {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

body.theme-dark .home-portal-primary {
  background:
    radial-gradient(circle at 84% 34%, rgba(215, 160, 92, 0.14), transparent 34%),
    linear-gradient(135deg, #392719 0%, #2b2119 100%);
  border-color: rgba(215, 160, 92, 0.3);
}

body.theme-dark .home-portal-model {
  background: #34231b;
  border-color: rgba(215, 160, 92, 0.18);
}

body.theme-dark .home-smart-badge,
body.theme-dark .home-round-arrow,
body.theme-dark .home-portal-icon,
body.theme-dark .home-point-mark,
body.theme-dark .line-icon,
body.theme-dark .point-section-head span,
body.theme-dark .home-symptom-icon,
body.theme-dark .home-symptom-copy i {
  background: var(--surface-green);
  color: var(--green);
}

body.theme-dark .home-3d-title,
body.theme-dark .home-3d-title strong,
body.theme-dark .home-small-copy strong,
body.theme-dark .home-section-head h2,
body.theme-dark .section-title,
body.theme-dark .search-sheet-head h2,
body.theme-dark .topbar-title h1,
body.theme-dark .detail-appbar h1,
body.theme-dark .point-section-head h2,
body.theme-dark .detail-module > h2,
body.theme-dark .detail-identity-block h2,
body.theme-dark .related-symptom-card strong,
body.theme-dark .meridian-sync-banner strong,
body.theme-dark .meridian-detail-meta strong,
body.theme-dark .meridian-detail-section h2,
body.theme-dark .menu-row strong,
body.theme-dark .settings-row span,
body.theme-dark .login-card h2,
body.theme-dark .feedback-card h2,
body.theme-dark .symptom-card-copy strong,
body.theme-dark .feature-text strong {
  color: var(--ink);
}

body.theme-dark .home-3d-subtitle,
body.theme-dark .home-small-copy span,
body.theme-dark .home-body-title,
body.theme-dark .home-symptom-copy small,
body.theme-dark .home-symptom-copy em,
body.theme-dark .home-point-title span,
body.theme-dark .home-point-main,
body.theme-dark .feature-text span,
body.theme-dark .section-note,
body.theme-dark .plan-card p,
body.theme-dark .field-card p,
body.theme-dark .about-card p,
body.theme-dark .model-info p,
body.theme-dark .legal-detail p,
body.theme-dark .login-card > p,
body.theme-dark .feedback-card p,
body.theme-dark .related-symptom-card small,
body.theme-dark .meridian-sync-banner p,
body.theme-dark .menu-row small,
body.theme-dark .settings-row small {
  color: var(--muted);
}

body.theme-dark .home-point-item + .home-point-item,
body.theme-dark .menu-row,
body.theme-dark .settings-row,
body.theme-dark .favorite-row + .favorite-row,
body.theme-dark .detail-info-row + .detail-info-row,
body.theme-dark .point-detail-reading-flow .detail-info-row + .detail-info-row {
  border-color: var(--line);
}

body.theme-dark .point-detail-screen,
body.theme-dark .meridian-detail-screen {
  background: var(--surface);
}

body.theme-dark .point-detail-crumbs,
body.theme-dark .point-detail-crumbs button,
body.theme-dark .detail-info-row strong,
body.theme-dark .point-summary-main p {
  color: var(--green);
}

body.theme-dark .point-detail-crumbs span {
  color: rgba(215, 160, 92, 0.55);
}

body.theme-dark .point-detail-thumb {
  background: var(--surface-soft);
  border-color: var(--line);
}

body.theme-dark .point-detail-brief dt,
body.theme-dark .point-detail-brief dd,
body.theme-dark .detail-info-row p,
body.theme-dark .point-field-card.is-emphasis p:not(.label),
body.theme-dark .detail-warning-row p {
  color: var(--ink);
}

body.theme-dark .point-detail-brief dd,
body.theme-dark .point-detail-gallery p,
body.theme-dark .detail-identity-block h2 small,
body.theme-dark .detail-identity-block p {
  color: var(--muted);
}

body.theme-dark .point-detail-image-card {
  background: var(--surface-soft);
  border-color: var(--line);
}

body.theme-dark .point-detail-visual,
body.theme-dark .point-detail-visual .point-location-image {
  background: #f7f0e4;
}

body.theme-dark .detail-star {
  background: rgba(247, 234, 217, 0.12);
  color: var(--green-dark);
}

body.theme-dark .detail-star.is-on {
  background: rgba(215, 160, 92, 0.18);
  color: var(--green);
}

body.theme-dark .detail-warning-row,
body.theme-dark .warning-card,
body.theme-dark .form-error {
  background: rgba(168, 93, 76, 0.16);
  border-color: rgba(239, 177, 162, 0.34);
}

body.theme-dark .detail-warning-row p,
body.theme-dark .detail-warning-row strong,
body.theme-dark .warning-card p,
body.theme-dark .warning-card .label,
body.theme-dark .form-error {
  color: var(--red);
}

body.theme-dark .meridian-group {
  background: var(--surface);
  border-color: var(--line-strong);
}

body.theme-dark .meridian-group-head {
  background:
    radial-gradient(70px 34px at 56% 98%, rgba(215, 160, 92, 0.14), transparent 62%),
    radial-gradient(90px 40px at 88% 82%, rgba(215, 160, 92, 0.1), transparent 64%),
    linear-gradient(135deg, #332416 0%, #2a2018 100%);
  border-color: var(--line);
}

body.theme-dark .meridian-head-text strong,
body.theme-dark .meridian-tabs button.is-active,
body.theme-dark .meridian-side-index button.is-active {
  color: var(--green);
}

body.theme-dark .meridian-time-text,
body.theme-dark .meridian-tabs button,
body.theme-dark .meridian-side-index button,
body.theme-dark .meridian-detail-meta span,
body.theme-dark .meridian-detail-meta p,
body.theme-dark .meridian-detail-section p {
  color: var(--muted);
}

body.theme-dark .meridian-point-chip {
  background: rgba(215, 160, 92, 0.44);
  color: var(--ink);
}

body.theme-dark .meridian-point-chip::before,
body.theme-dark .meridian-point-chip.is-match::before {
  background: var(--surface);
}

body.theme-dark .meridian-point-chip.is-match {
  background: rgba(215, 160, 92, 0.68);
  color: var(--green-dark);
}

body.theme-dark .meridian-empty-points,
body.theme-dark .meridian-side-index {
  background: rgba(45, 35, 27, 0.9);
  border-color: var(--line);
  color: var(--muted);
}

body.theme-dark .meridian-side-index button.is-active {
  background: var(--green);
  color: #1f1712;
}

body.theme-dark .meridian-media-frame {
  background: var(--surface-soft);
  border-color: var(--line);
}

body.theme-dark .symptom-flow-screen,
body.theme-dark .symptom-detail-screen {
  --symptom-bg: var(--surface);
  --symptom-surface: rgba(45, 35, 27, 0.96);
  --symptom-line: rgba(238, 219, 192, 0.2);
  --symptom-accent: #d7a05c;
  --symptom-accent-soft: rgba(215, 160, 92, 0.18);
  --symptom-ink: var(--ink);
  --symptom-muted: var(--muted);
  background: var(--surface);
  color: var(--ink);
}

body.theme-dark .symptom-flow-card,
body.theme-dark .symptom-flow-row,
body.theme-dark .symptom-point-card.symptom-point-row,
body.theme-dark .symptom-part-tabs button,
body.theme-dark .symptom-feedback-actions button {
  background: var(--symptom-surface);
  border-color: var(--symptom-line);
  color: var(--symptom-ink);
}

body.theme-dark .symptom-part-tabs button.is-active,
body.theme-dark .symptom-feedback-actions button.is-active {
  background: var(--symptom-accent);
  color: #1f1712;
}

body.theme-dark .symptom-flow-row em,
body.theme-dark .symptom-quick-facts span,
body.theme-dark .symptom-method-pair dt,
body.theme-dark .symptom-point-actions button,
body.theme-dark .symptom-timer-face {
  color: var(--green-dark);
}

body.theme-dark .symptom-point-rank span {
  color: #1f1712;
}

body.theme-dark .model-study-strip,
body.theme-dark .model-browser-panel,
body.theme-dark .model-bottom-point-strip,
body.theme-dark .model-point-sheet,
body.theme-dark .model-settings-panel {
  background: rgba(36, 28, 22, 0.94);
  border-color: var(--line);
  color: var(--ink);
}

body.theme-dark .model-stage,
body.theme-dark .model-control-panel,
body.theme-dark .model-info {
  background: var(--surface);
  color: var(--ink);
}

body.theme-dark .model-browser-head,
body.theme-dark .model-browser-head strong,
body.theme-dark .model-settings-head strong,
body.theme-dark .model-point-head h2 {
  color: var(--ink);
}

body.theme-dark .model-study-strip span,
body.theme-dark .model-tool,
body.theme-dark .model-browser-head span,
body.theme-dark .model-point-copy,
body.theme-dark .model-point-head p,
body.theme-dark .model-settings-head span {
  color: var(--muted);
}
