.kbd {
  pointer-events: none;
  user-select: none;
  display: inline-flex;
  height: 20px;
  min-width: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 4px;
  background: #e8ebe2;
  color: #7a8570;
  font:
    500 11px/1 "DM Sans Variable",
    sans-serif;
}
.kbd-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.sidebar-connections {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #68775f;
  font:
    12px "DM Sans Variable",
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.sidebar-connections:hover,
.sidebar-connections[aria-current="page"] {
  background: #e2e8d8;
  color: #405d3e;
}
.connections-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  color: #4f5e47;
}
.connections-content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px 30px 70px;
}
.connections-page button {
  font: inherit;
  cursor: pointer;
}
.connections-page button:disabled {
  cursor: default;
  opacity: 0.65;
}
.connections-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #839074;
  padding: 4px 0;
  font-size: 11px !important;
}
.connections-heading {
  margin: 24px 0 28px;
}
.connections-heading h1 {
  margin: 0 0 8px;
  color: #556b49;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
}
.connections-heading > p {
  margin: 0;
  font-size: 13px;
  color: #8a927e;
}
.connections-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecefe5;
  color: #8a947e;
  border-radius: 9px;
  padding: 12px 16px;
}
.connections-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: #4f5e47;
  font:
    13px "DM Sans Variable",
    sans-serif;
}
.connections-search:focus-within {
  background: #e6ebdc;
}
.connections-search button,
.connections-section-heading > button,
.connection-disconnect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  padding: 6px;
  background: transparent;
  color: #8a927e;
}
.connections-section-heading > button:hover,
.connection-disconnect:hover {
  color: #4f5e47;
  background: #e9ede1;
}
.connections-owned {
  margin: 30px 0 40px;
}
.connections-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.connections-section-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #586c4c;
}
.connections-section-heading h2 > span {
  margin-left: 6px;
  color: #9aa18e;
  font-size: 12px;
}
.connections-section-heading > span {
  color: #949d87;
  font-size: 11px;
}
.connections-account-list {
  display: grid;
  gap: 7px;
}
.connections-account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8f9f4;
  padding: 14px 18px;
  border-radius: 10px;
}
.connection-app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: #899c79;
}
.connection-app-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.connection-account-identity {
  flex: 1;
  min-width: 0;
}
.connections-page h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.connection-account-identity p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #909882;
  overflow-wrap: anywhere;
}
.connection-health {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #a48964;
}
.connection-health.is-healthy {
  color: #879a72;
}
.connections-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.connections-app-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  background: #f8f9f4;
}
.connections-app-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.connections-app-title h3 {
  overflow-wrap: anywhere;
}
.connections-app-title .connection-health {
  margin-top: 3px;
}
.connection-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #909882;
  font-size: 11px;
  line-height: 1.6;
  margin: 14px 0 18px;
}
.connection-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px;
  border: 0;
  border-radius: 20px;
  background: #e9eddf;
  color: #697b57;
  font-size: 11px !important;
}
.connection-action:hover:not(:disabled) {
  background: #dde6ce;
  color: #465f38;
}
.connections-app-tile > .connection-action {
  margin-top: auto;
}
.connections-empty {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 0;
  margin: 0;
  color: #949d87;
  font-size: 12px;
}
.connections-error {
  color: #9d594e;
  font-size: 12px;
}
.connections-error button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  color: inherit;
}
.connections-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  color: #949d87;
  font-size: 11px;
}
@media (max-width: 700px) {
  .connections-content {
    padding: 60px 10px 40px;
  }
  .connections-heading h1 {
    font-size: 30px;
  }
  .connections-account-row {
    gap: 9px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .connections-account-row > .connection-health {
    display: none;
  }
  .connections-app-grid {
    grid-template-columns: 1fr;
  }
}
.page-workspace.chat-open {
  grid-template-columns: 230px minmax(300px, 360px) minmax(0, 1fr);
}
.sidebar-chats {
  min-height: 80px;
  max-height: 32%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-list {
  overflow-y: auto;
  min-height: 0;
}
.chat-list-item,
.chat-list-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 8px;
  color: #68775f;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font:
    12px "DM Sans Variable",
    sans-serif;
}
.chat-list-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list-item svg {
  flex-shrink: 0;
}
.chat-list-item:hover,
.chat-list-item.is-active {
  background: #e2e8d8;
  color: #405d3e;
}
.chat-list-empty {
  color: #829075;
  font-size: 11px;
}
.chat-list-error {
  font-size: 11px;
  color: #9d594e;
}
.chat-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f8f8f3;
  padding: 0 16px 14px;
}
.chat-panel[hidden] {
  display: none;
}
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  flex-shrink: 0;
  gap: 8px;
}
.chat-panel-header h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font:
    500 13px/1.4 "DM Sans Variable",
    sans-serif;
  color: #556b49;
}
.chat-panel-header button {
  flex-shrink: 0;
}
.chat-composer-actions .chat-model-toggle[aria-pressed="true"] {
  color: #405d3e;
  background: #dce5d1;
}
.chat-composer-actions .chat-model-toggle:hover {
  background: #e2e8d8;
}
.chat-panel-header button,
.chat-composer-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7e8a71;
  cursor: pointer;
}
.chat-panel-header button:hover {
  background: #edf0e4;
}
.chat-transcript {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
}
.chat-welcome {
  margin: 48px 2px;
  color: #819074;
  font-size: 12px;
  line-height: 1.7;
}
.chat-welcome h2 {
  font-weight: 500;
  font-size: 20px;
  color: #556b49;
  margin-bottom: 14px;
}
.chat-message {
  color: #4f5e47;
  font-size: 13px;
  line-height: 1.65;
  margin: 20px 0;
}
.chat-message p {
  margin: 8px 0;
}
.chat-message-user {
  margin-left: 14px;
  padding: 9px 13px;
  border-radius: 10px;
  background: #eaeddf;
  color: #4d6043;
}
.chat-message a {
  color: #5c7750;
  text-decoration-color: #b1c5a3;
  text-underline-offset: 3px;
}
.chat-message pre {
  overflow-x: auto;
  background: #edefe6;
  padding: 10px;
  border-radius: 5px;
  font-size: 11px;
  white-space: pre;
}
.chat-message code {
  font-family: "DM Mono", monospace;
  font-size: 0.85em;
}
.chat-message :not(pre) > code {
  padding: 2px 4px;
  border-radius: 3px;
  background: #edefe6;
}
.chat-message pre code {
  font-size: inherit;
}
.chat-code-block {
  margin: 12px 0;
  overflow: hidden;
  border-radius: 6px;
  background: #edefe6;
}
.chat-code-block > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px 0 12px;
  color: #7b8671;
  font-size: 10px;
}
.chat-code-block > header button {
  display: inline-flex;
  padding: 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.chat-code-block > header button:hover {
  color: #405d3e;
  background: #e0e5d7;
}
.chat-code-block pre {
  margin: 0;
  padding: 8px 12px 12px;
}
.chat-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 12px 0;
  scrollbar-width: thin;
}
.chat-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.chat-table th,
.chat-table td {
  min-width: 90px;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e6d9;
  text-align: left;
  vertical-align: top;
}
.chat-table th {
  font-weight: 600;
  background: #eff1e9;
}
.chat-table tr:last-child td {
  border-bottom: 0;
}
.chat-message blockquote {
  margin: 12px 0;
  padding: 1px 12px;
  border-left: 2px solid #ccd6c1;
  color: #79846e;
}
.chat-message img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.chat-message hr {
  border: 0;
  border-top: 1px solid #e2e6d9;
  margin: 18px 0;
}
.chat-message ul,
.chat-message ol {
  padding-left: 20px;
}
.chat-message .contains-task-list {
  padding-left: 0;
  list-style: none;
}
.chat-message .task-list-item input {
  margin-right: 6px;
  accent-color: #6d8459;
}
.chat-message h1,
.chat-message h2,
.chat-message h3 {
  font-size: 15px;
}
.chat-tool-details {
  font-size: 11px;
  color: #89967e;
  margin: 12px 0;
}
.chat-tool-details summary {
  cursor: pointer;
}
.chat-action-progress {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 9px;
  font-size: 10px;
}
.chat-tool-call {
  margin-top: 6px;
  color: #607055;
}
.chat-tool-call > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  list-style: none;
}
.chat-tool-call > summary::-webkit-details-marker {
  display: none;
}
.chat-tool-chevron {
  flex-shrink: 0;
  transition: transform 120ms ease;
}
.chat-tool-call[open] > summary .chat-tool-chevron {
  transform: rotate(90deg);
}
.chat-tool-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #89967e;
  font-size: 10px;
}
.chat-tool-state[data-state="failed"] {
  color: #9d594e;
}
.chat-tool-body {
  margin-left: 18px;
}
.chat-tool-body h4 {
  margin: 10px 0 4px;
  font-size: 11px;
  font-weight: 500;
}
.chat-tool-body .chat-code-block {
  margin: 4px 0 12px;
}
.chat-tool-body pre {
  max-height: 320px;
}
.chat-tool-empty {
  color: #89967e;
}
.chat-working {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #819174;
  font-size: 11px;
}
.chat-error {
  color: #a16054;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 0;
}
.chat-composer {
  flex-shrink: 0;
  background: #eef0e6;
  border-radius: 10px;
  padding: 11px;
}
.chat-page-context {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #8a957d;
  padding: 0 2px 7px;
}
.chat-page-context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-composer textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  max-height: 180px;
  padding: 3px 2px;
  background: transparent;
  border: 0;
  outline: none;
  color: #4c6042;
  font:
    13px/1.6 "DM Sans Variable",
    sans-serif;
}
.chat-composer textarea::placeholder {
  color: #97a18d;
}
.chat-composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.chat-composer-actions span {
  margin-right: auto;
  color: #a0aa95;
  font-size: 9px;
}
.chat-composer-actions button[type="submit"] {
  color: #fff;
  background: #708764;
}
.chat-composer-actions button:disabled {
  opacity: 0.35;
  cursor: default;
}
.chat-spinner {
  animation: chat-spin 1.4s linear infinite;
}
@keyframes chat-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1100px) {
  .page-workspace.chat-open {
    grid-template-columns: 210px 300px minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  .page-workspace.chat-open {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .chat-open .chat-panel:not([hidden]) {
    position: fixed;
    z-index: 30;
    left: 180px;
    right: 0;
    top: 0;
    bottom: 0;
  }
}
@media (max-width: 700px) {
  .page-workspace.chat-open {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-open .chat-panel:not([hidden]) {
    left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-spinner {
    animation: none;
  }
}

.chat-skip-connection {
  margin-left: 8px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #89967e;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.chat-skip-connection:disabled {
  opacity: 0.5;
  cursor: default;
}
.chat-message-highlight {
  outline: 2px solid #b18b48;
  outline-offset: 4px;
  border-radius: 6px;
}
.chat-focus-notice {
  font-size: 12px;
  color: #746953;
}

.chat-list-connection {
  font-size: 11px;
  color: #829075;
}
.otp-container {
  display: flex;
  width: min(100%, 288px);
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.otp-container:has(:disabled) {
  opacity: 0.5;
}
.otp-group {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
}
.otp-slot {
  position: relative;
  display: flex;
  height: 48px;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5d1c9;
  border-left-width: 0;
  background: #fff;
  font:
    500 22px "DM Mono",
    monospace;
  box-shadow: 0 1px 2px #00000005;
  transition: box-shadow 0.15s;
}
.otp-slot:first-child {
  border-left-width: 1px;
  border-radius: 7px 0 0 7px;
}
.otp-slot:last-child {
  border-radius: 0 7px 7px 0;
}
.otp-slot[data-active="true"] {
  z-index: 1;
  box-shadow: 0 0 0 2px #57534e;
}
.otp-caret-container {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.otp-caret {
  width: 1px;
  height: 22px;
  background: currentColor;
  animation: otp-blink 1s step-end infinite;
}
.otp-separator {
  display: flex;
  align-items: center;
}
.sign-in input.otp-input {
  border: 0;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}
@keyframes otp-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .otp-caret {
    animation: none;
  }
}
.sign-in {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f4f1e9;
}
.sign-in form {
  width: min(430px, 90vw);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(24px, 6vw, 40px);
  background: #fcfaf5;
  border: 1px solid #d8d0c1;
  box-shadow: 0 20px 80px #423c3010;
}
.sign-in-brand {
  font-size: 22px;
}
.sign-in-brand small {
  color: #91816a;
  font-size: 12px;
}
.sign-in h1 {
  font-size: 30px;
  margin: 0;
  line-height: 1.2;
}
.sign-in p {
  color: #746d63;
  margin: 0;
}
.sign-in label {
  display: grid;
  gap: 9px;
  font-size: 13px;
}
.sign-in input,
.cloud-modal input:not([type="checkbox"]),
.cloud-modal select {
  border: 1px solid #d4cec4;
  border-radius: 5px;
  background: #fffefa;
  padding: 10px;
  min-width: 0;
  font: inherit;
}
.sign-in button {
  background: #413e34;
  color: white;
  border: 0;
  border-radius: 5px;
  padding: 12px;
  cursor: pointer;
}
.sign-in a {
  font-size: 12px;
  color: #77664e;
}
.cloud-modal-backdrop {
  position: fixed;
  inset: 0;
  background: #29272050;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.cloud-modal {
  width: min(640px, 100%);
  min-width: 0;
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
  background: #fcfaf5;
  border: 1px solid #cfc6b7;
  border-radius: 10px;
  box-shadow: 0 20px 100px #29251e40;
}
.cloud-modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cloud-modal h2 {
  margin: 0;
  font-size: 22px;
}
.cloud-modal p {
  color: #716a60;
  font-size: 13px;
  line-height: 1.6;
}
.cloud-modal button {
  background: #efebe2;
  border: 1px solid #d6cfc2;
  border-radius: 5px;
  padding: 8px 12px;
  color: #494033;
  cursor: pointer;
}
.cloud-modal header button {
  border: 0;
  background: transparent;
  font-size: 22px;
}
.cloud-modal [role="alert"] {
  color: #a44732;
}
.permission-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  padding: 12px 0;
}
.permission-note {
  background: #f0e9dd;
  padding: 10px;
  border-radius: 5px;
}
.invite-form {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.invite-form input {
  flex: 1;
}
.invite-form button {
  font-size: 12px;
}
.sharing-person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #e4ddd2;
  font-size: 13px;
}
.invitation-link {
  border-top: 1px solid #e4ddd2;
  margin-top: 15px;
  padding-top: 5px;
}
.invitation-link input {
  width: 100%;
  font-size: 11px !important;
  margin-bottom: 10px;
}
.cloud-modal > input {
  width: 100%;
  margin-top: 20px;
}
.search-result {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
}
.search-result small {
  display: block;
  color: #847763;
  font-size: 11px;
}
.search-result p {
  margin-bottom: 0;
  white-space: pre-wrap;
}
.history-modal {
  width: min(1000px, 100%);
}
.history-columns {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  height: 430px;
}
.history-entries,
.history-diff {
  min-width: 0;
  overflow: auto;
}
.history-entries button {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  font-size: 11px;
}
.history-columns small {
  display: block;
  margin-top: 4px;
}
.history-diff {
  --diffs-font-family: "DM Mono", monospace;
  --diffs-font-size: 12px;
}
@media (max-width: 800px) {
  .history-columns {
    grid-template-columns: 1fr;
    height: auto;
  }
  .history-entries {
    max-height: 150px;
  }
  .history-diff {
    min-height: 250px;
    max-height: 55vh;
  }
}

.search-result {
  background: #fffefb;
  border-color: #e6e1d7;
  padding: 16px 18px;
}
.search-result:hover {
  border-color: #bdb5d2;
  background: #fdfcf9;
}
.search-result > strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
  color: #35423a;
}
.search-result > strong > span {
  margin-right: 5px;
}
.search-result mark {
  background: #f6e5a7;
  color: inherit;
  border-radius: 2px;
  padding: 0;
}
.search-preview {
  margin-top: 14px;
  color: #4e534b;
  font-size: 13px;
  line-height: 1.7;
}
.search-preview > div + div {
  margin-top: 8px;
}
.search-preview-heading {
  font-size: 16px;
  font-weight: 600;
}
.search-preview-codeBlock {
  font:
    11px/1.7 "DM Mono",
    monospace;
  white-space: pre-wrap;
  background: #f3f2ed;
  padding: 8px;
  border-radius: 4px;
}
.preview-bold {
  font-weight: 650;
}
.preview-italic {
  font-style: italic;
}
.preview-strike {
  text-decoration: line-through;
}
.preview-code {
  font:
    11px "DM Mono",
    monospace;
  background: #f0eee7;
  border-radius: 3px;
  padding: 2px;
}
.preview-pageRef {
  text-decoration: underline;
  text-decoration-color: #c4c8bb;
  text-underline-offset: 3px;
}
.history-columns button[aria-pressed="true"] {
  border-color: #9babc0;
  background: #edf0f2;
}
.search-preview-quote {
  border-left: 2px solid #c6c8bb;
  padding-left: 10px;
  font-style: italic;
}
.search-preview-listItem::before {
  content: "•";
  margin-right: 8px;
  color: #85927d;
}
.preview-underline {
  text-decoration: underline;
}

.document-status-actions,
.document-cloud-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.document-cloud-actions {
  gap: 2px;
}
.document-cloud-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #889081;
  cursor: pointer;
}
.document-cloud-actions button:hover {
  color: #43533e;
  background: #e9ede1;
}
.document-cloud-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 5px 0;
  font-size: 11px;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: #e1e5d8;
  color: #627253;
}
.sidebar-account > div {
  min-width: 0;
  flex: 1;
}
.sidebar-account strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.sidebar-account div > span {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: #939b88;
}
.sidebar-account button {
  border: 0;
  background: transparent;
  color: #7e8773;
  font-size: 18px;
  cursor: pointer;
}
.inherited-access h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.inherited-access .sharing-person {
  color: #716a60;
}
.sharing-person small {
  display: block;
  margin-top: 4px;
  color: #8c9483;
}
.history-entry {
  position: relative;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #d8cebd;
  border-radius: 6px;
  background: #efeae1;
  font-size: 11px;
}
.history-entry.is-selected {
  background: #e9edf1;
  border-color: #a0b2c8;
}
.history-entry-heading {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.history-entry .history-select,
.history-entry .history-chat-link {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
}
.history-entry .history-select {
  flex-shrink: 0;
}
.history-select::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
}
.history-entry .history-chat-link {
  position: relative;
  z-index: 1;
  text-decoration: underline;
  color: #765b2f;
}
.history-chat-link,
.history-author {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-select:focus-visible::after {
  outline: 2px solid #6e9476;
}
.history-entry small {
  color: #77756c;
}
.page-workspace {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-width, 230px) minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}
.page-sidebar {
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 18px 12px 14px;
  background: #f0f1e9;
  border-right: 1px solid #dfe3d4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #738268;
}
.project-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #415d40;
  text-decoration: none;
  font-size: 22px;
  padding: 0 7px 12px;
}
.project-brand strong {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.project-brand span {
  font:
    10px "DM Mono",
    monospace;
  color: #8a967b;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 8px;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.sidebar-heading button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #7f8d72;
  font-size: 20px;
  cursor: pointer;
}
.page-search {
  width: 100%;
  box-sizing: border-box;
  font:
    11px "DM Sans Variable",
    sans-serif;
  padding: 9px 11px;
  color: #536e49;
  background: #ffffff77;
  border: 1px solid #e0e4d7;
  border-radius: 5px;
}
.page-tree-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.page-tree-row {
  position: absolute;
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border-radius: 5px;
}
.page-tree-row.is-active {
  background: #e2e8d8;
}
.tree-toggle,
.tree-leaf {
  width: 20px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  text-align: center;
  border: 0;
  background: transparent;
  color: #8b987e;
  font-size: 15px;
}
.tree-page-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  padding: 7px 4px;
  background: transparent;
  font:
    12px "DM Sans Variable",
    sans-serif;
  color: #6c7c61;
  cursor: pointer;
}
.is-active .tree-page-link {
  color: #435c38;
}
.tree-empty {
  font-size: 12px;
  padding: 8px;
}
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 10px;
  padding: 8px;
  color: #95a08a;
}
.page-trash {
  padding: 5px 8px;
  font-size: 11px;
  max-height: 150px;
  overflow-y: auto;
}
.page-trash summary {
  cursor: pointer;
}
.page-trash > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.page-trash button {
  font: inherit;
  border: 0;
  color: #6c805d;
  background: transparent;
  cursor: pointer;
}
/* The notebook frame fills the viewport; scrolling belongs to each document. */
.page-main {
  container-type: inline-size;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.page-main .app,
.page-main .app > main,
.page-main .workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.page-main .app {
  width: 100%;
  max-width: none;
  margin: 0;
}
.page-main .app > main {
  max-width: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.page-main .workspace {
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.page-main .workspace-bar {
  border-radius: 9px 9px 0 0;
  height: 36px;
  flex-shrink: 0;
  padding: 0 12px;
  gap: 8px;
}
.page-main .panes {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}
.page-main .source-pane,
.page-main .editor-pane {
  min-height: 0;
}
.page-main .source-body,
.page-main .rich-body {
  flex: 1;
  height: auto;
  min-height: 0;
  max-height: none;
  overscroll-behavior: contain;
}
.page-main .source-body textarea {
  padding: 20px;
  overscroll-behavior: contain;
}
.page-main .rich-body {
  padding: 0;
}
.page-main .tiptap {
  box-sizing: border-box;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding: 44px 44px 80px;
}
.page-main .block-handle {
  left: 8px;
  padding: 0;
}
.page-main .source-tools,
.page-main .format-toolbar {
  height: 36px;
  padding: 0 10px;
}
.page-main .file-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-main .read-mode {
  flex-shrink: 0;
}
.page-main .pane-footer {
  height: 26px;
  flex-shrink: 0;
  padding: 0 12px;
  font-size: 10px;
}
.page-heading {
  min-height: 48px;
  padding: 0 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page-breadcrumbs {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #a3ad98;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}
.page-breadcrumbs > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.page-breadcrumbs button,
.breadcrumb-current {
  font: inherit;
  background: transparent;
  border: 0;
  color: #7b8970;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.page-breadcrumbs .breadcrumb-current {
  display: block;
  color: #4f6542;
}
.breadcrumb-current::before {
  content: "/";
  margin-right: 7px;
  color: #a3ad98;
}
.page-heading-actions {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}
.page-heading-actions button,
.page-heading-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #7b8970;
  background: transparent;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
.page-heading-actions button:hover,
.page-heading-actions a:hover {
  background: #e9eddf;
}
.page-heading-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}
.save-state {
  font-size: 9px;
  color: #99a58d;
}
.page-main .status-detail {
  display: none;
}
.page-title-details {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  position: relative;
  color: #8b9087;
  font-size: 12px;
}
.page-title-area .page-title-details {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms;
}
.page-title-area:hover .page-title-details,
.page-title-area:focus-within .page-title-details,
.page-title-area:has(details[open]) .page-title-details {
  opacity: 1;
  pointer-events: auto;
}
.page-title-details .tag-appendix,
.page-title-details .page-backlinks {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: inherit;
}
.page-title-details summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 7px;
  border-radius: 5px;
  cursor: pointer;
  list-style: none;
}
.page-title-details summary::-webkit-details-marker {
  display: none;
}
.page-title-details summary:hover,
.page-title-details details[open] > summary {
  background: #eff1eb;
  color: #53664a;
}
.page-title-details summary:focus-visible {
  outline: 2px solid #879a73;
  outline-offset: 1px;
}
.page-title-details .tag-appendix > :not(summary),
.backlinks-list {
  position: absolute;
  top: 32px;
  left: 0;
  z-index: 15;
  width: min(360px, 100%);
  max-height: min(320px, 50dvh);
  overflow: auto;
  margin: 0;
  padding: 14px;
  background: #fbfcf8;
  border: 1px solid #d7dfce;
  border-radius: 7px;
  box-shadow: 0 8px 30px #26322120;
}
@media (hover: none), (max-width: 600px) {
  .page-title-area .page-title-details {
    opacity: 1;
    pointer-events: auto;
  }
}

.backlinks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.document-notices:not(:empty) {
  position: absolute;
  z-index: 10;
  bottom: 36px;
  left: 12px;
  right: 12px;
  max-height: 35%;
  overflow: auto;
}
.document-notices > * {
  margin: 4px 0 0;
}
.mobile-pages-toggle,
.sidebar-scrim {
  display: none;
}
.page-reference {
  font: inherit;
}
.tiptap .page-reference a {
  display: inline;
  color: #6d8354;
  text-decoration: none;
  border-bottom: 1px solid #d1ddc1;
  padding: 1px 2px;
  border-radius: 2px;
  background: #f2f6ea;
  cursor: pointer;
}
.page-reference.is-missing {
  color: #a18b66;
  border-bottom: 1px dashed #d9cbaa;
  font-size: 0.9em;
}
.page-embed {
  padding: 18px 20px;
  border: 1px solid #e3e6db;
  border-radius: 4px 9px 9px 4px;
  background: #fffefa;
  box-shadow:
    -3px 0 #f0f1e7,
    0 2px 5px #34462205;
}
.tiptap .embedded-page-title {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #546946;
  font:
    500 18px/1.4 Georgia,
    serif;
  text-decoration: none;
}
.embedded-page-title > span:first-child {
  color: #9ca98d;
  font:
    17px "DM Sans Variable",
    sans-serif;
}
.open-page-arrow {
  font:
    12px "DM Sans Variable",
    sans-serif;
  color: #acb49e;
  margin-left: auto;
}
.embedded-page-path {
  font:
    9px/1.6 "DM Mono",
    monospace;
  color: #a4ad98;
  margin: 7px 0 16px;
  overflow-wrap: anywhere;
}
.tiptap .embedded-document {
  min-height: 0;
  padding: 0;
  outline: 0;
  font-size: 12px;
}
.embedded-document .rich-block-actions {
  display: none;
}
.embedded-document .page-embed {
  padding: 14px;
  margin-bottom: 0;
}
.tiptap .embedded-document h2 {
  font-size: 20px;
}
.tiptap .embedded-document h3 {
  font-size: 18px;
}
.tiptap .embed-boundary {
  font-size: 12px;
  color: #919a84;
  margin: 10px 0;
}
.page-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #26322130;
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.page-picker {
  box-sizing: border-box;
  width: min(460px, 100%);
  background: #fbfcf8;
  border: 1px solid #d7dfce;
  border-radius: 10px;
  box-shadow: 0 20px 80px #26322128;
  padding: 20px;
  color: #516a43;
}
.picker-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 16px;
}
.picker-heading > button {
  border: 0;
  background: transparent;
  font-size: 23px;
  color: #8a9a7c;
  cursor: pointer;
}
.page-picker > input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #dce3d3;
  border-radius: 5px;
  font:
    12px "DM Sans Variable",
    sans-serif;
}
.picker-modes {
  display: flex;
  gap: 8px;
  margin: 14px 0 8px;
}
.picker-modes button {
  border: 1px solid #dce4d1;
  background: transparent;
  border-radius: 4px;
  font:
    11px "DM Sans Variable",
    sans-serif;
  padding: 6px 10px;
  color: #7e8e71;
  cursor: pointer;
}
.picker-modes button[aria-pressed="true"] {
  background: #e9efde;
  color: #536e41;
}
.picker-results {
  max-height: min(390px, 55vh);
  overflow: auto;
  margin-top: 12px;
}
.picker-results > button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #687e57;
  text-align: left;
  width: 100%;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
}
.picker-results > button:hover {
  background: #edf2e5;
}
.picker-results strong {
  font:
    500 12px "DM Sans Variable",
    sans-serif;
}
.picker-results small {
  color: #9aa58d;
  font:
    10px "DM Mono",
    monospace;
  overflow-wrap: anywhere;
}
.page-backlinks {
  color: #718762;
  font-size: 10px;
}
.page-backlinks summary {
  cursor: pointer;
}
.page-backlinks button {
  border: 0;
  background: transparent;
  font:
    12px "DM Sans Variable",
    sans-serif;
  color: #536e49;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.save-error,
.page-error {
  margin-top: 14px;
  padding: 14px;
  font-size: 12px;
  color: #99753d;
  background: #fbf3e6;
  border: 1px solid #e9d9be;
  border-radius: 5px;
}
.save-error {
  display: flex;
  align-items: center;
  gap: 12px;
}
.save-error button {
  font: inherit;
  padding: 7px;
  background: #fffdfa;
  border: 1px solid #dcccaf;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
}
.workspace-loading,
.missing-page {
  padding: 50px;
  color: #657b54;
}
@media (max-width: 1100px) {
  .page-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .page-main .tiptap {
    padding: 18px 20px 18px 40px;
  }
  .page-main .file-label {
    display: none;
  }
  .page-main .source-tools {
    justify-content: flex-end;
  }
}
@media (max-width: 900px) {
  .page-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    z-index: 40;
    transform: translateX(-100%);
    visibility: hidden;
  }
  .sidebar-open .page-sidebar {
    transform: none;
    visibility: visible;
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0 0 0 250px;
    z-index: 35;
    border: 0;
    background: #26322140;
  }
  .mobile-pages-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    top: 7px;
    left: 8px;
    height: 28px;
    width: 28px;
    border: 0;
    background: transparent;
    color: #637859;
  }
  .page-heading {
    padding-left: 36px;
  }
  .missing-page {
    padding: 56px 22px;
  }
}
@media (max-width: 700px) {
  .page-main .workspace-bar {
    height: auto;
    min-height: 36px;
    flex-wrap: wrap;
    padding: 5px 8px;
  }
}
.tiptap p:has(> .node-pageRef:only-child) .page-reference a {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 8px 5px;
  border-radius: 4px;
  font-weight: 500;
}
.tiptap p:has(> .node-pageRef:only-child) .page-reference a:hover {
  background: #f0f4e8;
}

