/* ------------------------------------------------------------------
   tools/assets/tools.css (v=1, 2026-10-18): shared look for the free tool
   pages (/tools, /tools/*) and the scripts hub. Loaded after the site
   variables, /landing.css and /seo-landing.css on a <body class="sl tl"> page:
     <link rel="stylesheet" href="/tools/assets/tools.css?v=1">
   Everything here is a .tl-* name and reuses the site variables (--rc-*)
   and the seo-landing.css palette (#15101f cards, violet lines, #f6f1ff
   headings, #8f84a3 quiet text). Buttons are the site's own .btn,
   .btn-primary and .btn-secondary; .tl-go adds the hero glow.

   Components:
     .tl-tool (the tool box at the top, under the h1 and the definition)
       .tl-panel, .tl-panel-head, .tl-panel-title, .tl-badge(.is-green),
       .tl-split (inputs beside the result), .tl-fields, .tl-field,
       .tl-label, .tl-hint, .tl-input, .tl-select, .tl-textarea,
       .tl-affix (unit beside an input), .tl-count, .tl-options +
       .tl-option (radio pills), .tl-actions
     .tl-prompt (the maker-style prompt box: .tl-prompt-input,
       .tl-prompt-bar, .tl-prompt-note), .tl-chips + .tl-chip
     .tl-result, .tl-figure (-label, -value, -unit, -sub), .tl-kv
       (rows .is-minus, .is-total), .tl-empty
     .tl-cards + .tl-card (-tags, -title, -pitch, -label, -list,
       -foot), .tl-tag, .tl-prompts (numbered prompt bubbles)
     .tl-copy, .tl-snippet (-head, .is-wrap), .tl-drop (-icon, -title,
       -hint, .is-over), .tl-preview, .tl-checks + .tl-check
       (.is-ok, .is-warn, .is-bad, -value)
     .tl-tiles + .tl-tile (-ico, -name, -desc, -go, .is-soon) for hubs,
       .tl-ways + .tl-way (.is-tool) for "by hand / in Studio / this tool"
     .tl-source, .tl-dated, .tl-note, .tl-toast, .tl-only-phone,
       .tl-only-desktop, .tl-new (one entrance for new results)
   Nothing starts invisible: the only entrance (.tl-new, .tl-toast) is a
   keyframe from a visible resting state, and prefers-reduced-motion
   removes it with every transition and hover movement.
   ------------------------------------------------------------------ */

/* hidden always wins over the display values below */
:where([class^="tl-"], [class*=" tl-"])[hidden] { display: none !important; }

/* phones (handoff.js sets html.tl-phone with the chat's own rule): swap a label without JavaScript in the markup */
html:not(.tl-phone) .tl-only-phone, html.tl-phone .tl-only-desktop { display: none; }

/* ---------- the tool box: first thing under the h1 and the one-sentence definition ---------- */
.tl-tool { position: relative; width: 100%; max-width: 920px; margin: 36px auto 0; text-align: left; }
.tl-tool.is-wide { max-width: 1120px; }
.tl-tool::before {
  content: ""; position: absolute; inset: -10% -6% -4%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 40%, rgba(124, 58, 237, .14), rgba(124, 58, 237, .04) 55%, transparent 76%);
}
.tl-panel {
  position: relative; min-width: 0; padding: 24px;
  border: 1px solid rgba(167, 139, 250, .24); border-radius: 22px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .09), rgba(21, 16, 31, 0) 46%), #15101f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 50px 100px -50px rgba(124, 58, 237, .6), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.tl-panel + .tl-panel, .tl-panel + .tl-cards, .tl-panel + .tl-result { margin-top: 16px; }
.tl-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 20px; }
.tl-panel-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: #f6f1ff; }
.tl-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; white-space: nowrap;
  border: 1px solid rgba(233, 226, 250, .14); border-radius: 999px; background: rgba(255, 255, 255, .03);
  font-size: 12px; font-weight: 600; line-height: 1; color: #cfc3e0;
}
.tl-panel-title + .tl-badge { margin-left: auto; }
.tl-badge.is-green { border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .1); color: #6ee7b7; }

