/* =========================================
   STICKY NOTEPAD (Home)
   ========================================= */
.note-tab{
  position: fixed; right: 0; top: var(--note-tab-top); transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: mixed;
  background: var(--note-blue-100); color: var(--note-ink);
  border: 1px solid rgba(20,58,82,.15); border-right: none; border-radius: 10px 0 0 10px;
  padding: .4rem .5rem; font-weight: 600; letter-spacing: .3px;
  box-shadow: var(--note-shadow); cursor: pointer; z-index: 3400; user-select: none;
}
.note-tab:focus{ outline: 3px solid rgba(20,58,82,.25); outline-offset: 2px; }

.note-popup{
  position: fixed; right: 12px; top: var(--note-popup-top);
  width: 320px; max-width: min(92vw, 360px);
  background: var(--note-blue-50);
  border: 1px solid rgba(20,58,82,.18);
  border-left: 4px solid var(--note-blue-200);
  border-radius: 10px; padding: .6rem .6rem .5rem;
  box-shadow: var(--note-shadow); display: none; z-index: 3500;
}
.note-popup.show{ display: flex; flex-direction: column; }
.note-popup.note-large{ width: min(95vw, 960px); max-width: 960px; }
.note-popup.note-large #note-text{ min-height: 420px; max-height: 70vh; }

.note-header{ display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin-bottom:.4rem; }
.note-title{ font-weight: 700; color: var(--note-ink); }
.note-actions{ display:inline-flex; align-items:center; gap:.35rem; }
.note-minimize,.note-resize{
  border:0; background:transparent; font-size:1.3rem; line-height:1; width:32px; height:32px;
  border-radius:8px; cursor:pointer; color:var(--note-ink);
}
.note-minimize:hover,.note-minimize:focus,.note-resize:hover,.note-resize:focus{ background: rgba(20,58,82,.08); outline: none; }

#note-text{
  resize: vertical; min-height: 140px; max-height: 50vh; width:100%;
  border:1px solid rgba(20,58,82,.2); border-radius:8px; padding:.55rem .65rem;
  line-height:1.35; color:#0b2a3e; background:#fff; box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}
.note-footer{ display:flex; align-items:center; justify-content:space-between; margin-top:.5rem; gap:.5rem; }
.note-left, .note-right{ display:inline-flex; align-items:center; gap:.4rem; }
.note-clear,.note-copy,.note-download,.note-print{
  display:inline-flex; align-items:center; justify-content:center; gap:.35rem;
  border:0; background:rgba(20,58,82,.08); color:#0b2a3e; padding:.35rem .5rem;
  border-radius:8px; cursor:pointer;
}
.note-clear:hover,.note-clear:focus,
.note-copy:hover,.note-copy:focus,
.note-download:hover,.note-download:focus,
.note-print:hover,.note-print:focus{ background: rgba(20,58,82,.14); outline:none; }
.icon-trash{ display:block; }
.note-saved{ min-height:1em; opacity:0; transition: opacity .25s ease; color:#0b2a3e; }
@media (max-width: 576px){
  .note-popup{ right: 8px; width: 90vw; }
  .note-popup.note-large{ width: 95vw; }
}
@media (prefers-reduced-motion: reduce){
  .note-tab, .note-popup, .note-saved{ transition: none !important; }
}

