@import url("./fonts.css");
:root {
  color-scheme: dark;
  --bg: #19191f;
  --sidebar: #141419;
  --surface: #202027;
  --surface-hover: #27272f;
  --raised: #24242c;
  --line: #2e2d38;
  --line-soft: #26262f;
  --text: #e9e7f1;
  --muted: #92909f;
  --faint: #656372;
  --accent: #ae91f6;
  --accent-strong: #9470e8;
  --accent-bg: #2c243e;
  --green: #94cbb2;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6fa;
  --sidebar: #efedf3;
  --surface: #fff;
  --surface-hover: #eeebf4;
  --raised: #f3f0f7;
  --line: #dcd7e6;
  --line-soft: #e8e3ed;
  --text: #282332;
  --muted: #71677f;
  --faint: #92879f;
  --accent: #7851bd;
  --accent-strong: #7951bc;
  --accent-bg: #e9dff9;
  --green: #3d8c6d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.12px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:hover {
  transition:
    background 0.15s,
    color 0.15s;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
small {
  font-size: 11px;
}
kbd {
  font-family: var(--font);
  font-size: 10px;
  color: var(--faint);
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
}
input,
textarea,
select {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
}
textarea {
  resize: vertical;
}
button .icon {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 12px;
  line-height: 1.7;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.button:hover {
  background: var(--surface-hover);
  border-color: var(--faint);
}
.button.primary {
  background: #9a78e7;
  border-color: #a686ed;
  color: #fff;
  box-shadow: 0 3px 15px #9a78e713;
}
.button.primary:hover {
  background: #aa88f2;
}
.button.primary kbd {
  color: #f1e8ff8c;
  border-color: #d6c1ff40;
  margin-left: 15px;
}
.button.small {
  padding: 6px 11px;
  font-size: 11px;
}
.button.full {
  width: 100%;
}
.button.danger {
  color: #e393a0;
  border-color: #ad5e6c55;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 5px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 0;
}
.text-button:hover {
  color: var(--accent);
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.loading-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 28px;
  font-weight: 600;
  gap: 15px;
}
.loading-screen span {
  font-size: 13px;
  color: var(--muted);
}
#app {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 252px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  padding: 28px 16px 0;
  overflow-y: auto;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 10px 29px;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.7px;
}
.brand img {
  width: 31px;
  height: 31px;
}
.brand-light {
  font-weight: 400;
  color: #c2b5dc;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 9px;
  text-align: left;
}
.workspace-switch > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.workspace-switch strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 550;
}
.workspace-switch small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.workspace-switch > .icon {
  width: 12px;
}
.workspace-avatar {
  width: 29px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  border: 1px solid #8769b936;
  border-radius: 6px;
  color: var(--accent);
}
.workspace-avatar .icon {
  width: 16px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  width: 100%;
  color: var(--faint);
  margin: 17px 0 19px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 8px;
}
.search-trigger span {
  flex: 1;
  font-size: 11px;
}
.search-trigger .icon {
  width: 15px;
}
.search-trigger kbd {
  font-size: 9px;
  padding: 0 3px;
}
.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 6px;
  text-align: left;
  font-size: 12px;
  min-height: 37px;
}
.nav-item > span:nth-child(2) {
  flex: 1;
}
.nav-item .icon {
  width: 16px;
  height: 16px;
}
.nav-item:hover {
  background: var(--surface);
  color: var(--text);
}
.nav-item.active {
  background: var(--accent-bg);
  color: #c6a9fb;
}
.nav-item.active .icon {
  color: var(--accent);
}
.nav-item small {
  color: var(--faint);
  font-size: 10px;
}
.tiny-dot {
  height: 5px;
  width: 5px;
  background: var(--accent);
  border-radius: 100%;
  margin-right: 2px;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 23px 8px 9px;
  font-size: 9px;
  color: var(--faint);
  font-weight: 600;
  letter-spacing: 1.2px;
}
.sidebar-heading .icon {
  width: 14px;
}
.file-tree {
  overflow-y: auto;
  flex: 1;
  min-height: 100px;
  padding-bottom: 22px;
}
.file-tree details {
  margin-bottom: 12px;
}
.file-tree summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  padding: 5px 7px;
  cursor: pointer;
}
.file-tree summary::-webkit-details-marker {
  display: none;
}
.file-tree summary > .icon:first-child {
  width: 11px;
  transition: transform 0.2s;
}
.file-tree details:not([open]) summary > .icon:first-child {
  transform: rotate(-90deg);
}
.file-tree summary > .icon:nth-child(2) {
  width: 15px;
  color: #9b8ab7;
}
.file-tree summary span {
  flex: 1;
}
.file-tree summary small {
  color: var(--faint);
  font-size: 9px;
}
.tree-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 8px 8px 30px;
  color: var(--faint);
  width: 100%;
  text-align: left;
  font-size: 10.5px;
  border-radius: 5px;
}
.tree-note .icon {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}
.tree-note span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-note:hover,
.tree-note.selected {
  color: var(--text);
  background: var(--surface);
}
.tree-note.selected .icon {
  color: var(--accent);
}
.sidebar-bottom {
  padding-bottom: 0;
  margin-top: 18px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  border-top: 1px solid var(--line);
  margin-top: 13px;
  width: 100%;
  padding: 17px 5px 18px;
}
.profile > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.profile strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  display: block;
  font-size: 9px;
  color: var(--faint);
  margin-top: 3px;
}
.profile > .icon {
  width: 15px;
  color: var(--muted);
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #3c304d;
  color: #ceb7e9;
  border: 1px solid #8d6ba94a;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.main-shell {
  margin-left: 252px;
  display: flex;
  flex-direction: column;
  width: calc(100% - 252px);
  height: 100dvh;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  height: 65px;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  flex-shrink: 0;
  gap: 14px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  color: var(--faint);
  min-width: 0;
}
.breadcrumbs > .icon:first-of-type {
  width: 15px;
}
.breadcrumbs > .icon:nth-of-type(2) {
  width: 11px;
  color: var(--faint);
}
.breadcrumbs strong {
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}
.breadcrumbs > span {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.demo-label,
.connection-label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.demo-label > span,
.connection-label > span,
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.demo-label > span {
  background: var(--accent);
}
#content {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.statusbar {
  height: 26px;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding: 0 22px;
  gap: 12px;
  background: var(--sidebar);
}
.statusbar > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.statusbar .icon {
  width: 12px;
  height: 12px;
  margin-left: 4px;
}
.statusbar i {
  font-style: normal;
  margin: 0 2px;
}
.mobile-menu {
  display: none;
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 31px;
  max-width: 1500px;
  padding: 39px 34px 25px;
  margin: 0 auto;
}
.home-main {
  min-width: 0;
}
.eyebrow {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 5px;
}
.welcome {
  position: relative;
  min-height: 272px;
  padding-top: 9px;
}
.welcome .eyebrow {
  color: #a897c3;
  font-size: 8.5px;
  letter-spacing: 1.6px;
}
.welcome h1 {
  font-size: 37px;
  line-height: 1.24;
  font-weight: 560;
  letter-spacing: -1.6px;
  margin: 19px 0 16px;
  position: relative;
  z-index: 2;
}
.welcome h1 span {
  color: #ba9eea;
}
.welcome p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
  position: relative;
  z-index: 2;
}
.welcome .button {
  margin-top: 23px;
  position: relative;
  z-index: 2;
  padding: 9px 14px;
  font-size: 11px;
}
.welcome .button .icon {
  width: 15px;
}
.welcome-art {
  position: absolute;
  right: 4px;
  top: 35px;
  width: 190px;
  height: 190px;
  pointer-events: none;
  opacity: 0.85;
  background: radial-gradient(ellipse, #9f78d80d, transparent 70%);
}
.welcome-art img {
  width: 70px;
  height: 70px;
  position: absolute;
  left: 60px;
  top: 60px;
  transform: rotate(-10deg);
  filter: drop-shadow(0 0 28px #b394ee25);
}
.orbit {
  position: absolute;
  border: 1px solid #9985bd1b;
  border-radius: 50%;
  inset: 21px;
  transform: rotate(-30deg) scaleX(1.15);
}
.orbit-two {
  inset: 6px;
  transform: rotate(32deg) scaleX(0.65);
}
.orbit-three {
  inset: 20px;
  transform: rotate(-55deg) scaleX(0.55);
}
.orbit-point {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #b196d9;
  border: 2px solid #34303f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #9a7bc209;
}
.point-one {
  top: 41px;
  left: 34px;
}
.point-two {
  top: 131px;
  right: 22px;
  background: #79b5b4;
}
.point-three {
  bottom: 9px;
  left: 66px;
  width: 4px;
  height: 4px;
}
.orbit-star {
  position: absolute;
  top: 0;
  right: 27px;
  color: #a98dcc;
  font-size: 20px;
}
.stats-row {
  display: flex;
  gap: 23px;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-top: 9px;
}
.stats-row > div {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
}
.stats-row .icon {
  width: 14px;
  height: 14px;
  color: #94839f;
}
.stats-row strong {
  font-weight: 550;
  color: var(--muted);
  margin-right: 3px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.section-heading h2 {
  font-size: 12px;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-heading h2 .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.section-heading > .icon {
  width: 15px;
  color: var(--muted);
}
.recent-section {
  padding-top: 25px;
}
.recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 17px;
}
.note-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
  min-width: 0;
  min-height: 172px;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.note-card:hover {
  border-color: #a58acd70;
  transform: translateY(-2px);
  background: var(--raised);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.note-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #332b45;
  color: #b89cdd;
}
.note-icon .icon {
  width: 15px;
  height: 15px;
}
.note-icon.tone-1 {
  background: #263b3a;
  color: #8cbeb2;
}
.note-icon.tone-2 {
  background: #3b3342;
  color: #c2a0c9;
}
.card-folder {
  font-size: 9px;
  color: var(--faint);
  white-space: nowrap;
}
.note-card h3 {
  font-size: 12px;
  font-weight: 550;
  margin: 13px 0 8px;
  line-height: 1.5;
}
.note-card p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 34px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  color: var(--faint);
  font-size: 9px;
}
.tag {
  display: inline-flex;
  font-size: 9px;
  color: #ab95c6;
  background: #8f73b811;
  border: 1px solid #9277b324;
  border-radius: 4px;
  padding: 1px 7px;
}
.quick-start {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 21px;
  padding: 18px 16px;
  background: linear-gradient(100deg, #9c78d00b, #9c78d003);
  border: 1px solid #9671c82a;
  border-radius: 8px;
}
.quick-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
}
.quick-icon .icon {
  width: 17px;
}
.quick-start h3 {
  font-size: 11px;
  font-weight: 500;
  color: #c4b3df;
}
.quick-start p {
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.quick-start code {
  color: #b49bd5;
}
.quick-start > .icon-button {
  margin-left: auto;
}
.home-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9px;
  color: var(--faint);
  margin-top: 27px;
  letter-spacing: 0.3px;
}
.small-gem {
  font-size: 14px;
  color: #9681b8;
}
.home-aside {
  border-left: 1px solid var(--line);
  padding-left: 25px;
  margin-top: 9px;
}
.graph-widget {
  padding-top: 1px;
}
.graph-widget h2 {
  font-size: 11px;
}
.knowledge-graph {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 650px;
}
.knowledge-graph.compact {
  height: auto;
  min-height: 145px;
}
.graph-edges {
  stroke: #78649b;
  stroke-width: 0.7;
  opacity: 0.55;
}
.graph-node {
  cursor: pointer;
}
.node-halo {
  fill: #a481d812;
}
.node-dot {
  fill: #a788dc;
  stroke: #bda4e3;
  stroke-width: 1;
}
.dot-1 {
  fill: #9dafb8;
  stroke: #b9c8ce;
}
.dot-2 {
  fill: #8dafab;
  stroke: #b1c8c1;
}
.graph-node text {
  fill: var(--muted);
  font-size: 10px;
  font-family: var(--font);
}
.compact .graph-node text {
  font-size: 8px;
}
.graph-node:hover .node-halo {
  fill: #a481d833;
}
.graph-node:hover text {
  fill: var(--text);
}
.graph-widget > .knowledge-graph {
  margin-top: 18px;
  margin-bottom: 6px;
}
.graph-widget > p {
  font-size: 10px;
  text-align: center;
  color: var(--faint);
  line-height: 1.8;
  margin-bottom: 18px;
}
.graph-widget .button {
  font-size: 10px;
  background: transparent;
  padding: 8px;
}
.graph-widget .button .icon {
  width: 14px;
  margin-left: 8px;
}
.activity-widget {
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding-top: 24px;
}
.activity-widget .section-heading h2 {
  font-size: 11px;
}
.live-indicator {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--green);
}
.activity-item {
  display: flex;
  gap: 10px;
  margin-top: 21px;
}
.activity-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #9782b5;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #9782b510;
}
.activity-item p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.activity-item strong {
  font-weight: 500;
  color: #bfb3ce;
}
.activity-item small {
  display: block;
  color: var(--faint);
  font-size: 8px;
  margin-top: 5px;
}
.tip-widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-top: 29px;
}
.tip-widget > div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: #b6a5ce;
  letter-spacing: 0.8px;
}
.tip-widget .icon {
  width: 13px;
  height: 13px;
}
.tip-widget p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  margin: 12px 0;
}
.tip-widget > span {
  font-size: 8px;
  color: var(--faint);
}
.standard-page {
  max-width: 1250px;
  padding: 45px 45px 60px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.page-heading h1 {
  font-size: 30px;
  letter-spacing: -0.9px;
  font-weight: 550;
  margin: 12px 0 8px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--faint);
}
.list-toolbar > span:first-child {
  margin-right: auto;
}
.note-table {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.table-heading,
.note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 35px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
}
.table-heading {
  font-size: 10px;
  color: var(--faint);
  background: var(--surface);
}
.note-row {
  border-top: 1px solid var(--line-soft);
  min-height: 75px;
}
.note-row:hover {
  background: var(--surface);
}
.note-row-main {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  min-width: 0;
  padding: 0;
}
.note-row-main > .icon {
  color: var(--accent);
  width: 17px;
}
.note-row-main > span {
  min-width: 0;
}
.note-row-main strong {
  display: block;
  font-weight: 500;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-row-main small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--faint);
  font-size: 10px;
  margin-top: 5px;
}
.row-date {
  font-size: 10px;
  color: var(--muted);
}
.inline-tag {
  color: #9b88b7;
  font-size: 9px;
}
.is-favorite {
  color: #c6a578 !important;
}
.is-favorite .icon {
  fill: #c6a57815;
}
.empty-state {
  padding: 70px 25px;
  text-align: center;
  max-width: 600px;
  margin: auto;
}
.empty-state > .icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 15px;
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 500;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 10px;
}
.large-search {
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #9275be77;
  background: var(--surface);
  border-radius: 9px;
  padding: 4px 18px;
}
.large-search > .icon {
  color: var(--accent);
}
.large-search input {
  background: none;
  border: none;
  flex: 1;
  padding: 16px 0;
  outline: none;
  font-size: 15px;
}
.large-search input:focus-visible {
  outline: none;
}
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.tag-filter {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  color: var(--muted);
}
.tag-filter.active,
.tag-filter:hover {
  background: var(--accent-bg);
  border-color: #9275be66;
  color: var(--accent);
}
.graph-canvas {
  height: min(64vh, 650px);
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}
.graph-caption {
  position: absolute;
  top: 20px;
  left: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.graph-legend {
  display: flex;
  align-items: center;
  gap: 25px;
  position: absolute;
  bottom: 18px;
  left: 22px;
  font-size: 10px;
  color: var(--faint);
}
.graph-legend span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.graph-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.workspace-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  position: relative;
  text-align: left;
  min-height: 220px;
}
.workspace-card:hover {
  border-color: #a58acd80;
}
.workspace-card-icon {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 9px;
}
.workspace-role {
  position: absolute;
  right: 22px;
  top: 25px;
  color: var(--muted);
  font-size: 10px;
}
.workspace-card h2 {
  font-size: 19px;
  font-weight: 500;
  margin: 19px 0 8px;
}
.workspace-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.workspace-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  color: var(--faint);
  font-size: 11px;
}
.create-workspace {
  border-style: dashed;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.create-workspace > .icon {
  height: 27px;
  width: 27px;
  color: var(--accent);
  margin-bottom: 15px;
}
.create-workspace h3 {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 8px;
}
.join-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 30px;
}
.join-card > .icon {
  color: var(--accent);
}
.join-card > div {
  flex: 1;
}
.join-card h3 {
  font-size: 13px;
  font-weight: 500;
}
.join-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.members-list {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}
.member-row:last-child {
  border: 0;
}
.member-row > div {
  flex: 1;
}
.member-row strong {
  font-size: 13px;
  font-weight: 500;
}
.member-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.role-badge {
  padding: 5px 10px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
}
.member-row select {
  font-size: 11px;
  padding: 6px;
}
.roles-explainer {
  display: flex;
  gap: 13px;
  background: var(--surface);
  border-radius: 9px;
  padding: 22px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.roles-explainer > .icon {
  color: var(--accent);
  margin-top: 3px;
}
.roles-explainer strong {
  color: var(--text);
  font-weight: 500;
}
.settings-page {
  max-width: 1000px;
}
.settings-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.settings-section:first-of-type {
  padding-top: 0;
}
.settings-section h2 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
}
.settings-section p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
.settings-section form {
  max-width: 450px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.setting-row p {
  margin: 0;
}
.settings-footnote {
  font-size: 10px;
  line-height: 1.8;
  color: var(--faint);
  margin-top: 25px;
}
.password-details {
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
}
.password-details summary {
  cursor: pointer;
  margin-bottom: 15px;
}
.form-message {
  font-size: 12px;
  color: var(--accent);
  padding-left: 8px;
}
.page-editor {
  display: flex;
  flex-direction: column;
}
.editor-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--sidebar);
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
  height: 43px;
  flex-shrink: 0;
}
.editor-tab {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 2px solid var(--accent-strong);
  background: var(--bg);
  padding: 0 10px 0 15px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  max-width: 350px;
  font-size: 10px;
  color: var(--muted);
}
.editor-tab > .icon {
  width: 13px;
  color: var(--accent);
}
.editor-tab > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.editor-tab .icon-button {
  margin-left: 12px;
}
.editor-tab .icon-button .icon {
  width: 12px;
}
.editor-toolbar {
  height: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.save-status {
  font-size: 10px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}
.save-status .icon {
  height: 13px;
  width: 13px;
  color: var(--green);
}
.mode-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sidebar);
}
.mode-switch button {
  height: 24px;
  width: 35px;
  display: grid;
  place-items: center;
  color: var(--faint);
  border-radius: 3px;
}
.mode-switch .icon {
  width: 14px;
  height: 14px;
}
.mode-switch button.active {
  background: var(--raised);
  color: var(--accent);
}
.editor-tools {
  display: flex;
  gap: 4px;
}
.editor-tools .icon {
  width: 15px;
  height: 15px;
}
.editor-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.document {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.document-heading {
  padding: 32px 32px 22px;
}
.document-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 0.7px;
}
.document-heading .icon {
  width: 12px;
  height: 12px;
}
.note-title {
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.8px;
  padding: 0;
  border: 0;
  background: transparent;
  margin: 13px 0 15px;
  width: 100%;
  border-radius: 0;
}
.note-title:focus-visible {
  outline: 0;
  box-shadow: 0 1px var(--accent);
}
.note-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--faint);
}
.note-meta > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.editor-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 350px;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.source-pane,
.preview-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.source-pane {
  border-right: 1px solid var(--line-soft);
}
.pane-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px 9px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--faint);
}
.pane-label > span {
  font-size: 7px;
  opacity: 0.6;
}
.pane-label > .icon {
  width: 12px;
  height: 12px;
}
#note-content {
  background: transparent;
  resize: none;
  flex: 1;
  border: 0;
  padding: 15px 25px 40px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2;
  color: #b9accb;
  outline: none;
  border-radius: 0;
  min-height: 300px;
  tab-size: 2;
}
#note-content:focus-visible {
  outline: 0;
}
.preview-pane {
  overflow-y: auto;
}
.markdown-body {
  padding: 9px 26px 45px;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.markdown-body h1 {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 550;
  letter-spacing: -0.6px;
  margin: 7px 0 20px;
}
.markdown-body h2 {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  margin: 28px 0 12px;
  letter-spacing: -0.3px;
}
.markdown-body h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 20px 0 10px;
}
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: var(--text);
  margin: 15px 0 7px;
}
.markdown-body p {
  margin: 12px 0;
}
.markdown-body strong {
  font-weight: 550;
  color: var(--text);
}
.markdown-body ul,
.markdown-body ol {
  padding-left: 20px;
  margin: 12px 0;
}
.markdown-body li {
  padding: 3px 0;
}
.markdown-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--raised);
  color: var(--accent);
  font-size: 0.85em;
}
.markdown-body pre {
  background: var(--sidebar);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  font-size: 11px;
  line-height: 1.8;
}
.markdown-body pre code {
  padding: 0;
  background: transparent;
  color: var(--muted);
}
.markdown-body blockquote {
  border-left: 2px solid var(--accent-strong);
  background: #9771d409;
  margin: 20px 0;
  padding: 12px 15px;
  color: #b6a1cc;
  font-style: italic;
  border-radius: 0 5px 5px 0;
}
.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.wiki-link {
  color: var(--accent);
  background: #a27bdb12;
  border-radius: 3px;
  padding: 0 3px;
  font: inherit;
  text-align: left;
  display: inline;
  line-height: inherit;
}
.wiki-link:hover {
  background: var(--accent-bg);
  text-decoration: underline;
}
.markdown-body a {
  color: var(--accent);
  text-decoration: underline;
}
.task-item {
  list-style: none;
  position: relative;
}
.task-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border: 1px solid var(--faint);
  border-radius: 3px;
  position: absolute;
  left: -20px;
  top: 9px;
  font-size: 8px;
}
.task-check.checked {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: white;
}
.mode-edit,
.mode-read {
  grid-template-columns: 1fr;
}
.mode-edit .preview-pane,
.mode-read .source-pane {
  display: none;
}
.mode-read .markdown-body {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 15px 45px 50px;
  font-size: 14px;
}
.mode-edit #note-content {
  font-size: 13px;
}
.mode-read .markdown-body h1 {
  font-size: 28px;
}
.mode-read .markdown-body h2 {
  font-size: 20px;
}
.document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 25px;
  border-top: 1px solid var(--line-soft);
  font-size: 9px;
  color: var(--faint);
}
.note-aside {
  width: 225px;
  min-width: 225px;
  border-left: 1px solid var(--line);
  padding: 28px 18px;
  overflow-y: auto;
}
.aside-section {
  margin-bottom: 28px;
}
.aside-section h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 550;
  color: var(--muted);
  margin-bottom: 15px;
}
.aside-section h3 .icon {
  width: 13px;
  height: 13px;
}
.aside-section h3 small {
  margin-left: auto;
  font-size: 9px;
  color: var(--faint);
}
.outline-item {
  display: block;
  text-align: left;
  width: 100%;
  font-size: 10px;
  color: var(--faint);
  padding: 6px 0;
  line-height: 1.6;
}
.outline-item:hover {
  color: var(--accent);
}
.outline-item.level-2 {
  padding-left: 12px;
}
.outline-item.level-3 {
  padding-left: 24px;
}
.backlink {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  text-align: left;
  font-size: 10px;
  line-height: 1.7;
  color: var(--accent);
  padding: 8px 0;
}
.backlink .icon {
  height: 13px;
  width: 13px;
  margin-top: 2px;
}
.aside-tip {
  font-size: 9px;
  color: var(--faint);
  line-height: 1.8;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}
