/* Notes keep one readable column at every viewport size. */
#notesView,#noteDetailView{width:100%;max-width:680px;margin-left:auto;margin-right:auto}
#hiveNotesTab .notes-shell{width:100%;max-width:680px;margin-left:auto;margin-right:auto}
body.app-mode.notes-mode #portalBackBtn{display:flex;width:min(100%,680px);margin-left:auto;margin-right:auto}
#notesView .home-header{margin-bottom:12px}
#notesView .global-notes-section{margin-top:0}
.notes-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:430px;margin:0 0 20px}
.notes-filters button{min-width:0;min-height:40px;padding:6px;border:1px solid #e3dfd6;border-radius:22px;background:#fafaf8;color:#6b6e75;font-size:clamp(12px,3.5vw,14px);font-weight:650;cursor:pointer}
.notes-filters button[aria-pressed="true"]{background:#ffdf83;border-color:#ffdf83;color:#302713}
.notes-filters button:focus-visible,.note-list-photo:focus-visible{outline:2px solid #a57818;outline-offset:2px}
/* Compact rows share the same title/context/date hierarchy as Tasks. */
.global-notes-section .notes-list,#notesList{gap:10px}
.portal-row[data-kind="notes"]{border:1px solid #e5e6e8;border-left-width:1px;border-radius:18px;box-shadow:0 3px 12px #11182704}
.portal-row[data-kind="notes"] .portal-row-content{display:flex;background:#fff}
.portal-row[data-kind="notes"] .note-card{--list-accent:#c99a26;--list-tint:#fff7de;background:#fff;border-left:4px solid var(--list-accent)}
.portal-row[data-kind="notes"] .note-card[data-note-scope="apiary"]{--list-accent:#70aa6b;--list-tint:#edf6eb}
.portal-row[data-kind="notes"] .note-card[data-note-scope="hive"]{--list-accent:#59a5c5;--list-tint:#edf6fa}
.portal-row[data-kind="notes"] .portal-card-menu{position:static;flex:0 0 44px;width:44px;min-height:44px;display:grid;place-items:center;font-size:16px;color:#81796a}
.portal-row[data-kind="notes"] .note-card-toggle{display:grid;grid-template-columns:36px minmax(0,1fr) 12px;align-items:center;gap:10px;min-height:94px;padding:12px 3px 12px 12px;min-width:0;height:100%;color:#20242c}
.note-list-icon{display:grid;place-items:center;width:36px;height:40px;border-radius:12px;background:var(--list-tint);color:var(--list-accent)}
.note-list-icon svg{width:25px;height:25px}
.note-list-copy{display:grid;gap:4px;min-width:0}
.portal-row[data-kind="notes"] .note-card-title{display:block;margin:0;color:#171c26;font-size:16px;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
.portal-row[data-kind="notes"] .global-note-scope{display:block;margin:0;padding:0;color:#707681;font-size:12px;line-height:1.35;font-weight:550;overflow-wrap:anywhere}
.portal-row[data-kind="notes"] .note-card-date{display:flex;align-items:center;gap:5px;margin:0;color:#777e88;font-size:12px;line-height:1.35}
.portal-row[data-kind="notes"] .note-card-date svg{width:14px;height:14px;flex:none;color:inherit;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.note-list-chevron{font-size:26px;line-height:1;color:#7a7e84;font-weight:400}
.portal-row[data-kind="notes"] .note-card-toggle:focus-visible{outline:2px solid #a57818;outline-offset:-4px;border-radius:12px}
.note-list-photo{position:relative;display:block;flex:0 0 var(--note-thumb,78px);width:var(--note-thumb,78px);height:var(--note-thumb,78px);padding:0;overflow:hidden;border:1px solid #e8e0d1;border-radius:12px;background:#fff;cursor:pointer}
.note-list-photo span{position:absolute;inset:0;display:grid;place-items:center;color:#b7a978;font-size:18px}
.note-list-photo img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.note-list-photo img[hidden]{display:none}
.note-list-photo.preview-unavailable span{font-size:12px}
#noteDetailView .note-detail-card{gap:15px;padding:clamp(18px,4vw,24px);border-color:#e7e0cf;background:#fcfbf7;box-shadow:0 5px 20px #11182706}
#noteDetailView .note-detail-context{line-height:1.4;overflow-wrap:anywhere}
#noteDetailView .note-detail-card h2{font-size:clamp(27px,6vw,34px);overflow-wrap:anywhere}
#noteDetailView .note-detail-body{padding-top:17px;line-height:1.55;overflow-wrap:anywhere}
#noteDetailView .note-photo-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:420px;overflow:visible;padding:0}
#noteDetailView .note-list-photo{width:100%;height:auto;aspect-ratio:1;max-width:96px}
#noteDetailMenuBtn{width:100%;min-height:44px;border-radius:24px;padding:8px;letter-spacing:2px;font-size:19px;color:#383a40;background:transparent;box-shadow:none}
#notePhotoStatus{color:#fff;text-align:center;padding:20px;max-width:360px}
body.note-photo-open{overflow:hidden}
.note-photo-viewer img{max-height:calc(100dvh - 90px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
.note-photo-viewer img[hidden]{display:none}
.note-photo-viewer button{top:calc(16px + env(safe-area-inset-top,0px))}
@media(max-width:359px){.portal-row[data-kind="notes"] .note-card-toggle{grid-template-columns:28px minmax(0,1fr) 10px;gap:8px;padding-left:8px}.note-list-icon{width:28px;height:36px}.note-list-icon svg{width:22px;height:22px}}
