/* "Just tell Hypeman" (card J1). Uses Growth HQ's tokens (app.css). Ink canvas, glass + hairlines,
   volt only as the spark: the Make it live button, the live dot, the live moment. */
.tl { --tl-w: 760px; display: grid; gap: 28px; align-items: start; }
.tl--page { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) { .tl--page { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; } }
.tl-main { min-width: 0; display: grid; gap: 14px; }
.tl .i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-err { color: var(--dim); }

/* ---------- the thread ---------- */
.tl-log { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tl--compact .tl-log { max-height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 8px; scrollbar-width: thin; }
.tl-b { max-width: min(88%, 560px); padding: 12px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; animation: tl-in .45s var(--ease) both; }
.tl-b--me { align-self: flex-end; background: var(--fg); color: var(--ink); border-bottom-right-radius: 6px; }
.tl-b--ai { align-self: flex-start; background: var(--glass), var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); border-bottom-left-radius: 6px; }
.tl-b--q { box-shadow: inset 0 0 0 1px rgb(242 196 109 / .35); }
.tl-b--q::before { content: "Question"; display: block; margin-bottom: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.tl-b--err { color: #ffd2c8; box-shadow: inset 0 0 0 1px rgb(255 156 138 / .35); }
.tl-via { display: block; margin-top: 4px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .62; }
.tl-sys { align-self: center; display: inline-flex; align-items: center; gap: 8px; max-width: 92%; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); }
.tl-sys .i { width: 15px; height: 15px; }
@keyframes tl-in { from { opacity: 0; transform: translateY(8px); } }

.tl-welcome { display: flex; gap: 14px; max-width: 620px; padding: 18px; }
.tl-mark { width: 38px; height: 38px; flex: none; border-radius: 11px; }
.tl-welcome p + p { margin-top: 6px; color: var(--dim); }
.tl-welcome__h { font: 600 19px/1.25 var(--sans); letter-spacing: -.02em; }
.tl-welcome__s { font: 500 12px/1.4 var(--mono); letter-spacing: .02em; color: var(--dim-2) !important; }

/* working: typing dots, the live steps and a clock */
.tl-work { min-width: min(320px, 88%); }
.tl-work__h { display: flex; align-items: center; gap: 10px; font-weight: 560; }
.tl-work__t { margin-left: auto; white-space: nowrap; align-self: flex-start; padding-top: 4px; font: 500 12px/1 var(--mono); color: var(--dim-2); font-feature-settings: "tnum" on; }
.tl-typing { display: inline-flex; gap: 4px; }
.tl-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--volt); animation: tl-dot 1.1s infinite ease-in-out; }
.tl-typing i:nth-child(2) { animation-delay: .15s; } .tl-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tl-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.tl-steps { display: grid; gap: 6px; margin-top: 10px; }
.tl-steps:empty { display: none; }
.tl-steps li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--dim); }
.tl-steps li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--dim-2); }
.tl-steps li.is-run { color: var(--fg); }
.tl-steps li.is-run::before { box-shadow: inset 0 0 0 1.5px var(--volt); animation: tl-pulse 1s infinite alternate; }
.tl-steps li.is-done::before { background: var(--mint); box-shadow: none; }
@keyframes tl-pulse { to { box-shadow: inset 0 0 0 4.5px var(--volt); } }

