/* Shared site tokens feed the original notes component variables. */
.funify-notes-page {
  --notes-page-width: min(1440px, calc(100% - 64px));
  --notes-hero-violet: #793cff;
  --gh-canvas: var(--color-surface);
  --gh-canvas-subtle: color-mix(in srgb, var(--color-surface) 88%, var(--color-border));
  --gh-canvas-inset: var(--color-background);
  --gh-border: var(--color-border);
  --gh-fg: var(--color-text);
  --gh-muted: var(--color-muted);
  --gh-accent: var(--color-primary);
  --gh-accent-subtle: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
  --gh-shadow: 0 10px 30px #09172f18;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
}

.funify-notes-page .site-header {
  width: var(--notes-page-width);
  max-width: none;
  height: 56px;
  padding-inline: 0;
  background: transparent;
  border: 0;
}

.funify-notes-page .site-header::before {
  display: none;
}

.funify-notes-page .site-header .brand {
  flex: 0 0 auto;
  gap: 8px;
  width: auto;
  height: auto;
}

.funify-notes-page .site-header .brand img {
  width: 32px;
  height: 32px;
}

.funify-notes-page .site-header .brand strong {
  display: block;
  color: #00a9e8;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .funify-notes-page .site-header {
    width: calc(100% - 32px);
  }
}

@media (max-width: 768px) {
  .funify-notes-page {
    --notes-page-width: 100%;
  }

  .funify-notes-page .site-header .brand {
    position: static;
    max-width: none;
    height: auto;
    margin-left: 0;
  }

  .funify-notes-page .site-header .brand img {
    width: 23px;
    height: 23px;
  }

  .funify-notes-page .site-header .brand strong {
    font-size: 17px;
  }

  .funify-notes-page .site-header .tagline {
    display: none;
  }

  .funify-notes-page .site-header .menu {
    right: 0;
  }
}

.funify-notes-page :is(input, select, textarea, button) {
  font: inherit;
}

.funify-notes-page [hidden] {
  display: none !important;
}

/* Notes-specific workspace, editor, charts, modals and print styles from backup. */
.notes-main {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 0;
}

.notes-main::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 64px;
  height: 16px;
  z-index: 29;
  background: var(--gh-canvas);
  pointer-events: none;
}

.notes-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.notes-sidebar,
.notes-panel,
.notes-empty,
.notes-view,
.notes-editor {
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-sidebar {
  position: sticky;
  top: 80px;
  overflow: hidden;
}

.notes-sidebar-head,
.notes-panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gh-border);
  background: var(--gh-canvas-subtle);
}

.notes-panel-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--gh-fg);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.notes-sidebar-title,
.notes-panel-title {
  margin: 0;
  color: var(--gh-fg);
  font-size: 1rem;
  line-height: 1.35;
}

.notes-panel-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.notes-search-field {
  position: relative;
  top: 6px;
  width: 100%;
  margin-top: 6px;
}

.notes-search-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 18px;
  color: var(--gh-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.notes-search {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 4px 38px 4px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  outline: none;
  background: var(--gh-canvas);
  color: var(--gh-fg);
}

.notes-search:focus,
.notes-title-input:focus {
  border-color: var(--gh-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gh-accent), transparent 78%);
}

.notes-create-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 3px;
  border: 1px solid var(--gh-border);
  border-radius: 9px;
  background: var(--gh-canvas-subtle);
}

.notes-create-actions::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 16px;
  background: var(--gh-border);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.notes-create-actions .notes-btn {
  gap: 7px;
  padding: 7px 5px;
  border-color: transparent;
  background: transparent;
  color: var(--gh-muted);
}

.notes-create-actions .notes-btn:hover {
  background: var(--gh-accent-subtle);
  color: var(--gh-accent);
}

.notes-create-actions .node-icon {
  font-size: 14px;
  line-height: 1;
}

.notes-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.notes-button-grid.single {
  grid-template-columns: 1fr;
}

.notes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
  color: var(--gh-fg);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.notes-panel-actions .notes-btn {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 0.84rem;
}

.notes-btn:hover,
.notes-btn.active {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
  color: var(--gh-accent);
}

.notes-btn:focus-visible,
.notes-btn.is-program-focus {
  outline: 2px solid var(--gh-accent);
  outline-offset: 2px;
}

.notes-btn.primary {
  border-color: var(--gh-accent);
  background: var(--gh-accent);
  color: #ffffff;
}

.notes-btn.danger {
  color: #cf222e;
}

.notes-btn.ok {
  color: #1a7f37;
}

[data-theme='dark'] .notes-btn.danger {
  color: #ff7b72;
}

[data-theme='dark'] .notes-btn.ok {
  color: #7ee787;
}

.notes-tree-wrap {
  max-height: calc(100dvh - 390px);
  min-height: 300px;
  overflow: auto;
  padding: 8px;
}

.notes-tree,
.tree-node,
.tree-children {
  gap: 0px;
}

.notes-tree {
  display: grid;
}

.tree-node {
  display: grid;
}

.tree-children {
  display: grid;
  margin-left: 10px;
  padding-left: 4px;
  border-left: 1px solid var(--gh-border);
}

.tree-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
  align-items: center;
  min-height: 10px;
  padding: 1px 1px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--gh-fg);
  cursor: pointer;
}

.tree-item.is-highlighted .node-title-text {
  color: var(--gh-accent);
  font-weight: 800;
}

.tree-menu-button {
  width: 28px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--gh-muted);
  cursor: pointer;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}

.tree-menu-button:hover {
  border-color: var(--gh-border);
  background: var(--gh-canvas);
  color: var(--gh-accent);
}

.tree-context-menu {
  position: fixed;
  z-index: 200;
  display: grid;
  width: max-content;
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--gh-border);
  border-radius: 10px;
  background: var(--gh-canvas);
  box-shadow: var(--gh-shadow);
}

.tree-context-menu button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gh-fg);
  text-align: center;
  cursor: pointer;
}

.tree-context-menu button:hover {
  background: var(--gh-canvas-subtle);
  color: var(--gh-accent);
}

.tree-item:hover {
  background: var(--gh-canvas-subtle);
}

.tree-item.active {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
}

.tree-item[data-tree-area='funify'][data-page-type='folder'] .node-title-text {
  color: var(--gh-accent);
}

.tree-item[data-drop-position='inside'] {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
}

.tree-item[data-drop-position='before'],
.tree-item[data-drop-position='after'] {
  position: relative;
}

.tree-item[data-drop-position='before']::before,
.tree-item[data-drop-position='after']::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gh-accent);
}

