:root {
  color-scheme: light;
  --paper: #f6f7f0;
  --backdrop: #e6ece2;
  --white: #ffffff;
  --ink: #18271e;
  --muted: #5c6d60;
  --muted-strong: #5b6b5e;
  --green: #1f5938;
  --dark: #154028;
  --mist: #e8efe1;
  --track: #eaeede;
  --line: #e2e8db;
  --card-line: #e0e7d8;
  --rail: 430px;
  --dock: 68px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 8px rgba(24, 39, 30, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--backdrop);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(31, 89, 56, 0.12); }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; }
::selection { background: #c5dec2; color: var(--dark); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { scroll-margin-top: 64px; overflow-wrap: anywhere; }
h3, .qa-q, .news-feature h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
p { line-height: 1.6; overflow-wrap: anywhere; }

.skip {
  position: fixed; left: 12px; top: 8px; z-index: 50;
  background: var(--white); padding: 10px 14px; border-radius: 8px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* Mobile App Shell */
.shell {
  position: relative;
  max-width: var(--rail);
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--paper);
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(var(--dock) + 112px + env(safe-area-inset-bottom));
}

@media (min-width: 480px) {
  .shell {
    box-shadow: 0 10px 32px rgba(20, 45, 30, 0.06);
  }
}

.screen {
  --screen-gutter: 16px;
  padding: 0 var(--screen-gutter) 16px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}

.arrow {
  width: 16px;
  height: 16px;
  color: #7c8c80;
  flex: none;
}

/* Sticky Top App Bar */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  height: 54px;
  margin-inline: -16px;
  padding-inline: 12px;
  background: rgba(246, 247, 240, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-bar h1 {
  grid-column: 2;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-bar-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}
.app-bar-btn:hover { background: var(--mist); }
.app-bar-btn.back .icon { transform: rotate(180deg); width: 20px; height: 20px; }
.app-bar-text-btn {
  width: auto;
  padding: 0 8px;
  font-size: 12px;
}

/* Home Header & Hero */
.home-hero {
  position: relative;
  margin-inline: calc(-1 * var(--screen-gutter));
  overflow: hidden;
  aspect-ratio: 2 / 1;
  min-height: 150px;
  background: #20382b;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.home-hero-slide[hidden] { display: none; }

.home-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 32, 22, 0.55);
  color: var(--white);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.home-hero:hover .hero-toggle,
.home-hero:focus-within .hero-toggle,
.home-hero:active .hero-toggle,
.hero-toggle[aria-pressed="true"] {
  opacity: 1;
  pointer-events: auto;
}
.hero-toggle:hover { background: rgba(16, 32, 22, 0.72); }
.hero-toggle .icon { width: 16px; height: 16px; }

.home-weather {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.home-weather-heading,
.home-weather-reading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-weather-heading {
  justify-content: space-between;
  flex-wrap: wrap;
}

.home-weather-heading h2 { font-size: 15px; }
.home-weather-heading span,
.home-weather-forecast span,
.home-weather-source { font-size: 11px; color: var(--muted); }

.home-weather-reading { margin-top: 6px; }
.home-weather-reading .icon {
  flex: none;
  width: 33px;
  height: 33px;
  color: var(--green);
}

.home-weather-forecast {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
  font-size: 13px;
}

.home-weather-forecast strong { font-size: 16px; }
.home-weather-source {
  display: block;
  margin-top: 2px;
  text-align: right;
  text-decoration: underline;
}

/* Home Action Row: 4 buttons directly on page below carousel, no bottom border */
.action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 2px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 0.14s ease, opacity 0.14s ease;
}
.action-tile:hover {
  transform: translateY(-1px);
}
.action-tile:active {
  transform: scale(0.96);
}

.action-tile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--white);
  color: var(--green);
  box-shadow: 0 3px 8px rgba(24, 39, 30, 0.06);
}
.action-tile-icon .icon { width: 22px; height: 22px; }

.action-tile-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}

