/* Free tracked links: the choice and the email/code steps on the link and QR
 * tools (assets/link-track.js), and the private stats page (link-stats.html). */
[data-link-track][hidden], [data-plain-result][hidden], .lt-trk-panel[hidden], .lt-trk-step[hidden] { display: none !important; }
[data-link-track] { margin: 16px 0 6px; }
.lt-trk-choice { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.lt-trk-legend { margin: 0 0 4px; padding: 0; color: #475569; font-size: 12.5px; font-weight: 750; }
.lt-trk-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; cursor: pointer; }
.lt-trk-option:has(input:checked) { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 1px #2563eb inset; }
.lt-trk-option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #2563eb; }
.lt-trk-option strong { display: block; color: var(--ink, #0f172a); font-size: 14.5px; }
.lt-trk-option small { display: block; margin-top: 3px; color: #475569; font-size: 13px; line-height: 1.45; }
.lt-trk-panel { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border: 1px solid #dbe4f0; border-radius: 14px; background: #f8fafc; }
.lt-trk-step { display: grid; gap: 12px; }
.lt-trk-step input[type="email"], .lt-trk-step input[type="text"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; }
.lt-trk-step input[inputmode="numeric"] { max-width: 180px; font-size: 20px; letter-spacing: .2em; }
.lt-trk-tips { display: flex; gap: 8px; align-items: center; color: #334155; font-size: 13.5px; }
.lt-trk-tips input { width: 16px; height: 16px; accent-color: #2563eb; }
.lt-trk-fine { margin: 0; color: #64748b; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.lt-trk-lead { margin: 0; color: #334155; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.lt-trk-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: 13px; font-weight: 650; line-height: 1.45; }
.lt-trk-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.lt-trk-textbtn { padding: 0; border: 0; background: none; color: #1d4ed8; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.lt-trk-textbtn[disabled] { color: #94a3b8; cursor: not-allowed; }
.lt-trk-qr { width: min(240px, 100%); line-height: 0; }
.lt-trk-qr svg { width: 100%; height: auto; }
.lt-trk-turnstile:empty { display: none; }

/* Stats page */
.ls-wrap { max-width: 880px; margin: 0 auto; }
.ls-card { padding: clamp(18px, 3vw, 28px); border: 1px solid #dbe4f0; border-radius: 18px; background: #fff; box-shadow: 0 12px 36px rgba(15, 23, 42, .08); }
.ls-card + .ls-card { margin-top: 18px; }
.ls-card h2 { margin: 0 0 12px; color: var(--ink, #0f172a); font-size: 19px; letter-spacing: -.02em; }
.ls-top { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; align-items: start; }
.ls-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.ls-number { padding: 12px; border-radius: 12px; background: #f1f5f9; }
.ls-number b { display: block; color: var(--ink, #0f172a); font-size: 26px; font-variant-numeric: tabular-nums; }
.ls-number span { color: #475569; font-size: 12.5px; font-weight: 650; }
.ls-days { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 120px; padding-top: 6px; }
.ls-day { position: relative; min-height: 2px; border-radius: 3px 3px 0 0; background: #2563eb; }
.ls-day.is-zero { background: #e2e8f0; }
.ls-axis { display: flex; justify-content: space-between; margin-top: 6px; color: #64748b; font-size: 11.5px; }
.ls-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ls-split h3 { margin: 0 0 8px; color: #334155; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.ls-split ul, .ls-recent { margin: 0; padding: 0; list-style: none; }
.ls-split li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 14px; }
.ls-split li b { font-variant-numeric: tabular-nums; }
.ls-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ls-table th, .ls-table td { padding: 7px 8px; border-bottom: 1px solid #f1f5f9; text-align: left; white-space: nowrap; }
.ls-table th { color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ls-scroll { overflow-x: auto; }
.ls-empty { margin: 0; color: #64748b; font-size: 14px; }
.ls-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ls-cta p { margin: 0; color: #334155; font-size: 15px; }
@media (max-width: 720px) {
  .ls-top { grid-template-columns: minmax(0, 1fr); }
  .ls-split { grid-template-columns: minmax(0, 1fr); }
  .ls-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ls-number b { font-size: 21px; }
}
.lt-trk-choice .lt-trk-panel { margin-top: 0; }
.lt-trk-step > .lt-trk-textbtn { justify-self: start; }
.lt-trk-check { color: #475569; }
