/* Highlights and notes (notes.js). Separate from style.css on purpose. */
mark.hl{padding:0 1px;border-radius:2px;color:inherit;cursor:pointer}
mark.hl-y{background:#FFF176}mark.hl-g{background:#B9F6CA}mark.hl-p{background:#F8BBD0}mark.hl-b{background:#B3E5FC}mark.hl-o{background:#FFCC80}
mark.hl.has-note{border-bottom:2px solid #2F4B40}
mark.hl.flash{outline:3px solid #2F4B40}
#hlbar{position:fixed;left:50%;bottom:64px;transform:translateX(-50%);z-index:50;display:none;gap:6px;background:#1F2933;padding:8px;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.3)}
#hlbar.show{display:flex}
#hlbar button{border:0;border-radius:8px;min-width:44px;height:40px;font:bold 15px Arial,sans-serif;cursor:pointer;padding:0 10px;white-space:nowrap}
#hlbar .y{background:#FFF176}#hlbar .g{background:#B9F6CA}#hlbar .p{background:#F8BBD0}#hlbar .b{background:#B3E5FC}#hlbar .o{background:#FFCC80}
#hlbar .n{background:#fff;color:#2F4B40}#hlbar .x{background:#52606D;color:#fff}
#hlbar [hidden]{display:none}
#notepanel{position:fixed;top:0;right:0;height:100%;width:min(380px,92vw);background:#fff;z-index:60;box-shadow:-4px 0 16px rgba(0,0,0,.25);transform:translateX(105%);transition:transform .2s;display:flex;flex-direction:column}
#notepanel.open{transform:none}
#notepanel header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#2F4B40;color:#fff;font-weight:bold;font-size:18px}
#notepanel header button{background:none;border:0;color:#fff;font-size:24px;cursor:pointer}
#notelist{flex:1;overflow-y:auto;padding:10px 14px}
#notelist .note{border:1px solid #DCE1DE;border-radius:8px;padding:8px 10px;margin-bottom:10px}
#notelist .quote{font-size:14px;color:#52606D;border-left:3px solid #FFF176;padding-left:8px;margin-bottom:6px;cursor:pointer}
#notelist textarea{width:100%;box-sizing:border-box;min-height:70px;font:15px/1.4 Arial,sans-serif;border:1px solid #CBD2D9;border-radius:6px;padding:6px}
#notelist .del{background:none;border:0;color:#C62828;font-size:13px;cursor:pointer;padding:4px 0 0}
#notepanel footer{padding:10px 14px;border-top:1px solid #E4E7EB;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;color:#52606D}
#notepanel footer button{background:#2F4B40;color:#fff;border:0;border-radius:6px;padding:8px 12px;font-weight:bold;cursor:pointer;white-space:nowrap}
#notesbtn{margin-right:6px}

/* Highlighter button + color palette in the lesson toolbar */
.penwrap{position:relative;display:inline-block;float:right;margin-right:6px}
.penwrap .listen{float:none;margin:0}
.listen.penon{border-width:2px}.pen-y{background:#FFF176!important}.pen-g{background:#B9F6CA!important}.pen-b{background:#B3E5FC!important}.pen-p{background:#F8BBD0!important}.pen-o{background:#FFCC80!important}
#penpal{position:absolute;right:0;top:44px;z-index:40;display:flex;gap:6px;background:#1F2933;padding:8px;border-radius:10px;box-shadow:0 4px 14px rgba(0,0,0,.3)}
#penpal[hidden]{display:none}
#penpal button{width:38px;height:38px;border-radius:50%;border:2px solid #fff;cursor:pointer}
#penpal button.on{box-shadow:0 0 0 3px #5FA37F}
#penpal .y{background:#FFF176}#penpal .g{background:#B9F6CA}#penpal .b{background:#B3E5FC}#penpal .p{background:#F8BBD0}#penpal .o{background:#FFCC80}
#penpal .off{width:auto;border-radius:8px;padding:0 10px;background:#52606D;color:#fff;font:bold 14px Arial}

.penwrap{margin-top:8px}
.listen.penicon{width:40px;height:40px;padding:0;border-radius:50%;font-size:19px;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.listen.penicon.penon{border:2px solid #B7791F}
