/* =====================================================================
   فینارا — لایه طراحی (روی app.css). توکن‌ها، نوار بالا، ناوبری، کارت‌ها، جدول‌ها و رابط ایجنت‌ها.
   ===================================================================== */
:root{
  --bg:#f3f5fa; --surface:#fff; --ink:#0f1b33; --ink2:#33415c; --muted:#6a7891; --line:#e4e8f1; --line2:#eef1f6;
  --brand:#2f5be7; --brand2:#2249c9; --pale:#eef3ff;
  --ai:#6a4cf5; --ai2:#5638e0; --aibg:#f3f0ff; --ailine:#e2dbff;
  --mint:#0b9a73; --mintbg:#e8f8f1; --orange:#c47612; --orangebg:#fff6e8; --red:#d0414a; --redbg:#fff1f1;
  --radius:14px; --radius-sm:10px;
  --shadow:0 1px 2px rgba(16,24,40,.04),0 6px 20px rgba(16,24,40,.045);
  --shadow-lg:0 20px 50px rgba(15,27,51,.16);
  --topbar:60px;
}
body{background:var(--bg);color:var(--ink);font-size:13px;-webkit-font-smoothing:antialiased;font-feature-settings:"ss01"}
.fx-i{width:18px;height:18px;flex:none}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* ---------------- top bar ---------------- */
.bm-head{display:none!important}
.fx-top{position:sticky;top:0;z-index:40;height:var(--topbar);display:flex;align-items:center;gap:18px;padding:0 20px;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.fx-brand{display:flex;align-items:center;gap:10px;min-width:max-content}
.fx-mark svg{width:32px;height:32px;display:block}
.fx-brand strong{display:block;font-size:17px;font-weight:900;letter-spacing:-.2px;line-height:1.2}
.fx-brand small{display:block;font-size:10.5px;color:var(--muted);line-height:1.4;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fx-tabs{display:flex;gap:4px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.fx-tabs::-webkit-scrollbar{display:none}
.fx-tabs button{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--ink2);font-weight:700;font-size:12.5px;padding:8px 12px;border-radius:10px;white-space:nowrap;transition:background .15s,color .15s}
.fx-tabs button:hover:not(:disabled){background:#f1f4fa;color:var(--ink)}
.fx-tabs button.on{background:var(--pale);color:var(--brand)}
.fx-tabs button .fx-i{width:17px;height:17px;opacity:.85}
.fx-tabs button small{font-size:9.5px;background:#eef1f6;color:#8390a5;border-radius:6px;padding:1px 6px;font-weight:700}
.fx-tabs button:disabled{opacity:.55;cursor:default}
.fx-tabs .fx-ai-tab{color:var(--ai)}
.fx-tabs .fx-ai-tab.on{background:var(--aibg);color:var(--ai2)}
.fx-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.fx-ask{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:11px;padding:9px 14px;font-weight:800;font-size:12.5px;color:#fff;background:linear-gradient(135deg,#3d6bff,#7b5cff);box-shadow:0 6px 16px rgba(106,76,245,.28);white-space:nowrap}
.fx-ask:hover{filter:brightness(1.06)}
.fx-iconbtn{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;border:1px solid var(--line);background:#fff;color:var(--ink2)}
.fx-iconbtn:hover{border-color:#cfd6e4}
.fx-iconbtn.urgent{color:var(--red)}
.fx-badge{position:absolute;top:-5px;inset-inline-start:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;border:2px solid #fff}
.fx-user{position:relative}
.fx-avatar{width:38px;height:38px;border-radius:50%;border:0;background:linear-gradient(135deg,#e6ecff,#efe9ff);color:var(--brand2);font-weight:900;font-size:15px}
.fx-menu{position:absolute;top:46px;inset-inline-end:0;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);padding:6px;z-index:60}
.fx-menu-head{padding:10px 12px 9px;border-bottom:1px solid var(--line2);margin-bottom:4px}
.fx-menu-head b{display:block;font-size:12.5px;text-align:right}
.fx-menu-head small{color:var(--muted);font-size:11px}
.fx-menu button{display:flex;align-items:center;gap:9px;width:100%;border:0;background:none;padding:9px 12px;border-radius:9px;color:var(--ink2);font-weight:700;text-align:right}
.fx-menu button:hover{background:#f3f5fa}
.fx-burger{display:none;border:0;background:none;color:var(--ink2);width:36px;height:36px;border-radius:10px;place-items:center}

/* ---------------- shell: sidebar + main ---------------- */
.app{min-height:calc(100vh - var(--topbar))}
.sidebar{top:var(--topbar);height:calc(100vh - var(--topbar));width:232px;min-width:232px;background:#fff;color:var(--ink2);border-inline-start:0;border-inline-end:1px solid var(--line);padding:22px 12px;gap:18px;overflow-y:auto}
.sidebar .identity{padding:0 10px}
.sidebar .identity .logo{width:36px;height:36px;border-radius:11px;background:var(--pale);color:var(--brand);box-shadow:none}
.sidebar .identity .logo svg{width:19px;height:19px}
.sidebar .identity strong{font-size:15px;color:var(--ink);font-weight:900}
.sidebar .identity small{color:var(--muted)}
.sidebar .navlabel{color:#94a0b4;font-weight:700}
.sidebar .nav{gap:2px}
.sidebar .nav button{color:var(--ink2);font-weight:650;padding:9px 12px;border-radius:10px;gap:10px;font-size:12.5px}
.sidebar .nav button:hover{background:#f3f5fa;color:var(--ink)}
.sidebar .nav button.active{background:var(--pale);color:var(--brand);font-weight:800}
.sidebar .userbox,.sidebar .sidefoot{display:none}
.main{width:calc(100% - 232px);padding:28px clamp(18px,3.2vw,44px) 56px}
.content{max-width:1360px}
.fx-mod-agent .sidebar .identity .logo{background:var(--aibg);color:var(--ai)}
.fx-mod-agent .sidebar .nav button.active{background:var(--aibg);color:var(--ai2)}

/* pages whose sidebar has no navigation (dashboard) use the full width */
.app > .sidebar:not(:has(.nav)){display:none}
.app > .sidebar:not(:has(.nav)) + .main{width:100%}

/* first-level section tabs repeat the sidebar on desktop; keep them only where the sidebar is hidden */
@media (min-width:901px){.pr-tabs:has(> [data-psub]),.pr-tabs:has(> [data-asub]),.pr-tabs:has(> [data-tsub]){display:none}}

/* ---------------- headings, panels, buttons, tables ---------------- */
.top{margin-bottom:22px}
.top h1{font-size:24px;letter-spacing:-.4px}
.overline{color:var(--brand)}
.panel{border-radius:var(--radius);border-color:var(--line);box-shadow:var(--shadow)}
.panel h2{font-size:15px}
.metric{border-radius:var(--radius)}
.btn{border-radius:10px;font-weight:750;box-shadow:none}
.btn:hover{transform:none;border-color:#cdd5e3;background:#fafbfd}
.btn-primary{background:var(--brand);border-color:var(--brand);box-shadow:0 4px 12px rgba(47,91,231,.18)}
.btn-primary:hover{background:var(--brand2);border-color:var(--brand2)}
.btn-ai{background:var(--ai);border-color:var(--ai);color:#fff;box-shadow:0 4px 12px rgba(106,76,245,.22)}
.btn-ai:hover{background:var(--ai2);border-color:var(--ai2)}
.btn-ghost-danger{color:var(--red);background:#fff;border-color:#f3d6d8}
.btn-ghost-danger:hover{background:var(--redbg);border-color:#ecc0c3}
.table th{background:#f8f9fc;color:#7a879c;font-weight:750}
.table td{border-bottom-color:var(--line2)}
.tag{border-radius:6px}
.toast{border-radius:12px!important}
.modal{border-radius:18px}
.field input,.field select,.field textarea{border-color:#dfe4ee;border-radius:10px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#8aa3f0;box-shadow:0 0 0 3px #e9efff}
.dash-t{border-radius:var(--radius)!important;box-shadow:var(--shadow)!important}
.dash-ic{font-size:0!important}
.dash-ic .fx-i{width:20px;height:20px}

/* ---------------- login ---------------- */
.login-wrap{background:radial-gradient(1200px 500px at 80% -10%,#e9e5ff 0,transparent 60%),radial-gradient(900px 500px at 0% 110%,#e3ecff 0,transparent 55%),var(--bg)}
.login-card{border-radius:20px;box-shadow:var(--shadow-lg)}
.fx-login-brand .logo{background:linear-gradient(135deg,#3d6bff,#7b5cff)!important;color:#fff}

/* =====================================================================
   Agents UI
   ===================================================================== */
.fx-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.fx-head h1{margin:0;font-size:24px;font-weight:900;letter-spacing:-.4px}
.fx-head p{margin:5px 0 0;color:var(--muted);font-size:12.5px}
.fx-head .fx-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.fx-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 11px;font-size:11.5px;font-weight:750;border:1px solid var(--line);background:#fff;color:var(--ink2)}
.fx-pill i{width:8px;height:8px;border-radius:50%;background:#aab3c3;display:inline-block}
.fx-pill.ok i{background:var(--mint)} .fx-pill.warn i{background:var(--orange)} .fx-pill.bad i{background:var(--red)}
.fx-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.fx-kpi{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:15px 17px;box-shadow:var(--shadow);display:flex;gap:12px;align-items:center}
.fx-kpi .fx-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--pale);color:var(--brand);flex:none}
.fx-kpi .fx-ic.ai{background:var(--aibg);color:var(--ai)} .fx-kpi .fx-ic.red{background:var(--redbg);color:var(--red)} .fx-kpi .fx-ic.green{background:var(--mintbg);color:var(--mint)}
.fx-kpi span{display:block;color:var(--muted);font-size:11.5px;font-weight:650}
.fx-kpi b{display:block;font-size:22px;font-weight:900;line-height:1.35}
.fx-kpi em{font-style:normal;font-size:11px;color:var(--muted)}
.fx-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,1fr);gap:16px;align-items:start}
.fx-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.fx-card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line2)}
.fx-card-h h2{margin:0;font-size:14.5px;font-weight:850}
.fx-card-b{padding:14px 18px}
.fx-seg{display:flex;gap:4px;background:#f1f3f8;border-radius:10px;padding:3px;flex-wrap:wrap}
.fx-seg button{border:0;background:none;padding:6px 11px;border-radius:8px;font-weight:700;font-size:12px;color:var(--ink2)}
.fx-seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(16,24,40,.08)}
.fx-seg button small{color:var(--muted);font-weight:700;margin-inline-start:3px}
.fx-empty{text-align:center;padding:42px 20px;color:var(--muted)}
.fx-empty .fx-ic{width:52px;height:52px;margin:0 auto 10px;border-radius:16px;background:var(--mintbg);color:var(--mint);display:grid;place-items:center}
.fx-empty h3{margin:0 0 4px;color:var(--ink);font-size:15px}
.fx-skel{height:14px;border-radius:7px;background:linear-gradient(90deg,#eef1f6,#f7f8fb,#eef1f6);background-size:200% 100%;animation:fxsk 1.2s infinite linear;margin:10px 0}
@keyframes fxsk{to{background-position:-200% 0}}

/* task cards */
.fx-tasks{display:grid;gap:10px;padding:12px}
.fx-task{border:1px solid var(--line);border-radius:12px;padding:13px 15px;background:#fff;transition:border-color .15s,box-shadow .15s}
.fx-task:hover{border-color:#d5dcea;box-shadow:0 2px 10px rgba(16,24,40,.05)}
.fx-task.p2{border-inline-start:3px solid var(--red)} .fx-task.p1{border-inline-start:3px solid var(--orange)}
.fx-task.done{opacity:.75;background:#fbfcfd}
.fx-task-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:var(--muted)}
.fx-chip{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:3px 8px;font-size:11px;font-weight:750;background:#f1f3f8;color:var(--ink2)}
.fx-chip.ai{background:var(--aibg);color:var(--ai2)} .fx-chip.red{background:var(--redbg);color:var(--red)} .fx-chip.orange{background:var(--orangebg);color:var(--orange)} .fx-chip.green{background:var(--mintbg);color:var(--mint)}
.fx-chip .fx-i{width:13px;height:13px}
.fx-task h3{margin:8px 0 6px;font-size:13.5px;font-weight:850;line-height:1.7}
.fx-task p.fx-sum{margin:0;color:var(--ink2);font-size:12px;line-height:1.9;white-space:pre-line}
.fx-conf{display:inline-flex;align-items:center;gap:6px;margin-inline-start:auto}
.fx-conf .bar{width:58px;height:6px;border-radius:3px;background:#eceff5;overflow:hidden}
.fx-conf .bar i{display:block;height:100%;border-radius:3px;background:var(--mint)}
.fx-conf.mid .bar i{background:var(--orange)} .fx-conf.low .bar i{background:var(--red)}
.fx-lines{width:100%;border-collapse:collapse;margin:8px 0 4px;font-size:12px}
.fx-lines th{font-size:10.5px;color:var(--muted);font-weight:700;text-align:right;padding:5px 8px;border-bottom:1px solid var(--line2)}
.fx-lines td{padding:6px 8px;border-bottom:1px dashed var(--line2)}
.fx-lines td.n{text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}
.fx-lines td small{display:block;color:var(--muted);font-size:10.5px}
.fx-lines tr:last-child td{border-bottom:0}
.fx-notes{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:3px}
.fx-notes li{font-size:11.5px;color:#8a5a12;background:var(--orangebg);border-radius:7px;padding:4px 9px}
.fx-notes li.w{color:var(--red);background:var(--redbg)}
.fx-task-act{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.fx-task-act .btn{min-height:34px;padding:6px 12px;font-size:12px}
.fx-task-res{margin-top:8px;font-size:11.5px;color:var(--muted)}

/* agents roster + activity */
.fx-agents{display:grid;gap:2px;padding:6px}
.fx-agent{display:flex;gap:11px;align-items:flex-start;padding:10px 12px;border-radius:10px}
.fx-agent:hover{background:#f7f8fb}
.fx-agent .fx-ic{width:34px;height:34px;border-radius:10px;background:var(--aibg);color:var(--ai);display:grid;place-items:center;flex:none;font-size:16px}
.fx-agent b{font-size:12.5px;display:block}
.fx-agent span{font-size:11.5px;color:var(--muted);line-height:1.8;display:block}
.fx-agent .fx-on{margin-inline-start:auto;font-size:10.5px;font-weight:800;color:var(--mint);white-space:nowrap}
.fx-agent .fx-on.off{color:#a0a9b8}
.fx-feed{list-style:none;margin:0;padding:6px 12px 12px}
.fx-feed li{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;padding:9px 6px;border-bottom:1px solid var(--line2);font-size:12px}
.fx-feed li:last-child{border-bottom:0}
.fx-feed .dot{width:8px;height:8px;border-radius:50%;background:var(--ai);margin-top:7px}
.fx-feed .dot.err{background:var(--red)}
.fx-feed small{grid-column:2;color:var(--muted);font-size:11px}
.fx-runs td{font-size:12px}
.fx-runs .fx-in{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fx-runs tr.open td{background:#fafbff}
.fx-run-detail{white-space:pre-wrap;font-size:12px;line-height:1.9;color:var(--ink2);background:#f8f9fc;border-radius:10px;padding:10px 12px}

.fx-kpis.k3{grid-template-columns:repeat(3,minmax(0,1fr))}.fx-kpis.k4{grid-template-columns:repeat(4,minmax(0,1fr))}
.fx-split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:14px;padding:6px 0}
.fx-form2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:1180px){.fx-kpis.k4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.fx-kpis.k3,.fx-kpis.k4,.fx-split,.fx-form2{grid-template-columns:1fr}.fx-form2>*{grid-column:auto!important}}
/* settings */
.fx-set{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fx-toggle{position:relative;display:inline-block;vertical-align:middle;width:38px;height:22px;flex:none}
.fx-toggle input{opacity:0;width:0;height:0;position:absolute}
.fx-toggle span{position:absolute;inset:0;border-radius:11px;background:#d5dbe6;transition:.2s;cursor:pointer}
.fx-toggle span:after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.fx-toggle input:checked+span{background:var(--ai)}
.fx-toggle input:checked+span:after{inset-inline-start:19px}
.fx-toggle input:focus-visible+span{outline:2px solid var(--ai);outline-offset:2px}
.fx-code{direction:ltr;text-align:left;background:#0f1b33;color:#dfe6ff;border-radius:10px;padding:10px 12px;font-family:ui-monospace,Menlo,Consolas,monospace!important;font-size:12px;white-space:pre-wrap;line-height:1.7}

/* ---------------- chat ---------------- */
.fx-chat{display:flex;flex-direction:column;min-height:0;height:100%}
.fx-msgs{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
.fx-msg{max-width:88%;font-size:13px;line-height:2}
.fx-msg.u{align-self:flex-start;background:var(--brand);color:#fff;padding:9px 14px;border-radius:14px 14px 4px 14px}
.fx-msg.a{align-self:flex-end;background:#fff;border:1px solid var(--line);padding:10px 14px;border-radius:14px 14px 14px 4px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.fx-msg.a .fx-li{display:block;padding-inline-start:12px;position:relative}
.fx-msg.a .fx-li:before{content:"";position:absolute;inset-inline-start:0;top:.85em;width:5px;height:5px;border-radius:50%;background:var(--ai)}
.fx-msg .fx-meta{display:flex;gap:6px;align-items:center;margin-top:6px;font-size:10.5px;color:var(--muted)}
.fx-msg.err{border-color:#f1c9cc;background:var(--redbg)}
.fx-steps{display:flex;flex-direction:column;gap:5px;align-self:flex-end}
.fx-step{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;color:var(--ai2);background:var(--aibg);border-radius:8px;padding:4px 10px}
.fx-step.done{color:var(--mint);background:var(--mintbg)}
.fx-step .spin{width:11px;height:11px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:fxspin .8s linear infinite}
@keyframes fxspin{to{transform:rotate(360deg)}}
.fx-msg .fx-task{margin-top:8px;background:#fcfcff}
.fx-sugg{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;padding:4px 10px 10px}
.fx-sugg button{border:1px solid var(--ailine);background:#fff;color:var(--ai2);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700}
.fx-sugg button:hover{background:var(--aibg)}
.fx-hello{text-align:center;padding:26px 16px 8px}
.fx-hello .fx-orb{width:56px;height:56px;margin:0 auto 10px;border-radius:18px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#3d6bff,#7b5cff);box-shadow:0 10px 26px rgba(106,76,245,.3)}
.fx-hello .fx-orb .fx-i{width:28px;height:28px}
.fx-hello h3{margin:0;font-size:16px}
.fx-hello p{margin:4px 0 0;color:var(--muted);font-size:12px}
.fx-input{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--line);background:#fff}
.fx-input textarea{flex:1;resize:none;border:1px solid #dfe4ee;border-radius:12px;padding:9px 12px;min-height:42px;max-height:140px;outline:none;line-height:1.8;font-size:13px}
.fx-input textarea:focus{border-color:#a99bf7;box-shadow:0 0 0 3px #efebff}
.fx-input .fx-send{width:42px;height:42px;border-radius:12px;border:0;background:var(--ai);color:#fff;display:grid;place-items:center;flex:none}
.fx-input .fx-send:disabled{background:#c9c2f2}
.fx-input .fx-attach{width:42px;height:42px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink2);display:grid;place-items:center;flex:none}
.fx-input .fx-send .fx-i{transform:scaleX(-1)}
.fx-chat-page{height:calc(100vh - var(--topbar) - 150px);min-height:480px;overflow:hidden;display:flex;flex-direction:column}
.fx-chat-page .fx-msgs{background:linear-gradient(#fbfbfe,#f7f8fc)}

/* drawer */
.fx-drawer{position:fixed;top:0;bottom:0;inset-inline-end:0;width:min(440px,100vw);background:#f8f9fc;z-index:70;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;transform:translateX(-105%);transition:transform .22s ease;visibility:hidden}
[dir=rtl] .fx-drawer{transform:translateX(-105%)}
.fx-drawer.open{transform:none;visibility:visible}
.fx-drawer-h{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#fff;border-bottom:1px solid var(--line)}
.fx-drawer-h b{font-size:14px}
.fx-drawer-h small{display:block;font-size:11px;color:var(--muted)}
.fx-drawer-h .fx-orb{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#3d6bff,#7b5cff)}
.fx-drawer-h .sp{margin-inline-start:auto;display:flex;gap:6px}
.fx-drawer-h button{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--ink2)}
.fx-scrim{position:fixed;inset:0;background:rgba(15,27,51,.28);z-index:65;opacity:0;pointer-events:none;transition:opacity .2s}
.fx-scrim.open{opacity:1;pointer-events:auto}

/* dashboard strip */
.fx-strip{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:14px;margin:0 0 16px}
.fx-strip .fx-card{overflow:hidden}
.fx-strip-ask{background:linear-gradient(135deg,#f5f3ff,#eef3ff);border-color:var(--ailine)}
.fx-strip-ask form{display:flex;gap:8px;margin-top:10px}
.fx-strip-ask input{flex:1;border:1px solid var(--ailine);border-radius:11px;padding:10px 12px;outline:none;background:#fff}
.fx-strip-ask input:focus{border-color:#a99bf7;box-shadow:0 0 0 3px #efebff}
.fx-strip ul{list-style:none;margin:0;padding:4px 10px 10px}
.fx-strip li button{display:flex;align-items:center;gap:8px;width:100%;text-align:right;border:0;background:none;padding:8px;border-radius:9px;font-size:12.5px;color:var(--ink)}
.fx-strip li button:hover{background:#f6f7fb}
.fx-dot{width:8px;height:8px;border-radius:50%;flex:none;background:#c3cad6}
.fx-dot.p2{background:var(--red)} .fx-dot.p1{background:var(--orange)} .fx-dot.ai{background:var(--ai)}

/* ---------------- responsive ---------------- */
@media (max-width:1180px){.fx-tabs button span{display:none}.fx-tabs button{padding:9px}.fx-tabs .fx-ai-tab span,.fx-tabs button.on span{display:inline}.fx-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:900px){
  .fx-burger{display:grid}
  body.fx-no-subnav .fx-burger,body.fx-no-subnav .sidebar{display:none!important}
  .app{display:block}
  .sidebar{position:fixed;inset-block:var(--topbar) 0;inset-inline-start:0;height:auto;z-index:45;transform:translateX(110%);transition:transform .2s;box-shadow:var(--shadow-lg);display:flex!important;flex-direction:column!important;width:260px!important}
  body.fx-nav-open .sidebar{transform:none}
  .sidebar .nav{flex-direction:column!important}
  .sidebar .nav button{font-size:13px!important;gap:10px!important;padding:10px 12px!important}
  .sidebar .navlabel{display:block!important}
  .main{width:100%;padding:18px 14px 40px}
  .fx-brand small{display:none}
  .fx-strip,.fx-set{grid-template-columns:1fr}
}
@media (max-width:720px){
  .fx-top{height:auto;flex-wrap:wrap;padding:8px 12px;gap:8px;row-gap:6px}
  :root{--topbar:104px}
  .fx-tabs{order:3;flex-basis:100%}
  .fx-tabs button span{display:inline}
  .fx-ask span{display:none}
  .fx-ask{padding:9px 11px}
  .fx-kpis{grid-template-columns:1fr}
  .fx-kpi{padding:12px 14px}
  .fx-head h1,.top h1{font-size:20px}
  .fx-chat-page{height:calc(100vh - var(--topbar) - 120px)}
  .fx-lines{font-size:11.5px}
}
@media print{.fx-top,.fx-drawer,.fx-scrim,.fx-strip{display:none!important}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