.tree-page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 15px;
  line-height: 1;
}
.tree-page-icon svg {
  width: 15px;
  height: 15px;
}
.tree-page-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-brand > svg {
  flex-shrink: 0;
}
.sidebar-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  cursor: pointer;
}
.sidebar-search > svg {
  flex: 0 0 16px;
}
.sidebar-search > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  white-space: nowrap;
}
.sidebar-search .kbd-group {
  flex-shrink: 0;
}
.page-main .format-toolbar {
  overflow: visible;
}
.page-main .frontmatter-block {
  margin-bottom: 16px;
  padding-bottom: 0;
}

.document-view-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 2px;
  border: 1px solid #e0e5d7;
  border-radius: 5px;
}
.document-view-switch button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #849076;
  cursor: pointer;
}
.document-view-switch button:hover {
  background: #eff2e8;
}
.document-view-switch button[aria-pressed="true"] {
  background: #e5ebdc;
  color: #415d40;
}
.page-main .view-source .panes,
.page-main .view-document .panes {
  grid-template-columns: minmax(0, 1fr);
}
.page-main .view-source .editor-pane,
.page-main .view-document .source-pane {
  display: none;
}
.page-main .view-source .source-pane {
  border-right: 0;
}
@media (max-width: 700px) {
  .page-main .view-split .format-toolbar,
  .page-main .view-split .source-tools {
    flex-wrap: wrap;
    height: auto;
    min-height: 36px;
    padding: 4px;
  }
}

