/* Keeper Notes — accessible, restrained companion writing experience. */
.m65-dialog{border:1px solid #d8e3d9;border-radius:24px;padding:0;width:min(950px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);box-shadow:0 30px 95px #09291e55;background:#fbfaf5;color:#193d32;overscroll-behavior:contain}
.m65-dialog[open]{display:block;position:fixed;inset:0;margin:auto;z-index:99999}
.m65-dialog::backdrop{background:rgba(12,34,28,.66);backdrop-filter:blur(4px)}
.m65-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 28px);overflow:hidden;font-family:Inter,system-ui,-apple-system,Arial,sans-serif}
.m65-header{position:relative;display:flex;gap:16px;padding:22px 60px 17px 28px;border-bottom:1px solid #e2e9de;align-items:center;background:linear-gradient(115deg,#f4f7ef,#fff9ee)}
.m65-header img{height:74px;width:74px;object-fit:cover;border-radius:18px;border:1px solid #d3e0d3;flex-shrink:0}
.m65-header h2{font-size:clamp(1.28rem,3vw,2rem)!important;line-height:1.16!important;margin:5px 0!important;letter-spacing:-.045em;color:#183c30!important;font-weight:700!important}
.m65-header p{font-size:.91rem;line-height:1.45;color:#536c60;margin:0}
.m65-eyebrow{font-size:.67rem!important;letter-spacing:.17em;color:#668573;font-weight:750}
.m65-close{position:absolute!important;right:18px;top:17px;display:grid;place-items:center!important;width:36px;height:36px!important;padding:0!important;border:1px solid #dce6dc!important;background:#fff!important;color:#285146!important;font-size:1.5rem!important;line-height:1!important;border-radius:50%!important}
.m65-body{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);min-height:0;overflow:auto}
.m65-compose{padding:22px 26px 27px;border-right:1px solid #e5eae2}
.m65-compose form{display:flex;flex-direction:column;gap:9px}
.m65-compose label{font-size:.81rem;color:#234b3d;font-weight:700;margin-top:3px}
.m65-optional{font-size:.73rem;font-weight:400;color:#83968a}
.m65-compose input:not([type=hidden]),.m65-compose select,.m65-compose textarea,.m65-archive input{width:100%;background:#fff;color:#1c4437;border:1px solid #cddcd0;border-radius:12px;min-height:43px;font:inherit;font-size:.89rem;padding:11px 13px;box-sizing:border-box;box-shadow:none;outline-offset:2px}
.m65-compose textarea{resize:vertical;min-height:156px;line-height:1.55;max-height:410px}
.m65-compose :is(input,textarea,select):focus,.m65-archive input:focus{outline:2px solid #b89457;outline-offset:1px}
.m65-status{font-size:.76rem;line-height:1.45;min-height:1.1em;color:#587065;margin:1px 0}.m65-status.is-error{color:#a44135}
.m65-compose-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}
.m65-compose-actions button,.m65-archive-head button,.m65-note-actions button{font:inherit;font-size:.81rem;border:1px solid #cbdacc;border-radius:11px;padding:10px 13px;min-height:40px;background:white;color:#214c3c;font-weight:650;cursor:pointer}
.m65-compose-actions button.m65-primary{background:#1e4a3b;color:#fff;border-color:#1e4a3b;padding:10px 18px}
.m65-compose-actions button:hover,.m65-note-actions button:hover,.m65-archive-head button:hover{filter:brightness(.965)}
.m65-archive{padding:22px 22px 25px;min-width:0}.m65-archive-head{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:12px}
.m65-archive h3{font-size:1.2rem;line-height:1.3;letter-spacing:-.02em;margin:4px 0 0;color:#1c4337}
.m65-archive-head button{font-size:.74rem;white-space:nowrap;padding:8px 10px}
.m65-archive input{min-height:41px}.m65-list{display:flex;flex-direction:column;gap:10px;max-height:365px;overflow:auto;margin-top:12px;padding-right:3px}
.m65-note{background:#fff;border:1px solid #dde6dc;border-radius:14px;padding:12px 14px}.m65-note-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:7px}
.m65-note time{color:#819086;font-size:.7rem}.m65-chip{display:inline-flex;color:#476d5c;background:#eef4ed;font-size:.68rem;font-weight:700;border-radius:999px;padding:4px 8px}
.m65-note strong{display:block;font-size:.87rem;color:#214b3b;line-height:1.35;overflow-wrap:anywhere}.m65-note p{font-size:.76rem;line-height:1.52;color:#546b5d;margin:5px 0 8px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:4.7em;overflow:hidden}
.m65-note-actions{display:flex;gap:6px}.m65-note-actions button{font-size:.72rem;padding:6px 10px;min-height:30px}.m65-note-actions .m65-danger{color:#9e534a}
.m65-empty{font-size:.84rem;color:#758c7d;line-height:1.6;padding:12px 0}.m65-footer{padding:11px 24px;background:#f1f5ee;border-top:1px solid #e1e7df;color:#597368;font-size:.7rem;line-height:1.4}
.m65-keeper-note-action{display:block!important;width:100%;margin:9px 0!important;padding:13px 16px!important;border:1px solid #bfcfae!important;border-radius:12px!important;background:#eaf2e5!important;color:#194d38!important;font-size:.9rem!important;font-weight:700!important;text-align:left!important;cursor:pointer}
.m50-actions button[data-keeper-notes]{background:#faf5e8!important;color:#224b3d!important}
.m65-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media(max-width:700px){.m65-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:19px}.m65-shell{max-height:calc(100dvh - 16px)}.m65-header{padding:15px 43px 13px 15px;gap:10px}.m65-header img{height:53px;width:53px;border-radius:14px}.m65-header p{font-size:.76rem}.m65-body{grid-template-columns:1fr;overflow:auto}.m65-compose{border-right:0;border-bottom:1px solid #e5eae2;padding:16px}.m65-archive{padding:16px}.m65-list{max-height:240px}.m65-footer{padding:10px 16px}.m65-close{right:10px;top:10px;width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.m65-dialog::backdrop{backdrop-filter:none}}
