.lth-toolbar,
.lth-controls{display:flex;gap:.5rem;justify-content:flex-end;max-width:72ch;margin:0 auto .75rem;align-items:center}
.lth-title{max-width:72ch;margin:0 auto .5rem;font-weight:600}
.lth{max-width:72ch;margin:2rem auto;line-height:1.7}
.lth p{margin:0 0 1rem 0}

/* Disable selection when nocopy is on */
.lth[data-nocopy="1"]{-webkit-user-select:none;-moz-user-select:none;user-select:none}

/* Buttons */
.lth .lth-btn,
a.lth-viewer-link{appearance:none;border:1px solid #cfd3d9;background:#f7f8fa;color:#111;padding:.45rem .75rem;border-radius:.75rem;cursor:pointer;line-height:1;display:inline-flex;align-items:center;justify-content:center;min-width:2.25rem;font-weight:600;text-decoration:none}
.lth .lth-btn:hover,
a.lth-viewer-link:hover{background:#eef1f5}
.lth .lth-btn:active,
a.lth-viewer-link:active{background:#e6e9ee}
.lth .lth-btn:focus,
a.lth-viewer-link:focus{outline:2px solid rgba(0,0,0,.15);outline-offset:2px}

/* Highlight */
.lth .sentence{display:inline;padding:.05rem .15rem;border-radius:.35rem;cursor:pointer;outline:0;transition:box-shadow 120ms ease,background-color 120ms ease}
.lth .sentence:focus{box-shadow:0 0 0 2px rgba(0,0,0,.25)}
.lth .sentence.is-selected{background-color:rgba(255,230,0,0.45);box-shadow:inset 0 0 0 999px rgba(255,230,0,0.15)}

/* Copy toast */
.lth .copy-toast{position:fixed;left:50%;bottom:1rem;transform:translateX(-50%);padding:.5rem .75rem;background:rgba(0,0,0,0.8);color:#fff;border-radius:.5rem;font-size:.875rem;opacity:0;pointer-events:none;transition:opacity 200ms ease;z-index:99999}
.lth .copy-toast.show{opacity:1}

/* Badge block */
.lth .lth-a-row{display:grid;grid-template-columns:2.4em 1fr;gap:.75rem;align-items:start;margin:0 0 1rem 0}
.lth .lth-a-badge{width:2.2em;height:2.2em;border-radius:.5rem;background:#4ca6c2;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;line-height:1;user-select:none}
.lth .lth-a-text{min-width:0}
.lth .lth-a-badge.lth-nohighlight{}

/* Responsive */
@media (max-width:480px){
  .lth .lth-a-row{grid-template-columns:2.2em 1fr}
}
