/* Free QR tool pages: left menu (avifconverter structure), Cal.com look, sign-up modals and toast. */
.tl-head { padding: 48px 0 26px; }
.tl-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .86rem; font-weight: 500; color: var(--text-2); }
.tl-crumbs a { text-decoration: none; } .tl-crumbs a:hover { color: var(--text); }
.tl-crumbs .qq-ic { width: 12px; height: 12px; }
.tl-crumbs span { color: var(--text); font-weight: 600; }
.tl-head h1 { margin-top: 14px; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: var(--display-track); line-height: var(--display-lh); font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.4rem); }
:root[data-font="oswald"] .tl-head h1, :root[data-font="shoulders"] .tl-head h1, :root[data-font="barlow"] .tl-head h1 { font-weight: 700; }
.tl-head p { margin-top: 10px; max-width: 60ch; font-size: 1.08rem; color: var(--text-2); }
.tl-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tl-badges span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .86rem; }
.tl-badges .qq-ic { width: 16px; height: 16px; color: var(--accent); }

.tl-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-bottom: 80px; }
.tl-side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding: 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2); scrollbar-width: thin; }
.tl-side__title { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; text-decoration: none; }
.tl-side__title > .qq-ic { box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 10px; background: var(--ink); color: var(--on-ink); }
.tl-side__title b { display: block; font-size: .95rem; } .tl-side__title small { color: var(--text-2); font-size: .76rem; }
.tl-side details summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px; list-style: none; cursor: pointer; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.tl-side details summary::-webkit-details-marker { display: none; }
.tl-side details summary span { margin-left: auto; padding: 1px 8px; border-radius: var(--pill); background: var(--surface-3); letter-spacing: 0; }
.tl-side details summary .qq-ic { width: 13px; height: 13px; transition: transform .2s; }
.tl-side details[open] summary .qq-ic { transform: rotate(180deg); }
.tl-side nav { display: grid; gap: 2px; padding-bottom: 6px; }
.tl-side nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--text-2); }
.tl-side nav a .qq-ic { width: 18px; height: 18px; }
.tl-side nav a:hover { background: var(--surface); color: var(--text); }
.tl-side nav a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--sh-1); }
.tl-side nav a[aria-current="page"] .qq-ic { color: var(--accent); }
.tl-side__cv { display: grid; gap: 4px; margin-top: 8px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tl-side__cv > span .qq-ic { width: 26px; height: 26px; color: var(--accent); }
.tl-side__cv small { color: var(--text-2); }
.tl-side__cv a { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; font-size: .88rem; text-decoration: none; }
.tl-side__cv a .qq-ic { width: 14px; height: 14px; }

.tl-tool { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "a out" "b out" "c out"; gap: 16px; align-items: start; }
.tl-tool > .tl-form:nth-child(1) { grid-area: a; } .tl-tool > .tl-form:nth-child(2) { grid-area: b; } .tl-lock { grid-area: c; } .tl-out { grid-area: out; }
.tl-card { padding: 20px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.tl-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tl-card__head b { font-size: 1.05rem; } .tl-card__head small { margin-left: auto; color: var(--text-2); font-weight: 500; }
.tl-step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: .82rem; }
.tl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tl-field { display: grid; gap: 6px; align-content: start; }
.tl-field.is-wide { grid-column: 1 / -1; }
.tl-field > span { display: flex; justify-content: space-between; font-weight: 600; font-size: .86rem; }
.tl-field > span em { font-style: normal; font-weight: 500; color: var(--text-2); }
.tl-input { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.tl-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-input .qq-ic { width: 18px; height: 18px; color: var(--text-2); }
.tl-input input, .tl-field textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--text); }
.tl-field textarea { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); resize: vertical; }
.tl-drop { display: grid; justify-items: center; gap: 4px; padding: 26px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--bg-2); text-align: center; }
.tl-drop > .qq-ic { width: 28px; height: 28px; color: var(--accent); }
.tl-drop small { color: var(--text-2); }
.tl-sw { flex-wrap: wrap; }
.tl-sw__add { display: grid; place-items: center; background: var(--surface-2) !important; color: var(--text-2); }
.tl-sw__add .qq-ic { width: 14px; height: 14px; }
.tl-logo { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px dashed var(--line-2); }
.tl-logo small { color: var(--text-2); } .tl-logo u { margin-left: auto; font-weight: 700; font-size: .86rem; }