.tree-item[data-drop-position='before']::before {
  top: -2px;
}

.tree-item[data-drop-position='after']::after {
  bottom: -2px;
}

.caret {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--gh-muted);
}

.caret:hover {
  background: var(--gh-canvas);
  color: var(--gh-accent);
}

.node-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.9rem;
}

.node-icon {
  color: var(--gh-muted);
  flex: 0 0 auto;
}

.node-icon-funify-folder {
  color: var(--gh-accent);
}

.node-icon-funify-folder svg {
  display: block;
  width: 16px;
  height: 16px;
}

.node-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-badge {
  padding: 2px 7px;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: var(--gh-canvas);
  color: var(--gh-muted);
  font-size: 0.72rem;
}

.notes-sidebar-footer {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--gh-border);
  color: var(--gh-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.notes-panel {
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-panel-head {
  position: sticky;
  top: 80px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  border-top: 0;
  border-bottom: 1px solid var(--gh-border);
  border-radius: 6px 6px 0 0;
  background: var(--gh-canvas-subtle);
}

.notes-panel-head::before {
  content: none;
}

.notes-panel-head.is-stuck::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--gh-border);
  pointer-events: none;
}

.notes-panel-actions,
.notes-panel-details,
.notes-meta-row,
.notes-formatbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.notes-document {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.notes-panel-details {
  grid-column: 1 / -1;
  min-width: 0;
}

.funify-notes-page .notes-title-input {
  flex: 1 1 220px;
  width: 0;
  min-width: 0;
  min-height: 32px;
  padding: 4px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  background: transparent;
  color: var(--gh-fg);
  font: inherit;
}

.funify-notes-page .notes-title-input:disabled {
  color: var(--gh-fg);
  opacity: 1;
  -webkit-text-fill-color: var(--gh-fg);
}

.notes-meta-row {
  width: 100%;
  color: var(--gh-muted);
  font-size: 0.84rem;
}

.notes-status {
  margin-left: auto;
  font-size: 1.5em;
  text-align: right;
}

.notes-status.ok {
  color: #1a7f37;
}

.notes-status.warn {
  color: #9a6700;
}

[data-theme='dark'] .notes-status.ok {
  color: #7ee787;
}

[data-theme='dark'] .notes-status.warn {
  color: #d29922;
}

.notes-formatbar {
  position: sticky;
  top: 162px;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: start;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
  overflow: visible;
  box-shadow: 0 8px 18px rgba(140, 149, 159, 0.16);
}

.notes-formatbar[hidden] {
  display: none;
}

.notes-formatbar.is-html-mode {
  opacity: 0.82;
}

.notes-formatbar.is-html-mode :disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.notes-formatbar.is-html-mode #htmlModeBtn {
  opacity: 1;
}

.notes-divider-panel {
  min-width: 74px;
  width: max-content;
  padding: 4px;
}

.notes-divider-panel.is-floating {
  width: 74px;
  transform: none;
}

.notes-divider-options {
  display: grid;
  gap: 2px;
}

.notes-divider-options .notes-btn {
  justify-content: start;
  min-height: 24px;
  padding: 2px 7px;
  font-size: 0.82rem;
}

.notes-editor hr.is-selected {
  outline: 2px solid var(--gh-accent);
  outline-offset: 4px;
}

.notes-toolbar-group {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 1px;
  width: fit-content;
  max-width: 100%;
  min-width: fit-content;
  padding: 3px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-toolbar-select {
  height: 30px;
  min-width: 64px;
  padding: 0 22px 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  background: transparent;
  color: var(--gh-muted);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.notes-toolbar-select.font {
  min-width: 126px;
}

.notes-toolbar-select.tiny {
  min-width: 54px;
  width: 58px;
}

.notes-font-input {
  width: 168px;
  cursor: text;
  border-color: var(--gh-border);
  background: color-mix(in oklab, var(--gh-canvas), var(--gh-canvas-subtle) 35%);
}

.notes-font-options {
  position: fixed;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: var(--gh-canvas);
  box-shadow: 0 16px 36px rgba(31, 35, 40, 0.18);
}

.notes-font-options[hidden] {
  display: none;
}

.notes-font-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gh-fg);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.notes-font-option:hover,
.notes-font-option:focus {
  background: var(--gh-canvas-subtle);
  outline: none;
}

.notes-font-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-font-option small {
  flex: 0 0 auto;
  color: var(--gh-muted);
  font-size: 0.72rem;
}

.notes-font-empty {
  padding: 10px 8px;
  color: var(--gh-muted);
  font-size: 0.84rem;
}

.notes-local-font-btn {
  width: 34px;
  min-width: 34px;
  font-weight: 700;
}

.notes-toolbar-select.small {
  border-color: var(--gh-border);
  background: color-mix(in oklab, var(--gh-canvas), var(--gh-canvas-subtle) 35%);
  min-width: 38px;
  width: 42px;
  padding: 0 14px 0 5px;
}

.notes-toolbar-select.quote {
  min-width: 76px;
  width: 86px;
  padding-right: 18px;
}

.notes-color-input {
  width: 22px;
  height: 22px;
  padding: 2px;
  border: 1px solid var(--gh-border);
  border-radius: 5px;
  background: var(--gh-canvas);
  cursor: pointer;
}

.notes-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.notes-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 3px;
}

.notes-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 3px;
}

.notes-font-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 28px;
  color: var(--gh-muted);
  font-weight: 800;
  line-height: 1;
}

.notes-toolbar-select:hover,
.notes-toolbar-select:focus {
  border-color: var(--gh-border);
  background: var(--gh-canvas);
  color: var(--gh-accent);
}

.notes-icon-btn {
  width: 30px;
  min-width: 30px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--gh-muted);
  font-size: 0.86rem;
  line-height: 1;
}

.notes-icon-btn.wide {
  width: 36px;
  min-width: 36px;
}

.notes-icon-btn.strong {
  font-weight: 800;
}

.notes-icon-btn.italic {
  font-style: italic;
}

.notes-icon-btn.underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notes-icon-btn.strike {
  text-decoration: line-through;
}

.notes-toolbar-svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes-icon-btn:hover,
.notes-icon-btn.active {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
  color: var(--gh-accent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gh-accent), transparent 78%);
}

.notes-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--gh-muted);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.notes-insert-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-insert-panel.is-floating {
  position: fixed;
  z-index: 180;
  top: 198px;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
  box-shadow: var(--gh-shadow);
}

