/* Sticky notes use the existing pink, amber, and brown brand palette. */
.notes-heading { margin: 27px 0; font-size: clamp(32px, 3.4vw, 46px); }
.notes-layout { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.note-form { padding: 21px; border: 1px dashed var(--brown); border-radius: 18px; background: #fffbf3; }
.note-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--brown); }
.note-form input, .note-form textarea { width: 100%; max-width: 100%; border: 1px solid #8f574d80; background: #fffef9; color: #51372f; border-radius: 10px; font: inherit; font-size: 13px; padding: 11px; margin-bottom: 17px; }
.note-form textarea { resize: vertical; min-height: 120px; max-height: 260px; line-height: 1.6; }
.note-form input:focus, .note-form textarea:focus { outline: 2px solid var(--pink); outline-offset: 2px; }
.note-form [aria-invalid="true"] { border-color: #a33847; }
.note-message-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#note-counter { font-size: 9px; color: var(--muted); white-space: nowrap; }
.note-form .button { width: 100%; }
.note-form .button:disabled { opacity: .6; cursor: wait; transform: none; }
.note-form-hint { color: var(--muted); font-size: 10px; margin: 15px 0 0; line-height: 1.6; }
.note-status { min-height: 1.5em; font-size: 11px; margin: 12px 0 0; color: #6c4c2c; }
.note-status.is-error { color: #a33847; }
.notes-board-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 15px; }
.notes-board-tools h3 { font-size: 13px; font-weight: 600; margin: 0; }
.notes-refresh, .notes-more { color: var(--brown); border: 1px solid #8f574d66; background: #fff8ec; border-radius: 20px; font: inherit; font-size: 10px; padding: 7px 12px; }
.notes-refresh:hover, .notes-more:hover { background: #de9f5033; }
.notes-refresh:disabled, .notes-more:disabled { opacity: .5; }
.notes-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 23px 18px; max-height: 430px; overflow-y: auto; overflow-x: hidden; padding: 13px 10px 20px; scrollbar-color: var(--brown) #de9f5022; }
.sticky-note { position: relative; padding: 28px 17px 19px; background: #de9f50; color: #452b21; min-height: 160px; box-shadow: 2px 5px 5px #51372f25; transform: rotate(-2deg); }
.sticky-note[data-color="pink"] { background: #e367a2; color: #3e2030; transform: rotate(2deg); }
.sticky-note[data-color="brown"] { background: #8f574d; color: #fff8ec; transform: rotate(-1deg); }
.sticky-note::before { content: ''; position: absolute; top: -6px; left: calc(50% - 21px); height: 19px; width: 42px; background: #8f574d55; transform: rotate(5deg); }
.sticky-note blockquote { margin: 0; }
.sticky-note-message { white-space: pre-wrap; overflow-wrap: anywhere; font-family: 'Trebuchet MS', sans-serif; font-size: 13px; line-height: 1.7; margin: 0 0 12px; }
.sticky-note cite { display: block; font-size: 12px; font-style: normal; font-weight: 700; overflow-wrap: anywhere; }
.notes-empty { font-size: 12px; padding: 30px 18px; border: 1px dashed #8f574d66; border-radius: 12px; text-align: center; color: var(--muted); }
.notes-more { margin-top: 12px; }
@media (max-width: 1050px) { .notes-layout { grid-template-columns: minmax(190px, .8fr) minmax(0, 1fr); gap: 21px; } .notes-board { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .notes-layout { grid-template-columns: 1fr; gap: 24px; } .notes-heading { font-size: 32px; } .note-form { padding: 17px; } .notes-board { grid-template-columns: 1fr; max-height: 470px; padding: 13px 10px 20px; } }

.note-colors { padding: 0; margin: 0 0 20px; border: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.note-colors legend { font-size: 12px; font-weight: 700; color: var(--brown); margin-bottom: 9px; }
.note-form .note-color-choice { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 400; margin: 0; padding: 6px 8px; border: 1px solid #8f574d55; border-radius: 20px; cursor: pointer; }
.note-form .note-color-choice:has(input:checked) { border-color: var(--brown); background: #de9f5022; box-shadow: 0 2px 0 #8f574d66; }
.note-form .note-color-choice input { width: 12px; height: 12px; padding: 0; margin: 0; accent-color: #8f574d; }
.note-color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.color-amber { background: #de9f50; }.color-pink { background: #e367a2; }.color-brown { background: #8f574d; }
.sticky-note[data-color="brown"]::before { background: #de9f5099; }
