/* tools lane styles. Owned by lane fe-tools; uses tokens from /styles.css.
   Deadline radar, IRS notice decoder, hidden money finder, lender readiness check.
   Signature: the reviewer's red pencil (a ring around what matters, a tick on what is done). */

/* ---------- Shared ---------- */
.tl-radar, .tl-lender {
  --tl-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tl-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tl-src {
  display: inline-flex; align-items: center; min-height: 32px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--eyeshade); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px;
}
.tl-src--dark { color: var(--mint); text-decoration-color: rgba(168, 226, 192, 0.4); }
.tl-legal { margin-top: 28px; max-width: 62em; font-size: 0.84rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.tl-legal--dark { color: var(--on-night-muted); }
.tl-ring { position: absolute; max-width: none; pointer-events: none; overflow: visible; }
.tl-ring path { fill: none; stroke: var(--tick); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tl-urg {
  --tl-on: var(--tick); --tl-off: var(--rule-strong); --tl-n: 0;
  display: inline-block; flex: none; width: 53px; height: 4px; transform: skewX(-24deg);
  background:
    repeating-linear-gradient(90deg, var(--tl-on) 0 11px, transparent 11px 14px) 0 0 / calc(var(--tl-n) * 14px) 100% no-repeat,
    repeating-linear-gradient(90deg, var(--tl-off) 0 11px, transparent 11px 14px);
}
.tl-urg[data-level='1'] { --tl-n: 1; }
.tl-urg[data-level='2'] { --tl-n: 2; }
.tl-urg[data-level='3'] { --tl-n: 3; }
.tl-urg[data-level='4'] { --tl-n: 4; }
.tl-radar :focus-visible, .tl-lender :focus-visible { outline-color: var(--mint); }
@media (hover: hover) {
  .tl-src:hover { text-decoration-color: currentColor; }
}

/* ---------- Deadline radar: a slim departures strip under the hero ---------- */
.tl-radar {
  position: relative; padding-block: 26px 22px;
  background: radial-gradient(60% 160% at 0% 0%, rgba(50, 132, 96, 0.2), transparent 65%), var(--night);
  color: var(--on-night);
}
.tl-radar__inner { display: grid; grid-template-columns: minmax(170px, 210px) minmax(0, 1fr); gap: 12px 28px; }
.tl-radar__head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 4px; }
.tl-radar__title { font-size: 1.06rem; font-weight: 650; font-stretch: 118%; letter-spacing: -0.012em; line-height: 1.2; }
.tl-radar__asof { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-muted); }
.tl-radar__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tl-radar__item { min-width: 0; border-left: 1px solid var(--night-rule); }
.tl-radar__link {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px; height: 100%; padding: 4px 20px 6px;
  border-radius: var(--r-sm); color: inherit; text-decoration: none;
  transition: background-color var(--fast) var(--ease-out);
}
.tl-radar__count {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--mint);
}
.tl-radar__count:empty { display: none; }
.tl-radar__item.is-urgent .tl-radar__count {
  margin-block: -2px 1px; padding: 3px 8px 2px; border-radius: 3px;
  background: var(--tape); color: var(--tick-ink); box-shadow: inset 0 0 0 1.5px var(--tick-ink);
  transform: rotate(-2.5deg); transform-origin: left center;
}
.tl-radar__date { font-size: 1.32rem; font-weight: 660; font-stretch: 120%; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tl-radar__label { font-size: 0.92rem; font-weight: 560; line-height: 1.35; text-wrap: balance; }
.tl-radar__who { font-size: 0.82rem; line-height: 1.4; color: var(--on-night-muted); }
.tl-radar__moved { display: block; margin-top: 2px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tl-radar__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-muted);
}
.tl-radar__go::after {
  content: ''; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: var(--tl-arrow) center / contain no-repeat; mask: var(--tl-arrow) center / contain no-repeat;
  transition: transform 320ms var(--ease-spring);
}
.tl-radar__item.is-next .tl-radar__go { color: var(--mint); }
/* Later cards show only the arrow; the label stays in the link's name for screen readers and appears on hover or focus. */
.tl-radar.tl-on .tl-radar__item:not(.is-next) .tl-radar__go-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tl-radar.tl-on .tl-radar__item:not(.is-next) .tl-radar__link:focus-visible .tl-radar__go-text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.tl-radar__empty { grid-column: 2; align-self: center; font-size: 0.95rem; color: var(--on-night); }
.tl-radar__caveat {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; padding-top: 12px; border-top: 1px solid var(--night-rule);
  font-size: 0.76rem; line-height: 1.5; color: var(--on-night-muted); text-wrap: pretty;
}
.tl-radar__caveat > p { max-width: 74em; }
.tl-radar__more[open] { flex-basis: 100%; }
.tl-radar__more summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); }
.tl-radar__more p { max-width: 74em; padding-bottom: 4px; }
@media (hover: hover) {
  .tl-radar__link:hover { background: rgba(231, 238, 232, 0.05); }
  .tl-radar__link:hover .tl-radar__go { color: var(--mint); }
  .tl-radar__link:hover .tl-radar__go::after { transform: translateX(4px); }
  .tl-radar.tl-on .tl-radar__item:not(.is-next) .tl-radar__link:hover .tl-radar__go-text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* ---------- IRS notice decoder: the letter on the desk ---------- */
.tl-irs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; isolation: isolate; }
.tl-irs:not(.tl-on) .tl-picker, .tl-irs:not(.tl-on) .tl-letter, .tl-irs.tl-on .tl-notices { display: none; }
.tl-notices { grid-column: 1 / -1; max-width: 920px; }
.tl-picker { min-width: 0; }
.tl-picker__label { display: block; margin-bottom: 10px; font-size: 1rem; font-weight: 620; font-stretch: 104%; }
.tl-picker__input {
  width: 100%; min-height: 64px; padding: 10px 18px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  background: var(--tape); color: var(--ink);
  font-family: var(--mono); font-size: 1.5rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  -webkit-appearance: none; appearance: none;
}
.tl-picker__input::placeholder { color: var(--muted); opacity: 0.55; }
.tl-picker__input:focus { outline: 2px solid var(--eyeshade); outline-offset: 1px; border-color: var(--eyeshade); }
.tl-picker__hint { margin-top: 10px; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.tl-picker__hint .tl-src { min-height: 24px; }
.tl-index { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.tl-index__legend { padding: 0; margin-bottom: 10px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tl-index__list { border-top: 1px solid var(--rule); }
.tl-opt {
  position: relative; display: grid; grid-template-columns: 7.2em minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 46px; padding: 8px 12px; border-bottom: 1px solid var(--rule); cursor: pointer;
  transition: background-color var(--fast) var(--ease-out), opacity var(--fast) var(--ease-out);
}
.tl-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tl-opt__code { font-family: var(--mono); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; }
.tl-opt__title { font-size: 0.9rem; line-height: 1.35; color: var(--ink-2); }
.tl-opt:has(input:checked) { background: var(--eyeshade); border-bottom-color: var(--eyeshade); }
.tl-opt:has(input:checked) .tl-opt__code, .tl-opt:has(input:checked) .tl-opt__title { color: var(--paper-white); }
.tl-opt:has(input:checked) .tl-urg { --tl-on: var(--paper-white); --tl-off: rgba(244, 248, 245, 0.28); }
.tl-opt:has(input:focus-visible) { outline: 2px solid var(--eyeshade); outline-offset: 2px; z-index: 1; }
.tl-index__list.is-filtering .tl-opt:not(.is-match) { opacity: 0.4; }
.tl-opt.is-match:not(:has(input:checked)) { background: var(--ledger-hi); box-shadow: inset 3px 0 0 var(--eyeshade); }
@media (hover: hover) { .tl-opt:not(:has(input:checked)):hover { background: var(--ledger-hi); } }

.tl-letter {
  position: relative; min-width: 0; padding: clamp(24px, 3.6vw, 52px);
  border-radius: var(--r-sm); background: var(--tape);
  box-shadow: inset 0 0 0 1px rgba(13, 59, 46, 0.08), 0 1px 0 rgba(13, 59, 46, 0.05), 0 34px 60px -40px rgba(13, 59, 46, 0.5);
}
.tl-letter::before {
  content: ''; position: absolute; inset: 14px -10px -12px 12px; z-index: -1; border-radius: var(--r-sm);
  background: var(--ledger-hi); box-shadow: inset 0 0 0 1px rgba(13, 59, 46, 0.08); transform: rotate(1.4deg);
}
.tl-letter__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.tl-letter__stamp { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tick-ink); }
.tl-letter__stamp span { font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.tl-letter__box { min-width: 176px; padding: 10px 26px 14px; border: 1px solid var(--rule-strong); text-align: right; }
.tl-letter__kind { margin-bottom: 8px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tl-letter__code { position: relative; display: inline-block; margin-top: 2px; font-family: var(--mono); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: 0.02em; line-height: 1.15; }
.tl-letter__code .tl-ring { inset: -9px -24px -9px -24px; width: calc(100% + 48px); height: calc(100% + 18px); }
.tl-letter__alt { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.tl-letter__alt:empty { display: none; }
.tl-letter__eyebrow { margin-top: clamp(28px, 3.4vw, 44px); padding-top: 22px; border-top: 1px dashed var(--rule-strong); font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tick-ink); }
.tl-letter__title { margin-top: 10px; font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 650; font-stretch: 112%; letter-spacing: -0.026em; line-height: 1.1; text-wrap: balance; }
.tl-letter__meaning { margin-top: 14px; max-width: 40em; font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.tl-letter__facts { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px 28px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.tl-letter__facts dt, .tl-letter__do-head { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tl-letter__facts dd { margin: 8px 0 0; font-size: 0.98rem; font-weight: 520; line-height: 1.5; }
.tl-letter__urgency { display: flex; align-items: center; gap: 10px; }
.tl-letter__urgency[data-level='4'], .tl-letter__urgency[data-level='3'] { color: var(--tick-ink); font-weight: 650; }
.tl-letter__do { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }
.tl-letter__do-body { display: flex; gap: 10px; margin-top: 10px; font-size: 1rem; line-height: 1.55; }
.tl-letter__do-body .tick { margin-top: 3px; }
.tl-letter__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.tl-letter__src { display: flex; flex-wrap: wrap; gap: 0 16px; }

.tl-notices__title { margin-bottom: 12px; font-size: 1.2rem; font-weight: 640; font-stretch: 108%; }
.tl-notice { border-top: 1px solid var(--rule); }
.tl-notice:last-child { border-bottom: 1px solid var(--rule); }
.tl-notice > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-height: 52px; padding: 14px 4px; cursor: pointer; }
.tl-notice__code { min-width: 7.2em; font-family: var(--mono); font-weight: 600; }
.tl-notice__title { font-weight: 560; }
.tl-notice__alt { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.tl-notice > :not(summary) { margin: 0 4px 14px; color: var(--ink-2); }
.tl-notice > :last-child { margin-bottom: 24px; }
.tl-notice__facts dt { margin-top: 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tl-notice__facts dd { margin: 2px 0 0; }
.tl-notices > .tl-picker__hint { margin-bottom: 14px; }
.tl-notice__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.tl-audit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(32px, 5vw, 72px); align-items: start;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--rule-strong);
}
.tl-audit__title { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.15; }
.tl-audit__body { max-width: 36em; color: var(--ink-2); }
.tl-audit__link { grid-column: 2; min-height: 44px; justify-self: start; }

/* ---------- Hidden money finder: green-bar continuous form ---------- */
.tl-refunds__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.tl-refunds__head .section__head { margin-bottom: 0; }
.tl-refunds__figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; border-radius: var(--r-md); box-shadow: 0 34px 60px -44px rgba(13, 59, 46, 0.7); }
.tl-sheet {
  --tl-holes: 44px;
  --tl-band: color-mix(in srgb, var(--mint) 24%, var(--tape));
  position: relative; padding-inline: var(--tl-holes); border-radius: var(--r-md); background: var(--tape);
  box-shadow: inset 0 0 0 1px var(--rule), 0 30px 60px -48px rgba(13, 59, 46, 0.5);
}
.tl-sheet::before, .tl-sheet::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: var(--tl-holes); pointer-events: none;
  background: radial-gradient(circle, var(--ledger) 0 5px, rgba(13, 59, 46, 0.14) 5.5px, transparent 6.5px) 50% 14px / 100% 28px repeat-y;
}
.tl-sheet::before { left: 0; border-right: 1px dashed var(--rule-strong); }
.tl-sheet::after { right: 0; border-left: 1px dashed var(--rule-strong); }
.tl-sheet__cols, .tl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px clamp(24px, 4vw, 56px); }
.tl-sheet__cols { padding: 18px 28px 14px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tl-row { padding: 20px 28px; }
.tl-row:nth-child(odd) { background: var(--tl-band); }
.tl-row__q { min-width: 0; margin: 0; padding: 0; border: 0; }
.tl-row__ask { float: left; width: 100%; padding: 0; font-size: 1.06rem; font-weight: 560; line-height: 1.45; text-wrap: pretty; }
.tl-yn { clear: both; display: flex; gap: 8px; padding-top: 14px; }
.tl-yn__opt { position: relative; display: inline-flex; }
.tl-yn__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tl-yn__opt span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm);
  background: var(--tape); box-shadow: inset 0 0 0 1px var(--rule-strong); pointer-events: none;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  transition: background-color var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.tl-yn__opt input:checked + span { background: var(--eyeshade); color: var(--paper-white); box-shadow: inset 0 0 0 1px var(--eyeshade); }
.tl-yn__opt input[value='no']:checked + span { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-2); }
.tl-yn__opt input:focus-visible + span { outline: 2px solid var(--eyeshade); outline-offset: 2px; }
@media (hover: hover) { .tl-yn__opt input:not(:checked):hover + span { box-shadow: inset 0 0 0 1px var(--eyeshade); } }
.tl-row__find { min-width: 0; }
.tl-row__tag { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tl-row__title { position: relative; display: inline-block; margin-top: 6px; font-size: 1.12rem; font-weight: 650; font-stretch: 108%; letter-spacing: -0.012em; line-height: 1.3; }
.tl-row__title .tl-ring { inset: -9px -24px -8px -24px; width: calc(100% + 48px); height: calc(100% + 17px); opacity: 0; }
.tl-row__plain { margin-top: 8px; font-size: 0.94rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.tl-row__more { margin-top: 8px; font-size: 0.86rem; color: var(--ink-2); }
.tl-row__more summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; font-weight: 600; color: var(--eyeshade); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.tl-row__more p { padding-top: 4px; line-height: 1.55; }
.tl-refunds.tl-on .tl-row:not(.is-yes) .tl-row__plain,
.tl-refunds.tl-on .tl-row:not(.is-yes) .tl-row__more { display: none; }
.tl-refunds.tl-on .tl-row:not(.is-yes) .tl-row__title { color: var(--muted); font-weight: 560; }
.tl-row.is-no .tl-row__title { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--ink-2); }
.tl-row.is-yes .tl-row__tag { color: var(--tick-ink); }
.tl-row.is-yes .tl-ring { opacity: 1; }
.tl-sum {
  position: sticky; bottom: 14px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin: 0 calc(var(--tl-holes) * -1 + 10px) 10px; padding: 10px 10px 10px 24px; border-radius: var(--r-md);
  background: var(--night); color: var(--on-night); box-shadow: 0 18px 40px -22px rgba(10, 26, 20, 0.7);
}
.tl-sum__count { max-width: 46em; font-size: 0.98rem; line-height: 1.45; }
.tl-sum :focus-visible { outline-color: var(--mint); }

/* ---------- Lender readiness check ---------- */
.tl-lender {
  background: radial-gradient(55% 55% at 10% 8%, rgba(50, 132, 96, 0.2), transparent 70%), var(--night);
  color: var(--on-night); overflow: clip;
}
.tl-lender .section__lede { color: var(--on-night-muted); }
.tl-lender__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.tl-lender__figure { position: sticky; top: 112px; }
.tl-lender__figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.6); }
.tl-lender__main { min-width: 0; }
.tl-lender .section__head { margin-bottom: 40px; }
.tl-check { margin: 0; padding: 0; border: 0; min-width: 0; }
.tl-check__legend { padding: 0; margin-bottom: 14px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-muted); }
.tl-check__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 44px); }
.tl-item {
  position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px 14px; height: 100%; padding: 16px 4px 20px;
  align-content: start; border-top: 1px solid var(--night-rule); border-radius: 2px; cursor: pointer;
}
.tl-item input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tl-item__box { grid-row: 1 / span 2; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--on-night-muted); transition: background-color var(--fast) var(--ease-out); }
.tl-lender:not(.tl-on) .tl-item { grid-template-columns: minmax(0, 1fr); }
.tl-item__box::after {
  content: ''; width: 16px; height: 16px; background: var(--night); opacity: 0; transition: opacity var(--fast) var(--ease-out);
  -webkit-mask: var(--tl-tick) center / contain no-repeat; mask: var(--tl-tick) center / contain no-repeat;
}
.tl-item__name { font-size: 0.98rem; font-weight: 600; line-height: 1.35; transition: color var(--fast) var(--ease-out); }
.tl-item__why { grid-column: -2; font-size: 0.86rem; line-height: 1.5; color: var(--on-night-muted); }
.tl-item:has(input:checked) .tl-item__name { color: var(--mint); }
.tl-item:has(input:checked) .tl-item__box { background: var(--mint); box-shadow: none; }
.tl-item:has(input:checked) .tl-item__box::after { opacity: 1; }
.tl-item:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }
@media (hover: hover) { .tl-item:hover .tl-item__box { box-shadow: inset 0 0 0 1.5px var(--mint); } }
.tl-check__src { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 0 18px; }
.tl-meter { margin-top: 30px; }
.tl-meter__cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.tl-meter__cells i { position: relative; height: 12px; overflow: hidden; border-radius: 3px; background: rgba(231, 238, 232, 0.1); }
.tl-meter__cells i::after { content: ''; position: absolute; inset: 0; background: var(--mint); transform: scaleX(0); transform-origin: left center; transition: transform 360ms var(--ease-out); }
.tl-meter__cells i.is-on::after { transform: scaleX(1); }
.tl-meter__read { margin-top: 16px; font-size: 1rem; line-height: 1.55; color: var(--on-night); }
.tl-meter__n { margin-right: 4px; font-family: var(--mono); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mint); }
.tl-meter__gaps { display: block; margin-top: 6px; font-size: 0.92rem; color: var(--on-night-muted); }
.tl-meter__gaps:empty { display: none; }
.tl-lender__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.tl-lender__honest { max-width: 26em; font-size: 0.92rem; line-height: 1.5; color: var(--on-night); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .tl-radar__inner { grid-template-columns: minmax(0, 1fr); }
  .tl-radar__head { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-top: 0; }
  .tl-radar__empty { grid-column: 1; }
  .tl-radar__item:first-child { border-left: 0; }
  .tl-radar__item:first-child .tl-radar__link { padding-left: 0; }
}
@media (max-width: 980px) {
  .tl-radar__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .tl-radar__item:nth-child(odd) { border-left: 0; }
  .tl-radar__item .tl-radar__link { padding-left: 0; }
  .tl-radar__item:nth-child(even) .tl-radar__link { padding-left: 20px; }
  .tl-irs__grid, .tl-audit, .tl-refunds__head, .tl-lender__grid { grid-template-columns: minmax(0, 1fr); }
  .tl-audit__link { grid-column: 1; }
  .tl-refunds__figure { max-width: 620px; }
  .tl-lender__figure { position: static; max-width: 480px; }
  .tl-lender__figure img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
  .tl-sum { position: relative; } /* not sticky here, but still stacked above the sheet's punched edges */
}
@media (max-width: 720px) {
  .tl-radar { padding-block: 22px 18px; }
  .tl-radar__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .tl-radar__item { border-left: 0; border-top: 1px solid var(--night-rule); }
  .tl-radar__item .tl-radar__link, .tl-radar__item:nth-child(even) .tl-radar__link {
    display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 12px 0;
  }
  .tl-radar__count { grid-column: 1; grid-row: 1 / span 3; align-self: start; justify-self: start; margin-top: 4px; }
  .tl-radar__date, .tl-radar__label, .tl-radar__who, .tl-radar__go { grid-column: 2; }
  .tl-radar__date { font-size: 1.12rem; }
  .tl-radar__go { padding-top: 4px; }
  .tl-radar__item:not(.is-next) .tl-radar__go { display: none; }
  .tl-radar__item.is-fourth { display: none; }
  .tl-index__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 0; }
  .tl-opt { grid-template-columns: minmax(0, 1fr); justify-items: center; min-height: 48px; padding: 6px 4px; border: 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--rule-strong); background: var(--tape); }
  .tl-opt:has(input:checked) { box-shadow: none; }
  .tl-opt__title, .tl-opt .tl-urg { display: none; }
  .tl-opt.is-match:not(:has(input:checked)) { box-shadow: inset 0 0 0 1.5px var(--eyeshade); }
  .tl-lender__figure img { aspect-ratio: 16 / 10; }
  .tl-letter__top { flex-direction: column-reverse; align-items: stretch; }
  .tl-letter__code .tl-ring { inset: -8px -14px -8px -14px; width: calc(100% + 28px); height: calc(100% + 16px); } /* chair fix, folded in */
  .tl-letter::before { inset: 10px 0 -10px 8px; }
  .tl-letter__box { align-self: flex-end; }
  .tl-letter__facts { grid-template-columns: minmax(0, 1fr); }
  .tl-letter__foot .btn { width: 100%; justify-content: space-between; }
  .tl-sheet { --tl-holes: 18px; }
  .tl-sheet::before, .tl-sheet::after { background-size: 100% 22px; background-image: radial-gradient(circle, var(--ledger) 0 3px, transparent 3.5px); }
  .tl-sheet__cols { display: none; }
  .tl-row { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .tl-refunds.tl-on .tl-row:not(.is-yes) .tl-row__find { display: none; }
  .tl-sum { margin-inline: -8px; padding: 16px; }
  .tl-sum .btn, .tl-lender__cta .btn { width: 100%; justify-content: space-between; }
  .tl-check__list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-radar__item.is-urgent .tl-radar__count { transform: none; }
  .tl-meter__cells i::after, .tl-item, .tl-item__box, .tl-opt { transition: none; }
}
