:root {
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #27252a;
  background: #f5f5f7;
  font-size: 14px;
  --brand: #88002e;
  --muted: #747078;
  --line: #e9e6e9;
  --soft: #f6f5f7;
  --nav: #fff;
  --green: #297653;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c87391;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 30px 18px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px 34px;
}
.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-name {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
  color: #32222b;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  margin: 3px 0;
  border-radius: 8px;
  text-align: left;
  color: #625b65;
}
.nav-item.active {
  background: #88002e;
  color: white;
  font-weight: 600;
}
.nav-item.active .muted {
  color: #f3d5e0;
}
.nav-item.active .product-dot {
  background: #fff;
}
.nav-item.active .count {
  color: var(--brand);
}
.nav-item:hover:not(.active) {
  background: #f6f0f3;
}
.nav-item .count {
  margin-left: auto;
  font-size: 11px;
  border-radius: 5px;
  padding: 2px 6px;
  background: #f3e1e8;
}
.nav-label {
  font-size: 11px;
  color: #777079;
  padding: 29px 14px 8px;
}
.product-dot {
  width: 7px;
  height: 7px;
  background: #a54467;
  border-radius: 50%;
  margin: 0 6px;
}
.product-dot.admin {
  background: #95809b;
}
.product-dot.h5 {
  background: #63867d;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.workspace-label {
  padding: 15px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 8px 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2e6eb;
  color: #88002e;
  font-size: 11px;
}
.main-shell {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 38px;
  gap: 22px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 20;
}
.breadcrumb {
  color: #78727b;
  font-size: 12px;
  white-space: nowrap;
}
.breadcrumb strong {
  color: #443b45;
  font-weight: 500;
}
.top-search {
  margin-left: auto;
  width: 330px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #faf9fb;
  border-radius: 8px;
  padding: 9px 12px;
  gap: 9px;
  color: #8b818b;
}
.top-search input {
  width: 100%;
  outline: none;
  border: 0;
  background: none;
  color: #302830;
  font-size: 12px;
  min-width: 0;
}
.key {
  white-space: nowrap;
  border: 1px solid #e6dfe4;
  border-radius: 4px;
  background: white;
  font-size: 10px;
  padding: 2px 5px;
  color: #837884;
}
.icon-btn {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: white;
}
.icon-btn:hover {
  background: var(--soft);
}
.notification-dot {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  border: 1px solid white;
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1480px;
  padding: 38px 40px 60px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
}
.page-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
}
.btn {
  border: 1px solid #e3dbe0;
  border-radius: 7px;
  background: white;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.btn:hover {
  background: var(--soft);
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.btn.selected {
  background: #f8ecf1;
  color: var(--brand);
  border-color: #e5b9ca;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.workspace-hero {
  background: var(--brand);
  border-radius: 20px;
  padding: 30px 32px 24px;
  color: #fff;
}
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.hero-top h1 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
}
.hero-top p {
  color: #efcdd9;
  margin-top: 10px;
  line-height: 1.7;
  font-size: 13px;
}
.hero-top .btn {
  background: transparent;
  border-color: #b34d70;
  color: #fff;
}
.hero-top .btn:hover {
  background: #9b1945;
}
.search-hero {
  border: 1px solid white;
  border-radius: 10px;
  padding: 8px 9px 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  margin-bottom: 14px;
}
.search-hero > svg {
  width: 21px;
  height: 21px;
  color: #977483;
}
.search-hero input {
  border: 0;
  outline: none;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #302830;
  background: transparent;
}
.search-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 7px;
  font-size: 13px;
}
.search-submit:hover {
  background: #690024;
}
.search-submit svg {
  width: 16px;
  height: 16px;
}
.search-hero:focus-within {
  outline: 3px solid #d88ba5;
  outline-offset: 3px;
}
.workspace-hero .quick-links {
  margin: 0;
  color: #efcdd9;
  gap: 10px;
}
.workspace-hero .quick-links button {
  background: #9e2b52;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
}
.workspace-hero .quick-links button:hover {
  background: #b34d70;
}
.page-surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}
.quick-links {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #867b85;
  margin-bottom: 33px;
  flex-wrap: wrap;
}
.quick-links button {
  font-size: 11px;
  border-radius: 5px;
  background: #f6f5f7;
  padding: 5px 9px;
  color: #70616c;
}
.overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  margin: 10px 0 28px;
  overflow: hidden;
}
.overview-item {
  padding: 24px 22px;
  display: flex;
  gap: 15px;
  align-items: center;
  border-right: 1px solid var(--line);
  text-align: left;
}
.overview-item:last-child {
  border: 0;
}
.overview-item:hover {
  background: #fcf8fa;
}
.overview-icon {
  color: #a34265;
  background: #f8edf1;
  border-radius: 9px;
  padding: 10px;
  display: flex;
}
.overview-item strong {
  font-size: 27px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.overview-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 24px;
}
.feed-panel,
.rr-panel,
.recent {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.feed-panel {
  align-self: start;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 12px;
}
.section-head a,
.text-btn {
  color: var(--brand);
  font-size: 12px;
}
.segment {
  display: flex;
  gap: 2px;
  background: #f5f2f5;
  padding: 3px;
  border-radius: 7px;
  flex-shrink: 0;
}
.segment button {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 5px;
  color: #746b75;
}
.segment button.active {
  color: #49333f;
  background: white;
  box-shadow: 0 1px 3px #43213012;
}
.event-list {
  border-top: 1px solid var(--line);
}
.event {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.event-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #f8edf1;
  border-radius: 8px;
  color: #a34265;
}
.event-symbol.local {
  color: #9c7736;
  background: #fbf5e9;
}
.event-symbol svg {
  width: 15px;
  height: 15px;
}
.event-title {
  font-weight: 550;
  line-height: 1.7;
  text-align: left;
  padding: 0;
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.event-title:hover {
  color: var(--brand);
}
.event-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: #7b737d;
  font-size: 11px;
  margin-top: 9px;
}
.event-docs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.pill {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  color: #70616c;
  background: #f5f2f5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pill.blue {
  color: #88002e;
  background: #f8ecf1;
}
.pill.green {
  color: #377556;
  background: #eef7f0;
}
.pill.amber {
  color: #997b36;
  background: #fcf6e9;
}
.rr-list {
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.rr-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: block;
  text-align: left;
  width: 100%;
}
.rr-row:last-child {
  border-bottom: 0;
}
.rr-row:hover {
  background: #fcf8fa;
}
.rr-title {
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0;
  color: #453940;
}
.row-top {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
}
.rr-id {
  font-size: 10px;
  color: #857581;
  letter-spacing: 0.1px;
}
.recent {
  margin-top: 30px;
}
.recent-row {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: left;
}
.recent-row svg {
  color: #a28c99;
}
.recent-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 10px;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 21px;
  flex-wrap: wrap;
}
.filters select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 8px 26px 8px 11px;
  font-size: 12px;
  color: #705c69;
}
.filters .muted {
  margin-left: auto;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
  overflow: auto;
}
.tab {
  padding: 13px 2px;
  color: #86727e;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab.active {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.result {
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  display: flex;
  gap: 16px;
}
.doc-icon {
  background: #f8edf1;
  border-radius: 9px;
  padding: 12px;
  height: 44px;
  color: #a34265;
}
.result-body {
  flex: 1;
  min-width: 0;
}
.result-title {
  padding: 0;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  color: #382b34;
}
.result-title:hover {
  color: var(--brand);
}
.result-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  margin: 10px 0;
}
.snippet {
  font-size: 12px;
  color: #746b75;
  line-height: 1.9;
  max-width: 850px;
  overflow-wrap: anywhere;
}
.result .star-btn {
  align-self: flex-start;
}
.star-btn {
  display: flex;
  color: #9d8492;
  padding: 5px;
}
.star-btn.on {
  color: var(--brand);
}
.star-btn.on svg {
  fill: #f8edf1;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  background: #faf9fb;
  border: 1px dashed #e5dce2;
  border-radius: 10px;
  color: #8a7a84;
  font-size: 13px;
  line-height: 1.9;
}
.empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: #b5a0ac;
}
.empty strong {
  display: block;
  color: #69535f;
  font-weight: 500;
}
.empty .btn {
  margin-top: 14px;
}
.sync-state {
  font-size: 10px;
  line-height: 1.8;
  color: #8e7d87;
  padding: 14px 12px;
  overflow-wrap: anywhere;
}
.sync-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #62a18b;
  display: inline-block;
  margin-right: 5px;
}
.error-banner {
  padding: 12px 16px;
  background: #fff6e8;
  color: #94682a;
  font-size: 12px;
  border: 1px solid #f3dfbc;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.doc-heading {
  margin-bottom: 20px;
}
.doc-heading h1 {
  font-size: 27px;
  margin-top: 13px;
}
.doc-heading .meta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}
.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 34px;
}
.markdown {
  min-width: 0;
  max-width: 900px;
  font-size: 15px;
  line-height: 1.85;
  color: #433740;
  overflow-wrap: anywhere;
}
.markdown h1 {
  font-size: 25px;
  margin: 0 0 25px;
}
.markdown h2 {
  font-size: 21px;
  margin: 36px 0 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.markdown h3 {
  font-size: 17px;
  margin: 28px 0 12px;
}
.markdown h4 {
  font-size: 15px;
  margin: 24px 0 10px;
}
.markdown p {
  margin: 12px 0;
}
.markdown ul,
.markdown ol {
  padding-left: 23px;
}
.markdown li {
  margin: 5px 0;
}
.markdown code {
  background: #f4f0f3;
  color: #735564;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 12px;
}
.markdown pre {
  background: #f6f5f7;
  padding: 16px;
  border-radius: 8px;
  overflow: auto;
}
.markdown pre code {
  padding: 0;
}
.markdown blockquote {
  margin: 18px 0;
  border-left: 3px solid #d6a0b4;
  padding: 4px 18px;
  background: #fcf7f9;
  color: #806572;
  font-size: 13px;
}
.table-scroll {
  overflow: auto;
  margin: 20px 0;
}
.markdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.7;
}
.markdown th,
.markdown td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  min-width: 100px;
  vertical-align: top;
}
.markdown th {
  background: #f6f5f7;
  color: #6e5361;
  text-align: left;
}
.markdown img {
  max-width: 100%;
}
.markdown [id] {
  scroll-margin-top: 100px;
}
.markdown mark,
mark {
  background: #fff0b3;
  color: #654e11;
  border-radius: 2px;
  padding: 1px 2px;
}
.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100vh - 130px);
  overflow: auto;
  font-size: 11px;
  border-left: 1px solid var(--line);
  padding-left: 17px;
}
.toc h3 {
  font-size: 12px;
  margin-bottom: 13px;
  color: #75616b;
}
.toc a {
  display: block;
  color: #81717a;
  line-height: 1.7;
  padding: 5px 0;
}
.toc a:hover {
  color: var(--brand);
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.history-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.history-date {
  width: 100px;
  flex-shrink: 0;
  color: #86717c;
  font-size: 11px;
  line-height: 1.8;
}
.history-copy {
  flex: 1;
  min-width: 0;
}
.history-copy strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}
.history-copy p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.diff-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.diff-toolbar select {
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.diff-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.diff-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.diff-column h3 {
  padding: 12px 16px;
  background: #f8f5f7;
  font-size: 12px;
}
.diff-line {
  font-size: 12px;
  line-height: 1.8;
  padding: 6px 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #fff;
}
.diff-line.removed {
  background: #fff1f1;
  color: #a34d57;
}
.diff-line.added {
  background: #eff9f2;
  color: #3b7550;
}
.raw-diff {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f5f7;
  padding: 20px;
  font-size: 12px;
  line-height: 1.8;
  max-height: 650px;
  overflow: auto;
  margin-top: 20px;
}
.graph-stage {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: radial-gradient(#e9e1e6 1px, transparent 1px);
  background-size: 18px 18px;
  overflow: auto;
  position: relative;
  margin: 16px 0 24px;
}
.graph-stage svg {
  width: 100%;
  min-width: 620px;
  height: auto;
  stroke-width: 1;
  display: block;
}
.graph-stage .graph-edge {
  stroke: #cfb6c1;
  stroke-width: 1.4;
}
.graph-stage text {
  stroke: none;
  font-family: inherit;
}
.graph-stage .node-box {
  fill: white;
  stroke: #e1cbd5;
  stroke-width: 1.3;
}
.graph-stage .root-box {
  fill: #f8eaf0;
  stroke: #d49cb0;
}
.graph-stage .node {
  cursor: pointer;
}
.graph-stage .node:hover .node-box {
  stroke: var(--brand);
  stroke-width: 2;
}
.graph-stage .node-title {
  fill: #533342;
  font-size: 12px;
}
.graph-stage .node-id {
  fill: #947b86;
  font-size: 8px;
}
.graph-stage .edge-label {
  fill: #947b86;
  font-size: 9px;
}
.relation-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  flex-wrap: wrap;
}
.relation-row button {
  text-align: left;
  color: var(--brand);
  max-width: 38%;
  overflow-wrap: anywhere;
}
.relation-row .muted {
  font-size: 10px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.product-card h2 {
  margin: 15px 0 8px;
}
.product-card p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.product-card .row-top {
  align-items: flex-start;
}
.load-more {
  display: block;
  margin: 24px auto;
}
.boot {
  padding: 80px;
  color: var(--muted);
  text-align: center;
}
.back-button {
  font-size: 12px;
  color: #8a727f;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0;
}
.back-button svg {
  width: 15px;
}
.notice {
  font-size: 12px;
  color: #806b77;
  line-height: 1.9;
  margin: 14px 0;
}
.date-group {
  font-size: 12px;
  font-weight: 500;
  color: #806b77;
  background: #fcf7f9;
  padding: 10px 14px;
  margin-top: 22px;
  border-radius: 6px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #432130;
  color: white;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  max-width: 90vw;
}
#toast.visible {
  opacity: 1;
}
.unread {
  width: 6px;
  height: 6px;
  background: var(--brand);
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}
.graph-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.status-text {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-note {
  color: #8b7a84;
  font-size: 10px;
  line-height: 1.9;
  margin-top: 24px;
}
.mobile-shade {
  display: none;
}
.loading {
  padding: 50px;
  text-align: center;
  color: #8a7782;
  font-size: 13px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 46px;
  }
  .home-grid {
    gap: 42px;
  }
  .event {
    padding: 24px 0;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .sidebar {
    width: 218px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
  }
  .overview-item {
    padding: 15px 12px;
    gap: 9px;
  }
  .overview-icon {
    padding: 7px;
  }
  .document-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .recent {
    margin-top: 0;
  }
  .top-search {
    width: 270px;
  }
  .breadcrumb {
    display: none;
  }
  .page-actions .muted {
    display: none;
  }
  .overview-icon {
    display: none;
  }
}
@media (max-width: 650px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 240px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-shade.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #38212d40;
    z-index: 25;
  }
  .mobile-menu {
    display: flex;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
    gap: 10px;
  }
  .top-search {
    width: auto;
    flex: 1;
    margin: 0;
    min-width: 0;
  }
  .top-search .key {
    display: none;
  }
  .content {
    padding: 20px 14px;
  }
  .page-heading {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-actions {
    flex-direction: column;
    align-items: flex-end;
  }
  .workspace-hero {
    padding: 24px 20px 20px;
    border-radius: 14px;
  }
  .hero-top {
    gap: 12px;
    margin-bottom: 22px;
  }
  .hero-top h1 {
    font-size: 25px;
  }
  .hero-top .btn {
    padding: 8px;
    font-size: 11px;
  }
  .hero-top .btn svg {
    display: none;
  }
  .search-hero {
    padding: 6px 6px 6px 12px;
    gap: 8px;
  }
  .search-submit {
    padding: 11px 13px;
  }
  .search-submit svg {
    display: none;
  }
  .feed-panel,
  .rr-panel,
  .recent {
    padding: 18px;
    border-radius: 12px;
  }
  .page-surface {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .page-surface .page-heading {
    flex-wrap: wrap;
  }
  .page-surface .page-heading > div:first-child {
    min-width: 0;
  }
  .page-surface h1 {
    overflow-wrap: anywhere;
  }
  .search-hero input {
    font-size: 13px;
  }
  .search-hero .key {
    display: none;
  }
  .overview {
    grid-template-columns: 1fr 1fr;
  }
  .overview-item {
    border-bottom: 1px solid var(--line);
    padding: 13px 17px;
  }
  .overview-item:nth-child(2) {
    border-right: 0;
  }
  .overview-item:nth-child(3) {
    border-bottom: 0;
  }
  .overview-icon {
    display: flex;
  }
  .overview-item strong {
    font-size: 19px;
  }
  .home-aside {
    display: block;
  }
  .recent {
    margin-top: 28px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .result {
    gap: 10px;
  }
  .doc-icon {
    padding: 9px;
  }
  .result-title {
    font-size: 14px;
  }
  .filters .muted {
    width: 100%;
    margin: 5px 0;
  }
  .doc-heading h1 {
    font-size: 22px;
  }
  .diff-columns {
    grid-template-columns: 1fr;
  }
  .history-date {
    width: 75px;
  }
  .markdown {
    font-size: 14px;
  }
  .tabs {
    gap: 22px;
  }
  .graph-stage svg {
    min-width: 600px;
  }
  .status-text {
    max-width: 240px;
  }
  .notification-label {
    display: none;
  }
  .event-title {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
