/* Reader controls, discussion and reactions. Keep the art unobstructed. */
body.reading .peek-act { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
body.reading [data-marks-toggle] .i { display: block; flex: none; margin: 0; }
body.reading [data-marks-toggle] > span { display: inline; white-space: nowrap; }
body.reading .r-bar-in { min-height: 0; padding-inline: clamp(12px, 3vw, 24px); }
body.reading .r-comments { width: 100%; max-width: 720px; margin-inline: auto; }
body.reading .r-comments h4 { justify-content: center; font-size: 14px; font-weight: 650; }
body.reading .r-comments .comment-form,
body.reading .r-comments .comments,
body.reading .r-comments .signin-cta { width: 100%; max-width: 680px; margin-inline: auto; }
body.reading .r-comments .comments { padding-bottom: env(safe-area-inset-bottom); }
body.reading .r-comments .comment-form { gap: 9px; align-items: flex-start; }
body.reading .r-comments .cf-box textarea { font-size: 14px; line-height: 1.5; }
body.reading .r-comments .cf-bar { gap: 8px; flex-wrap: wrap; }
body.reading .r-comments .cf-bar .hint { display: none; }
body.reading .r-comments .c-body { font-size: 14px; line-height: 1.55; }
body.reading .r-comments .c-head { font-size: 12px; }
body.reading .r-comments .c-actions { gap: 12px; font-size: 12px; }

.peek-info { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; min-height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.peek-info span { width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font: 700 12px/15px Georgia, serif; }
.peek-info:hover { color: var(--accent); }
.peek-info:focus-visible, .mk-spot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

body.reading .mk-emo { gap: 2px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body.reading .mk-spot { min-width: 44px; min-height: 44px; justify-content: center; }
body.reading .mk-emo i { display: inline-block; margin: 0; font-size: 25px; line-height: 1.25; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5)); }
body.reading .mk-emo i:first-child { margin-left: 0; }
body.reading .mk-mine .mk-emo { box-shadow: none; }
body.reading .mk-mine .mk-emo i { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 60%, transparent)) drop-shadow(0 1px 2px rgb(0 0 0 / .45)); }
body.reading .mk-emo b { margin-left: 3px; text-shadow: 0 1px 4px #000; }
body.reading .mk-emoji { gap: 4px; }
body.reading .mk-emoji button { position: relative; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 30px; }
body.reading .mk-emoji button.on { border: 0; background: transparent; }
body.reading .mk-emoji button.on::after { content: ''; position: absolute; width: 18px; height: 3px; bottom: 0; left: calc(50% - 9px); border-radius: 3px; background: var(--accent); }
body.reading .mk-emoji button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 8px; }
body.reading .mk-pop-emo span { padding: 3px 5px; background: transparent; border-radius: 0; }
body.reading .mk-pop-emo i { display: inline-block; font-style: normal; font-size: 24px; }
body.reading .reactions button { min-width: 42px; min-height: 44px; justify-content: center; padding: 5px; border: 0; border-radius: 0; background: transparent; font-size: 25px; }
body.reading .reactions button.on { background: transparent; box-shadow: 0 2px 0 var(--accent); }

.mk-rotation { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.mk-rotation input { flex: 1; min-width: 0; accent-color: var(--accent); }
.mk-rotation output { flex: none; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.mk-rotation-preview { display: inline-block; flex: none; font-size: 24px; }
.mk-mine-list > span { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mk-mine-list .link-btn { min-height: 36px; }
.mk-help { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / .65); }
.mk-help[hidden] { display: none; }
.mk-help-panel { width: min(100%, 440px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; line-height: 1.6; }
.mk-help-panel h2 { margin: 0; font-size: 18px; }
.mk-help-panel p { margin: 12px 0; }
.mk-help-panel ol { padding-left: 22px; }
.mk-help-panel li + li { margin-top: 8px; }
.mk-help-tip { border-left: 2px solid var(--accent); padding-left: 12px; color: var(--muted); }
.mk-help-panel > .btn { width: 100%; }

@media (max-width: 600px) {
  body.reading .r-peek { gap: 3px; padding-inline: 8px; }
  body.reading .peek-main { flex: 1; min-width: 0; gap: 12px; }
  body.reading .peek-act { min-width: 44px; min-height: 44px; padding-inline: 7px; font-size: 12px; gap: 4px; }
  body.reading .peek-info { width: 32px; min-height: 44px; }
  body.reading .peek-more { flex: none; width: 32px; min-height: 44px; margin-left: 0; }
  body.reading .r-peek .peek-act:first-of-type { margin-left: 0; }
  body.reading .r-rate { gap: 12px 24px; }
  body.reading .r-rate h4 { font-size: 13px; }
  body.reading .r-comments .comment-form > .av { display: none; }
  body.reading .r-comments .cf-bar { padding-inline: 9px; font-size: 12px; }
  body.reading .mk-note-form input { font-size: 14px; }
}
@media (max-width: 420px) {
  body.reading .peek-lbl { display: none; }
  body.reading [data-marks-toggle] { gap: 4px; padding-inline: 7px; font-size: 11px; }
  body.reading [data-marks-toggle] .i { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .marks, .mk-picker, .mk-pick-panel { transition: none; }
  .mk-spot { animation: none; }
}