.notes-insert-panel.notes-divider-panel.is-floating {
  width: 74px;
  min-width: 74px;
  transform: none;
}

.notes-insert-panel[hidden],
.notes-insert-mode[hidden] {
  display: none;
}

.notes-insert-tabs,
.notes-insert-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.notes-insert-input {
  min-height: 34px;
  min-width: min(360px, 100%);
  flex: 1 1 260px;
  padding: 6px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
  font: inherit;
}

.notes-insert-input:focus {
  border-color: var(--gh-accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gh-accent), transparent 78%);
}

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

.notes-template-modal.notes-modal-card {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 14px;
  border-radius: 14px;
}

.notes-template-modal .notes-modal-head {
  min-height: 28px;
  margin-bottom: 12px;
  padding-right: 32px;
}

.notes-template-modal .notes-modal-head > strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gh-fg);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.notes-template-modal .notes-modal-head > strong::before {
  content: '';
  flex: 0 0 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--gh-accent);
}

.funify-notes-page .notes-template-modal .notes-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  min-height: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--gh-muted);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.notes-template-modal::backdrop {
  background: rgba(31, 35, 40, 0.42);
  backdrop-filter: blur(3px);
}

.notes-template-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 56px;
  padding: 9px;
  border: 1px solid var(--gh-border);
  border-radius: 9px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
  cursor: pointer;
  text-align: left;
}

.notes-template-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--gh-canvas-subtle);
  color: var(--gh-accent);
}

.notes-template-icon svg {
  width: 17px;
  height: 17px;
}

.notes-template-card strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.notes-template-card:hover,
.notes-template-card:focus-visible {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
}

.notes-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 35, 40, 0.42);
}

.notes-modal[hidden] {
  display: none;
}

