.lp-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, .85fr);
  align-items: start;
  gap: clamp(1.1rem, 4vw, 4rem);
}
.lp-head > * { min-width: 0; }
.content-page .lp-head h1 { font-size: clamp(2rem, 4.1vw, 3.45rem); }
.content-page .lp-head .lead { max-width: 58ch; margin-bottom: 1rem; }
.content-page .lp-head .actions { margin: 1rem 0 .5rem; }
.lp-preview, .lp-exercise {
  border: 1px solid var(--r13-line, var(--line, #c7d8ca));
  border-radius: 1rem;
  padding: clamp(1rem, 2.3vw, 1.7rem);
  background: var(--r13-panel, var(--card, #fff));
  color: var(--r13-ink, var(--ink, #18281e));
}
.content-page .lp-preview h2, .content-page .lp-exercise h3 { margin: 0 0 .65rem; font-size: 1.3rem; }
.lp-preview dl { margin: 0 0 .7rem; }
.lp-preview dl > div {
  display: grid; grid-template-columns: minmax(6rem, .9fr) minmax(0, 1.3fr);
  gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--r13-line, var(--line, #c7d8ca));
}
.lp-preview dt, .lp-preview dd { margin: 0; line-height: 1.45; }
.lp-preview dd { font-weight: 650; overflow-wrap: anywhere; }
.content-page .lp-preview p, .content-page .lp-hint { font-size: .91rem; line-height: 1.55; margin: .6rem 0; color: var(--r13-muted, var(--ink2, #485d50)); }
.lp-head .lp-preview a, .lp-chat-link { text-underline-offset: .22em; }
.lp-exercise { max-width: 52rem; margin-block: 1.2rem; }
.lp-exercise label, .lp-preset button { min-height: 44px; }
.lp-exercise label { display: flex; gap: .6rem; align-items: center; }
.lp-exercise input { width: 1.15rem; height: 1.15rem; flex: none; }
.lp-exercise output { display: block; font-weight: 700; margin-top: .9rem; }
.lp-preset { display: flex; flex-wrap: wrap; gap: .45rem; margin: .7rem 0; }
.lp-preset button { padding: .45rem .75rem; border: 1px solid var(--r13-control, var(--line2,#778f79)); border-radius: .6rem; font: inherit; background: var(--r13-panel,var(--card,#fff)); color: inherit; cursor: pointer; }
.lp-handoff { scroll-margin-top: 5rem; }
.lp-handoff strong { color: var(--r13-ink,var(--ink,#18281e)); }
.content-page .lp-cost { font-size: .94rem; margin: 1rem 0 0; }
.content-page .lp-cost a { text-decoration: underline; text-underline-offset: .2rem; }
.lp-fields { margin-block: .9rem; }
.lp-fields dt { font-weight: 700; }
.lp-fields dd { margin: 0 0 .65rem; }
.lp-details { margin: 1rem 0; }
.lp-details summary { cursor: pointer; padding: .65rem 0; }
#example, #content, #lp-composer { scroll-margin-top: 5rem; }
[hidden].lp-exercise, [hidden].lp-preset { display: none; }
@media (max-width: 740px) {
  .lp-head { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .content-page .lp-head .actions > .btn { width: auto; flex: 1 1 12rem; }
  .content-page .lp-head .actions > .btn-p { flex-basis: 100%; }
  .content-page .lp-head .lead { font-size: 1.06rem; }
  .lp-preview dl > div { grid-template-columns: minmax(5rem, .8fr) minmax(0, 1.4fr); }
}
