/* Cradle notes workspace: a compact list beside an uncluttered writing surface. */
#notes-page { --notes-green: #005a5b; --notes-tint: #e8f1ed; --notes-line: #e3e9e5; --primary: #005a5b; --ring: #005a5b; }
.notes-heading { margin-bottom: 18px; }
.notes-heading h1 span { font-size: .72em; font-weight: 500; color: #65746e; }
.notes-heading .eyebrow { color: var(--notes-green); }
#notes-page button:focus-visible, #notes-page input:focus-visible, #notes-page textarea:focus-visible, #notes-page select:focus-visible { outline-color: var(--notes-green); }
#notes-page .button-primary { background: var(--notes-green); border-color: var(--notes-green); }
#notes-page .button-primary:hover { background: #004647; }
.notes-workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: min(840px, calc(100dvh - 225px)); min-height: 540px; overflow: hidden; border: 1px solid var(--notes-line); border-radius: 20px; background: #fff; box-shadow: 0 4px 30px #18382b06; }
.notes-sidebar { background: #f5f8f5; border-right: 1px solid var(--notes-line); min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.notes-sidebar-tools { padding: 18px 16px 10px; flex: 0 0 auto; }
.notes-scope { display: flex; gap: 3px; background: #e7ede9; padding: 4px; border-radius: 11px; margin-bottom: 14px; }
.notes-scope button { flex: 1; border: 0; border-radius: 8px; background: transparent; min-height: 35px; font-size: 13px; color: #5c6c65; }
.notes-scope button[aria-pressed="true"] { background: #fff; color: var(--notes-green); box-shadow: 0 1px 3px #14352610; font-weight: 600; }
.notes-search { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--notes-line); padding: 8px 10px; border-radius: 9px; color: #7c8983; }
.notes-search input { border: 0; outline: 0; min-width: 0; padding: 0; width: 100%; height: 24px; background: transparent; box-shadow: none; font-size: 13px; }
.notes-search svg { flex: 0 0 17px; width: 17px; }
.notes-list-options { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.notes-list-options select { padding: 6px 24px 6px 0; min-height: 32px; background-color: transparent; border: 0; color: #5c6c65; font-size: 12px; width: auto; box-shadow: none; }
.notes-list-options .icon-button { width: 32px; height: 32px; border: 0; background: transparent; color: #5c6c65; }
.notes-list { overflow-y: auto; flex: 1; padding: 0 8px 12px; }
.notes-list-item { display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; border: 1px solid transparent; border-bottom-color: #e3e9e57a; background: transparent; border-radius: 11px; padding: 15px 13px; color: #27332e; }
.notes-list-item:hover { background: #edf3ee; }
.notes-list-item.selected { background: #dfece5; border-color: #d5e5dc; }
.notes-list-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.notes-list-top strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notes-pin { color: var(--notes-green); font-size: 9px; flex: 0 0 auto; }
.notes-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: #6b7972; line-height: 1.6; word-break: break-word; }
.notes-list-meta { display: flex; gap: 9px; justify-content: space-between; font-size: 10px; color: #76827b; }
.notes-list-tags { display: flex; flex-wrap: wrap; gap: 5px 10px; font-size: 10px; color: #547062; }
.notes-list-tags > span { display: inline-flex; align-items: center; gap: 3px; }
.notes-list-tags svg { width: 12px; height: 12px; }
.notes-editor { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.notes-form { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.notes-editor-toolbar { min-height: 63px; border-bottom: 1px solid var(--notes-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; }
.notes-owner { font-size: 12px; color: #738078; min-width: 0; }
.notes-editor-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.notes-tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; border-radius: 8px; min-height: 36px; color: #60736a; font-size: 12px; padding: 6px 9px; }
.notes-tool:hover { background: #f1f5f1; }
.notes-tool.is-active { color: var(--notes-green); background: var(--notes-tint); }
.notes-tool svg { width: 16px; height: 16px; }
.notes-editor-actions .icon-button { border: 0; width: 36px; height: 36px; }
.notes-delete { color: #a55548 !important; }
.notes-editor-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.notes-document { padding: 24px 34px 36px; max-width: 960px; margin: 0 auto; }
.notes-timestamp { text-align: center; margin: 0 0 21px; font-size: 11px; color: #8a938e; }
.notes-title-input, .notes-title-read { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0 !important; background: transparent; box-shadow: none !important; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: #263a30; line-height: 1.4; border-radius: 0; }
.notes-title-input::placeholder { color: #a1ada5; }
.notes-body-input { display: block; width: 100%; min-height: 170px; resize: vertical; border: 0; padding: 0; box-shadow: none; font-size: 15px; line-height: 1.9; background: transparent; border-radius: 0; color: #334139; }
.notes-body-input::placeholder { color: #a1aaa4; }
.notes-body-read { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.9; min-height: 80px; }
.notes-title-input:focus, .notes-body-input:focus { outline: 0 !important; box-shadow: none !important; }
.notes-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 12px; }
.notes-section-heading h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #597062; margin: 0; }
.notes-section-heading h3 svg { width: 16px; height: 16px; }
.notes-text-button { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 5px 0; background: transparent; font-size: 12px; color: var(--notes-green); cursor: pointer; }
.notes-text-button svg { width: 14px; height: 14px; }
.notes-check-row { display: flex; align-items: center; gap: 10px; min-height: 42px; border-bottom: 1px solid #eef1ee; }
.notes-check-row input[type="checkbox"], #note-reminder-enabled { width: 18px; height: 18px; accent-color: var(--notes-green); flex-shrink: 0; cursor: pointer; }
.notes-check-row input[type="text"] { padding: 9px 0; flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; font-size: 14px; }
.notes-check-row .icon-button { border: 0; width: 28px; height: 28px; background: transparent; color: #a3ada6; flex-shrink: 0; }
.notes-check-row.is-done input[type="text"], .notes-check-row.is-done > span { text-decoration: line-through; color: #94a099; }
.notes-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.notes-images > .notes-help { grid-column: 1 / -1; }
.notes-add-images { position: relative; }
.notes-add-images input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notes-add-images:focus-within { outline: 2px solid var(--notes-green); outline-offset: 3px; }
.notes-image-card { border: 1px solid var(--notes-line); border-radius: 12px; overflow: hidden; background: #fff; }
.notes-image-preview { width: 100%; height: 160px; border: 0; border-bottom: 1px solid var(--notes-line); display: block; padding: 0; background: #f0f3f0; cursor: zoom-in; }
.notes-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.notes-image-caption { padding: 10px; }
.notes-image-caption > span { display: block; color: #859087; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 7px; }
.notes-image-caption textarea { display: block; width: 100%; border: 0; padding: 0; box-shadow: none; resize: vertical; font-size: 12px; line-height: 1.6; min-height: 44px; }
.notes-image-caption p { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.notes-image-caption .notes-text-button { margin-top: 5px; font-size: 11px; }
.notes-help { color: #98a098; margin: 5px 0; font-size: 11px; line-height: 1.7; }
.notes-preferences { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--notes-line); }
.notes-preferences > h3 { font-size: 12px; font-weight: 600; color: #829087; margin: 0 0 4px; }
.notes-setting-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; }
.notes-setting-row strong { font-size: 13px; font-weight: 500; }
.notes-setting-row p { font-size: 11px; color: #8b968f; margin: 3px 0 0; }
.notes-setting-row select { width: auto; max-width: 195px; font-size: 12px; border-color: var(--notes-line); min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.notes-setting-row > span { color: #688072; font-size: 12px; }
.notes-reminder-fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; background: #f7f9f6; border-radius: 12px; padding: 14px; }
.notes-reminder-fields label { font-size: 11px; color: #6c7b72; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.notes-reminder-fields input, .notes-reminder-fields select { width: 100%; min-width: 0; font-size: 12px; min-height: 37px; border: 1px solid var(--notes-line); background-color: #fff; border-radius: 7px; padding: 7px 10px; color: #34453b; }
.notes-reminder-fields .cube-date-input { padding-right: 42px; }
.notes-editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--notes-line); padding: 14px 22px; background: #fbfcfa; flex-shrink: 0; }
#notes-save-label { font-size: 11px; color: #708076; }
#notes-message { margin: 3px 0 0; font-size: 11px; color: #527365; max-width: 470px; }
#notes-message:empty { display: none; }
.notes-footer-actions { display: flex; gap: 8px; flex-shrink: 0; }
.notes-footer-actions .button { font-size: 12px; padding: 8px 14px; min-height: 36px; }
.notes-readonly-badge { font-size: 11px; color: #6f7c73; background: #f1f5f0; border-radius: 5px; padding: 4px 8px; }
.notes-empty-list { text-align: center; color: #8d9991; padding: 44px 16px; font-size: 12px; line-height: 1.8; }
.notes-empty-list svg { width: 27px; height: 27px; margin: 0 auto 14px; opacity: .5; }
.notes-empty-list strong { display: block; font-weight: 500; color: #687d6e; }
.notes-empty-editor { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 25px; color: #8b978e; }
.notes-empty-editor > svg { width: 48px; height: 48px; color: #aac0b2; stroke-width: 1; }
.notes-empty-editor h2 { font-size: 18px; font-weight: 500; color: #63806f; margin: 24px 0 0; }
.notes-empty-editor p { font-size: 13px; margin-bottom: 22px; }
.notes-mobile-back { display: none; }
#notes-page .is-error { color: #b44336; }
#notes-page button:disabled, #notes-page .is-disabled { cursor: default; opacity: .45; }
.notes-image-viewer { max-width: 96vw; width: 1200px; height: 92dvh; max-height: 92dvh; border: 1px solid #4e5c53; border-radius: 16px; background: #1d2721; color: #f5f8f5; padding: 0; overflow: hidden; }
.notes-image-viewer::backdrop { background: #102018a8; backdrop-filter: blur(5px); }
.notes-image-viewer[open] { display: flex; flex-direction: column; }
.notes-viewer-toolbar { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #ffffff20; flex-shrink: 0; }
.notes-viewer-toolbar > strong { min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.notes-viewer-toolbar > div { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }
.notes-viewer-toolbar .icon-button, .notes-viewer-toolbar .notes-tool { background: #ffffff12; color: #fff; border: 0; min-width: 38px; min-height: 38px; }
.notes-viewer-scroll { flex: 1; overflow: auto; min-height: 0; overscroll-behavior: contain; }
.notes-viewer-stage { width: 100%; height: 100%; min-width: 100%; min-height: 100%; display: flex; justify-content: center; align-items: center; }
.notes-viewer-stage img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; }
#notes-viewer-remark { flex-shrink: 0; margin: 0; padding: 12px 20px; font-size: 13px; color: #c2d1c6; background: #ffffff06; max-height: 90px; overflow: auto; white-space: pre-wrap; }
#notes-viewer-remark:empty { display: none; }
@media (max-width: 1200px) {
  .notes-workspace { grid-template-columns: 260px minmax(0, 1fr); }
  .notes-document { padding: 22px; }
  .notes-editor-toolbar, .notes-editor-footer { padding-left: 16px; padding-right: 16px; }
  .notes-tool span { display: none; }
  .notes-reminder-fields { grid-template-columns: 1fr 1fr; }
  .notes-reminder-fields label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .notes-heading .eyebrow, .notes-heading p { display: none; }
  .notes-heading { margin-bottom: 12px; }
  .notes-heading h1 { font-size: 23px; }
  .notes-heading .button { font-size: 12px; padding: 10px 12px; }
  .notes-workspace { display: block; height: calc(100dvh - 180px); min-height: 490px; border-radius: 14px; }
  .notes-sidebar { height: 100%; border-right: 0; }
  .notes-editor { display: none; height: 100%; }
  .notes-workspace.has-selection .notes-sidebar { display: none; }
  .notes-workspace.has-selection .notes-editor { display: flex; }
  .notes-mobile-back { display: inline-flex; flex-shrink: 0; width: 32px; height: 32px; border: 0; }
  .notes-owner { flex: 1; font-size: 11px; }
  .notes-editor-toolbar { min-height: 55px; gap: 6px; padding: 9px 12px; }
  .notes-document { padding: 18px; }
  .notes-title-input { font-size: 23px; }
  .notes-title-input, .notes-body-input, .notes-check-row input[type="text"], .notes-image-caption textarea, .notes-reminder-fields input, .notes-reminder-fields select { font-size: 16px; }
  .notes-image-preview { height: 130px; }
  .notes-images { gap: 10px; }
  .notes-editor-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 16px; }
  .notes-footer-actions { width: 100%; }
  .notes-footer-actions .button { flex: 1; min-height: 41px; }
  .notes-image-viewer { max-width: 100vw; width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .notes-viewer-toolbar { padding: 12px; }
  .notes-viewer-toolbar > strong { max-width: 32%; }
}