.notes-modal-card {
  width: min(860px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
  box-shadow: var(--gh-shadow);
}

.notes-modal-head,
.notes-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notes-modal-head {
  margin-bottom: 14px;
}

.notes-modal-head div {
  display: grid;
  gap: 3px;
}

.notes-modal-head span {
  color: var(--gh-muted);
  font-size: 0.86rem;
}

.notes-modal-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.notes-chart-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.notes-chart-settings label,
.notes-chart-check {
  display: grid;
  gap: 5px;
  color: var(--gh-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.notes-chart-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
  color: var(--gh-fg);
}

.notes-chart-settings input[type='range'] {
  width: 100%;
}

.notes-chart-settings input[type='color'],
.notes-chart-row input[type='color'] {
  width: 42px;
  min-height: 34px;
  padding: 2px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-chart-row-head,
.notes-chart-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(100px, 140px) 56px 42px;
  gap: 8px;
  align-items: center;
}

.notes-chart-row-head {
  margin-bottom: 6px;
  color: var(--gh-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.notes-chart-rows {
  display: grid;
  gap: 8px;
}

.notes-attachment-bar {
  position: sticky;
  top: 80px;
  z-index: 20;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
}

.notes-attachment-bar > strong {
  color: var(--gh-muted);
  font-size: 12px;
  font-weight: 500;
}

.notes-attachment-bar[hidden] {
  display: none;
}

.notes-attachment-list {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
}

.notes-attachment-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-attachment {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 6px 8px;
  color: var(--gh-accent);
  text-decoration: none;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  white-space: nowrap;
}

.notes-attachment:hover {
  text-decoration: underline;
}

.notes-attachment-delete {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--gh-border);
  background: transparent;
  color: var(--gh-muted);
  cursor: pointer;
}

.notes-attachment-delete:hover {
  background: var(--gh-accent-subtle);
  color: var(--gh-fg);
}

.notes-attachment-delete svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.notes-attachment:focus-visible,
.notes-attachment-delete:focus-visible {
  outline: 2px solid var(--gh-accent);
  outline-offset: -2px;
}

@media (max-width: 767px) {
  .notes-attachment-bar {
    position: static;
  }

  .notes-attachment {
    min-height: 44px;
    padding-block: 12px;
    line-height: 20px;
  }

  .notes-attachment-delete {
    flex-basis: 44px;
    width: 44px;
    min-height: 44px;
  }
}

.notes-view,
.notes-editor,
.notes-empty {
  min-height: 1123px;
  padding: 22px;
  line-height: 1.75;
}

.notes-editor,
.notes-html-editor {
  outline: none;
}

.notes-editor[hidden],
.notes-html-editor[hidden],
.notes-view[hidden],
.notes-empty[hidden] {
  display: none;
}

.notes-html-editor {
  width: 100%;
  min-height: 1123px;
  padding: 18px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
  font:
    0.92rem/1.65 Consolas,
    'Courier New',
    monospace;
  resize: vertical;
}

.notes-view h1,
.notes-view h2,
.notes-view h3,
.notes-editor h1,
.notes-editor h2,
.notes-editor h3 {
  margin: 1.15em 0 0.5em;
  color: var(--gh-fg);
  line-height: 1.25;
}

.notes-view h1:first-child,
.notes-view h2:first-child,
.notes-view h3:first-child,
.notes-editor h1:first-child,
.notes-editor h2:first-child,
.notes-editor h3:first-child {
  margin-top: 0;
}

.notes-view p,
.notes-view ul,
.notes-view ol,
.notes-view blockquote,
.notes-view table,
.notes-view pre,
.notes-editor p,
.notes-editor ul,
.notes-editor ol,
.notes-editor blockquote,
.notes-editor table,
.notes-editor pre {
  margin: 0 0 1em;
}

.notes-view a,
.notes-editor a {
  color: var(--gh-accent);
}

.notes-view blockquote,
.notes-editor blockquote {
  display: inline-block;
  margin-left: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--gh-accent);
  border-radius: 6px;
  background: var(--gh-accent-subtle);
  color: var(--gh-muted);
}

.notes-view blockquote.note-quote-default,
.notes-editor blockquote.note-quote-default,
.notes-view blockquote[data-quote-style='default'],
.notes-editor blockquote[data-quote-style='default'] {
  display: inline-block;
  border-left-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
  color: var(--gh-muted);
}

.notes-view blockquote.note-quote-emphasis,
.notes-editor blockquote.note-quote-emphasis,
.notes-view blockquote[data-quote-style='emphasis'],
.notes-editor blockquote[data-quote-style='emphasis'] {
  display: inline-block;
  border-left-color: #8250df;
  background: rgba(130, 80, 223, 0.1);
  color: var(--gh-fg);
  font-weight: 600;
}

.notes-view blockquote.note-quote-info,
.notes-editor blockquote.note-quote-info,
.notes-view blockquote[data-quote-style='info'],
.notes-editor blockquote[data-quote-style='info'] {
  display: inline-block;
  border-left-color: #0969da;
  background: rgba(9, 105, 218, 0.09);
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-warning,
.notes-editor blockquote.note-quote-warning,
.notes-view blockquote[data-quote-style='warning'],
.notes-editor blockquote[data-quote-style='warning'] {
  display: inline-block;
  border-left-color: #bf8700;
  background: rgba(191, 135, 0, 0.12);
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-success,
.notes-editor blockquote.note-quote-success,
.notes-view blockquote[data-quote-style='success'],
.notes-editor blockquote[data-quote-style='success'] {
  display: inline-block;
  border-left-color: #1a7f37;
  background: rgba(26, 127, 55, 0.1);
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-question,
.notes-editor blockquote.note-quote-question,
.notes-view blockquote[data-quote-style='question'],
.notes-editor blockquote[data-quote-style='question'] {
  display: inline-block;
  border-left-color: #d1242f;
  background: rgba(209, 36, 47, 0.09);
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal,
.notes-editor blockquote.note-quote-minimal,
.notes-view blockquote[data-quote-style='minimal'],
.notes-editor blockquote[data-quote-style='minimal'] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: var(--gh-border);
  border-radius: 0;
  background: transparent;
  color: var(--gh-muted);
}

.notes-view blockquote.note-quote-minimal-gray,
.notes-editor blockquote.note-quote-minimal-gray,
.notes-view blockquote[data-quote-style='minimal-gray'],
.notes-editor blockquote[data-quote-style='minimal-gray'] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: var(--gh-border);
  border-radius: 0;
  background: transparent;
  color: var(--gh-muted);
}

.notes-view blockquote.note-quote-minimal-red,
.notes-editor blockquote.note-quote-minimal-red,
.notes-view blockquote[data-quote-style='minimal-red'],
.notes-editor blockquote[data-quote-style='minimal-red'] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #d1242f;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-orange,
.notes-editor blockquote.note-quote-minimal-orange,
.notes-view blockquote[data-quote-style='minimal-orange'],
.notes-editor blockquote[data-quote-style='minimal-orange'] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #bf8700;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-yellow,
.notes-editor blockquote.note-quote-minimal-yellow,
.notes-view blockquote[data-quote-style='minimal-yellow'],
.notes-editor blockquote[data-quote-style='minimal-yellow'] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #9a6700;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-green,
.notes-editor blockquote.note-quote-minimal-green,
.notes-view blockquote[data-quote-style='minimal-green'],
.notes-editor blockquote[data-quote-style='minimal-green'] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #1a7f37;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-blue,
.notes-editor blockquote.note-quote-minimal-blue,
.notes-view blockquote[data-quote-style='minimal-blue'],
.notes-editor blockquote[data-quote-style='minimal-blue'] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #0969da;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-purple,
.notes-editor blockquote.note-quote-minimal-purple,
.notes-view blockquote[data-quote-style='minimal-purple'],
.notes-editor blockquote[data-quote-style='minimal-purple'] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #8250df;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-pink,
.notes-editor blockquote.note-quote-minimal-pink,
.notes-view blockquote[data-quote-style='minimal-pink'],
.notes-editor blockquote[data-quote-style='minimal-pink'] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #d61a7f;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-bubble,
.notes-editor blockquote.note-quote-bubble,
.notes-view blockquote[data-quote-style='bubble'],
.notes-editor blockquote[data-quote-style='bubble'] {
  display: inline-block;
  padding: 12px 16px;
  background: var(--gh-canvas-inset);
  border: 2px solid var(--gh-accent);
  border-radius: 18px;
  position: relative;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-bubble::after,
.notes-editor blockquote.note-quote-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--gh-accent);
}

.notes-view blockquote.note-quote-postit,
.notes-editor blockquote.note-quote-postit,
.notes-view blockquote[data-quote-style='postit'],
.notes-editor blockquote[data-quote-style='postit'] {
  display: inline-block;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  color: #92400e;
  position: relative;
}

.notes-view blockquote.note-quote-postit::before,
.notes-editor blockquote.note-quote-postit::before {
  content: '';
  position: absolute;
  top: -2px;
  right: 20px;
  width: 20px;
  height: 20px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.notes-view blockquote.note-quote-corner-frame,
.notes-editor blockquote.note-quote-corner-frame,
.notes-view blockquote[data-quote-style='corner-frame'],
.notes-editor blockquote[data-quote-style='corner-frame'] {
  display: inline-block;
  padding: 16px 20px;
  background: var(--gh-canvas-inset);
  border: 2px solid var(--gh-border);
  border-radius: 0;
  position: relative;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-corner-frame::before,
.notes-editor blockquote.note-quote-corner-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-top: 4px solid var(--gh-accent);
  border-left: 4px solid var(--gh-accent);
}

.notes-view blockquote.note-quote-corner-frame::after,
.notes-editor blockquote.note-quote-corner-frame::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-bottom: 4px solid var(--gh-accent);
  border-right: 4px solid var(--gh-accent);
}

.notes-view code,
.notes-editor code {
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.notes-view pre,
.notes-editor pre {
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
}

.code-keyword {
  color: #cf222e;
  font-weight: 700;
}

.code-function {
  color: #8250df;
}

.notes-view table,
.notes-editor table {
  width: 100%;
  border-collapse: collapse;
}

.notes-editor table.is-selected {
  outline: 2px solid var(--gh-accent);
  outline-offset: 3px;
}

.notes-table-resize-overlay {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
}

.notes-table-resize-handle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: col-resize;
  pointer-events: auto;
  transform: translateX(-50%);
}

.notes-table-resize-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--gh-accent), transparent 28%);
  opacity: 0.7;
}

.notes-table-resize-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 26px;
  border: 1px solid var(--gh-accent);
  border-radius: 6px;
  background: var(--gh-canvas);
  box-shadow: 0 2px 8px rgba(31, 35, 40, 0.16);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.notes-table-resize-handle:hover::before,
.notes-table-resize-handle:focus-visible::before,
.notes-table-resizing .notes-table-resize-handle::before {
  opacity: 1;
}

.notes-table-resize-handle:hover::after,
.notes-table-resize-handle:focus-visible::after,
.notes-table-resizing .notes-table-resize-handle::after {
  opacity: 1;
}

.notes-table-resize-handle.is-table::before {
  width: 3px;
}

