#window2 {
  --notes-list-width: var(--os-notes-sidebar-width, 360px);
  --notes-split-width: var(--notes-list-width);
  --notes-group-height: 36px;
}

#window2 .notes-header {
  position: relative;
  container-type: inline-size;
  display: flex;
  align-items: center;
  width: min(var(--notes-list-width), calc(100% - 100px));
  height: 100%;
  padding-inline: calc(34px + var(--os-control-size) * 3 + var(--os-control-gap) * 2) 9px;
}
#window2[data-notes-compact="false"][data-notes-sidebar="open"] .notes-header {
  box-shadow: inset -1px 0 var(--os-window-rule);
}
#window2 .notes-heading {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 0;
  margin-inline: 16px 8px;
  overflow: hidden;
  font: 600 13px/15px var(--os-font);
  white-space: nowrap;
}
#window2 .notes-heading strong { font-weight: 720; }
#window2 .notes-heading span { color: var(--os-muted); font-size: 11.5px; font-weight: 500; }
#window2 .notes-header-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--os-control-stroke);
  border-radius: 999px;
  color: var(--os-text);
  background: var(--os-control-fill);
  box-shadow: var(--os-glass-rim);
}
@container (max-width: 126px) {
  #window2 .notes-heading { display: none; }
  #window2 .notes-header-button { width: 31px; height: 31px; }
  #window2 .notes-options-toggle { margin-inline-start: auto; }
}
#window2 .notes-header-button:hover,
#window2 .notes-header-button[aria-expanded="true"] { background: var(--os-control-pressed); }
#window2 .notes-header-button:focus-visible,
#window2 .notes-options :is(button, a):focus-visible {
  outline: 2px solid var(--os-focus);
  outline-offset: -2px;
}
#window2 .notes-row:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}
#window2 .notes-toggle-icon {
  position: relative;
  width: 19px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 3px;
}
#window2 .notes-toggle-icon::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-right: 1px solid currentColor;
  background: currentColor;
  opacity: .6;
}
#window2 .notes-toggle[aria-expanded="false"] .notes-toggle-icon::before { background: transparent; }
#window2 .notes-options-icon {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -5px 0 currentColor, 5px 0 currentColor;
}
#window2 .notes-options {
  position: absolute;
  z-index: 1;
  top: calc(100% - 3px);
  right: 9px;
  display: grid;
  width: min(205px, calc(100% - 18px));
}
#window2 .notes-options :is(button, a) {
  width: 100%;
  padding: 7px 9px;
  border: 0;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

#article-browser {
  position: absolute;
  inset: var(--os-chrome-height) 0 0;
  display: grid;
  grid-template: minmax(0, 1fr) / var(--notes-split-width) minmax(0, 1fr);
  overflow: clip;
}
#window2 .notes-reading-pane { grid-area: 1 / 2; min-width: 0; min-height: 0; }
#window2 #article-panel {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}
#window2 .notes-list {
  grid-area: 1 / 1;
  min-height: 0;
  min-width: 0;
  padding: 0 11px 14px 10px;
  border-right: 1px solid var(--os-window-rule);
  color: var(--os-text);
  background: var(--os-window-content);
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--os-subtle) var(--os-surface-raised);
  overflow-anchor: none;
  scroll-padding-top: calc(var(--notes-group-height) + 5px);
}
#window2 .notes-list::-webkit-scrollbar { display: block; width: 8px; }
#window2 .notes-list::-webkit-scrollbar-track { background: var(--os-surface-raised); }
#window2 .notes-list::-webkit-scrollbar-thumb { border: 1px solid var(--os-surface-raised); border-radius: 6px; background: var(--os-subtle); }
#window2 .notes-group + .notes-group { margin-top: 22px; }
#window2 .notes-group-title {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  height: var(--notes-group-height);
  margin: 0;
  padding-inline: 7px;
  border-bottom: 1px solid var(--os-window-rule);
  color: var(--os-text);
  background: var(--os-window-content);
  font: 700 14px/17px var(--os-font);
}
#window2 .notes-group:has(> .notes-row.w--current) > .notes-group-title {
  background: color-mix(in srgb, var(--os-selection) 16%, var(--os-window-content));
}

#window2 .notes-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 5px 6px 5px 18px;
  border-radius: 8px;
  color: var(--os-text);
  text-decoration: none;
}
#window2 .notes-row + .notes-row::after {
  content: "";
  position: absolute;
  inset: 0 4px auto 18px;
  height: 1px;
  background: var(--os-window-rule);
  pointer-events: none;
}
#window2 .notes-row:hover { background: var(--os-hover); }
#window2 .notes-row.w--current {
  color: #fff;
  background: var(--os-selection);
  background: color-mix(in srgb, var(--os-selection) 60%, var(--os-accent));
}
#window2 :is(.notes-row.w--current, .notes-row.w--current + .notes-row)::after { display: none; }
#window2 .notes-row-title,
#window2 .notes-row-preview {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#window2 .notes-row-title { font: 700 13px/17px var(--os-font); }
#window2 .notes-row-detail {
  display: flex;
  gap: 7px;
  min-width: 0;
  color: var(--os-muted);
  font: 450 12px/15px var(--os-font);
}
#window2 .notes-row-detail time { flex: none; color: var(--os-text); font-variant-numeric: tabular-nums; }
#window2 .notes-row.w--current .notes-row-detail { color: #fff; }
#window2 .notes-row.w--current time { color: #fff; }
#window2 .notes-thumbnail {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--os-control-stroke);
  border-radius: 4px;
  background: var(--os-field);
  object-fit: cover;
}

#window2:is([data-notes-sidebar="closed"], [data-notes-compact="true"]) { --notes-split-width: 0px; }
#window2[data-notes-sidebar="closed"] .notes-list,
#window2:is([data-notes-sidebar="closed"], [data-notes-compact="true"]) .os-sidebar-divider { display: none; }
#window2[data-notes-compact="true"] .notes-list {
  z-index: 2;
  grid-column: 1 / -1;
  border-right: 0;
}
@media (min-width: 768px) {
  #window2 .os-sidebar-divider {
    top: var(--os-chrome-height);
    left: calc(var(--notes-list-width) - 4px);
  }
}
@media (max-width: 767px) {
  #window2:not([data-notes-sidebar]) { --notes-split-width: 0px; }
  #window2:not([data-notes-sidebar]) .notes-list { display: none; }
}