/* Notice Pill */
.notice-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--mist);
  border: 0;
  color: var(--ink);
  font-size: 13px;
}
.notice-pill:hover { background: #dde8d4; }
.notice-pill .icon { flex: none; width: 17px; height: 17px; color: var(--green); }
.notice-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
}
.notice-text {
  display: block;
  width: max-content;
  min-width: 100%;
  color: var(--muted);
  white-space: nowrap;
  animation: notice-scroll 68s linear -17s infinite;
}

@keyframes notice-scroll {
  0% { transform: translateX(100cqw); }
  25%, 32% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Section Heading with Green Bar */
.section-block {
  margin-top: 18px;
}

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

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 750;
  color: var(--ink);
}

.section-head h2::before {
  content: "";
  width: 3.5px;
  height: 15px;
  border-radius: 3px;
  background: var(--green);
}

.section-badge {
  font-size: 11.5px;
  color: var(--muted);
}

/* Segmented Pill Tabs */
.seg-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--track);
}

.seg-tabs a {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5d50;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg-tabs a[aria-current] {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(31, 89, 56, 0.22);
}

.seg-tabs a:not([aria-current]):hover {
  color: var(--dark);
}

/* Full-width Primary CTA Banner (Ask page) */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(31, 89, 56, 0.18);
}
.cta-banner:hover { background: var(--dark); }
.cta-banner-left { display: flex; align-items: center; gap: 10px; }
.cta-banner .arrow { color: var(--white); }

/* App Cards & Lists */
.card-list {
  display: grid;
  gap: 10px;
}

.news-feature {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--dark);
}

.news-feature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 14px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(11, 27, 17, 0.85));
}

.news-feature h2 { font-size: 17px; line-height: 1.4; }

.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 0;
  transition: transform 0.12s ease, background 0.15s ease;
}
.app-card:active { transform: scale(0.988); }
.app-card:hover { background: #fbfdf8; }

.app-card-thumb {
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 9px;
  flex: none;
  background: var(--mist);
}

.app-card-thumb--square {
  width: 84px;
  height: 84px;
}

.app-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--green);
  flex: none;
}
.app-card-icon .icon { width: 22px; height: 22px; }

.app-card-body {
  flex: 1;
  min-width: 0;
}

.app-card-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.app-card-desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-strong);
}
.app-card-meta .icon { width: 13px; height: 13px; }

.home-feed-row {
  display: flex;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.home-feed-row .app-card-body {
  display: flex;
  flex-direction: column;
}
.home-feed-thumb {
  width: min(34%, 120px);
  aspect-ratio: 3 / 2;
  flex: none;
  align-self: flex-start;
  object-fit: cover;
}
.home-feed-thumb--icon {
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--green);
}
.home-feed-thumb--icon .icon { width: 26px; height: 26px; }
.home-feed-meta {
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
  justify-content: space-between;
}
.home-feed-meta > :last-child { text-align: right; }

.home-service-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
}
.home-service-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.home-service-card h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 750;
}
.home-service-card h2::before {
  content: "";
  width: 3.5px;
  height: 15px;
  border-radius: 3px;
  background: var(--green);
}
.home-service-card header a {
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}
.home-service-list { display: grid; }
.home-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}
.home-service-link:first-child { border-top: 0; }
.home-service-link .arrow { width: 14px; height: 14px; }

.home-silk-album {
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.home-silk-album header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.home-silk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.album-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
}
.album-toggle:hover { background: var(--mist); }
.album-toggle .icon { width: 14px; height: 14px; }

.home-silk-album h2 {
  color: #783f32;
  font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.home-silk-album header a {
  flex: none;
  padding-block: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.home-silk-photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 30%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 5px;
}

.home-silk-photos::-webkit-scrollbar { display: none; }

.home-silk-photos > a { min-width: 0; scroll-snap-align: start; }
.home-silk-photos > a:focus-visible { outline-offset: -2px; }

.home-silk-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--mist);
}

.home-silk-photos h3 { margin-top: 7px; font-size: 13px; line-height: 1.35; }

/* Configurable home modules */
.home-module { padding-top: 6px; }
.home-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 8px;
}
.home-module-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
}
.home-module-head a {
  flex: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}