.notes-table-resizing,
.notes-table-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.notes-view img,
.notes-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.note-resizable {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  height: auto !important;
  min-width: 80px;
  line-height: 0;
  resize: horizontal;
  overflow: hidden;
  vertical-align: middle;
}

.note-resizable img,
.note-resizable video {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 100%;
  border-radius: 6px;
}

.notes-editor video {
  resize: horizontal;
  overflow: hidden;
  display: inline-block;
  min-width: 80px;
  height: auto;
}

.note-video-resizable {
  width: min(520px, 100%);
}

.note-video-figure {
  display: block;
  width: min(560px, 100%);
  max-width: 100%;
  margin: 8px 0 1em;
  resize: horizontal;
  overflow: hidden;
  align-items: center;
}

.note-video-figure iframe,
.note-video-figure video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 6px;
  background: #000;
}

.note-video-figure figcaption {
  margin-top: 6px;
  color: var(--gh-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.note-video-figure[data-align='center'] {
  margin-left: auto;
  margin-right: auto;
}

.note-video-figure[data-align='right'] {
  margin-left: auto;
  margin-right: 0;
}

.note-video,
.notes-view video,
.notes-editor video {
  max-width: 100%;
  border-radius: 6px;
}

.note-link-preview {
  display: grid;
  gap: 6px;
  margin: 8px 0 1em;
  padding: 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
}

.note-link-preview span,
.note-link-preview figcaption {
  color: var(--gh-muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.note-link-preview iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 6px;
  background: var(--gh-canvas);
}

.note-dropcap::first-letter {
  float: left;
  margin: 0 8px 0 0;
  font-size: 3em;
  line-height: 0.9;
  font-weight: 700;
}

.note-chart {
  display: grid;
  gap: 10px;
  width: min(520px, 100%);
  box-sizing: border-box;
  margin: 0 0 1em;
  padding: 14px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
  box-shadow: 0 8px 18px rgba(31, 35, 40, 0.06);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.note-chart.is-selected {
  outline: 2px solid var(--gh-accent);
  outline-offset: 2px;
}

.note-chart figcaption {
  color: var(--gh-fg);
  font-weight: 700;
  text-align: center;
}

.note-chart::selection,
.note-chart *::selection {
  background: transparent;
}

.note-chart > * {
  pointer-events: none;
}

.note-chart-help {
  display: block;
  padding-top: 8px;
  border-top: 1px solid var(--gh-border);
  color: var(--gh-muted);
  font-size: 0.72rem;
  text-align: right;
}

.note-chart-body {
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
  height: 180px;
  min-height: 180px;
  overflow: hidden;
}

.note-chart-bars {
  inline-size: 100%;
  min-width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  justify-content: stretch;
  gap: 10px;
  padding: 16px 12px 30px;
}

.note-chart-svg {
  display: grid;
  padding: 16px;
}

.note-chart-svg svg {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
}

.note-chart-svg text {
  font-size: 11px;
  dominant-baseline: middle;
}

.note-chart-label,
.note-chart-line text {
  fill: var(--gh-muted);
}

.note-chart-value,
.note-chart-percent {
  font-weight: 700;
}

.note-chart-bar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  justify-self: center;
  width: min(var(--bar-size, 30px), 100%);
  max-width: 72px;
  height: var(--bar-height, 20%);
  min-height: 18px;
  background: var(--chart-color, var(--gh-accent));
  border-radius: 6px 6px 0 0;
  color: #fff;
}

.note-chart-bar span,
.note-chart-hbar b {
  padding-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.note-chart-bar em,
.note-chart-hbar em {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.note-chart-bar small {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  max-width: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  color: var(--gh-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-chart.note-chart-bar {
  display: grid;
  align-items: initial;
  justify-content: initial;
  gap: 10px;
  width: min(520px, 100%);
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 1em;
  padding: 14px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
}

.note-chart-hbars {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.note-chart-vbars,
.note-chart-line {
  gap: 0;
}

.note-chart-hbar {
  display: grid;
  grid-template-columns: minmax(64px, 110px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.note-chart-hbar small {
  overflow: hidden;
  color: var(--gh-muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-chart-hbar span {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: var(--bar-width, 10%);
  min-width: 24px;
  height: var(--bar-size, 30px);
  padding-left: 8px;
  border-radius: 0 6px 6px 0;
  background: var(--chart-color, var(--gh-accent));
  color: #fff;
}

.note-chart-line svg {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.note-chart-line text {
  fill: var(--gh-muted);
  font-size: 11px;
}

.note-chart-axis {
  stroke: var(--gh-border);
  stroke-width: 1;
}

.note-chart-radial-wrap {
  display: grid;
  grid-template-columns: minmax(130px, 150px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.note-chart-radial {
  position: relative;
  width: min(150px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--gh-border);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.note-chart-radial.is-doughnut::after {
  content: '';
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--gh-canvas-subtle);
}

.note-chart-radial.is-doughnut span {
  position: absolute;
  inset: 26%;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--gh-fg);
  font-weight: 700;
}

.note-chart-polar {
  position: relative;
  width: min(150px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--gh-border);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 0 28%,
    color-mix(in oklab, var(--gh-border), transparent 60%) 29% 30%,
    transparent 31% 58%,
    color-mix(in oklab, var(--gh-border), transparent 60%) 59% 60%,
    transparent 61%
  );
}

.note-chart-polar span {
  position: absolute;
  inset: calc((100% - var(--polar-size)) / 2);
  border-radius: 50%;
  background: color-mix(in oklab, var(--chart-color), transparent 32%);
  border: 2px solid var(--chart-color);
  transform: rotate(calc(360deg / var(--polar-count, 1) * var(--i, 0)));
}

.note-chart-polar span:nth-child(1) {
  --i: 0;
}

.note-chart-polar span:nth-child(2) {
  --i: 1;
}

.note-chart-polar span:nth-child(3) {
  --i: 2;
}

.note-chart-polar span:nth-child(4) {
  --i: 3;
}

.note-chart-polar span:nth-child(5) {
  --i: 4;
}

.note-chart-polar span:nth-child(6) {
  --i: 5;
}

.note-chart-polar span:nth-child(7) {
  --i: 6;
}

.note-chart-polar span:nth-child(8) {
  --i: 7;
}

.note-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.note-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--gh-muted);
  font-size: 0.8rem;
}

.note-chart-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
}

.notes-view th,
.notes-view td,
.notes-editor th,
.notes-editor td {
  border: 1px solid var(--gh-border);
  padding: 8px 10px;
  text-align: left;
}

.notes-view .calculator-notes-report {
  display: grid;
  gap: 14px;
  max-width: 880px;
}

.notes-view .calculator-notes-report h2 {
  margin: 18px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gh-border);
  color: var(--gh-fg);
  font-size: 1.2rem;
}

.notes-view .calculator-notes-report table,
.notes-editor .calculator-notes-report table {
  margin: 0;
  width: 100%;
  table-layout: fixed;
}

.notes-view .calculator-notes-report table.calculator-notes-equal-table,
.notes-editor .calculator-notes-report table.calculator-notes-equal-table {
  table-layout: fixed;
}

.notes-view .calculator-notes-report table.calculator-notes-equal-table th,
.notes-view .calculator-notes-report table.calculator-notes-equal-table td,
.notes-editor .calculator-notes-report table.calculator-notes-equal-table th,
.notes-editor .calculator-notes-report table.calculator-notes-equal-table td {
  width: auto;
  word-break: break-word;
}

.notes-view .calculator-notes-report th,
.notes-view .calculator-notes-report td,
.notes-editor .calculator-notes-report th,
.notes-editor .calculator-notes-report td {
  word-break: break-word;
}

.notes-view .calculator-notes-report th {
  background: var(--gh-canvas-subtle);
  color: var(--gh-fg);
}

.notes-view .calculator-notes-report td {
  color: var(--gh-fg);
}

.notes-view .calculator-notes-report ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--gh-muted);
}

.notes-view .calculator-notes-fold-details,
.notes-editor .calculator-notes-fold-details {
  margin: 10px 0 18px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: var(--gh-canvas);
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}

.notes-view .calculator-notes-fold-details summary,
.notes-editor .calculator-notes-fold-details summary {
  cursor: pointer;
  padding: 12px 14px;
  background: var(--gh-canvas-subtle);
  color: var(--gh-fg);
  font-weight: 700;
  list-style: none;
}

.notes-view .calculator-notes-fold-details summary::-webkit-details-marker,
.notes-editor .calculator-notes-fold-details summary::-webkit-details-marker {
  display: none;
}

.notes-view .calculator-notes-fold-details summary::after,
.notes-editor .calculator-notes-fold-details summary::after {
  content: '+';
  float: right;
  color: var(--gh-accent);
  font-weight: 900;
}

.notes-view .calculator-notes-fold-details[open] summary::after,
.notes-editor .calculator-notes-fold-details[open] summary::after {
  content: '-';
}

.notes-view .calculator-notes-fold-details .calculator-table-wrap,
.notes-editor .calculator-notes-fold-details .calculator-table-wrap {
  padding: 0 12px 12px;
  overflow-x: auto;
}

.notes-view .calculator-notes-share-bars,
.notes-editor .calculator-notes-share-bars {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
  min-width: 0;
}

.notes-view .calculator-notes-share-bar,
.notes-editor .calculator-notes-share-bar {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.notes-view .calculator-notes-share-bar .calculator-share-bar-head,
.notes-editor .calculator-notes-share-bar .calculator-share-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--gh-fg);
  font-size: 0.92rem;
  line-height: 1.45;
}

.notes-view .calculator-notes-share-bar .calculator-share-bar-head span,
.notes-editor .calculator-notes-share-bar .calculator-share-bar-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.notes-view .calculator-notes-share-bar .calculator-share-bar-head strong,
.notes-editor .calculator-notes-share-bar .calculator-share-bar-head strong {
  flex: 0 0 auto;
  color: var(--gh-accent);
  font-size: 0.9rem;
}

.notes-view .calculator-notes-share-bar .calculator-share-track,
.notes-editor .calculator-notes-share-bar .calculator-share-track {
  position: relative;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: var(--gh-canvas-subtle);
}

.notes-view .calculator-notes-share-bar .calculator-share-fill,
.notes-editor .calculator-notes-share-bar .calculator-share-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--gh-accent);
}

.notes-view .calculator-notes-charts,
.notes-editor .calculator-notes-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.notes-view .calculator-notes-chart,
.notes-editor .calculator-notes-chart {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  margin: 0;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  padding: 10px;
  background: var(--gh-canvas-subtle);
  break-inside: avoid;
  page-break-inside: avoid;
}

.notes-view .calculator-notes-charts.travel-notes-chart-grid,
.notes-editor .calculator-notes-charts.travel-notes-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notes-view .calculator-notes-charts.travel-notes-chart-grid .travel-notes-share-chart,
.notes-editor .calculator-notes-charts.travel-notes-chart-grid .travel-notes-share-chart {
  grid-column: 1 / -1;
}

.notes-view .calculator-notes-chart img,
.notes-editor .calculator-notes-chart img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: #fff;
}

.notes-view .calculator-notes-chart svg,
.notes-editor .calculator-notes-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.notes-view .calculator-notes-map,
.notes-editor .calculator-notes-map {
  grid-template-rows: auto auto;
}

.notes-view .calculator-notes-map-frame,
.notes-editor .calculator-notes-map-frame {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: #eef6ff;
}

.notes-view .calculator-notes-map-frame iframe,
.notes-editor .calculator-notes-map-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.notes-view .calculator-notes-map-frame svg,
.notes-editor .calculator-notes-map-frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  pointer-events: none;
}

.notes-view .calculator-notes-map-frame svg .route-line,
.notes-editor .calculator-notes-map-frame svg .route-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 5;
  stroke-linecap: round;
}

.notes-view .calculator-notes-map-frame svg circle,
.notes-editor .calculator-notes-map-frame svg circle {
  stroke: #fff;
  stroke-width: 0.8;
}

.notes-view .calculator-notes-map-frame svg .dep,
.notes-editor .calculator-notes-map-frame svg .dep {
  fill: #2563eb;
}

.notes-view .calculator-notes-map-frame svg .arr,
.notes-editor .calculator-notes-map-frame svg .arr {
  fill: #16a34a;
}

.notes-view .calculator-notes-tile-map .map-bg,
.notes-editor .calculator-notes-tile-map .map-bg {
  fill: #eef6ff;
}

.notes-view .calculator-notes-tile-map .map-tiles image,
.notes-editor .calculator-notes-tile-map .map-tiles image {
  image-rendering: auto;
}

.notes-view .calculator-notes-tile-map .route-label,
.notes-editor .calculator-notes-tile-map .route-label {
  fill: #0f172a;
  font-size: 18px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-linejoin: round;
  stroke-width: 4;
}

.notes-view .calculator-notes-chart figcaption,
.notes-editor .calculator-notes-chart figcaption {
  margin-top: 8px;
  color: var(--gh-muted);
  font-size: 0.9rem;
  text-align: center;
}

.notes-view .calculator-notes-charts.rental-notes-chart-grid,
.notes-editor .calculator-notes-charts.rental-notes-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notes-view .calculator-notes-chart .rental-notes-bar-chart,
.notes-editor .calculator-notes-chart .rental-notes-bar-chart {
  align-content: center;
  align-self: stretch;
  width: 100%;
  margin: 0;
}

.notes-view .calculator-notes-chart .calculator-chart-legend,
.notes-editor .calculator-notes-chart .calculator-chart-legend {
  max-width: 100%;
  min-width: 0;
}

.notes-view .calculator-notes-chart .calculator-chart-legend .item,
.notes-editor .calculator-notes-chart .calculator-chart-legend .item {
  max-width: 100%;
  min-width: 0;
}

.notes-view .calculator-notes-chart .calculator-chart-legend .name,
.notes-editor .calculator-notes-chart .calculator-chart-legend .name {
  min-width: 0;
  max-width: min(220px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-view .calculator-notes-meta {
  margin: 0;
  color: var(--gh-muted);
  font-size: 0.9rem;
}

.notes-view .calculator-notes-intro {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--gh-muted);
  line-height: 1.65;
}

.notes-view .calculator-notes-intro p {
  margin: 0;
}

.notes-view .calculator-notes-summary {
  margin: 0;
  border-left: 3px solid var(--gh-accent);
  padding: 10px 12px;
  background: var(--gh-accent-subtle);
  color: var(--gh-fg);
}

.notes-empty {
  color: var(--gh-muted);
}

.notes-empty strong {
  color: var(--gh-fg);
}

.notes-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 980px) {
  .notes-shell {
    grid-template-columns: 1fr;
  }

  .notes-sidebar {
    position: static;
  }

  .notes-tree-wrap {
    max-height: 360px;
  }
}

@media (max-width: 720px) {
  .notes-main {
    width: min(100% - 20px, 1280px);
    margin-top: 16px;
  }

  .notes-panel-head {
    top: 58px;
    display: grid;
  }

  .notes-formatbar {
    top: 174px;
  }

  .notes-toolbar-group {
    flex-wrap: wrap;
    min-width: 0;
  }

  .notes-view,
  .notes-editor,
  .notes-empty {
    min-height: 1123px;
    padding: 16px;
  }

  .notes-view .calculator-notes-charts,
  .notes-editor .calculator-notes-charts {
    grid-template-columns: 1fr;
  }

  .notes-template-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-chart-settings,
  .notes-chart-row-head,
  .notes-chart-row {
    grid-template-columns: 1fr;
  }

  .notes-chart-row-head,
  #repo-notesBtn {
    display: none;
  }

  .note-chart-radial-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media print {
  .github-topbar,
  .repo-hero,
  .notes-feature-strip,
  .notes-sidebar,
  .notes-panel-actions,
  .notes-formatbar,
  .notes-insert-panel,
  .notes-modal,
  .notes-attachment-bar,
  .footer {
    display: none !important;
  }

  .notes-main,
  .notes-shell,
  .notes-panel {
    width: 100%;
    margin: 0;
    display: block;
    border: 0;
  }

  .notes-panel-head {
    position: static;
    display: block;
    border: 0;
    background: transparent;
  }

  .notes-view {
    min-height: auto;
    border: 0;
    padding: 0;
  }

  .notes-view .calculator-notes-report {
    display: block;
    max-width: none;
  }

  .notes-view .calculator-notes-report h2 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .notes-view .calculator-notes-report table,
  .notes-view .calculator-notes-summary,
  .notes-view .calculator-notes-charts,
  .notes-view .calculator-notes-chart {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .notes-view .calculator-notes-charts {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  }

  .notes-view .calculator-notes-chart img {
    max-height: 230px;
  }
}

/* Existing page refinements. */

.notes-main {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.notes-shell {
  width: 100%;
  max-width: none;
}

.notes-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.notes-panel-actions .notes-btn {
  width: auto;
  min-width: 0;
  max-width: max-content;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 3px 10px;
}

@media (max-width: 720px) {
  .notes-view .calculator-notes-map-frame,
  .notes-editor .calculator-notes-map-frame {
    aspect-ratio: 860 / 420;
    height: auto;
  }
}

/* Notes identity and feature strip above the workspace. */
.funify-notes-page .repo-hero.notes-hero {
  --page-heading-size: 38px;
  --page-heading-weight: 800;
  --page-description-size: 14px;
  --page-description-weight: 400;
  --page-description-line-height: 1.5;
  --page-title-description-gap: 6px;
  width: var(--notes-page-width);
  margin: 1px auto 0;
  overflow: visible;
  border: 1px solid var(--gh-border);
  border-radius: 24px;
  background: linear-gradient(
    120deg,
    var(--color-surface),
    color-mix(in srgb, var(--notes-hero-violet) 3%, var(--color-surface))
  );
  box-shadow: 0 10px 28px color-mix(in srgb, var(--color-primary) 7%, transparent);
}

.notes-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 140px;
  padding: 22px 26px;
}

.notes-hero-mark {
  display: grid;
  place-items: center;
  flex: 0 0 76px;
  height: 76px;
  border: 1px solid color-mix(in srgb, var(--notes-hero-violet) 7%, var(--color-surface));
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--notes-hero-violet) 4%, var(--color-surface)),
    color-mix(in srgb, var(--notes-hero-violet) 14%, var(--color-surface))
  );
  box-shadow: 0 3px 8px color-mix(in srgb, var(--notes-hero-violet) 9%, transparent);
}

