.mhn{--mn-ink:#192d2b;--mn-soft:#eeefe8;--mn-border:#cbd3c8;--mn-accent:#225a4c;color:var(--mn-ink);max-width:48rem;margin:0 auto;text-align:start;font:inherit}
.mhn [hidden]{display:none!important}
.mhn .mhn-heading{margin:0 0 .3rem;line-height:1.6;font-size:1.25rem;font-weight:700}
.mhn .mhn-intro{margin:.1rem 0 1rem;line-height:1.7;color:#52615b;font-size:.92rem}
.mhn .mhn-form{padding:1rem;background:var(--mn-soft);border:1px solid var(--mn-border);border-radius:.85rem;display:grid;gap:.6rem;box-sizing:border-box}
.mhn .mhn-text,.mhn .mhn-input{box-sizing:border-box;width:100%;border:1px solid #aebcb0;border-radius:.45rem;padding:.48rem .68rem;min-height:2.7rem;background:#fff;color:var(--mn-ink);font:inherit}
.mhn .mhn-text{resize:vertical;line-height:1.65}
.mhn .mhn-label{color:#294136;font-weight:600;display:block;font-size:.9rem;text-align:start}
.mhn .mhn-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.mhn .mhn-field{min-width:0;display:grid;gap:.24rem}
.mhn .mhn-actions,.mhn .mhn-feedback,.mhn .mhn-badges,.mhn .mhn-note-actions{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}
.mhn button{cursor:pointer;font:inherit;line-height:1.45;box-sizing:border-box}
.mhn .mhn-primary,.mhn .mhn-button{border:1px solid var(--mn-border);border-radius:.46rem;background:white;color:var(--mn-accent);padding:.48rem .78rem;min-height:2.65rem}
.mhn .mhn-primary{background:var(--mn-accent);color:white;border-color:var(--mn-accent);font-weight:700}
.mhn :focus-visible{outline:3px solid #4d8275;outline-offset:2px}
.mhn .mhn-feedback{color:#345748;line-height:1.5;font-size:.92rem}
.mhn .mhn-feedback:not(:empty){margin:.45rem 0}
.mhn .mhn-list{padding:0;margin:0;list-style:none}
.mhn .mhn-row{border-bottom:1px solid var(--mn-border);padding:.6rem .1rem}
.mhn .mhn-tag,.mhn .mhn-jump{color:#275546;border-radius:.4rem;background:#edf3ec;padding:.2rem .55rem;font-size:.83rem;border:1px solid transparent;line-height:1.5}
.mhn .mhn-jump{border-color:#a8bcb1;min-height:2rem;text-decoration:underline;text-underline-offset:.2em}
.mhn .mhn-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:.45rem 0 0;line-height:1.7;text-align:start}
.mhn .mhn-link{padding:.28rem .4rem;color:var(--mn-accent);min-height:2.4rem;background:transparent;border:0}
.mhn .mhn-delete{color:#8c473c}
.mhn .mhn-backup{margin-top:.7rem}
.mhn .mhn-backup summary{font-size:.9rem;color:#465e4f;cursor:pointer;padding:.45rem 0}
.mhn .mhn-backup[open] summary{margin-bottom:.3rem}
@media(max-width:340px){.mhn .mhn-fields{grid-template-columns:1fr}}
#notesPane .mhn { max-width:none; padding:.7rem 0 1rem; }
#notesPane .mhn-columns { display:grid; grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); gap:clamp(1rem,3vw,2.6rem); align-items:start; }
#notesPane :is(.mhn-editor,.mhn-archive) { min-width:0; }
#notesPane .mhn-form { border-color:#cedacc; background:#f1f5ec; }
#notesPane .mhn-label { color:#345141; }
#notesPane .mhn-archive { border:1px solid #d5dfd2; background:#fffef9; padding:.78rem .9rem; border-radius:.8rem; }
#notesPane .mhn-archive .mhn-heading { font-size:1rem; color:#294b3b; }
#notesPane .mhn-archive .mhn-review { margin:0; border:0; padding:0; }
#notesPane .mhn-list:not(:empty) + .mhn-review { margin-top:.8rem; padding-top:.75rem; border-block-start:1px solid #cfdbcd; }
#notesPane .mhn-review .mhn-intro { font-size:.85rem; margin:.2rem 0; }
#notesPane .mhn-jump { text-decoration:none; font-size:.83rem; min-height:36px; border-color:#c4d3c4; background:#f2f6ec; }
#notesPane .mhn-body { margin:.28rem 0; }
#notesPane .mhn-backup { margin-top:.45rem; }
#notesPane .mhn-note-actions button { font-size:.85rem; }
@media (max-width:760px) {
  #notesPane .mhn { padding:.35rem 0; }
  #notesPane .mhn-columns { grid-template-columns:minmax(0,1fr); gap:.65rem; }
  #notesPane .mhn-form, #notesPane .mhn-archive { padding:.7rem; }
}
@media (max-width:760px), (any-pointer:coarse) {
  #notesPane :is(button,.mhn-input,.mhn-backup summary) { min-height:44px; }
  #notesPane button { min-width:44px; }
}
