/* FAgents — chỉ phần Aisle không có, đặt SAU aisle.css. Còn lại dùng nguyên component Aisle / Bootstrap. */
.fc-brand { gap: 8px; }                                   /* chữ "FAgents" + ghim FTrack (chưa có file logo FAgents) */
.fc-brand img { display: block; }
.fc-brand .ra-brand__name b { color: var(--ra-brand); font-weight: 700; }
/* Bảng cùng loại (vd. agent của nhiều workspace) thẳng cột: độ rộng cột cố định */
.fc-table-fixed { table-layout: fixed; min-width: 960px; }   /* hẹp hơn thì cuộn ngang, không ép cột chữ đè nhau */
.fc-col-main { width: 230px; }
.fc-col-tag, .fc-col-role, .fc-col-date { width: 170px; }
.fc-col-state { width: 130px; }
.fc-col-num { width: 80px; }
.fc-col-orgs { width: 28%; }
.fc-table-fixed td { overflow-wrap: anywhere; }
.fc-col-act { width: 140px; }
.fc-col-act2 { width: 200px; }
.fc-col-act3 { width: 270px; }   /* Permissions · Edit · Remove (tiếng Anh dài hơn) */
#userPane { --bs-offcanvas-width: 440px; }
.ra-nav__link.is-muted { color: var(--ra-text-soft); pointer-events: none; }
#dlgBody textarea { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; min-height: 120px; } /* kinfo.md */
/* Hộp thoại sửa văn bản dạng mã (SKILL.md, hướng dẫn skill) — Aisle chỉ có .ra-mdedit__source (cao 320px) */
.fc-mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
/* Khung xem bên phải trong Chat (kiểu Claude Design) — Aisle chưa có. Bung khi agent điền Excel / bấm vào file.
   .fc-pv (__head: tên file · trạng thái · nút; __body: iframe preview Microsoft / PDF, ảnh, hoặc .fc-sheet bảng tính live) */
