@font-face {
  font-family: NotoSC;
  src: local("Noto Sans CJK SC");
  font-weight: 100 900;
}
:root {
  --bg: #fafbf8;
  --ink: #24303a;
  --sub: #687581;
  --muted: #98a4ad;
  --purple: #6254e8;
  --orange: #ff945b;
  --mint: #5dcda8;
  --yellow: #ffd763;
  --blue: #72b8f2;
  --coral: #ff9ea8;
  --border: #e9eaef;
  --shadow: 0 9px 30px rgba(40, 55, 75, 0.047);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: NotoSC, "Noto Sans CJK SC", "Microsoft Yahei", sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body {
  overflow-x: hidden;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
svg {
  vertical-align: middle;
}
b,
strong {
  font-weight: 760;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #24303a;
  font-size: 19px;
  white-space: nowrap;
}
.brand small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--sub);
  font-weight: 400;
  letter-spacing: 0.3px;
}
.brand-symbol {
  height: 35px;
  width: 35px;
  border-radius: 12px;
  background: #6153e8;
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 4px;
  justify-content: center;
  align-content: center;
  transform: rotate(-7deg);
}
.brand-symbol span {
  border-radius: 100%;
  background: #fff;
}
.brand-symbol span:nth-child(2) {
  opacity: 0.75;
}
.brand-symbol span:nth-child(3) {
  opacity: 0.56;
}
.btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  padding: 0 19px;
  font-size: 14px;
  font-weight: 650;
  background: var(--purple);
  color: #fff;
  white-space: nowrap;
}
.btn.alt {
  background: white;
  color: var(--purple);
  border: 1px solid #dcd9fd;
}
.btn.ghost {
  background: #f1f0ff;
  color: var(--purple);
}
.btn.disabled {
  background: #e8e9ed;
  color: #999fa8;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 40px;
  background: #f0eeff;
  color: #6254e8;
  font-size: 12px;
  white-space: nowrap;
}
.pill.orange {
  color: #ac5b24;
  background: #fff0e6;
}
.pill.green {
  color: #208d6f;
  background: #e6f7f0;
}
.pill.gray {
  color: #75808b;
  background: #f0f2f4;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.smallnote {
  font-size: 12px;
  color: var(--sub);
}
.muted {
  color: var(--sub);
}
.purple {
  color: var(--purple);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
}
.section-heading p {
  font-size: 14px;
  color: var(--sub);
  margin-top: 6px;
}
.link {
  color: var(--purple);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 650;
}
.outline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #fff;
  color: #667685;
  border-radius: 12px;
  height: 42px;
  width: 42px;
}
.mini-dot {
  display: inline-block;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 4px;
}