/* locked feature */
.tl-lock { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; text-align: left; cursor: pointer; font: inherit; color: inherit; border-style: dashed; background: var(--bg-2); transition: border-color .2s, box-shadow .2s; }
.tl-lock:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-lock__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--on-ink); }
.tl-lock b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; }
.tl-lock small { display: block; margin-top: 4px; color: var(--text-2); }
.tl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: .74rem; font-weight: 700; }
.tl-chip .qq-ic { width: 12px; height: 12px; }
.tl-toggle { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); }
.tl-toggle span { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); }

/* output */
.tl-out { position: sticky; top: 96px; display: grid; gap: 10px; padding: 18px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-2); }
.tl-preview { display: grid; justify-items: center; gap: 8px; padding: 22px 22px 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: #0a0a0a; }
.tl-preview__code { position: relative; width: 100%; max-width: 220px; }
.tl-preview__code > span { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 4px; border-radius: 12px; background: #fff; }
.tl-preview__code .qq-mark { width: 36px; height: 36px; color: #0a0a0a; --bg: #fff; }
.tl-preview > b { font-weight: 800; letter-spacing: .2em; font-size: .82rem; }
.tl-out__row .qq-btn { width: 100%; }
.tl-out__fmts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tl-out__fmts button { min-height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; cursor: pointer; }
.tl-out__fmts button:hover { background: var(--surface-2); }
.tl-save { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: var(--pill); border: 1.5px solid var(--ink); background: none; font-weight: 700; cursor: pointer; }
.tl-save .qq-ic { width: 17px; height: 17px; }
.tl-save em { font-style: normal; padding: 2px 8px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font-size: .72rem; }
.tl-out__note { display: flex; gap: 6px; align-items: flex-start; font-size: .82rem; color: var(--text-2); }
.tl-out__note .qq-ic { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* below the tool */
.tl-sec { margin-top: 72px; }
.tl-sec .qq-h2 { margin-bottom: 22px; }
.tl-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tl-how li { position: relative; display: grid; gap: 6px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.tl-how li > span .qq-ic { width: 30px; height: 30px; color: var(--accent); }
.tl-how li em { position: absolute; right: 18px; top: 18px; font: 700 .8rem var(--mono); font-style: normal; color: var(--text-2); }
.tl-how li p { color: var(--text-2); font-size: .92rem; }
.tl-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl-more a { display: grid; grid-template-columns: 40px 1fr 18px; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tl-more a:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-2); }
.tl-more a > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); }
.tl-more b { display: block; font-size: .95rem; } .tl-more small { color: var(--text-2); font-size: .82rem; }
.tl-more a > .qq-ic { width: 16px; height: 16px; }

/* modals */
.tl-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(10,10,10,.5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.tl-modal.is-open { opacity: 1; }
.tl-modal__box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 14px; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); text-align: center; transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.tl-modal.is-open .tl-modal__box { transform: none; }
.tl-modal__x { position: absolute; right: 12px; top: 12px; }
.tl-modal__art { position: relative; justify-self: center; width: 96px; padding: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--line); color: #0a0a0a; box-shadow: var(--sh-2); }
.tl-modal__badge { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--surface); }
.tl-modal__badge .qq-ic { width: 16px; height: 16px; }
.tl-modal__art--lock { display: grid; place-items: center; width: 84px; height: 84px; padding: 0; background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.tl-modal__art--lock .qq-ic { width: 42px; height: 42px; }
.tl-modal h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; line-height: .95; letter-spacing: var(--display-track); }
:root[data-font="oswald"] .tl-modal h2, :root[data-font="shoulders"] .tl-modal h2, :root[data-font="barlow"] .tl-modal h2 { font-weight: 700; }
.tl-modal p { color: var(--text-2); }
.tl-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.tl-perks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 500; font-size: .92rem; }
.tl-perks .qq-ic { width: 18px; height: 18px; color: var(--accent); }
.tl-modal__cta { display: grid; gap: 8px; }
.tl-modal__cta .qq-btn { width: 100%; }
.tl-social { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--text-2); }
.tl-social a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--text); }
.tl-social .qq-ic { width: 15px; height: 15px; }
.tl-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.tl-compare > div { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.tl-compare > div.is-on { border-color: var(--accent); background: var(--accent-soft); }
.tl-compare b { font-size: .9rem; }
.tl-compare span { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; }
.tl-compare span .qq-ic { width: 15px; height: 15px; color: var(--accent); }
.tl-compare span.is-off { color: var(--text-2); } .tl-compare span.is-off .qq-ic { color: var(--text-2); }

/* bottom-right toast */
.tl-toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; grid-template-columns: 40px 1fr 32px; gap: 12px; width: min(380px, calc(100vw - 32px)); padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0,0,0,.4); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s cubic-bezier(.2,.7,.2,1); }
.tl-toast.is-open { opacity: 1; transform: none; }
.tl-toast__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.tl-toast b { display: block; } .tl-toast small { display: block; margin-top: 2px; color: var(--text-2); font-size: .86rem; }
.tl-toast__cta { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tl-toast__later { border: 0; background: none; font-weight: 600; color: var(--text-2); cursor: pointer; }
.tl-toast__x { width: 32px; height: 32px; }
.tl-toast__x .qq-ic { width: 16px; height: 16px; }
body:has(.tl-toast.is-open) .qq-fontbar { left: 24px; transform: none; }

@media (max-width: 1100px) { .tl-tool { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "out"; } .tl-out { position: static; } }
@media (max-width: 900px) { .tl-layout { grid-template-columns: 1fr; } .tl-side { position: static; max-height: none; } .tl-side details:not(:first-of-type) { display: none; } }
@media (max-width: 640px) { .tl-grid, .tl-how, .tl-more, .tl-compare { grid-template-columns: 1fr; } .tl-lock { grid-template-columns: 40px 1fr; } .tl-toggle { display: none; } }
.tl-grid > * { min-width: 0; }

/* ===== v3 of the tool pages: static left menu, working controls, tabs, prose ===== */
.tl-side { position: static; max-height: none; overflow: visible; }
.tl-side__grp { padding: 6px 0; }
.tl-side__grp > b { display: block; padding: 8px 10px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.tl-side__grp nav a > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); flex: none; }
.tl-side__grp nav a > span .qq-ic { width: 16px; height: 16px; }
.tl-side__grp nav a[aria-current="page"] > span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tl-side__grp nav a[aria-current="page"] > span .qq-ic { color: var(--on-ink); }
.tl-seg { display: flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); gap: 2px; }
.tl-seg button { flex: 1; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font: 600 .82rem var(--font); color: var(--text-2); cursor: pointer; }
.tl-seg button:hover { color: var(--text); background: var(--surface-2); }
.tl-seg button.is-on { background: var(--ink); color: var(--on-ink); }
.tl-sw { display: flex; gap: 8px; align-items: center; }
.tl-sw button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); }
.tl-sw button.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.tl-sw__add { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); }
.tl-sw__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tl-logo { cursor: pointer; }
.tl-range { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.tl-range input { flex: 1; accent-color: var(--accent); }
.tl-range em { font-style: normal; font-weight: 700; min-width: 16px; }
.tl-drop { width: 100%; font: inherit; color: inherit; cursor: pointer; }
.tl-drop:hover { border-color: var(--accent); }
.tl-out__meta { text-align: center; font-size: .84rem; font-weight: 600; color: var(--text-2); }
.tl-dl { width: 100%; }
.tl-preview__code svg { display: block; width: 100%; height: auto; }
.tl-preview > b[hidden] { display: none; }
.tl-modal__box { position: relative; }
.tl-modal__art svg { display: block; width: 100%; height: auto; }
.tl-modal__badge { position: absolute; top: 104px; left: calc(50% + 32px); }
/* about tabs (avifconverter style) */
.tl-about { margin-top: 64px; }
.tl-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1.5px solid var(--line); scrollbar-width: none; }
.tl-tabs::-webkit-scrollbar { display: none; }
.tl-tabs button { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 52px; padding: 0 16px; margin-bottom: -1.5px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 .95rem var(--font); color: var(--text-2); cursor: pointer; }
.tl-tabs button .qq-ic { width: 18px; height: 18px; }
.tl-tabs button:hover { color: var(--text); }
.tl-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tl-tabs button[aria-selected="true"] .qq-ic { color: var(--accent); }
.tl-prose { max-width: 74ch; padding-top: 24px; color: var(--text-2); font-size: 1.02rem; line-height: 1.75; }
.tl-prose > * + * { margin-top: 1em; }
.tl-prose h2 { color: var(--text); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.tl-prose strong { color: var(--text); }
.tl-prose ul, .tl-prose ol { padding-left: 1.3em; }
.tl-prose li + li { margin-top: .45em; }
.tl-prose li::marker { color: var(--accent); }
@media (max-width: 640px) { .tl-seg--4 button { padding: 0 4px; font-size: .76rem; } }
.tl-input { min-width: 0; } .tl-input input { width: 100%; }
.tl-modal[hidden], .tl-toast[hidden] { display: none !important; }

/* ===== trial layout: type picker on top, 2 columns (accordion settings | preview), full-width content below ===== */
.tl-layout { display: block; }
.tl-types { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-2); }
.tl-types__grp { display: flex; align-items: center; }
.tl-types__grp > summary { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 4px; list-style: none; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); cursor: default; pointer-events: none; }
.tl-types__grp > summary::-webkit-details-marker { display: none; }
.tl-types__grp > summary .qq-ic { display: none; width: 13px; height: 13px; }
.tl-types__grp > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-types a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .88rem; transition: background .15s, border-color .15s; }
.tl-types a .qq-ic { width: 16px; height: 16px; }
.tl-types a:hover { border-color: var(--line-2); background: var(--surface-2); }
.tl-types a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tl-tool { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "steps out"; gap: 20px; }
.tl-steps { grid-area: steps; display: grid; gap: 12px; }
.tl-acc { padding: 0; }
.tl-acc > summary { list-style: none; cursor: pointer; margin: 0; padding: 18px 20px; border-radius: inherit; }
.tl-acc > summary::-webkit-details-marker { display: none; }
.tl-acc > summary:hover { background: var(--bg-2); }
.tl-acc[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.tl-acc > .tl-grid { padding: 18px 20px 20px; }
.tl-acc__car { width: 16px; height: 16px; margin-left: 8px; transition: transform .2s; }
.tl-acc[open] .tl-acc__car { transform: rotate(180deg); }
.tl-out { top: 96px; }
.tl-about, .tl-sec { max-width: none; }
.tl-prose { max-width: 80ch; }
@media (max-width: 1000px) { .tl-tool { grid-template-columns: 1fr; grid-template-areas: "steps" "out"; } .tl-out { position: static; } }
@media (max-width: 760px) {
  .tl-types { display: grid; gap: 4px; padding: 8px; }
  .tl-types__grp { display: block; border-bottom: 1px solid var(--line); }
  .tl-types__grp:last-child { border-bottom: 0; }
  .tl-types__grp > summary { justify-content: space-between; min-height: 44px; padding: 0 8px; pointer-events: auto; cursor: pointer; }
  .tl-types__grp > summary .qq-ic { display: block; transition: transform .2s; }
  .tl-types__grp[open] > summary .qq-ic { transform: rotate(180deg); }
  .tl-types__grp > div { padding: 0 4px 10px; }
}
.tl-steps { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
.tl-steps > * { grid-area: auto !important; }

/* ===== accordion left menu (avifconverter style) + 2-column tool; content below is full width ===== */
.tl-layout--acc { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: start; }
.tl-layout--acc .tl-tool { grid-template-columns: minmax(0, 1fr) 330px; }
.tl-nav { padding: 10px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-2); }
.tl-nav__grp { border-top: 1px solid var(--line); }
.tl-nav__grp:first-of-type { border-top: 0; }
.tl-nav__grp > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; list-style: none; cursor: pointer; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); border-radius: 10px; }
.tl-nav__grp > summary::-webkit-details-marker { display: none; }
.tl-nav__grp > summary:hover { color: var(--text); background: var(--surface); }
.tl-nav__grp > summary span { margin-left: auto; padding: 1px 8px; border-radius: var(--pill); background: var(--surface-3); letter-spacing: 0; }
.tl-nav__grp > summary .qq-ic { width: 13px; height: 13px; transition: transform .2s; }
.tl-nav__grp[open] > summary .qq-ic { transform: rotate(180deg); }
.tl-nav__grp nav { display: grid; gap: 2px; padding: 2px 0 8px; }
.tl-nav__grp nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--text-2); }
.tl-nav__grp nav a > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); flex: none; }
.tl-nav__grp nav a > span .qq-ic { width: 16px; height: 16px; }
.tl-nav__grp nav a:hover { background: var(--surface); color: var(--text); }
.tl-nav__grp nav a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--sh-1); }
.tl-nav__grp nav a[aria-current="page"] > span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tl-below { padding-bottom: 90px; }
.tl-below .tl-sec:first-child { margin-top: 56px; }
@media (max-width: 1180px) { .tl-layout--acc .tl-tool { grid-template-columns: 1fr; grid-template-areas: "steps" "out"; } .tl-layout--acc .tl-out { position: static; } }
@media (max-width: 860px) { .tl-layout--acc { grid-template-columns: 1fr; } }

