/* 52LIFT v1.0: new subpage extensions, load after 52lift-tokens.css. */
.lift-page, .lift-page *, .lift-page *::before, .lift-page *::after { box-sizing: border-box; }
.lift-page { min-width: 320px; margin: 0; color: var(--ink); background: var(--surface); font-family: var(--font-sans); font-size: 14px; line-height: 1.8; font-synthesis: none; -webkit-font-smoothing: antialiased; }
.lift-page :is(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
.lift-page a { color: inherit; text-decoration: none; }
.lift-page :is(button, input, select, textarea) { font-family: inherit; }
.lift-page :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.lift-page ::selection { color: var(--blue-strong); background: var(--blue-soft); }
.lift-shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.lift-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lift-skip { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 10px 20px; background: var(--action-bg-hover); color: var(--action-fg) !important; transform: translateY(-160%); }
.lift-skip:focus { transform: none; }
.lift-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.lift-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.lift-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue) !important; white-space: nowrap; }
.lift-wordmark { font-size: 28px; font-weight: 750; letter-spacing: -.04em; }
.lift-wordmark > span { font-weight: 500; letter-spacing: .025em; }
.lift-company { font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.lift-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.lift-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; }
.lift-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.lift-main { padding-block: 32px 48px; scroll-margin-top: 110px; }
.lift-page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 32px; }
.lift-page-heading h1 { font-size: 32px; font-weight: 600; line-height: 1.4; letter-spacing: -.04em; }
.lift-page-heading p { max-width: 65ch; margin-top: 12px; color: var(--muted); }
.lift-eyebrow { color: var(--blue); font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .1em; }
.lift-page-heading .lift-eyebrow { margin: 0 0 12px; color: var(--blue); }
.lift-section-title { font-size: 22px; font-weight: 600; line-height: 1.5; letter-spacing: -.03em; }
.lift-subtitle { font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.lift-muted { color: var(--muted); }
.lift-help { color: var(--muted); font-size: 12px; line-height: 1.7; }
.lift-stack { display: grid; gap: 32px; }
.lift-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
.lift-workspace > *, .lift-fields > *, .lift-result-grid > * { min-width: 0; }
.lift-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.lift-panel-heading { margin-bottom: 20px; }
.lift-panel-heading p { margin-top: 8px; color: var(--muted); }
.lift-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lift-field { display: grid; align-content: start; gap: 8px; }
.lift-field-wide { grid-column: 1 / -1; }
.lift-label { font-size: 13px; font-weight: 600; line-height: 1.65; }
.lift-input, .lift-select, .lift-textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.5; transition: border-color .2s; }
.lift-textarea { min-height: 120px; resize: vertical; }
.lift-input::placeholder, .lift-textarea::placeholder { color: var(--muted); opacity: 1; }
.lift-input[aria-invalid="true"], .lift-select[aria-invalid="true"], .lift-textarea[aria-invalid="true"] { border-color: var(--danger); }
.lift-error { color: var(--danger); font-size: 13px; line-height: 1.7; }
.lift-page :is(input, select, textarea):disabled { opacity: .5; cursor: not-allowed; }
.lift-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }
.lift-choice input { accent-color: var(--blue); }
.lift-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.lift-actions-separated { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.lift-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; max-width: 100%; padding: 10px 21px; border: 1px solid var(--line); border-radius: 5px; color: var(--blue) !important; background: var(--surface); font-size: 13px; font-weight: 600; line-height: 1.65; text-align: center; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.lift-button-primary { color: var(--action-fg) !important; background: var(--action-bg); border-color: var(--action-bg); }
.lift-button:active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) { transform: scale(.98); }
.lift-button:disabled, .lift-button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.lift-button[aria-busy="true"] { cursor: progress; }
.lift-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue) !important; font-size: 13px; }
.lift-icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.lift-arrow-right { --icon: url('./assets/icon-arrow-right.svg'); }
.lift-arrow-down { --icon: url('./assets/icon-arrow-down.svg'); }
.lift-button .lift-icon, .lift-text-link .lift-icon { width: 16px; height: 16px; }
.lift-notice { padding: 12px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--blue-soft); color: var(--blue); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.lift-notice-warning { color: var(--warning); background: var(--warning-soft); }
.lift-notice-success { color: var(--success); background: var(--success-soft); }
.lift-notice-error { color: var(--danger); background: var(--danger-soft); }
.lift-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.lift-status-warning { color: var(--warning); background: var(--warning-soft); }
.lift-summary { display: grid; gap: 12px; font-size: 13px; }
.lift-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.lift-summary dt { color: var(--muted); }
.lift-summary dd { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lift-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.lift-step { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; height: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 13px; line-height: 1.65; text-align: center; }
.lift-step[aria-current="step"] { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); font-weight: 600; }
.lift-step-number { font-variant-numeric: tabular-nums; }
.lift-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lift-entry-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: transform .25s cubic-bezier(.2,.65,.3,1), border-color .25s, box-shadow .25s; }
.lift-entry-card:focus-visible { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--card-shadow); }
.lift-page .lift-entry-card:active { transform: translateY(-1px); }
.lift-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.lift-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
.lift-table :is(th, td) { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lift-table th { background: var(--surface-alt); font-weight: 600; }
.lift-table tr:last-child td { border-bottom: 0; }
.lift-table .lift-numeric { text-align: right; font-variant-numeric: tabular-nums; }
.lift-viewer { overflow: auto; background: var(--viewer); border: 1px solid var(--line); border-radius: 8px; }
.lift-viewer img { display: block; width: 100%; height: auto; object-fit: contain; }
.lift-footer { padding-block: 20px; border-top: 1px solid var(--line); background: var(--surface-alt); color: var(--muted); font-size: 12px; }
@media (hover: hover) and (pointer: fine) {
  .lift-nav a:hover { color: var(--blue); }
  .lift-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .lift-button:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) { border-color: var(--blue); background: var(--blue-soft); }
  .lift-button-primary:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) { border-color: var(--action-bg-hover); background: var(--action-bg-hover); transform: translateY(-2px); }
  .lift-entry-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--card-shadow); }
}
@media (max-width: 1199px) { .lift-shell { width: calc(100% - 72px); } }
@media (max-width: 991px) {
  .lift-shell { width: calc(100% - 48px); }
  .lift-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .lift-shell { width: calc(100% - 40px); }
  .lift-header-inner { min-height: 68px; gap: 16px; }
  .lift-brand { gap: 8px; }
  .lift-wordmark { font-size: 25px; }
  .lift-company { font-size: 14px; }
  .lift-main { padding-block: 24px 32px; }
  .lift-page-heading { margin-bottom: 24px; }
  .lift-page-heading h1 { font-size: 26px; }
  .lift-section-title { font-size: 20px; }
  .lift-stack { gap: 24px; }
  .lift-panel, .lift-entry-card { padding: 20px; border-radius: 6px; }
  .lift-fields, .lift-result-grid { grid-template-columns: 1fr; }
  .lift-input, .lift-select, .lift-textarea { font-size: 16px; }
  .lift-steps { margin-bottom: 24px; }
  .lift-step { flex-wrap: wrap; gap: 4px 8px; font-size: 12px; }
}
@media (max-width: 479px) {
  .lift-header-inner { flex-wrap: wrap; gap: 0 16px; padding-block: 10px 2px; }
  .lift-nav { width: 100%; gap: 20px; }
  .lift-nav a { font-size: 12px; }
  .lift-panel, .lift-entry-card { padding: 16px; }
  .lift-step { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .lift-page { scroll-behavior: auto; }
  .lift-page *, .lift-page *::before, .lift-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .lift-page .lift-button, .lift-page .lift-entry-card { transform: none !important; }
}
