/* E02 original 640x480 capture: outer (168,140)-(473,342), header15px.
   Text rasterization remains browser-dependent; original colors are sampled. */
.reader-notemark {
  position: fixed;
  z-index: 160;
  box-sizing: border-box;
  width: 305px;
  height: 202px;
  padding: 0;
  margin: 0;
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: none;
  color: #000;
  background: #fff8b8;
  font: 11px/1 "w95fa", "MS Sans Serif", Tahoma, sans-serif;
}
.reader-notemark[hidden] { display: none; }
.reader-notemark__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 15px;
  padding: 0 3px 0 4px;
  box-sizing: border-box;
  color: #fff;
  background: #dfb85f;
  cursor: move;
  user-select: none;
}
.reader-notemark__title { letter-spacing: 3px; white-space: nowrap; }
.reader-notemark__title::before {
  content: "";
  display: inline-block;
  margin-right: 4px;
  border-top: 4px solid #fff;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  vertical-align: 1px;
}
.reader-notemark button.reader-notemark__close {
  appearance: none;
  min-width: 0;
  width: auto;
  height: 11px;
  padding: 0 1px 0 5px;
  margin: 0;
  border: 0;
  border-left: 1px solid #fff;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: inherit;
  text-transform: none;
  cursor: default;
}
.reader-notemark__body { position: relative; height: 185px; }
.reader-notemark textarea.reader-notemark__editor {
  position: absolute;
  box-sizing: border-box;
  left: 8px;
  top: 10px;
  width: 200px;
  height: 163px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: none;
  background: #fff8b8;
  color: #000;
  font: 12px/16px "Encarta Arial", Arial, sans-serif;
  caret-color: #dfb85f;
}
.reader-notemark button.reader-notemark__button {
  appearance: none;
  position: absolute;
  box-sizing: border-box;
  left: 242px;
  width: 53px;
  height: 19px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 1px solid #ffd050;
  border-radius: 0;
  background: #fff8b8;
  box-shadow: none;
  color: #000;
  font: inherit;
  text-transform: none;
  cursor: default;
}
.reader-notemark__ok { top: 10px; }
.reader-notemark__remove { top: 39px; }
.reader-notemark__list { top: 68px; }
.reader-notemark button.reader-notemark__button:disabled { color: #dfb85f; }
.reader-notemark button.reader-notemark__button:active:not(:disabled) { border-color: #dfb85f; }
.reader-notemark button:focus-visible { outline: 1px dotted #000; outline-offset: -3px; }
/* Host storage failures have no native-disk equivalent; keep draft available. */
.reader-notemark__error {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  max-height: 55px;
  overflow: auto;
  padding: 3px;
  border: 1px solid #dfb85f;
  background: #fff8b8;
  color: #000;
  font: 11px/13px "w95fa", "MS Sans Serif", Tahoma, sans-serif;
}
.reader-notemark__error[hidden] { display: none; }
.reader-notemark--error textarea.reader-notemark__editor { height: 110px; }

/* Original NOTE resource; separate from the retained Mind Maze return icon. */
.reader-topic-title { position: relative; }
#reader-notemark-indicator { position: absolute; top: 3px; right: 3px; width: 32px; height: 32px; padding: 0; border: 0; background: #000; cursor: pointer; }
#reader-notemark-indicator img { display: block; image-rendering: pixelated; }
