/* SubMac free micro tools (/tools, /tools/*). Builds on site.css tokens: cream paper, ink, red dot, serif display.
   Motion: opacity/transform only, and site.css + motion.css switch it off for prefers-reduced-motion. */

/* ---------- hero (compact so the tool sits above the fold) ---------- */
.tl-hero { padding: 26px 0 18px; }
@media (min-width: 860px) { .tl-hero { padding: 44px 0 26px; } }
.tl-hero .crumbs { font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.tl-hero .crumbs a { text-decoration: none; }
.tl-hero .kicker { margin: 0 0 12px; }
.tl-hero .display { font-size: clamp(2.05rem, 6.2vw, 3.6rem); max-width: 18em; margin: 0; }
.tl-promise { margin: 14px 0 0; font-size: 1.06rem; max-width: 40em; }
.tl-private { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 7px 12px 7px 10px; border: 1px solid var(--rule-2); border-radius: var(--r-pill); background: rgba(255, 253, 248, .7); font-size: .84rem; color: var(--ink-2); }
.tl-lock { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ok); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the tool card ---------- */
.tl-main { padding: 6px 0 56px; }
@media (min-width: 860px) { .tl-main { padding: 8px 0 80px; } }
.tl-app { background: var(--sheet); border: 1px solid var(--ink); border-radius: var(--r-md); padding: 18px; display: grid; gap: 18px; min-width: 0;
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -44px rgba(23, 21, 15, .55); }
@media (min-width: 640px) { .tl-app { padding: 28px; gap: 22px; } }
.tl-app > * { min-width: 0; }
.tl-sub { font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 6px 0 -6px; }

/* fields */
.tl-field { display: grid; gap: 7px; min-width: 0; }
.tl-label, .tl-seg-field > legend { font-weight: 600; font-size: .93rem; color: var(--ink); padding: 0; }
.tl-label output { font: 500 .85rem var(--mono); color: var(--red); margin-left: 6px; }
.tl-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tl-mini { display: inline-flex; gap: 14px; }
.tl-hint { font-size: .82rem; color: var(--ink-3); }
.tl-center { text-align: center; }
.tl-input, .tl-textarea { width: 100%; min-width: 0; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--rule-2); border-radius: var(--r-sm); padding: 11px 12px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select.tl-input { padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317150f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.tl-textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.tl-input:focus, .tl-textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(194, 54, 27, .16); }
.tl-input[aria-invalid="true"] { border-color: var(--red); }
.tl-input-xl { font-size: 1.15rem; min-height: 54px; }
.tl-input-sm { max-width: 120px; }
.tl-inline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tl-inline > .tl-input { flex: 1; }
.tl-grid2, .tl-grid3 { display: grid; gap: 14px; }
@media (min-width: 560px) { .tl-grid2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) { .tl-grid3 { grid-template-columns: repeat(3, 1fr); } }
.tl-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; align-self: end; min-height: 46px; cursor: pointer; }
.tl-checkbox input { width: 18px; height: 18px; accent-color: var(--red); }
.tl-color { width: 100%; height: 46px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: #fff; padding: 4px; cursor: pointer; }
.tl-inline .tl-color { width: 56px; flex: none; }
.tl-range { width: 100%; accent-color: var(--red); height: 30px; }
.tl-more { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 0 14px; background: var(--paper); }
.tl-more summary { cursor: pointer; padding: 12px 0; font-size: .92rem; color: var(--ink-2); }
.tl-more summary span { color: var(--ink); font-weight: 500; }
.tl-more[open] { padding-bottom: 14px; }

/* segmented choice */
.tl-seg-field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.tl-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: var(--r-md); max-width: 100%; }
.tl-seg label { position: relative; flex: 1 1 auto; }
.tl-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tl-seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.tl-seg input:checked + span { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 21, 15, .14), 0 0 0 1px var(--ink); }
.tl-seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.tl-choice { display: grid; gap: 8px; }
@media (min-width: 720px) { .tl-choice { grid-template-columns: repeat(3, 1fr); } }
.tl-choice label { position: relative; display: block; cursor: pointer; }
.tl-choice input { position: absolute; opacity: 0; }
.tl-choice span { display: grid; gap: 3px; height: 100%; padding: 13px 14px 13px 40px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s; position: relative; }
.tl-choice span::before { content: ''; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--rule-2); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tl-choice input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tl-choice input:checked + span::before { border-color: var(--red); box-shadow: inset 0 0 0 4px #fff; background: var(--red); }
.tl-choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.tl-choice b { font-weight: 600; font-size: .96rem; }
.tl-choice small { font-size: .84rem; color: var(--ink-3); line-height: 1.4; }
.tl-honest { margin: 0; padding: 12px 14px; background: var(--paper); border-left: 2px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.tl-warn { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--red-wash); color: var(--red-ink); }

/* ---------- drop zone ---------- */
.tl-drop { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; min-height: 184px; padding: 24px 16px;
  border: 1.5px dashed var(--rule-2); border-radius: var(--r-md); background: linear-gradient(180deg, #fffdf8, var(--paper)); cursor: pointer;
  transition: border-color .18s, background-color .18s, transform .18s cubic-bezier(.3, .7, .3, 1), box-shadow .18s; }
@media (min-width: 640px) { .tl-drop { min-height: 240px; } }
.tl-drop:hover, .tl-drop:focus-visible { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(194, 54, 27, .12); }
.tl-drop.is-over { border-color: var(--red); border-style: solid; background: #fdf3ee; transform: scale(1.01); }
.tl-drop-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); margin-bottom: 6px; transition: transform .25s cubic-bezier(.3, .7, .3, 1), background .18s; }
.tl-drop:hover .tl-drop-ico, .tl-drop.is-over .tl-drop-ico { transform: translate3d(0, -3px, 0); background: var(--red); }
.tl-ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tl-drop-t { font-family: var(--serif); font-size: clamp(1.55rem, 4.5vw, 2rem); line-height: 1.05; letter-spacing: -0.01em; }
.tl-drop-s { font-size: .98rem; color: var(--ink-2); }
.tl-drop-link { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.tl-drop-hint { font: 500 .7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 6px; }
.tl-drop.is-compact { min-height: 0; padding: 14px 16px; grid-auto-flow: column; justify-content: center; gap: 12px; }
.tl-drop.is-compact .tl-drop-ico { width: 38px; height: 38px; margin: 0; }
.tl-drop.is-compact .tl-ico { width: 20px; height: 20px; }
.tl-drop.is-compact .tl-drop-t { font-size: 1.2rem; }
.tl-drop.is-compact .tl-drop-hint { display: none; }
@media (max-width: 480px) { .tl-drop.is-compact .tl-drop-s { display: none; } }

/* ---------- file lists ---------- */
.tl-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-files:empty { display: none; }
.tl-file, .tl-filecard { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm); min-width: 0;
  animation: tl-rise .32s cubic-bezier(.2, .7, .2, 1) both; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.tl-file[draggable="true"] { cursor: grab; }
.tl-file.is-drag { opacity: .45; }
.tl-file.is-target { border-color: var(--red); box-shadow: 0 -2px 0 var(--red); }
.tl-grip { color: var(--rule-2); letter-spacing: -2px; font-size: .9rem; flex: none; user-select: none; }
.tl-file-ico { flex: none; display: grid; place-items: center; width: 40px; height: 48px; border: 1px solid var(--ink); border-radius: 3px 10px 3px 3px; font: 600 .62rem/1 var(--mono); color: var(--red); background: var(--sheet); }
.tl-thumb { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper-2); }
.tl-file-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tl-file-name { font-weight: 500; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-file-meta { font-size: .82rem; color: var(--ink-3); overflow-wrap: anywhere; }
.tl-file-meta b { color: var(--ink); font-weight: 600; }
.tl-pct { font: 600 .78rem var(--mono); color: var(--ok); }
.tl-pct.up { color: var(--red-ink); }
.tl-file-acts { display: flex; gap: 4px; flex: none; }
.tl-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--sheet); color: var(--ink); font: 500 1rem/1 var(--sans); cursor: pointer; transition: background .12s, border-color .12s; }
.tl-icon-btn:hover:not([disabled]) { border-color: var(--ink); background: var(--paper); }
.tl-icon-btn[disabled] { opacity: .3; cursor: default; }
.tl-icon-btn[data-rm]:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 420px) { .tl-grip { display: none; } .tl-icon-btn { width: 32px; height: 32px; } .tl-file { gap: 9px; padding: 9px; } }
.tl-filecard { animation: none; }
.tl-panel { display: grid; gap: 16px; }
.tl-panel[hidden] { display: none; }