.aside-tip code {
  color: var(--muted);
}
.conflict-banner {
  padding: 12px 20px;
  background: #63522944;
  color: #e3c68d;
  font-size: 12px;
}
.conflict-banner button {
  color: #f0daab;
  text-decoration: underline;
  margin-left: 10px;
}
.conflict-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.conflict-options .button {
  white-space: normal;
}
#modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #74608766;
  border-radius: 13px;
  padding: 26px;
  width: min(430px, calc(100vw - 32px));
  max-height: 90dvh;
  box-shadow: 0 25px 100px #0007;
}
#modal::backdrop {
  background: #07060ab8;
  backdrop-filter: blur(5px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.modal-heading h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
.modal-description {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 22px;
}
.modal-heading > .icon-button {
  margin-right: -7px;
}
.auth-brand {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 550;
}
.auth-brand img {
  height: 28px;
  width: 28px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 17px;
}
label input,
label textarea,
label select {
  width: 100%;
  font-size: 12px;
}
label textarea {
  min-height: 90px;
}
.form-error {
  font-size: 11px;
  color: #ec9fae;
  margin: 12px 0;
  line-height: 1.8;
}
.auth-switch {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
}
.auth-switch .text-button {
  color: var(--accent);
  margin-left: 4px;
}
#invite-result:not(:empty) {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
#invite-url {
  font-size: 10px;
}
#toast {
  position: fixed;
  bottom: 40px;
  left: calc(50% + 100px);
  transform: translate(-50%, 15px);
  background: var(--raised);
  border: 1px solid #a588c766;
  padding: 12px 19px;
  border-radius: 8px;
  box-shadow: 0 6px 30px #0003;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #77708040;
  border-radius: 8px;
}
::selection {
  background: #aa82ed40;
}
.sidebar-scrim {
  display: none;
}
@media (min-width: 1500px) {
  .home-layout {
    padding-top: 55px;
    gap: 45px;
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .home-aside {
    padding-left: 35px;
  }
  .welcome {
    min-height: 300px;
  }
  .welcome h1 {
    font-size: 44px;
  }
  .welcome p {
    font-size: 13px;
  }
  .welcome-art {
    right: 20px;
    width: 220px;
    height: 220px;
    top: 22px;
  }
  .welcome-art img {
    left: 75px;
    top: 75px;
  }
  .note-card {
    padding: 23px;
    min-height: 190px;
  }
  .note-card h3 {
    font-size: 14px;
  }
  .note-card p {
    font-size: 11px;
  }
  .recent-grid {
    gap: 18px;
  }
  .home-layout {
    max-width: 1440px;
  }
  .home-main {
    max-width: 850px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 228px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-shell {
    margin-left: 228px;
    width: calc(100% - 228px);
  }
  .home-layout {
    padding: 30px 25px;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 225px;
  }
  .home-aside {
    padding-left: 20px;
  }
  .welcome h1 {
    font-size: 33px;
  }
  .welcome-art {
    right: -10px;
    opacity: 0.5;
    width: 160px;
    height: 160px;
    top: 65px;
  }
  .welcome-art img {
    width: 56px;
    height: 56px;
    left: 52px;
    top: 52px;
  }
  .stats-row {
    gap: 15px;
    flex-wrap: wrap;
  }
  .stats-row > div {
    font-size: 9px;
  }
  .note-aside {
    display: none;
  }
  .standard-page {
    padding: 35px 28px;
  }
  .note-card {
    padding: 14px;
  }
  .card-folder {
    font-size: 8px;
  }
  .topbar {
    padding: 0 24px;
  }
}
@media (max-width: 1050px) {
  .home-layout {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .home-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 0;
    gap: 25px;
    margin-top: 5px;
  }
  .activity-widget {
    border: 0;
    margin: 0;
    padding: 0;
  }
  .tip-widget {
    display: none;
  }
  .graph-widget > .knowledge-graph {
    height: 160px;
    min-height: 0;
  }
  .graph-widget > p {
    display: none;
  }
  .welcome-art {
    right: 30px;
    top: 25px;
    opacity: 1;
    width: 190px;
    height: 190px;
  }
  .welcome-art img {
    left: 60px;
    top: 60px;
    width: 70px;
    height: 70px;
  }
  .welcome h1 {
    font-size: 37px;
  }
  .welcome {
    min-height: 276px;
  }
  .note-card {
    padding: 18px;
  }
  .connection-label {
    display: none;
  }
  .breadcrumbs > span {
    max-width: 140px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .workspace-card {
    padding: 20px;
  }
  .workspace-card h2 {
    font-size: 17px;
  }
  .join-card {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 210px;
  }
  .main-shell {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .brand {
    font-size: 19px;
    margin-left: 5px;
  }
  .sidebar .search-trigger {
    gap: 5px;
  }
  .sidebar .search-trigger kbd {
    display: none;
  }
  .home-layout {
    padding: 27px 22px;
  }
  .home-aside {
    grid-template-columns: 1fr;
  }
  .activity-widget {
    display: none;
  }
  .graph-widget {
    max-width: 350px;
    margin: auto;
    width: 100%;
  }
  .welcome h1 {
    font-size: 32px;
  }
  .welcome-art {
    width: 140px;
    height: 140px;
    right: -5px;
    top: 60px;
    opacity: 0.45;
  }
  .welcome-art img {
    width: 50px;
    height: 50px;
    left: 45px;
    top: 45px;
  }
  .topbar {
    padding: 0 18px;
    min-height: 59px;
    height: 59px;
  }
  .breadcrumbs > span,
  .breadcrumbs > .icon:nth-of-type(2) {
    display: none;
  }
  .topbar-actions {
    gap: 6px;
  }
  .demo-label {
    display: none;
  }
  .card-folder {
    display: none;
  }
  .recent-grid {
    gap: 10px;
  }
  .note-card {
    padding: 15px;
  }
  .note-card h3 {
    font-size: 11px;
  }
  .quick-start {
    padding: 15px 12px;
  }
  .quick-start .quick-icon {
    display: none;
  }
  .stats-row {
    gap: 14px;
  }
  .stats-row > div:last-child {
    display: none;
  }
  .statusbar {
    font-size: 8px;
    padding: 0 12px;
  }
  .statusbar > span:last-child {
    display: none;
  }
  .standard-page {
    padding: 30px 24px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .note-row,
  .table-heading {
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 5px;
    padding: 14px;
  }
  .row-date,
  .table-heading > span:nth-child(2) {
    display: none;
  }
  .table-heading {
    padding: 10px 14px;
  }
  .editor-toolbar {
    padding: 0 12px;
  }
  .save-status {
    font-size: 9px;
    min-width: 0;
  }
  .editor-tools {
    gap: 0;
  }
  .document-heading {
    padding: 25px 22px 20px;
  }
  .note-title {
    font-size: 23px;
  }
  .editor-panes {
    grid-template-columns: 1fr;
  }
  .mode-split .source-pane {
    min-height: 280px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .mode-split .preview-pane {
    min-height: 250px;
  }
  .editor-layout {
    overflow-y: auto;
  }
  .editor-panes {
    overflow: visible;
    min-height: 0;
    flex: initial;
  }
  .document {
    display: block;
  }
  .document-footer {
    min-height: 30px;
  }
  .editor-toolbar .icon-button {
    min-width: 26px;
    width: 26px;
  }
  .mode-switch button {
    width: 25px;
  }
  .graph-legend {
    gap: 15px;
  }
  .graph-legend > span:last-child {
    display: none;
  }
  .setting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .note-meta {
    gap: 8px;
  }
  #toast {
    left: 50%;
  }
}
@media (max-width: 620px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 252px;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #0008;
    z-index: 25;
  }
  .main-shell {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 14px;
    gap: 7px;
  }
  .breadcrumbs {
    gap: 5px;
  }
  .breadcrumbs > .icon:first-of-type {
    display: none;
  }
  .breadcrumbs strong {
    font-size: 10px;
  }
  .topbar-actions .button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .home-layout {
    padding: 25px 22px;
  }
  .welcome {
    min-height: 280px;
  }
  .welcome h1 {
    font-size: 33px;
    line-height: 1.25;
    margin-top: 21px;
  }
  .welcome .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .welcome-art {
    right: -12px;
    top: 81px;
    opacity: 0.32;
  }
  .welcome p {
    font-size: 11px;
  }
  .recent-grid {
    gap: 10px;
  }
  .note-card {
    padding: 14px;
  }
  .note-card h3 {
    font-size: 11px;
    margin-top: 11px;
  }
  .note-card p {
    font-size: 9px;
  }
  .card-bottom {
    font-size: 8px;
  }
  .card-bottom .tag {
    font-size: 8px;
    padding: 1px 5px;
  }
  .quick-start h3 {
    font-size: 10px;
  }
  .quick-start p {
    font-size: 9px;
  }
  .home-signature {
    margin-top: 22px;
  }
  .home-aside {
    padding-top: 25px;
    margin-top: 4px;
  }
  .graph-widget > .knowledge-graph {
    height: 180px;
  }
  .stats-row > div {
    font-size: 9px;
  }
  .stats-row {
    gap: 20px;
  }
  .statusbar {
    height: 25px;
    min-height: 25px;
    font-size: 8px;
  }
  .standard-page {
    padding: 30px 22px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .list-toolbar .button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .large-search {
    padding: 3px 12px;
    gap: 10px;
  }
  .large-search input {
    font-size: 13px;
  }
  .large-search kbd {
    display: none;
  }
  .graph-canvas {
    min-height: 340px;
    height: 60vh;
  }
  .graph-node text {
    font-size: 14px;
  }
  .compact .graph-node text {
    font-size: 8px;
  }
  .graph-caption {
    font-size: 10px;
    left: 16px;
  }
  .graph-legend {
    left: 16px;
  }
  .member-row {
    padding: 17px 13px;
    gap: 10px;
  }
  .member-row select {
    max-width: 105px;
    font-size: 10px;
  }
  .roles-explainer {
    font-size: 11px;
    padding: 18px;
  }
  .document-heading {
    padding: 24px 20px 18px;
  }
  .note-title {
    font-size: 23px;
    margin-bottom: 12px;
  }
  .editor-toolbar {
    padding: 0 9px;
    height: 49px;
    min-height: 49px;
    gap: 6px;
  }
  .save-status {
    font-size: 8px;
    gap: 4px;
    max-width: 110px;
  }
  .save-status > .icon {
    width: 11px;
  }
  .editor-tools .icon {
    width: 13px;
  }
  .editor-tools .icon-button {
    width: 25px;
    min-width: 25px;
  }
  .mode-switch button {
    width: 23px;
  }
  .editor-tab {
    max-width: 300px;
  }
  .mode-split .source-pane {
    min-height: 310px;
  }
  .mode-split .preview-pane {
    min-height: 350px;
  }
  .mode-read .markdown-body {
    padding: 10px 24px 40px;
    font-size: 13px;
  }
  .source-pane #note-content {
    font-size: 12px;
  }
  .markdown-body {
    font-size: 13px;
    padding: 12px 22px 35px;
  }
  .note-aside {
    display: none;
  }
  .note-meta {
    font-size: 8px;
  }
  .join-card {
    padding: 20px;
  }
  .join-card > div {
    min-width: 200px;
  }
  .join-card .button {
    margin-left: 35px;
  }
  .setting-row {
    padding: 23px 0;
  }
  .settings-footnote {
    font-size: 9px;
  }
  .conflict-banner {
    font-size: 11px;
  }
  .conflict-banner button {
    margin-left: 0;
    padding-left: 0;
  }
  #toast {
    bottom: 35px;
    width: max-content;
    font-size: 11px;
    padding: 11px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
