* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: #222a27;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, sans-serif;
}
main {
  max-width: 600px;
  margin: auto;
  padding: calc(28px + env(safe-area-inset-top)) max(22px, env(safe-area-inset-right))
    calc(28px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
}
h1 { font-size: 27px; margin: 0 0 24px; }
h2 { font-size: 18px; margin: 0; }
form { display: grid; gap: 9px; }
label { font-weight: 600; }
textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #afb9b4;
  border-radius: 10px;
  background: #fafbf9;
  color: inherit;
  font: inherit;
}
button {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 8px;
  padding: 6px 16px;
  background: transparent;
  color: #75443d;
  font: inherit;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
.save { justify-self: end; background: #295648; color: white; min-width: 88px; }
:focus-visible { outline: 2px solid #296453; outline-offset: 3px; }
#status { min-height: 1.65em; margin: 8px 0 14px; }
#empty, time, #status { color: #53625c; font-size: 14px; }
ul { list-style: none; padding: 0; margin: 10px 0 0; }
li { border-top: 1px solid #e0e5e1; padding: 12px 0 7px; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.note-meta { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.note-actions { display: flex; flex-shrink: 0; }
.note-actions button { padding-inline: 8px; }
.note-actions button:first-child { color: #295648; }