/* ---------- actions & results ---------- */
.tl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tl-actions-col { display: grid; gap: 8px; }
.tl-actions-col .btn { width: 100%; }
.tl-go { min-height: 54px; padding: 0 28px; font-size: 1.04rem; border-radius: var(--r-sm); }
@media (max-width: 520px) { .tl-actions > .tl-go { width: 100%; } .tl-actions > .btn-ghost { flex: 1; } }
.btn.is-busy { cursor: progress; }
.tl-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; margin-right: 8px; animation: tl-spin .7s linear infinite; }
@keyframes tl-spin { to { transform: rotate(360deg); } }
.tl-err { margin: 0; padding: 11px 14px; border-radius: var(--r-sm); background: var(--red-wash); color: var(--red-ink); font-size: .93rem; }
.tl-err[hidden] { display: none; }
.tl-result { display: grid; gap: 16px; padding: 18px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--rule); outline: none; }
.tl-result[hidden] { display: none; }
.tl-in { animation: tl-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tl-rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.tl-done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tl-done > div { flex: 1; min-width: 180px; }
.tl-done-t { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 4.4vw, 2.1rem); line-height: 1.05; letter-spacing: -0.01em; }
.tl-done-s { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.tl-check, .tl-info { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ok); position: relative; animation: tl-pop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.tl-check::after { content: ''; position: absolute; left: 16px; top: 11px; width: 11px; height: 19px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tl-info { background: var(--ink-2); color: #fff; display: grid; place-items: center; font: italic 1.5rem var(--serif); }
@keyframes tl-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.tl-compare { display: grid; gap: 6px; }
.tl-compare span { display: block; height: 26px; border-radius: 4px; transform-origin: left; transform: scaleX(var(--w)); position: relative; animation: tl-grow .8s cubic-bezier(.2, .7, .2, 1) both; }
.tl-compare-a { background: var(--rule-2); } .tl-compare-b { background: var(--red); animation-delay: .15s !important; }
.tl-compare i { position: absolute; left: 10px; top: 5px; font: 500 .7rem var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: #fff; white-space: nowrap; }
@keyframes tl-grow { from { transform: scaleX(0); } }
.tl-sum .tl-done { justify-content: space-between; }
.tl-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate3d(-50%, 20px, 0); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r-pill); font-size: .92rem; box-shadow: 0 18px 40px -18px rgba(23, 21, 15, .7); transition: opacity .2s, transform .25s cubic-bezier(.2, .7, .2, 1); max-width: calc(100% - 32px); text-align: center; }
.tl-toast.on { opacity: 1; transform: translate3d(-50%, 0, 0); }
.tl-toast::before { content: '✓ '; color: #9fd3a8; }

/* ---------- word counter ---------- */
.tl-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
@media (min-width: 640px) { .tl-stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .tl-stats { grid-template-columns: 1.3fr 1.3fr repeat(5, 1fr); } }
.tl-stat { background: #fff; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.tl-stat b { font: 400 1.5rem/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-stat-big b { font-size: 2.2rem; color: var(--red); }
.tl-stat span { font: 500 .66rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.tl-tick { animation: tl-tick .25s ease-out; display: inline-block; }
@keyframes tl-tick { from { transform: translate3d(0, -3px, 0); opacity: .5; } }
.tl-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .tl-limits { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }
.tl-limit-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 6px; }
.tl-limit-name { font-weight: 500; }
.tl-limit-val { color: var(--ink-3); font: 400 .8rem var(--mono); }
.tl-meter { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.tl-meter span { display: block; height: 100%; background: var(--ok); transform-origin: left; transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .7, .2, 1), background .2s; }
.tl-limit[data-state="near"] .tl-meter span { background: #c98a12; }
.tl-limit[data-state="over"] .tl-meter span, .tl-limit[data-state="under"] .tl-meter span { background: var(--red); }
.tl-limit[data-state="over"] .tl-limit-val { color: var(--red-ink); font-weight: 500; }

/* ---------- QR ---------- */
.tl-two { display: grid; gap: 22px; }
@media (min-width: 820px) { .tl-two { grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; } .tl-two > div:first-child { display: grid; gap: 16px; } }
.tl-two > div:first-child { display: grid; gap: 16px; min-width: 0; }
.tl-qr-side { display: grid; gap: 12px; justify-items: stretch; min-width: 0; }
.tl-qr-box { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px; display: grid; place-items: center; }
.tl-qr-box canvas { width: 100%; max-width: 280px; height: auto; aspect-ratio: 1; image-rendering: pixelated; border-radius: 4px; }
.tl-colours { gap: 14px; }
@media (max-width: 819px) {
  .tl-qr-side { order: -1; grid-template-columns: 150px 1fr; align-items: center; gap: 10px 14px; }
  .tl-qr-box { padding: 8px; grid-row: span 2; }
  .tl-qr-side .tl-hint { grid-column: 2; margin: 0; text-align: left; }
  .tl-qr-side .tl-actions-col { grid-column: 2; }
  .tl-qr-side .tl-actions-col .btn { min-height: 46px; padding: 0 12px; font-size: .95rem; }
}
.tl-colours .tl-color { height: 46px; }

/* ---------- salary ---------- */
.tl-grid-sal { display: grid; gap: 14px; }
@media (min-width: 640px) { .tl-grid-sal { grid-template-columns: 1.2fr 1fr .8fr; } }
.tl-sal { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ink); }
.tl-sal-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--rule); min-width: 0; }
.tl-sal-per { font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); flex: none; }
.tl-sal-val { font: 400 clamp(1.5rem, 5vw, 2.1rem)/1 var(--serif); overflow-wrap: anywhere; text-align: right; min-width: 0; }
.tl-sal-row.is-from .tl-sal-val { color: var(--red); }
.tl-sal-row.is-from .tl-sal-per::after { content: ' · you entered'; color: var(--red-ink); }

/* ---------- time zones ---------- */
.tl-tz-controls { display: grid; gap: 14px; }
@media (min-width: 760px) { .tl-tz-controls { grid-template-columns: 1.4fr .8fr 1fr; align-items: end; } }
.tl-tz-controls .tl-inline select { flex: 1; }
.tl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border: 1px solid var(--rule-2); border-radius: var(--r-pill); background: #fff; font-size: .92rem; animation: tl-rise .3s both; }
.tl-chip small { color: var(--ink-3); font: 400 .74rem var(--mono); margin-left: 2px; }
.tl-chip.is-main { border-color: var(--ink); }
.tl-chip-tag { font: 500 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red); padding: 0 6px; }
.tl-chip-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-3); font-size: 1rem; }
.tl-chip-btn:hover { background: var(--paper-2); color: var(--red); }
.tl-tz-best { padding: 16px 18px; border-radius: var(--r-md); background: var(--ink); color: var(--paper); display: grid; gap: 4px; }
.tl-tz-best .kicker { color: #b8b09f; margin: 0; }
.tl-best-t { margin: 0; font: 400 clamp(1.7rem, 5vw, 2.3rem)/1.05 var(--serif); }
.tl-best-t span { font: 400 .95rem var(--sans); color: #d9d2c3; }
.tl-best-s { margin: 0; font-size: .9rem; color: #d9d2c3; overflow-wrap: anywhere; }
.tl-tz-scroll { overflow-x: auto; max-height: 470px; overflow-y: auto; border: 1px solid var(--rule); border-radius: var(--r-sm); -webkit-overflow-scrolling: touch; }
.tl-tz { width: 100%; border-collapse: collapse; font: 400 .88rem/1 var(--mono); }
.tl-tz th { position: sticky; top: 0; z-index: 1; background: var(--sheet); font: 600 .8rem var(--sans); text-align: left; padding: 10px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tl-tz td { padding: 8px 10px; border-bottom: 1px solid rgba(216, 208, 191, .6); white-space: nowrap; }
.tl-tz td small { font-size: .66rem; color: var(--ink-3); }
.tl-tz .c-work { background: #e3eedf; color: #1f3d27; }
.tl-tz .c-edge { background: #f7ecd2; color: #6b4c0c; }
.tl-tz .c-night { background: #fff; color: var(--ink-3); }
.tl-tz tr.is-all td { background: var(--ok); color: #fff; font-weight: 500; }
.tl-tz tr.is-all td small { color: #d6eadb; }
.tl-legend { margin: -6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-3); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; vertical-align: -1px; border: 1px solid var(--rule); }
.lg-work { background: #e3eedf; } .lg-edge { background: #f7ecd2; } .lg-night { background: #fff; }

/* ---------- email signature ---------- */
.tl-two-sig { align-items: start; }
.tl-sig-side { display: grid; gap: 12px; min-width: 0; }
.tl-sig-side .tl-label { margin: 0; }
.tl-mail { border: 1px solid var(--rule-2); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.tl-mail-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--rule); background: #faf8f3; }
.tl-mail-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.tl-mail-body { padding: 18px; overflow-x: auto; color: #333; font: 13px/1.5 Arial, sans-serif; }
.tl-mail-line { margin: 0 0 12px; }
.tl-swatches { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tl-sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--rule-2); cursor: pointer; padding: 0; }
.tl-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- subject line ---------- */
.tl-sl { display: grid; gap: 18px; }
@media (min-width: 760px) { .tl-sl { grid-template-columns: 200px 1fr; gap: 28px; align-items: start; } }
.tl-sl-score { display: grid; justify-items: center; text-align: center; gap: 4px; }
.tl-ring { --p: 0; --c: var(--ok); width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--paper-2) 0); transition: background .4s; }
.tl-ring::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--sheet); }
.tl-ring > * { position: relative; }
.tl-ring b { font: 400 3.2rem/1 var(--serif); }
.tl-ring span { font: 500 .7rem var(--mono); color: var(--ink-3); }
.tl-ring[data-grade="good"] { --c: #6f8f3a; } .tl-ring[data-grade="mid"] { --c: #c98a12; } .tl-ring[data-grade="low"] { --c: var(--red); }
.tl-sl-grade { margin: 6px 0 0; font: 400 1.5rem var(--serif); }
.tl-sl-score .muted { margin: 0; }
.tl-sl-main { display: grid; gap: 16px; min-width: 0; }
.tl-inbox { display: grid; gap: 6px; }
.tl-inbox .tl-label { margin: 0 0 2px; }
.tl-inbox-row { display: grid; grid-template-columns: 66px 34px 1fr; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; font-size: .92rem; min-width: 0; }
.tl-inbox-dev { font: 500 .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.tl-inbox-from { font-weight: 600; }
.tl-inbox-subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tl-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
.tl-ck { display: flex; gap: 12px; padding: 11px 14px; background: #fff; font-size: .92rem; }
.tl-ck > span:last-child { display: grid; gap: 2px; }
.tl-ck b { font-weight: 600; }
.tl-ck > span:last-child > span { color: var(--ink-2); font-size: .88rem; }
.tl-ck-i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--sans); color: #fff; background: var(--ok); margin-top: 1px; }
.tl-ck-warn .tl-ck-i { background: #c98a12; } .tl-ck-bad .tl-ck-i { background: var(--red); }

/* ---------- typing ---------- */
.tl-ty-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tl-ty-live { display: flex; gap: 18px; font: 500 .78rem var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.tl-ty-live b { font: 400 1.7rem/1 var(--serif); color: var(--ink); letter-spacing: 0; text-transform: none; }
.tl-ty-text { font: 400 clamp(1.15rem, 3.4vw, 1.45rem)/1.65 var(--mono); letter-spacing: -.01em; color: var(--ink-3); background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 16px 18px; box-sizing: border-box; max-height: calc(1.65em * 4 + 32px); overflow: hidden; cursor: text; overflow-wrap: break-word; }
.tl-ty-text span.ok { color: var(--ink); }
.tl-ty-text span.bad { color: var(--red); background: var(--red-wash); border-radius: 2px; }
.tl-ty-text span.cur { box-shadow: inset 0 -2px 0 var(--red); color: var(--ink-2); }
.tl-ty-in { min-height: 90px; font-family: var(--mono); }
.tl-ty-res { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.tl-ty-big { display: grid; }
.tl-ty-big b { font: 400 clamp(4rem, 14vw, 5.6rem)/.9 var(--serif); color: var(--red); }
.tl-ty-big span { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.tl-ty-facts { flex: 1; min-width: 220px; }
.tl-ty-facts .small { margin: 8px 0 0; }

/* ---------- sections below the tool ---------- */
.tl-sec .section-head { margin-bottom: 28px; }
.tl-all { margin: 22px 0 0; }
.tl-xsell { padding: 0 0 72px; }
.tl-xsell-box { display: grid; gap: 18px; padding: 26px; border: 1px solid var(--ink); border-radius: var(--r-md); background: var(--sheet); position: relative; overflow: hidden; }
.tl-xsell-box::after { content: ''; position: absolute; right: 22px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
@media (min-width: 820px) { .tl-xsell-box { grid-template-columns: 1fr auto; align-items: end; padding: 34px 38px; } }
.tl-xsell-box .kicker { margin: 0 0 10px; }
.tl-xsell-h { margin: 0; font: 400 clamp(1.7rem, 4.4vw, 2.4rem)/1.05 var(--serif); letter-spacing: -0.01em; }
.tl-xsell-h em { color: var(--red); }
.tl-xsell-box p:last-child { margin: 10px 0 0; color: var(--ink-2); max-width: 36em; }

/* ---------- hub ---------- */
.th-hero { padding-bottom: 8px; }
.th-search { position: relative; margin: 22px 0 0; max-width: 560px; }
.th-search input { width: 100%; min-height: 56px; padding: 0 92px 0 48px; border: 1px solid var(--ink); border-radius: var(--r-pill); background: #fff; font: 400 1.05rem var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; transition: box-shadow .15s; }
.th-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(194, 54, 27, .16); }
.th-search-ico { position: absolute; left: 17px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.th-search-n { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.th-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.th-chip { padding: 8px 13px; border: 1px solid var(--rule-2); border-radius: var(--r-pill); font-size: .88rem; text-decoration: none; background: rgba(255, 253, 248, .7); transition: border-color .15s, color .15s; }
.th-chip:hover { border-color: var(--ink); color: var(--red); }
.th-main { padding: 22px 0 64px; }
.th-cat { padding: 0; margin: 0 0 40px; scroll-margin-top: 84px; }
.th-cat[hidden] { display: none; }
.th-cat-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 16px; }
.th-cat-h { margin: 0; font: 400 clamp(1.6rem, 4vw, 2.1rem)/1 var(--serif); letter-spacing: -0.01em; }
.th-count { font: 500 .72rem var(--mono); color: var(--ink-3); }
.th-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .th-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .th-grid { grid-template-columns: repeat(3, 1fr); } }
.th-card[hidden] { display: none; }
.th-link { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--sheet); text-decoration: none; color: var(--ink);
  transition: border-color .18s, transform .22s cubic-bezier(.3, .7, .3, 1), box-shadow .22s; }
.th-link:hover, .th-link:focus-visible { border-color: var(--ink); color: var(--ink); transform: translate3d(0, -2px, 0); box-shadow: 0 18px 34px -26px rgba(23, 21, 15, .55); }
.th-ico-wrap { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--paper); border: 1px solid var(--rule); transition: background .18s, border-color .18s; }
.th-ico { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.th-ico .a, .tl-ico .a { stroke: var(--red); }
.tl-drop-ico .tl-ico .a { stroke: #f2b8a6; }
.th-link:hover .th-ico-wrap { background: var(--ink); border-color: var(--ink); }
.th-link:hover .th-ico { stroke: var(--paper); }
.th-txt { display: grid; gap: 4px; flex: 1; min-width: 0; }
.th-free { font: 500 .62rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ok, #2f5d3a); }
.th-ico-wrap .th-ico { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.th-link:hover .th-ico { transform: scale(1.08) rotate(-4deg); }
.th-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.th-short { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.th-go { color: var(--ink-3); transition: transform .2s, color .2s; margin-top: 2px; }
.th-link:hover .th-go { color: var(--red); transform: translate3d(3px, 0, 0); }
.th-grid-sm .th-link { padding: 15px; }
.th-empty { padding: 28px; text-align: center; border: 1px dashed var(--rule-2); border-radius: var(--r-md); color: var(--ink-2); }
.th-empty[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .tl-in, .tl-file, .tl-chip, .tl-check, .tl-info, .tl-compare span, .tl-tick { animation: none !important; }
  .tl-drop.is-over, .th-link:hover, .th-link:hover .th-ico { transform: none; }
}
