.lp-tool { max-width: 54rem; margin-bottom: 2.5rem; }
.lp-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .65rem .8rem; }
.lp-controls label { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: .25rem; font-weight: 650; }
.lp-controls select, .lp-secondary {
  min-height: 3.25rem; min-width: 0; max-width: 100%; padding: .55rem .75rem;
  border: 1px solid var(--site-line); border-radius: .55rem;
  background: var(--site-paper); color: var(--site-ink); font: inherit;
}
.lp-controls button { cursor: pointer; font-family: inherit; }
.lp-status { min-height: 1.45rem; margin: .4rem 0; color: var(--site-muted); }
.lp-paper { padding: clamp(1rem, 4vw, 2.1rem); border: 1px solid var(--site-line); border-radius: .7rem; background: white; }
.lp-paper-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .9rem; color: var(--site-muted); font-size: .82rem; }
.lp-paper h2 { margin: .45rem 0 .6rem; line-height: 1.2; }
.lp-paper p { margin: .45rem 0; }
.lp-example { border-left: 2px solid var(--site-line); padding-left: .7rem; }
.lp-example strong { margin-right: .3rem; }
.lp-name { display: flex; align-items: baseline; gap: .4rem; max-width: 25rem; }
.lp-name span { flex: 1; border-bottom: 1px solid #929a92; }
.lp-items { margin: .75rem 0 0; padding-inline-start: 1.5em; }
.lp-items li { margin-bottom: .5rem; break-inside: avoid; }
.lp-question { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; }
.lp-question > span:first-child { overflow-wrap: break-word; min-width: 0; }
.lp-choices { font-size: .9rem; font-weight: 650; color: var(--site-muted); }
.lp-line { display: block; min-height: 1.4rem; border-bottom: 1px solid #929a92; }
.lp-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
.lp-boxes > span { min-height: 1.9rem; border-bottom: 1px solid #929a92; }
.lp-boxes small { font-size: clamp(.56rem, 2.55vw, .75rem); color: var(--site-muted); }
.lp-key { margin-top: .85rem; }
.lp-key summary { min-height: 2.75rem; padding: .55rem .25rem; font-weight: 650; cursor: pointer; }
.lp-key-paper { margin-bottom: .65rem; }

@media (max-width: 32rem) {
  .lp-controls label { flex: 1 1 min(100%, 10rem); }
}
@media print {
  @page { size: A4; margin: 0; }
  body:has(.lp-tool) #content { width: auto; max-width: none; margin: 0; padding: 0; }
  .lp-controls, .lp-status, .lp-key, body:has(.lp-tool) .statistics-preference { display: none !important; }
  .lp-tool, .lp-key { margin: 0; padding: 0; max-width: none; }
  .lp-paper { width: 210mm; margin: 0; padding: 15mm; border: 0; border-radius: 0; color: black; font-size: 11pt; }
  .lp-paper h2 { font-size: 18pt; }
  .lp-key-paper { line-height: 1.42; }
  .lp-key-paper .lp-items li { margin-bottom: 2.5mm; }
  .lp-key-paper .lp-items p { margin: .45mm 0 0; }
  .lp-line { min-height: 7mm; }
  .lp-boxes > span { min-height: 8mm; }
  .lp-boxes small { font-size: 8pt; }
  .lp-tool[data-scope="answers"] .lp-task-paper { display: none; }
  .lp-tool[data-scope="both"] .lp-key, .lp-tool[data-scope="answers"] .lp-key { display: block !important; }
  .lp-tool[data-scope="both"] .lp-key { break-before: page; }
  .lp-key summary { display: none; }
}
