.fapt-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:18px}
.fapt-side-stack{display:grid;align-content:start;gap:26px;min-width:0;width:100%}
.fapt-side-stack>.fap-panel{min-width:0}
.fapt-side-stack>.fapt-feature-usage-card{width:100%!important;max-width:none!important;display:block!important;justify-self:stretch!important;box-sizing:border-box!important}
.fapt-feature-usage-card .fap-feature-usage-top{margin-bottom:12px!important}
.fapt-feature-usage-card .fap-feature-usage-progress{height:7px!important;margin-bottom:13px!important}
.fapt-feature-usage-card .fap-feature-usage-stats{margin-bottom:10px!important}
.fapt-muted{margin:0 0 16px;color:#667085;font-size:12px;line-height:1.55}
.fapt-panel-head-with-toggle{align-items:center!important;gap:16px}
.fapt-automation-toggle{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:48px;min-width:230px;padding:8px 12px;border:1px solid #e5e7f0;border-radius:12px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.06);cursor:pointer;user-select:none}
.fapt-automation-input{position:absolute;opacity:0;pointer-events:none}
.fapt-toggle-track{position:relative;width:44px;height:24px;flex:0 0 44px;border-radius:999px;background:#d7dee8;box-shadow:inset 0 0 0 1px rgba(15,23,42,.04);transition:background-color .18s ease,box-shadow .18s ease}
.fapt-toggle-track:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.22);transition:transform .18s ease}
.fapt-automation-input:checked+.fapt-toggle-track{background:#635bff;box-shadow:0 8px 18px rgba(99,91,255,.24)}
.fapt-automation-input:checked+.fapt-toggle-track:after{transform:translateX(20px)}
.fapt-automation-input:focus-visible+.fapt-toggle-track{outline:2px solid rgba(99,91,255,.32);outline-offset:3px}
.fapt-automation-copy{display:grid;gap:2px;min-width:0}
.fapt-automation-copy strong{display:block;color:#101828;font-size:12px;font-weight:750;line-height:1.2;letter-spacing:0}
.fapt-automation-copy small{display:block;color:#667085;font-size:10px;font-weight:600;line-height:1.2;letter-spacing:0;white-space:nowrap}
.fapt-automation-copy small.is-running{color:#7c3aed}
.fapt-automation-copy small.is-complete{color:#12b76a}
.fapt-automation-copy small.is-limit{color:#d92d20}
.fapt-automation-copy small.is-paused{color:#667085}
.fapt-metric-last-run strong{font-size:16px!important;letter-spacing:0!important}
.fap-ai-tabs a{font-weight:600!important}
.fapt-grid .fap-field,.fapt-grid .fap-field>span,.fapt-grid .fap-field>small,.fapt-grid .fap-field>input,.fapt-grid .fap-field>select,.fapt-grid .fap-field>textarea{font-weight:400!important}
.fapt-integrations-grid{grid-template-columns:minmax(260px,.85fr) minmax(300px,.9fr) minmax(440px,1.35fr)!important;align-items:start}
.fapt-integrations-form .fap-field>input,.fapt-integrations-form .fap-field>select,.fapt-integrations-form .fap-field>textarea{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-weight:400!important}
.fapt-api-keys-field textarea{min-height:92px!important;height:auto!important;max-height:360px!important;font-size:12px!important;line-height:1.45!important;letter-spacing:0!important;word-break:break-all;resize:vertical!important}
.fapt-category-stack{display:grid;gap:22px}
.fapt-category-box,.fapt-category-box *{box-sizing:border-box;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.fapt-category-box{border:1px solid #dfe6f2;border-radius:16px;padding:26px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);box-shadow:0 12px 32px rgba(15,23,42,.08)}
.fapt-category-head{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.fapt-category-head strong{display:block;font-size:22px;font-weight:700;line-height:1.12;color:#0f172a;margin:0 0 6px;letter-spacing:-0.2px}
.fapt-category-head small{display:block;font-size:14px;font-weight:400;color:#556274;line-height:1.35}
.fapt-category-mark{width:56px!important;height:56px!important;border-radius:10px;display:flex!important;align-items:center;justify-content:center;font-size:30px!important;line-height:1!important;flex:0 0 56px}
.fapt-category-mark:before{line-height:1!important}
.fapt-checks{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(188px,1fr));gap:14px 22px;padding:0;margin:0}
.fapt-checks .fapt-check{display:flex!important;align-items:center;gap:11px;min-width:0;min-height:48px;margin:0!important;border:1px solid #b8caff;border-radius:7px;background:#fff;padding:10px 14px!important;font-size:14px!important;font-weight:600;color:#101828;line-height:1.2;cursor:pointer;box-shadow:0 1px 0 rgba(15,23,42,.02);transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.fapt-checks .fapt-check:hover{transform:translateY(-1px);border-color:#7e9cff;box-shadow:0 7px 18px rgba(49,91,232,.1)}
.fapt-checks .fapt-check input{appearance:none;-webkit-appearance:none;width:18px;height:18px;flex:0 0 18px;margin:0!important;border:1.5px solid #c6cfdd;border-radius:4px;background:#fff;display:grid;place-content:center}
.fapt-checks .fapt-check input:checked{border-color:#315be8;background:#315be8}
.fapt-checks .fapt-check input:checked:after{content:"";width:8px;height:5px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg);margin-top:-1px}
.fapt-checks .fapt-check .fapt-check-icon{width:24px;height:24px;font-size:24px!important;line-height:1!important;color:#315be8;flex:0 0 24px}
.fapt-checks .fapt-check .fapt-check-icon:before{line-height:1!important}
.fapt-checks .fapt-check .fapt-check-text{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fapt-category-box.is-include .fapt-category-mark{background:#edf3ff;color:#315be8;box-shadow:inset 0 0 0 1px #d7e2ff}
.fapt-category-box.is-exclude .fapt-category-mark{background:#fff1f1;color:#ef3f4c;box-shadow:inset 0 0 0 1px #ffd9d9}
.fapt-category-box.is-exclude .fapt-checks .fapt-check{border-color:#ffc7cc;color:#991b1f}
.fapt-category-box.is-exclude .fapt-checks .fapt-check:hover{border-color:#fb7185;box-shadow:0 7px 18px rgba(239,63,76,.1)}
.fapt-category-box.is-exclude .fapt-checks .fapt-check input:checked{border-color:#ef3f4c;background:#ef3f4c}
.fapt-category-box.is-exclude .fapt-checks .fapt-check .fapt-check-icon{color:#ef3f4c}
.fapt-checks .fapt-check:has(input:checked){background:#f6f8ff;border-color:#5f7df6;box-shadow:0 0 0 2px rgba(59,99,243,.08)}
.fapt-category-box.is-exclude .fapt-checks .fapt-check:has(input:checked){background:#fff7f7;border-color:#ef3f4c;box-shadow:0 0 0 2px rgba(239,63,76,.09)}
.fapt-custom-categories{display:grid;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid #eef2f6}
.fapt-custom-category-list{display:flex;flex-wrap:wrap;gap:8px}
.fapt-custom-category-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;min-height:34px;padding:7px 8px 7px 10px;border:1px solid #d8e2ff;border-radius:8px;background:#f8fbff;color:#172033;box-shadow:0 2px 8px rgba(49,91,232,.06)}
.fapt-custom-category-chip>.dashicons{width:16px;height:16px;font-size:16px;color:#315be8;line-height:1}
.fapt-custom-category-chip strong{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700;line-height:1.2;letter-spacing:0}
.fapt-custom-category-chip button{width:20px;height:20px;display:grid;place-items:center;border:0;border-radius:50%;background:#eef2ff;color:#4f46e5;font-size:17px;line-height:1;cursor:pointer;padding:0}
.fapt-custom-category-chip button:hover{background:#ef4444;color:#fff}
.fapt-custom-category-add{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:10px;align-items:center}
.fapt-custom-category-add input{height:42px;border:1px solid #dfe4ea;border-radius:9px;background:#fff;padding:0 12px;color:#344054;font:inherit;font-size:13px;outline:none}
.fapt-custom-category-add input:focus{border-color:#928cff;box-shadow:0 0 0 3px rgba(99,91,255,.09)}
.fapt-custom-category-add button{height:42px;border:0;border-radius:9px;background:#315be8;color:#fff;font:inherit;font-size:12px;font-weight:750;padding:0 16px;cursor:pointer;box-shadow:0 7px 16px rgba(49,91,232,.18)}
.fapt-custom-category-add button:hover{background:#244bd3}
.fapt-guide-panel{overflow:hidden}
.fapt-guide-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:16px;align-items:start}
.fapt-guide-form{display:grid;gap:16px}
.fapt-guide-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0;align-items:start}
.fapt-guide-pair>.fapt-guide-field{min-width:0}
.fapt-guide-presets{display:flex;flex-wrap:wrap;gap:8px}
.fapt-guide-preset{appearance:none;-webkit-appearance:none;border:1px solid #d8e0ee;border-radius:999px;background:#fff;color:#344054!important;opacity:1!important;font:inherit;font-size:12px;font-weight:700;line-height:1;min-height:34px;height:auto;padding:0 13px;cursor:pointer;box-shadow:0 4px 12px rgba(15,23,42,.04);transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease,color .16s ease;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;align-self:flex-start;white-space:nowrap}
.fapt-guide-preset:hover,.fapt-guide-preset:focus,.fapt-guide-preset:focus-visible{border-color:#7b79ff;background:#f7f7ff;color:#1f2937!important;opacity:1!important;box-shadow:0 8px 18px rgba(99,91,255,.12);transform:translateY(-1px);outline:none}
.fapt-guide-preset.is-primary{background:#635bff;border-color:#635bff;color:#fff!important;box-shadow:0 10px 20px rgba(99,91,255,.18)}
.fapt-guide-preset.is-primary:hover,.fapt-guide-preset.is-primary:focus,.fapt-guide-preset.is-primary:focus-visible{background:#5346f0;border-color:#5346f0;color:#fff!important}
.fapt-length-field{display:grid;gap:6px}
.fapt-length-field>span{display:block;font-size:12px;font-weight:600;color:#172033;line-height:1.2}
.fapt-length-field>small{display:block;font-size:10px;color:#667085;line-height:1.3}
.fapt-length-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fapt-length-option{position:relative;display:grid;gap:5px;padding:12px 12px 11px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;cursor:pointer;box-shadow:0 4px 12px rgba(15,23,42,.04);transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.fapt-length-option:hover{border-color:#8a92ff;box-shadow:0 8px 18px rgba(99,91,255,.1);transform:translateY(-1px)}
.fapt-length-option input{position:absolute;inset:0;opacity:0;pointer-events:none}
.fapt-length-option strong{display:block;font-size:13px;font-weight:750;line-height:1.2;color:#101828}
.fapt-length-option small{display:block;font-size:10px;line-height:1.45;color:#667085}
.fapt-length-option.is-active,.fapt-length-option:has(input:checked){border-color:#635bff;background:#f7f7ff;box-shadow:0 0 0 2px rgba(99,91,255,.12)}
.fapt-guide-field{display:grid;gap:10px;align-content:start;justify-items:stretch}
.fapt-guide-field>.fap-field{width:100%;min-width:0}
.fapt-guide-field textarea{width:100%;min-height:122px;resize:vertical}
.fapt-guide-preset-row{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;align-content:flex-start;width:100%}
.fapt-guide-preset-row .fapt-guide-preset{min-height:30px;font-size:11px;padding:0 11px;flex:0 0 auto}
.fapt-guide-side{display:grid;gap:12px}
.fapt-guide-summary{border:1px solid #e5eaf3;border-radius:14px;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);padding:16px 16px 15px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.fapt-guide-summary strong{display:block;font-size:13px;line-height:1.3;font-weight:750;color:#101828;margin-bottom:3px}
.fapt-guide-summary small{display:block;font-size:10px;line-height:1.3;color:#667085;margin-bottom:9px}
.fapt-guide-summary p{margin:0;color:#475467;font-size:12px;line-height:1.6}
.fap-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.fapt-log-list{display:grid;gap:9px}
.fapt-log{display:grid;grid-template-columns:10px 1fr;gap:9px;border-top:1px solid #f0f2f5;padding-top:10px}
.fapt-log:first-child{border-top:0;padding-top:0}
.fapt-log>span{width:8px;height:8px;border-radius:50%;background:#98a2b3;margin-top:5px}
.fapt-log>span.success{background:#12b76a}
.fapt-log>span.warning{background:#f79009}
.fapt-log>span.error{background:#d92d20}
.fapt-log strong{display:block;font-size:11px;color:#172033}
.fapt-log small{display:block;font-size:9px;color:#98a2b3;margin-top:2px}
.fapt-table td strong{display:block;font-size:12px}
.fapt-table td small{display:block;font-size:10px;color:#667085;margin-top:3px}
.fapt-table .fap-chip{text-transform:capitalize}
.fapt-table button.fap-mini-action{border:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.fapt-table td:last-child{min-width:190px}
.fapt-table td:last-child .fap-inline-form,.fapt-table td:last-child button.fap-mini-action{display:inline-flex;margin:2px 4px 2px 0}
.fapt-trend-thumb{width:58px;height:58px;border-radius:10px;object-fit:cover;display:block;border:1px solid #e2e8f0;box-shadow:0 4px 12px rgba(15,23,42,.08)}
.fap-mini-action.image{background:#eef4ff!important;color:#155eef!important;border:0!important;border-radius:8px!important;padding:8px 10px!important;font-size:12px!important;font-weight:600!important;box-shadow:0 4px 12px rgba(21,94,239,.08)!important}
.fap-mini-action.image:hover{background:#155eef!important;color:#fff!important}
.fapt-draft-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:18px}
.fapt-draft-grid strong{display:block;font-size:11px;color:#172033;margin:0 0 6px}
.fapt-draft-grid p{margin:0 0 14px;color:#475467;font-size:12px;line-height:1.65}
.fapt-draft-grid .fapt-caption{white-space:normal;color:#172033}
.fapt-draft-modal{width:min(860px,calc(100vw - 34px));max-height:min(760px,calc(100vh - 34px));border:1px solid #dfe6f2;border-radius:18px;padding:0;background:#fff;color:#0f172a;box-shadow:0 28px 90px rgba(15,23,42,.22);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}
.fapt-draft-modal::backdrop{background:rgba(15,23,42,.48);backdrop-filter:blur(3px)}
.fapt-draft-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px 16px;border-bottom:1px solid #eef2f6;background:linear-gradient(180deg,#fff,#fbfdff)}
.fapt-draft-modal-head>div{min-width:0;flex:1}
.fapt-draft-modal-head h2{margin:5px 0 0;font-size:22px;font-weight:700;letter-spacing:-.2px;line-height:1.25;color:#0f172a}
.fapt-modal-close{appearance:none!important;-webkit-appearance:none!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;padding:0!important;border:1px solid #e2e8f0!important;border-radius:50%!important;background:#fff!important;color:#64748b!important;display:grid!important;place-items:center!important;align-self:flex-start!important;flex:0 0 38px!important;cursor:pointer;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;line-height:1!important;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.fapt-modal-close svg{width:18px!important;height:18px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:2.2!important;stroke-linecap:round!important}
.fapt-modal-close:hover{background:#ef4444!important;border-color:#ef4444!important;color:#fff!important;box-shadow:0 10px 20px rgba(239,68,68,.22)!important;transform:translateY(-1px)}
.fapt-modal-close:active{transform:translateY(0);box-shadow:0 1px 2px rgba(15,23,42,.04)!important}
.fapt-draft-modal-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:14px 26px;border-bottom:1px solid #eef2f6;color:#64748b;font-size:11px}
.fapt-draft-modal-body{display:grid;gap:14px;padding:22px 26px;max-height:450px;overflow:auto}
.fapt-draft-modal-body section{border:1px solid #edf1f6;border-radius:12px;background:#fff;padding:14px 15px}
.fapt-draft-image-section img{display:block;width:100%;max-height:330px;object-fit:cover;border-radius:10px;border:1px solid #e2e8f0}
.fapt-draft-image-section small{display:block;margin-top:8px;color:#667085;font-size:11px}
.fapt-draft-modal-body strong{display:block;margin:0 0 8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8a94a6}
.fapt-draft-modal-body p{margin:0;color:#344054;font-size:13px;font-weight:400;line-height:1.65;white-space:normal}
.fapt-draft-modal-body .fapt-caption{color:#172033;white-space:normal}
.fapt-draft-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 26px;border-top:1px solid #eef2f6;background:#fff}
.fapt-draft-modal-actions .fap-inline-form{display:inline-flex;margin:0}
.fapt-draft-modal-actions .fap-mini-action{border:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.fapt-draft-modal-actions .fap-secondary-btn[data-fapt-modal-close]{background:#fff!important;border:1px solid #dfe6f2!important;color:#344054!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important}
.fapt-draft-modal-actions .fap-secondary-btn[data-fapt-modal-close]:hover{background:#ef4444!important;border-color:#ef4444!important;color:#fff!important;box-shadow:0 10px 20px rgba(239,68,68,.2)!important}
.fapt-toast{position:fixed;right:20px;bottom:20px;z-index:9999;min-width:300px;max-width:min(420px,calc(100vw - 24px));display:flex;gap:12px;align-items:flex-start;padding:14px 14px 13px;border-radius:16px;background:#0f172a;color:#fff;box-shadow:0 20px 50px rgba(15,23,42,.24);border:1px solid rgba(255,255,255,.08);transform:translateY(12px);opacity:0;pointer-events:none;transition:.2s ease}
.fapt-toast.is-visible{transform:none;opacity:1;pointer-events:auto}
.fapt-toast.is-success{background:linear-gradient(135deg,#0f172a 0%,#111827 100%)}
.fapt-toast.is-error{background:linear-gradient(135deg,#7f1d1d 0%,#991b1b 100%)}
.fapt-toast-mark{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.1);color:#86efac}
.fapt-toast-mark svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.fapt-toast-copy{min-width:0;flex:1}
.fapt-toast-copy strong{display:block;font-size:13px;line-height:1.35;font-weight:750;letter-spacing:-.01em}
.fapt-toast-copy span{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:#cbd5e1}
.fapt-toast-actions{display:flex;align-items:center;gap:8px;margin-top:11px}
.fapt-toast-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 10px;border-radius:10px;background:#fff;color:#111827!important;text-decoration:none!important;font-size:11px;font-weight:700}
.fapt-toast-close{appearance:none;-webkit-appearance:none;border:0;background:none;color:#e2e8f0;font-size:20px;line-height:1;cursor:pointer;padding:0 0 0 6px;flex:0 0 auto}
.fapt-toast.is-error .fapt-toast-mark{color:#fecaca}
.fapt-action-loading{opacity:.65;pointer-events:none}
@media(max-width:1100px){.fapt-grid,.fapt-integrations-grid{grid-template-columns:1fr!important}.fapt-checks{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}
@media(max-width:760px){.fapt-draft-grid{grid-template-columns:1fr}.fapt-draft-modal-head,.fapt-draft-modal-meta,.fapt-draft-modal-body,.fapt-draft-modal-actions{padding-left:18px;padding-right:18px}.fapt-draft-modal-actions{align-items:stretch;flex-direction:column}.fapt-draft-modal-actions .fap-secondary-btn,.fapt-draft-modal-actions .fap-mini-action{width:100%}}
@media(max-width:640px){.fapt-toast{left:12px;right:12px;bottom:12px;min-width:0;max-width:none}.fapt-panel-head-with-toggle{align-items:flex-start!important;flex-direction:column}.fapt-automation-toggle{width:100%;justify-content:flex-start}.fapt-automation-copy small{white-space:normal}.fapt-custom-category-add{grid-template-columns:1fr}.fapt-custom-category-add button{width:100%}.fapt-guide-grid,.fapt-guide-pair,.fap-form-grid.two,.fapt-length-group{grid-template-columns:1fr}}
@media(max-width:640px){.fapt-checks{grid-template-columns:1fr}}
