
html .ledger-strip .ledger-rows .l-cue.l-unnamed,
.cue-note .cn-cue.cn-unnamed,
.cr-row .cr-link.cr-unnamed,
#codex-drawer .cx-unnamed,
#codex-drawer .cx-body .cx-unnamed {
  font-family: var(--font-hand);
  letter-spacing: 0;
  font-style: normal;
  text-transform: none;
  font-size: 1.16em;
}

html .ledger-strip .ledger-rows .l-cue.l-unnamed,
.cue-note .cn-cue.cn-unnamed,
#codex-drawer .cx-unnamed,
#codex-drawer .cx-body .cx-unnamed {
  color: var(--pp-graphite, #3a3f45);
}

.cr-row .cr-link.cr-unnamed { color: var(--text-dim, #8fa7ad); }

@media (prefers-contrast: more) {
  html .ledger-strip .ledger-rows .l-cue.l-unnamed,
  .cue-note .cn-cue.cn-unnamed,
  #codex-drawer .cx-unnamed,
  #codex-drawer .cx-body .cx-unnamed { color: var(--pp-type, #22242b); }
  .cr-row .cr-link.cr-unnamed { color: var(--text, #c9d2d4); }
}


.sw-page {
  position: fixed;
  inset: 0;
  z-index: 70;                        
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;                 
  background: rgba(11, 18, 32, 0.72);
  opacity: 1;
  transition: opacity 220ms ease;
  cursor: default;
}

.sw-page.is-going { opacity: 0; pointer-events: none; }

.sw-sheet {
  width: min(520px, 100%);
  max-height: min(78vh, 720px);
  overflow: hidden auto;
  padding: 26px 26px 30px;
  border-radius: 2px;
  background-color: var(--pp-ledger, #e8dfc9);
  background-image: var(--plate-ledger-spread);
  background-size: cover;
  background-position: center;
  box-shadow: var(--pp-shadow-lift, 0 18px 42px rgba(0, 0, 0, 0.45));
  transform: translateY(0);
}

.sw-head {
  margin: 0 0 14px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pp-graphite, #3a3f45);
  text-transform: none;
}

.sw-head::after {
  content: '';
  display: block;
  margin-top: 10px;
  height: 1px;
  background: var(--pp-rule, rgba(43, 58, 85, 0.28));
}

.sw-column {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sw-head,
.sw-column { max-width: calc(50% - 26px); }

.sw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5em;
  row-gap: 2px;
  padding: 5px 0;
  border-bottom: 1px solid var(--pp-rule, rgba(43, 58, 85, 0.28));
  font-size: 0.92rem;
}

.sw-row:last-child { border-bottom: 0; }

.sw-who {
  flex: 0 0 auto;
  color: var(--pp-type, #22242b);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: var(--track-type, 0.06em);
}

.sw-word {
  flex: 0 0 auto;
  color: var(--pp-graphite, #3a3f45);
  font-size: 1.05rem;
  transition: opacity 260ms ease;
}

.sw-row.is-named .sw-word {
  opacity: 0.45;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.sw-name {
  flex: 1 0 100%;
  min-width: 0;
  color: var(--pp-type, #22242b);
  font-family: var(--font-type);
  letter-spacing: var(--track-type, 0.06em);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 240ms ease, transform 240ms ease;
  overflow-wrap: anywhere;
}

.sw-row.is-named .sw-name { opacity: 1; transform: translateY(0); }

.sw-said {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .sw-sheet { padding: 20px 18px 24px; max-height: 82vh; }
  .sw-head { font-size: 1.32rem; }
  .sw-row { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-page,
  .sw-word,
  .sw-name { transition-duration: 1ms; }
  .sw-name { transform: none; }
}