.home-module .home-service-list { display: grid; }
.home-module .home-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}
.home-module .home-service-link:first-child { border-top: 0; }
.home-expert-grid { display: grid; gap: 10px; }
.home-expert-grid .expert-card { width: 100%; }

/* Product Specs inside Silk Card */
.spec-list {
  display: grid;
  gap: 3px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
.detail-specs,
.detail-meta { margin-top: 10px; }

.empty-state {
  padding: 24px 0;
  text-align: center;
}

/* Q&A Card Badges */
.qa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 0;
}

.qa-rows {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.qa-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.qa-badge {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  flex: none;
  margin-top: 1px;
}
.qa-badge--q { background: var(--green); color: var(--white); }
.qa-badge--a { background: var(--mist); color: var(--green); }

.qa-q { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.qa-a { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Service Filter Row & Phone Circle */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.filter-select {
  flex: 1;
  min-height: 38px;
  padding: 6px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
}

.phone-circle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  color: var(--green);
  background: var(--mist);
  flex: none;
}
.phone-circle .icon { width: 17px; height: 17px; }

/* Featured News Top Card */

/* Detail Page */
.detail-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 0;
}

.detail-image {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
}

.detail-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.detail-card h2 {
  font-size: 19px;
  line-height: 1.4;
  margin-top: 8px;
}

.detail-body {
  margin-top: 12px;
  font-size: 14.5px;
  color: #2b3c31;
  line-height: 1.72;
}

.detail-actions {
  margin-top: 16px;
}

/* Form */
.form-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 0;
}

.form-card h2 { font-size: 17px; }
.quiet { color: var(--muted); font-size: 13px; }
.form { display: grid; gap: 13px; margin-top: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
.form select, .form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  caret-color: var(--green);
}
.form textarea { resize: vertical; min-height: 120px; }

#ask-form { margin-top: 0; }

#ask-attachments {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13px;
}

.question-attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.question-attachments:empty,
#ask-attachment-status:empty { display: none; }

.question-attachments li { display: grid; gap: 5px; min-width: 0; font-size: 12px; }
.question-attachments img,
.question-attachments video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper);
}
.question-attachments span { overflow-wrap: anywhere; }
.question-attachments button { justify-self: start; }

.primary-button {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.primary-button:hover { background: var(--dark); }

.status:not(:empty) {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--mist);
  color: var(--dark);
  font-size: 13px;
}

.footnote {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Mobile App Bottom Dock (All Screens) */
.dock {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  margin-inline: auto;
  max-width: var(--rail);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  min-height: var(--dock);
  padding: 4px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  border-top: 0;
  box-shadow: 0 -2px 12px rgba(24, 39, 30, 0.04);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

.dock a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  min-height: 50px;
  padding: 3px 0;
  color: #5b6b5e;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 10px;
}

.dock a .icon { width: 21px; height: 21px; }

.dock a:hover { color: var(--dark); }
.dock a[aria-current] {
  color: var(--green);
  font-weight: 750;
}

.dock a.home {
  position: relative;
  gap: 2px;
}

.home-circle {
  position: relative;
  display: block;
  overflow: hidden;
  width: 50px;
  height: 50px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  border: 1px solid var(--line);
  box-shadow: 0 3px 10px rgba(31, 89, 56, 0.13);
}

.dock a.home:hover .home-circle,
.dock a.home[aria-current] .home-circle {
  border-color: var(--green);
}

.home-circle img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

/* Search Sheet */
.search-sheet[hidden] { display: none; }
.search-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: center;
  align-items: start;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 32, 24, 0.42);
  backdrop-filter: blur(3px);
}

.search-panel {
  position: relative;
  width: min(100%, var(--rail));
  max-height: 82dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 12px 32px rgba(18, 32, 24, 0.18);
  padding: calc(12px + env(safe-area-inset-top)) 16px 16px;
  overflow: hidden;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd6c6;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
}
.search-bar input::placeholder,
.expert-filters input::placeholder { color: var(--muted); }

.search-cancel {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
  padding: 6px 4px;
}