/* ===== 2 columns only; QR types as a card slider under the tool ===== */
.tl-layout .tl-tool { grid-template-columns: minmax(0, 1fr) 380px; }
.tl-slide { margin-top: 28px; }
.tl-slide__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tl-slide__head h2 { font-size: 1.15rem; font-weight: 700; }
.tl-slide__nav { display: flex; gap: 6px; }
.tl-slide__nav .qq-iconbtn { border: 1px solid var(--line); background: var(--surface); }
.tl-slide__track { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: thin; }
.tl-slide__card { scroll-snap-align: start; display: grid; gap: 4px; align-content: start; min-height: 150px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tl-slide__card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.tl-slide__card > span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 12px; background: var(--surface-2); }
.tl-slide__card > span .qq-ic { width: 19px; height: 19px; }
.tl-slide__card em { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.tl-slide__card b { font-size: .98rem; }
.tl-slide__card small { color: var(--text-2); font-size: .84rem; line-height: 1.4; }
.tl-slide__card[aria-current="page"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tl-slide__card[aria-current="page"] > span { background: var(--ink); color: var(--on-ink); }
.tl-slide__card--cv > span { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1000px) { .tl-layout .tl-tool { grid-template-columns: 1fr; grid-template-areas: "steps" "out"; } .tl-layout .tl-out { position: static; } }

/* ===== type slider v2: group tabs, hidden scrollbar, richer cards ===== */
.tl-slide { margin-top: 32px; padding: 20px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-2); }
.tl-slide__head { flex-wrap: wrap; margin-bottom: 16px; }
.tl-slide__head h2 { margin-right: auto; }
.tl-slide__tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); }
.tl-slide__tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--pill); background: none; font: 600 .86rem var(--font); color: var(--text-2); cursor: pointer; }
.tl-slide__tabs button .qq-ic { width: 16px; height: 16px; }
.tl-slide__tabs button em { font-style: normal; font-size: .72rem; padding: 0 7px; border-radius: var(--pill); background: var(--surface-2); }
.tl-slide__tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.tl-slide__tabs button[aria-selected="true"] em { background: rgba(255,255,255,.18); }
.tl-slide__track { grid-auto-columns: minmax(250px, calc((100% - 36px) / 4)); gap: 12px; padding: 2px; scrollbar-width: none; -ms-overflow-style: none; }
.tl-slide__track::-webkit-scrollbar { display: none; }
.tl-slide__card { position: relative; grid-template-rows: auto auto 1fr auto; gap: 6px; min-height: 196px; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); }
.tl-slide__card[hidden] { display: none; }
.tl-slide__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.tl-slide__ic .qq-ic { width: 26px; height: 26px; }
.tl-slide__card b { font-size: 1.04rem; }
.tl-slide__card small { font-size: .86rem; }
.tl-slide__card i { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-style: normal; font-weight: 700; font-size: .84rem; }
.tl-slide__card i .qq-ic { width: 14px; height: 14px; transition: transform .2s; }
.tl-slide__card:hover i .qq-ic { transform: translateX(3px); }
.tl-slide__card[aria-current="page"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: var(--sh-2); }
.tl-slide__card[aria-current="page"] small { color: color-mix(in srgb, var(--on-ink) 75%, transparent); }
.tl-slide__card[aria-current="page"] .tl-slide__ic { background: rgba(255,255,255,.14); color: var(--on-ink); }
@media (max-width: 760px) { .tl-slide__tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; } .tl-slide__track { grid-auto-columns: 78%; } }