.tree-row-actions {
  display: flex;
  flex-shrink: 0;
  position: absolute;
  right: 3px;
  width: 48px;
  opacity: 0;
}
.page-tree-row:hover .tree-row-actions,
.page-tree-row:focus-within .tree-row-actions {
  opacity: 1;
  pointer-events: auto;
}
.page-tree-row:is(:hover, :focus-within) .tree-page-link {
  padding-right: 54px;
}
.tree-row-actions button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #7b8970;
  cursor: pointer;
}
.tree-row-actions button:hover {
  background: #dce3d2;
}
.tree-row-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}
.page-menu {
  position: fixed;
  z-index: 100;
  box-sizing: border-box;
  width: 228px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #d9dece;
  border-radius: 8px;
  background: #fffffc;
  box-shadow: 0 8px 32px #293b3225;
}
.page-menu button,
.page-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4b5a43;
  text-decoration: none;
  text-align: left;
  font:
    12px "DM Sans Variable",
    sans-serif;
  cursor: pointer;
}
.page-menu svg {
  flex-shrink: 0;
}
.page-menu :is(button, a):is(:hover, :focus-visible) {
  background: #edf2e5;
  outline: none;
}
.page-menu button:disabled {
  opacity: 0.4;
  cursor: default;
}
.page-menu .is-destructive {
  color: #ab5045;
}
.page-action-notice:empty {
  display: none;
}
.page-action-notice {
  position: absolute;
  z-index: 30;
  bottom: 16px;
  right: 16px;
  padding: 8px 12px;
  background: #edf2e5;
  border-radius: 6px;
  color: #4b5a43;
  font-size: 12px;
}
.page-rename {
  margin: auto;
  padding: 16px;
}
.page-rename::backdrop {
  background: #26322140;
}
.page-rename input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.page-heading-actions {
  gap: 10px;
  min-width: 0;
}
.page-heading-actions .edited-time {
  width: auto;
  padding: 4px;
  white-space: nowrap;
  font:
    11px "DM Sans Variable",
    sans-serif;
  color: #96a08e;
}
.page-heading-actions .page-share {
  width: auto;
  gap: 5px;
  padding: 4px 6px;
  font-size: 12px;
}
.page-header-controls {
  min-width: 0;
}
.page-header-controls .workspace-bar {
  border: 0;
  background: transparent;
  padding: 0;
  height: auto;
  min-height: 0;
}
.page-header-controls .document-status-actions {
  gap: 10px;
}
.page-header-controls .sync-state {
  font-size: 10px;
  max-width: 230px;
  white-space: normal;
  line-height: 1.3;
}
.page-header-controls .sync-state.synced {
  color: #8b987f;
}
.page-header-controls .document-view-switch {
  flex-shrink: 0;
}
.page-main .pane-footer {
  display: none;
}
.page-header-controls .status-dot {
  flex-shrink: 0;
}
.selection-toolbar {
  position: fixed;
  z-index: 80;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid #d9dece;
  border-radius: 6px;
  background: #fffffc;
  box-shadow: 0 4px 18px #293b3225;
}
.selection-toolbar button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #536e49;
  cursor: pointer;
}
.selection-toolbar button:hover,
.selection-toolbar button[aria-pressed="true"] {
  background: #edf2e5;
}
.panel-resizer {
  position: absolute;
  z-index: 45;
  width: 6px;
  top: 0;
  bottom: 0;
  transform: translateX(-3px);
  cursor: col-resize;
  touch-action: none;
}
.panel-resizer:hover,
.panel-resizer:focus-visible {
  background: #8fa27d55;
  outline: none;
}
.sidebar-resizer {
  left: var(--sidebar-width);
}
.chat-resizer {
  left: calc(var(--sidebar-width) + var(--chat-width));
}
@media (min-width: 901px) {
  .page-workspace {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }
  .page-workspace.chat-open {
    grid-template-columns: var(--sidebar-width) var(--chat-width) minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .panel-resizer {
    display: none;
  }
  .page-workspace.chat-open {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-open .chat-panel:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 30;
  }
  .page-heading {
    padding-left: 44px;
    padding-right: 10px;
    gap: 6px;
  }
  .page-main .tiptap {
    padding: 28px 28px 64px 40px;
  }
  .page-heading-actions {
    gap: 4px;
  }
  .page-heading-actions .edited-time {
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  .page-heading {
    flex-wrap: wrap;
    padding-block: 6px;
  }
  .page-breadcrumbs {
    flex: 1 0 calc(100% - 44px);
  }
  .page-heading-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .page-header-controls {
    margin-right: auto;
  }
}
@media (hover: none) {
  .tree-row-actions {
    opacity: 1;
    pointer-events: auto;
  }
  .tree-page-link {
    padding-right: 54px;
  }
}

@container (max-width: 620px) {
  .page-heading {
    flex-wrap: wrap;
    padding-block: 6px;
    gap: 6px;
  }
  .page-breadcrumbs {
    flex-basis: 100%;
  }
  .page-heading-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .page-header-controls {
    margin-right: auto;
  }
  .page-header-controls .sync-state {
    max-width: 100px;
  }
  .page-header-controls .sync-state.synced .save-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* dm-sans-latin-ext-wght-normal */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/assets/dm-sans-latin-ext-wght-normal-BOFOeGcA.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* dm-sans-latin-wght-normal */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/assets/dm-sans-latin-wght-normal-Xz1IZZA0.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* dm-mono-latin-ext-400-normal */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/dm-mono-latin-ext-400-normal-C2zvOubV.woff2) format('woff2'), url(/assets/dm-mono-latin-ext-400-normal-1aZr6b2b.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* dm-mono-latin-400-normal */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/dm-mono-latin-400-normal-4GdczIuU.woff2) format('woff2'), url(/assets/dm-mono-latin-400-normal--0xN8mdc.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* dm-mono-latin-ext-500-normal */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/dm-mono-latin-ext-500-normal-BtRyHRi6.woff2) format('woff2'), url(/assets/dm-mono-latin-ext-500-normal-Dw3M13d8.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* dm-mono-latin-500-normal */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/dm-mono-latin-500-normal-DRMDZjhP.woff2) format('woff2'), url(/assets/dm-mono-latin-500-normal-CN8Miw6E.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}:root {
  font-family:
    "DM Sans Variable",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #293b32;
  background: #f5f4ee;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  color-scheme: light;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
button {
  color: inherit;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid #6e9476;
  outline-offset: 3px;
}
button {
  transition: background 0.12s ease;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
a {
  color: inherit;
}
pre,
code,
textarea,
kbd {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
.app {
  max-width: 1760px;
  margin: auto;
}
.outline-button {
  border: 1px solid #d2d7c9;
  background: transparent;
  padding: 9px 13px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.outline-button:hover {
  background: #e8ecdf;
}
main {
  padding: 43px 52px 22px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -1.3px;
  margin: 12px 0 9px;
}
.workspace {
  border: 1px solid #d6dace;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 28px #34472c06;
}
.workspace-bar {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  background: #fdfdf9;
  border-bottom: 1px solid #dde1d4;
  gap: 10px;
}
.sync-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #58764d;
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79a766;
}
.status-detail {
  padding-left: 10px;
  margin-left: 6px;
  border-left: 1px solid #d9dece;
  color: #939d8b;
  font:
    10px "DM Mono",
    monospace;
}
.pending {
  color: #a0864d;
}
.pending .status-dot {
  background: #beaa75;
}
.error {
  color: #b96040;
}
.error .status-dot {
  background: #b96040;
}
.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
}
.source-pane,
.editor-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.source-pane {
  border-right: 1px solid #dde1d4;
  background: #fafbf7;
}
.source-tools {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  padding: 0 22px;
  border-bottom: 1px solid #e9ece3;
  color: #a0a78f;
}
.file-label {
  font:
    10px "DM Mono",
    monospace;
  color: #84906f;
}
.source-body,
.rich-body {
  height: 600px;
  max-height: 65vh;
  min-height: 360px;
}
.source-body {
  display: flex;
}
.source-body textarea {
  border: 0;
  outline: 0;
  resize: none;
  line-height: 1.9;
  background: transparent;
  padding: 24px 24px;
  width: 100%;
  height: 100%;
  font-size: 11.5px;
  color: #647a55;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  caret-color: #3c673c;
}
.source-body textarea:focus {
  box-shadow: inset 3px 0 #95b08745;
}
.pane-footer {
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  font-size: 10px;
  border-top: 1px solid #e6e9df;
  color: #9ba48f;
}
.pane-footer kbd {
  font-size: 10px;
  border: 1px solid #dce2d4;
  border-radius: 3px;
  padding: 0 4px;
  background: #f5f7f1;
  color: #6f8065;
  margin: 0 2px;
}
.format-toolbar {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1px solid #e9ece3;
  overflow-x: auto;
}
.format-toolbar select {
  border: 0;
  font-size: 10px;
  background: transparent;
  color: #7c8972;
  width: 83px;
  padding: 0;
  flex-shrink: 0;
}
.format-toolbar button {
  height: 27px;
  min-width: 26px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 4px;
  font-size: 14px;
  color: #687c5b;
}
.format-toolbar button:hover,
.format-toolbar button[aria-pressed="true"] {
  background: #eaf0e3;
  color: #335230;
}
.format-toolbar svg {
  width: 16px;
  height: 16px;
}
.code-icon {
  font-size: 10px;
}
.toolbar-divider {
  display: block;
  min-width: 1px;
  height: 15px;
  background: #e5eadd;
  margin: 0 5px;
}
.toolbar-end {
  flex: 1;
}
.rich-body {
  padding: 25px 42px 35px;
  overflow-y: auto;
  position: relative;
  background: #fff;
}
.tiptap {
  outline: none;
  line-height: 1.7;
  font-size: 13px;
  color: #4b5348;
  min-height: 100%;
  overflow-wrap: anywhere;
}
.tiptap h1,
.tiptap h2,
.tiptap h3,
.tiptap h4,
.tiptap h5,
.tiptap h6 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #314032;
  line-height: 1.3;
}
.tiptap h1 {
  font-size: 31px;
  letter-spacing: -0.7px;
  margin: 2px 0 17px;
}
.tiptap h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
  margin: 26px 0 10px;
}
.tiptap h3 {
  font-size: 18px;
  margin: 22px 0 9px;
}
.tiptap p {
  margin: 0 0 15px;
}
.tiptap strong {
  font-weight: 650;
  color: #364b35;
}
.tiptap ul,
.tiptap ol {
  padding-left: 22px;
  margin: 12px 0 19px;
}
.tiptap li {
  padding-left: 3px;
  margin: 4px 0;
}
.tiptap li p {
  margin: 0;
}
.tiptap li::marker {
  color: #819773;
}
.tiptap blockquote {
  border-left: 2px solid #a6b393;
  padding: 4px 0 4px 17px;
  margin: 21px 0;
  color: #818778;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
}
.tiptap blockquote p {
  margin: 0;
}
.tiptap a {
  color: #5c7c49;
  text-decoration-color: #acbe98;
  text-underline-offset: 3px;
}
.tiptap pre {
  padding: 17px;
  background: #f1f4ed;
  border: 1px solid #e1e7d8;
  border-radius: 6px;
  white-space: pre-wrap;
  font-size: 11px;
}
.tiptap code {
  font-size: 0.85em;
  background: #f0f2e9;
  color: #64804f;
  padding: 2px 4px;
  border-radius: 3px;
}
.tiptap pre code {
  padding: 0;
  background: transparent;
}
.tiptap hr {
  border: 0;
  border-top: 1px solid #e3e8dc;
  margin: 24px 0;
}
.tiptap img {
  max-width: 100%;
  border-radius: 5px;
}
.tiptap table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  margin: 14px 0 20px;
  font-size: 11px;
}
.tiptap th,
.tiptap td {
  position: relative;
  border: 1px solid #dfe5d7;
  vertical-align: top;
  padding: 9px 11px;
  min-width: 40px;
}
.tiptap th {
  background: #f3f6ed;
  font-weight: 600;
  color: #5e6e54;
  text-align: left;
}
.tiptap td p,
.tiptap th p {
  margin: 0;
}
.tiptap .selectedCell:after {
  background: #a0b69344;
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tiptap ul[data-type="taskList"] {
  list-style: none;
  padding: 0;
}
.tiptap li[data-checked] {
  display: flex;
  gap: 8px;
  padding: 0;
  align-items: flex-start;
}
.tiptap li[data-checked] > label {
  margin-top: 2px;
  user-select: none;
}
.tiptap li[data-checked] > div {
  flex: 1;
}
.tiptap input[type="checkbox"] {
  accent-color: #809c68;
  margin: 0;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.tiptap p.is-editor-empty:first-child:before {
  color: #aeb7a2;
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}
.opaque-block {
  margin: 18px 0;
  border: 1px solid #e5ddc9;
  background: #faf8f0;
  border-radius: 6px;
  padding: 12px 14px;
  cursor: default;
}
.opaque-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
  color: #ac9770;
  margin-bottom: 4px;
}
.tiptap .opaque-block code {
  background: none;
  font-size: 10px;
  color: #9b8660;
  padding: 0;
  white-space: pre-wrap;
}
.opaque-inline {
  font:
    10px "DM Mono",
    monospace;
  border: 1px solid #e5ddc9;
  background: #faf8f0;
  color: #9b8660;
  border-radius: 3px;
  padding: 2px 4px;
}
.ProseMirror-selectednode {
  outline: 2px solid #a2b98b;
}
.block-handle {
  position: absolute;
  left: 14px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  width: 21px;
  height: 27px;
  color: #a0ac93;
  font-size: 22px;
  cursor: grab;
  z-index: 2;
}
.block-handle:hover {
  background: #eef2e7;
  border-radius: 4px;
}
.diagnostics {
  background: #fff4e8;
  border: 1px solid #e6cba9;
  padding: 12px 17px;
  border-radius: 6px;
  margin-top: 12px;
  color: #975936;
  font-size: 12px;
}
.diagnostics p {
  margin: 3px 0;
}
.diagnostics strong {
  margin-right: 8px;
}
.readonly-notice {
  font-size: 11px;
  background: #fff4e8;
  border-radius: 4px;
  color: #a16a42;
  padding: 8px 12px;
  margin-bottom: 18px;
}
.has-error .tiptap {
  opacity: 0.65;
}
.slash-menu {
  position: fixed;
  z-index: 20;
  width: 270px;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid #d9dece;
  background: #fffffc;
  box-shadow: 0 12px 40px #293b3225;
  border-radius: 9px;
  padding: 6px;
}
.slash-heading {
  font-size: 9px;
  letter-spacing: 1px;
  color: #9ca78f;
  padding: 10px;
}
.slash-menu button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border-radius: 5px;
  padding: 8px;
}
.slash-menu button.selected,
.slash-menu button:hover {
  background: #edf2e5;
}
.command-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #dfe5d5;
  border-radius: 5px;
  background: #fff;
  font-size: 16px;
  color: #738761;
}
.slash-menu strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
.slash-menu small {
  font-size: 10px;
  color: #98a087;
  display: block;
  margin-top: 3px;
}
.no-results {
  padding: 10px;
  color: #98a087;
  font-size: 12px;
}
.table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  padding: 10px 0;
  margin-top: 10px;
}
.table-tools span {
  font-size: 11px;
  color: #899778;
  margin-right: 9px;
}
.table-tools button {
  border: 1px solid #d8dfcd;
  background: #fbfcf6;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 10px;
}
.url-dialog {
  border: 1px solid #d8dfcd;
  border-radius: 10px;
  padding: 27px;
  color: #3e5139;
  width: 400px;
  box-shadow: 0 20px 80px #293b3230;
}
.url-dialog::backdrop {
  background: #293b3240;
  backdrop-filter: blur(2px);
}
.url-dialog h2 {
  font:
    27px Georgia,
    serif;
  margin: 0 0 12px;
}
.url-dialog p {
  font-size: 12px;
  color: #8b967e;
  line-height: 1.6;
}
.url-dialog label {
  display: block;
  font-size: 11px;
  margin: 20px 0 7px;
}
.url-dialog input {
  width: 100%;
  border: 1px solid #d8dfcd;
  border-radius: 5px;
  padding: 10px;
  background: #fbfcf8;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.primary-button {
  border: 0;
  background: #58724a;
  color: #fff;
  border-radius: 5px;
  padding: 9px 15px;
  font-size: 12px;
}
.primary-button:hover {
  background: #3f5b32;
}
@media (min-width: 1500px) {
  .rich-body {
    padding-left: 60px;
    padding-right: 60px;
  }
  .block-handle {
    left: 30px;
  }
  .source-body textarea {
    font-size: 12px;
    padding: 27px 32px;
  }
  .source-body,
  .rich-body {
    height: 660px;
  }
}
@media (max-width: 1050px) {
  main {
    padding: 30px 25px 10px;
  }
  .rich-body {
    padding: 22px 28px;
  }
  .block-handle {
    left: 5px;
  }
  .source-body textarea {
    padding: 22px 17px;
    font-size: 10.5px;
  }
  h1 {
    font-size: 30px;
  }
  .format-toolbar {
    padding: 0 7px;
  }
  .format-toolbar button {
    min-width: 23px;
  }
  .toolbar-divider {
    margin: 0 3px;
  }
  .source-tools {
    padding: 0 17px;
  }
  .source-tools > span:last-child {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  main {
    padding: 26px 15px 8px;
  }
  h1 {
    font-size: 29px;
  }
  .panes {
    grid-template-columns: 1fr;
  }
  .source-pane {
    border-right: 0;
    border-bottom: 1px solid #dde1d4;
  }
  .source-body {
    height: 340px;
    min-height: 280px;
    max-height: 50vh;
  }
  .rich-body {
    height: 530px;
    max-height: 70vh;
  }
  .source-body textarea {
    font-size: 11.5px;
  }
  .workspace-bar {
    padding: 0 12px;
  }
  .status-detail {
    display: none;
  }
  .format-toolbar {
    padding: 0 14px;
  }
  .toolbar-divider {
    margin: 0 4px;
  }
  .format-toolbar button {
    min-width: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.editor-content {
  height: 100%;
}

.table-tools-container {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.search-passage-match {
  background: #f6e5a7;
  color: inherit;
  border-radius: 2px;
}
.rich-block {
  position: relative;
  margin: 26px 0;
  border-radius: 8px;
  font:
    13px/1.6 "DM Sans Variable",
    sans-serif;
  color: #354637;
}
.tiptap .ProseMirror-selectednode:has(> .rich-block) {
  outline: none;
}
.rich-block-actions {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 0;
  border-radius: 7px;
  background: #fffffff5;
  box-shadow: 0 2px 8px #20231d12;
  opacity: 0;
  transition: opacity 120ms;
}
.rich-block:hover > .rich-block-actions,
.rich-block:focus-within > .rich-block-actions {
  opacity: 1;
}
.rich-block-actions button,
.rich-block-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 27px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #687262;
  text-decoration: none;
  font:
    11px "DM Sans Variable",
    sans-serif;
}
.rich-block-actions button:hover,
.rich-block-actions a:hover {
  background: #f0f2ed;
}
.rich-block-actions .node-remove {
  font-size: 19px;
}
.rich-block-content {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.property-remove {
  border: 0;
  background: transparent;
  color: #85907b;
  padding: 2px 5px;
  font-size: 18px;
  line-height: 1;
}
.node-remove:hover,
.property-remove:hover {
  color: #a14c3e;
}
.block-settings {
  min-width: 0;
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid #dfe4d8;
  border-radius: 7px;
  background: #f8faf5;
}
.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #65765a;
  font-size: 12px;
}
.settings-heading button {
  font: inherit;
  color: #566b4b;
  border: 1px solid #d6dfcb;
  border-radius: 4px;
  background: white;
  padding: 4px 9px;
}
.data-block {
  padding: 16px 18px;
  background: #fafbf7;
  border: 1px solid #e3e7dd;
}
.data-label {
  font:
    11px/1.5 "DM Mono",
    monospace;
  color: #89957c;
  margin-bottom: 8px;
}
.rich-block input,
.rich-block textarea,
.rich-block select {
  font: inherit;
  color: #344837;
  background: #fff;
  border: 1px solid #dce3d6;
  border-radius: 4px;
  padding: 6px 8px;
  min-width: 0;
}
.rich-block input:focus,
.rich-block textarea:focus,
.rich-block select:focus {
  outline: 2px solid #b2c79f;
  outline-offset: 1px;
}
.rich-block button {
  cursor: pointer;
}
.rich-block button:disabled,
.rich-block input:disabled,
.rich-block textarea:disabled,
.rich-block select:disabled {
  opacity: 0.5;
  cursor: default;
}
.rich-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
  min-width: 0;
}
.rich-field > label {
  font-size: 11px;
  color: #7c8972;
}
.rich-field input,
.rich-field textarea {
  width: 100%;
  box-sizing: border-box;
}
.rich-field textarea {
  font:
    11px/1.6 "DM Mono",
    monospace;
  resize: vertical;
}
.field-error {
  color: #a34336;
  font-size: 11px;
  white-space: pre-wrap;
}
.property-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  border-bottom: 1px solid #eef1e9;
  padding: 5px 0;
}
.property-row .rich-field {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(80px, 30%) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
}
.property-row .rich-field > label {
  padding-top: 7px;
  overflow-wrap: anywhere;
}
.property-row .field-error {
  grid-column: 2;
}
.property-row > select {
  width: 75px;
  font-size: 10px;
  color: #7c8972;
  padding: 7px 4px;
  border-color: transparent;
  background: #f7f9f4;
}
.property-remove {
  margin-top: 7px;
}
.property-checkbox,
.property-null {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(80px, 30%) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 32px;
  font-size: 11px;
  color: #7c8972;
}
.property-checkbox input {
  justify-self: start;
}
.property-add {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.property-add input {
  flex: 1;
  width: 50px;
  border-style: dashed;
}
.property-add button,
.embed-expand {
  background: #f3f6ed;
  color: #5b714d;
  border: 1px solid #d9e2cf;
  border-radius: 4px;
  font: inherit;
  padding: 6px 10px;
}
.raw-yaml {
  margin-top: 12px;
  font-size: 11px;
  color: #7f8c73;
}
.raw-yaml > summary,
.card-transcript > summary,
.audio-transcript > summary {
  cursor: pointer;
}
.tiptap .media-figure {
  margin: 0;
}
.image-surface {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.tiptap img.captioned-image {
  display: block;
  margin: 0;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 6px;
}
.image-alt {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 5px;
  background: #242a24e8;
  color: white;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.image-alt b {
  font-size: 9px;
  opacity: 0.6;
  margin-right: 5px;
}
.image-surface:hover .image-alt,
.image-surface:focus .image-alt {
  opacity: 1;
}
.media-figure figcaption,
.tiptap .media-caption {
  margin: 9px 0 0;
  color: #85907e;
  font:
    12px/1.6 "DM Sans Variable",
    sans-serif;
  text-align: center;
  white-space: pre-wrap;
}
.tiptap .embed-empty {
  font-size: 12px;
  padding: 32px 16px;
  background: #f5f6f0;
  border: 1px dashed #d9dfd2;
  border-radius: 6px;
  color: #819175;
  margin: 0;
  text-align: center;
}
.video-container {
  aspect-ratio: 16/9;
  background: #24272d;
  border-radius: 7px;
  overflow: hidden;
}
.video-container iframe,
.load-video {
  width: 100%;
  height: 100%;
  border: 0;
}
.load-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(ellipse at 25% 10%, #414051, #22242a 75%);
  color: #eeeef0;
}
.load-video > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff1f;
  font-size: 18px;
  margin-bottom: 9px;
  padding-left: 2px;
}
.load-video:hover > span {
  background: #e54444;
}
.load-video small {
  font-size: 11px;
  color: #a8a8b4;
}
.rich-block audio,
.rich-block video {
  width: 100%;
  display: block;
}
.rich-block video {
  max-height: 420px;
  border-radius: 6px;
  background: #24272d;
}
.audio-transcript {
  color: #7a8771;
  font-size: 11px;
  margin-top: 10px;
}
.tiptap .audio-transcript p {
  white-space: pre-wrap;
  font-size: 12px;
  border-left: 2px solid #e3e7dc;
  padding-left: 14px;
  color: #52614a;
}
.copy-status {
  display: block;
  text-align: right;
  color: #748467;
  font-size: 10px;
  margin-top: 5px;
}
.html-container {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}
.html-container iframe {
  width: 100%;
  display: block;
  border: 0;
  background: white;
}
.html-container.is-collapsed:after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(transparent, #f4f6ef);
}
.embed-expand {
  margin-top: 8px;
  width: 100%;
}
.sizing-fields {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.sizing-fields > * {
  flex: 1;
  min-width: 0;
}
.sizing-fields > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
}
.card-block {
  border: 1px solid #e3e0ec;
  background: white;
  box-shadow:
    0 3px 8px #33304206,
    0 1px 2px #33304207;
}
.card-block .block-settings {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0 0 8px 8px;
}
.external-card {
  padding: 19px 22px;
}
.card-topline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #95929f;
}
.source-mark {
  font-size: 17px;
  line-height: 1;
}
.source-mark.linear {
  color: #8070c9;
}
.card-identifier {
  font:
    10px "DM Mono",
    monospace;
  margin-left: 5px;
  color: #9a94af;
}
.linear-block {
  border-left: 3px solid #9280cf;
  background: linear-gradient(110deg, #fbfaff, #fff 65%);
}
.tiptap .external-card h3 {
  margin: 12px 0;
  font:
    550 17px/1.4 "DM Sans Variable",
    sans-serif;
  color: #40394f;
}
.tiptap .external-card p {
  margin: 14px 0;
  font-size: 12px;
  white-space: pre-wrap;
  color: #72707b;
}
.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-pills span {
  padding: 2px 8px;
  background: #efebf8;
  color: #8571b8;
  font-size: 10px;
  border-radius: 5px;
}
.card-pills span:first-child:before {
  content: "◔";
  margin-right: 5px;
}
.card-metadata {
  color: #8d9280;
  font-size: 11px;
}
.card-provenance {
  display: block;
  margin-top: 17px;
  font-size: 10px;
  color: #aaa6af;
}
.tiptap .external-card a {
  font-size: 11px;
  color: #8c7eac;
  text-decoration: none;
}
.granola-block {
  background: #fffef9;
  border-color: #e6e4d9;
  border-radius: 3px 12px 12px 3px;
  box-shadow:
    -3px 0 #f4f1e6,
    -4px 0 #e9e5d9,
    0 3px 8px #39391b08;
}
.granola .source-mark {
  color: #8d9d68;
}
.tiptap .granola h3 {
  font:
    500 23px/1.3 Georgia,
    serif;
  color: #424c35;
}
.tiptap .granola h4 {
  margin: 20px 0 6px;
  font:
    500 11px "DM Sans Variable",
    sans-serif;
  color: #8a9277;
  letter-spacing: 0.04em;
}
.tiptap .granola p {
  color: #6d7460;
}
.granola .card-provenance {
  color: #a2a58f;
}
.card-transcript {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #ececde;
  color: #889273;
  font-size: 11px;
}
.read-mode {
  display: flex;
  gap: 3px;
}
.read-mode button {
  font:
    10px "DM Sans Variable",
    sans-serif;
  border: 0;
  padding: 4px 8px;
  border-radius: 3px;
  color: #8b967e;
  background: transparent;
  cursor: pointer;
}
.read-mode button[aria-pressed="true"] {
  color: #4d6740;
  background: #eaf0e1;
}
.frontmatter-notice,
.paste-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e0dfcc;
  padding: 10px 15px;
  background: #f9f7ed;
  border-radius: 6px;
  margin-top: 12px;
  color: #88744b;
  font-size: 12px;
}
.frontmatter-notice button,
.paste-offer button {
  font: inherit;
  padding: 4px 8px;
  border: 1px solid #d5dbca;
  border-radius: 4px;
  color: #5e754e;
  background: #f6f9f0;
  cursor: pointer;
}
.paste-offer {
  position: sticky;
  bottom: 16px;
  z-index: 6;
  background: #eef4e5;
  color: #597347;
  box-shadow: 0 4px 18px #33492812;
}
.tag-appendix {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dce3d3;
  border-radius: 6px;
  color: #7b8e69;
  font-size: 12px;
  background: #fafbf6;
}
.tag-appendix summary {
  cursor: pointer;
  color: #527043;
}
.tag-appendix dl {
  margin-bottom: 0;
}
.tag-appendix dl > div {
  display: flex;
  padding: 7px 0;
  gap: 16px;
  border-bottom: 1px solid #e9eee1;
}
.tag-appendix dt {
  width: 105px;
  flex-shrink: 0;
}
.tag-appendix dd {
  margin: 0;
}
.tag-appendix dd small {
  display: block;
  color: #9aa78a;
}
@media (max-width: 600px) {
  .rich-block-actions {
    opacity: 1;
    top: 5px;
    right: 5px;
  }
  .external-card {
    padding: 18px 15px;
  }
  .card-topline {
    padding-right: 54px;
  }
  .property-row .rich-field {
    display: flex;
  }
  .property-row > select {
    margin-top: 21px;
    width: 64px;
  }
  .property-remove {
    margin-top: 28px;
  }
  .property-checkbox,
  .property-null {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 3px;
  }
  .property-checkbox input {
    margin-top: 6px;
  }
  .sizing-fields {
    flex-wrap: wrap;
  }
  .frontmatter-notice,
  .paste-offer {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (hover: none) {
  .rich-block-actions {
    opacity: 1;
  }
}

/* Page properties stay at the document's leading position; source remains YAML. */
.frontmatter-block {
  margin: 0 0 28px;
  padding: 4px 0 22px;
  border: 0;
  border-radius: 0;
}
.frontmatter-block .canvas-page-title {
  margin: 10px 0 18px;
}
.canvas-page-title > label {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.frontmatter-block .canvas-page-title textarea {
  border: 0;
  background: transparent;
  padding: 0;
  color: #303c35;
  font:
    650 clamp(26px, 3vw, 40px) / 1.2 "DM Sans Variable",
    sans-serif;
  letter-spacing: -1.2px;
  box-shadow: none;
  resize: none;
  max-height: none;
  overflow: hidden;
}
.frontmatter-block .canvas-page-title textarea:focus {
  outline: none;
}
.properties-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 5px 0;
  margin-bottom: 10px;
  color: #899087;
  font:
    12px "DM Sans Variable",
    sans-serif;
  cursor: pointer;
}
.properties-toggle span {
  margin-left: 5px;
}
.frontmatter-block:not(.is-managing) .property-row > select,
.frontmatter-block:not(.is-managing) .property-remove,
.frontmatter-block:not(.is-managing) .property-add,
.frontmatter-block:not(.is-managing) .raw-yaml,
.frontmatter-block:not(.is-managing) .format-property {
  display: none;
}
.frontmatter-block .property-row {
  border: 0;
  padding: 2px 0;
}
.frontmatter-block .property-row input:not([type="checkbox"]),
.frontmatter-block .property-row textarea {
  background: transparent;
  border-color: transparent;
  font-size: 13px;
  color: #414a40;
}
.frontmatter-block .property-row input:hover,
.frontmatter-block .property-row input:focus,
.frontmatter-block .property-row textarea:hover {
  background: #f4f3ed;
}
.frontmatter-block .property-row .rich-field > label,
.frontmatter-block .property-checkbox > span {
  font-size: 12px;
  font-weight: 400;
  color: #909489;
}
.page-icon-picker {
  position: relative;
  width: fit-content;
}
.page-icon-button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  min-height: 54px;
  font:
    46px/1.1 "Apple Color Emoji",
    "Segoe UI Emoji",
    sans-serif;
  cursor: pointer;
}
.page-icon-button:hover {
  background: #eeeee7;
}
.page-icon-button.is-empty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font:
    12px "DM Sans Variable",
    sans-serif;
  color: #9a9c91;
  min-height: 28px;
  padding: 2px 5px;
}
.icon-popover {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 25;
  width: min(280px, 65vw);
  border: 1px solid #ddded5;
  border-radius: 10px;
  padding: 12px;
  background: #fffefb;
  box-shadow: 0 6px 30px #262f2420;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-bottom: 10px;
}
.emoji-grid button {
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 23px;
  padding: 4px;
}
.emoji-grid button:hover {
  background: #f0ede5;
}
.icon-custom {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.icon-custom input {
  min-width: 0;
}
.icon-popover > button,
.icon-custom button {
  border: 0;
  background: #f2f1e9;
  border-radius: 4px;
  color: #646f5d;
  padding: 5px 8px;
  font:
    11px "DM Sans Variable",
    sans-serif;
  white-space: nowrap;
}
.collaboration-carets__caret {
  border-left: 1px solid;
  border-right: 1px solid;
  margin-left: -1px;
  margin-right: -1px;
  pointer-events: none;
  position: relative;
  word-break: normal;
}
.collaboration-carets__label {
  border-radius: 3px 3px 3px 0;
  color: white;
  font:
    10px/1.4 "DM Sans Variable",
    sans-serif;
  left: -1px;
  padding: 2px 5px;
  position: absolute;
  top: -1.8em;
  white-space: nowrap;
  user-select: none;
}

/* Inline properties and media stay quiet while editing; focus reveals controls. */
.image-surface:focus-visible,
.frontmatter-block .property-row input:focus,
.frontmatter-block .property-row textarea:focus,
.frontmatter-block .property-row select:focus {
  outline: none;
}
.image-surface:focus-visible .image-alt {
  opacity: 1;
}

.app-widget iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
}
.app-connections {
  border: 0;
  margin: auto;
  color: var(--ink);
  width: min(540px, calc(100vw - 40px));
}
.app-connections::backdrop {
  background: #26232344;
}
.connection-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.connection-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.connection-account small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.app-chooser {
  padding-right: 72px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
}
.app-chooser label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-chooser button {
  border: 0;
  background: #eef2e7;
  padding: 8px 12px;
  border-radius: 5px;
  color: #576c4a;
}

.widget-surface {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.widget-surface:modal {
  position: fixed;
  inset: 24px;
  margin: auto;
  width: min(1400px, calc(100vw - 48px));
  height: calc(100dvh - 48px);
  background: var(--paper, #fffefa);
  border-radius: 12px;
  box-shadow: 0 24px 90px #29261c33;
  overflow: hidden;
}
.widget-surface::backdrop {
  background: #28251f66;
}
.widget-surface header:not([hidden]) {
  height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 14px var(--font-body, system-ui);
}
.widget-surface header button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.app-widget .widget-surface:modal iframe {
  height: calc(100% - 54px) !important;
}
/* Float controls above the app without reserving document space or covering its buttons. */
.app-widget {
  margin: 12px 0;
  padding: 0;
}
.app-widget > .rich-block-actions {
  top: 0;
  right: 8px;
  transform: translateY(-100%);
}

.properties-toggle > svg,
.page-icon-button.is-empty > svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.connection-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.connection-overlay::backdrop {
  background: transparent;
}
.connection-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.connection-controls input {
  flex: 1;
  min-width: 150px;
}
.connection-account > span {
  flex: 1;
}
.code-block {
  position: relative;
}
.code-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}
.code-actions button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: var(--canvas, #fff);
  color: #74736f;
  border-radius: 5px;
  padding: 4px 7px;
  opacity: 0;
}
.code-block:hover .code-actions button,
.code-block:focus-within .code-actions button {
  opacity: 1;
}
.snippet-runner {
  width: min(820px, 90vw);
}
.snippet-runner textarea {
  width: 100%;
  min-height: 220px;
  padding: 12px;
  font:
    13px/1.6 "DM Mono",
    monospace;
  border: 0;
  background: #f6f5f2;
  resize: vertical;
}
.snippet-runner fieldset {
  border: 0;
  padding: 12px 0;
}
.snippet-output {
  margin-top: 16px;
  max-height: 300px;
  overflow: auto;
}
.snippet-output pre {
  font:
    12px/1.6 "DM Mono",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.snippet-output [data-level="error"] {
  color: #a33;
}
.chat-connect-account {
  border: 0;
  border-radius: 6px;
  padding: 7px 12px;
  background: #e7e4f0;
  color: #62557d;
  cursor: pointer;
  font: inherit;
}
.chat-connect-account:hover {
  background: #ddd7e9;
}

.chat-connection-action {
  display: inline-block;
  margin: 6px 8px 0 0;
}
.chat-connect-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chat-connect-account small {
  font-size: 10px;
  opacity: 0.75;
}
.chat-connect-account:disabled {
  cursor: default;
}
.chat-connect-account[data-state="completed"] {
  background: #e6eddf;
  color: #4c6940;
}
.chat-connect-account[data-state="connecting"] {
  background: #eeeaf4;
}