.search-results {
  margin-top: 12px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

@media (max-width: 350px) {
  .screen { --screen-gutter: 12px; }
  .seg-tabs a { font-size: 12px; padding-inline: 4px; }
}

/* Floating Dr. Silkworm Mascot FAB */
.mascot-layer {
  position: fixed;
  bottom: calc(var(--dock) + 16px + env(safe-area-inset-bottom));
  inset-inline: 0;
  margin-inline: auto;
  max-width: var(--rail);
  pointer-events: none;
  z-index: 25;
  display: flex;
  justify-content: flex-end;
  padding-right: 14px;
  transform-origin: 100% 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mascot-layer.is-compact {
  transform: scale(0.9);
  opacity: 0.55;
}
.mascot-layer.is-compact .mascot-arc-label { opacity: 0; }
.mascot-layer[hidden] { display: none; }

.mascot-fab {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: mascot-float 3.2s ease-in-out infinite;
  transition: transform 0.15s ease;
}
.mascot-fab:active { transform: scale(0.94); }

.mascot-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: transparent;
  border: 0;
}
.mascot-avatar img {
  width: 72px;
  height: 72px;
  display: block;
}

.mascot-arc-label {
  width: 108px;
  height: 34px;
  margin-top: -13px;
  transform: translateY(-5px);
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(24, 58, 38, 0.16));
  transition: opacity 0.15s ease;
}

.mascot-arc-text {
  font-family: "HanziPen SC", "Wawati SC", "Kaiti SC", "STKaiti", "KaiTi", cursive, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  fill: #164629;
  stroke: none;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-fab { animation: none; }
  .notice-text {
    animation: none;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* AI Dr. Silkworm Page */
.shell.no-mascot {
  padding-bottom: calc(var(--dock) + 26px + env(safe-area-inset-bottom));
}
.shell.is-ai {
  padding-bottom: calc(var(--dock) + 92px + env(safe-area-inset-bottom));
}

.app-bar--minimal {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: 46px;
}

.ai-welcome {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 2px 8px 10px;
}

.ai-welcome-avatar {
  width: 96px;
  height: 96px;
  display: block;
  transition: transform 0.25s ease;
}

.ai-welcome-avatar.is-listening {
  transform: scale(1.06);
}

.ai-welcome-copy h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.ai-welcome-copy p {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.ai-chip {
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.ai-chip:hover {
  background: var(--mist);
}

.ai-messages {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ai-msg {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.ai-msg--user {
  justify-content: flex-end;
}

.ai-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 0;
  flex: none;
}

.ai-bubble {
  max-width: 84%;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.ai-msg--user .ai-bubble {
  background: var(--green);
  color: var(--white);
  border-bottom-right-radius: 4px;
  white-space: pre-wrap;
}

.ai-msg--bot .ai-bubble {
  background: var(--white);
  border: 0;
  border-top-left-radius: 4px;
}

.ai-bubble p + p {
  margin-top: 7px;
}

.ai-sources {
  margin-top: 10px;
  padding-top: 9px;
  display: grid;
  gap: 6px;
}

.ai-sources-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.ai-source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--paper);
  border: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
}
.ai-source-link:hover {
  background: var(--mist);
}

.ai-composer {
  position: fixed;
  bottom: calc(var(--dock) + 14px + env(safe-area-inset-bottom));
  inset-inline: 0;
  margin-inline: auto;
  max-width: var(--rail);
  padding: 10px 12px 6px;
  background: linear-gradient(180deg, rgba(246, 247, 240, 0) 0%, rgba(246, 247, 240, 0.94) 36%);
  pointer-events: none;
  z-index: 24;
}

.ai-composer-box {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 7px 7px 7px 12px;
  border-radius: 24px;
  background: var(--white);
  border: 0;
  box-shadow: 0 4px 16px rgba(24, 39, 30, 0.07);
}

.ai-composer-box:focus-within {
  box-shadow: 0 4px 18px rgba(31, 89, 56, 0.12);
}

.ai-composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  max-height: 104px;
  padding: 7px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
}
.ai-composer textarea::placeholder {
  color: var(--muted);
}

.ai-composer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.ai-voice-btn,
.ai-send-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  flex: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.ai-voice-btn {
  background: #f0f4ea;
  color: var(--green);
}
.ai-voice-btn:hover {
  background: var(--mist);
}
.ai-voice-btn.is-recording {
  background: #d9483b;
  color: var(--white);
  animation: voice-pulse 1.2s ease-in-out infinite;
}

.ai-send-btn {
  background: #c8d6c2;
  color: var(--white);
}
.ai-send-btn.is-ready {
  background: var(--green);
}
.ai-send-btn.is-ready:hover {
  background: var(--dark);
}
.ai-send-btn:active,
.ai-voice-btn:active {
  transform: scale(0.92);
}

.ai-voice-hint {
  position: fixed;
  bottom: calc(var(--dock) + 84px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 31;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(24, 39, 30, 0.9);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  max-width: calc(var(--rail) - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.ai-voice-hint[hidden] { display: none; }

.form-label-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.voice-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--mist);
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}
.voice-inline-btn .icon { width: 14px; height: 14px; }
.voice-inline-btn.is-recording {
  background: #d9483b;
  border-color: #d9483b;
  color: var(--white);
  animation: voice-pulse 1.2s ease-in-out infinite;
}

@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 72, 59, 0.42); }
  50% { box-shadow: 0 0 0 7px rgba(217, 72, 59, 0); }
}

.expert-directory {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.expert-directory h2 { font-size: 18px; }
.expert-directory .quiet:empty { display: none; }

.expert-filters,
.expert-location {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expert-filters input {
  flex: 1 1 145px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.expert-location button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  cursor: pointer;
}

.expert-location .icon { width: 16px; height: 16px; }
[data-expert-list] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.expert-card {
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

.expert-card,
.expert-card:hover { background: transparent; }

.expert-portrait {
  display: block;
  width: min(84px, 100%);
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--mist) url("assets/expert-portraits.webp") no-repeat;
  background-size: 400% 200%;
}

.expert-card .app-card-body { width: 100%; }
.expert-card .app-card-meta { justify-content: center; }

.detail-card > .expert-portrait { margin-bottom: 12px; }

.silk-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}

.silk-product {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.silk-product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--mist);
}

.silk-product-copy { padding: 10px 12px 12px; }
.silk-product h3 { font-size: 14px; }
.silk-product p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.qa-thumb { width: 52px; height: 52px; flex: none; object-fit: cover; }

.home-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-account-bar { min-height: 42px; }
.home-account-bar h1 { font-size: 16px; }
.expert-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-block: 6px 12px;
}

