#stickyNoteTools[hidden],.sticky-note-card[hidden]{display:none!important}
.sticky-note-card footer,#stickyNoteDialog footer{display:flex!important}
.sticky-note-handle{cursor:grab;touch-action:none;user-select:none}.sticky-note-card.dragging .sticky-note-handle{cursor:grabbing}.sticky-note-handle button{cursor:pointer}
.sticky-note-handle.movement-locked{cursor:default}.sticky-note-settings-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.sticky-note-card{position:fixed;right:24px;bottom:130px;z-index:44;box-sizing:border-box;width:min(290px,calc(100vw - 32px));max-height:calc(100vh - 16px);display:flex;flex-direction:column;overflow:hidden;padding:13px 13px 23px;border:2px solid #d6a928;border-radius:14px;background:#fff8cf;color:#493900;box-shadow:0 10px 28px #64460025}
.sticky-note-card.blinking{animation:sticky-note-pulse 3.6s ease-in-out infinite}
.sticky-note-card header,.sticky-note-card footer,#stickyNoteDialog header,#stickyNoteDialog footer{display:flex;align-items:center;gap:8px}.sticky-note-card header strong{flex:1}.sticky-note-card header button,.sticky-note-card footer button{border:1px solid #ddc675;border-radius:7px;background:#fffdf0;color:#584300;font-family:inherit;font-size:11px;font-weight:600;line-height:1.3;padding:5px 7px;cursor:pointer}
.sticky-note-text{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;padding:12px 0;font-size:14px;min-height:20px;flex:1}.sticky-note-card footer{justify-content:space-between;padding-top:8px;border-top:1px solid #ddc675}
#stickyNoteDialog{box-sizing:border-box;width:min(470px,calc(100vw - 28px));max-height:85vh;overflow:auto;border:1px solid #ddc675;border-radius:16px;padding:20px;background:#fffdf1;color:#493900;box-shadow:0 25px 70px #1115}#stickyNoteDialog::backdrop{background:#10182880}#stickyNoteDialog h2{flex:1;margin:0 0 14px;font-size:21px}#stickyNoteDialog button{border:1px solid #ddc675;border-radius:8px;background:#fff8cf;color:#584300;padding:9px 12px;cursor:pointer}#stickyNoteDialog #stickyNoteSave{background:#735600;color:#fff}#stickyNoteDialog label{display:grid;gap:7px;font-weight:650}#stickyNoteInput{box-sizing:border-box;width:100%;resize:vertical;padding:10px;border:1px solid #ddc675;border-radius:8px;background:#fff;color:#292511;font-family:inherit;font-size:14px;line-height:1.6}#stickyNoteDialog .sticky-note-choice{display:flex;align-items:center;margin-top:12px;font-size:13px}#stickyNoteNotice{font-size:12px;line-height:1.5}#stickyNoteDialog footer{justify-content:flex-end}
#stickyNoteTools button:focus-visible,#stickyNoteDialog button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.ajmer-workspace-locked #stickyNoteTools,.ajmer-workspace-locked #stickyNoteDialog{display:none!important}
@keyframes sticky-note-pulse{0%,100%{border-color:#d6a928;box-shadow:0 10px 28px #64460025;background:#fff8cf}50%{border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f625,0 10px 28px #64460025;background:#fff3b0}}
@media(prefers-reduced-motion:reduce){.sticky-note-card.blinking{animation:none}}
.sticky-note-list-row{margin-top:12px;padding:12px;border:1px solid #ddc675;border-radius:10px;display:flex;flex-wrap:wrap;gap:6px}.sticky-note-list-row p{flex-basis:100%;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 8px;max-height:100px;overflow:auto}

.sticky-note-resize{position:absolute;right:1px;bottom:1px;width:22px;height:22px;padding:0;border:0;background:transparent;color:#735600;cursor:nwse-resize;touch-action:none}.sticky-note-card header,.sticky-note-card footer{flex-shrink:0}

/* Folded ribbon notes, with stationary controls for drag and resize. */
.sticky-note-card{--note-accent:#269ac3;--note-dark:#126784;border:0;border-radius:28px;background:linear-gradient(145deg,#fff,#f7f9fb);color:#263447;padding:0 14px 24px;box-shadow:0 12px 20px #1b293322,0 2px 3px #1b293310;transition:box-shadow .25s ease}
.sticky-note-card:hover,.sticky-note-card.dragging{box-shadow:0 18px 30px #1b293332,0 0 0 2px var(--note-accent)}
.sticky-note-card .sticky-note-handle{position:relative;isolation:isolate;margin:0 -14px;padding:8px 10px 8px 14px;min-height:45px;box-sizing:border-box;background:var(--note-accent);border-radius:28px 5px 30px 0;color:#fff;gap:6px;overflow:hidden}
.sticky-note-card::before{content:"";position:absolute;left:0;top:39px;width:16px;height:22px;background:var(--note-dark);clip-path:polygon(0 0,100% 0,0 100%);pointer-events:none}
.sticky-note-number{font-size:23px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;color:#fff;text-shadow:0 1px 2px #0002}
.sticky-note-card header strong{font-size:11px;line-height:1.2;color:#263447;background:#ffffffeb;border-radius:5px;padding:4px;min-width:0}
.sticky-note-card header button{background:#fff;color:var(--note-dark);border:0;border-radius:8px;padding:6px 8px;flex-shrink:0;box-shadow:0 1px 3px #0001}
.sticky-note-card footer button{background:#fff;color:var(--note-dark);border:1px solid #dce3e9;border-radius:8px;padding:6px 9px}
.sticky-note-text{padding:17px 2px 12px;font-size:14px;line-height:1.65;min-height:20px}
.sticky-note-card footer{border-color:#e3e8ee;padding-top:8px}
.sticky-note-resize{right:6px;bottom:3px;color:var(--note-dark);z-index:2}
.sticky-note-handle::after{content:"";position:absolute;inset:-20% -50%;z-index:-1;pointer-events:none;background:linear-gradient(110deg,transparent 40%,#fff3 49%,transparent 58%);transform:translateX(-45%);animation:sticky-ribbon-shine 5s ease-in-out infinite}
.sticky-note-card:not(.blinking) .sticky-note-handle::after{animation:none}
@keyframes sticky-note-pulse{0%,100%{box-shadow:0 12px 20px #1b293322,0 2px 3px #1b293310;background:linear-gradient(145deg,#fff,#f7f9fb)}50%{box-shadow:0 0 0 3px color-mix(in srgb,var(--note-accent) 35%,transparent),0 15px 25px #1b29332a;background:linear-gradient(145deg,#fff,#f7f9fb)}}
@keyframes sticky-ribbon-shine{0%,20%{transform:translateX(-45%)}65%,100%{transform:translateX(45%)}}
@media(prefers-reduced-motion:reduce){.sticky-note-card,.sticky-note-handle::after{animation:none!important;transition:none!important}}

/* Curved ribbon over rounded paper, matching the supplied reference. */
.sticky-note-card{border-radius:36px;min-height:170px;background:linear-gradient(145deg,#fff 30%,#f4f6f7);box-shadow:0 14px 16px -5px #18263830,0 3px 4px #1826380c}
.sticky-note-card .sticky-note-handle{width:calc(100% + 14px);min-height:54px;margin:0 -14px;padding:9px 20px;background:linear-gradient(110deg,var(--note-accent),color-mix(in srgb,var(--note-accent) 88%,#fff));border-radius:36px 0 46px 0;justify-content:center;flex-shrink:0}
.sticky-note-number{font-size:28px;letter-spacing:.5px;font-weight:800;text-shadow:0 2px 2px #0002}
.sticky-note-card header strong{position:absolute;left:14px;bottom:6px;flex:none;font-size:9px;padding:3px 5px;border-radius:6px}
.sticky-note-card::before{top:45px;width:25px;height:42px;background:linear-gradient(135deg,var(--note-dark),var(--note-accent));clip-path:polygon(0 0,100% 0,0 100%)}
.sticky-note-card::after{content:"";position:absolute;left:0;top:54px;width:28px;height:36px;border-radius:100% 0 0 0;background:linear-gradient(135deg,#e7ecee,#fff 60%);pointer-events:none}
.sticky-note-actions{display:flex;gap:6px;justify-content:flex-end;padding-top:8px;flex-shrink:0}
.sticky-note-actions button{border:1px solid #dce3e9;background:#fff;color:#314052;border-radius:8px;font-family:inherit;font-size:11px;font-weight:600;line-height:1.3;padding:4px 8px;cursor:pointer}
.sticky-note-text{padding:8px 3px 12px}
.sticky-note-colour-picker{border:1px solid #e2e8f0;border-radius:12px;margin:14px 0 0;padding:12px}
.sticky-note-colour-picker legend{font-size:13px;font-weight:650;padding:0 5px}
#stickyNoteColors{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
#stickyNoteDialog #stickyNoteColors button{position:relative;width:100%;height:32px;border:2px solid transparent;border-radius:9px;background:var(--swatch);padding:0;box-shadow:inset 0 -2px 3px #0001}
#stickyNoteDialog #stickyNoteColors button[aria-pressed="true"]{outline:2px solid #263447;outline-offset:2px}
#stickyNoteColors button[aria-pressed="true"]::after{content:"✓";position:absolute;inset:5px auto auto 50%;transform:translateX(-50%);width:20px;height:20px;background:#fff;color:#263447;border-radius:50%;font-weight:800;line-height:20px}
#stickyNoteDialog #stickyNoteSave{background:#263447;color:#fff;border:2px solid var(--editor-accent,#735600);font-weight:750}