.notes-hero .notes-title-icon {
  width: 46px;
  height: 46px;
  overflow: visible;
  color: var(--notes-hero-violet);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes-hero-copy {
  position: relative;
  container-type: inline-size;
  flex: 1;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--color-border);
}

.notes-hero .notes-page-title {
  margin: 0;
  color: var(--color-text);
}

.notes-hero .notes-title-accent {
  background: linear-gradient(115deg, var(--notes-hero-violet), var(--color-primary));
  background-clip: text;
  color: transparent;
}

.funify-notes-page .notes-hero .repo-subtitle[data-page-title-part='description'] {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: min(var(--page-description-size), 3cqi);
  white-space: nowrap;
}

.notes-hero .notes-create-actions {
  flex: 0 0 120px;
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
  background: transparent;
}

.notes-hero .notes-create-actions::after {
  content: none;
}

.notes-hero .notes-create-actions .notes-btn {
  min-height: 36px;
  border-color: var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 75%, transparent);
  color: var(--color-primary);
}

.notes-hero .notes-create-actions .notes-btn:hover {
  border-color: var(--color-primary);
  background: var(--gh-accent-subtle);
}

.funify-notes-page .notes-feature-strip {
  position: absolute;
  top: calc(100% + 4px);
  left: 24px;
  display: flex;
  gap: 6px;
  width: calc(100% - 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.funify-notes-page .notes-feature-strip li {
  justify-content: center;
  gap: 4px;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--notes-hero-violet) 12%, var(--color-surface));
  border-radius: 999px;
  background: color-mix(in srgb, var(--notes-hero-violet) 4%, var(--color-surface));
  color: var(--color-muted);
  font-family: var(--font-family-title);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.funify-notes-page .notes-feature-strip svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: var(--notes-hero-violet);
}