.expert-nav a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 5px 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--green);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 700;
  text-align: center;
}

.expert-nav a:hover { background: var(--mist); }
.expert-nav a[aria-current="page"] {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.account-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.account-panel { display: grid; gap: 12px; margin-top: 12px; }
.account-panel .form { margin-top: 0; }
.account-panel .filter-select { min-height: 40px; }

.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mist);
}
.account-profile h2 { font-size: 18px; }
.account-links { display: grid; gap: 8px; }
.account-status {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--mist);
  font-size: 13px;
}
.account-status.status-pending { background: #fdf3dd; color: #7a5413; }
.account-status.status-needs_changes { background: #fdf0e1; color: #8a4a12; }
.account-status.status-approved { background: #e3efdd; color: var(--green); }
.account-status.status-rejected { background: #fbeaea; color: #7f2a2a; }
.status-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.avatar-field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.avatar-field legend { font-size: 13px; font-weight: 650; padding: 0; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.avatar-choice { position: relative; display: block; cursor: pointer; }
.avatar-choice input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-choice img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--mist);
}
.avatar-choice input:checked + img { border-color: var(--green); box-shadow: 0 0 0 2px #dbe8d2; }
.field-hint { color: var(--muted); font-size: 11.5px; }
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { flex: 1; padding-right: 54px; }
.password-toggle {
  position: absolute;
  right: 6px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  padding: 6px;
}
.form-status { min-height: 1.2em; }
.form-status.is-error { color: #9b2f2f; }
.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}
.checkbox-row input { width: auto; margin-top: 3px; }