body.ra--v1 .ra-chat.fc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 54%); grid-template-rows: auto minmax(0, 1fr) auto; }
body.ra--v1 .ra-chat.fc-split > .ra-chat__tabs { grid-column: 1; grid-row: 1; }
body.ra--v1 .ra-chat.fc-split > .ra-chat__logs { grid-column: 1; grid-row: 2; }
body.ra--v1 .ra-chat.fc-split > .ra-chat__composer { grid-column: 1; grid-row: 3; }
body.ra--v1 .ra-chat.fc-split > .ra-chat__drop { grid-column: 1; }
.fc-pv { grid-column: 2; grid-row: 1 / -1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--ra-bg-surface); border-left: 1px solid var(--ra-border); }
.fc-pv[hidden] { display: none; }
.fc-pv__head { flex: none; display: flex; align-items: center; gap: 4px; height: 43px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--ra-border); }
.fc-pv__title { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: var(--ra-fs-sm); font-weight: var(--ra-fw-medium); color: var(--ra-text-heading); }
.fc-pv__icon { color: var(--ra-primary-text); }
.fc-pv__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-pv__live { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: var(--ra-fw-medium); color: var(--ra-active-text); background: var(--ra-primary-surface); }
.fc-pv__live[hidden] { display: none; }
.fc-pv__dot { width: 7px; height: 7px; background: var(--ra-primary); border-radius: 50%; animation: fc-pulse 1.2s infinite ease-in-out; }
@keyframes fc-pulse { 50% { opacity: .3; } }
.fc-pv__body { position: relative; flex: 1 1 auto; min-height: 0; background: var(--ra-bg-subtle); }
.fc-pv__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.fc-pv__img { position: absolute; inset: 0; display: grid; place-items: center; overflow: auto; padding: 16px; }
.fc-pv__img img { max-width: 100%; height: auto; box-shadow: 0 1px 4px rgb(0 0 0 / .15); }
.fc-pv__msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: var(--ra-fs-sm); color: var(--ra-text-muted); }
/* Bảng tính live: lưới kiểu Excel, ô agent đang ghi viền màu chính + nhãn "… đang gõ", ô mới ghi nháy nhẹ */
.fc-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--ra-bg-surface); }
.fc-sheet__scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.fc-sheet__wrap { position: relative; display: inline-block; min-width: 100%; }
.fc-sheet__grid { border-collapse: separate; border-spacing: 0; font: 12px/1 Calibri, "Segoe UI", Arial, sans-serif; color: var(--ra-text); }
.fc-sheet__grid th { position: sticky; top: 0; z-index: 1; height: 22px; min-width: 76px; padding: 0 4px; font-weight: 400; color: var(--ra-text-muted); text-align: center; background: var(--ra-bg-subtle); border-right: 1px solid var(--ra-border); border-bottom: 1px solid var(--ra-border); }
.fc-sheet__grid tbody th { left: 0; min-width: 40px; }
.fc-sheet__grid .fc-sheet__corner { left: 0; z-index: 2; min-width: 40px; }
.fc-sheet__grid th.is-on { color: var(--ra-active-text); background: var(--ra-primary-surface); }
.fc-sheet__grid td { height: 22px; min-width: 76px; max-width: 240px; padding: 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-right: 1px solid var(--ra-border); border-bottom: 1px solid var(--ra-border); }
.fc-sheet__grid td.is-num { text-align: right; }
.fc-sheet__grid td.is-on { box-shadow: inset 0 0 0 1px var(--ra-primary); background-image: linear-gradient(color-mix(in srgb, var(--ra-primary) 10%, transparent), color-mix(in srgb, var(--ra-primary) 10%, transparent)); }
.fc-sheet__grid td.is-new { animation: fc-flash 1.4s ease-out; }
@keyframes fc-flash { from { background-color: color-mix(in srgb, var(--ra-primary) 35%, transparent); } }
.fc-sheet__who { position: absolute; z-index: 3; transform: translateY(-100%); padding: 2px 7px; font: 600 10.5px/1.4 var(--ra-font, inherit); color: #fff; white-space: nowrap; background: var(--ra-primary); border-radius: 4px 4px 4px 0; pointer-events: none; }
.fc-sheet__tabs { flex: none; display: flex; align-items: center; gap: 2px; padding: 4px 8px; overflow-x: auto; background: var(--ra-bg-subtle); border-top: 1px solid var(--ra-border); }
.fc-sheet__tab { flex: none; padding: 3px 12px; font-size: 12px; color: var(--ra-text-muted); background: none; border: 0; border-radius: 4px; }
.fc-sheet__tab:hover { color: var(--ra-text); background: var(--ra-bg-hover); }
.fc-sheet__tab.is-active { color: var(--ra-active-text); font-weight: var(--ra-fw-medium); background: var(--ra-bg-surface); box-shadow: inset 0 -2px 0 var(--ra-primary); }
.fc-sheet__note { margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--ra-text-muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .fc-pv__dot, .fc-sheet__grid td.is-new { animation: none; } }
/* Màn hẹp: khung xem phủ toàn màn hình, nút Đóng để quay lại Chat */
@media (max-width: 991.98px) {
  body.ra--v1 .ra-chat.fc-split { display: flex; }
  .fc-pv { position: fixed; inset: 0; z-index: 1045; border-left: 0; padding-top: env(safe-area-inset-top); }
  .fc-pv__btntext { display: none; }
}
/* Trình dựng Flow dạng canvas (kiểu n8n) — Aisle chưa có.
   .fc-flowed (__bar: về · tên · trạng thái · Lưu) > .fc-flow: __stage (canvas chấm, các ô nối mũi tên, công cụ phóng to) | __side (Bắt đầu / sửa bước / Bước tiếp theo là gì?)
   Màu theo loại bước: .fc-c1…5 = --ra-chart-1…5 */
.fc-c1 { --fc-c: var(--ra-chart-1); } .fc-c2 { --fc-c: var(--ra-chart-2); } .fc-c3 { --fc-c: var(--ra-chart-3); } .fc-c4 { --fc-c: var(--ra-chart-4); } .fc-c5 { --fc-c: var(--ra-chart-5); }
.fc-flowed__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--ra-border); }
.fc-flowed__name { width: min(360px, 100%); font-weight: var(--ra-fw-medium); }
.fc-flowed > .alert { margin: 8px 12px 0; }
.fc-flow { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: min(640px, calc(100dvh - 300px)); min-height: 420px; }
.fc-flow__stage { position: relative; min-width: 0; background-color: var(--ra-bg-subtle); background-image: radial-gradient(var(--ra-border-strong, var(--ra-border)) 1px, transparent 1px); background-size: 18px 18px; }
.fc-flow__canvas { position: absolute; inset: 0; display: flex; align-items: center; overflow: auto; outline: 0; }
.fc-flow__canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--ra-focus); }
.fc-flow__inner { display: flex; align-items: flex-start; margin: auto; padding: 40px 48px 56px; transform-origin: left center; transition: transform .15s; }
.fc-flow__cell { display: flex; flex-direction: column; align-items: center; width: 128px; flex: none; }
.fc-flow__node { position: relative; display: grid; place-items: center; width: 76px; height: 76px; padding: 0; color: var(--fc-c, var(--ra-text-muted)); background: var(--ra-bg-surface); border: 1.5px solid var(--ra-border-strong, var(--ra-border)); border-radius: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / .06); cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.fc-flow__node:hover { border-color: var(--fc-c, var(--ra-primary)); transform: translateY(-1px); }
.fc-flow__node.is-active { border-color: var(--fc-c, var(--ra-primary)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fc-c, var(--ra-primary)) 22%, transparent); }
.fc-flow__node:focus-visible { outline: 2px solid var(--ra-focus); outline-offset: 3px; }
.fc-flow__node.is-start { border-radius: 38px 14px 14px 38px; color: var(--ra-primary-text); }
.fc-flow__node.is-drag { opacity: .4; }
.fc-flow__icon { font-size: 28px; }
.fc-flow__num { position: absolute; top: -9px; left: -9px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; font-size: 11px; font-weight: 700; color: #fff; background: var(--fc-c, var(--ra-primary)); border-radius: 11px; }
.fc-flow__bolt { position: absolute; left: -22px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--ra-warning, #e8590c); }
.fc-flow__label { max-width: 124px; margin-top: 10px; font-size: var(--ra-fs-sm); font-weight: var(--ra-fw-medium); line-height: 1.3; color: var(--ra-text-heading); text-align: center; overflow-wrap: anywhere; }
.fc-flow__sub { max-width: 124px; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: var(--ra-text-muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-flow__link { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 76px; margin: 0 -26px; flex: none; z-index: 1; }
.fc-flow__line { position: absolute; left: 0; right: 6px; top: 50%; height: 2px; background: var(--ra-text-soft); }
.fc-flow__line::after { content: ""; position: absolute; right: -7px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ra-text-soft); }
.fc-flow__link.is-tail { width: 40px; margin-right: 0; }
.fc-flow__link.is-tail .fc-flow__line { right: 0; }
.fc-flow__link.is-tail .fc-flow__line::after { display: none; }
.fc-flow__link.is-drop .fc-flow__line { background: var(--ra-primary); height: 4px; }
.fc-flow__plus { position: relative; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; font-size: 11px; color: var(--ra-text-muted); background: var(--ra-bg-surface); border: 1.5px solid var(--ra-border-strong, var(--ra-border)); border-radius: 6px; opacity: 0; transition: opacity .12s; }
.fc-flow__link:hover .fc-flow__plus, .fc-flow__plus:focus-visible, .fc-flow__plus.is-active { opacity: 1; }
.fc-flow__plus:hover, .fc-flow__plus.is-active { color: var(--ra-primary-text); border-color: var(--ra-primary); }
.fc-flow__plus.is-end { width: 32px; height: 32px; margin-top: 22px; font-size: 13px; opacity: 1; flex: none; }
.fc-flow__tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.fc-flow__tool { width: 32px; height: 32px; padding: 0; color: var(--ra-text-muted); background: var(--ra-bg-surface); border: 1px solid var(--ra-border); }
.fc-flow__tool:hover { color: var(--ra-text); background: var(--ra-bg-hover); }
.fc-flow__side { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; background: var(--ra-bg-surface); border-left: 1px solid var(--ra-border); }
.fc-flow__sidehead { padding: 14px 16px 10px; }
.fc-flow__sidetitle { margin: 0 0 2px; font-size: var(--ra-fs-md, 1rem); font-weight: var(--ra-fw-semibold, 600); color: var(--ra-text-heading); }
.fc-flow__form { padding: 0 16px 16px; }
.fc-flow__form .form-label { display: block; width: 100%; margin-bottom: 0; font-size: var(--ra-fs-sm); font-weight: var(--ra-fw-medium); }
.fc-flow__group { padding: 10px 16px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ra-text-soft); }
.fc-flow__types .list-group-item { padding: 10px 16px; font-size: var(--ra-fs-sm); background: transparent; }
.fc-flow__typeicon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; font-size: 15px; color: var(--fc-c); background: color-mix(in srgb, var(--fc-c) 12%, transparent); border-radius: 8px; }
/* Chuỗi bước thu nhỏ trong bảng danh sách flow */
.fc-miniflow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; }
.fc-miniflow__step { display: grid; place-items: center; width: 26px; height: 26px; font-size: 12px; color: var(--fc-c); background: var(--ra-bg-surface); border: 1.5px solid color-mix(in srgb, var(--fc-c) 55%, transparent); border-radius: 7px; }
.fc-miniflow__arrow { width: 12px; height: 2px; background: var(--ra-text-soft); position: relative; }
.fc-miniflow__arrow::after { content: ""; position: absolute; right: -3px; top: -3px; border: 4px solid transparent; border-left: 5px solid var(--ra-text-soft); }
@media (prefers-reduced-motion: reduce) { .fc-flow__inner, .fc-flow__node { transition: none; } }
@media (max-width: 991.98px) {
  .fc-flow { grid-template-columns: 1fr; grid-template-rows: 300px auto; height: auto; }
  .fc-flow__side { border-left: 0; border-top: 1px solid var(--ra-border); }
}
body.ra--v1 .fc-flow__node .fc-flow__icon { color: var(--fc-c, var(--ra-primary-text)); }
body.ra--v1 .fc-flow__node.is-start .fc-flow__icon { color: var(--ra-primary-text); }
.fc-flow__link.is-tail { margin-left: -26px; margin-right: 4px; }