/* inputs on the left, the live result on the right (calculators, checkers) */
.tl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.tl-split > * { min-width: 0; }

/* ---------- fields ---------- */
.tl-fields { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tl-fields.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tl-label, .tl-field > legend { padding: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #e6def3; }
/* a legend is not a grid item, so the field's gap does not reach it: give it the space itself */
.tl-field > legend { margin: 0 0 10px; }
.tl-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: #8f84a3; }
.tl-hint a { color: var(--rc-text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rc-line-hover); }

.tl-input, .tl-select, .tl-textarea {
  display: block; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 0 14px;
  border: 1px solid rgba(233, 226, 250, .14); border-radius: 12px; background: #0f0c16; color: #f6f1ff;
  font: inherit; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.tl-input::placeholder, .tl-textarea::placeholder { color: #6b6676; opacity: 1; }
.tl-input:hover, .tl-select:hover, .tl-textarea:hover { border-color: rgba(233, 226, 250, .24); }
.tl-input:focus, .tl-select:focus, .tl-textarea:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(139, 92, 246, .28); background: #120e1b; }
.tl-input[aria-invalid="true"], .tl-textarea[aria-invalid="true"] { border-color: rgba(243, 123, 123, .7); }
.tl-textarea { min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; font-variant-numeric: normal; }
.tl-select {
  padding-right: 40px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b7abc8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.tl-select option { color: #f6f1ff; background: #15101f; }
/* a unit beside an input: <div class="tl-affix"><input class="tl-input"><span>Robux</span></div> */
.tl-affix { position: relative; display: flex; align-items: stretch; min-width: 0; }
.tl-affix > .tl-input { flex: 1; padding-right: 76px; }
.tl-affix > span {
  position: absolute; right: 6px; top: 6px; bottom: 6px; display: grid; place-items: center; padding: 0 10px; pointer-events: none;
  border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 13px; font-weight: 600; color: #b7abc8;
}
.tl-count { justify-self: end; font-size: 12px; color: #8f84a3; font-variant-numeric: tabular-nums; }

/* radio pills: <fieldset class="tl-field"><legend>Genre</legend><div class="tl-options">
   <label class="tl-option"><input type="radio" name="genre" value="obby"><span>Obby</span></label> ... */
.tl-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-option { position: relative; display: inline-flex; cursor: pointer; }
.tl-option > input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.tl-option > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .025);
  font-size: 14px; font-weight: 500; line-height: 1.2; color: #cfc3e0;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.tl-option:hover > span { border-color: rgba(167, 139, 250, .35); color: #f6f1ff; }
.tl-option > input:checked + span {
  border-color: rgba(167, 139, 250, .65); background: rgba(139, 92, 246, .18); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 24px -10px rgba(139, 92, 246, .9);
}
.tl-option > input:focus-visible + span { outline: 2px solid var(--rc-focus); outline-offset: 2px; }
.tl-option > input:disabled + span { opacity: .5; cursor: default; }

.tl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; }
.tl-actions .btn { min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15.5px; font-weight: 600; }
.tl-actions-note { font-size: 13px; line-height: 1.45; color: #8f84a3; }

/* the main call to action of a tool: the hero button's glow */
.btn.tl-go {
  min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600;
  background: var(--rc-accent-fill); color: var(--rc-on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 36px -12px rgba(124, 58, 237, .75);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn.tl-go:hover { background: var(--rc-violet-500); color: var(--rc-on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 44px -12px rgba(124, 58, 237, .9); transform: translateY(-1px); }
.btn.tl-go:active { background: var(--rc-accent-fill-press); transform: scale(.98); }

/* ---------- the prompt box (maker pages, idea cards): the homepage chat box, but real ---------- */
.tl-prompt {
  position: relative; display: grid; gap: 4px; padding: 10px;
  border: 1px solid rgba(167, 139, 250, .42); border-radius: 20px; background: rgba(21, 16, 31, .96);
  box-shadow: 0 0 0 6px rgba(139, 92, 246, .08), 0 0 60px -12px rgba(139, 92, 246, .7), 0 30px 60px -24px rgba(0, 0, 0, .95);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tl-prompt:focus-within { border-color: rgba(196, 181, 253, .8); box-shadow: 0 0 0 6px rgba(139, 92, 246, .16), 0 0 70px -10px rgba(139, 92, 246, .8), 0 30px 60px -24px rgba(0, 0, 0, .95); }
.tl-prompt-input {
  display: block; width: 100%; min-height: 104px; margin: 0; padding: 10px 12px; resize: vertical;
  border: 0; border-radius: 12px; background: transparent; color: #f6f1ff;
  font: inherit; font-size: 16.5px; line-height: 1.5;
}
.tl-prompt-input::placeholder { color: #8f84a3; opacity: 1; }
.tl-prompt-input:focus { outline: none; }
.tl-prompt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 2px 2px 2px 12px; }
.tl-prompt-note { font-size: 13px; line-height: 1.45; color: #8f84a3; }
.tl-prompt-bar .btn { flex: none; }
.tl-prompt + .tl-chips { justify-content: center; margin-top: 18px; }

/* one-tap examples: <ul class="tl-chips"><li><button type="button" class="tl-chip" data-handoff-fill="..." hidden>Obby</button></li></ul> */
.tl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tl-chips-label { margin-right: 2px; font-size: 13px; font-weight: 500; color: #8f84a3; }
.tl-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; cursor: pointer;
  border: 1px solid rgba(233, 226, 250, .12); border-radius: 999px; background: rgba(255, 255, 255, .03);
  font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.2; color: #cfc3e0; text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.tl-chip svg { flex: none; color: #a78bfa; }
.tl-chip:hover { border-color: rgba(167, 139, 250, .45); color: #f6f1ff; background: rgba(139, 92, 246, .08); }
.tl-chip[aria-pressed="true"] { border-color: rgba(167, 139, 250, .65); background: rgba(139, 92, 246, .18); color: #fff; }
.tl-chip:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 2px; }

/* ---------- results ---------- */
.tl-result {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 22px 22px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; background: #110d19;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.tl-result.is-live { border-color: rgba(167, 139, 250, .32); background: linear-gradient(180deg, rgba(139, 92, 246, .12), #110d19 70%); }
.tl-figure { margin: 0; }
.tl-figure-label { display: block; margin: 0 0 8px; font-size: 11.5px; font-weight: 600; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: #a78bfa; }
.tl-figure-value {
  display: block; overflow-wrap: anywhere;
  font-size: clamp(40px, 1.6rem + 2.8vw, 64px); font-weight: 650; line-height: 1.02; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  color: #f6f1ff; background: linear-gradient(180deg, #ffffff 25%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tl-figure-unit { margin-left: .2em; font-size: .4em; letter-spacing: -.01em; }
.tl-figure-sub { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #b7abc8; }
.tl-figure + .tl-kv, .tl-figure + .tl-checks { margin-top: 20px; }

/* a breakdown: <dl class="tl-kv"><div><dt>Price</dt><dd>100</dd></div><div class="is-minus">...</div><div class="is-total">...</div></dl> */
.tl-kv { display: grid; margin: 0; padding: 0; }
.tl-kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.tl-kv > div:first-child { border-top: 0; }
.tl-kv dt { min-width: 0; font-size: 14px; line-height: 1.45; color: #b7abc8; }
.tl-kv dd { margin: 0; flex: none; font-size: 15px; font-weight: 600; color: #f6f1ff; font-variant-numeric: tabular-nums; text-align: right; }
.tl-kv > div.is-minus dd { color: #fca5a5; }
.tl-kv > div.is-total { border-top-color: rgba(167, 139, 250, .3); }
.tl-kv > div.is-total dt { font-weight: 600; color: #e6def3; }
.tl-kv > div.is-total dd { font-size: 17px; color: #fff; }
.tl-empty { margin: auto 0; padding: 24px 8px; text-align: center; font-size: 14px; line-height: 1.5; color: #8f84a3; }

/* ---------- idea and result cards ---------- */
.tl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tl-cards.is-1 { grid-template-columns: minmax(0, 1fr); }
.tl-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .07), rgba(255, 255, 255, .015)), #15101f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .2s ease;
}
.tl-card:hover { border-color: rgba(167, 139, 250, .3); }
.tl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tl-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 600; line-height: 1; color: #c4b5fd; background: rgba(139, 92, 246, .16);
}
.tl-tag.is-muted { color: #b7abc8; background: rgba(255, 255, 255, .06); }
.tl-tag.is-green { color: #6ee7b7; background: rgba(52, 211, 153, .14); }
.tl-card-title { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; color: #f6f1ff; text-wrap: balance; }
.tl-card-pitch { margin: 0; font-size: 15.5px; line-height: 1.55; color: #cfc3e0; text-wrap: pretty; }
.tl-card-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 0; font-size: 11.5px; font-weight: 600; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: #8f84a3; }
.tl-card-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--rc-text-2); text-wrap: pretty; }
.tl-card-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tl-card-list li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: var(--rc-text-2); }
.tl-card-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; }
.tl-card-list strong { color: var(--rc-text); font-weight: 600; }
.tl-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .06); }
.tl-card-foot .btn { min-height: 44px; border-radius: 12px; }
.tl-card a:not(.btn) { color: var(--rc-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167, 139, 250, .5); }

/* numbered prompts as chat bubbles: <ol class="tl-prompts"><li>Make an obby ...</li></ol> */
.tl-prompts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: tl-prompt; }
.tl-prompts > li {
  position: relative; counter-increment: tl-prompt; padding: 10px 14px 11px 44px;
  border-radius: 6px 16px 16px 16px; background: linear-gradient(180deg, rgba(139, 92, 246, .22), rgba(109, 40, 217, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font-size: 14.5px; line-height: 1.5; color: #f6f1ff; text-wrap: pretty;
}
.tl-prompts > li::before {
  content: counter(tl-prompt); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 11.5px; font-weight: 700; line-height: 1; color: #c4b5fd; background: rgba(12, 11, 16, .55); border: 1px solid rgba(167, 139, 250, .45);
}

/* ---------- copy buttons and copyable text ---------- */
.tl-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px; cursor: pointer;
  border: 1px solid rgba(233, 226, 250, .14); border-radius: 9px; background: rgba(255, 255, 255, .03);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1; color: #cfc3e0; white-space: nowrap;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.tl-copy svg { flex: none; }
.tl-copy:hover { border-color: rgba(233, 226, 250, .28); background: rgba(255, 255, 255, .06); color: #f6f1ff; }
.tl-copy:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 2px; }
.tl-copy[data-state="done"] { border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .1); color: #6ee7b7; }
@media (pointer: coarse) { .tl-copy { min-height: 44px; } }

.tl-snippet { min-width: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: #0f0c16; }
.tl-snippet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 6px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12.5px; font-weight: 500; line-height: 1.3; color: #8f84a3;
}
.tl-snippet-head b { font-weight: 600; color: #cfc3e0; }
.tl-snippet pre {
  margin: 0; padding: 14px 16px; overflow-x: auto; white-space: pre; tab-size: 4;
  font-family: var(--rc-font-mono); font-size: 13px; line-height: 1.6; color: #e6def3;
}
.tl-snippet pre code { font: inherit; }
.tl-snippet.is-wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- drop zone and checks (thumbnail and icon checker) ---------- */
.tl-drop {
  position: relative; display: grid; place-items: center; align-content: center; gap: 10px; min-height: 220px; padding: 28px 20px;
  border: 1.5px dashed rgba(167, 139, 250, .45); border-radius: 18px; background: rgba(139, 92, 246, .05);
  text-align: center; cursor: pointer; transition: border-color .16s ease, background-color .16s ease;
}
.tl-drop:hover, .tl-drop.is-over { border-color: #c4b5fd; background: rgba(139, 92, 246, .12); }
.tl-drop:focus-within { outline: 2px solid var(--rc-focus); outline-offset: 3px; }
.tl-drop input[type="file"] {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.tl-drop-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #e6def3;
  background: linear-gradient(180deg, rgba(139, 92, 246, .28), rgba(91, 33, 182, .12)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tl-drop-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: #f6f1ff; }
.tl-drop-hint { margin: 0; max-width: 42ch; font-size: 13px; line-height: 1.5; color: #8f84a3; }
/* a checkerboard shows transparent pixels */
.tl-preview {
  display: grid; place-items: center; min-height: 160px; padding: 12px; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);
  background: repeating-conic-gradient(#1b1622 0% 25%, #221c2b 0% 50%) 50% / 20px 20px;
}
.tl-preview img, .tl-preview canvas { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; }

.tl-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tl-check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: rgba(255, 255, 255, .025);
  font-size: 14px; line-height: 1.45; color: #e6def3;
}
.tl-check::before {
  content: "\2022"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-family: var(--rc-font); font-size: 11px; font-weight: 800; line-height: 1; color: #b7abc8; background: rgba(255, 255, 255, .06);
}
.tl-check.is-ok::before { content: "\2713"; color: #34d399; background: rgba(52, 211, 153, .16); }
.tl-check.is-warn::before { content: "!"; font-size: 12px; color: #f2b55a; background: rgba(242, 181, 90, .16); }
.tl-check.is-bad::before { content: "\2715"; color: #f87171; background: rgba(248, 113, 113, .18); }
.tl-check.is-bad { border-color: rgba(248, 113, 113, .25); }
.tl-check-value { font-weight: 600; color: #f6f1ff; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.tl-check small { display: block; margin-top: 2px; font-size: 12.5px; color: #8f84a3; }

/* ---------- hub cards: every tool, template and script page as one card ---------- */
.tl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.tl-tiles > li { display: flex; min-width: 0; }
.tl-tile {
  position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; color: inherit; text-decoration: none;
  background: linear-gradient(180deg, rgba(139, 92, 246, .08), rgba(255, 255, 255, .015)), #15101f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .2s ease, transform .2s ease;
}
a.tl-tile:hover { border-color: rgba(167, 139, 250, .4); transform: translateY(-2px); }
a.tl-tile:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 2px; }
.tl-tile-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #e6def3;
  background: linear-gradient(180deg, rgba(139, 92, 246, .28), rgba(91, 33, 182, .12)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tl-tile-ico svg, .tl-tile-ico img { display: block; width: 20px; height: 20px; }
.tl-tile-name { margin: 16px 0 0; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -.012em; color: #f6f1ff; }
.tl-tile-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--rc-text-2); text-wrap: pretty; }
.tl-tile-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 600; color: #a78bfa; }
a.tl-tile:hover .tl-tile-go { color: #c4b5fd; }
.tl-tile .tl-tag { position: absolute; top: 22px; right: 20px; }
.tl-tile.is-soon { border-style: dashed; border-color: rgba(233, 226, 250, .14); background: rgba(255, 255, 255, .015); }
.tl-tile.is-soon .tl-tile-go { color: #8f84a3; }

/* ---------- three ways to do it: by hand, in Studio, with this tool ---------- */
.tl-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.tl-way { min-width: 0; padding: 22px 22px 24px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; background: #15101f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.tl-way.is-tool {
  border-color: rgba(167, 139, 250, .35); background: linear-gradient(180deg, rgba(139, 92, 246, .16), #15101f 62%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 90px -40px rgba(124, 58, 237, .55);
}
.tl-way-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; color: #f6f1ff; }
.tl-way .sl-ticks li { font-size: 14.5px; }

/* ---------- sources, dates and notes ---------- */
.tl-source { max-width: 72ch; margin: 18px auto 0; font-size: 13px; line-height: 1.55; text-align: center; color: var(--rc-text-3); text-wrap: pretty; }
.tl-panel .tl-source, .tl-result .tl-source { margin: 16px 0 0; text-align: left; }
.tl-source a { color: var(--rc-text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rc-line-hover); overflow-wrap: anywhere; }
.tl-source a:hover { color: var(--rc-text); }
.tl-dated {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid rgba(233, 226, 250, .12); background: rgba(255, 255, 255, .03);
  font-size: 12.5px; font-weight: 500; line-height: 1.3; color: #b7abc8;
}
.tl-dated::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.tl-note {
  margin: 16px 0 0; padding: 14px 16px; border: 1px solid rgba(233, 226, 250, .1); border-radius: 14px; background: rgba(255, 255, 255, .02);
  font-size: 13.5px; line-height: 1.55; color: #b7abc8; text-wrap: pretty;
}
.tl-note strong { color: #e6def3; font-weight: 600; }
.tl-note a { color: var(--rc-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167, 139, 250, .5); }

/* ---------- toast (handoff.js: copy results and the phone hand-off) ---------- */
.tl-toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: var(--rc-z-toast, 120);
  width: max-content; max-width: min(calc(100vw - 32px), 440px); padding: 12px 16px; translate: -50% 0;
  border: 1px solid rgba(167, 139, 250, .35); border-radius: 12px; background: #1b1622;
  box-shadow: 0 16px 40px -12px rgba(4, 2, 10, .7);
  font-size: 14px; font-weight: 500; line-height: 1.45; color: #f6f1ff; text-align: center;
  animation: tl-rise .22s cubic-bezier(.2, .7, .2, 1);
}

/* ---------- one entrance for new results: add .tl-new to a card the page just filled ---------- */
.tl-new { animation: tl-rise .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes tl-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- layout steps ---------- */
@media (max-width: 1000px) {
  .tl-tiles, .tl-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .tl-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tl-tool { margin-top: 28px; }
  .tl-tool::before { inset: -6% -4% -2%; }
  .tl-panel { padding: 18px 16px 20px; border-radius: 18px; }
  .tl-panel-head { margin-bottom: 16px; }
  .tl-panel-title + .tl-badge { margin-left: 0; }
  .tl-fields.is-2 { grid-template-columns: minmax(0, 1fr); }
  .tl-result { padding: 18px 16px 20px; }
  .tl-card { padding: 18px 16px; border-radius: 18px; }
  .tl-card-title { font-size: 20px; }
  .tl-actions .btn, .tl-card-foot .btn { width: 100%; }
  .tl-prompt { padding: 8px; border-radius: 16px; }
  .tl-prompt-input { min-height: 96px; font-size: 16px; }
  .tl-prompt-bar { padding-left: 6px; }
  .tl-prompt-bar .btn { width: 100%; }
  .tl-tiles, .tl-ways { grid-template-columns: minmax(0, 1fr); }
  .tl-drop { min-height: 180px; padding: 22px 16px; }
  .tl-snippet pre { padding: 12px 14px; font-size: 12.5px; }
}

/* ---------- reduced motion: no entrance, no lift, no transition ---------- */
@media (prefers-reduced-motion: reduce) {
  .tl-new, .tl-toast { animation: none; }
  .btn.tl-go, .btn.tl-go:hover, .btn.tl-go:active, a.tl-tile, a.tl-tile:hover { transform: none; }
  .tl-input, .tl-select, .tl-textarea, .tl-option > span, .tl-prompt, .tl-chip, .tl-card, .tl-copy, .tl-drop, .tl-tile, .btn.tl-go { transition: none; }
}
