:root {
  --bg: #f6f5f1;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #24302f;
  --muted: #6d7774;
  --line: #e4e1d8;
  --sage: #587b6b;
  --sage-dark: #345f51;
  --teal: #2f6f76;
  --apricot: #e8a86f;
  --blue: #6f8fc3;
  --rose: #c96f64;
  --amber: #b7813d;
  --shadow: 0 18px 40px rgba(48, 58, 54, 0.08);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.64), rgba(246, 245, 241, 0.2)),
    var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(10px);
}

.brand {
  position: absolute;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--sage-dark);
  color: #fff;
  font-weight: 700;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand span,
.meta,
.small,
.subtle {
  color: var(--muted);
}

.brand span {
  margin-top: 3px;
  font-size: 12px;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  width: auto;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

a.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: #efede5;
  color: var(--ink);
  outline: 0;
}

.nav-item.active {
  background: #dfe8e1;
  color: var(--sage-dark);
  font-weight: 700;
}

.main-shell {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 34px 0;
}


.eyebrow {
  margin: 0 0 7px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.field {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
}

.field:focus-visible {
  border-color: var(--sage);
  outline: 3px solid rgba(88, 123, 107, 0.18);
}

.main-content {
  padding: 26px 34px 42px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.two {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

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

.grid.experts {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.expert-layout .grid.experts {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.card,
.panel,
.note-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card {
  padding: 16px;
}

.panel {
  padding: 18px;
}

.metric {
  display: grid;
  gap: 8px;
  min-height: 128px;
}

.metric strong {
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.metric .trend {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf1ed;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
}

.slogan-panel {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid #d9e3dc;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(88, 123, 107, 0.1), rgba(232, 168, 111, 0.14)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.slogan-panel h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.35;
  white-space: nowrap;
}

.slogan-panel p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  margin-top: 18px;
}

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

.section-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.chip.green {
  border-color: #cbdcd2;
  background: #eaf1ed;
  color: var(--sage-dark);
}

.chip.orange {
  border-color: #efd8be;
  background: #fff4e6;
  color: #7b5127;
}

.chip.blue {
  border-color: #d2dced;
  background: #eef3fb;
  color: #3d5d89;
}

.chip.red {
  border-color: #efd2cd;
  background: #fff0ed;
  color: #8f4139;
}

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

.list-item {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.list-item.interactive {
  border-color: transparent;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.list-item.interactive:hover,
.list-item.interactive.active {
  border-color: #bdd0c5;
  background: #f8fbf8;
}

.list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-title strong {
  font-size: 15px;
  line-height: 1.45;
}

.meta {
  font-size: 12px;
}

.copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9df;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
}

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

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.segmented button,
.text-button,
.primary-button,
.ghost-button {
  min-height: 34px;
  border-radius: var(--radius);
}

.segmented button {
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: #dfe8e1;
  color: var(--sage-dark);
  font-weight: 700;
}

.primary-button,
.ghost-button,
.text-button,
.danger-button {
  padding: 0 12px;
  border: 1px solid var(--line);
}

.primary-button {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: #fff;
}

.ghost-button {
  background: #fff;
  color: var(--ink);
}

.text-button {
  border-color: transparent;
  background: transparent;
  color: var(--sage-dark);
  font-weight: 700;
}

.danger-button {
  min-height: 34px;
  border-color: #efd2cd;
  border-radius: var(--radius);
  background: #fff0ed;
  color: #8f4139;
}

.detail-stack {
  display: grid;
  gap: 14px;
}

.detail-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-block p:last-child {
  margin-bottom: 0;
}

.fragment-list-panel {
  padding: 14px;
}

.category-cluster-section {
  margin-bottom: 16px;
}

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

.category-cluster-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
}

.category-cluster-card:hover,
.category-cluster-card:focus-visible {
  border-color: #bdd0c5;
  background: #f8fbf8;
  outline: 0;
}

.category-cluster-card.active {
  border-color: #94bea5;
  background: #f2f8f4;
  box-shadow: 0 0 0 2px rgba(88, 123, 107, 0.14);
}

.category-cluster-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.category-cluster-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.category-cluster-label {
  margin-bottom: 4px;
  font-size: 11px;
}

.category-cluster-core {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fragment-body {
  margin-top: 0;
}

.fragment-card {
  gap: 10px;
}

.fragment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: #d8ccc7;
  background: #fff7f5;
  color: #8f4139;
  outline: 0;
}

.icon-button-danger {
  border-color: #efd2cd;
  background: #fff9f7;
  color: #a04b40;
}

.fragment-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 8px;
}

.fragment-detail-head h2 {
  flex: 1 1 220px;
  margin-bottom: 0;
}

.fragment-detail-tags {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.fragment-detail-meta {
  margin: 0 0 16px;
}

.perspective-layout {
  align-items: start;
}

.perspective-list-panel {
  padding: 14px;
}

.perspective-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.perspective-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.perspective-filter-chip:hover,
.perspective-filter-chip:focus-visible {
  border-color: #bdd0c5;
  color: var(--ink);
  outline: 0;
}

.perspective-filter-chip.active {
  border-color: #94bea5;
  background: #eaf1ed;
  color: var(--sage-dark);
  font-weight: 700;
}

.perspective-filter-count {
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(52, 95, 81, 0.1);
  color: var(--sage-dark);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.perspective-list {
  gap: 10px;
}

.perspective-card {
  gap: 8px;
  text-align: left;
}

.perspective-card-title {
  font-size: 15px;
  line-height: 1.45;
}

.perspective-support-meta {
  margin-top: 2px;
}

.support-groups {
  display: grid;
  gap: 14px;
}

.support-group-label {
  margin-bottom: 8px;
}

.support-link-list {
  display: grid;
  gap: 8px;
}

.support-link-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  text-align: left;
  cursor: pointer;
}

.support-link-item:hover,
.support-link-item:focus-visible {
  border-color: #bdd0c5;
  background: #f8fbf8;
  outline: 0;
}

.support-link-item strong {
  font-size: 14px;
  line-height: 1.45;
}

.support-link-item .copy {
  margin: 0;
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(36, 48, 47, 0.42);
}

.modal-panel {
  width: min(560px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.modal-body {
  display: grid;
  gap: 12px;
}

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

.dialog-line {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.dialog-line strong {
  color: var(--sage-dark);
  font-size: 13px;
}

.dialog-line p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.key-info-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.quote {
  padding: 14px;
  border-left: 4px solid var(--apricot);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff7ec;
  color: #5a4632;
  line-height: 1.7;
}

.heatmap {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px;
}

.heatmap th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.heatmap td {
  min-width: 58px;
  height: 42px;
  border-radius: var(--radius);
  background: #eef2ed;
  color: var(--sage-dark);
  font-size: 13px;
  text-align: center;
}

.heatmap .level-1 {
  background: #edf3ef;
}

.heatmap .level-2 {
  background: #dceadf;
}

.heatmap .level-3 {
  background: #c0d9c8;
}

.heatmap .level-4 {
  background: #94bea5;
  color: #fff;
}

.expert-grid-list {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.expert-list-card {
  display: grid;
  gap: 10px;
  min-height: 280px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.expert-list-card:hover,
.expert-list-card:focus-visible {
  border-color: #afc8ba;
  background: #f9fbf7;
  outline: 0;
}

.expert-list-portrait {
  width: 100%;
  height: 168px;
}

.expert-list-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-list-card h3 {
  margin: 0;
  font-size: 17px;
}

.expert-detail-page {
  display: grid;
  gap: 18px;
}

.expert-back-button {
  width: fit-content;
}

.expert-detail-head {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.expert-detail-portrait {
  width: 112px;
  height: 140px;
}

.expert-detail-body {
  display: grid;
  gap: 20px;
}

.expert-section {
  display: grid;
  gap: 12px;
}

.expert-section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--sage-dark);
}

.expert-subtitle {
  margin: 14px 0 8px;
  font-size: 15px;
}

.expert-note {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: #f7f5ef;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.info-table th,
.info-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.info-table th[scope="row"],
.info-table thead th {
  width: 28%;
  background: #f2f0e9;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.expert-split {
  align-items: stretch;
}

.portrait {
  width: 86px;
  height: 108px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e2d7;
}

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

.expert-card h3 {
  margin-bottom: 4px;
  white-space: nowrap;
}

.expert-card .identity {
  min-height: 39px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.expert-card .goal {
  margin: 10px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.expert-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
}

.profile-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-head .portrait {
  width: 112px;
  height: 140px;
}

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

.goal-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.goal-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sage-dark);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.compare-table th,
.compare-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: #f2f0e9;
  color: var(--muted);
  font-size: 12px;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.note-preview {
  overflow: hidden;
  background: #fff;
}

.note-cover {
  min-height: 180px;
  display: grid;
  align-content: end;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(47, 111, 118, 0.16), rgba(232, 168, 111, 0.18)),
    #f2efe7;
}

.note-cover strong {
  max-width: 360px;
  font-size: 24px;
  line-height: 1.25;
}

.note-body {
  padding: 16px;
}

.note-body p {
  color: var(--muted);
  line-height: 1.8;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.empty-note {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed #cfcac0;
  border-radius: var(--radius);
  color: var(--muted);
  background: #fffaf2;
  text-align: center;
}

.login-page {
  min-height: 100vh;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 20px;
}

.login-card {
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.login-brand strong {
  display: block;
  font-size: 18px;
}

.login-tagline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.login-eyebrow {
  margin-bottom: 6px;
}

.login-title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
}

.login-lead {
  margin: 0 0 22px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form .field-label {
  margin-top: 4px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 4px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.login-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--sage-dark);
}

.login-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
}

.login-hint {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
}

.login-footer {
  margin-top: 20px;
  text-align: center;
}

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

.xhs-content-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f8fbf9 0%, #fff 55%, #faf7f2 100%);
}

.xhs-content-toolbar-lead {
  margin: 0;
  flex: 1 1 220px;
  align-self: center;
  color: var(--muted);
  font-size: 14px;
}

.positioning-entry {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid rgba(47, 111, 118, 0.18);
  border-radius: calc(var(--radius-lg) - 2px);
  background: #fff;
  box-shadow: 0 8px 20px rgba(47, 111, 118, 0.08);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.positioning-entry:hover,
.positioning-entry:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(47, 111, 118, 0.32);
  box-shadow: 0 12px 24px rgba(47, 111, 118, 0.12);
  outline: 0;
}

.positioning-entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(47, 111, 118, 0.1);
  color: var(--sage-dark);
  font-size: 18px;
  line-height: 1;
}

.positioning-entry-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.positioning-entry-copy strong {
  font-size: 15px;
  color: var(--sage-dark);
}

.positioning-entry-meta {
  font-size: 12px;
  color: var(--muted);
}

.positioning-entry-arrow {
  margin-left: auto;
  color: var(--sage-dark);
  font-size: 16px;
  line-height: 1;
}

.positioning-page {
  background: var(--bg);
}

.positioning-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.positioning-header {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.positioning-back {
  justify-self: start;
}

.positioning-header-main h1 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.markdown-body {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  line-height: 1.75;
  color: var(--ink);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 8px 0 0;
  line-height: 1.35;
}

.markdown-body h1 {
  font-size: 24px;
}

.markdown-body h2 {
  font-size: 20px;
}

.markdown-body h3 {
  font-size: 17px;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  margin: 0;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.25rem;
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

.md-table-wrap {
  overflow-x: auto;
}

.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.md-table th,
.md-table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.md-table th {
  background: #f5f8f6;
}

.positioning-error {
  color: #b42318;
}

.xhs-note-empty {
  grid-column: 1 / -1;
}

.xhs-note-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.xhs-note-card-main {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.xhs-note-card-main:hover,
.xhs-note-card-main:focus-visible {
  background: #f8fbf8;
  outline: 0;
}

.xhs-note-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 10px 10px;
}

.xhs-note-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xhs-note-detail-page {
  display: grid;
  gap: 14px;
}

.xhs-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.xhs-image-card {
  margin: 0;
  display: grid;
  gap: 6px;
}

.xhs-image-preview {
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
}

.xhs-image-card figcaption {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.review-panel {
  border-color: #d9e3dc;
  background: #f8fbf8;
}

.review-feedback-block {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #efd2cd;
  border-radius: var(--radius);
  background: #fff7f5;
}

.reject-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.textarea-field {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

@media (max-width: 1180px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 16px;
  }

  .brand {
    position: static;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .grid.cards,
  .grid.experts,
  .category-cluster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.two,
  .expert-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-header {
    position: static;
    padding: 16px;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .topbar {
    display: grid;
    padding: 18px 18px 0;
  }

  .main-content {
    padding: 18px;
  }

  .grid.cards,
  .grid.three,
  .grid.experts,
  .goal-grid,
  .category-cluster-grid {
    grid-template-columns: 1fr;
  }

  .slogan-panel {
    padding: 18px;
  }

  .slogan-panel h2 {
    font-size: 16px;
  }

  .expert-grid-list,
  .xhs-note-grid {
    grid-template-columns: 1fr;
  }

  .expert-list-portrait {
    height: 140px;
  }

  .profile-head,
  .expert-detail-head {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .portrait,
  .expert-detail-portrait {
    width: 78px;
    height: 98px;
  }
}