/* Dòng ghi chú + nút (Key API, Thành viên agent): ghi chú co lại, nút giữ một dòng; hẹp thì nút xuống hàng */
.fc-note { flex: 1 1 18rem; min-width: 0; }
/* Danh sách flow: cột các bước co giãn, mô tả cắt 2 dòng (flow dài / mô tả dài không đẩy nút Sửa ra ngoài) */
.fc-flowcell { min-width: 16rem; max-width: 40rem; white-space: normal; }
.fc-flowcell [role="button"] { cursor: pointer; }
.fc-clamp2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
/* Chat: nút chọn (khối ```options) + thanh tiến độ Flow ("[Bước 3/7] …") trong tin agent */
.fc-opts { margin: 8px 0 12px; }
.fc-opts__q { margin-bottom: 6px; font-weight: var(--ra-fw-semibold); }
body.ra--v1 .fc-opt { white-space: normal; text-align: left; }
body.ra--v1 .fc-opt.active { color: var(--ra-active-text); background: var(--ra-green-100); border-color: var(--ra-primary); }
.fc-progress { margin: 0 0 12px; padding: 8px 12px; background: var(--ra-bg-subtle); border: 1px solid var(--ra-border); border-radius: 8px; }
.fc-progress .progress { height: 6px; }
.fc-quote { margin: 0 0 12px; padding: 4px 0 4px 12px; border-left: 3px solid var(--ra-border); color: var(--ra-text-muted, inherit); }
.fc-quote > :last-child { margin-bottom: 0; }
/* Chat: danh sách bước agent đang làm (trong lúc chờ trả lời) */
.fc-steps { margin: 0 0 10px; padding: 8px 12px; font-size: var(--ra-fs-sm); background: var(--ra-bg-subtle); border: 1px solid var(--ra-border); border-radius: 8px; }
.fc-steps__head { margin-bottom: 4px; }
.fc-steps__list { margin: 0; padding: 0; list-style: none; }
.fc-steps__list li { padding: 2px 0; color: var(--ra-text-muted); }
.fc-steps__list li.is-now { color: var(--ra-text); font-weight: var(--ra-fw-medium); }
.fc-steps__ok { color: var(--ra-primary); }
.fc-steps .spinner-border-sm { width: .85rem; height: .85rem; border-width: .15em; vertical-align: -1px; }