/* ---------- the preview card ---------- */
.tl-pv { align-self: stretch; display: grid; gap: 16px; padding: 18px; border-radius: 24px; background: radial-gradient(120% 70% at 100% 0%, rgb(198 255 61 / .045), transparent 60%), var(--glass), var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -40px rgb(0 0 0 / .8); animation: tl-in .55s var(--ease) both; scroll-margin-top: 90px; }
@media (min-width: 640px) { .tl-pv { padding: 22px; } }
.tl-pv.is-closed { opacity: .72; padding: 14px 18px; gap: 8px; }
.tl-pv__head { display: flex; align-items: center; gap: 12px; }
.tl-pv__k { display: inline-flex; align-items: center; gap: 9px; font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tl-pv__k.is-live { color: var(--volt); }
.tl-pv__t { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--dim-2); font-feature-settings: "tnum" on; white-space: nowrap; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 4px rgb(198 255 61 / .14), 0 0 14px var(--volt-glow); flex: none; }
.tl-dot--amber { background: var(--amber); box-shadow: 0 0 0 4px rgb(242 196 109 / .14); }
.tl-pv__sum { font: 520 17.5px/1.45 var(--sans); letter-spacing: -.012em; text-wrap: pretty; }
.tl-pv.is-closed .tl-pv__sum { font-size: 14.5px; color: var(--dim); }
.tl-pv__label { margin-bottom: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim-2); }
.tl-pv__where ul { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-pv__where li { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 13px; color: var(--fg); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.tl-pv__where li .i { width: 15px; height: 15px; color: var(--mint); }
.tl-pv__where li.is-later .i { color: var(--amber); }
.tl-pv__where em { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.tl-pv__checks { font-size: 13.5px; color: var(--dim); }
.tl-pv__checks summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; border-radius: 8px; }
.tl-pv__checks summary::-webkit-details-marker { display: none; }
.tl-pv__checks summary .i { width: 16px; height: 16px; color: var(--mint); }
.tl-pv__checks ul { display: grid; gap: 6px; margin: 8px 0 2px 2px; }
.tl-pv__checks li { display: flex; align-items: center; gap: 8px; }
.tl-pv__checks li .i { width: 15px; height: 15px; }
.tl-pv__checks li.ok .i { color: var(--mint); } .tl-pv__checks li.no .i { color: var(--coral); }
.tl-pv__acts { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .tl-pv__acts { grid-template-columns: auto auto; justify-content: start; } }
.tl-pv__note { font-size: 13.5px; color: var(--dim); }

/* before / after: the real preview host, phone width, scaled to the card */
.tl-ba { display: grid; gap: 10px; }
.tl-ba__bar { display: flex; align-items: center; gap: 10px; }
.tl-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.tl-seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--dim); font: 540 13.5px/1 var(--sans); }
.tl-seg button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.tl-seg__split { display: none; }
@media (min-width: 720px) { .tl-seg__split { display: inline-block; } }
.tl-ba__open { margin-left: auto; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line-2); }
.tl-ba__open:hover { color: var(--fg); }
.tl-ba__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.tl-ph { grid-area: 1 / 1; width: 100%; max-width: 360px; margin: 0; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.tl-ph figcaption { margin: 0 0 7px 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim-2); }
.tl-ph__clip { --k: .85; position: relative; height: calc(var(--ph-h, 640px) * var(--k)); border-radius: 26px; overflow: hidden; background: linear-gradient(110deg, var(--ink-3) 30%, var(--ink-4) 50%, var(--ink-3) 70%) 0 0 / 300% 100%; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 7px rgb(255 255 255 / .03), 0 24px 60px -30px rgb(0 0 0 / .9); animation: tl-shimmer 1.6s linear infinite; }
.tl-ph.is-loaded .tl-ph__clip { animation: none; background: #fff; }
.tl-ph iframe { position: absolute; top: 0; left: 0; width: 390px; height: var(--ph-h, 640px); border: 0; transform: scale(var(--k)); transform-origin: 0 0; pointer-events: auto; }
@keyframes tl-shimmer { to { background-position: -300% 0; } }
.tl-ba[data-mode="after"] .tl-ph--before, .tl-ba[data-mode="before"] .tl-ph--after { opacity: 0; transform: scale(.985); pointer-events: none; visibility: hidden; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.tl-ba[data-mode="split"] .tl-ba__stage { grid-template-columns: 1fr 1fr; gap: 18px; }
.tl-ba[data-mode="split"] .tl-ph { grid-area: auto; }
.tl-ba[data-mode="split"] .tl-ph--after .tl-ph__clip { box-shadow: 0 0 0 1px rgb(198 255 61 / .5), 0 0 0 7px rgb(198 255 61 / .06), 0 24px 60px -30px rgb(0 0 0 / .9); }

/* the live moment */
.tl-pv.is-live { box-shadow: inset 0 0 0 1px rgb(198 255 61 / .35), 0 30px 80px -40px rgb(0 0 0 / .8); }
.tl-pv.is-live .tl-ph--after .tl-ph__clip { box-shadow: 0 0 0 1px rgb(198 255 61 / .55), 0 0 0 7px rgb(198 255 61 / .07), 0 24px 60px -30px rgb(0 0 0 / .9); }
.tl-pv.is-celebrate { animation: tl-live 1.1s var(--ease) both; }
.tl-pv.is-celebrate .tl-pv__k.is-live .tl-dot { animation: tl-ping 1.2s var(--ease) 2; }
@keyframes tl-live { 0% { box-shadow: inset 0 0 0 1px rgb(198 255 61 / .9), 0 0 0 0 rgb(198 255 61 / .35); } 100% { box-shadow: inset 0 0 0 1px rgb(198 255 61 / .35), 0 0 0 26px rgb(198 255 61 / 0); } }
@keyframes tl-ping { 50% { box-shadow: 0 0 0 10px rgb(198 255 61 / 0), 0 0 22px var(--volt-glow); } }

/* buttons */
.tl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 14px; font: 600 15.5px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.tl-btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.tl-btn:disabled { opacity: .6; cursor: default; }
.tl-btn--live { background: var(--volt); color: var(--ink); box-shadow: 0 0 0 1px rgb(198 255 61 / .55), 0 14px 36px -14px var(--volt-glow); }
.tl-btn--live:hover:not(:disabled) { box-shadow: 0 0 0 5px rgb(198 255 61 / .16), 0 16px 44px -12px var(--volt-glow); }
.tl-btn--live .i { stroke-width: 2.1; }
.tl-btn--ghost { background: rgb(255 255 255 / .05); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.tl-btn--ghost:hover { background: rgb(255 255 255 / .09); }
.tl-btn--sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.tl-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 2px; border: 0; background: none; color: var(--fg); font: 520 14px/1 var(--sans); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tl-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(9 9 11 / .25); border-top-color: var(--ink); animation: tl-rot .7s linear infinite; }
@keyframes tl-rot { to { transform: rotate(1turn); } }

/* items read from a menu photo */
.tl-items { align-self: stretch; display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--glass), var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.tl-items__h { font-weight: 540; }
.tl-items ol { display: grid; gap: 8px; counter-reset: it; }
.tl-items li { display: grid; grid-template-columns: minmax(0, 1fr) 96px 40px; gap: 8px; align-items: center; }
.tl-in { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 11px; border: 0; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); font-size: 15px; }
.tl-in:focus { outline: 2px solid var(--volt); outline-offset: 1px; }
.tl-in::placeholder { color: var(--dim-2); }

/* ---------- the dock: suggestions + composer ---------- */
.tl-dock { position: sticky; bottom: calc(var(--tabbar) + var(--safe-b) + 10px); z-index: 20; display: grid; gap: 10px; padding-top: 14px; background: linear-gradient(180deg, rgb(9 9 11 / 0), var(--bg) 26px); }
@media (min-width: 1024px) { .tl-dock { bottom: 18px; } }
.tl--compact .tl-dock { position: static; background: none; padding-top: 4px; }
.tl-sugs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent); }
.tl-sugs::-webkit-scrollbar { display: none; }
.tl.is-busy .tl-sugs { opacity: .45; }
.tl-sug { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .045); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13.5px/1 var(--sans); white-space: nowrap; transition: color .2s, background-color .2s; }
.tl-sug:hover { color: var(--fg); background: rgb(255 255 255 / .08); }
.tl-comp { display: flex; align-items: flex-end; gap: 6px; padding: 6px; border-radius: 20px; background: rgb(22 22 26 / .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -24px rgb(0 0 0 / .9); }
.tl-comp:focus-within { box-shadow: inset 0 0 0 1px rgb(198 255 61 / .45), 0 0 0 4px rgb(198 255 61 / .07), 0 20px 50px -24px rgb(0 0 0 / .9); }
.tl-comp textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; padding: 11px 6px; border: 0; background: none; color: var(--fg); font: 400 16px/1.4 var(--sans); resize: none; outline: none; }
.tl-comp textarea::placeholder { color: var(--dim-2); }
.tl-ib { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 13px; background: none; color: var(--dim); }
.tl-ib:hover { color: var(--fg); background: rgb(255 255 255 / .06); }
.tl-ib .i { width: 20px; height: 20px; }
.tl-ib.is-on { color: var(--ink); background: var(--volt); }
.tl-ib--sm { width: 40px; height: 40px; border-radius: 11px; }
.tl-send { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--volt); color: var(--ink); box-shadow: 0 8px 22px -10px var(--volt-glow); }
.tl-send .i { stroke-width: 2.1; }
.tl-send:disabled { opacity: .45; }
.tl-hint { font-size: 12.5px; color: var(--dim-2); text-align: center; }
.tl-hint b { color: var(--fg); font-weight: 560; }
.tl-media { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-thumb { position: relative; display: grid; grid-template-columns: 56px auto auto; align-items: center; gap: 8px; padding: 4px 4px 4px 4px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; color: var(--dim); }
.tl-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.tl-thumb em { font-style: normal; }

/* ---------- the rail ---------- */
.tl-rail { display: grid; gap: 14px; }
@media (min-width: 1080px) { .tl-rail { position: sticky; top: 24px; } }
.tl-card { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: var(--glass), var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tl-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 15.5px/1.25 var(--sans); letter-spacing: -.015em; }
.tl-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line-2); }
.tl-how { display: grid; gap: 10px; counter-reset: how; }
.tl-how li { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; counter-increment: how; }
.tl-how li::before { content: "0" counter(how); grid-row: span 2; font: 500 11.5px/1.7 var(--mono); color: var(--volt); }
.tl-how b { font-weight: 600; }
.tl-how span { font-size: 13.5px; color: var(--dim); }
.tl-fine { font-size: 13px; line-height: 1.5; color: var(--dim); }
.tl-caps { text-align: center; }
.tl-set { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13.5px; color: var(--dim); }
.tl-switch { position: relative; flex: none; width: 50px; height: 30px; border: 0; border-radius: 999px; background: var(--ink-5); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .25s; }
.tl-switch span { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--fg); transition: transform .25s var(--ease); }
.tl-switch[aria-checked="true"] { background: var(--volt); }
.tl-switch[aria-checked="true"] span { transform: translateX(20px); background: var(--ink); }
.tl-nums { display: grid; gap: 6px; }
.tl-nums li { display: flex; align-items: center; gap: 10px; min-height: 40px; font: 500 14px/1 var(--mono); }
.tl-nums small { font: 400 12px/1.2 var(--sans); color: var(--dim-2); }
.tl-nums button { margin-left: auto; }
.tl-numf { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .tl-b, .tl-pv, .tl-typing i, .tl-steps li.is-run::before, .tl-ph__clip, .tl-pv.is-celebrate, .tl-spin { animation: none !important; }
  .tl-ph, .tl-switch span { transition: none !important; }
}