.notes-feature-strip li:nth-child(3) svg {
  color: #16a8dc;
}

@media (min-width: 769px) {
  .funify-notes-page .site-header .tagline {
    align-self: center;
    margin: 0;
    padding-left: 20px;
    border-left: 1px solid var(--color-border);
    color: var(--color-muted);
    line-height: 2;
    text-shadow: none;
    transform: none;
  }
}

@media (max-width: 768px) {
  .funify-notes-page .repo-hero.notes-hero {
    --page-heading-size: 28px;
    --page-description-size: 12px;
    border-radius: 20px;
  }

  .notes-hero-inner {
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 26px;
    padding: 18px 18px 12px;
  }

  .notes-hero-mark {
    flex-basis: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .notes-hero .notes-title-icon {
    width: 36px;
    height: 36px;
  }

  .notes-hero-copy {
    padding-left: 12px;
  }

  .notes-hero .notes-create-actions {
    flex-basis: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-hero .notes-create-actions .notes-btn {
    min-height: 28px;
    padding: 3px 5px;
  }

  .funify-notes-page .notes-feature-strip {
    left: -68px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: calc(100% + 68px);
  }

  .funify-notes-page .notes-feature-strip li {
    min-height: 18px;
    padding: 2px 3px;
    font-size: clamp(8px, 2.3vw, 9px);
  }

  .funify-notes-page .notes-feature-strip svg {
    display: none;
  }
}

.funify-notes-page .notes-main {
  width: var(--notes-page-width);
  margin-top: 8px;
}

.funify-notes-page .notes-main::before {
  display: none;
}

.funify-notes-page .notes-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.funify-notes-page :is(.notes-sidebar, .notes-panel) {
  border-radius: 14px;
}

.funify-notes-page .notes-sidebar {
  top: 16px;
}

.funify-notes-page .notes-sidebar-head {
  padding: 12px 18px;
}

.funify-notes-page .notes-sidebar-title {
  line-height: 1.2;
}

.funify-notes-page .notes-panel-head {
  top: 12px;
  gap: 8px 16px;
  min-height: 84px;
  padding: 16px 18px;
  border-radius: 14px 14px 0 0;
}

.funify-notes-page .notes-search {
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.2;
}

@media (min-width: 981px) {
  .funify-notes-page .notes-sidebar {
    position: static;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-self: stretch;
    min-height: 0;
    contain: size;
  }

  .funify-notes-page .notes-sidebar-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--notes-panel-head-height, 98px);
  }

  .funify-notes-page .notes-tree-wrap {
    min-height: 0;
    max-height: none;
  }
}