/* Chip file trong Chat: cắt giữa tên, giữ đuôi phân biệt phiên bản */
body.ra--v1 .ra-chat__file.fc-file { max-width: min(100%, 420px); }
.fc-fname { display: flex; min-width: 0; }
.fc-fname__head { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-fname__tail { flex: none; white-space: nowrap; }

/* Đánh giá dưới mỗi câu trả lời của agent (Chat) */
.fc-msgfb { display: flex; align-items: center; gap: 2px; margin-top: 8px; opacity: .7; }
.fc-msgfb:hover, .fc-msgfb:focus-within { opacity: 1; }
.fc-msgfb .btn { color: var(--ra-text-soft); }
.fc-msgfb .btn.active { color: var(--ra-primary-text); background: var(--ra-bg-subtle); }
.fc-msgfb__done { margin-left: 6px; font-size: var(--ra-fs-xs); color: var(--ra-text-soft); }
/* Người duyệt xem lại câu trả lời được đánh giá */
.fc-fbctx { margin-top: 4px; font-size: var(--ra-fs-xs); }
.fc-fbctx summary { cursor: pointer; color: var(--ra-text-soft); }
.fc-fbctx__files { margin-top: 4px; }
.fc-fbctx__text { margin-top: 4px; max-height: 220px; overflow: auto; white-space: pre-wrap; padding: 6px 8px; background: var(--ra-bg-subtle); border-radius: var(--ra-radius); }

/* Hạn mức token tháng (menu tài khoản + trang Người dùng) */
.fc-quota { min-width: 240px; font-size: var(--ra-fs-sm); }
.fc-quota__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.fc-quota .progress { height: 6px; }
.fc-quota__sub { margin-top: 4px; font-size: var(--ra-fs-xs); color: var(--ra-text-soft); }
/* Đăng nhập bằng tài khoản Microsoft (dưới form đăng nhập) */
.fc-sso { margin-bottom: 16px; }
.fc-sso + form[hidden] { display: none; }
.fc-sso__or { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--ra-text-soft); font-size: var(--ra-fs-sm); }
.fc-sso__or::before, .fc-sso__or::after { content: ""; flex: 1; border-top: 1px solid var(--ra-border); }
.fc-sso__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

