/* ToolKey AI Workflows — uses the theme's design tokens (--accent, --ink, …). */
.tkw, .tkw-archive, .tkw-archive-hero, .tkw-made {
	--tkw-accent: var(--accent, #E8622E);
	--tkw-accent-soft: color-mix(in srgb, var(--tkw-accent) 12%, white);
	--tkw-offset: 100px;
}
.tkw-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.tkw *, .tkw-archive * { box-sizing: border-box; }

/* ---------------------------------------------------------------- shared bits */
.tkw-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--tkw-accent); text-transform: uppercase; }
.tkw-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--tkw-accent); display: inline-block; }
.tkw-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; font-family: inherit; padding: 12px 20px; border-radius: 100px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s, border-color .2s, color .2s; line-height: 1.2; }
.tkw-btn:active { transform: scale(.97); }
.tkw-btn--primary { background: var(--tkw-accent); color: #fff; }
.tkw-btn--primary:hover { color: #fff; filter: brightness(1.05); }
.tkw-btn--ghost { background: var(--surface); border-color: var(--border-soft); color: var(--ink); }
.tkw-btn--ghost:hover { border-color: var(--tkw-accent); color: var(--tkw-accent); }
.tkw-btn.is-done { background: var(--tkw-accent-soft); border-color: var(--tkw-accent-soft); color: var(--tkw-accent); }
.tkw-btn--dark-ghost { background: transparent; color: #fff; border-color: oklch(40% 0.01 264); }
.tkw-btn--dark-ghost:hover { color: #fff; border-color: #fff; }
.tkw-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--tkw-accent); margin-bottom: 6px; }

/* ---------------------------------------------------------------- hero */
.tkw-hero { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.tkw-hero--solo { grid-template-columns: 1fr; max-width: 900px; }
.tkw-crumbs { font-size: 13px; color: var(--faint-2); margin-bottom: 18px; display: flex; gap: 8px; }
.tkw-crumbs a { color: var(--muted); text-decoration: none; }
.tkw-crumbs a:hover { color: var(--tkw-accent); }
.tkw-title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -1.6px; margin: 14px 0 16px; font-weight: 700; }
.tkw-lede { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0 0 26px; max-width: 580px; }
.tkw-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tkw-meta div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 100px; background: var(--surface-3); color: var(--ink-soft); }
.tkw-meta svg { color: var(--tkw-accent); }
.tkw-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tkw-hero-card { position: relative; width: 100%; border-radius: var(--radius-xl, 28px); overflow: hidden; background: var(--dark); aspect-ratio: var(--tkw-ratio, 4 / 5); box-shadow: 0 30px 60px -30px oklch(20% 0.02 264 / .45); }
/* The final video/image box takes the media's real shape — 9:16, 16:9 or anything else — instead of one fixed crop. */
.tkw-hero--portrait .tkw-hero-card { max-width: 380px; justify-self: center; }
.tkw-hero--square .tkw-hero-card { max-width: 480px; justify-self: center; }
.tkw-hero--landscape { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.tkw-hero-card video, .tkw-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tkw-hero-card video { object-fit: contain; }
.tkw-badge { position: absolute; left: 16px; top: 16px; background: oklch(15% 0.01 264 / .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 7px 12px; border-radius: 100px; }
.tkw-stack { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tkw-stack span { background: oklch(99% 0 0 / .92); color: var(--ink); font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 100px; }

/* ---------------------------------------------------------------- pipeline strip */
.tkw-pipeline { margin-bottom: 64px; }
.tkw-pipeline-inner { display: grid; grid-template-columns: repeat(var(--tkw-cols, 6), minmax(0, 1fr)); border: 1px solid var(--border-soft); border-radius: var(--radius-lg, 20px); overflow: hidden; background: var(--surface); }
.tkw-pipe { position: relative; padding: 18px; border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-bottom: -1px; text-decoration: none; color: inherit; transition: background .2s; }
.tkw-pipe:nth-child(6n) { border-right: none; }
.tkw-pipe:last-child { border-right: none; }
.tkw-pipe:hover { background: var(--surface-2); }
.tkw-pipe small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--faint-2); margin-bottom: 6px; }
.tkw-pipe b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.tkw-pipe em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted-2); margin-top: 6px; }
.tkw-pipe:not(:last-child):not(:nth-child(6n))::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: inherit; background-color: var(--surface); border-top: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.tkw-pipe.is-active, .tkw-pipe.is-active::after { background-color: var(--tkw-accent-soft) !important; }
.tkw-pipe.is-active small { color: var(--tkw-accent); }

