.pocket-editor textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid #b9bdb2;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.pocket-editor textarea[aria-invalid="true"] {
  border-color: #a12e23;
  box-shadow: 0 0 0 1px #a12e23;
}
.pocket-view-switch,
.pocket-reading-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pocket-view-switch button,
.pocket-reading-pages button {
  min-width: 42px;
  min-height: 42px;
  padding: 5px 9px;
  border: 1px solid #c1b8cd;
  border-radius: 6px;
  background: #fff;
  color: #4c3864;
  font-size: 12px;
  font-weight: 700;
}
.pocket-view-switch button[aria-pressed="true"],
.pocket-reading-pages button[aria-pressed="true"] {
  border-color: #7d639a;
  background: #ede7f5;
  color: #442e62;
}
.pocket-view-switch button:not([aria-pressed="true"]):hover,
.pocket-reading-pages button:not([aria-pressed="true"]):hover {
  border-color: #7d639a;
  background: #f6f2fa;
}
.pocket-preview-options select {
  max-width: 100%;
  min-height: 42px;
  padding-inline: 5px;
}
.pocket-reading-pages {
  padding: 8px 20px;
  border-bottom: 1px solid #d1d5c8;
  background: #fff;
}
.pocket-reading-pages:empty {
  display: none;
}
.pocket-stage .cp-sheet {
  margin-block: 0;
}
.pocket-stage .cp-sheet:empty {
  min-height: 10rem;
}
.pocket-fold-steps {
  margin: 0 0 17px;
  padding-inline-start: 1.35rem;
}
.pocket-fold-steps li {
  margin: 0 0 9px;
  padding-inline-start: .18rem;
}
.pocket-fold-figure {
  max-width: 27rem;
  margin: 12px 0 0;
}
.pocket-fold-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 11 / 8.5;
  border: 1px solid #766b83;
  border-radius: 4px;
  background: #fff;
}
.pocket-fold-panel {
  display: grid;
  place-items: center;
  color: #58486a;
  font-size: clamp(15px, 3vw, 23px);
  font-weight: 750;
}
.pocket-fold-panel:nth-child(-n+4) {
  background: #f5f1f8;
}
.pocket-fold-panel:nth-child(-n+4) span {
  transform: rotate(180deg);
}
.pocket-fold-panel:not(:nth-child(4n)) {
  border-inline-end: 2px dashed #8b7b9b;
}
.pocket-fold-panel:nth-child(1),
.pocket-fold-panel:nth-child(4) {
  border-block-end: 2px dashed #8b7b9b;
}
.pocket-cut-line {
  position: absolute;
  inset: 50% 25% auto;
  transform: translateY(-50%);
  border-top: 3px solid #964536;
}
.pocket-fold-figure figcaption {
  margin-top: 8px;
  color: #514958;
  font-size: 12px;
}
.pocket-fold-figure figcaption p {
  margin: 5px 0 0;
}
.pocket-map-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-end: 10px;
  font-weight: 700;
}
.pocket-fold-key,
.pocket-cut-key {
  width: 25px;
}
.pocket-fold-key {
  border-top: 2px dashed #8b7b9b;
}
.pocket-cut-key {
  border-top: 3px solid #964536;
}
@media (max-width: 740px) {
  .pocket-preview-options,
  .pocket-reading-pages {
    padding-inline: 12px;
  }
}
