#between-dialog {
  --story-ink: #332a34;
  --story-accent: #693c57;
  box-sizing: border-box;
  padding: 0; width: min(32.5rem, calc(100vw - 2rem));
  max-width: none; max-height: none;
  position: fixed; inset: auto clamp(1.2rem, 3.4vw, 3.5rem) clamp(1.2rem, 5vh, 3.5rem) auto; margin: 0;
  color-scheme: light; color: var(--story-ink); background: #f7f1e9;
  border: 1px solid #cdb8bf; border-top: 4px solid #945370; border-radius: 6px;
  box-shadow: 0 16px 70px #0d0b1d80;
  font-family: system-ui, sans-serif; text-align: start;
}
#between-dialog::backdrop { background: rgb(19 17 34 / 57%); }
#between-dialog[open] { display: block; }
.between-frame { display: flex; flex-direction: column; max-height: 87vh; max-height: 87dvh; }
.between-header, .between-footer { flex: none; padding-inline: clamp(1rem, 3vw, 1.9rem); }
.between-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-block: .55rem; border-bottom: 1px solid #ddcfd0; }
#between-label { margin: 0; font: 600 .95rem/1.3 system-ui,sans-serif; letter-spacing: .015em; color: var(--story-accent); }
#between-label:focus { outline: none; }
#between-dialog .between-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none; border: 1px solid #c4adb8; background: transparent; color: var(--story-accent); border-radius: 50%; font: 1.28rem/1 system-ui,sans-serif; cursor: pointer; }
#between-dialog #between-close { border-color: transparent; font-size: 1.65rem; margin-inline-end: -.6rem; }
#between-dialog .between-icon:hover, #between-dialog #between-close:hover { background: #ebdee3; }
#between-dialog :is(a, button, summary, input):focus-visible { outline: 3px solid #87466b; outline-offset: 2px; }
.between-story { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: clamp(1rem,3vw,1.8rem); scrollbar-width: thin; }
#between-dateline { color: #665565; font: 600 .8rem/1.4 system-ui,sans-serif; margin: 0 0 .55rem; }
#between-title { margin: 0 0 .85rem; font: 500 clamp(1.85rem, 3.4vw, 2.65rem)/1.04 Georgia,serif; color: #352533; letter-spacing: -.035em; text-wrap: balance; }
#between-prose p { font: 400 clamp(1.01rem,1.5vw,1.12rem)/1.5 Georgia,serif; margin: .62rem 0; color: var(--story-ink); }
#between-people { display: flex; flex-wrap: wrap; gap: .2rem .85rem; margin: .7rem 0 .28rem; }
#between-dialog a, #between-dialog summary { color: var(--story-accent); text-decoration: underline; text-underline-offset: .19em; cursor: pointer; }
#between-people a { font-size: .9rem; line-height: 1.45; font-weight: 650; padding-block: .4rem; }
#between-sources { font: .82rem/1.5 system-ui,sans-serif; }
#between-sources summary { padding-block: .35rem; width: fit-content; }
#between-sources ul { margin: .25rem 0 0; padding-left: 1.2rem; }
#between-sources li { margin: .25rem 0; }
.between-footer { border-top: 1px solid #ddcfd0; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: space-between; padding-block: .65rem; background: #f1e8e4; }
.between-paging { display: flex; align-items: center; gap: .6rem; }
#between-position { color: #50414e; font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.between-choice { display: flex; align-items: center; gap: .4rem; color: #4a3c47; font: .8rem/1.35 system-ui,sans-serif; min-height: 36px; cursor: pointer; }
.between-choice input { accent-color: var(--story-accent); width: 17px; height: 17px; margin: 0; }
@media(max-width: 700px) {
  #between-dialog { width: min(32.5rem, calc(100vw - 1rem)); inset: auto 0 max(.5rem, env(safe-area-inset-bottom)) 0; margin-inline: auto; }
  .between-frame { max-height: 90vh; max-height: 90dvh; }
}
@media(max-height: 450px) {
  .between-header,.between-footer { padding-block: .1rem; }
  .between-frame { max-height: 96vh; max-height: 96dvh; }
  #between-dialog { bottom: 1vh; }
}