.web-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 80px;
}
.web-nav-inner {
  max-width: 1240px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.web-nav nav {
  display: flex;
  gap: 27px;
  align-items: center;
  height: 100%;
  margin-left: 8px;
}
.web-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  color: #566370;
  position: relative;
  white-space: nowrap;
}
.web-nav a.active {
  color: var(--purple);
  font-weight: 800;
}
.web-nav a.active:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--purple);
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 4px;
}
.web-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.web-search {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  color: #9ba6af;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 235px;
}
.web-search span {
  margin-left: auto;
  font-size: 10px;
  background: #f5f5f7;
  padding: 4px 5px;
  border-radius: 4px;
  color: #9aa2af;
}
.wrap {
  width: 1200px;
  margin: auto;
}
.web-hero {
  display: grid;
  grid-template-columns: 454px 720px;
  gap: 24px;
  padding: 42px 0 52px;
  min-height: 630px;
  align-items: center;
}
.hero-left {
  padding-left: 4px;
}
.eyebrow {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6555d8;
  font-weight: 670;
  margin-bottom: 25px;
}
.eyebrow .line {
  width: 23px;
  height: 2px;
  background: #6f62ed;
}
.hero-left h1 {
  font-size: 47px;
  letter-spacing: -1.5px;
  line-height: 1.3;
  font-weight: 850;
}
.hero-left .lead {
  font-size: 16px;
  color: #677481;
  line-height: 1.98;
  margin: 26px 0 33px;
  max-width: 390px;
}
.hero-btns {
  display: flex;
  gap: 12px;
}
.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 35px;
}
.hero-stats strong {
  font-size: 26px;
  font-weight: 820;
}
.hero-stats small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #72808b;
}
.hero-stats .vertical {
  border-left: 1px solid #e3e6ed;
  padding-left: 32px;
}
.map-card {
  height: 570px;
  border: 1px solid #edecf4;
  border-radius: 30px;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(60, 60, 90, 0.035);
}
.map-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 49% 48%, #f9f7ff 2%, transparent 65%);
}
.map-bar {
  position: absolute;
  left: 22px;
  top: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.map-bar b {
  font-size: 13px;
}
.map-bar .tools {
  display: flex;
  gap: 8px;
}
.toolbutton {
  background: white;
  border: 1px solid #eae9f2;
  box-shadow: 0 2px 8px #2221;
  border-radius: 11px;
  height: 35px;
  padding: 0 11px;
  font-size: 12px;
  color: #697887;
}
.knowledge-svg {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 4px;
}
.feature-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  margin-top: 0;
  margin-bottom: 70px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 13px;
}
.feature em {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 21px;
  border-radius: 13px;
  background: #f0edff;
}
.feature b {
  font-size: 15px;
}
.feature small {
  display: block;
  font-size: 12px;
  color: #71808d;
  margin-top: 4px;
}
.content-section {
  margin: 0 0 68px;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.knowledge-card {
  border-radius: 21px;
  padding: 21px;
  display: flex;
  gap: 20px;
  min-height: 212px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.knowledge-art {
  width: 165px;
  flex-shrink: 0;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.knowledge-art.fourp {
  background: #fff4eb;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, 55px);
  gap: 7px;
  transform: rotate(-5deg);
}
.pgrid span {
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 26px;
  font-weight: 850;
}
.pgrid span:nth-child(1) {
  background: #ff945b;
}
.pgrid span:nth-child(2) {
  background: #72b8f2;
}
.pgrid span:nth-child(3) {
  background: #5dcda8;
}
.pgrid span:nth-child(4) {
  background: #ff9ea8;
}
.knowledge-art.pyramid {
  background: linear-gradient(160deg, #edf2ff, #f1fcff);
}
.pyramid-shape {
  width: 110px;
  height: 125px;
  background: linear-gradient(transparent, transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.pyramid-shape div {
  height: 29px;
  background: #72a6e7;
  border-radius: 6px 6px 4px 4px;
}
.pyramid-shape div:nth-child(1) {
  width: 36px;
}
.pyramid-shape div:nth-child(2) {
  width: 75px;
}
.pyramid-shape div:nth-child(3) {
  width: 110px;
}
.kcopy {
  min-width: 0;
  flex: 1;
}
.kcopy h3 {
  font-size: 21px;
  margin: 13px 0 7px;
}
.kcopy p {
  font-size: 13px;
  line-height: 1.75;
  color: #6c7884;
}
.kcopy .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12px;
  color: #818d97;
}
.disabled-link {
  color: #aeb5bc;
}
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.domain-card {
  min-height: 126px;
  padding: 21px 22px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.domain-symbol {
  height: 48px;
  width: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.domain-card h3 {
  font-size: 16px;
  margin: 3px 0 12px;
}
.domain-card p {
  font-size: 12px;
  color: #8a95a0;
}
.domain-card .arrow {
  margin-left: auto;
  padding-top: 7px;
  color: #b3bac3;
}
.split {
  display: grid;
  grid-template-columns: 1.26fr 1fr;
  gap: 22px;
}
.social-card {
  padding: 28px;
}
.discussion-item {
  display: flex;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  gap: 15px;
}
.discussion-item:last-child {
  border: 0;
}
.discussion-item .bubble {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff1e9;
  color: #ee905b;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.discussion-item h4 {
  font-size: 15px;
  margin-bottom: 7px;
}
.discussion-item p {
  font-size: 12px;
  color: #7b8993;
}
.membership {
  padding: 29px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8f7ff;
  position: relative;
  overflow: hidden;
}
.membership:after {
  content: "✦";
  position: absolute;
  right: -8px;
  top: 1px;
  color: #e2ddff;
  font-size: 145px;
  z-index: 0;
}
.membership > * {
  z-index: 1;
}
.membership h3 {
  font-size: 24px;
  margin: 14px 0 10px;
}
.membership p {
  font-size: 13px;
  line-height: 1.8;
  color: #667481;
}
.price {
  font-size: 36px;
  color: #f27647;
  font-weight: 830;
  margin: 20px 0 10px;
}
.price small {
  font-size: 16px;
}
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.article {
  padding: 23px;
  min-height: 162px;
}
.article .tiny-icon {
  width: 40px;
  height: 40px;
  background: #f0eeff;
  color: #6559dc;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
}
.article h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.article p {
  font-size: 12px;
  line-height: 1.65;
  color: #7a8792;
}
.footer {
  margin-top: 80px;
  border-top: 1px solid #ebeef2;
  background: #fff;
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8a949d;
}
.footer strong {
  color: #37404a;
  font-size: 17px;
  margin-right: 16px;
}

/* Runtime owners: shared primitives and responsive overrides. Reference palette retained. */
:root {
  --danger: #b0343e;
  --scroll-thumb: #c7c3db;
  --scroll-track: #f3f2f7;
  --scroll-hover: #9189b4;
  --scroll-active: #6254e8;
  --radius-control: 12px;
  --radius-panel: 20px;
}
html {
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
* {
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
::-webkit-scrollbar-thumb:active {
  background: var(--scroll-active);
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--purple);
}
button:hover,
.btn:hover {
  filter: brightness(0.95);
}
button:active,
.btn:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}
.btn {
  min-height: 44px;
  height: auto;
  padding: 11px 18px;
}
.web-nav-inner {
  padding: 0 28px;
  max-width: 1340px;
}
.web-search {
  min-width: 185px;
}
.wrap {
  width: min(1200px, calc(100% - 56px));
}
.web-hero {
  grid-template-columns: 0.85fr 1.2fr;
  gap: 32px;
  min-height: 660px;
}
.hero-left h1 {
  font-size: 52px;
  line-height: 1.25;
}
.map-card {
  height: 570px;
}
.map-large {
  height: 650px;
  margin-bottom: 30px;
}
.map-bar {
  gap: 8px;
}
.map-bar > div {
  display: flex;
  gap: 5px;
}
.map-bar button {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
}
.map-caption {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--sub);
}
.map-caption a {
  color: var(--purple);
}
.knowledge-svg {
  margin: 0;
  touch-action: pan-y;
}
.knowledge-svg a:hover circle {
  stroke: var(--ink);
  stroke-width: 2;
}
.card-art {
  width: 150px;
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 18%, white);
  overflow: hidden;
}
.card-art span {
  color: var(--accent);
  font-size: 64px;
}
.card-art img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top;
}
.knowledge-card {
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.knowledge-card:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 20px #6254e80d;
}
.knowledge-grid {
  margin-top: 22px;
}
.knowledge-grid > .empty {
  grid-column: 1/-1;
}
.knowledge-card h3 {
  line-height: 1.4;
}
.domain-grid {
  margin: 24px 0 55px;
}
.domain-card:hover {
  border-color: var(--purple);
}
.article-grid {
  margin: 24px 0;
}
.article h3 {
  margin-top: 15px;
}
.article small {
  color: var(--sub);
  display: block;
  margin-top: 20px;
}
.footer p {
  margin-top: 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 45px 0 32px;
}
.page-heading h1 {
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -1px;
}
.page-heading p {
  margin-top: 13px;
  color: var(--sub);
  line-height: 1.8;
}
.page-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.empty {
  padding: 45px 24px;
  min-height: 200px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 18px;
  line-height: 1.8;
  width: 100%;
}
.empty h3 {
  font-size: 18px;
}
.empty p {
  color: var(--sub);
  font-size: 14px;
  margin-top: 8px;
}
.empty-symbol {
  font-size: 38px;
  color: var(--purple);
  display: block;
}
.notice {
  background: #f4f2ff;
  border: 1px solid #e3dffc;
  padding: 16px;
  border-radius: 12px;
  color: #554b83;
  font-size: 14px;
  line-height: 1.8;
  margin: 20px 0;
}
.social-card .lead {
  font-size: 16px;
  color: var(--sub);
  line-height: 2;
  margin: 20px 0;
}
.social-card h2 {
  font-size: 25px;
}
.membership {
  gap: 15px;
}
.membership ul {
  line-height: 2.5;
  padding-left: 20px;
}
.membership-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 25px;
}
.membership h2 {
  margin-top: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0;
  font-size: 14px;
}
.field > span {
  font-weight: 650;
}
.field input,
.field textarea,
.field select,
input[type="search"],
.search-form > input,
.search-form > select {
  background: white;
  border: 1px solid #dcdfe7;
  border-radius: 12px;
  min-height: 46px;
  padding: 11px 14px;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
}
.field textarea {
  min-height: 110px;
  line-height: 1.8;
  resize: none;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
form[data-form] {
  max-width: 900px;
}
form[data-form="login"],
form[data-form="feedback"] {
  max-width: 580px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  margin: 0 auto 60px;
}
.form-error {
  color: var(--danger);
  font-size: 14px;
  line-height: 1.7;
  margin: 15px 0;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.form-section {
  padding: 25px;
  margin-bottom: 24px;
}
.form-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.editor-guide {
  height: max-content;
  position: sticky;
  top: 100px;
  line-height: 2.2;
}
.editor-guide h3 {
  margin-top: 20px;
}
.editor-guide p {
  color: var(--sub);
  font-size: 13px;
  margin: 18px 0;
}
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  bottom: 20px;
  box-shadow: var(--shadow);
}
.save-bar span {
  font-size: 12px;
  color: var(--sub);
}
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
}
.search-form > input {
  flex: 1;
  min-width: 100px;
}
.search-form > select {
  max-width: 220px;
}
.search-form .field {
  margin: 0;
  flex: 1;
}
.search-form .field > span {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}
.result-count {
  color: var(--sub);
  font-size: 13px;
  margin: 20px 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  font-size: 13px;
  color: var(--sub);
}
.pill.active,
.pill.selected {
  background: var(--purple);
  color: white;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 30px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--sub);
  padding-top: 30px;
}
.breadcrumb a:hover {
  color: var(--purple);
}
.definition {
  padding: 25px;
  margin-bottom: 30px;
}
.definition p {
  font-size: 19px;
  line-height: 1.9;
  margin-top: 15px;
}
.knowledge-detail {
  max-width: 1000px;
  margin: auto;
}
.reader {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
  overflow: hidden;
  margin: 30px 0 50px;
}
.reader-toolbar,
.reader-controls {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.reader-track {
  background: #f2f1f6;
  padding: 24px;
  min-height: 420px;
}
.reader-slide {
  margin: 0;
  text-align: center;
}
.reader-slide img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  min-height: 160px;
}
.reader-slide figcaption {
  color: var(--sub);
  font-size: 12px;
  padding-top: 12px;
}
.reader-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}
.reader-dots .selected {
  background: var(--purple);
  color: white;
}
.continuous .reader-slide {
  margin-bottom: 20px;
}
.paywall {
  text-align: center;
  padding: 30px;
  background: #f8f7ff;
}
.paywall p {
  margin: 14px 0;
  color: var(--sub);
}
.reading-body {
  max-width: 760px;
  margin: 40px auto;
  line-height: 2;
  font-size: 17px;
}
.reading-body h2 {
  margin: 25px 0;
}
.preline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.article-body {
  max-width: 800px;
  margin: auto;
}
.article-body .page-heading h1 {
  font-size: 40px;
}
.discussion {
  margin-bottom: 60px;
}
.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
}
.comment p {
  margin-top: 8px;
}
details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  line-height: 1.8;
  min-height: 44px;
}
details p {
  color: var(--sub);
  line-height: 1.9;
  margin-top: 12px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #24303a;
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  max-width: min(90vw, 720px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.admin-sidebar {
  width: 225px;
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--border);
  padding: 26px 18px;
  overflow: auto;
  z-index: 20;
}
.admin-sidebar .brand {
  font-size: 17px;
  margin-bottom: 30px;
}
.sidebar-label {
  color: var(--sub);
  font-size: 11px;
  padding: 12px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-sidebar nav a {
  padding: 11px 12px;
  min-height: 44px;
  border-radius: 11px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-sidebar nav a:hover {
  background: #f8f7ff;
}
.admin-sidebar nav .active {
  background: #f0edff;
  color: var(--purple);
  font-weight: 700;
}
.admin-sidebar nav small {
  font-size: 10px;
  color: #8c849f;
}
.return-site {
  display: block;
  margin-top: 25px;
  font-size: 12px;
  color: var(--purple);
  padding: 12px;
}
.admin-top {
  margin-left: 225px;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
  font-size: 13px;
}
.admin-main {
  margin-left: 225px;
  padding: 0 32px 60px;
  max-width: 1650px;
}
.admin-main .page-heading h1 {
  font-size: 30px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 30px;
}
.stat {
  padding: 25px;
}
.stat p {
  color: var(--sub);
  font-size: 13px;
}
.stat strong {
  font-size: 38px;
  display: block;
  margin-top: 15px;
}
.workflow {
  display: flex;
  gap: 18px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.workflow a {
  padding: 18px;
  background: #f8f7ff;
  border-radius: 14px;
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.workflow span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  display: grid;
  place-items: center;
}
.table-scroll {
  width: 100%;
  overflow: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  min-height: 300px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  padding: 17px 20px;
  background: #f6f6fa;
  white-space: nowrap;
  font-weight: 600;
  color: var(--sub);
}
td {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  line-height: 1.7;
  max-width: 400px;
  overflow-wrap: anywhere;
}
.table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 180px;
}
.table-actions button {
  font-size: 12px;
  padding: 8px 12px;
}
.table-scroll .empty {
  border: 0;
}
.upload-zone {
  padding: 32px 20px;
  border: 2px dashed #cfc9f6;
  border-radius: 15px;
  background: #f9f8ff;
  display: block;
  text-align: center;
  margin: 25px 0;
  color: var(--purple);
  cursor: pointer;
}
.upload-zone input {
  display: block;
  margin: 15px auto 0;
  max-width: 100%;
}
.upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.upload-slot {
  padding: 15px;
}
.upload-slot b {
  font-size: 13px;
}
.upload-slot img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  margin: 15px 0;
}
.slot-placeholder {
  height: 240px;
  display: grid;
  place-items: center;
  color: var(--sub);
  background: #f6f6fa;
  margin: 15px 0;
  border-radius: 10px;
}
.file-label {
  font-size: 12px;
  display: block;
  color: var(--purple);
  line-height: 2;
}
.file-label input {
  display: block;
  width: 100%;
  font-size: 11px;
}
.preview-frame {
  background: white;
  border: 1px solid var(--border);
  padding: 30px;
  margin: 30px auto;
  transition: max-width 0.2s;
  width: 100%;
  overflow-wrap: anywhere;
}
.preview-frame h1 {
  font-size: 28px;
  margin: 20px 0;
}
.preview-frame p {
  line-height: 1.9;
}
.preview-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.preview-images img {
  width: 100%;
  height: auto;
}
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.compact {
  padding: 22px;
  margin: 10px 0;
}
.compact h3 {
  font-size: 16px;
  margin: 12px 0;
}
.compact p {
  font-size: 12px;
  color: var(--sub);
}
.account-link {
  padding: 25px;
  min-height: 90px;
}
.mobile-nav,
.mobile-domains {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1200px) {
  .web-nav nav {
    gap: 18px;
  }
  .web-search {
    display: none;
  }
  .web-hero {
    gap: 20px;
  }
  .hero-left h1 {
    font-size: 44px;
  }
  .map-card {
    height: 520px;
  }
  .hero-stats {
    gap: 20px;
  }
  .hero-stats .vertical {
    padding-left: 20px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-guide {
    position: static;
  }
  .upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 850px) {
  .web-nav nav {
    display: none;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .web-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 35px 0;
    gap: 24px;
  }
  .hero-left h1 {
    font-size: 42px;
  }
  .hero-left h1 br:last-of-type {
    display: none;
  }
  .hero-left .lead {
    margin: 18px 0;
    line-height: 1.8;
  }
  .hero-stats {
    margin-top: 28px;
  }
  .web-hero > .map-card {
    height: 480px;
  }
  .domain-grid {
    grid-template-columns: 1fr 1fr;
  }
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
  .split,
  .membership-layout {
    grid-template-columns: 1fr;
  }
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-strip {
    padding: 18px;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 40px;
  }
  .feature {
    width: 43%;
  }
  .feature small {
    font-size: 11px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 0;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .admin-sidebar {
    width: 180px;
    padding: 20px 10px;
  }
  .admin-sidebar .brand {
    font-size: 14px;
    gap: 8px;
  }
  .admin-main {
    margin-left: 180px;
    padding: 0 18px 40px;
  }
  .admin-top {
    margin-left: 180px;
    padding: 12px 18px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-main .split {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .search-form {
    flex-wrap: wrap;
  }
  .search-form > select {
    max-width: 100%;
  }
  .design-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 550px) {
  body {
    padding-bottom: 68px;
  }
  .web-nav {
    height: 66px;
  }
  .web-nav-inner {
    padding: 0 18px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-symbol {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }
  .web-actions .btn {
    font-size: 11px;
    min-height: 38px;
    padding: 8px 12px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .web-hero > .map-card {
    display: none;
  }
  .mobile-domains {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
  }
  .mobile-domains .domain-card {
    padding: 13px 10px;
    gap: 8px;
    min-height: 95px;
  }
  .mobile-domains .domain-symbol {
    width: 29px;
    height: 29px;
    border-radius: 10px;
    font-size: 15px;
  }
  .mobile-domains h3 {
    font-size: 12px;
    margin: 4px 0 9px;
  }
  .mobile-domains p {
    font-size: 10px;
  }
  .mobile-domains .arrow {
    display: none;
  }
  .hero-left h1 {
    font-size: 38px;
  }
  .hero-left .eyebrow {
    margin-bottom: 17px;
    font-size: 12px;
  }
  .hero-stats strong {
    font-size: 22px;
  }
  .hero-stats small {
    font-size: 10px;
  }
  .feature {
    gap: 8px;
  }
  .feature b {
    font-size: 12px;
  }
  .feature em {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .feature-strip {
    gap: 14px;
    padding: 14px;
  }
  .content-section {
    margin-bottom: 38px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 15px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .section-heading .link {
    font-size: 11px;
    white-space: nowrap;
  }
  .knowledge-card {
    padding: 14px;
    gap: 14px;
    min-height: 180px;
  }
  .card-art {
    width: 100px;
    min-height: 160px;
  }
  .card-art img {
    height: 160px;
  }
  .kcopy h3 {
    font-size: 18px;
  }
  .kcopy p {
    font-size: 12px;
  }
  .kcopy .bottom {
    font-size: 10px;
    gap: 8px;
  }
  .domain-grid {
    gap: 10px;
    margin-bottom: 32px;
  }
  .domain-card {
    padding: 15px 12px;
    gap: 10px;
    min-height: 110px;
  }
  .domain-symbol {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .domain-card h3 {
    font-size: 12px;
  }
  .domain-card p {
    font-size: 10px;
  }
  .domain-card .arrow {
    display: none;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 64px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fffffff5;
    border-top: 1px solid var(--border);
    z-index: 30;
  }
  .mobile-nav a {
    padding: 14px 10px;
    font-size: 12px;
    min-height: 44px;
  }
  .mobile-nav .active {
    color: var(--purple);
    font-weight: 750;
  }
  .footer {
    margin-top: 35px;
    padding: 24px 0;
  }
  .footer-inner {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
    font-size: 11px;
  }
  .reader-track {
    padding: 12px;
    min-height: 320px;
  }
  .reader-toolbar {
    padding: 14px;
    font-size: 12px;
  }
  .reader-toolbar button {
    font-size: 10px;
    padding: 7px;
    min-height: 34px;
  }
  .reader-controls {
    padding: 14px;
    font-size: 13px;
  }
  .reader-controls button {
    font-size: 12px;
    padding: 9px;
  }
  .reader-dots button {
    padding: 6px;
    min-height: 36px;
    font-size: 11px;
  }
  .reader-slide img {
    width: 100%;
    max-height: none;
  }
  .definition {
    padding: 20px;
  }
  .definition p {
    font-size: 16px;
  }
  .reading-body {
    font-size: 16px;
  }
  .page-heading h1,
  .article-body .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .map-large {
    height: 390px;
  }
  .map-large .map-bar {
    left: 12px;
    right: 12px;
    top: 12px;
    font-size: 10px;
  }
  .map-large .map-bar b {
    font-size: 10px;
  }
  .map-caption {
    font-size: 9px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }
  .social-card {
    padding: 20px;
  }
  .social-card h2 {
    font-size: 21px;
  }
  .social-card .lead {
    font-size: 14px;
  }
  .membership {
    padding: 23px;
  }
  .toast {
    bottom: 85px;
    font-size: 13px;
  }
  .search-form {
    padding: 12px;
  }
  .search-form > input {
    flex-basis: 65%;
  }
  .search-form > select {
    width: 100%;
    flex: 1;
    font-size: 12px;
  }
  .search-form .btn {
    font-size: 12px;
  }
  .admin-sidebar {
    position: static;
    width: 100%;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .admin-sidebar .brand {
    margin: 0 0 15px;
    font-size: 17px;
  }
  .admin-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 5px;
  }
  .admin-sidebar nav a {
    white-space: nowrap;
    min-height: 40px;
    font-size: 12px;
  }
  .admin-sidebar nav small,
  .sidebar-label,
  .return-site {
    display: none;
  }
  .admin-top,
  .admin-main {
    margin-left: 0;
  }
  .admin-top {
    font-size: 11px;
  }
  .admin-main {
    padding: 0 16px 35px;
  }
  .admin-main .page-heading h1 {
    font-size: 25px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 30px;
  }
  .form-section {
    padding: 18px;
  }
  .upload-grid {
    gap: 10px;
  }
  .upload-slot {
    padding: 10px;
  }
  .upload-slot img,
  .slot-placeholder {
    height: 180px;
  }
  .upload-slot b {
    font-size: 11px;
  }
  .save-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
  }
  .save-bar .btn {
    font-size: 12px;
  }
  .preview-frame {
    padding: 18px;
  }
  .preview-images {
    grid-template-columns: 1fr;
  }
  .design-grid {
    grid-template-columns: 1fr;
  }
  .editor-guide {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .btn,
  .card,
  .field input,
  .field textarea,
  .field select {
    border: 1px solid CanvasText;
  }
}
@media (max-width: 1200px) {
  .web-nav .web-search {
    display: none;
  }
}
@media (max-width: 550px) {
  .web-hero {
    padding: 22px 0;
    gap: 14px;
  }
  .hero-left h1 {
    font-size: 33px;
  }
  .hero-left .lead {
    font-size: 13px;
    line-height: 1.65;
    margin: 13px 0 18px;
  }
  .hero-left .eyebrow {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .hero-stats {
    margin-top: 20px;
  }
  .hero-stats strong {
    font-size: 20px;
  }
  .hero-btns .btn {
    font-size: 12px;
    padding: 10px 12px;
  }
  .mobile-domains {
    gap: 8px;
  }
  .mobile-domains .domain-card {
    min-height: 78px;
    padding: 11px 9px;
  }
  .mobile-domains h3 {
    font-size: 11px;
    margin: 1px 0 6px;
  }
  .mobile-domains .domain-symbol {
    width: 25px;
    height: 25px;
  }
  .mobile-domains p {
    font-size: 9px;
  }
  .web-actions {
    margin-left: auto;
  }
}
@media (max-width: 550px) {
  #network-graph:not(.mobile-expanded) {
    display: none;
  }
}
dialog {
  max-width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 30px;
  box-shadow: 0 20px 80px #24303a33;
  color: var(--ink);
}
dialog::backdrop {
  background: #24303a77;
}
dialog h2 {
  font-size: 23px;
}
dialog p {
  line-height: 1.9;
  color: var(--sub);
  margin: 20px 0;
}
dialog .actions {
  justify-content: flex-end;
}
/* Extended operations reuse the canonical form/table/action tokens. */
.platform-form .field {
  margin: 16px 0;
}
.table-scroll .platform-form {
  padding: 14px;
  min-width: 210px;
  margin: 0;
}
.table-scroll .platform-form .field {
  margin: 8px 0;
}
.node-order {
  width: 75px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  min-height: 44px;
}
.network-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  margin: 15px 0 35px;
}
.network-sidebar {
  height: max-content;
  position: sticky;
  top: 20px;
  padding: 20px;
}
.network-sidebar .muted {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 15px;
}
.network-sidebar .field {
  font-size: 13px;
}
.domain-controls {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.domain-control {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: white;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  min-height: 55px;
  color: var(--ink);
}
.domain-control small {
  color: var(--sub);
  font-size: 11px;
}
.domain-control:hover {
  background: #f8f7ff;
}
.graph-toolbar {
  margin-bottom: 14px;
}
.graph-toolbar .btn {
  font-size: 12px;
}
.network-canvas {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background: #fff;
}
.network-canvas:fullscreen {
  background: #fafbf8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.network-canvas:fullscreen svg {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.network-canvas svg {
  width: 100%;
  min-height: 500px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.network-canvas svg:active {
  cursor: grabbing;
}
.network-canvas svg a {
  cursor: pointer;
}
.network-canvas svg a:hover circle {
  stroke: var(--ink);
  stroke-width: 3px;
}
#graph-summary {
  position: absolute;
  bottom: 14px;
  left: 20px;
  right: 20px;
  font-size: 12px;
  color: var(--sub);
  background: #fffffff0;
  padding: 6px;
  border-radius: 6px;
  pointer-events: none;
}
#graph-preview p {
  line-height: 1.8;
  color: var(--sub);
  margin: 14px 0;
}
#graph-preview h2 {
  font-size: 22px;
}
#web-login-status {
  line-height: 1.8;
  color: var(--sub);
  margin: 20px 0;
}
.table-scroll details {
  min-width: 220px;
}
.platform-form .field input[type="checkbox"] {
  min-height: 20px;
}
@media (max-width: 900px) {
  .network-workspace {
    grid-template-columns: 1fr;
  }
  .network-sidebar {
    position: static;
  }
  .domain-controls {
    grid-template-columns: repeat(3, 1fr);
  }
  .network-sidebar .field {
    margin: 10px 0;
  }
  .network-canvas {
    min-height: 380px;
  }
  .network-canvas svg {
    min-height: 380px;
  }
}
@media (max-width: 550px) {
  .network-workspace {
    gap: 15px;
  }
  .network-sidebar {
    padding: 15px;
  }
  .domain-controls {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .domain-control {
    font-size: 12px;
    padding: 10px;
    min-height: 66px;
  }
  .network-canvas {
    min-height: 310px;
  }
  .network-canvas svg {
    min-height: 310px;
  }
  .graph-toolbar {
    gap: 6px;
  }
  .graph-toolbar .btn {
    font-size: 10px;
    padding: 8px 9px;
    min-height: 38px;
  }
  .platform-form {
    padding: 18px;
  }
  .search-form label {
    font-size: 11px;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .search-form label input {
    min-height: 40px;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
  }
}
.formatted-text p,
.reading-body p {
  margin: 14px 0;
}
.formatted-text h2,
.reading-body h2 {
  margin: 28px 0 15px;
}
.formatted-text h3,
.reading-body h3 {
  margin: 22px 0 12px;
}
.formatted-text blockquote,
.reading-body blockquote {
  border-left: 3px solid var(--purple);
  background: #f7f6ff;
  padding: 14px 20px;
  margin: 20px 0;
}
.formatted-text ul {
  padding-left: 24px;
  margin: 14px 0;
}
