/*
 * /features/automation page styles. Prefix: kf-au-. Builds on wa.css components.
 */

/* ---------- Node tones (match the builder's node colours) ---------- */
.kf-au-cnode.is-trigger, .kf-au-pal.is-trigger, .kf-au-chip.is-trigger, .kf-au-block.is-trigger { --kf-au-c: #0f9d6e; --kf-au-s: #dcf5ea; }
.kf-au-cnode.is-action, .kf-au-pal.is-action, .kf-au-chip.is-action, .kf-au-block.is-action { --kf-au-c: #2563eb; --kf-au-s: #dbeafe; }
.kf-au-cnode.is-condition, .kf-au-pal.is-condition, .kf-au-chip.is-condition, .kf-au-block.is-condition { --kf-au-c: #d97706; --kf-au-s: #fef3c7; }
.kf-au-cnode.is-wait, .kf-au-pal.is-wait, .kf-au-chip.is-wait, .kf-au-block.is-wait { --kf-au-c: #64748b; --kf-au-s: #e8edf3; }

/* ---------- Shared node card ---------- */
.kf-au-cnode { --kf-au-c: var(--kh-wa-teal); --kf-au-s: var(--ks-primary-50); position: relative; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 260px; min-width: 0; padding: 9px 12px 9px 9px; border: 1px solid var(--ks-line); border-left: 3px solid var(--kf-au-c); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(11, 31, 26, .05), 0 6px 16px -8px rgba(11, 31, 26, .14); transition: border-color .25s, box-shadow .25s, transform .25s, opacity .35s; }
.kf-au-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--kf-au-s); color: var(--kf-au-c); font-size: 17px; }
.kf-au-ntxt { flex: 1; min-width: 0; line-height: 1.25; }
.kf-au-ntxt small { display: block; color: var(--kf-au-c); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kf-au-ntxt strong, .kf-au-ntxt em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-au-ntxt strong { color: var(--ks-ink); font-size: 13px; font-weight: 700; }
.kf-au-ntxt em { color: var(--ks-muted); font-size: 11.5px; font-style: normal; }
.kf-au-lane { position: absolute; top: -21px; left: calc(50% + 7px); z-index: 1; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; transition: opacity .3s; }
.kf-au-lane.is-yes { background: #dcfce7; color: #15803d; }
.kf-au-lane.is-no { background: #fee2e2; color: #b91c1c; }

/* Vertical flows (hero canvas, templates, mini builder) */
.kf-au-canvas, .kf-au-rflow, .kf-au-lflow { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; list-style: none; }
.kf-au-canvas > li, .kf-au-rflow > li, .kf-au-lflow > li { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; }
.kf-au-canvas > li + li, .kf-au-rflow > li + li, .kf-au-lflow > li + li { padding-top: 22px; }
.kf-au-canvas > li + li::before, .kf-au-rflow > li + li::before, .kf-au-lflow > li + li::before,
.kf-au-clane::before, .kf-au-rlane::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 22px; margin-left: -1px; background: repeating-linear-gradient(180deg, #8fd3b8 0 5px, transparent 5px 10px); transition: opacity .3s; }
.kf-au-canvas > li.kf-au-csplit, .kf-au-rflow > li.kf-au-rsplit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 46px; }
.kf-au-csplit::after, .kf-au-rsplit::after { content: ""; position: absolute; top: 21px; left: 25%; right: 25%; height: 2px; background: #8fd3b8; transition: opacity .3s; }
.kf-au-clane, .kf-au-rlane { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.kf-au-clane::before, .kf-au-rlane::before { top: -24px; height: 24px; }

/* ---------- Hero builder mock ---------- */
.kf-au-hero { position: relative; padding: 12px 0 8px; }
.kf-au-win { overflow: hidden; border: 1px solid var(--ks-line); border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -36px rgba(7, 94, 84, .45), 0 18px 36px -18px rgba(11, 31, 26, .18); }
.kf-au-win-body { display: grid; grid-template-columns: 138px minmax(0, 1fr); min-height: 440px; }
.kf-au-palette { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 16px 10px; border-right: 1px solid var(--ks-line); background: #fff; }
.kf-au-palette-title { margin: 0 0 4px; color: var(--ks-muted); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kf-au-pal { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 8px; border: 1px solid var(--ks-line); border-radius: 10px; background: #fff; color: var(--ks-ink); font-size: 12px; font-weight: 600; }
.kf-au-pal i { flex: none; color: var(--kf-au-c); font-size: 16px; }
.kf-au-pal span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-au-pal.is-picked { animation: kf-au-pick .7s ease; }
.kf-au-canvas { justify-content: flex-start; min-width: 0; padding: 22px 16px 26px; background: radial-gradient(#cfe3db 1px, transparent 1.3px) 0 0 / 16px 16px, #f7fbf9; }
.kf-au-canvas .kf-au-cnode { max-width: 250px; }

.kf-au-hero.is-anim [data-kf-au-hnode] > .kf-au-cnode { transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2), border-color .25s, box-shadow .25s; }
.kf-au-hero.is-anim [data-kf-au-hnode]:not(.is-in) > .kf-au-cnode { opacity: 0; transform: translate(-36px, -10px) scale(.92); }
.kf-au-hero.is-anim [data-kf-au-hnode]:not(.is-in)::before,
.kf-au-hero.is-anim [data-kf-au-hnode]:not(.is-in) > .kf-au-lane,
.kf-au-hero.is-anim .kf-au-csplit:not(.is-in)::before,
.kf-au-hero.is-anim .kf-au-csplit:not(.is-in)::after { opacity: 0; }
.kf-au-cwrap.is-run > .kf-au-cnode, .kf-au-clane.is-run > .kf-au-cnode,
.kf-au-lnode.is-run > .kf-au-cnode { border-color: var(--kh-wa); border-left-color: var(--kh-wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .18), 0 14px 28px -14px rgba(18, 140, 126, .6); transform: scale(1.03); }
.kf-au-cwrap.is-past > .kf-au-cnode, .kf-au-clane.is-past > .kf-au-cnode,
.kf-au-lnode.is-past > .kf-au-cnode { border-color: #a7dcc8; border-left-color: var(--kh-wa-teal); }
.kf-au-cwrap.is-past > .kf-au-cnode::after, .kf-au-clane.is-past > .kf-au-cnode::after,
.kf-au-lnode.is-past > .kf-au-cnode::after { content: ""; position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--kh-wa); }
.kf-au-cwrap.is-hot::after, .kf-au-clane.is-hot::after, .kf-au-lnode.is-hot::after { content: ""; position: absolute; top: -4px; left: 50%; z-index: 2; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--kh-wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .25); animation: kf-au-travel .55s ease-in forwards; }
.kf-au-clane.is-hot::after { top: -28px; }

.kf-au-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.kf-au-mini { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 1px solid var(--ks-line); border-radius: 999px; background: #fff; color: var(--ks-ink); font: 600 13.5px/1 var(--ks-font); cursor: pointer; box-shadow: var(--ks-shadow); transition: border-color .15s, color .15s; }
.kf-au-mini i { color: var(--kh-wa-teal); font-size: 17px; }
.kf-au-mini:hover { border-color: #9fdcc4; color: var(--ks-primary-700); }

.kf-au-float-live { top: -44px; right: -22px; animation-delay: -2s; }
.kf-au-float-test { top: -44px; left: -22px; animation-delay: -4s; }

/* ---------- Templates gallery ---------- */
.kf-au-recipe { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; padding: 40px; border: 1px solid var(--ks-line); border-radius: 28px; background: linear-gradient(135deg, #f1faf5, #fff 70%); }
.kf-au-recipe-copy { min-width: 0; }
.kf-au-recipe-copy h3 { font-size: 1.6rem; }
.kf-au-recipe-copy > p { color: var(--ks-muted); font-size: 1.02rem; }
.kf-au-meta { display: grid; gap: 10px; margin: 22px 0; }
.kf-au-meta div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px dashed var(--ks-line); }
.kf-au-meta dt { color: var(--ks-muted); font-size: 13px; font-weight: 600; }
.kf-au-meta dd { margin: 0; color: var(--ks-ink); font-size: 14.5px; }
.kf-au-small { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--ks-muted); font-size: 13.5px; line-height: 1.5; }
.kf-au-small i { flex: none; margin-top: 1px; color: var(--kh-wa-teal); font-size: 17px; }
.kf-au-rwin { min-width: 0; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -32px rgba(7, 94, 84, .4); }
.kf-au-rflow { padding: 24px 16px 28px; background: radial-gradient(#d6e8e0 1px, transparent 1.3px) 0 0 / 16px 16px, #f7fbf9; }
.kf-au-rflow .kf-au-cnode { max-width: 300px; }
.kf-au-bubble { width: 100%; max-width: 300px; margin: 8px 0 0; padding: 8px 12px; border: 1px solid var(--ks-line); border-radius: 4px 12px 12px 12px; background: #fff; color: var(--ks-text); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.kh-panel:not([hidden]) .kf-au-rflow > li { animation: kf-au-drop .5s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(var(--i, 0) * 110ms); }

/* ---------- Mini builder ---------- */
.kf-au-lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 36px; border: 1px solid var(--ks-line); border-radius: 28px; background: #fff; box-shadow: var(--ks-shadow-lg); }
.kf-au-lab-controls { min-width: 0; }
.kf-au-groups { max-width: 100%; }
.kf-au-groups button { flex: none; }
.kf-au-step2 { margin-top: 24px; }
.kf-au-chips { gap: 8px; }
.kf-au-chips[hidden] { display: none; }
.kf-au-chip { min-height: 40px; padding: 6px 14px; font-size: 13.5px; }
.kf-au-chip i { color: var(--kf-au-c); }
.kf-au-chip.is-flash { border-color: var(--kh-wa-teal); box-shadow: 0 0 0 4px rgba(18, 140, 126, .14); }
.kf-au-chip:disabled { cursor: not-allowed; opacity: .5; }
.kf-au-lab-note { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ks-soft); color: var(--ks-muted); font-size: 13.5px; line-height: 1.5; transition: background .2s, color .2s; }
.kf-au-lab-note.is-warn { background: #fef3c7; color: #92400e; }
.kf-au-lab-note.is-done { background: #dcfce7; color: #166534; }
.kf-au-lab-preview { min-width: 0; }
.kf-au-lab-win { background: #fff; }
.kf-au-lab-canvas { position: relative; min-height: 400px; padding: 24px 16px 28px; background: radial-gradient(#d6e8e0 1px, transparent 1.3px) 0 0 / 16px 16px, #f7fbf9; }
.kf-au-lflow .kf-au-cnode { max-width: 300px; }
.kf-au-lnode.is-new { animation: kf-au-drop .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.kf-au-branch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; margin-top: 6px; color: var(--ks-muted); font-size: 11.5px; }
.kf-au-branch b { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.kf-au-branch b.is-yes { background: #dcfce7; color: #15803d; }
.kf-au-branch b.is-no { margin-left: 4px; background: #fee2e2; color: #b91c1c; }
.kf-au-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 20px; color: var(--ks-muted); font-size: 14.5px; font-weight: 600; text-align: center; }
.kf-au-empty[hidden] { display: none; }
.kf-au-empty i { color: var(--kh-wa-teal); font-size: 22px; }
.kf-au-lab-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--ks-line); background: #fff; }
.kf-au-lab-actions .ks-btn { flex: 1 1 auto; min-width: 0; }
.kf-au-lab-actions .ks-btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.kf-au-caption { margin: 12px 0 0; color: var(--ks-muted); font-size: 13px; text-align: center; }

/* ---------- Contact journey ---------- */
.kf-au-journey { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.kf-au-journey [hidden] { display: none !important; }
.kf-au-jleft, .kf-au-jright { min-width: 0; }
.kf-au-jtrack .kh-node { width: 100%; max-width: 320px; }
.kf-au-jtrack .kh-node > span { min-width: 0; }
.kf-au-jright { display: grid; gap: 18px; }
.kf-au-jdetail { padding: 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kf-au-jstep { margin: 0 0 6px; color: var(--kh-wa); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kf-au-jdetail h3 { margin-bottom: 6px; font-size: 1.3rem; }
.kf-au-jdetail > p { margin-bottom: 16px; color: rgba(255, 255, 255, .72); }
.kf-au-jcontact { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.kf-au-javatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--kh-wa); color: #073b33; font-size: 14px; font-weight: 800; }
.kf-au-jcontact-txt { min-width: 0; line-height: 1.3; }
.kf-au-jcontact-txt strong { display: block; color: #fff; font-size: 14.5px; }
.kf-au-jcontact-txt small { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kf-au-jcontact-txt small span { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font-size: 12px; }
.kf-au-jcontrols { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kf-au-jbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: transparent; color: #fff; font: 600 13.5px/1 var(--ks-font); cursor: pointer; transition: background .15s, border-color .15s, opacity .15s; }
.kf-au-jbtn i { font-size: 17px; }
.kf-au-jbtn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.kf-au-jbtn.is-primary { border-color: var(--kh-wa); background: var(--kh-wa); color: #0b141a; }
.kf-au-jbtn.is-primary:hover:not(:disabled) { background: #3ee07b; }
.kf-au-jbtn:disabled { cursor: default; opacity: .4; }
.kf-au-jphone { width: 100%; }
.kf-au-jchat { height: 300px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.kf-au-jchat::-webkit-scrollbar { display: none; }
.kf-au-jchat > .kf-au-show { animation: kh-pop .32s cubic-bezier(.2, .9, .3, 1.2) both; }

/* ---------- Building blocks ---------- */
.kf-au-blocks-seg { display: flex; justify-content: center; margin-bottom: 32px; }
.kf-au-blocks-seg .kh-seg { max-width: 100%; }
.kf-au-blocks-seg button { flex: none; }
.kf-au-blocks-seg small { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--ks-soft); color: var(--ks-muted); font-size: 12px; }
.kf-au-blocks-seg button[aria-pressed="true"] small { background: rgba(255, 255, 255, .2); color: #fff; }
.kf-au-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kf-au-blocks[hidden] { display: none; }
.kf-au-block { padding: 22px; }
.kf-au-block h3 { margin: 14px 0 4px; font-size: 1rem; }
.kf-au-block p { margin: 0; color: var(--ks-muted); font-size: 14px; line-height: 1.5; }
.kf-au-block-txt { min-width: 0; }
.kf-au-block-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--kf-au-s); color: var(--kf-au-c); font-size: 21px; }
.kf-au-blocks:not([hidden]) .kf-au-block { animation: kf-au-drop .4s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
.kf-au-retry { display: flex; align-items: center; gap: 16px; max-width: 860px; margin: 32px auto 0; padding: 18px 22px; border: 1px dashed #9fd9c2; border-radius: 18px; background: var(--ks-primary-50); }
.kf-au-retry p { margin: 0; color: var(--ks-text); font-size: 15px; }
.kf-au-retry strong { color: var(--ks-ink); }
.kf-au-retry-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--kh-wa-dark), var(--kh-wa-teal)); color: #fff; font-size: 22px; }

/* ---------- Test and monitor ---------- */
.kf-au-mon-seg { margin-top: 24px; }
.kf-au-mon-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.kf-au-mon-seg button i { font-size: 17px; }
.kf-au-mon { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.kf-au-mon > [hidden] { display: none; }
.kf-au-mon-win { background: #fff; box-shadow: var(--ks-shadow-lg); animation: kh-panel-in .4s ease both; }
.kf-au-trace { display: grid; gap: 10px; margin: 0; padding: 16px; list-style: none; }
.kf-au-trace li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 12px; border: 1px solid var(--ks-line); border-radius: 12px; }
.kf-au-trace li > i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ks-soft); color: var(--kh-wa-teal); font-size: 18px; }
.kf-au-trace li > span { flex: 1; min-width: 0; line-height: 1.35; }
.kf-au-trace strong, .kf-au-trace small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-au-trace strong { color: var(--ks-ink); font-size: 14px; }
.kf-au-trace small { color: var(--ks-muted); font-size: 12.5px; }
.kf-au-trace em { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.kf-au-trace em.is-pass { background: #dcfce7; color: #15803d; }
.kf-au-trace em.is-sim { background: #ede9fe; color: #6d28d9; }
.kf-au-trace em.is-wait { background: #fef3c7; color: #92400e; }
.kf-au-trace em.is-run { background: #dbeafe; color: #1d4ed8; }
.kf-au-trace em.is-fail { background: #fee2e2; color: #b91c1c; }
.kf-au-mon-foot { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 16px 16px; color: var(--ks-muted); font-size: 13px; }
.kf-au-mon-foot i { flex: none; color: var(--kh-wa-teal); font-size: 18px; }
.kf-au-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 16px 0; }
.kf-au-stats div { min-width: 0; padding: 12px 6px; border: 1px solid var(--ks-line); border-radius: 12px; text-align: center; }
.kf-au-stats strong { display: block; color: var(--ks-ink); font-size: 1.4rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kf-au-stats span { color: var(--ks-muted); font-size: 12.5px; }

.kf-au-faq-head { margin-top: 88px; margin-bottom: 32px; }

@keyframes kf-au-drop { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes kf-au-pick { 0% { transform: none; } 35% { transform: scale(1.07); border-color: var(--kf-au-c); box-shadow: 0 0 0 4px var(--kf-au-s); } 100% { transform: none; } }
@keyframes kf-au-travel { from { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } to { opacity: 0; transform: translateY(20px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .kf-au-float-live { right: -8px; }
    .kf-au-float-test { left: -8px; }
    .kf-au-blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .kf-au-hero { max-width: 620px; margin: 0 auto; }
    .kf-au-float-live { top: 36%; right: 0; }
    .kf-au-float-test { top: auto; bottom: 74px; left: 0; }
    .kf-au-recipe, .kf-au-lab, .kf-au-journey { grid-template-columns: minmax(0, 1fr); }
    .kf-au-recipe { gap: 28px; padding: 28px; }
    .kf-au-lab { gap: 28px; padding: 24px; }
    .kf-au-journey { gap: 32px; }
    .kf-au-jtrack .kh-node { max-width: 420px; }
    .kf-au-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .kf-au-float-live, .kf-au-float-test { display: none; }
    .kf-au-win { border-radius: 18px; }
    .kf-au-win-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .kf-au-palette { flex-direction: row; gap: 6px; padding: 10px; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--ks-line); }
    .kf-au-palette-title { display: none; }
    .kf-au-pal { flex: none; }
    .kf-au-canvas { padding: 20px 12px 22px; }
    .kf-au-cnode { gap: 8px; padding: 8px 10px 8px 8px; }
    .kf-au-ico { width: 28px; height: 28px; font-size: 16px; }
    .kf-au-canvas > li.kf-au-csplit, .kf-au-rflow > li.kf-au-rsplit { gap: 8px; }
    .kf-au-mini { flex: 1 1 auto; justify-content: center; }

    .kf-au-recipe { padding: 20px; border-radius: 22px; }
    .kf-au-recipe-copy h3 { font-size: 1.35rem; }
    .kf-au-meta div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .kf-au-rflow, .kf-au-lab-canvas { padding: 20px 10px 24px; }
    .kf-au-bubble { font-size: 12px; }

    .kf-au-lab { padding: 18px; border-radius: 22px; }
    .kf-au-groups, .kf-au-blocks-seg .kh-seg { overflow-x: auto; scrollbar-width: none; }
    .kf-au-groups::-webkit-scrollbar, .kf-au-blocks-seg .kh-seg::-webkit-scrollbar { display: none; }
    .kf-au-groups button, .kf-au-blocks-seg .kh-seg button { flex: 1 0 auto; padding: 0 12px; }
    .kf-au-chip { min-height: 38px; padding: 5px 12px; font-size: 13px; }
    .kf-au-lab-canvas { min-height: 340px; }

    .kf-au-jtrack > li + li { padding-top: 22px; }
    .kf-au-jtrack > li + li::before { height: 22px; }
    .kf-au-jtrack .kh-node { max-width: none; padding: 10px 12px 10px 10px; font-size: 13.5px; }
    .kf-au-jtrack .kh-node > i { width: 32px; height: 32px; font-size: 17px; }
    .kf-au-jdetail { padding: 18px; border-radius: 18px; }
    .kf-au-jbtn { flex: 1 1 auto; justify-content: center; padding: 0 10px; }
    .kf-au-jchat { height: 280px; }

    .kf-au-blocks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .kf-au-block { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; }
    .kf-au-block h3 { margin-top: 0; }
    .kf-au-block-icon { width: 38px; height: 38px; font-size: 19px; }
    .kf-au-retry { align-items: flex-start; padding: 16px; }
    .kf-au-retry p { font-size: 14px; }
    .kf-au-faq-head { margin-top: 56px; }
    .kf-au-trace { padding: 12px; }
    .kf-au-trace li { gap: 10px; padding: 10px; }
    .kf-au-trace li > i { width: 30px; height: 30px; font-size: 16px; }
    .kf-au-trace em { padding: 3px 7px; font-size: 11px; }
    .kf-au-stats { padding: 12px 12px 0; }
    .kf-au-stats strong { font-size: 1.2rem; }
}
