/* A quiet, local-only worksheet using the main site's type and colour tokens. */
.lift-main { padding-bottom: clamp(60px, 7vw, 104px); }
.lift-main button, .lift-main input, .lift-main select { font: inherit; color: var(--ink); }
.lift-main :is(button, input, select, a):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.lift-intro { padding-top: clamp(36px, 5vw, 68px); padding-bottom: 44px; }
.lift-back-link { display: inline-block; margin-bottom: 34px; color: var(--green); font-size: .94rem; text-decoration: none; }
.lift-back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.lift-intro .library-eyebrow { margin-bottom: 18px; color: var(--green); font-size: .85rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.lift-intro h1 { color: var(--ink); font-size: clamp(2.7rem, 5.2vw, 4.5rem); line-height: 1.1; letter-spacing: -.055em; }
.lift-lead { max-width: 57ch; margin-top: 25px; font-size: var(--text-lead); line-height: 1.7; }
.lift-scoring-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; padding-block: 28px; border-block: 1px solid var(--line); }
.lift-scoring-key dt { display: flex; align-items: baseline; gap: 10px; color: var(--ink); font-size: 1rem; font-weight: 700; }
.lift-scoring-key dt span { color: var(--green); font-size: 1.7rem; line-height: 1; }
.lift-scoring-key dd { max-width: 24ch; margin: 12px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.lift-score-help { max-width: 76ch; margin-block: 27px 22px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.grid-head, .task-row { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(54px, 72px)) 80px 36px; align-items: center; gap: 12px; }
.grid-head { padding: 8px 17px 13px; color: var(--muted); font-size: .8125rem; font-weight: 700; }
.grid-head > :not(:first-child) { text-align: center; }
.task-row { min-width: 0; margin: 0 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--sage); }
.task-row label { min-width: 0; }
.task-row input, .task-row select { width: 100%; min-width: 0; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--paper); font-size: 1rem; }
.task-row input::placeholder { color: var(--muted); opacity: 1; }
.task-row select { padding-inline: 8px; }
.task-row output { display: block; color: var(--green); font-size: 1.15rem; font-weight: 700; text-align: center; white-space: nowrap; }
.task-row .remove { width: 36px; min-height: 48px; padding: 0; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 1.65rem; cursor: pointer; }
.task-row .remove:hover { color: var(--ink); background: var(--sage-strong); }
.mobile-label { display: none; }
.worksheet-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 25px; }
.lift-main .button { color: #fff; font-size: 1rem; font-weight: 700; }
.worksheet-secondary-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.worksheet-secondary-actions button, #cancel-clear { min-height: 48px; padding: 8px 0; border: 0; background: transparent; font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.storage-notice { min-height: 1.5em; margin-top: 18px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.lift-method { max-width: 74ch; margin-top: 34px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.lift-privacy { margin-top: 13px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
#clear-dialog { width: min(480px, calc(100% - 32px)); margin: auto; padding: 30px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); }
#clear-dialog::backdrop { background: rgba(8, 29, 24, .65); }
#clear-dialog h2 { margin-bottom: 16px; font-size: 1.8rem; line-height: 1.25; letter-spacing: -.035em; }
#clear-dialog p { font-size: 1rem; line-height: 1.65; }
#clear-dialog .worksheet-actions { justify-content: flex-start; }
.print-footer, .print-task, .print-score { display: none; }
.lift-main [hidden] { display: none !important; }
@media (max-width: 719px) {
    .lift-intro { padding-bottom: 32px; }
    .lift-back-link { margin-bottom: 28px; }
    .lift-scoring-key { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 20px; }
    .lift-scoring-key dd { font-size: .875rem; }
    .lift-score-help { font-size: .94rem; }
    .grid-head { display: none; }
    .task-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; padding: 16px; }
    .task-label { grid-column: 1 / -1; }
    .mobile-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .7rem; font-weight: 700; }
    .task-row select { padding-inline: 5px; }
    .result { grid-column: 1 / 4; display: flex; align-items: baseline; gap: 12px; }
    .result .mobile-label { font-size: .875rem; }
    .task-row output { text-align: left; }
    .task-row .remove { grid-column: 4; justify-self: end; width: 44px; }
    .worksheet-actions { align-items: flex-start; gap: 12px 22px; }
    .worksheet-secondary-actions { column-gap: 22px; }
    .lift-method { margin-top: 26px; }
}
@media print {
    @page { margin: 14mm; }
    :root, :root[data-theme='dark'] { color-scheme: light; --ink: #153e31; --muted: #3d5147; --green: #234f3c; --line: #a2b2a8; --paper: #fff; --sage: #fff; }
    html, body.lift-page { color: #153e31 !important; background: #fff !important; }
    .home-site-header, .home-skip-link, .site-footer, .lift-back-link, .worksheet-actions, #storage, #announcement, #clear-dialog, .task-row .remove { display: none !important; }
    .lift-main { padding: 0; }
    .lift-main .wrap { width: 100%; max-width: none; padding: 0; }
    .lift-intro { padding: 0 0 20px; }
    .lift-intro .library-eyebrow { margin-bottom: 8px; font-size: 9px; }
    .lift-intro h1 { font-size: 28px; }
    .lift-lead { max-width: none; margin-top: 12px; font-size: 12px; }
    .lift-scoring-key { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding-block: 15px; }
    .lift-scoring-key dt, .lift-scoring-key dd { font-size: 10px; }
    .lift-scoring-key dt span { font-size: 18px; }
    .lift-scoring-key dd { margin-top: 6px; }
    .lift-score-help { margin-block: 14px; font-size: 10px; }
    .grid-head, .task-row { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(5, 54px); gap: 8px; }
    .grid-head { font-size: 10px; }
    .grid-head > span:last-child { display: none; }
    .task-row { break-inside: avoid; padding: 10px; margin-bottom: 10px; border-color: #a2b2a8; background: #fff; }
    .task-label, .result { grid-column: auto; display: block; }
    .task-row input, .task-row select, .mobile-label, .task-row legend { display: none; }
    .print-task, .print-score { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: #153e31; font-size: 11px; }
    .print-score { text-align: center; }
    .task-row output { color: #153e31; font-size: 12px; text-align: center; }
    .lift-method { max-width: none; margin-top: 20px; font-size: 10px; }
    .lift-privacy { font-size: 9px; }
    .print-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #a2b2a8; color: #153e31; font-size: 9px; }
    .print-footer img { flex: none; }
}