/* ---------------------------------------------------------------- layout + rail */
.tkw-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-bottom: 96px; }
.tkw-layout > * { min-width: 0; }
.tkw-rail { position: sticky; top: var(--tkw-offset); align-self: start; }
.tkw-rail h4 { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint-2); margin: 0 0 14px; font-weight: 700; }
.tkw-rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.tkw-rail ol::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--border-soft); border-radius: 2px; }
.tkw-fill { position: absolute; left: 13px; top: 8px; width: 2px; background: var(--tkw-accent); border-radius: 2px; height: 0; transition: height .35s ease; }
.tkw-rail li { margin: 0; }
.tkw-rail li a { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 13.5px; color: var(--muted); text-decoration: none; transition: color .2s; line-height: 1.35; }
.tkw-rail li a > span { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-soft); font-size: 11.5px; font-weight: 700; color: var(--faint-2); transition: all .25s; z-index: 1; }
.tkw-rail li.is-done a > span { background: var(--tkw-accent); border-color: var(--tkw-accent); color: #fff; }
.tkw-rail li.is-active a { color: var(--ink); font-weight: 600; }
.tkw-rail li.is-active a > span { border-color: var(--tkw-accent); color: var(--tkw-accent); box-shadow: 0 0 0 4px var(--tkw-accent-soft); }
.tkw-rail-copy { margin-top: 22px; width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- steps */
.tkw-steps { display: flex; flex-direction: column; gap: 28px; }
.tkw-step { position: relative; border: 1px solid var(--border-soft); border-radius: var(--radius-xl, 28px); background: var(--surface); padding: 32px; scroll-margin-top: var(--tkw-offset); transition: box-shadow .3s, border-color .3s; }
.tkw-step.is-active { border-color: color-mix(in srgb, var(--tkw-accent) 35%, var(--border-soft)); box-shadow: 0 18px 40px -28px oklch(30% 0.05 40 / .35); }
.tkw-step.is-flash { animation: tkw-flash 2.4s ease; }
@keyframes tkw-flash { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tkw-accent) 40%, transparent); } 100% { box-shadow: none; } }
.tkw-step-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.tkw-step-num { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-3); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 500; color: var(--ink-soft); transition: background .3s, color .3s; }
.tkw-step.is-active .tkw-step-num { background: var(--tkw-accent); color: #fff; }
.tkw-step h2 { font-size: 24px; letter-spacing: -.5px; line-height: 1.25; margin: 0; }
.tkw-desc { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
.tkw-desc p { margin: 0 0 10px; }
.tkw-desc p:last-child { margin: 0; }

.tkw-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tkw-tool { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border: 1px solid var(--border-soft); border-radius: 100px; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--ink); }
.tkw-tool:has(a) { padding-right: 6px; }
.tkw-tool-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tkw-tool a { font-size: 11.5px; font-weight: 600; color: var(--tkw-accent); background: var(--tkw-accent-soft); padding: 4px 9px; border-radius: 100px; text-decoration: none; transition: all .2s; }
.tkw-tool a:hover { background: var(--tkw-accent); color: #fff; }

.tkw-media-row { margin: 0 0 22px; }
.tkw-media-row--multi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tkw-media { position: relative; margin: 0; border-radius: var(--radius-lg, 20px); overflow: hidden; background: var(--surface-2); }
.tkw-media img { display: block; width: 100%; height: auto; }
.tkw-media a { display: block; }
.tkw-media--video { background: #000; aspect-ratio: 16 / 9; }
.tkw-media--video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.tkw-media-row--multi .tkw-media { aspect-ratio: 16 / 10; }
.tkw-media-row--multi .tkw-media img { height: 100%; object-fit: cover; }
.tkw-media figcaption { position: absolute; left: 14px; bottom: 14px; background: oklch(15% 0.01 264 / .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 100px; pointer-events: none; }
.tkw video:fullscreen { object-fit: contain; background: #000; }
.tkw video:-webkit-full-screen { object-fit: contain; background: #000; }

/* prompt block */
.tkw-prompt { border: 1px solid var(--border-soft); border-radius: var(--radius-lg, 20px); overflow: hidden; margin-bottom: 18px; background: var(--surface); }
.tkw-prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; background: var(--surface-3); border-bottom: 1px solid var(--border-soft); }
.tkw-prompt-lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-soft); }
.tkw-prompt-lbl i { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint-2); background: var(--surface); border: 1px solid var(--border-soft); padding: 2px 8px; border-radius: 100px; }
.tkw-prompt-acts { display: flex; align-items: center; gap: 8px; }
.tkw-count { font-size: 12px; color: var(--faint-2); margin-right: 4px; }
.tkw-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; font-family: inherit; padding: 7px 13px; border-radius: 100px; cursor: pointer; border: 1px solid var(--border-soft); background: var(--surface); color: var(--ink-soft); transition: all .2s; line-height: 1.2; }
.tkw-mini:hover { border-color: var(--tkw-accent); color: var(--tkw-accent); }
.tkw-mini--solid { background: var(--tkw-accent); border-color: var(--tkw-accent); color: #fff; }
.tkw-mini--solid:hover { color: #fff; filter: brightness(1.06); }
.tkw-mini.is-done { background: var(--tkw-accent-soft); border-color: var(--tkw-accent-soft); color: var(--tkw-accent); }
.tkw-mini:active { transform: scale(.96); }
.tkw-prompt pre { margin: 0; padding: 18px 18px 6px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); background: transparent; border: none; white-space: pre-wrap; word-break: break-word; overflow: hidden; max-height: calc(6 * 1.7em + 24px); }
.tkw-prompt.is-clamped pre { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tkw-prompt.is-open pre { max-height: none; -webkit-mask-image: none; mask-image: none; }
.tkw-prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 18px 14px; min-height: 8px; }
.tkw-more { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--tkw-accent); font-size: 12.5px; font-weight: 600; font-family: inherit; padding: 6px 0; cursor: pointer; }
.tkw-more[hidden] { display: none; }
.tkw-more svg { transition: transform .2s; }
.tkw-prompt.is-open .tkw-more svg { transform: rotate(180deg); }
.tkw-lib { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tkw-lib:hover { color: var(--tkw-accent); }

.tkw-checklist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.tkw-checklist li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.tkw-checklist li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; background: var(--tkw-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8622E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.tkw-tip { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 4px; }
.tkw-tip svg { flex-shrink: 0; color: var(--tkw-accent); margin-top: 1px; }
.tkw-handoff { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--faint-2); }
.tkw-handoff b { color: var(--ink-soft); font-weight: 600; }
.tkw-handoff svg { color: var(--tkw-accent); }

/* ---------------------------------------------------------------- result */
.tkw-result { border-radius: var(--radius-xl, 28px); background: var(--dark); color: var(--dark-ink); padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: center; scroll-margin-top: var(--tkw-offset); }
.tkw-result--solo { grid-template-columns: 1fr; }
.tkw-result h2 { font-size: 30px; letter-spacing: -.8px; margin: 0 0 12px; color: var(--dark-ink); }
.tkw-result p { color: oklch(80% 0.01 264); line-height: 1.7; font-size: 15px; margin: 0 0 22px; }
.tkw-stats { display: flex; gap: 28px; margin-bottom: 24px; }
.tkw-stats b { display: block; font-size: 22px; font-weight: 700; }
.tkw-stats small { font-size: 12px; color: oklch(70% 0.01 264); }
.tkw-result-media { width: 100%; border-radius: 20px; overflow: hidden; aspect-ratio: var(--tkw-ratio, 9 / 16); background: #000; }
.tkw-result--landscape { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.tkw-result--square { grid-template-columns: minmax(0, 1fr) 360px; }
.tkw-result-media video, .tkw-result-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tkw-result-media--img { aspect-ratio: auto; }
.tkw-result-media--img img { height: auto; }

.tkw-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; padding: 12px 20px; border-radius: 100px; transition: all .3s; pointer-events: none; z-index: 1000; }
.tkw-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- archive */
.tkw-archive-hero { max-width: 900px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.tkw-archive-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -1.5px; margin: 14px 0 16px; }
.tkw-archive-hero p { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0 auto; max-width: 620px; }
.tkw-archive { padding-bottom: 96px; }
.tkw-archive-filters { justify-content: center; margin-bottom: 36px; }
.tkw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tkw-card { display: flex; flex-direction: column; border: 1px solid var(--border-soft); border-radius: var(--radius-xl, 28px); overflow: hidden; background: var(--surface); color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.tkw-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px oklch(20% 0.02 264 / .4); border-color: color-mix(in srgb, var(--tkw-accent) 30%, var(--border-soft)); }
.tkw-card-cover { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--ink), var(--tkw-accent)); }
.tkw-card-cover img, .tkw-card-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tkw-card-steps { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; background: oklch(99% 0 0 / .92); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 100px; }
.tkw-card-steps svg { color: var(--tkw-accent); }
.tkw-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; flex: 1; }
.tkw-card-type { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tkw-accent); }
.tkw-card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.3px; margin: 0; }
.tkw-card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.tkw-card-flow { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: tkw; }
.tkw-card-flow li { counter-increment: tkw; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--surface-3); padding: 5px 10px 5px 6px; border-radius: 100px; margin: 0; }
.tkw-card-flow li::before { content: counter(tkw); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 10.5px; color: var(--tkw-accent); font-weight: 700; }
.tkw-card-flow li.more::before { display: none; }
.tkw-card-flow li.more { padding-left: 10px; }
.tkw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.tkw-card-tools { display: flex; }
.tkw-card-tools span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; border: 2px solid var(--surface); margin-left: -6px; }
.tkw-card-tools span:first-child { margin-left: 0; }
.tkw-card-meta { font-size: 12.5px; color: var(--faint-2); font-weight: 600; }
.tkw-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------------------------------------------------------------- "How this was made" (projects) */
.tkw-made { display: flex; align-items: center; gap: 16px; margin: 32px 0 0; padding: 18px 20px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg, 20px); background: var(--surface); color: inherit; text-decoration: none !important; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tkw-made:hover { border-color: var(--tkw-accent); transform: translateY(-2px); box-shadow: 0 16px 32px -24px oklch(20% 0.02 264 / .4); }
.tkw-made-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tkw-accent-soft); color: var(--tkw-accent); }
.tkw-made-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tkw-made-text small { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tkw-accent); }
.tkw-made-text strong { font-size: 16px; color: var(--ink); }
.tkw-made-text em { font-style: normal; font-size: 13px; color: var(--muted); }
.tkw-made-arrow { color: var(--tkw-accent); }

