.book-shell {
  max-width: 850px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.book-shell h1 {
  font-size: clamp(1.6rem, 6vw, 2.3rem);
}

.book-shell h2 {
  margin: 28px 0 12px;
}

.book-shell .form-control {
  max-width: 100%;
}

.book-copy,
.book-shell .book-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.book-shell .actions {
  flex-wrap: wrap;
}

.book-shell .btn,
.desk-dialog .btn {
  white-space: normal;
  max-width: 100%;
}

.book-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
}

.book-check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.book-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book-data {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 3fr);
  gap: 8px 16px;
}

.book-data dt {
  color: var(--text-muted);
}

.book-data dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.book-notice {
  border: 2px solid currentColor;
  padding: 18px;
  margin: 20px 0;
}

.book-private {
  overflow-wrap: anywhere;
}

.book-summary {
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin: 12px 0;
}

.book-summary p {
  margin: 6px 0;
}

@media (max-width: 480px) {
  .book-data {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .book-data dd {
    margin-bottom: 12px;
  }
  .book-shell {
    padding: 22px 16px 50px;
  }
}

@media print {
  body,
  .book-shell,
  .book-shell h1,
  .book-shell h2,
  .book-shell .notice {
    background: white !important;
    color: black !important;
  }
  .book-shell {
    max-width: none;
    padding: 0;
  }
  .no-print,
  button,
  .actions {
    display: none !important;
  }
  .book-data dt {
    color: #333;
  }
  .book-shell h2 {
    break-after: avoid;
  }
  .book-summary {
    break-inside: avoid;
  }
  a {
    color: black;
  }
}
