html[data-platform="desktop"] body.nova-ready #obsWorkspacePage.tab.active {
  box-sizing: border-box;
  min-width: 0;
  padding: 0 16px 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage #settings-obs {
  width: 100%;
  min-width: 0;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage .obs-workspace-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "title preview"
    "editor preview"
    "actions actions"
    "connection connection";
  column-gap: 24px;
  row-gap: 12px;
  align-items: start;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage .obs-gallery-layout {
  display: contents;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage .obs-current-title {
  grid-area: title;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 24px;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage .obs-editor {
  grid-area: editor;
  width: 100%;
  min-width: 0;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage .obs-preview-column {
  grid-area: preview;
  width: 100%;
  min-width: 0;
  align-self: start;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage .obs-preview-column > label {
  margin: 0 0 12px;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage #settings-obs .obs-preview-column > label > b {
  font-size: 18px !important;
  font-weight: 700;
  line-height: 24px;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage .obs-workspace-content > .obs-actions {
  grid-area: actions;
  padding: 0 !important;
}

html[data-platform="desktop"] body.nova-ready #obsWorkspacePage .obs-connection {
  grid-area: connection;
  width: 100%;
  min-width: 0;
  margin: 0;
}

html[data-platform="desktop"] body.nova-ready .topbar.obs-mode > .obs-module-sidebar {
  overflow: hidden !important;
}

html[data-platform="desktop"] body.nova-ready .topbar.obs-mode .obs-module-sidebar .obs-sidebar {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 5px 22px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #687080 transparent;
  scrollbar-gutter: stable;
}

html[data-platform="desktop"] body.nova-ready .topbar.obs-mode .obs-module-sidebar .obs-sidebar::-webkit-scrollbar {
  display: block;
  width: 7px;
}

html[data-platform="desktop"] body.nova-ready .topbar.obs-mode .obs-module-sidebar .obs-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #687080;
}

html[data-platform="desktop"] body.nova-ready .calendar-days {
  grid-template-rows: repeat(var(--calendar-weeks, 6), minmax(58px, 1fr)) !important;
}

html[data-platform="desktop"] body.nova-ready .calendar-panel .calendar-head h2 {
  display: none;
}

html[data-platform="desktop"] body.nova-ready .calendar-panel .calendar-head {
  min-height: 54px;
  padding-block: 8px;
}

html[data-platform="desktop"] body.nova-ready .calendar-panel .calendar-head .calendar-actions {
  margin-left: auto;
}

html[data-platform="desktop"] body.nova-ready .note-format-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

html[data-platform="desktop"] body.nova-ready .note-format-toolbar button {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--studio-content-line, #37393f);
  border-radius: 7px;
  background: var(--studio-content-control, #24252b);
  color: #aab9ff;
  font-size: 0;
  cursor: pointer;
}

html[data-platform="desktop"] body.nova-ready .note-format-toolbar button:hover,
html[data-platform="desktop"] body.nova-ready .note-format-toolbar button:focus-visible {
  border-color: #8691ff;
  background: #343750;
  color: #dbe0ff;
}

html[data-platform="desktop"] body.nova-ready .note-format-toolbar button::before {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  content: "";
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

html[data-platform="desktop"] body.nova-ready .note-format-toolbar button[data-note-format="bold"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h7a4 4 0 0 1 0 8H6V3Zm0 8h8a5 5 0 0 1 0 10H6V11Z'/%3E%3C/svg%3E");
}

html[data-platform="desktop"] body.nova-ready .note-format-toolbar button[data-note-format="italic"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M13 3h8M3 21h8M16 3 8 21'/%3E%3C/svg%3E");
}

html[data-platform="desktop"] body.nova-ready .note-format-toolbar button[data-note-format="underline"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 3v8a7 7 0 0 0 14 0V3M3 22h18'/%3E%3C/svg%3E");
}

html[data-platform="desktop"] body.nova-ready .note-format-toolbar button[data-note-format="strike"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M17 6a5 5 0 0 0-10 0c0 2 2 3 5 4m-5 8a5 5 0 0 0 10 0c0-2-2-3-5-4'/%3E%3C/svg%3E");
}

html[data-platform="desktop"] body.nova-ready .note-format-toolbar button[data-note-format="list"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='4' cy='6' r='2'/%3E%3Ccircle cx='4' cy='12' r='2'/%3E%3Ccircle cx='4' cy='18' r='2'/%3E%3Cpath d='M9 5h13v2H9zm0 6h13v2H9zm0 6h13v2H9z'/%3E%3C/svg%3E");
}

html[data-platform="desktop"] body.nova-ready :is(.desktop-module-notes-tools, .desktop-module-archive-tools)::before {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--studio-content-muted, #9b9da7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-platform="desktop"] body.nova-ready .desktop-module-notes-tools::before { content: "Szukaj w notatkach"; }
html[data-platform="desktop"] body.nova-ready .desktop-module-archive-tools::before { content: "Szukaj w archiwum"; }

@media (max-width: 1100px) {
  html[data-platform="desktop"] body.nova-ready #obsWorkspacePage .obs-workspace-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "editor" "preview" "actions" "connection";
    row-gap: 14px;
  }

  html[data-platform="desktop"] body.nova-ready #obsWorkspacePage #settings-obs .obs-preview-column > label > b {
    font-size: 16px !important;
  }
}
