.app-catatan { --notes-side:220px; --notes-list:230px; --notes-accent:#ffa900; background:#fff; border-radius:23px; container-type:inline-size; container-name:notes-window; }
.app-catatan .titlebar { position:absolute; inset:0 0 auto; height:57px; z-index:5; background:transparent; border:0; padding:0 19px; border-radius:23px 23px 0 0; }
.app-catatan .win-title { display:none; }
.app-catatan .traffic { gap:8px; }
.app-catatan .light { width:13px; height:13px; }
.app-catatan .win-body { overflow:hidden; border-radius:23px; }
.notes-layout { display:grid; grid-template-columns:var(--notes-side) var(--notes-list) minmax(0,1fr); height:100%; padding-top:57px; }
.notes-sidebar { position:absolute; top:8px; left:8px; width:calc(var(--notes-side) - 8px); bottom:8px; padding:51px 10px 20px; border-radius:20px; background:linear-gradient(160deg,#fff2f7ef,#faf6f2ef 35%,#f8f8fa 70%); border:1px solid #ffffffdb; overflow:auto; }
.notes-toolbar { position:absolute; inset:0; pointer-events:none; display:grid; grid-template-columns:var(--notes-side) var(--notes-list) minmax(0,1fr); align-items:center; padding:0 8px; gap:0; }
.notes-toolbar button { display:grid; place-items:center; flex:none; width:32px; height:32px; border:0; border-radius:50%; background:none; color:#565657; padding:6px; cursor:default; pointer-events:auto; }
.notes-toolbar button:hover:not(:disabled),.notes-toolbar button[aria-expanded=true] { background:#00000008; }
.notes-toolbar button:disabled { opacity:.35; }
.notes-toolbar svg { width:21px; height:21px; }
.notes-side-tools { padding-left:128px; display:flex; gap:6px; }
.notes-list-tools { display:flex; align-items:center; gap:8px; padding:0 9px 0 20px; min-width:0; height:57px; border-bottom:1px solid #dfdfe0; }
.notes-list-heading { display:flex; flex-direction:column; min-width:0; flex:1; gap:1px; font-size:13px; color:#4a4a4a; }
.notes-list-heading strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:700; }
.notes-list-heading span { color:#8c8c8d; font-size:12px; }
.notes-toolbar .notes-circle { width:39px; height:39px; background:#ffffffc9; box-shadow:0 8px 27px #00000005; }
.notes-editor-tools { min-width:0; display:flex; align-items:center; gap:14px; padding:0 8px 0 14px; height:57px; border-bottom:1px solid #dfdfe0; background:linear-gradient(#fff,#fbfbfb); border-top-right-radius:23px; }
.notes-format-pill { display:flex; align-items:center; border-radius:25px; background:#fff; padding:3px 5px; box-shadow:0 8px 27px #00000004; }
.notes-format-pill button { width:34px; }
.notes-aa { font-size:21px; line-height:1; letter-spacing:-1px; }
.notes-right-tools { margin-left:auto; display:flex; gap:5px; align-items:center; }
.notes-right-tools [data-action=search] { margin-left:7px; }
.notes-list-pane { grid-column:2; display:flex; flex-direction:column; min-height:0; min-width:0; border-right:1px solid #e1e1e1; background:#fff; box-shadow:inset 15px 0 22px -22px #0002; }
.notes-list { flex:1; min-height:0; padding:0 11px 25px; overflow:auto; }
.notes-group { font-size:15px; font-weight:700; color:#292929; margin:0 5px; padding:16px 0 11px; border-bottom:1px solid #dedede; letter-spacing:-.3px; }
.notes-group:not(:first-child) { padding-top:30px; }
.notes-card { display:flex; flex-direction:column; width:100%; background:transparent; border:0; border-radius:9px; padding:10px 19px; text-align:left; color:#262626; font-family:var(--font-ui); cursor:default; position:relative; gap:3px; }
.notes-card::after { content:''; height:1px; position:absolute; bottom:0; left:19px; right:19px; background:#e1e1e1; }
.notes-card.is-selected { background:#ffe48c; margin-top:10px; margin-bottom:6px; }
.notes-card.is-selected::after { display:none; }
.notes-card-title { font-size:13px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; width:100%; letter-spacing:-.15px; }
.notes-card-preview { display:flex; gap:8px; width:100%; min-width:0; font-size:12px; }
.notes-card-time { flex:none; }
.notes-card-snippet { color:#8a8a87; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notes-card-folder { display:flex; align-items:center; gap:4px; color:#8d8d88; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notes-card-folder svg { width:14px; height:14px; flex:none; }
.notes-folder-row { position:relative; border-radius:9px; margin:2px 0; }
.notes-folder-row.is-selected { background:#e9e2dd65; color:var(--notes-accent); }
.notes-folder-button { width:100%; border:0; background:none; display:flex; align-items:center; gap:8px; height:34px; padding:0 7px; color:inherit; font:13px var(--font-ui); text-align:left; cursor:default; }
.notes-folder-button svg { width:20px; height:20px; flex:none; }
.notes-folder-button > span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notes-folder-button small { font-size:12px; color:#b2b0ae; }
.notes-folder-more { position:absolute; right:26px; top:9px; display:none; border:0; background:#b9b9bb; color:white; border-radius:50%; padding:1px 2px; font-size:7px; cursor:default; }
.notes-folder-row:hover .notes-folder-more { display:block; }
.notes-side-heading { font-size:11px; color:#888; margin:22px 7px 4px; font-weight:600; }
.notes-local-heading { display:flex; width:100%; align-items:center; justify-content:space-between; padding:0 7px; margin:25px 0 0; border:0; background:none; font:600 11px var(--font-ui); color:#888; }
.notes-main { grid-column:3; min-width:0; min-height:0; display:flex; flex-direction:column; overflow:auto; background:#fff; }
.notes-date { flex:none; color:#a2a2a2; text-align:center; font-size:11px; padding:10px 14px 0; }
.notes-editor { flex:1; min-height:200px; padding:10px 25px 30px; font:14px/1.35 var(--font-ui); color:#414141; outline:none; overflow-wrap:anywhere; cursor:text; }
.notes-editor h1 { font-size:23px; line-height:1.12; letter-spacing:-.6px; margin:3px 0 3px; font-weight:750; }
.notes-editor h2 { font-size:20px; margin:12px 0 4px; }
.notes-editor h3 { font-size:17px; margin:10px 0 4px; }
.notes-editor p { margin:0 0 5px; }
.notes-editor ul,.notes-editor ol { margin:5px 0; padding-left:25px; }
.notes-editor table { border-collapse:collapse; width:100%; margin:10px 0; }
.notes-editor td,.notes-editor th { min-width:60px; border:1px solid #d5d5d5; padding:5px; }
.notes-editor blockquote { margin:8px 0; padding-left:12px; border-left:3px solid #b8b8b8; color:#777; }
.notes-editor pre { white-space:pre-wrap; font-family:Menlo,monospace; }
.notes-editor a { color:#ad7900; }
.notes-editor ::selection { background:#ffe090; }
.notes-status { flex:none; min-height:17px; font-size:10px; padding:0 15px 5px; color:#9c7b38; }
.notes-empty { display:grid; place-items:center; height:100%; color:#b6b6b6; font-size:22px; padding-top:50px; }
.notes-search { padding:8px 10px; border-bottom:1px solid #ddd; }
.notes-search[hidden] { display:none; }
.notes-search input { width:100%; border:1px solid #d6d6d6; border-radius:7px; padding:5px 8px; font:12px var(--font-ui); outline-color:#e9b631; background:#fafafa; }
.notes-list-empty { text-align:center; font-size:13px; color:#aaa; margin-top:30px; }
.notes-list.is-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); align-content:start; gap:8px; padding-top:8px; }
.notes-list.is-gallery .notes-group { grid-column:1 / -1; }
.notes-list.is-gallery .notes-card { min-height:115px; padding:13px; border:1px solid #e7e7e7; margin:0; box-shadow:0 2px 4px #00000004; }
.notes-list.is-gallery .notes-card-snippet { white-space:normal; }
.notes-hide-sidebar { --notes-side:0px; }
.notes-hide-sidebar .notes-sidebar { display:none; }
.notes-hide-sidebar .notes-side-tools { position:absolute; left:85px; top:12px; padding:0; }
.notes-hide-sidebar .notes-list-tools { padding-left:175px; }
.notes-hide-sidebar { --notes-list:350px; }
.notes-popover { position:absolute; z-index:40; border:1px solid #c6c6c8; border-radius:14px; background:linear-gradient(140deg,#fafafaf5,#fffaf3e8); box-shadow:0 6px 20px #0003; backdrop-filter:blur(28px) saturate(150%); -webkit-backdrop-filter:blur(28px) saturate(150%); padding:6px; overflow:auto; color:#292929; }
.notes-popover[hidden] { display:none; }
.notes-menu-row { border:0; background:transparent; display:flex; align-items:center; width:100%; min-height:29px; padding:4px 12px; gap:10px; border-radius:6px; font:13px/1.3 var(--font-ui); text-align:left; color:inherit; cursor:default; }
.notes-menu-icon { flex:none; width:18px; height:18px; }
.notes-menu-icon svg { width:18px; height:18px; }
.notes-menu-label { flex:1; min-width:0; }
.notes-menu-arrow { font-size:21px; line-height:15px; }
.notes-menu-row:not(:disabled):hover,.notes-menu-row:focus-visible { background:#ffe195; outline:none; }
.notes-menu-row:disabled { opacity:.35; }
.notes-menu-separator { height:1px; background:#0000001a; margin:6px 12px; }
.notes-menu-heading { font-size:11px; color:#aaa; margin:12px 13px 6px; }
.notes-popover[data-kind=format] .notes-menu-row { font-size:16px; min-height:35px; }
.notes-popover[data-kind=format] .notes-menu-row:nth-of-type(1) { font-size:22px; font-weight:700; }
.notes-format-strip { display:flex; align-items:center; gap:8px; padding:3px 8px; }
.notes-format-strip button { flex:1; border:0; border-radius:4px; background:none; font-size:23px; color:#444; cursor:default; }
.notes-format-strip button:nth-child(1) { font-weight:750; }
.notes-format-strip button:nth-child(2) { font-style:italic; }
.notes-format-strip button:nth-child(3) { text-decoration:underline; }
.notes-format-strip button:nth-child(4) { text-decoration:line-through; }
.notes-sheet { position:absolute; inset:0; z-index:60; display:grid; place-items:start center; padding-top:65px; background:#00000018; border-radius:23px; }
.notes-sheet form { width:320px; max-width:calc(100% - 30px); background:#fafafa; border-radius:13px; box-shadow:0 10px 35px #0003; padding:22px; }
.notes-sheet h3 { margin:0 0 14px; font-size:16px; }
.notes-sheet input { width:100%; border:2px solid #f0bd44; border-radius:5px; padding:6px; font:13px var(--font-ui); outline:none; }
.notes-sheet form > div { display:flex; gap:8px; justify-content:flex-end; }
.notes-sheet button { border:1px solid #ddd; border-radius:6px; background:#fff; padding:4px 14px; font:12px var(--font-ui); }
.notes-sheet button[type=submit] { background:#ffca3a; border-color:#ffca3a; }
.notes-sheet-error { min-height:13px; color:#b44; font-size:11px; }
.notes-toolbar button:focus-visible,.notes-folder-button:focus-visible,.notes-card:focus-visible { outline:2px solid #e5ac20; outline-offset:-2px; }
@container notes-window (max-width:1000px) { .notes-editor-tools { gap:5px; padding-left:8px; } .notes-format-pill { padding-inline:0; } .notes-format-pill button { width:30px; } .notes-right-tools { gap:0; } .notes-right-tools [data-action=search] { margin-left:0; } }
@container notes-window (max-width:850px) { .notes-side-tools { padding-left:105px; gap:0; } .notes-list-tools { padding-left:12px; } .notes-editor-tools [data-action=share] { display:none; } .notes-format-pill [data-action=attach] { display:none; } .notes-right-tools button { width:27px; } .notes-format-pill button { width:27px; } .notes-editor { padding-inline:20px; } }
@container notes-window (max-width:730px) { .notes-editor-tools .notes-format-pill { display:none; } .notes-editor-tools { justify-content:space-between; } .notes-editor h1 { font-size:20px; } .notes-editor { padding-inline:14px; } }

.notes-editor ul.notes-checklist { list-style:none; padding-left:0; }
.notes-checklist li { position:relative; padding-left:25px; min-height:23px; }
.notes-checklist li::before { content:''; position:absolute; left:0; top:2px; width:15px; height:15px; border:1.5px solid #c6c6c6; border-radius:50%; cursor:pointer; }
.notes-checklist li[data-checked=true] { color:#999; text-decoration:line-through; }
.notes-checklist li[data-checked=true]::before { content:'✓'; color:white; background:#e7b328; border-color:#e7b328; font-size:12px; line-height:15px; text-align:center; }
/* A narrow browser panel keeps the editor usable; the sidebar button reveals navigation. */
@container notes-window (max-width:620px) {
  .notes-layout { grid-template-columns:0 170px minmax(0,1fr); }
  .notes-sidebar { display:none; }
  .notes-toolbar { grid-template-columns:0 170px minmax(0,1fr); }
  .notes-side-tools { display:none; }
  .notes-list-tools { padding-left:90px; }
  .notes-list-heading { display:none; }
}
@container notes-window (max-width:450px) {
  .notes-layout { grid-template-columns:0 0 minmax(0,1fr); }
  .notes-list-pane { display:none; }
  .notes-toolbar { grid-template-columns:0 0 minmax(0,1fr); }
  .notes-list-tools { display:none; }
  .notes-side-tools { display:flex; position:absolute; left:88px; top:12px; padding:0; }
  .notes-side-tools [data-action=folder] { display:none; }
  .notes-editor-tools { padding-left:125px; }
  .notes-right-tools [data-action=search] { width:30px; height:32px; }
  .notes-hide-sidebar .notes-sidebar { display:block; left:0; top:57px; bottom:0; width:140px; padding:8px 5px; border-radius:0; z-index:2; }
  .notes-hide-sidebar .notes-list-pane { display:flex; position:absolute; top:57px; bottom:0; left:140px; width:calc(100% - 140px); z-index:2; }
  .notes-hide-sidebar .notes-main { visibility:hidden; }
  .notes-hide-sidebar .notes-list-tools { display:none; }
}

.notes-format-strip .notes-marker { border-left:1px solid #ccc; border-radius:0; display:grid; place-items:center; padding-left:8px; }
.notes-marker svg { width:23px; height:23px; }
.notes-highlight-color { display:block; flex:none; width:10px; height:10px; border-radius:50%; background:#c93de4; }
.notes-editor mark { color:inherit; background:#efc6f7; border-radius:2px; }

/* Case attachment stays below the toolbar, including narrow Notes windows. */
.notes-case-actions { display:flex; justify-content:flex-end; padding:8px 20px 0; flex:none; }
.notes-case-button { border:1px solid #ddc88c; border-radius:8px; background:#fff8e3; color:#715114; padding:6px 10px; font:12px var(--font-ui); cursor:pointer; }
.notes-case-button:hover:not(:disabled) { background:#fff0bd; }
.notes-case-button:disabled { opacity:.45; cursor:default; }
.notes-case-button:focus-visible { outline:2px solid #e5ac20; outline-offset:2px; }
.notes-case-sheet { padding:65px 0 15px; overflow:auto; }
.notes-case-sheet form { width:390px; color:#292929; }
.notes-case-summary { font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.notes-case-hint { font-size:12px; color:#777; line-height:1.5; }
.notes-case-sheet label { display:block; font-size:12px; margin:12px 0 6px; }
.notes-case-sheet label[hidden] { display:none; }
.notes-case-sheet select { width:100%; min-width:0; border:1px solid #d8c48e; border-radius:6px; padding:8px; background:#fff; color:#292929; font:13px var(--font-ui); }
.notes-case-sheet .notes-sheet-error { overflow-wrap:anywhere; }