/* composer textarea: no app.css field chrome inside the pill */
.tl-comp textarea, .tl-comp textarea:focus { border: 0 !important; box-shadow: none !important; background: none !important; border-radius: 0; }
/* phones: once the conversation has started, the dock is just the composer */
@media (max-width: 1023px) {
  .tl.has-thread .tl-sugs, .tl.has-thread .tl-hint { display: none; }
  .tl-ph__clip { --ph-h: 560px; }
}
.tl-ph iframe { height: var(--ph-h, 640px); }

/* the live band */
.tl-live { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgb(198 255 61 / .09); box-shadow: inset 0 0 0 1px rgb(198 255 61 / .3); font-size: 14.5px; color: var(--dim); }
.tl-live b { color: var(--fg); font-weight: 600; }
.tl-live__tick { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--volt); color: var(--ink); box-shadow: 0 0 22px -4px var(--volt-glow); }
.tl-live__tick .i { width: 18px; height: 18px; stroke-width: 2.6; }
.tl-pv.is-celebrate .tl-live__tick .i path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tl-draw .6s .15s var(--ease) forwards; }
@keyframes tl-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tl-pv.is-celebrate .tl-live__tick .i path { animation: none; stroke-dashoffset: 0; } }
.tl-pv__peek > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; list-style: none; font-size: 14px; color: var(--dim); border-radius: 8px; }
.tl-pv__peek > summary::-webkit-details-marker { display: none; }
.tl-pv__peek[open] > summary { margin-bottom: 10px; }
