/* client-essay-docs-ux: highlight mirror layer behind the essay textarea, and the word count dialog. */
.ed-hl-wrap{position:relative}
.ed-hl-wrap textarea{position:relative;z-index:1;display:block}
.ed-hl-mirror{position:absolute;top:0;left:0;height:100%;box-sizing:border-box;margin:0;border:0;overflow:hidden;pointer-events:none;
  color:transparent;white-space:pre-wrap;overflow-wrap:break-word;word-wrap:break-word;line-height:1.75;z-index:0}
.ed-hl-mirror mark.ed-hl{color:transparent;border-radius:2px}
.ed-hl-mirror mark.ed-hl.pending{background:rgba(255,205,60,.55);box-shadow:0 0 0 1px rgba(214,160,0,.55)}
.ed-hl-mirror mark.ed-hl.saved{background:rgba(70,187,133,.28)}
.ed-cancel[hidden]{display:none}
.ed-count{max-width:360px}
.ed-count-list{margin:12px 0 16px;display:grid;gap:8px}
.ed-count-list div{display:flex;justify-content:space-between;gap:16px;font-size:14px}
.ed-count-list dt{color:var(--muted)}
.ed-count-list dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
/* essay-comment-jump: a highlight opens its own comment. The mirror stays pointer-events:none (the textarea above takes every
   click and the script hit-tests the segments); segments are keyboard focusable, so they get a visible focus ring. */
.ed-hl-mirror mark.ed-hl.saved.multi{background:rgba(70,187,133,.5)}
.ed-hl-mirror mark.ed-hl.saved.hot{background:rgba(70,187,133,.45)}
.ed-hl-mirror mark.ed-hl.saved.multi.hot{background:rgba(70,187,133,.62)}
.ed-hl-mirror mark.ed-hl[data-cids]:focus{outline:none}
.ed-hl-mirror mark.ed-hl[data-cids]:focus-visible{outline:2px solid var(--green,#2f9e6e);outline-offset:1px;background:rgba(70,187,133,.5)}
.cmt[data-cid]:focus{outline:none}
.cmt[data-cid]:focus-visible .bub,.cmt[data-cid][aria-current="true"]:focus .bub{box-shadow:0 0 0 2px var(--green,#2f9e6e)}
@keyframes ed-cmt-flash{0%{box-shadow:inset 0 0 0 999px rgba(255,205,60,0),0 0 0 2px rgba(214,160,0,0)}15%{box-shadow:inset 0 0 0 999px rgba(255,205,60,.55),0 0 0 2px rgba(214,160,0,.8)}70%{box-shadow:inset 0 0 0 999px rgba(255,205,60,.35),0 0 0 2px rgba(214,160,0,.5)}100%{box-shadow:inset 0 0 0 999px rgba(255,205,60,0),0 0 0 2px rgba(214,160,0,0)}}
.cmt.ed-cmt-flash .bub{animation:ed-cmt-flash 1.6s ease-out 1}
@media (prefers-reduced-motion:reduce){
  .cmt.ed-cmt-flash .bub{animation:none;box-shadow:inset 0 0 0 999px rgba(255,205,60,.4),0 0 0 2px rgba(214,160,0,.8)}
}
.ed-hl-pop{position:fixed;z-index:1000;min-width:220px;max-width:340px;background:var(--card,#fff);color:var(--ink,#111);border:1px solid var(--line,#ddd);
  border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.18);padding:6px;display:grid;gap:2px}
.ed-hl-pop-h{font-size:11.5px;color:var(--muted,#666);padding:4px 8px 2px}
.ed-hl-pop-i{display:grid;gap:1px;text-align:left;border:0;background:transparent;border-radius:7px;padding:7px 9px;cursor:pointer;font:inherit;color:inherit}
.ed-hl-pop-i:hover,.ed-hl-pop-i:focus-visible{background:var(--green-s,rgba(70,187,133,.16));outline:none}
.ed-hl-pop-i:focus-visible{box-shadow:0 0 0 2px var(--green,#2f9e6e)}
.ed-hl-pop-s{font-size:13.5px;line-height:1.35;overflow-wrap:anywhere}
.ed-hl-pop-a{font-size:11.5px;color:var(--muted,#666)}
