/* Reader proposals: editorial tokens, static until an explicit reader action. */
.ed .rev-trigger, .ed .rev-dialog, .ed .rev-dialog * { box-sizing: border-box; }
.ed [class^="rev-"][hidden], .ed .rev-dialog [hidden] { display: none; }
.ed .rev-footer {
  font: inherit; color: var(--ed-quiet); background: none; border: 0;
  padding: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.ed .rev-trigger {
  position: static; width: max-content; margin: 0.5rem 0 0.75rem;
  user-select: none;
  display: flex; gap: 1.25rem; align-items: center; min-height: 44px;
  max-width: 100%; padding: 0.7rem 0.95rem;
  border: 1px solid var(--ed-accent); border-radius: 2px;
  background: var(--ed-paper); color: var(--ed-ink); cursor: pointer;
  font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.03em;
  box-shadow: 0 2px 8px #0002;
}
.ed .rev-trigger span, .ed .rev-submit span { color: var(--ed-accent); }
.ed .rev-dialog {
  position: fixed; width: min(40rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem); margin: auto; padding: 0;
  overflow-y: auto; overscroll-behavior: contain;
  color: var(--ed-body); background: var(--ed-paper);
  border: 1px solid var(--ed-rule-strong); border-radius: 2px;
  font: 400 15px/1.6 var(--font-body); color-scheme: dark;
  box-shadow: 0 24px 80px #0006;
}
.ed .rev-dialog::backdrop { background: #000a; }
.ed .rev-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--ed-rule);
}
.ed .rev-label { font: 500 10px/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-quiet); }
.ed .rev-close { font: 400 12px/1.5 var(--font-mono); color: var(--ed-quiet); border: 0; background: none; cursor: pointer; min-height: 44px; padding: 0.5rem 0; }
.ed .rev-close span { margin-left: 0.65rem; font-size: 18px; }
.ed .rev-form, .ed .rev-success { padding: clamp(1.25rem, 4vw, 2rem); }
.ed .rev-title { margin: 0; font: 500 clamp(1.9rem, 5vw, 2.6rem)/1.1 var(--font-display); letter-spacing: -0.04em; color: var(--ed-ink); }
.ed .rev-intro { margin: 0.8rem 0 1.5rem; max-width: 43ch; color: var(--ed-body); }
.ed .rev-selection { border-left: 2px solid var(--ed-accent); padding: 0.1rem 0 0.1rem 1rem; margin-bottom: 1.5rem; }
.ed .rev-quote { margin: 0.5rem 0 0; max-height: 9rem; overflow: auto; font: 400 16px/1.6 var(--font-body); color: var(--ed-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ed .rev-field { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.ed .rev-input {
  width: 100%; min-width: 0; padding: 0.75rem; border: 1px solid var(--ed-rule-strong);
  border-radius: 2px; background: var(--ed-paper-alt); color: var(--ed-ink);
  font: 400 16px/1.55 var(--font-body);
}
.ed textarea.rev-input { min-height: 7rem; resize: vertical; }
.ed .rev-input::placeholder { color: var(--ed-quiet); }
.ed .rev-context, .ed .rev-contact { border-top: 1px solid var(--ed-rule); padding-block: 0.8rem; }
.ed .rev-context summary, .ed .rev-contact summary { cursor: pointer; color: var(--ed-ink); font-size: 13px; min-height: 24px; }
.ed .rev-contact summary .rev-note { margin-left: 0.5rem; }
.ed .rev-meta { margin: 0.75rem 0; font: 400 11px/1.6 var(--font-mono); }
.ed .rev-meta div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.5rem; padding-block: 0.3rem; }
.ed .rev-meta dt { color: var(--ed-quiet); }
.ed .rev-meta dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ed .rev-passage { margin: 0.6rem 0; max-height: 8rem; overflow: auto; color: var(--ed-quiet); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ed .rev-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 12px; color: var(--ed-body); }
.ed .rev-check input { margin: 0.35rem 0 0; accent-color: var(--ed-accent); flex: none; }
.ed .rev-note { margin: 0.6rem 0; font: 400 12px/1.65 var(--font-body); color: var(--ed-quiet); }
.ed .rev-note a { color: inherit; text-underline-offset: 0.2em; }
.ed .rev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1.5rem; }
.ed .rev-submit { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.8rem 1rem; min-height: 44px; font: 500 12px/1.4 var(--font-mono); background: var(--ed-raised); border: 1px solid var(--ed-rule-strong); border-radius: 2px; color: var(--ed-ink); cursor: pointer; }
.ed .rev-submit:disabled { opacity: 0.6; cursor: progress; }
.ed .rev-close:disabled { opacity: 0.6; cursor: progress; }
.ed .rev-status { margin: 0.75rem 0 0; font-size: 13px; color: var(--ed-ink); }
.ed .rev-success p { margin-block: 1.25rem; }
.ed .rev-success .rev-label { display: block; margin-bottom: 1rem; color: var(--ed-accent); }
.ed .rev-dialog :focus-visible, .ed .rev-trigger:focus-visible, .ed .rev-footer:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
.ed .rev-announcement, .ed .rev-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 40rem) {
  .ed .rev-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  .ed .rev-head { padding-inline: 1.25rem; }
}
