/* ==========================================================================
   Rank Kiwi free tools (/tools/*). Loaded after styles.min.css + premium.css.
   Owns every .tl-* rule (moved here from premium.css).
   ========================================================================== */

.tl-page {
  --tl-green: #01370b;
  --tl-green-2: #0a4a17;
  --tl-lime: #cbf990;
  --tl-lime-soft: #f2faea;
  --tl-leaf: #3c8a1e;
  --tl-muted: #5b6b5e;
  --tl-line: var(--rk-line, #e3e8e0);
  --tl-ink: var(--rk-ink, #0b1a0e);
  --tl-radius: 16px;
  --tl-shadow: 0 1px 2px rgba(11, 26, 14, 0.04), 0 10px 30px -14px rgba(11, 26, 14, 0.16);
  --tl-shadow-form: 0 1px 2px rgba(11, 26, 14, 0.05), 0 28px 60px -28px rgba(1, 55, 11, 0.42);
  padding-bottom: 56px;
  overflow-x: clip;
}
.tl-ico { width: 18px; height: 18px; flex: none; }
.tl-page [hidden] { display: none !important; }

/* Links inside li/p get the site's underline style; tool UI opts out. */
.tl-page :is(li, p, details, figcaption, div) a:is(.tl-btn, .tl-tile-dl, .tl-open, .tl-related-card, .tl-hub-card) {
  text-decoration: none !important; margin: 0 !important; font-weight: 650 !important; border-radius: inherit;
}
.tl-page :is(li, p, div, figcaption) a.tl-btn { padding: 0 16px !important; border-radius: 10px !important; }
.tl-page a.tl-btn { color: var(--tl-green); }
.tl-page a.tl-btn-primary, .tl-page button.tl-btn-primary { color: #fff !important; }

/* ---------- Hero + form ---------- */
.tl-hero { position: relative; isolation: isolate; padding: clamp(18px, 3.2vw, 40px) 0 12px; text-align: center; }
.tl-hero::before {
  content: ""; position: absolute; inset: -140px -30vw auto; height: 460px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 38% 50% at 50% 0%, rgba(203, 249, 144, 0.38), transparent 70%);
}
.tl-hero-inner { max-width: 820px; }
.tl-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; font-size: 12.5px; color: var(--tl-muted); }
.tl-crumbs a { color: var(--rk-ink-soft, #3d4f40); text-decoration: none; }
.tl-crumbs a:hover { color: var(--tl-green); text-decoration: underline; }
.tl-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tl-leaf); }
.tl-eyebrow-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #fff; border: 1px solid #e4efda; }
.tl-eyebrow-icon img { width: 14px; height: auto; }
.tl-hero h1 { margin: 0 auto 8px; max-width: 720px; font-size: clamp(27px, 3.1vw, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 750; color: var(--tl-ink); }
.tl-lead { margin: 0 auto 18px; max-width: 560px; font-size: 15.5px; line-height: 1.5; color: var(--rk-ink-soft, #3d4f40); }

.tl-form {
  position: relative; display: flex; flex-wrap: wrap; gap: 6px; max-width: 700px; margin: 0 auto; padding: 6px;
  border: 1px solid #d9e6cf; border-radius: 16px; background: #fff; box-shadow: var(--tl-shadow-form);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl-form:focus-within { border-color: var(--tl-green); box-shadow: var(--tl-shadow-form), 0 0 0 4px rgba(203, 249, 144, 0.55); }
.tl-field { position: relative; flex: 1 1 320px; display: flex; align-items: center; min-width: 0; }
.tl-field-icon { position: absolute; left: 14px; color: #8aa08c; display: flex; pointer-events: none; }
.tl-field input {
  flex: 1; min-width: 0; height: 52px; padding: 0 8px 0 40px; border: 0; border-radius: 12px; background: transparent;
  font: inherit; font-size: 16px; color: var(--tl-ink); text-overflow: ellipsis;
}
.tl-field input::placeholder { color: #8b998d; }
.tl-field input:focus { outline: none; }
.tl-field input.is-shake { animation: tl-shake 0.18s ease-in-out 2; } /* shake twice */
@keyframes tl-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.tl-icon-btn { display: grid; place-items: center; width: 40px; height: 44px; border: 0; background: transparent; color: #7c8b7e; cursor: pointer; border-radius: 10px; }
.tl-icon-btn:hover { color: var(--tl-green); background: var(--tl-lime-soft); }
.tl-paste {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-right: 4px; padding: 0 12px; flex: none;
  border: 1px solid #dfe8d8; border-radius: 10px; background: #f6faf2; color: var(--tl-green); font-family: inherit; font-weight: 650; font-size: 13.5px; line-height: 1; cursor: pointer;
}
.tl-paste:hover { background: #ecf7df; border-color: #c9e9a8; }
.tl-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; flex: 0 0 auto;
  border: 0; border-radius: 11px; background: var(--tl-green); color: #fff; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: -0.01em; cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 6px 16px -8px rgba(1, 55, 11, 0.7);
  transition: background 0.2s, transform 0.15s;
}
.tl-submit span { color: #fff; }
.tl-submit:hover { background: var(--tl-green-2); }
.tl-submit:active { transform: translateY(1px); }
.tl-submit:focus-visible, .tl-btn:focus-visible, .tl-paste:focus-visible, .tl-icon-btn:focus-visible { outline: 3px solid var(--tl-lime); outline-offset: 2px; }
.tl-submit:disabled { opacity: 0.85; cursor: progress; }
.tl-submit.is-loading span::before {
  content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 9px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: tl-spin 0.8s linear infinite;
}

.tl-intents { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 4px; }
.tl-intents label { position: relative; cursor: pointer; }
.tl-intents input { position: absolute; opacity: 0; pointer-events: none; }
.tl-intents span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #e1eadb; background: #fbfdf9; font-size: 13.5px; font-weight: 650; color: var(--rk-ink-soft, #3d4f40); transition: all 0.15s; }
.tl-intents input:checked + span { background: var(--tl-green); border-color: var(--tl-green); color: #fff; }
.tl-intents input:focus-visible + span { outline: 3px solid var(--tl-lime); outline-offset: 2px; }

.tl-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; margin-top: 10px; }
.tl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--tl-muted); }
.tl-chips li { display: inline-flex; align-items: center; gap: 5px; }
.tl-chips .tl-ico { width: 15px; height: 15px; color: var(--tl-leaf); }
.tl-hint { margin: 0; font-size: 13px; color: var(--tl-muted); }
.tl-link { padding: 4px 2px; border: 0; background: none; color: var(--tl-green); font-family: inherit; font-weight: 650; font-size: 13px; line-height: 1.2; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(60, 138, 30, 0.45); cursor: pointer; }
.tl-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: var(--tl-muted); }
.tl-trust .tl-ico { width: 14px; height: 14px; }

/* ---------- Output cards ---------- */
.tl-output { max-width: 820px; margin: 18px auto 0; text-align: left; scroll-margin-top: 80px; }
.tl-card { border: 1px solid var(--tl-line); border-radius: var(--tl-radius); background: #fff; box-shadow: var(--tl-shadow); padding: clamp(14px, 2.4vw, 22px); animation: tl-rise 0.35s var(--rk-ease, ease) both; }
@keyframes tl-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes tl-spin { to { transform: rotate(360deg); } }

.tl-loading-head { display: flex; align-items: center; gap: 14px; }
.tl-loading-head div { display: flex; flex-direction: column; gap: 2px; }
.tl-loading-head strong { font-size: 16px; }
.tl-elapsed { font-size: 12.5px; color: var(--tl-muted); font-variant-numeric: tabular-nums; }
.tl-spinner { width: 28px; height: 28px; flex: none; border: 3px solid #e4f0da; border-top-color: var(--tl-green); border-radius: 50%; animation: tl-spin 0.8s linear infinite; }
.tl-bar { position: relative; height: 4px; margin: 16px 0 12px; border-radius: 4px; background: #eef4e8; overflow: hidden; }
.tl-bar span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--tl-lime), var(--tl-leaf)); animation: tl-indet 1.3s ease-in-out infinite; }
@keyframes tl-indet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.tl-progress { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: #98a59a; }
.tl-progress li { display: inline-flex; align-items: center; gap: 7px; }
.tl-progress li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #dbe5d5; }
.tl-progress li.is-on { color: var(--tl-ink); font-weight: 600; }
.tl-progress li.is-on::before { background: var(--tl-lime); box-shadow: 0 0 0 3px rgba(60, 138, 30, 0.25); }
.tl-progress li.is-done { color: var(--tl-leaf); }
.tl-progress li.is-done::before { background: var(--tl-leaf); }

.tl-error { border-color: #f2d4cf; background: #fffaf9; }
.tl-error-head { display: flex; gap: 12px; align-items: flex-start; }
.tl-error-head strong { display: block; font-size: 16px; line-height: 1.35; }
.tl-error-head p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--rk-ink-soft, #3d4f40); }
.tl-error-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #c2410c; color: #fff; font-weight: 800; }
.tl-fallback { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--tl-lime-soft); border: 1px solid #d2f2b2; }
.tl-fallback p { margin: 4px 0 0; font-size: 13.5px; color: var(--rk-ink-soft, #3d4f40); }

.tl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tl-actions-stack { margin-top: 0; }
.tl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 1px solid #cdd6c8; border-radius: 10px; background: #fff; color: var(--tl-green); font-family: inherit; font-weight: 650; font-size: 14px; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.tl-btn:hover { background: var(--tl-lime-soft); border-color: #b7e98a; }
.tl-btn:active { transform: translateY(1px); }
.tl-btn:disabled { opacity: 0.55; cursor: default; }
.tl-btn-primary { background: var(--tl-green); border-color: var(--tl-green); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
.tl-btn-primary:hover { background: var(--tl-green-2); border-color: var(--tl-green-2); }
.tl-btn.is-done { background: #e4f9c5; border-color: #b7e98a; color: var(--tl-green) !important; }
.tl-btn.is-ready { background: var(--tl-lime); border-color: #a9e26a; }
.tl-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.tl-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--tl-muted); }
.tl-tip, .tl-info, .tl-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.tl-tip { background: var(--tl-lime-soft); color: #2a3a2d; border: 1px solid #ddf2c6; }
.tl-info { margin: 0 0 12px; background: #f4f7f2; color: var(--rk-ink-soft, #3d4f40); }
.tl-warn { margin: 0 0 12px; background: #fff7e6; color: #7a4b00; border: 1px solid #fde3b0; }
.tl-empty { padding: 12px 0; color: var(--tl-muted); font-size: 14px; }
.tl-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #f1f4ef; color: var(--tl-muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tl-pill.is-ok { background: #e4f9c5; color: #2f6d14; }
.tl-subhead { margin: 4px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tl-muted); }

/* ---------- Instagram post ---------- */
.tl-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tl-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--tl-lime), #8fdc5a); color: var(--tl-green); font-weight: 800; font-size: 17px; }
.tl-post-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tl-post-who strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-post-who span { font-size: 13px; color: var(--tl-muted); }
.tl-open { flex: none; font-size: 13px; font-weight: 650; color: var(--tl-green); padding: 10px 4px; }
.tl-post-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.tl-media { position: relative; width: 100%; max-height: min(62vh, 540px); border-radius: 14px; overflow: hidden; background: #0c1014; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
.tl-media img, .tl-media video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0c1014; }
.tl-post-side { min-width: 0; }
.tl-actions-stack .tl-btn { flex: 1 1 auto; }
.tl-actions-stack .tl-btn-primary { flex: 1 1 100%; min-height: 52px; font-size: 15.5px; }
.tl-caption { position: relative; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f8fbf6; border: 1px solid #edf2ea; }
.tl-caption p { margin: 0; font-size: 14px; line-height: 1.55; color: #2a3a2d; white-space: pre-line; overflow-wrap: anywhere; }
.tl-caption.is-clamped p { max-height: 7.8em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }

/* Carousel grid */
.tl-gridbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13.5px; }
.tl-selectall { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 650; cursor: pointer; }
.tl-selectall input, .tl-tile-check input { width: 20px; height: 20px; accent-color: var(--tl-green); cursor: pointer; }
.tl-gridbar-meta { color: var(--tl-muted); }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tl-tile { position: relative; border-radius: 12px; overflow: hidden; background: #0c1014; outline: 2px solid transparent; transition: outline-color 0.15s, opacity 0.15s; }
.tl-tile:has(input:checked) { outline-color: var(--tl-leaf); }
.tl-tile.is-off { opacity: 0.55; }
.tl-tile-media { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tl-tile-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tl-tile-check { position: absolute; top: 0; left: 0; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.tl-tile-check::before { content: ""; position: absolute; inset: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.tl-tile-check input { position: relative; }
.tl-tile-num { position: absolute; top: 10px; right: 10px; z-index: 2; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(11, 26, 14, 0.72); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tl-tile-badge { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: rgba(11, 26, 14, 0.72); color: #fff; font-size: 11.5px; font-weight: 700; }
.tl-tile-dl { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 10px !important; border-radius: 999px !important; background: #fff; color: var(--tl-green) !important; font-size: 12.5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.tl-tile-dl:hover { background: var(--tl-lime); }
.tl-tile-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.3); z-index: 3; }
.tl-tile-prog span { display: block; height: 100%; width: 0; background: var(--tl-lime); transition: width 0.2s; }
.tl-viewer { margin-top: 14px; padding: 12px; border-radius: 14px; background: #f4f7f2; }
.tl-viewer .tl-media { max-width: 420px; margin: 0 auto; }

/* Caption tool */
.tl-capstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.tl-capstats div { padding: 10px 12px; border-radius: 12px; background: #f6faf2; border: 1px solid #e8f1e1; }
.tl-capstats b { display: block; font-size: 20px; letter-spacing: -0.02em; color: var(--tl-ink); }
.tl-capstats span { font-size: 12px; color: var(--tl-muted); }
.tl-panel { margin-top: 12px; padding: 14px; border: 1px solid #edf2ea; border-radius: 14px; }
.tl-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tl-panel h3 { margin: 0; font-size: 15px; }
.tl-captext { margin: 0; font-size: 14.5px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; color: #1f2a21; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tl-tags li { padding: 5px 10px; border-radius: 999px; background: #eef8e2; color: #2f6d14; font-size: 13px; font-weight: 600; }
.tl-tags.is-mentions li { background: #f1f4ef; }
.tl-tags a { color: inherit !important; text-decoration: none !important; padding: 0 !important; margin: 0 !important; }

/* ---------- YouTube ---------- */
.tl-result-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.tl-thumb { width: 140px; height: auto; border-radius: 10px; flex: none; background: #eef3ea; }
.tl-yt-thumb { position: relative; flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0c1014; }
.tl-yt-thumb.is-vertical { width: 92px; aspect-ratio: 9 / 16; }
.tl-yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-yt-thumb em { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.78); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; }
.tl-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl-meta strong { font-size: 16.5px; line-height: 1.3; color: var(--tl-ink); overflow-wrap: anywhere; }
.tl-meta > span { font-size: 13px; color: var(--tl-muted); }
.tl-langline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tl-formats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-format { display: grid; grid-template-columns: minmax(150px, auto) 1fr auto; align-items: center; gap: 10px 14px; padding: 12px 14px; border: 1px solid #edf2ea; border-radius: 12px; }
.tl-format.is-rec { border-color: #c9e9a8; background: #fbfef7; }
.tl-format-main { display: flex; align-items: center; gap: 8px; }
.tl-format-main strong { font-size: 15.5px; font-variant-numeric: tabular-nums; }
.tl-format-meta { font-size: 12.5px; color: var(--tl-muted); }
.tl-format-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tl-format.is-locked { background: #fafbf9; }
.tl-format.is-locked strong { color: #6b7a6d; }
.tl-locked { font-size: 12.5px; color: #8a978c; }
.tl-more { margin-top: 14px; border-top: 1px solid #edf2ea; padding-top: 4px; }
.tl-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 650; font-size: 14px; color: var(--tl-green); }
.tl-more .tl-note { margin: 0 0 10px; }

.tl-thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tl-thumb-item { margin: 0; border: 1px solid #edf2ea; border-radius: 12px; overflow: hidden; background: #fbfdf9; }
.tl-thumb-item.is-main { grid-column: 1 / -1; }
.tl-thumb-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eef3ea; }
.tl-thumb-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 13px; color: var(--rk-ink-soft, #3d4f40); }
.tl-thumb-item.is-missing { display: none; }

/* ---------- Transcript ---------- */
.tl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.tl-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: #f1f5ee; }
.tl-seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--rk-ink-soft, #3d4f40); font-family: inherit; font-weight: 650; font-size: 13.5px; line-height: 1; cursor: pointer; }
.tl-seg button.is-on { background: #fff; color: var(--tl-green); box-shadow: 0 1px 3px rgba(11, 26, 14, 0.12); }
.tl-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tl-muted); }
.tl-lang select, .tl-find { min-height: 40px; padding: 0 10px; border: 1px solid #dfe8d8; border-radius: 9px; background: #fff; font: inherit; font-size: 14px; color: var(--tl-ink); max-width: 100%; }
.tl-find { flex: 1; min-width: 160px; }
.tl-transcript { max-height: 480px; overflow: auto; padding: 6px 4px; border-radius: 12px; background: #fbfdf9; border: 1px solid #eef2ec; overscroll-behavior: contain; }
.tl-line { display: flex; gap: 12px; margin: 0; padding: 7px 10px; border-radius: 8px; font-size: 15px; line-height: 1.55; color: #1f2a21; }
.tl-line:hover { background: var(--tl-lime-soft); }
.tl-ts { flex: none; min-width: 48px; font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; color: var(--tl-leaf); text-decoration: none; padding-top: 3px; }
a.tl-ts:hover { text-decoration: underline; }
.tl-plain { margin: 0; padding: 10px 12px; font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.tl-transcript mark { background: var(--tl-lime); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Content sections ---------- */
.tl-section { padding: clamp(32px, 4.5vw, 56px) 0 0; scroll-margin-top: 70px; }
.tl-section > h2, .tl-hub-h2 { margin: 0 0 16px; font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.025em; font-weight: 720; text-align: center; }
.tl-hub-h2 { display: flex; align-items: center; justify-content: center; gap: 10px; }
.tl-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1040px; counter-reset: none; }
.tl-steps li { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--tl-line); border-radius: 14px; background: #fff; box-shadow: var(--rk-shadow-card, var(--tl-shadow)); }
.tl-step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--tl-green); color: var(--tl-lime); font-weight: 800; font-size: 13px; }
.tl-steps h3, .tl-feature h3, .tl-guide-block h3 { margin: 2px 0 4px; font-size: 15px; letter-spacing: -0.01em; }
.tl-steps p, .tl-feature p, .tl-guide-block p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--rk-ink-soft, #3d4f40); }
.tl-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1100px; margin: 0 auto; }
.tl-feature { padding: 14px 16px; border-radius: 12px; background: linear-gradient(180deg, #fbfef7, #f4f9ef); border: 1px solid #e4efda; }
.tl-guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; max-width: 980px; margin: 0 auto; }
.tl-guide-block { padding: 14px 0; border-top: 1px solid var(--tl-line); }
.tl-promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(18px, 2.4vw, 28px); border-radius: 16px; background: radial-gradient(ellipse at top right, rgba(203, 249, 144, 0.18), transparent 60%), var(--tl-green); color: #fff; }
.tl-promo h2 { margin: 0 0 6px; color: #fff; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -0.03em; }
.tl-promo p { margin: 0; color: #c2d6c0; font-size: 14px; line-height: 1.6; max-width: 640px; }
.tl-promo p a { color: var(--tl-lime) !important; text-decoration-color: rgba(203, 249, 144, 0.5) !important; }
.tl-promo .tl-eyebrow { color: var(--tl-lime); }
.tl-promo .button { background: var(--tl-lime); border-color: var(--tl-lime); color: var(--tl-green); flex: none; }
.tl-promo .button .btn-microcopy { color: rgba(1, 55, 11, 0.7); }
.tl-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.tl-faq-item { border: 1px solid var(--tl-line); border-radius: 12px; background: #fff; padding: 0 16px; }
.tl-faq-item summary { cursor: pointer; min-height: 48px; padding: 12px 0; font-weight: 650; font-size: 14.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tl-faq-item summary::-webkit-details-marker { display: none; }
.tl-faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--tl-leaf); flex: none; }
.tl-faq-item[open] summary::after { content: "\2212"; }
.tl-faq-item p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--rk-ink-soft, #3d4f40); }
.tl-related, .tl-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; max-width: 1100px; margin: 0 auto; }
.tl-related-card, .tl-hub-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--tl-line); border-radius: 14px;
  background: #fff; text-decoration: none; color: var(--tl-ink); box-shadow: var(--rk-shadow-card, var(--tl-shadow));
  transition: transform 0.25s var(--rk-ease, ease), box-shadow 0.25s var(--rk-ease, ease), border-color 0.2s; text-align: left;
}
.tl-related-card:hover, .tl-hub-card:hover { transform: translateY(-3px); border-color: #c9e9a8; box-shadow: var(--rk-shadow-lift, var(--tl-shadow)); }
.tl-related-card span, .tl-hub-card span { font-size: 13px; line-height: 1.5; color: var(--rk-ink-soft, #3d4f40); }
.tl-related-icon, .tl-hub-icon { display: inline-grid !important; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tl-lime-soft); border: 1px solid #e4efda; }
.tl-hub-card { padding: 16px 18px; }
.tl-hub-card strong, .tl-related-card strong { font-size: 15px; letter-spacing: -0.01em; }
.tl-hub-card b { margin-top: auto; padding-top: 6px; color: var(--tl-green); font-size: 13.5px; }
.tl-all { text-align: center; margin: 18px 0 0; }

/* ---------- Mobile dock ---------- */
.tl-dock { display: none; }
@media (max-width: 720px) {
  .tl-dock:not([hidden]) {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 35%);
    animation: tl-rise 0.25s ease both;
  }
  .tl-dock .tl-submit { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tl-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-steps { grid-template-columns: 1fr; max-width: 620px; }
  .tl-promo { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .tl-hero { text-align: left; }
  .tl-crumbs, .tl-under, .tl-chips, .tl-trust { justify-content: flex-start; }
  .tl-lead { margin-left: 0; }
  .tl-form { padding: 6px; border-radius: 18px; }
  .tl-field { flex-basis: 100%; }
  .tl-paste span { display: none; }
  .tl-paste { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .tl-submit { width: 100%; min-height: 54px; }
  .tl-post-body { grid-template-columns: 1fr; gap: 14px; }
  .tl-media.is-big { max-height: 62vh; }
  .tl-format { grid-template-columns: 1fr; gap: 6px; }
  .tl-format-acts { justify-content: stretch; }
  .tl-format-acts .tl-btn { flex: 1; }
  .tl-capstats { grid-template-columns: repeat(2, 1fr); }
  .tl-guide { grid-template-columns: 1fr; }
  .tl-fallback { flex-direction: column; align-items: flex-start; }
  .tl-yt-thumb { width: 120px; }
  .tl-yt-thumb.is-vertical { width: 72px; }
  .tl-section > h2, .tl-hub-h2 { text-align: left; justify-content: flex-start; }
  .tl-all { text-align: left; }
}
@media (max-width: 520px) {
  .tl-feature-grid, .tl-thumb-grid { grid-template-columns: 1fr; }
  .tl-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-actions .tl-btn { flex: 1 1 calc(50% - 4px); }
  .tl-open { display: none; }
  .tl-result-head { align-items: flex-start; }
}
@media (min-width: 961px) { .tl-hub-grid { grid-template-columns: repeat(4, 1fr); } .tl-related { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .tl-card, .tl-dock:not([hidden]) { animation: none; }
  .tl-bar span { animation-duration: 3s; }
  .tl-related-card, .tl-hub-card, .tl-btn, .tl-submit { transition: none; }
  .tl-related-card:hover, .tl-hub-card:hover { transform: none; }
}
@media (max-width: 520px) { .tl-actions-stack .tl-btn-primary { flex-basis: 100%; } }
.tl-page .tl-btn span, .tl-page .tl-submit span { color: inherit; font-size: inherit; font-weight: inherit; margin: 0; }

/* ---------- Loading skeleton + result reveal ---------- */
.tl-skel { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; margin-top: 4px; }
.tl-skel-media { aspect-ratio: 4 / 5; border-radius: 12px; }
.tl-skel-lines { display: grid; gap: 10px; padding-top: 4px; }
.tl-skel-line { height: 12px; border-radius: 6px; }
.tl-skel-line:nth-child(1) { width: 55%; height: 16px; }
.tl-skel-line:nth-child(2) { width: 85%; }
.tl-skel-line:nth-child(3) { width: 70%; }
.tl-skel-btn { width: 160px; height: 40px; border-radius: 10px; margin-top: 6px; }
.tl-skel-media, .tl-skel-line, .tl-skel-btn {
  background: linear-gradient(90deg, #eef3ea 0%, #f7faf4 40%, #eef3ea 80%); background-size: 240% 100%; animation: tl-shimmer 1.3s ease-in-out infinite;
}
@keyframes tl-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tl-loading .tl-loading-head { margin-bottom: 14px; }
.tl-loading .tl-spinner { width: 20px; height: 20px; border-width: 2.5px; }
.tl-loading-head strong { font-size: 15px; }
.tl-result > * { animation: tl-rise 0.4s var(--rk-ease, ease) both; }
.tl-result > *:nth-child(2) { animation-delay: 0.05s; }
.tl-result > *:nth-child(3) { animation-delay: 0.1s; }
.tl-result > *:nth-child(4) { animation-delay: 0.15s; }
.tl-result > *:nth-child(n + 5) { animation-delay: 0.2s; }
.tl-grid .tl-tile { animation: tl-pop 0.35s var(--rk-ease, ease) both; }
.tl-grid .tl-tile:nth-child(2) { animation-delay: 0.04s; } .tl-grid .tl-tile:nth-child(3) { animation-delay: 0.08s; }
.tl-grid .tl-tile:nth-child(4) { animation-delay: 0.12s; } .tl-grid .tl-tile:nth-child(n + 5) { animation-delay: 0.16s; }
@keyframes tl-pop { from { opacity: 0; transform: scale(0.96); } }
@media (max-width: 520px) { .tl-skel { grid-template-columns: 1fr; } .tl-skel-media { aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) {
  .tl-result > *, .tl-grid .tl-tile { animation: none; }
  .tl-skel-media, .tl-skel-line, .tl-skel-btn { animation: none; }
}
/* Compact hub cards */
.tl-hub .tl-hub-card > span:not(.tl-hub-icon) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-hub .tl-section { padding-top: clamp(26px, 3.5vw, 40px); }
@media (min-width: 721px) and (max-width: 960px) { .tl-hub-grid, .tl-related { grid-template-columns: repeat(2, 1fr); } }
.tl-hub-card b span { display: inline !important; }


/* ---------- Round 4: premium paste box ---------- */
.tl-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 0 0 12px; }
.tl-topline .tl-eyebrow { margin: 0; }
.tl-back {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px solid #e1eadb; background: rgba(255, 255, 255, 0.8); color: var(--tl-green) !important; font-size: 13px; font-weight: 650;
  text-decoration: none !important; transition: background 0.2s, border-color 0.2s, transform 0.25s var(--rk-ease, ease);
}
.tl-back .tl-ico { width: 16px; height: 16px; transition: transform 0.25s var(--rk-ease, ease); }
.tl-back:hover { background: #fff; border-color: #c9e9a8; }
.tl-back:hover .tl-ico { transform: translateX(-2px); }

.tl-form { max-width: 720px; padding: 8px; border-radius: 20px; gap: 8px; border-color: #dde9d3;
  box-shadow: 0 1px 2px rgba(11, 26, 14, 0.05), 0 30px 70px -34px rgba(1, 55, 11, 0.45), 0 0 0 6px rgba(203, 249, 144, 0);
  transition: border-color 0.25s, box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.tl-form:focus-within { border-color: #9fd36c; box-shadow: 0 1px 2px rgba(11, 26, 14, 0.05), 0 34px 80px -34px rgba(1, 55, 11, 0.5), 0 0 0 6px rgba(203, 249, 144, 0.45); transform: translateY(-1px); }
.tl-field input { height: 54px; padding-left: 46px; font-size: 16.5px; }
.tl-field-icon { left: 12px; width: 26px; height: 26px; display: grid; place-items: center; }
.tl-field-icon > * { grid-area: 1 / 1; transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tl-fi-ig, .tl-fi-yt { opacity: 0; transform: scale(0.4); }
.tl-form[data-detect="ig"] .tl-field-icon .tl-ico, .tl-form[data-detect="yt"] .tl-field-icon .tl-ico { opacity: 0; transform: scale(0.4); }
.tl-form[data-detect="ig"] .tl-fi-ig, .tl-form[data-detect="yt"] .tl-fi-yt { opacity: 1; transform: none; }
.tl-paste { height: 40px; border-radius: 12px; transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.tl-paste:active { transform: scale(0.96); }
.tl-submit { min-height: 54px; padding: 0 22px 0 26px; border-radius: 14px; gap: 10px; transition: background 0.2s, transform 0.15s, box-shadow 0.25s; }
.tl-submit-arrow { display: inline-block; color: var(--tl-lime); font-size: 17px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.tl-submit:hover .tl-submit-arrow { transform: translateX(3px); }
.tl-submit:active { transform: scale(0.98); }
.tl-submit.is-loading .tl-submit-arrow { display: none; }

/* Hub: actions sit under the paste box */
.tl-form-hub .tl-intents { order: 3; flex: 1 1 100%; justify-content: center; gap: 6px; margin: 2px 0 0; padding: 10px 2px 2px; border-top: 1px solid #eef3ea; }
.tl-form-hub .tl-intents span { gap: 7px; height: 38px; padding: 0 15px; border-color: transparent; background: transparent; color: #50624f;
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s, box-shadow 0.25s, transform 0.15s; }
.tl-form-hub .tl-intents span .tl-ico { width: 16px; height: 16px; }
.tl-form-hub .tl-intents label:hover span { background: #f3f8ee; color: var(--tl-green); }
.tl-form-hub .tl-intents input:checked + span { background: var(--tl-lime); color: var(--tl-green); box-shadow: inset 0 0 0 1px #b5e57d; }
.tl-form-hub .tl-intents label:active span { transform: scale(0.97); }

/* Example links */
.tl-hint { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.tl-hint > span { margin-right: 2px; font-size: 12.5px; font-weight: 650; color: var(--tl-muted); }
.tl-ex { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid #e3ebdc; border-radius: 999px; background: #fff;
  font: inherit; font-size: 12.5px; font-weight: 650; color: var(--rk-ink-soft, #3d4f40); cursor: pointer; transition: border-color 0.2s, color 0.2s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s; }
.tl-ex img { width: auto; height: 12px; }
.tl-ex:hover { border-color: #b9e48f; color: var(--tl-green); transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(1, 55, 11, 0.35); }
.tl-ex:focus-visible { outline: 3px solid var(--tl-lime); outline-offset: 2px; }

/* Hub cards */
.tl-hub .tl-hub-card { gap: 8px; padding: 18px; border-radius: 16px; }
.tl-hub .tl-hub-card b { display: inline-flex; align-items: center; gap: 4px; }
.tl-hub .tl-hub-card b span { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.tl-hub .tl-hub-card:hover b span { transform: translateX(3px); }

@media (max-width: 600px) {
  .tl-form { padding: 6px; border-radius: 18px; }
  .tl-field { flex-basis: 100%; }
  .tl-submit { flex: 1 1 100%; }
  .tl-form-hub .tl-intents { order: 3; gap: 4px; }
  .tl-form-hub .tl-intents span { padding: 0 11px; font-size: 13px; }
  .tl-form-hub .tl-submit { order: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-form, .tl-field-icon > *, .tl-submit-arrow, .tl-ex, .tl-back, .tl-back .tl-ico { transition: none; }
}

.tl-hub-glyph { position: relative; width: 42px !important; height: 42px !important; border-radius: 13px !important; color: var(--tl-green); background: linear-gradient(145deg, #f4fbec, #e4f5d2) !important; border-color: #d6ecc0 !important; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tl-hub-glyph.is-yt { color: #b3121b; background: linear-gradient(145deg, #fff5f5, #ffe3e3) !important; border-color: #f6cfcf !important; }
.tl-hub-glyph > .tl-ico { width: 20px; height: 20px; }
.tl-hub-glyph i { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: #fff; box-shadow: 0 2px 6px rgba(11, 26, 14, 0.15); }
.tl-hub-glyph i img { width: 12px !important; height: auto; }
.tl-hub-card:hover .tl-hub-glyph { transform: translateY(-2px) rotate(-4deg); }
@media (max-width: 600px) {
  .tl-form-hub .tl-intents { display: grid; grid-template-columns: 1fr 1fr; }
  .tl-form-hub .tl-intents span { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .tl-hub-glyph { transition: none; } }

/* Example output (real transcript) */
.tl-sample-intro { max-width: 720px; margin: 0 auto 18px; text-align: center; color: var(--tl-muted); font-size: 15.5px; line-height: 1.55; }
.tl-sample { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; max-width: 980px; margin: 0 auto; }
.tl-sample-card { padding: 18px 20px; border-radius: var(--tl-radius); background: #fff; box-shadow: 0 0 0 1px var(--tl-line), var(--tl-shadow); min-width: 0; }
.tl-sample-label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tl-leaf); }
.tl-sample-label:not(:first-child) { margin-top: 18px; }
.tl-sample-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tl-sample-lines li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--tl-ink); }
.tl-sample-lines time { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 650; color: var(--tl-green); background: var(--tl-lime-soft); border-radius: 6px; text-align: center; padding: 2px 0; height: fit-content; }
.tl-sample-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fffbea; border: 1px solid #f3e6b0; font-size: 13.5px; line-height: 1.5; color: #5a4a12; }
.tl-sample-srt { margin: 0; padding: 12px 14px; border-radius: 10px; background: #0d1710; color: #d9ecd2; font: 500 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-x: auto; }
.tl-sample-beats { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tl-sample-beats li { font-size: 14.5px; line-height: 1.5; color: var(--tl-muted); }
.tl-sample-beats b { display: block; color: var(--tl-ink); font-weight: 650; }
@media (max-width: 760px) { .tl-sample { grid-template-columns: 1fr; } }