/* Nhắc mở hội thoại mới khi hội thoại đã dài (Chat) */
.fc-ctxhint { display: flex; align-items: flex-start; gap: 10px; margin: 0 16px 8px; padding: 10px 12px; font-size: var(--ra-fs-sm);
  background: var(--ra-bg-subtle); border: 1px solid var(--ra-border); border-radius: var(--ra-radius); }
.fc-ctxhint--strong { border-color: var(--bs-warning-border-subtle, #f0c36d); background: var(--bs-warning-bg-subtle, #fff6e0); }
.fc-ctxhint__icon { margin-top: 3px; color: var(--ra-primary-text); }
.fc-ctxhint--strong .fc-ctxhint__icon { color: var(--bs-warning-text-emphasis, #8a5a00); }
.fc-ctxhint__text { flex: 1; min-width: 0; }
.fc-ctxhint__sub { display: block; margin-top: 2px; font-size: var(--ra-fs-xs); color: var(--ra-text-soft); }
.fc-ctxhint__act { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 575.98px) { .fc-ctxhint { flex-wrap: wrap; } .fc-ctxhint__act { width: 100%; } }

/* Thanh tab Chat: nút Hội thoại mới / Lịch sử chỉ còn icon trong ô vuông — không lẫn với tab hội thoại */
body.ra--v1 .ra-chat__new.fc-chat-iconbtn { width: 32px; height: 32px; padding: 0; justify-content: center; flex: none; align-self: center;
  border: 1px solid var(--ra-border); border-radius: var(--ra-radius); background: var(--ra-bg-subtle); }
body.ra--v1 .ra-chat__new.fc-chat-iconbtn:hover { background: var(--ra-bg-hover); }
.ra-chat__new.fc-chat-iconbtn + .dropdown, .ra-chat__tabs > .dropdown { align-self: center; }

/* Lịch sử hội thoại: Aisle đặt .dropdown-item = flex (xếp ngang) → tên bị ép thành cột hẹp; xếp dọc như thiết kế __histname / __histmeta */
body.ra--v1 .ra-chat__history .dropdown-item { display: block; }

/* Danh sách agent: một bảng, workspace là dòng nhóm */
.fc-col-cat { width: 130px; } .fc-col-ver { width: 120px; } .fc-col-tok { width: 120px; } .fc-col-when { width: 120px; } .fc-col-stat { width: 120px; }
.fc-ws > th { padding: 10px 16px !important; background: var(--ra-bg-subtle) !important; border-top: 1px solid var(--ra-border); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ra-text); }
.fc-ws__row { display: flex; align-items: center; gap: 12px; }
.fc-ws__name { flex: 1; min-width: 0; font-weight: var(--ra-fw-semibold, 600); font-size: var(--ra-fs-sm); }
.fc-ws__count { margin-left: 8px; font-weight: 400; color: var(--ra-text-soft); font-size: var(--ra-fs-xs); }
.fc-ws__desc { margin-left: 8px; font-weight: 400; color: var(--ra-text-soft); font-size: var(--ra-fs-xs); }
.fc-ws__act { display: flex; align-items: center; gap: 2px; flex: none; }

/* Nút Flow trong ô nhập Chat (cạnh đính kèm) */
.fc-flowpick { display: inline-flex; }
/* nút Flow là <button> (nút kẹp giấy là <label>): bỏ nền / viền mặc định của trình duyệt để hai nút giống nhau */
body.ra--v1 button.ra-chat__attach { padding: 0; border: 0; background: transparent; appearance: none; }
body.ra--v1 button.ra-chat__attach:hover, body.ra--v1 button.ra-chat__attach[aria-expanded="true"] { color: var(--ra-text); background: var(--ra-bg-hover); }
body.ra--v1 button.ra-chat__attach:focus { outline: 0; }
body.ra--v1 button.ra-chat__attach:focus-visible { outline: 2px solid var(--ra-focus); outline-offset: 0; }
.fc-flowpick__menu { min-width: 260px; max-width: min(420px, 90vw); }
body.ra--v1 .fc-flowpick__menu .dropdown-item { display: flex; justify-content: space-between; gap: 12px; white-space: normal; }
.fc-flowpick__meta { flex: none; font-size: var(--ra-fs-xs); color: var(--ra-text-soft); }

/* Công tắc Agent / Quản trị trên thanh trên cùng (cùng vị trí ở hai trang) */
body.ra--v1 .fc-appswitch .btn { border: 1px solid rgba(255,255,255,.18); }
body.ra--v1 .fc-appswitch .btn.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.fc-appswitch .btn:not(.active) { opacity: .8; }

/* Nút Cài đặt cuối menu trái (thay "Powered by") */
body.ra--v1 .ra-nav.fc-sidefoot { flex: none; overflow: visible; padding: var(--ra-space-2) 0; border-top: 1px solid var(--ra1-side-line); }
/* Trang Cài đặt */
body.ra--v1 .fc-setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ra-border); }
body.ra--v1 .fc-setrow:first-child { border-top: 0; padding-top: 0; }
body.ra--v1 .fc-setrow__text { min-width: 0; }
body.ra--v1 .fc-setrow__title { font-weight: 600; }
body.ra--v1 .fc-setrow__sub { font-size: var(--ra-fs-sm); color: var(--ra-text-soft); }
body.ra--v1 .fc-settings .fc-quota { min-width: 0; max-width: 420px; }
body.ra--v1 .fc-agentpick { width: auto; min-width: 200px; }
@media (max-width: 575.98px) { body.ra--v1 .fc-setrow { flex-direction: column; align-items: flex-start; } }
body.ra--v1 .fc-fbitem__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
body.ra--v1 .fc-fbitem__rate { font-size: 1.1em; }
body.ra--v1 .fc-fbitem__ex summary { cursor: pointer; color: var(--ra-text-soft); font-size: var(--ra-fs-sm); }
body.ra--v1 .fc-fbitem__quote { white-space: pre-wrap; font-size: var(--ra-fs-sm); background: var(--ra-surface-2, rgba(0,0,0,.03)); border-radius: 6px; padding: 8px 10px; margin-top: 6px; max-height: 240px; overflow: auto; }
body.ra--v1 .fc-agentbar { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
body.ra--v1 .fc-agentbar__label { font-size: var(--ra-fs-sm); color: var(--ra-text-soft); margin: 0; }
body.ra--v1 .fc-about { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 16px 0 8px; font-size: var(--ra-fs-sm); color: var(--ra-text-soft); }
body.ra--v1 .fc-about a { color: inherit; }

/* Kéo thả thứ tự agent trong workspace (Quản trị) */
body.ra--v1 tr[draggable="true"] .ra-drag { margin-left: calc(-1 * var(--ra-space-2)); cursor: grab; }
body.ra--v1 tr.is-drag { opacity: .4; }
body.ra--v1 .fc-dlgnote { white-space: pre-line; }