/* frame custom text + own colour picker */
.tl-frame-text { margin-top: 8px; }
.tl-frame-text[hidden] { display: none; }
[data-colors] { position: relative; }
.tl-cp { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 260px; display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.tl-cp[hidden] { display: none; }
.tl-cp__sv { position: relative; height: 150px; border-radius: 12px; cursor: crosshair; touch-action: none; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(var(--h, 150) 100% 50%)); }
.tl-cp__sv i { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4), var(--sh-1); pointer-events: none; }
.tl-cp__hue { width: 100%; height: 12px; border-radius: 6px; -webkit-appearance: none; appearance: none; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); outline: 0; }
.tl-cp__hue::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #0a0a0a; cursor: pointer; }
.tl-cp__hue::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #0a0a0a; cursor: pointer; }
.tl-cp__row { display: flex; align-items: center; gap: 8px; }
.tl-cp__now { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.tl-cp__hex { min-height: 36px; padding: 0 10px; flex: 1; font-family: var(--mono); }
.tl-cp__hex span { color: var(--text-2); }
.tl-cp__warn { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: #b45309; }
.tl-cp__warn .qq-ic { width: 15px; height: 15px; }
.tl-cp__warn[hidden] { display: none; }
.tl-sw .tl-cp button[data-cp-done] { width: auto; height: auto; min-height: 36px; padding: 0 14px; border-radius: var(--pill); background: var(--ink); color: var(--on-ink); box-shadow: none; font: 600 .84rem var(--font); }