/* ---------------------------------------------------------------- RTL */
html[dir="rtl"] .tkw-rail ol::before, html[dir="rtl"] .tkw-fill { left: auto; right: 13px; }
html[dir="rtl"] .tkw-pipe { border-right: none; border-left: 1px solid var(--border-soft); }
html[dir="rtl"] .tkw-pipe::after { display: none; }
html[dir="rtl"] .tkw-card-tools span { margin-left: 0; margin-right: -6px; }
html[dir="rtl"] .tkw-made-arrow svg, html[dir="rtl"] .tkw-btn svg { transform: scaleX(-1); }
.tkw-prompt pre { direction: ltr; text-align: left; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
	.tkw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.tkw-hero { grid-template-columns: 1fr; padding-top: 36px; }
	.tkw-hero--portrait .tkw-hero-card { max-width: 320px; }
	.tkw-pipeline { margin-bottom: 32px; }
	.tkw-pipeline-inner { grid-template-columns: repeat(min(var(--tkw-cols, 6), 3), minmax(0, 1fr)); }
	.tkw-pipe:nth-child(3n) { border-right: none; }
	.tkw-pipe::after { display: none !important; }
	.tkw-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tkw-rail { top: var(--tkw-offset-mobile, 76px); z-index: 20; background: var(--surface); margin: 0 -24px; padding: 10px 24px; border-bottom: 1px solid var(--border-soft); }
	.tkw-rail h4, .tkw-rail-copy, .tkw-rail ol::before, .tkw-fill { display: none; }
	.tkw-rail ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
	.tkw-rail ol::-webkit-scrollbar { display: none; }
	.tkw-rail li a { white-space: nowrap; padding: 4px 12px 4px 4px; border: 1px solid var(--border-soft); border-radius: 100px; font-size: 12.5px; }
	.tkw-rail li a > span { width: 24px; height: 24px; }
	.tkw-step { scroll-margin-top: calc(var(--tkw-offset-mobile, 76px) + 64px); }
	.tkw-result { grid-template-columns: 1fr; }
	.tkw-result--portrait .tkw-result-media, .tkw-result--square .tkw-result-media { max-width: 320px; }
}
@media (max-width: 640px) {
	.tkw-cards { grid-template-columns: 1fr; }
	.tkw-step { padding: 22px; border-radius: 22px; }
	.tkw-step-head { gap: 14px; }
	.tkw-step-num { width: 44px; height: 44px; border-radius: 13px; font-size: 15px; }
	.tkw-step h2 { font-size: 20px; }
	.tkw-media-row--multi { grid-template-columns: 1fr; }
	.tkw-pipeline-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tkw-pipe:nth-child(3n) { border-right: 1px solid var(--border-soft); }
	.tkw-pipe:nth-child(2n) { border-right: none; }
	.tkw-result { padding: 24px; }
	.tkw-stats { gap: 20px; }
}
