/* demo engine additions: AI, Brand Kit, spelling */
.tp-tr.pre { opacity: 0; max-height: 0; border-color: transparent; }
.tp-tr.new { animation: tpNew 900ms ease-out; }
@keyframes tpNew { 0% { background: rgba(224,111,174,0); } 30% { background: rgba(255,255,255,0.07); } 100% { background: rgba(255,255,255,0); } }
.c-grammar { background: #e06fae; color: #33101f; }
.tp-ai.running { border-color: #e06fae; color: #fff; }
.tp-ai.running .tp-dot { background: #e06fae; animation: tpPulse 1s ease-in-out infinite alternate; }
.tp-ai.done .tp-dot { background: #e06fae; }
@keyframes tpPulse { from { opacity: 1; } to { opacity: 0.25; } }
.tp-st .ai { margin-left: 8px; }
.tp-st .ai i { margin: 0 5px 0 0; }
.tp-st .ai.on { color: #f2b6d6; }
.tp-st .ai.on i { background: #e06fae; box-shadow: none; }
.tp-note { color: #707070; }
.tp-menu { position: absolute; z-index: 4; background: #161616; border: 1px solid #303030; border-radius: 6px; padding: 5px; display: none; flex-direction: column; gap: 1px; box-shadow: 0 6px 16px rgba(0,0,0,0.45); min-width: 190px; }
.tp-menu.on { display: flex; animation: tpIn 120ms ease-out; }
.tp-menu span { padding: 6px 8px; border-radius: 4px; font-size: 11.5px; }
.tp-menu span.hov { background: #2b2b2b; color: #fff; }
.tp-sel.open { border-color: #B1EB1B; }
.tp-kit { display: none; flex-direction: column; gap: 10px; border: 1px solid #303030; border-radius: 6px; background: #161616; padding: 10px; }
.tp-kit.on { display: flex; animation: tpIn 160ms ease-out; }
.tp-kh { display: flex; align-items: center; gap: 8px; }
.tp-kd { width: 16px; height: 16px; border-radius: 50%; background: #4A8FF0; border: 2px solid rgba(255,255,255,0.18); }
.tp-kn { font-size: 14px; font-weight: 700; color: #fff; padding: 1px 4px; }
.tp-kc { color: #707070; font-size: 11px; padding-left: 5px; }
.tp-kcols { display: flex; gap: 10px; }
.tp-kcol { flex: 1; min-width: 0; background: #1b1b1b; border: 1px solid #2a2a2a; border-radius: 6px; padding: 9px 10px; }
.tp-kch { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #e6e6e6; margin-bottom: 8px; }
.tp-kch i { width: 8px; height: 8px; border-radius: 50%; }
.tp-cbox { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tp-kchip { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 2px 0 9px; border-radius: 11px; font-size: 11.5px; }
.tp-kchip b { font-weight: 400; padding: 0 5px; color: #8a8a8a; font-size: 13px; }
.tp-kchip.ok { background: rgba(177,235,27,0.10); border: 1px solid rgba(177,235,27,0.45); color: #d6f58a; }
.tp-kchip.ban { background: rgba(240,122,122,0.10); border: 1px solid rgba(240,122,122,0.45); color: #f6b0b0; }
.tp-kchip.pre { display: none; }
.tp-kchip.pop { animation: tpPop 260ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes tpPop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.tp-cin { display: inline-flex; align-items: center; min-width: 110px; height: 22px; padding: 0 10px; font-size: 11.5px; border: 1px dashed #4a4a4a; border-radius: 11px; color: #707070; }
.tp-cin.focus { border-style: solid; border-color: #B1EB1B; color: #fff; }
.tp-cin.focus::after { content: ""; width: 1px; height: 13px; background: #fff; margin-left: 1px; animation: tpCaret 1s steps(1) infinite; }
@keyframes tpCaret { 50% { opacity: 0; } }
.tp-hint { color: #707070; font-size: 11px; margin-top: 6px; }

/* Live demo: a faithful rebuild of the Typo Finder v0.6 panel (index.html styles) */
.slot.has-demo, .tfm-media.has-demo { padding: 0; background: #212121; }
.tfm-media.has-demo { background: #1C1819; }
.demo { position: absolute; inset: 0; overflow: hidden; }
.d-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.demo[data-mode="panel"] .d-stage { width: 800px; height: 500px; }
.demo[data-mode="full"] .d-stage { width: 960px; height: 540px; }
.demo[data-mode="panel"] .d-cmp { display: none; }
.demo[data-mode="panel"] .tp { left: 0; top: 0; width: 800px; height: 500px; border-radius: 0; padding: 14px 16px 12px; }
.demo[data-mode="full"] .tp { left: 24px; top: 140px; width: 912px; height: 400px; border-radius: 10px 10px 0 0; }
.d-cmp { position: absolute; left: 24px; top: 20px; width: 912px; height: 106px; border-radius: 10px; background: #2C2728; display: flex; align-items: center; padding: 0 48px; box-sizing: border-box; }
.d-cmp p { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 38px; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.d-cmp .w { transition: color 160ms ease-out; }
.d-cmp .w.bad { color: #F07A7A; }

.tp { position: absolute; background: #212121; color: #ccc; font: 12px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding: 8px 6px 7px; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; overflow: hidden; text-align: left; }
.tp * { box-sizing: border-box; }
.tp-tb { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.tp-b { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #ccc; border: 1px solid #303030; border-radius: 5px; padding: 4px 10px; font: 11.5px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; transition: border-color 120ms ease-out, color 120ms ease-out, background-color 120ms ease-out, transform 120ms ease-out, filter 120ms ease-out; }
.tp-sm { padding: 2px 8px; font-size: 11px; }
.tp-pri { background: #B1EB1B; border-color: #B1EB1B; color: #231F20; font-weight: 700; letter-spacing: 0.2px; }
.tp-dis { opacity: 0.4; }
.tp-sel { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; background: #161616; border: 1px solid #303030; border-radius: 6px; padding: 4px 8px 4px 7px; color: #ccc; }
.tp-sel::after { content: ""; width: 10px; height: 6px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23707070' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat; }
.tp-in { background: #161616; border: 1px solid #303030; border-radius: 6px; padding: 4px 7px; color: #707070; }
.tp-chk { display: inline-flex; align-items: center; gap: 4px; }
.tp-cb { width: 13px; height: 13px; border-radius: 3px; background: #5C7A0E; display: inline-grid; place-items: center; }
.tp-cb::after { content: ""; width: 6px; height: 3px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translate(0.5px, -0.5px); }
.tp-dot { width: 7px; height: 7px; border-radius: 50%; background: #5a5a5a; }
.tp-kdot { width: 9px; height: 9px; border-radius: 50%; background: #4A8FF0; display: inline-block; }
.tp-sp { flex: 1; }
.tp-ic { width: 24px; height: 24px; padding: 0; justify-content: center; color: #A3A3A3; }

.tp-sb { display: none; align-items: center; gap: 6px; background: #161616; border: 1px solid #303030; border-radius: 6px; padding: 6px 8px; white-space: nowrap; }
.tp-sb.on { display: flex; animation: tpIn 160ms ease-out; }
@keyframes tpIn { from { opacity: 0; } to { opacity: 1; } }
.tp-word { color: #F07A7A; font-weight: 600; }
.tp-list { flex: 1; display: inline-flex; align-items: center; gap: 8px; }
.tp-arr { color: #707070; font-size: 15px; line-height: 1; margin: 0 -3px; }
.tp-best { background: #B1EB1B; border-color: #B1EB1B; color: #231F20; font-weight: 700; }
.tp-sug { border-color: #4a4a4a; color: #fff; }

.tp-tw { flex: 1; min-height: 0; border: 1px solid #303030; border-radius: 6px; background: #0F0F0F; overflow: hidden; position: relative; }
/* v1.0 panel: Columns button at the end of the header, compact rows with an arrow on rows that are cut off, Rescan and Clear */
.tp-th > span:last-child { padding-right: 32px; }
.tp-colbtn { position: absolute; top: 0; right: 0; z-index: 2; width: 24px; height: 23px; display: flex; align-items: center; justify-content: center; background: #161616; color: #707070; border-radius: 0 5px 0 0; }
.tp-colbtn svg { display: block; }
.tp-tr > span.tp-txc { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.tp-tog { flex: none; width: 11px; height: 11px; margin-left: -3px; display: inline-flex; align-items: center; justify-content: center; color: #707070; visibility: hidden; font-style: normal; align-self: center; }
.tp-tog svg { display: block; }
.tp-clip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-pri svg { display: block; }
.tp-clear { margin-left: 2px; }
.tp-tr { display: grid; grid-template-columns: 28px 78px 170px 140px minmax(0, 1fr) 120px; min-width: 0; border-bottom: 1px solid #1c1c1c; max-height: 40px; overflow: hidden; transition: background-color 120ms ease-out, opacity 220ms ease-out, max-height 260ms ease-out 120ms, border-color 260ms; }
.tp-tr > span { padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-th { background: #161616; color: #707070; font-weight: 600; font-size: 11px; letter-spacing: 0.3px; border-bottom-color: #303030; }
.tp-th > span { padding: 5px 8px; }
.tp-tr .ig { padding: 3px 4px; }
.tp-ig { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 18px; border: 1px solid #303030; border-radius: 5px; color: #707070; font-size: 12px; }
.tp-tc { font-family: monospace; color: #707070; font-size: 11px; }
.tp-tr > span.tp-tc { padding-left: 5px; padding-right: 3px; text-overflow: clip; }
.tp-cm { color: #707070; }
.tp-tr.sel { background: #283507; }
.tp-tr.gone { opacity: 0; max-height: 0; border-color: transparent; }
.tp-chip { display: inline-flex; align-items: center; height: 17px; line-height: 1; padding: 0 7px 1px; border-radius: 9px; font-size: 11px; color: #fff; transition: filter 120ms ease-out; }
.tp-chip.hov { filter: brightness(1.15); }
.c-typo { background: #F07A7A; } .c-space { background: #f2c14e; color: #332200; } .c-brand { background: #71C403; color: #0c2e1e; } .c-case { background: #9B59F0; } .c-spell { background: #4A8FF0; } .c-font { background: #F0864A; color: #2e1600; }
.tp-er { display: flex; gap: 6px; }
.tp-eb { flex: 1; height: 44px; background: #161616; border: 1px solid #303030; border-radius: 6px; padding: 4px 7px; color: #707070; }
.tp-st { color: #707070; padding: 2px 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-st i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.4px #707070; margin: 0 5px 0 8px; }
.tp-toast { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); background: rgba(0,0,0,0.92); border: 1px solid rgba(177,235,27,0.4); border-radius: 6px; padding: 7px 12px; color: #B1EB1B; font-size: 12px; opacity: 0; transition: opacity 250ms ease-out; pointer-events: none; }
.tp-toast.show { opacity: 1; }
.tp-b.hov { filter: brightness(1.08); }
.tp-b.down { transform: scale(0.985); }

.d-cur { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; opacity: 0; transition: transform 760ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 240ms ease-out; pointer-events: none; }
.d-cur.on { opacity: 1; }
.d-cur svg { display: block; width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.d-cur .rip { position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.85); opacity: 0; }
.d-cur.click .rip { animation: dRip 420ms ease-out; }
@keyframes dRip { 0% { opacity: 1; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.4); } }
.tile.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 8px; }
.tile.wide .tx { padding: 24px 32px; }
@media (max-width: 900px) { .tile.wide { display: flex; flex-direction: column; align-items: stretch; } .tile.wide .tx { padding: 18px 16px; } }
/* demo engine v4: AI key modal, gear menu, AE timeline, AE Project panel */
.tp-gmenu { min-width: 180px; }
.tp-gmenu span { display: flex !important; align-items: center; gap: 8px; }
.tp-gmenu svg { color: #707070; flex: none; }
.tp-mbox { width: 340px; }
.tp-aibox { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 9px 11px; border: 1px solid #303030; border-radius: 6px; background: #1b1b1b; transition: border-color 200ms, background-color 200ms; }
.tp-aibox p { margin: 0 !important; font-size: 12.5px !important; font-weight: 700; color: #ccc !important; line-height: 1.35; }
.tp-aiic { display: inline-flex; color: #707070; }
.tp-aibox.ok { border-color: rgba(177,235,27,0.35); background: rgba(177,235,27,0.07); }
.tp-aibox.ok .tp-aiic, .tp-aibox.ok p { color: #B1EB1B !important; }
.tp-kinput { display: block; background: #161616; border: 1px solid #303030; border-radius: 6px; padding: 5px 7px; font: 11px monospace; color: #707070; min-height: 25px; }
.tp-kinput.focus { border-color: #B1EB1B; color: #fff; }
.tp-kinput.focus::after { content: ""; display: inline-block; width: 1px; height: 12px; background: #fff; vertical-align: -2px; animation: tpCaret 1s steps(1) infinite; }
.tp-anote { font-size: 11px !important; color: #707070 !important; margin-top: 8px !important; }
.tp-anote:empty { display: none; }
.tp-consent { display: none; align-items: center; gap: 5px; margin-top: 8px; font-size: 11.5px; }
.tp-consent.on { display: flex; animation: tpIn 160ms ease-out; }
.demo[data-mode="full"] .d-stage.tall .d-cmp { height: 232px; padding: 0; background: #232323; display: block; overflow: hidden; }
.demo[data-mode="full"] .d-stage.tall .tp { top: 264px; height: 276px; }
.ae-tl { height: 100%; display: flex; flex-direction: column; font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #a8a8a8; letter-spacing: 0; }
.ae-top { height: 30px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: #232323; }
.ae-time { font-size: 17px; font-weight: 600; color: #4A8FF0; font-variant-numeric: tabular-nums; }
.ae-fps { font-size: 9px; color: #4A8FF0; opacity: 0.75; font-variant-numeric: tabular-nums; }
.ae-search { width: 220px; height: 18px; background: #1a1a1a; border-radius: 3px; margin-left: 10px; }
.ae-body { flex: 1; display: flex; border-top: 1px solid #1a1a1a; min-height: 0; }
.ae-left { width: 290px; flex: none; background: #262626; border-right: 1px solid #1a1a1a; }
.ae-hd { height: 16px; display: flex; gap: 22px; padding: 0 8px 0 24px; align-items: center; font-size: 9.5px; color: #8a8a8a; border-bottom: 1px solid #1a1a1a; }
.ae-row { height: 15px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-bottom: 1px solid #1f1f1f; font-size: 10px; color: #bdbdbd; position: relative; transition: background-color 200ms; }
.ae-row i { width: 9px; height: 9px; border-radius: 1px; flex: none; }
.ae-row em { font-style: normal; width: 14px; text-align: right; color: #8a8a8a; }
.ae-row b { flex: none; }
.ae-t { font-weight: 400; font-family: Georgia, serif; color: #cfcfcf; width: 10px; font-size: 10px; }
.ae-pc { width: 10px; height: 8px; border: 1px solid #9a9a9a; border-radius: 1px; box-sizing: border-box; }
.ae-so { width: 10px; height: 8px; background: #9a9a9a; }
.ae-row.sel { background: #4d4d4d; color: #fff; }
.ae-left .ae-row.sel::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px #B1EB1B; border-radius: 2px; animation: aeSel 1400ms ease-out forwards; }
@keyframes aeSel { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.ae-left .ae-row.pre-sel { background: #4d4d4d; color: #fff; }
.ae-track .ae-row.pre-sel .ae-bar { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7); }
.ae-right { flex: 1; background: #232323; min-width: 0; }
.ae-track { position: relative; margin: 0 14px; height: 100%; }
.ae-ruler { height: 16px; position: relative; border-bottom: 1px solid #1a1a1a; }
.ae-ruler span { position: absolute; top: 2px; font-size: 9px; color: #8a8a8a; transform: translateX(-50%); }
.ae-track .ae-row { padding: 0; display: block; }
.ae-bar { position: absolute; top: 2px; height: 10px; border-radius: 1px; opacity: 0.8; }
.ae-track .ae-row.sel .ae-bar { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7); }
.ae-ph { position: absolute; top: 0; bottom: 0; width: 1px; background: #4A8FF0; transition: left 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.ae-ph::before { content: ""; position: absolute; top: 3px; left: -5px; width: 11px; height: 10px; background: #4A8FF0; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.ae-proj { height: 100%; background: #232323; font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #bdbdbd; display: flex; flex-direction: column; letter-spacing: 0; }
.ae-ptab { height: 26px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; color: #e6e6e6; background: #1d1d1d; font-weight: 600; }
.ae-psearch { height: 20px; flex: none; margin: 8px 10px; background: #1a1a1a; border-radius: 3px; }
.ae-prow { display: grid; grid-template-columns: minmax(0, 1fr) 180px 110px; height: 24px; align-items: center; padding: 0 10px; transition: background-color 160ms; }
.ae-phd { color: #8a8a8a; font-size: 10px; height: 18px; border-bottom: 1px solid #1a1a1a; }
.ae-prow span:first-child { display: flex; align-items: center; gap: 8px; }
.ae-folder { width: 13px; height: 10px; background: #c9a24b; border-radius: 2px; }
.ae-comp { width: 13px; height: 11px; border: 1.5px solid #9a9a9a; border-radius: 2px; box-sizing: border-box; }
.ae-prow.sel { background: #34588A; color: #fff; }
.ae-proj .ae-ptab { justify-content: flex-start; gap: 28px; }
.ae-cap { font-weight: 600; font-size: 11px; color: #231F20; background: #B1EB1B; border-radius: 9px; padding: 1px 9px 2px; opacity: 0; transition: opacity 250ms; }
.ae-cap.on { opacity: 1; }
.ae-prow.lit { box-shadow: inset 0 0 0 2px #B1EB1B; color: #fff; }
.ae-prow.nest span:first-child { padding-left: 22px; }
.ae-prow.nest span:first-child::before { content: "\21B3"; color: #B1EB1B; margin-right: -2px; }
.ae-prow.dim { opacity: 0.35; }
.ae-prow [data-pt].tag { color: #B1EB1B; font-weight: 600; }
.ae-prow, .ae-prow span:first-child { transition: background-color 160ms, box-shadow 250ms, opacity 250ms, padding 250ms; }
.ae-prow.lit span:first-child { color: #B1EB1B; }
.ae-prow { transition: background-color 160ms, box-shadow 250ms; }
.ae-vtab { font-weight: 400; color: #8a8a8a; font-size: 10.5px; }
.ae-vtab b { color: #e6e6e6; font-weight: 600; transition: color 300ms; }
.ae-vtab b.flash { color: #B1EB1B; }
/* demo engine: extra scenes */
.tp-sdict { display: none; border-color: rgba(224,111,174,0.55); color: #f2b6d6; background: rgba(224,111,174,0.10); }
.tp-sdict.on { display: inline-flex; animation: tpIn 200ms ease-out; }
.tp-sdict.hov { border-color: #e06fae; color: #fff; background: rgba(224,111,174,0.18); filter: none; }
.c-aiok { background: transparent; color: #9a9a9a; box-shadow: inset 0 0 0 1px #4a4a4a; }
.tp-fmenu { min-width: 200px; }
.tp-frow { display: flex; justify-content: space-between; padding: 2px 6px 5px; margin-bottom: 3px; border-bottom: 1px solid #303030; }
.tp-link { color: #B1EB1B; font-size: 11px; padding: 0 !important; }
.tp-fitem { display: flex !important; align-items: center; gap: 6px; }
.tp-fitem em { flex: 1; font-style: normal; }
.tp-fitem b { color: #707070; font-family: monospace; font-weight: 400; }
.tp-sw { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tp-cb.off { background: transparent; box-shadow: inset 0 0 0 1px #5a5a5a; }
.tp-cb.off::after { display: none; }
.tp-chat { position: absolute; z-index: 6; right: 14px; top: 44px; bottom: 44px; width: 380px; background: #262624; border: 1px solid #3a3a37; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,0.55); display: flex; flex-direction: column; transform: translateX(120%); transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1); font: 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #e8e6e1; }
.tp-chat.on { transform: none; }
.tp-ch-hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #34342f; }
.tp-ch-hd b { font-size: 13px; font-weight: 600; }
.tp-ch-hd span { color: #8d8a83; margin-left: auto; font-size: 11px; }
.tp-ch-body { flex: 1; min-height: 0; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tp-ch-msg { display: none; white-space: pre-line; }
.tp-ch-msg.on { display: block; animation: tpIn 200ms ease-out; }
.tp-ch-msg.me { align-self: flex-end; max-width: 88%; background: #34332f; border-radius: 10px; padding: 8px 10px; color: #d6d3cc; font-size: 11px; }
.tp-ch-msg.me i { font-style: normal; color: #8d8a83; }
.tp-ch-msg.ai { color: #e8e6e1; }
.tp-ch-code { display: block; margin-top: 6px; background: #1b1b19; border: 1px solid #34342f; border-radius: 6px; padding: 8px 10px; font-family: Menlo, Consolas, monospace; font-size: 10.5px; color: #cfcbc2; white-space: pre; }
.tp-ch-copy { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 9px; border: 1px solid #3a3a37; border-radius: 5px; color: #b9b5ad; font-size: 11px; }
.tp-ch-copy.hov { background: #34332f; color: #fff; }
.tp-ch-copy.done { color: #B1EB1B; border-color: rgba(177,235,27,0.45); }
.tp-ch-dots { display: none; color: #8d8a83; }
.tp-ch-dots.on { display: block; animation: tpPulse 600ms ease-in-out infinite alternate; }
.tp-ch-in { margin: 0 10px 10px; display: flex; align-items: center; gap: 8px; background: #30302d; border: 1px solid #3f3f3b; border-radius: 9px; padding: 8px 8px 8px 11px; color: #8d8a83; }
.tp-ch-in.focus { border-color: #6b6a64; }
.tp-ch-in span:first-child { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-ch-in.filled span:first-child { color: #d6d3cc; }
.tp-ch-send { width: 24px; height: 24px; border-radius: 6px; background: #4a4945; color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.tp-ch-in.filled .tp-ch-send { background: #d97757; }
.demo[data-mode="full"] .tp-chat { top: 8px; bottom: 8px; width: 420px; }
.demo[data-mode="full"] .tp-ch-body { gap: 8px; padding: 10px 12px; }
.tp-ig.on { background: #B1EB1B; border-color: #B1EB1B; color: #231F20; }
.tp-ig.hov { background: #2b2b2b; border-color: #4a4a4a; color: #fff; }
.tp-tr.ign > span { opacity: 0.45; }
.tp-tr.ign > span.ig { opacity: 1; }
.tp-er { position: relative; }
.tp-eb.on { color: #ccc; white-space: pre; }
.tp-eb.focus { border-color: #B1EB1B; color: #fff; }
.tp-eb.focus::after { content: ""; display: inline-block; width: 1px; height: 13px; background: #fff; vertical-align: -2px; margin-left: 1px; animation: tpCaret 1s steps(1) infinite; }
.tp-eb.selall { background: #161616 linear-gradient(#2E4A8F, #2E4A8F) no-repeat 7px 5px / 92px 16px; }
.tp-key { position: absolute; right: 70px; top: 50%; transform: translateY(-50%) scale(0.9); background: #2b2b2b; border: 1px solid #4a4a4a; border-radius: 5px; padding: 3px 8px; font-size: 11px; color: #fff; opacity: 0; transition: opacity 160ms ease-out, transform 160ms ease-out; }
.tp-key.on { opacity: 1; transform: translateY(-50%); }
.tp-modal { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 6; }
.tp-modal.on { display: flex; animation: tpIn 160ms ease-out; }
.tp-mbox { background: #161616; border: 1px solid #303030; border-radius: 8px; padding: 16px; width: 320px; }
.tp-mbox h2 { margin: 0 0 2px; font: 700 15px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #B1EB1B; letter-spacing: 0; }
.tp-mbox p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #ccc; max-width: none; }
.tp-mlist { margin-top: 10px; border: 1px solid #303030; border-radius: 6px; padding: 4px; }
.tp-mrow { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 12px; }
.tp-mrow b { font-weight: 600; color: #ccc; }
.tp-mrow em { margin-left: auto; font-style: normal; font-size: 11px; color: #707070; }
.tp-mact { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.d-caret { display: inline-block; width: 3px; height: 0.9em; background: #B1EB1B; margin-left: 4px; vertical-align: -0.05em; animation: tpCaret 1s steps(1) infinite; }
.d-cmp:has(.d-tl) { flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.d-tl { position: relative; width: 100%; height: 4px; border-radius: 2px; background: #3A3435; }
.d-tl i { position: absolute; left: 7%; top: -5px; width: 2px; height: 14px; background: #4A8FF0; transition: left 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.tp-tr.new { animation: tpNew 900ms ease-out; }
.tfm-media.has-demo { padding: 0; background: #231F20; }

/* ---------- v1.0 panel details used by the guide demos ---------- */
.tp-tw .tp-tr { transition: background-color 120ms ease-out, opacity 220ms ease-out, max-height 260ms ease-out 120ms, border-color 260ms, grid-template-columns 340ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.tp-sort { display: inline-block; margin-left: 4px; color: #B1EB1B; font-size: 8px; line-height: 1; opacity: 0; transform: scale(0.6); transition: opacity 180ms ease-out, transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1); vertical-align: 1px; }
.tp-sort::before { content: "\25B2"; }
.tp-th > span.sorted { color: #E6E6E6; }
.tp-th > span.sorted .tp-sort { opacity: 1; transform: none; }
.tp-th > span.hov { color: #FFFFFF; }
.tp-tog svg { transition: transform 160ms ease-out; }
.tp-tr.open { max-height: 64px; align-items: start; background: rgba(177, 235, 27, 0.06); }
.tp-tr.open .tp-clip { white-space: pre-line; }
.tp-tr.open .tp-tog { visibility: visible !important; color: #B1EB1B; align-self: flex-start; margin-top: 3px; }
.tp-tr.open .tp-tog svg { transform: rotate(90deg); }
.tp-tog.hov { color: #FFFFFF; background: #2A2A2A; border-radius: 3px; }
.tp-tw.nocomp .tp-tr { grid-template-columns: 28px 78px 170px 140px minmax(0, 1fr) 0px; }
.tp-tw.nocomp .tp-tr > span:nth-child(6) { padding-left: 0; padding-right: 0; opacity: 0; }
.tp-colbtn { transition: color 150ms ease-out; }
.tp-colbtn.on, .tp-colbtn.hov { color: #B1EB1B; }
.tp-cmenu { position: absolute; right: 16px; top: 93px; z-index: 5; width: 168px; background: #161616; border: 1px solid #303030; border-radius: 6px; padding: 5px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); display: none; flex-direction: column; gap: 1px; font-size: 11.5px; }
.tp-cmenu.on { display: flex; animation: tpIn 140ms ease-out; }
.tp-cmenu > span { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 4px; }
.tp-cmenu > span.hov { background: #2B2B2B; color: #FFFFFF; }
.tp-cmenu > span.sep { height: 1px; padding: 0; margin: 3px 2px; background: #303030; border-radius: 0; }
.tp-cmenu > span.tp-link { padding: 5px 8px !important; }
.d-kbd { position: absolute; right: 22px; top: 14px; padding: 6px 11px; border-radius: 6px; background: #3A3435; color: #FFFFFF; font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; opacity: 0; transform: translateY(-4px) scale(0.96); transition: opacity 200ms ease-out, transform 200ms ease-out; }
.d-kbd.on { opacity: 1; transform: none; }

/* ---------- guide: install, drawn after the aescripts + aeplugins manager ---------- */
.am { position: absolute; left: 40px; top: 28px; width: 880px; height: 484px; display: flex; background: #FFFFFF; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.3); font: 13px/1.35 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif; color: #3A3A3A; text-align: left; }
.am ~ .d-cur .rip { border-color: rgba(242, 106, 31, 0.8); }
.am-side { width: 68px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 12px 0 16px; background: #EDEDED; border-right: 1px solid #DADADA; color: #8E8E8E; }
.am-dots { display: flex; gap: 6px; align-self: flex-start; margin-left: 11px; }
.am-dots i { width: 11px; height: 11px; border-radius: 50%; background: #FE5F57; }
.am-dots i:nth-child(2) { background: #FEBC2E; }
.am-dots i:nth-child(3) { background: #28C840; }
.am-logo { position: relative; width: 36px; height: 36px; margin: 2px 0 10px; border-radius: 50%; background: #2B2B2B; display: grid; place-items: center; }
.am-logo svg { width: 25px; height: 25px; }
.am-logo::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: #F26A1F; box-shadow: 0 0 0 2px #EDEDED; }
.am-ico { width: 26px; height: 26px; display: grid; place-items: center; }
.am-ico svg { width: 24px; height: 24px; }
.am-q { font: 500 23px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; color: #3A3A3A; }
.am-gap { flex: 1; }
.am-list { width: 520px; flex: none; display: flex; flex-direction: column; padding: 16px 16px 0; }
.am-tabs { display: grid; grid-template-columns: 36px 1fr 100px 84px 84px; align-items: center; height: 26px; color: #9A9A9A; font-size: 13.5px; }
.am-tabs span:nth-child(n+4) { text-align: center; }
.am-tabs .on { color: #6A6A6A; }
.am-search { display: flex; align-items: center; gap: 12px; height: 36px; margin: 12px 0 10px; padding: 0 14px; border-radius: 6px; background: #F8F8F8; color: #A3A3A3; font-size: 13.5px; }
.am-search svg { width: 18px; height: 18px; color: #8E8E8E; }
.am-row { display: grid; grid-template-columns: 36px 1fr 84px 84px; align-items: center; height: 36px; border-radius: 6px; background: #F3F3F3; transition: background-color 160ms ease-out; }
.am-row.hov { background: #ECECEC; }
.am-row.sel { background: #E4E4E4; }
.am-st { position: relative; width: 20px; height: 20px; justify-self: center; display: grid; place-items: center; }
.am-st svg { width: 18px; height: 18px; opacity: 0; transform: scale(0.6); transition: opacity 200ms ease-out, transform 320ms cubic-bezier(0.34, 1.5, 0.64, 1); }
.am-row.done .am-st svg { opacity: 1; transform: none; }
.am-spin { position: absolute; inset: 2px; border-radius: 50%; border: 2px solid rgba(242, 106, 31, 0.25); border-top-color: #F26A1F; opacity: 0; transition: opacity 160ms ease-out; }
.am-row.busy .am-spin { opacity: 1; animation: amSpin 800ms linear infinite; }
@keyframes amSpin { to { transform: rotate(360deg); } }
.am-nm { font-size: 14px; color: #F26A1F; transition: color 300ms ease-out; }
.am-row.done .am-nm { color: #3A3A3A; }
.am-v { text-align: center; font-size: 13.5px; color: #3A3A3A; font-variant-numeric: tabular-nums; }
.am-lt { border-left: 1px solid #DEDEDE; color: #F26A1F; transition: color 300ms ease-out; }
.am-row.done .am-lt { color: #3A3A3A; }
.am-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 20px 20px 18px; background: #E6E6E6; border-left: 1px solid #D4D4D4; }
.am-ph { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #CDCDCD; font-size: 14px; letter-spacing: 0.01em; color: #4A4A4A; }
.am-ph svg { width: 20px; height: 20px; }
.am-hint { margin-top: 18px; color: #8A8A8A; line-height: 1.45; transition: opacity 160ms ease-out; }
.am.picked .am-hint { display: none; }
.am-det { margin-top: 18px; opacity: 0; transform: translateY(6px); transition: opacity 260ms ease-out, transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.am.picked .am-det { opacity: 1; transform: none; }
.am-dt { font-size: 19px; font-weight: 600; color: #2B2B2B; }
.am-by { margin-top: 2px; font-size: 12.5px; color: #7A7A7A; }
.am-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 18px; padding-top: 14px; border-top: 1px solid #D2D2D2; font-size: 12.5px; }
.am-dl span:nth-child(odd) { color: #8A8A8A; }
.am-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 6px; background: #F26A1F; color: #FFFFFF; font-size: 14px; font-weight: 600; transition: filter 120ms ease-out, transform 160ms ease-out, background-color 220ms ease-out, color 220ms ease-out, box-shadow 220ms ease-out; }
.am-btn > span { position: relative; }
.am-btn > i { position: absolute; inset: 0; background: rgba(242, 106, 31, 0.32); transform: scaleX(0); transform-origin: 0 50%; }
.am-btn.hov { filter: brightness(1.07); }
.am-btn.down { transform: scale(0.97); }
.am-btn.busy { background: #D6D6D6; color: #3A3A3A; }
.am-btn.run > i { transform: scaleX(1); transition: transform 1800ms cubic-bezier(0.4, 0, 0.2, 1); }
.am-btn.done { background: transparent; color: #2B2B2B; box-shadow: inset 0 0 0 1px #B9B9B9; }
.am-note { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: #3A3A3A; opacity: 0; transform: translateY(6px); transition: opacity 300ms ease-out, transform 300ms ease-out; }
.am-note b { font-weight: 600; }
.am-note.on { opacity: 1; transform: none; }

/* ---------- guide: After Effects window with the Window menu ---------- */
.ax { position: absolute; inset: 0; background: #1D1D1D; font: 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #BDBDBD; text-align: left; }
.ax-menu { position: relative; z-index: 4; height: 26px; display: flex; align-items: center; gap: 2px; padding: 0 10px; background: #2A2A2A; border-bottom: 1px solid #141414; }
.ax-menu > b, .ax-menu > span { padding: 4px 9px; border-radius: 4px; color: #DDDDDD; font-weight: 400; }
.ax-menu > b { font-weight: 700; }
.ax-mi { position: relative; }
.ax-mi.hov, .ax-mi:has(.ax-dd.on) { background: #3D5FA8; color: #FFFFFF; }
.ax-dd { position: absolute; left: 0; top: 24px; width: 190px; padding: 5px; background: #2E2E2E; border: 1px solid #1A1A1A; border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); display: none; flex-direction: column; color: #DDDDDD; }
.ax-dd.on { display: flex; animation: tpIn 120ms ease-out; }
.ax-dd > span { position: relative; display: flex; justify-content: space-between; padding: 4px 10px; border-radius: 4px; }
.ax-dd > span i { font-style: normal; color: #9A9A9A; font-size: 10px; }
.ax-dd > span.hov { background: #3D5FA8; color: #FFFFFF; }
.ax-dd > span.hov i { color: #FFFFFF; }
.ax-dd hr { border: 0; border-top: 1px solid #444444; margin: 4px 6px; }
.ax-sub { position: absolute; left: 100%; top: -6px; margin-left: 6px; width: 150px; padding: 5px; background: #2E2E2E; border: 1px solid #1A1A1A; border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); display: none; flex-direction: column; }
.ax-sub.on { display: flex; animation: tpIn 120ms ease-out; }
.ax-sub span { padding: 4px 10px; border-radius: 4px; color: #DDDDDD; }
.ax-sub span.hov { background: #3D5FA8; color: #FFFFFF; }
.ax-ws { position: absolute; left: 0; right: 0; top: 27px; bottom: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr) 120px; gap: 3px; padding: 3px; }
.ax-p { position: relative; background: #232323; border-radius: 4px; overflow: hidden; }
.ax-p > em { display: block; height: 22px; line-height: 22px; padding: 0 10px; font-style: normal; font-size: 11px; color: #E6E6E6; background: #262626; border-bottom: 1px solid #1A1A1A; }
.ax-proj > i, .ax-tl > i, .ax-fx > i { display: block; height: 9px; margin: 10px 10px 0; border-radius: 2px; background: #2E2E2E; }
.ax-proj > i:nth-of-type(2n) { width: 60%; } .ax-tl > i:nth-of-type(2) { width: 70%; margin-left: 30%; background: #6E4646; } .ax-tl > i:nth-of-type(3) { width: 40%; margin-left: 50%; background: #466E6A; }
.ax-comp { grid-column: 2; }
.ax-frame { position: absolute; left: 24px; right: 24px; top: 40px; bottom: 18px; background: #2C2728; display: grid; place-items: center; }
.ax-frame p { margin: 0; font: 700 26px 'Poppins', sans-serif; letter-spacing: -0.03em; color: #FFFFFF; }
.ax-side { grid-column: 3; grid-row: 1 / span 2; }
.ax-tl { grid-column: 1 / span 2; }
.ax-tb { display: flex; gap: 6px; align-items: center; }
.ax-pri { padding: 3px 10px; border-radius: 5px; background: #B1EB1B; color: #231F20; font-weight: 700; font-size: 11px; }
.ax-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
.ax-chk i { width: 11px; height: 11px; border-radius: 3px; background: #5C7A0E; }
.ax-well { flex: 1; border: 1px solid #303030; border-radius: 6px; background: #0F0F0F; }
.ax-st { color: #707070; font-size: 10.5px; line-height: 1.35; }

/* the panel opens undocked, in its own floating window */
.ax-float { position: absolute; left: 248px; top: 74px; width: 580px; height: 372px; z-index: 3; display: flex; flex-direction: column; background: #212121; border: 1px solid #0E0E0E; border-radius: 8px; overflow: hidden; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.04); opacity: 0; transform: scale(0.94); transform-origin: 50% 0; transition: opacity 260ms ease-out, transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.ax-float.on { opacity: 1; transform: none; }
.ax-fbar { height: 20px; flex: none; display: flex; align-items: center; padding: 0 8px; background: #2A2A2A; border-bottom: 1px solid #151515; color: #9A9A9A; font-size: 10.5px; }
.ax-fbar i { width: 9px; height: 9px; border-radius: 50%; background: #5A5A5A; }
.ax-fbar span { flex: 1; text-align: center; margin-right: 9px; }
.ax-ftab { height: 25px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: #262626; border-bottom: 1px solid #1A1A1A; font-size: 11px; }
.ax-ftab b { color: #FFFFFF; font-weight: 600; }
.ax-ftab span { color: #8A8A8A; font-size: 13px; }
.ax-fbody { flex: 1; min-height: 0; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.ax-sel { padding: 3px 8px; border-radius: 6px; background: #161616; border: 1px solid #303030; font-size: 11px; white-space: nowrap; }
.ax-float .ax-sel { width: 112px; }
.ax-float .ax-sel.ax-kit { width: auto; padding: 2px 8px; }
.ax-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #303030; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.ax-btn i { width: 6px; height: 6px; border-radius: 50%; background: #5A5A5A; }
.ax-in { width: 120px; padding: 3px 8px; border-radius: 6px; background: #161616; border: 1px solid #303030; color: #707070; font-size: 11px; }
.ax-gap { flex: 1; }
.ax-float .ax-chk { white-space: nowrap; }
.ax-th { display: grid; grid-template-columns: 22px 58px 104px 74px minmax(0, 1fr) 70px; padding: 4px 6px; background: #161616; color: #707070; font-size: 10px; font-weight: 600; border-bottom: 1px solid #303030; border-radius: 6px 6px 0 0; }
.ax-edit { height: 30px; flex: none; padding: 5px 8px; border-radius: 6px; background: #161616; border: 1px solid #303030; color: #707070; font-size: 10.5px; }
