:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #d4d4d4; background: #1e1e1e; }
* { box-sizing: border-box; }
body { margin: 0; display: flex; height: 100dvh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: transparent; border-radius: 5px; }
button:hover { background: #303030; }
button:focus-visible { outline: 2px solid #a899ce; outline-offset: 2px; }
button:disabled { opacity: .45; cursor: default; }
aside { width: 232px; flex-shrink: 0; background: #191919; border-right: 1px solid #292929; display: flex; flex-direction: column; padding: 18px 12px 16px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 22px; }
.brand { font-size: 14px; font-weight: 550; display: flex; align-items: center; gap: 9px; }
.gem { color: #a899ce; font-size: 26px; font-weight: 400; }
#new { font-size: 24px; font-weight: 300; width: 30px; height: 30px; color: #999; }
.head-actions { display: flex; align-items: center; gap: 4px; }
#trash { font-size: 12px; color: #999; padding: 6px 9px; }
nav { flex: 1; overflow: auto; }
.note { display: block; width: 100%; padding: 10px 12px; text-align: left; font-size: 13px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.note::before { content: '≡'; margin-right: 10px; color: #666; }
.note.active { background: #29262f; color: #c9bcdf; }
.empty { color: #656565; font-size: 13px; padding: 8px 12px; }
footer { font-size: 11px; color: #747474; padding: 18px 8px 0; display: flex; gap: 7px; align-items: center; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: #8a7ba7; }
main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; padding: 18px 28px; min-height: 68px; }
#status { font-size: 12px; color: #777; }
#status.error { color: #e7a39c; }
#save { background: #302a3b; color: #c9bcdf; font-size: 12px; padding: 8px 13px; white-space: nowrap; }
#save:hover { background: #40354f; }
#delete { font-size: 12px; color: #999; padding: 8px 11px; }
#delete:hover, #purge:hover { background: #3b2828; color: #e7a39c; }
#restore { background: #263026; color: #a9c9a9; font-size: 12px; padding: 8px 13px; }
#restore:hover { background: #2f3d2f; }
#purge { font-size: 12px; color: #999; padding: 8px 11px; }
kbd { font: inherit; opacity: .5; margin-left: 12px; }
.editor { width: 100%; max-width: 820px; margin: 24px auto 0; padding: 0 48px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
input, textarea { color: #d4d4d4; background: transparent; border: 0; outline: none; width: 100%; }
input { font-size: 30px; font-weight: 600; letter-spacing: -.7px; padding: 12px 0 22px; }
input::placeholder { color: #575757; }
textarea { flex: 1; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.85; padding: 0 0 36px; tab-size: 2; }
textarea::placeholder { color: #626262; }
@media (max-width: 600px) {
  body { flex-direction: column; }
  aside { width: 100%; padding: 10px 14px; border-right: 0; border-bottom: 1px solid #292929; max-height: 160px; }
  header { padding: 0 2px 6px; }
  nav { display: flex; flex: auto; overflow-x: auto; }
  .note { width: auto; max-width: 180px; flex-shrink: 0; margin: 0 4px 0 0; }
  footer { display: none; }
  .toolbar { padding: 14px 20px; min-height: 58px; }
  main { min-height: 0; }
  .editor { margin-top: 8px; padding: 0 24px; }
  input { font-size: 26px; }
}
