/* Apple Notes-inspired application chrome. */
:root {
  color-scheme: light dark;
  --app: #fff;
  --sidebar: #f6f6f6;
  --list: #fff;
  --paper: #fff;
  --text: #202020;
  --secondary: #838383;
  --tertiary: #a1a1a1;
  --line: #dedede;
  --hairline: rgba(0, 0, 0, .09);
  --folder-selected: #e5e5e5;
  --note-selected: #fbe49a;
  --accent: #be8900;
  --glass: rgba(255, 255, 255, .84);
  --glass-edge: rgba(255, 255, 255, .92);
  --glass-shadow: 0 1px 5px rgba(0, 0, 0, .09), 0 0 1px rgba(0, 0, 0, .13);
  --hover: rgba(0, 0, 0, .045);
  --danger: #e84343;
  --focus: #007aff;
  --folder-width: 210px;
  --list-width: 280px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --app: #1c1c1e; --sidebar: #29292b; --list: #232325; --paper: #1c1c1e;
    --text: #f3f3f3; --secondary: #9c9c9f; --tertiary: #77777b;
    --line: #3b3b3d; --hairline: rgba(255, 255, 255, .09);
    --folder-selected: #424244; --note-selected: #725e24; --accent: #eac445;
    --glass: rgba(58, 58, 60, .85); --glass-edge: rgba(255, 255, 255, .1);
    --glass-shadow: 0 1px 7px rgba(0, 0, 0, .3), 0 0 1px rgba(255, 255, 255, .15);
    --hover: rgba(255, 255, 255, .065); --danger: #ff6565; --focus: #0a84ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --app: #1c1c1e; --sidebar: #29292b; --list: #232325; --paper: #1c1c1e;
  --text: #f3f3f3; --secondary: #9c9c9f; --tertiary: #77777b;
  --line: #3b3b3d; --hairline: rgba(255, 255, 255, .09);
  --folder-selected: #424244; --note-selected: #725e24; --accent: #eac445;
  --glass: rgba(58, 58, 60, .85); --glass-edge: rgba(255, 255, 255, .1);
  --glass-shadow: 0 1px 7px rgba(0, 0, 0, .3), 0 0 1px rgba(255, 255, 255, .15);
  --hover: rgba(255, 255, 255, .065); --danger: #ff6565; --focus: #0a84ff;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: var(--app); color: var(--text); }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, a, input { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, input { border-radius: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, [contenteditable]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button:disabled { opacity: .34; }
button[hidden], [hidden] { display: none !important; }
svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 15px; border-radius: 9px; background: var(--paper); color: var(--text); box-shadow: var(--glass-shadow); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
::selection { background: #f8dc70; color: #181818; }
.notes-app { width: 100%; min-height: 100vh; min-height: 100dvh; background: var(--paper); }
html:not(.js-ready) [data-enhancement] { display: none !important; }
html:not(.js-ready) .editor-pane { width: min(100%, 720px); margin: 0 auto; padding: 36px 24px; }
html:not(.js-ready) .note-document { padding: 0; }
.js-ready, .js-ready body { height: 100%; overflow: hidden; }
.js-ready .notes-app { display: grid; grid-template-columns: var(--folder-width) var(--list-width) minmax(0, 1fr); height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.folders-pane, .list-pane, .editor-pane { min-width: 0; min-height: 0; }
.folders-pane { display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--hairline); }
.folders-toolbar, .list-toolbar, .editor-toolbar { height: 56px; min-height: 56px; display: flex; align-items: center; }
.folders-toolbar { padding: 0 14px 0 16px; gap: 20px; }
.traffic-lights { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.traffic-lights span { width: 12px; height: 12px; border-radius: 50%; border: .5px solid rgba(0, 0, 0, .12); background: #ff5f57; }
.traffic-lights span:nth-child(2) { background: #febc2e; }
.traffic-lights span:nth-child(3) { background: #28c840; }
.tool { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; padding: 5px; background: transparent; border-radius: 50%; }
.tool:hover:not(:disabled) { background: var(--hover); }
.tool svg { width: 20px; height: 20px; }
.folders-toolbar .tool { color: #767676; }
.folder-section { padding: 18px 10px 0; }
.folder-section > h2 { margin: 0 8px 8px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--secondary); }
.folder-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 31px; padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 13px; line-height: 19px; }
.folder-row > svg { width: 19px; height: 19px; color: var(--accent); }
.folder-row.selected { background: var(--folder-selected); }
.folder-row:hover:not(.selected) { background: var(--hover); }
.folder-row > span:not(.folder-count) { flex: 1; }
.folder-count { color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.folder-chevron { display: none; }
.local-info { display: flex; align-items: center; gap: 6px; margin: auto 17px 17px; padding: 5px 0; max-width: 175px; border: 0; background: transparent; color: var(--secondary); text-align: left; font-size: 11px; line-height: 1.45; }
.local-info > svg { width: 13px; height: 13px; }
.local-info:hover { color: var(--text); }
.list-pane { display: flex; flex-direction: column; position: relative; background: var(--list); border-right: 1px solid var(--line); }
.list-toolbar { padding: 0 16px; gap: 8px; }
.list-toolbar-title { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.list-toolbar-title > span { font-size: 13px; line-height: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-toolbar-title > small { font-size: 11px; line-height: 14px; color: var(--secondary); }
.list-more { margin-left: auto; }
.list-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 18px; }
.pinned-group, .date-group { display: flex; align-items: center; gap: 5px; margin: 9px 9px 7px; font-size: 12px; font-weight: 700; line-height: 17px; color: var(--secondary); }
.pinned-group > svg { width: 13px; height: 13px; color: var(--accent); }
.date-group { margin-top: 18px; }
.note-row { position: relative; display: block; width: 100%; border: 0; border-radius: 8px; padding: 10px 13px; background: transparent; text-align: left; cursor: default; }
.note-row + .note-row::before { content: ""; position: absolute; top: 0; left: 13px; right: 13px; height: 1px; background: var(--hairline); }
.note-row.selected, .note-row[aria-current="true"] { background: var(--note-selected); }
.note-row.selected::before, .note-row.selected + .note-row::before, .note-row[aria-current="true"]::before, .note-row[aria-current="true"] + .note-row::before { opacity: 0; }
.note-row:not(.selected):not([aria-current="true"]):hover { background: var(--hover); }
.note-row-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 18px; font-weight: 600; }
.note-row-preview { display: flex; gap: 6px; margin-top: 2px; font-size: 11px; line-height: 16px; color: var(--secondary); }
.note-row-preview time { flex: 0 0 auto; color: var(--text); font-variant-numeric: tabular-nums; }
.note-row-preview > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-row-folder { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; line-height: 14px; color: var(--secondary); }
.note-row-folder svg { width: 12px; height: 12px; }
.list-empty { display: flex; min-height: 230px; flex-direction: column; align-items: center; justify-content: center; padding: 35px 20px; text-align: center; color: var(--secondary); }
.list-empty > svg { width: 34px; height: 34px; margin-bottom: 12px; color: var(--tertiary); }
.list-empty h2 { margin: 0 0 5px; color: var(--text); font-size: 16px; line-height: 21px; }
.list-empty p { margin: 0; font-size: 12px; line-height: 18px; }
.list-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 13px 13px; }
#list-count { font-size: 11px; color: var(--secondary); }
.search-bar { display: flex; width: 100%; align-items: center; gap: 6px; min-height: 29px; padding: 4px 7px; background: var(--hover); border: 1px solid var(--hairline); border-radius: 7px; }
.search-bar > svg { width: 15px; height: 15px; color: var(--secondary); }
.search-bar > input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; color: var(--text); font-size: 12px; line-height: 18px; -webkit-appearance: none; appearance: none; }
.search-bar > input::-webkit-search-cancel-button { display: none; }
.search-bar > input::placeholder { color: var(--secondary); opacity: 1; }
.search-bar:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-bar > button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--secondary); }
.search-bar > button svg { width: 15px; height: 15px; }
.editor-pane { display: flex; flex-direction: column; position: relative; background: var(--paper); overflow: hidden; }
.editor-toolbar { position: relative; z-index: 5; gap: 18px; padding: 0 20px; background: var(--paper); }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; }
.toolbar-right { margin-left: auto; }
.glass-button, .glass-group { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.glass-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; padding: 6px; }
.glass-button:hover:not(:disabled) { filter: brightness(.97); }
.glass-button svg { width: 19px; height: 19px; }
.glass-group { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 4px; padding: 2px 4px; border-radius: 99px; }
.glass-group > .tool { width: 29px; height: 29px; }
.glass-group > .tool svg { width: 19px; height: 19px; }
.format-type { font-size: 18px; font-weight: 500; letter-spacing: -.7px; }
.readonly-icon { display: inline-flex; align-items: center; justify-content: center; width: 25px; color: var(--secondary); }
.readonly-icon svg { width: 15px; height: 15px; }
.done-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 34px; padding: 0 8px; background: transparent; border: 0; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--accent); }
.note-scroller { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-bottom: 32px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.note-date { margin: 14px 24px 13px; color: var(--secondary); text-align: center; font-size: 12px; line-height: 17px; font-weight: 400; font-variant-numeric: tabular-nums; }
.note-document { padding: 0 24px 30px; font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.note-document > :first-child { margin-top: 0; }
.note-document h1 { margin: 0 0 15px; font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -.45px; }
.note-document p { margin: 0 0 16px; }
.note-document ul, .note-document ol { padding-left: 21px; margin: 0 0 16px; }
.note-document li { margin: 0 0 6px; padding-left: 0; }
.note-document li:last-child { margin-bottom: 0; }
.note-document li::marker { color: var(--text); font-size: .83em; }
.personal-title { display: block; width: 100%; padding: 0; margin: 0 0 9px; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -.45px; appearance: none; }
.personal-title::placeholder { color: var(--tertiary); opacity: 1; }
.personal-title:focus-visible, .personal-body:focus-visible { outline: none; }
.personal-body { min-height: 240px; padding: 0 0 28px; outline: 0; white-space: pre-wrap; overflow-wrap: anywhere; caret-color: var(--accent); }
.personal-body:empty::before { content: attr(data-placeholder); color: var(--tertiary); pointer-events: none; }
.personal-body p, .personal-body > div { margin: 0 0 4px; }
.personal-body h2 { margin: 14px 0 6px; font-size: 19px; line-height: 25px; font-weight: 600; }
.personal-body ul, .personal-body ol { margin-top: 5px; margin-bottom: 8px; }
.personal-body li { margin-bottom: 4px; }
.personal-body table { width: 100%; margin: 13px 0; border-collapse: collapse; table-layout: fixed; }
.personal-body td { padding: 7px 9px; border: 1px solid var(--line); min-width: 50px; vertical-align: top; }
.personal-body .checklist { list-style: none; padding-left: 0; }
.personal-body .checklist > li { position: relative; padding-left: 26px; }
.personal-body input[type="checkbox"] { position: absolute; left: 0; top: 2px; width: 17px; height: 17px; margin: 0; border: 1.4px solid var(--tertiary); border-radius: 50%; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.personal-body input[type="checkbox"]:checked { border-color: var(--accent); background: var(--accent); }
.personal-body input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 4px; top: 2px; width: 5px; height: 8px; border: solid var(--paper); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.personal-body .checklist > li:has(input:checked) { color: var(--secondary); }
.personal-body[contenteditable="false"] { cursor: default; }
.editor-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12vh 24px; min-height: 45vh; color: var(--tertiary); text-align: center; }
.editor-empty > svg { width: 48px; height: 48px; }
.editor-empty h2 { font-size: 20px; line-height: 26px; font-weight: 600; margin: 16px 0 7px; }
.editor-empty p { margin: 0; font-size: 14px; line-height: 20px; }
.editor-bottom { display: flex; align-items: center; justify-content: center; min-height: 26px; padding: 4px 24px 8px; background: var(--paper); }
.save-status { font-size: 10px; line-height: 15px; color: var(--secondary); }
.storage-error, .deleted-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 9px 24px; font-size: 12px; line-height: 17px; border-bottom: 1px solid var(--hairline); background: var(--sidebar); }
.storage-error { color: var(--danger); }
.deleted-notice { color: var(--secondary); }
.deleted-notice button { padding: 0; border: 0; background: transparent; color: var(--accent); font-weight: 600; }
.mobile-back, .mobile-compose, .mobile-format-tools, .mobile-list-title, .mobile-folders-title { display: none; }
.folders-toggle { display: none; }
.notes-app.folders-hidden { grid-template-columns: var(--list-width) minmax(0, 1fr); }
.notes-app.folders-hidden > .folders-pane { display: none; }
.notes-app.folders-hidden .folders-toggle { display: inline-flex; }
.popover { position: fixed; z-index: 40; top: 53px; right: 22px; width: 236px; padding: 5px; border: 1px solid var(--glass-edge); border-radius: 13px; background: var(--glass); color: var(--text); box-shadow: 0 5px 22px rgba(0, 0, 0, .16), 0 0 1px rgba(0, 0, 0, .2); backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4); }
.format-popover { right: auto; left: calc(var(--folder-width) + var(--list-width) + 72px); width: 220px; }
.popover-label { margin: 6px 8px 8px; font-size: 11px; font-weight: 500; color: var(--secondary); }
.popover > button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 31px; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: 13px; line-height: 18px; }
.popover > button:hover:not(:disabled) { background: var(--hover); }
.popover > button > svg { width: 17px; height: 17px; }
.popover > button.destructive, .popover > button[data-action="delete-note"], .popover > button[data-action="delete-permanently"] { color: var(--danger); }
.popover .theme-check { order: 1; margin-left: auto; width: 15px; height: 15px; color: var(--accent); }
.menu-separator { height: 1px; margin: 5px -5px; background: var(--hairline); border: 0; }
.inline-formats { display: flex; align-items: center; padding: 0 4px 5px; gap: 3px; }
.inline-formats > button { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 32px; border: 0; border-radius: 6px; background: transparent; font-size: 16px; }
.inline-formats > button:hover { background: var(--hover); }
.inline-formats > button[aria-pressed="true"] { background: var(--folder-selected); }
.format-heading { font-weight: 600; }
.toast { position: fixed; z-index: 60; bottom: 28px; left: 50%; display: flex; align-items: center; gap: 14px; max-width: min(440px, calc(100vw - 32px)); min-height: 42px; padding: 10px 16px; border: 1px solid var(--glass-edge); border-radius: 99px; background: var(--glass); box-shadow: 0 3px 20px rgba(0, 0, 0, .15); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); font-size: 13px; line-height: 18px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .16s ease, transform .16s ease; }
.toast.visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast > button { border: 0; padding: 2px 0; background: transparent; color: var(--accent); font-weight: 600; white-space: nowrap; }
dialog { width: min(340px, calc(100vw - 40px)); padding: 25px; border: 1px solid var(--glass-edge); border-radius: 22px; color: var(--text); background: var(--glass); box-shadow: 0 20px 80px rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(35px); backdrop-filter: blur(35px); text-align: center; }
dialog::backdrop { background: rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog h2 { margin: 13px 0 9px; font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -.25px; }
dialog p { margin: 0 0 18px; font-size: 13px; line-height: 19px; color: var(--secondary); }
dialog input { width: 100%; margin: 3px 0 18px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--paper); font-size: 14px; }
.dialog-symbol { display: flex; justify-content: center; color: var(--accent); }
.dialog-symbol svg, svg.dialog-symbol { width: 40px; height: 40px; margin: 0 auto; stroke-width: 1.2; }
.dialog-primary, .dialog-actions > button { min-height: 35px; padding: 7px 14px; border: 0; border-radius: 10px; background: var(--folder-selected); font-weight: 600; }
.dialog-primary { width: 100%; background: var(--accent); color: #fff; }
.dialog-actions { display: flex; gap: 8px; }
.dialog-actions > button { flex: 1; }
.dialog-actions > button.destructive { color: var(--danger); }
@media (min-width: 701px) and (max-width: 1000px) {
  :root { --folder-width: 190px; --list-width: 245px; }
  .editor-toolbar { gap: 9px; padding-left: 16px; padding-right: 16px; }
  .toolbar-right { gap: 7px; }
  .glass-group { gap: 1px; }
  .desktop-search { display: none; }
  .note-document { padding-left: 21px; padding-right: 21px; }
}
@media (max-width: 700px) {
  :root { font-size: 17px; --accent: #d49b00; --sidebar: #f2f2f7; --list: #f2f2f7; --glass-shadow: 0 1px 7px rgba(0, 0, 0, .075), 0 0 1px rgba(0, 0, 0, .14); }
  :root[data-theme="dark"] { --accent: #ffd426; --sidebar: #000; --list: #000; --paper: #000; --glass: rgba(43, 43, 45, .78); --glass-shadow: 0 1px 8px rgba(0, 0, 0, .26), 0 0 1px rgba(255, 255, 255, .15); }
  .js-ready .notes-app, .js-ready .notes-app.folders-hidden { display: block; height: 100dvh; }
  .js-ready .notes-app > .folders-pane, .js-ready .notes-app > .list-pane, .js-ready .notes-app > .editor-pane { display: none; width: 100%; height: 100%; border: 0; }
  .js-ready .notes-app[data-mobile-view="note"] > .editor-pane { display: flex; }
  .js-ready .notes-app[data-mobile-view="list"] > .list-pane { display: flex; }
  .js-ready .notes-app[data-mobile-view="folders"] > .folders-pane { display: flex !important; }
  .traffic-lights, .folders-toolbar > .tool, .folders-toggle, .desktop-new, .desktop-search, .editor-toolbar > .format-tools, .list-toolbar-title, .readonly-icon { display: none !important; }
  .mobile-back, .mobile-compose, .mobile-format-tools { display: inline-flex; }
  .mobile-list-title, .mobile-folders-title { display: block; }
  .glass-button { width: 44px; height: 44px; padding: 10px; border-radius: 50%; }
  .glass-button > svg { width: 23px; height: 23px; }
  .mobile-back { color: var(--text); }
  .mobile-back > svg { width: 22px; height: 22px; stroke-width: 2.2; }
  .glass-group { height: 44px; gap: 7px; padding: 4px 8px; }
  .glass-group > .tool { width: 34px; height: 34px; }
  .glass-group > .tool > svg { width: 23px; height: 23px; stroke-width: 1.7; }
  .editor-toolbar { height: calc(64px + env(safe-area-inset-top)); min-height: calc(64px + env(safe-area-inset-top)); padding: calc(9px + env(safe-area-inset-top)) 16px 11px; gap: 12px; background: color-mix(in srgb, var(--paper) 85%, transparent); }
  .toolbar-left, .toolbar-right { gap: 10px; }
  .toolbar-right > .glass-group { gap: 10px; }
  .done-button { width: 44px; min-width: 44px; height: 44px; padding: 10px; background: #ffcc00; color: #1d1d1f; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
  .done-button svg { width: 23px; height: 23px; stroke-width: 2; }
  .note-scroller { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .note-date { margin: 11px 20px 18px; font-size: 13px; line-height: 18px; }
  .note-document { padding: 0 20px 30px; font-size: 17px; line-height: 22px; letter-spacing: -.2px; }
  .note-document h1 { margin-bottom: 18px; font-size: 26px; line-height: 31px; letter-spacing: -.5px; }
  .note-document p { margin-bottom: 18px; }
  .note-document ul, .note-document ol { padding-left: 22px; margin-bottom: 18px; }
  .note-document li { margin-bottom: 8px; }
  .personal-title { margin-bottom: 8px; font-size: 26px; line-height: 34px; letter-spacing: -.5px; }
  .personal-body { min-height: calc(100dvh - 250px); }
  .personal-body p, .personal-body > div { margin-bottom: 4px; }
  .personal-body h2 { font-size: 22px; line-height: 28px; }
  .personal-body .checklist > li { padding-left: 30px; }
  .personal-body input[type="checkbox"] { width: 21px; height: 21px; top: 1px; }
  .personal-body input[type="checkbox"]:checked::after { width: 6px; height: 10px; left: 6px; top: 3px; border-width: 0 1.8px 1.8px 0; }
  .editor-bottom { position: absolute; z-index: 6; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; min-height: calc(100px + env(safe-area-inset-bottom)); padding: 34px 20px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--paper) 50%); pointer-events: none; }
  .editor-bottom > * { pointer-events: auto; }
  .editor-bottom .glass-group { padding: 4px 10px; gap: 12px; }
  .editor-bottom .glass-group > .tool { width: 35px; height: 35px; }
  .editor-bottom .format-type { font-size: 21px; letter-spacing: -.5px; }
  .editor-bottom .mobile-compose { margin-left: auto; }
  .mobile-compose svg { width: 23px; height: 23px; }
  .save-status { position: absolute; left: 50%; bottom: calc(3px + env(safe-area-inset-bottom)); transform: translateX(-50%); white-space: nowrap; font-size: 10px; line-height: 13px; }
  .storage-error, .deleted-notice { font-size: 13px; line-height: 18px; padding: 9px 20px; }
  .list-toolbar { z-index: 5; height: calc(64px + env(safe-area-inset-top)); min-height: calc(64px + env(safe-area-inset-top)); padding: calc(9px + env(safe-area-inset-top)) 16px 11px; justify-content: space-between; }
  .list-more { margin-left: auto; }
  .list-content { padding: 1px 20px calc(138px + env(safe-area-inset-bottom)); }
  .mobile-list-title, .mobile-folders-title { margin: 8px 0 23px; font-size: 34px; line-height: 41px; letter-spacing: -.8px; font-weight: 700; }
  .pinned-group, .date-group { margin: 22px 0 9px; font-size: 20px; line-height: 26px; letter-spacing: -.3px; color: var(--text); }
  .pinned-group { gap: 7px; margin-top: 0; }
  .pinned-group > svg { width: 18px; height: 18px; color: var(--text); }
  #pinned-list, #personal-list { overflow: hidden; border-radius: 13px; background: var(--paper); }
  .note-row { padding: 13px 17px; min-height: 85px; border-radius: 0; cursor: pointer; }
  .note-row.selected, .note-row[aria-current="true"] { background: transparent; }
  .note-row:hover:not(.selected) { background: transparent; }
  .note-row:active, .note-row.selected:active { background: var(--hover); }
  .note-row + .note-row::before { left: 17px; right: 0; }
  .note-row.selected + .note-row::before { opacity: 1; }
  .note-row-title { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.25px; }
  .note-row-preview { gap: 7px; margin-top: 2px; font-size: 15px; line-height: 20px; letter-spacing: -.2px; }
  .note-row-folder { gap: 4px; margin-top: 4px; font-size: 13px; line-height: 17px; }
  .note-row-folder svg { width: 13px; height: 13px; }
  .list-empty { padding: 45px 20px; }
  .list-empty h2 { font-size: 22px; line-height: 28px; }
  .list-empty p { font-size: 15px; line-height: 21px; }
  .list-bottom { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 12px 14px; align-items: center; padding: 32px 20px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--list) 28%); pointer-events: none; }
  .list-bottom > * { pointer-events: auto; }
  #list-count { grid-column: 1 / -1; text-align: center; font-size: 13px; line-height: 18px; color: var(--text); }
  .search-bar { min-height: 46px; gap: 7px; padding: 10px 13px; border-radius: 99px; border: 1px solid var(--glass-edge); background: var(--glass); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .search-bar > svg { width: 20px; height: 20px; }
  .search-bar > input { font-size: 17px; line-height: 24px; letter-spacing: -.3px; }
  .search-bar > button { width: 24px; height: 24px; }
  .search-bar > button > svg { width: 18px; height: 18px; }
  .folders-toolbar { height: calc(55px + env(safe-area-inset-top)); min-height: calc(55px + env(safe-area-inset-top)); }
  .mobile-folders-title { padding: 0 20px; }
  .folder-section { margin: 0 20px; padding: 0; }
  .folder-section > h2 { margin: 10px 0 10px; color: var(--text); font-size: 20px; line-height: 26px; letter-spacing: -.3px; }
  .folder-row { min-height: 48px; gap: 12px; padding: 11px 15px; border-radius: 0; background: var(--paper); font-size: 17px; line-height: 24px; }
  .folder-row.selected { background: var(--paper); }
  .folder-row:first-of-type { border-radius: 13px 13px 0 0; }
  .folder-row:last-of-type { border-radius: 0 0 13px 13px; }
  .folder-row:only-of-type { border-radius: 13px; }
  .folder-row + .folder-row { border-top: 1px solid var(--hairline); }
  .folder-row > svg { width: 23px; height: 23px; }
  .folder-row .folder-chevron { display: block; width: 13px; height: 13px; color: var(--tertiary); stroke-width: 2; }
  .folder-count { font-size: 17px; }
  .local-info { max-width: none; margin: auto 35px calc(25px + env(safe-area-inset-bottom)); font-size: 13px; line-height: 18px; }
  .popover { top: calc(61px + env(safe-area-inset-top)); right: 16px; width: 260px; padding: 6px; border-radius: 19px; }
  .popover > button { min-height: 43px; padding: 10px 11px; font-size: 16px; line-height: 22px; border-radius: 9px; }
  .popover > button > svg { width: 20px; height: 20px; }
  .popover-label { margin: 9px 11px 8px; font-size: 12px; }
  .format-popover { top: auto; right: auto; bottom: auto; left: 20px; width: 248px; }
  .inline-formats { padding: 1px 5px 6px; justify-content: space-between; }
  .inline-formats > button { width: 49px; height: 39px; font-size: 19px; }
  .toast { bottom: calc(85px + env(safe-area-inset-bottom)); font-size: 14px; line-height: 19px; padding: 13px 17px; }
  dialog { padding: 24px; border-radius: 26px; }
  dialog h2 { font-size: 20px; line-height: 25px; }
  dialog p { font-size: 15px; line-height: 21px; }
  .dialog-primary, .dialog-actions > button { min-height: 44px; font-size: 16px; border-radius: 99px; }
}
@media (max-width: 700px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent: #ffd426; --sidebar: #000; --list: #000; --paper: #000; --glass: rgba(43, 43, 45, .78); --glass-shadow: 0 1px 8px rgba(0, 0, 0, .26), 0 0 1px rgba(255, 255, 255, .15); }
  :root:not([data-theme="light"]) #pinned-list, :root:not([data-theme="light"]) #personal-list, :root:not([data-theme="light"]) .folder-row { background: #1c1c1e; }
}
@media (max-width: 700px) {
  :root[data-theme="dark"] #pinned-list, :root[data-theme="dark"] #personal-list, :root[data-theme="dark"] .folder-row { background: #1c1c1e; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  html, body, .js-ready, .js-ready body { height: auto !important; overflow: visible !important; background: #fff; color: #000; }
  .js-ready .notes-app, .js-ready .notes-app.folders-hidden { display: block; height: auto; overflow: visible; }
  .folders-pane, .list-pane, .editor-toolbar, .editor-bottom, .storage-error, .deleted-notice, .popover, .toast, dialog { display: none !important; }
  .js-ready .notes-app > .editor-pane { display: block !important; overflow: visible; height: auto; }
  .note-scroller { overflow: visible; padding: 0; }
  .note-date { color: #666; }
  .note-document { padding: 0 20px; }
}

/* Private copies use the original note's spacing, with the same editable controls. */
.personal-document.is-pinned .personal-title { line-height: 26px; margin-bottom: 15px; }
.personal-document.is-pinned .personal-body { white-space: normal; }
.personal-document.is-pinned .personal-body p { margin-bottom: 16px; }
.personal-document.is-pinned .personal-body ul, .personal-document.is-pinned .personal-body ol { margin-top: 0; margin-bottom: 16px; }
.personal-document.is-pinned .personal-body li { margin-bottom: 6px; }
.privacy-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; padding: 7px 24px; border-bottom: 1px solid var(--hairline); color: var(--secondary); background: var(--paper); font-size: 11px; line-height: 16px; }
.privacy-notice button, .storage-error button { padding: 0; border: 0; color: var(--accent); background: transparent; font: inherit; white-space: nowrap; }
.privacy-notice [data-action="dismiss-privacy"] { margin-left: auto; padding: 0 3px; font-size: 20px; color: var(--secondary); }
#privacy-dialog { width: min(410px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); }
#legacy-dialog { width: min(470px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); }
#legacy-list { padding: 0; list-style: none; text-align: left; }
#legacy-list > li { padding: 14px 0; border-top: 1px solid var(--hairline); overflow-wrap: anywhere; }
#legacy-list strong { font-size: 15px; }
#legacy-list p { margin: 6px 0 10px; white-space: pre-wrap; }
.legacy-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.legacy-actions button { padding: 7px 10px; border: 0; border-radius: 8px; background: var(--folder-selected); font-size: 12px; }
@media (max-width: 700px) {
  .personal-document.is-pinned .personal-title { line-height: 31px; margin-bottom: 18px; }
  .personal-document.is-pinned .personal-body p { margin-bottom: 18px; }
  .personal-document.is-pinned .personal-body ul, .personal-document.is-pinned .personal-body ol { margin-bottom: 18px; }
  .personal-document.is-pinned .personal-body li { margin-bottom: 8px; }
  .privacy-notice { padding: 7px 20px; font-size: 12px; }
  .legacy-actions button { min-height: 40px; font-size: 14px; }
}
@media print { .privacy-notice { display: none !important; } }