.funify-notes-page .notes-btn {
  border-radius: 7px;
  font-size: 12px;
}

.funify-notes-page .notes-panel-actions {
  gap: 6px;
}

.funify-notes-page .notes-panel-actions .notes-btn {
  min-height: 32px;
  padding: 6px 11px;
}

.funify-notes-page .notes-document {
  padding: 20px;
}

.funify-notes-page .notes-meta-row {
  font-size: 11px;
}

.funify-notes-page .notes-formatbar {
  top: calc(var(--notes-panel-head-height, 98px) + 24px);
  padding: 10px;
  border-radius: 10px;
}

.funify-notes-page :is(.notes-view, .notes-editor, .notes-html-editor, .notes-empty) {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.funify-notes-page :is(.notes-view, .notes-editor, .notes-empty) {
  min-height: 560px;
}

.funify-notes-page :is(.notes-view, .notes-editor) {
  overflow-wrap: anywhere;
}

.funify-notes-page .notes-toolbar-group {
  max-width: 100%;
}

.funify-notes-page .notes-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.funify-notes-page .calculator-related-section {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  background: var(--gh-canvas);
}

.funify-notes-page .calculator-related-section .calculator-panel-head {
  padding: 0 0 18px;
}

.funify-notes-page .calculator-related-section h2 {
  color: var(--gh-fg);
  font-size: 19px;
}

.funify-notes-page .calculator-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.funify-notes-page .calculator-related-card:hover {
  background: var(--gh-canvas-subtle);
}

.funify-notes-page .calculator-related-card strong {
  color: var(--gh-fg);
}

.funify-notes-page .page-footer a {
  color: var(--gh-fg);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 980px) {
  .funify-notes-page .notes-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .funify-notes-page .notes-sidebar {
    position: static;
  }

  .funify-notes-page .notes-tree-wrap {
    max-height: 260px;
  }
}

@media (max-width: 720px) {
  .funify-notes-page .notes-main {
    margin-top: 8px;
  }

  .funify-notes-page .notes-panel-head {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .funify-notes-page .notes-panel-actions {
    justify-content: flex-start;
  }

  .funify-notes-page .notes-panel-actions .notes-btn {
    min-height: 40px;
    padding: 7px 14px;
  }

  .funify-notes-page .notes-document {
    padding: 12px;
  }

  .funify-notes-page .notes-formatbar {
    position: static;
  }

  .funify-notes-page .notes-btn {
    min-height: 36px;
  }

  .funify-notes-page :is(.notes-view, .notes-editor, .notes-empty) {
    min-height: 400px;
  }

  .funify-notes-page .calculator-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .funify-notes-page .notes-modal-card {
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }
}

@media print {
  .funify-notes-page {
    --gh-canvas: #fff;
    --gh-fg: #1f2328;
    --gh-muted: #59636e;
    --gh-border: #d0d7de;
    background: #fff;
    color: #1f2328;
    color-scheme: light;
  }

  .funify-notes-page :is(.site-header, .calculator-related-section, .page-footer) {
    display: none !important;
  }

  .funify-notes-page .notes-view {
    min-height: 0;
    padding: 0;
  }
}
