/* OT3: the reference's compact frame and glass surfaces, in the existing Convix palette. */
.ci-theme.has-sidebar {
  --ci-app-elevation:0 12px 32px color-mix(in srgb, var(--ci-shadow) 45%, transparent);
  --ci-app-glass:color-mix(in srgb, var(--ci-surface) 88%, transparent);
  --ci-app-edge:color-mix(in srgb, var(--ci-line) 65%, transparent);
  --ci-radius-panel:16px;
  --sidebar-w:64px;
  padding-top:80px;
  background:var(--ci-space);
}
.ci-theme.has-sidebar::before { content:none; }
.ci-theme.has-sidebar :is(input,textarea) { caret-color:var(--ci-cyan); }
.ci-theme.has-sidebar :is(h1,h2,h3) { text-wrap:balance; letter-spacing:-.025em; }
.ci-theme.has-sidebar :is(h1,.dash__title,.intel h1) { font-size:2rem; line-height:1.2; }
.ci-theme.has-sidebar :is(.intel,.dash) { padding-top:32px; }
.ci-theme.has-sidebar .intel { max-width:1440px; padding-inline:40px; }
.ci-theme.has-sidebar .intel-top { display:none; }
.ci-theme.has-sidebar .dash__top { border:0; padding-bottom:0; }
.ci-theme.has-sidebar :is(.intel-heading,.dash__header) { margin-bottom:28px; }
.ci-theme.has-sidebar .intel-heading p { margin-top:10px; color:var(--ci-muted); }
.ci-theme.has-sidebar .ci-appbar {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:20px;
  align-items:center; height:80px; padding:0 24px;
  background:color-mix(in srgb, var(--ci-space) 92%, transparent);
  border-bottom:1px solid var(--ci-app-edge); backdrop-filter:blur(14px);
}
.ci-theme.has-sidebar .ci-appbar .ci-brand { gap:9px; }
.ci-theme.has-sidebar .ci-appbar .ci-brand img { width:30px; height:38px; flex-basis:30px; }
.ci-theme.has-sidebar .ci-appbar .ci-brand-text { font-size:.875rem; }
.ci-theme.has-sidebar .ci-appbar .ci-brand-text>span { font-size:.75rem; }
.ci-appnav { display:flex; align-items:center; justify-content:center; gap:3px; min-width:0; }
.ci-appnav__link { display:flex; align-items:center; justify-content:center; min-height:44px; padding:9px 12px; border-radius:999px; color:var(--ci-muted); font-size:.8125rem; font-weight:600; white-space:nowrap; }
.ci-appnav__link:hover { background:var(--ci-surface); color:var(--ci-text); }
.ci-appnav__link[aria-current="page"] { background:var(--ci-text); color:var(--ci-space); }
.ci-appbar__tools { display:flex; align-items:center; gap:10px; min-width:0; }
.ci-appbar__theme .theme-switch { margin:0; border-radius:999px; padding:3px; width:132px; }
.ci-appbar__theme .theme-switch::before { top:3px; bottom:3px; left:3px; width:calc((100% - 6px) / 3); border:0; border-radius:999px; box-shadow:none; transition:none; }
.ci-appbar__theme .theme-switch__option { min-height:40px; padding:6px; border-radius:999px; }
.ci-appbar__theme .theme-switch__option>span:last-child { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.ci-appbar__theme .theme-switch__option .msr { transform:none; transition:none; }
.ci-app-account { position:relative; min-width:0; }
.ci-app-account>summary { display:flex; align-items:center; gap:9px; min-height:48px; padding:3px 4px; border-radius:999px; cursor:pointer; list-style:none; }
.ci-app-account>summary::-webkit-details-marker { display:none; }
.ci-app-account>summary:hover { background:var(--ci-surface); }
.ci-theme .ci-app-account .dash-sidebar__avatar { width:38px; height:38px; background:var(--ci-raised); color:var(--ci-cyan); border:1px solid var(--ci-app-edge); font-size:.875rem; }
.ci-app-account__identity { display:grid; gap:3px; min-width:0; line-height:1.3; max-width:130px; }
.ci-app-account__identity strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.8125rem; color:var(--ci-text); }
.ci-app-account__identity small { font-size:.75rem; color:var(--ci-muted); }
.ci-app-account__chevron { font-size:18px; color:var(--ci-muted); }
.ci-app-account__menu { position:absolute; right:0; top:calc(100% + 12px); z-index:210; display:grid; width:250px; max-width:calc(100vw - 32px); padding:8px; border:1px solid var(--ci-app-edge); border-radius:16px; background:var(--ci-surface); box-shadow:var(--ci-app-elevation); }
.ci-app-account__menu :is(a,button) { display:flex; align-items:center; gap:10px; min-height:44px; padding:10px 12px; border:0; border-radius:10px; background:transparent; color:var(--ci-text); font:inherit; font-size:.875rem; text-align:left; cursor:pointer; }
.ci-app-account__menu :is(a,button):hover { background:var(--ci-raised); }
.ci-app-account__menu .msr { font-size:20px; color:var(--ci-muted); }
.ci-app-account__menu [data-app-signout],.ci-app-account__menu [data-app-signout] .msr { color:var(--ci-danger); }
.ci-app-account__email { padding:10px 12px; font-size:.75rem; color:var(--ci-muted); overflow-wrap:anywhere; border-bottom:1px solid var(--ci-app-edge); }
.ci-theme.has-sidebar .ci-appbar .dash__notif-bell { display:grid; place-items:center; min-width:44px; width:44px; height:44px; padding:0; border-radius:50%; border-color:transparent; background:transparent; }
.ci-theme.has-sidebar .ci-appbar .dash__notif-bell:hover { background:var(--ci-surface); }
.ci-theme.has-sidebar .ci-appbar .dash__notif-panel { position:absolute; right:0; top:calc(100% + 12px); width:min(360px,calc(100vw - 32px)); border-radius:16px; box-shadow:var(--ci-app-elevation); }
.ci-theme.has-sidebar .ci-appbar .dash-sidebar-topbar__toggle { display:none; }

/* A narrow rail on desktop; the existing drawer remains the navigation below 1100px. */
@media(min-width:1100px) {
  .ci-theme.has-sidebar { padding-left:64px; }
  .ci-theme.has-sidebar .dash-sidebar { top:80px; width:64px; padding:20px 8px; background:color-mix(in srgb, var(--ci-space) 72%, var(--ci-surface)); border-right:1px solid var(--ci-app-edge); overflow:visible; }
  .ci-theme.has-sidebar .dash-sidebar__head { display:none; }
  .ci-theme.has-sidebar .dash-sidebar__nav { display:flex; flex-direction:column; gap:8px; overflow:visible; }
  .ci-theme.has-sidebar .dash-sidebar__link { position:relative; display:grid; place-items:center; min-height:44px; height:44px; width:48px; padding:0; border:1px solid transparent; border-radius:12px; box-shadow:none; }
  .ci-theme.has-sidebar .dash-sidebar__link.is-active { background:var(--ci-raised); border-color:var(--ci-app-edge); color:var(--ci-text); box-shadow:none; }
  .ci-theme.has-sidebar .dash-sidebar__link .msr { font-size:22px; color:var(--ci-muted); }
  .ci-theme.has-sidebar .dash-sidebar__link.is-active .msr { color:var(--ci-cyan); }
  .ci-theme.has-sidebar .dash-sidebar__label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .ci-theme.has-sidebar .dash-sidebar .intel-nav-group { font-size:0; line-height:0; width:28px; height:1px; margin:12px auto; border-top:1px solid var(--ci-app-edge); }
  .ci-theme.has-sidebar .dash-sidebar .intel-nav-group:first-child { display:none; }
  .ci-theme.has-sidebar .dash-sidebar>.theme-switch { display:none; }
}
@media(min-width:1100px) and (max-width:1370px) {
  .ci-theme.has-sidebar .ci-appbar { gap:12px; padding-inline:18px; }
  .ci-theme.has-sidebar .ci-appbar .ci-brand-text,.ci-app-account__identity { display:none; }
  .ci-appnav__link { font-size:.75rem; padding-inline:10px; }
  .ci-appbar__tools { gap:6px; }
}
@media(max-width:1099px) {
  .ci-theme.has-sidebar { padding-left:0; padding-top:72px; }
  .ci-theme.has-sidebar .ci-appbar { height:72px; grid-template-columns:auto auto; justify-content:space-between; padding-inline:20px; gap:16px; }
  .ci-appnav,.ci-appbar__theme { display:none; }
  .ci-theme.has-sidebar .ci-appbar .dash-sidebar-topbar__toggle { display:grid; width:44px; height:44px; background:transparent; border-color:var(--ci-app-edge); border-radius:50%; }
  .ci-theme.has-sidebar .dash-sidebar-shell { position:fixed; inset:0; z-index:999; display:none; }
  .ci-theme.has-sidebar .dash-sidebar-shell.is-open { display:block; }
  .ci-theme.has-sidebar .dash-sidebar { position:absolute; top:0; bottom:0; width:min(88vw,320px); padding:24px 16px; transform:translateX(-100%); background:var(--ci-space); overflow-y:auto; }
  .ci-theme.has-sidebar .dash-sidebar-shell.is-open .dash-sidebar { transform:translateX(0); }
  .ci-theme.has-sidebar .dash-sidebar__overlay { display:block; }
  .ci-theme.has-sidebar .dash-sidebar__close { display:grid; }
  .ci-theme.has-sidebar .dash-sidebar__link.is-active { box-shadow:none; border:1px solid var(--ci-app-edge); }
  .ci-theme.has-sidebar .dash-sidebar .theme-switch { flex-shrink:0; }
}
@media(max-width:620px) {
  .ci-theme.has-sidebar .ci-appbar { padding-inline:16px; }
  .ci-theme.has-sidebar .ci-appbar .ci-brand-text,.ci-app-account__identity,.ci-app-account__chevron { display:none; }
  .ci-theme.has-sidebar .ci-appbar .ci-brand img { width:32px; height:40px; }
  .ci-appbar__tools { gap:8px; }
  .ci-theme.has-sidebar :is(h1,.dash__title,.intel h1) { font-size:1.75rem; }
  .ci-theme.has-sidebar .intel { padding:28px 16px 48px; }
  .ci-theme.has-sidebar .ci-appbar .dash__notif { position:static; }
  .ci-theme.has-sidebar .ci-appbar .dash__notif-panel { top:64px; right:16px; }
}

/* Shared component grammar: subtle glass, pills, flat interior rows and tabular numbers. */
.ci-theme.has-sidebar :is(.intel-panel,.intel-state,.intel-card,.intel-kpi,.intel-change,.dash__card,.dash__widget,.dash__usage,.dash__locked-card,.dash__history,.ci-studio-choice,.ci-review,.ci-production-status,.account-overview,.configuracoes__tabpanel,.admin-ai-health) {
  background:var(--ci-app-glass); border:1px solid var(--ci-app-edge); border-radius:16px; box-shadow:var(--ci-app-elevation);
}
.ci-theme.has-sidebar .intel-panel :is(.intel-panel,.intel-kpi,.intel-change,.intel-watch__card,.intel-outside,.intel-table-wrap,.intel-health__counts>div,.intel-metric,.intel-opportunity,.intel-store__item,.intel-catalog__result,.intel-catalog__list>li,.intel-oppgroup) {
  background:transparent; border:0; border-radius:0; box-shadow:none;
}
.ci-theme.has-sidebar .intel-panel :is(.intel-health__counts>div,.intel-metric,.intel-opportunity,.intel-store__item,.intel-catalog__result,.intel-catalog__list>li,.intel-oppgroup) { border-top:1px solid var(--ci-app-edge); }
.ci-theme.has-sidebar .intel-opportunity .intel-opportunity__proposal { background:transparent; border:0; border-top:1px solid var(--ci-app-edge); border-radius:0; box-shadow:none; }
.ci-theme.has-sidebar .intel-panel .intel-panel { padding-inline:0; }
.ci-theme.has-sidebar .intel-panel .intel-watch__card { border-bottom:1px solid var(--ci-app-edge); }
.ci-theme.has-sidebar .intel-notice { border-left-width:1px; border-radius:12px; box-shadow:none; }
.ci-theme.has-sidebar :is(.btn,.intel-btn,.intel-pill,.intel-oppstatus,.intel-sev,.account-chip,.intel-chat__badge) { border-radius:999px; text-transform:none; letter-spacing:0; }
.ci-theme.has-sidebar :is(.intel-pill,.intel-oppstatus,.intel-sev,.account-chip,.intel-chat__badge) { font-size:.75rem; }
.ci-theme.has-sidebar :is(.intel-panel-head,.intel-change-head) { align-items:flex-start; }
.ci-theme.has-sidebar :is(.intel-list,.intel-checklist) li { padding-block:16px; border-color:var(--ci-app-edge); }
.ci-theme.has-sidebar :is(.intel-list,.intel-checklist) li>.msr { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:12px; background:var(--ci-raised); color:var(--ci-cyan); }
.ci-theme.has-sidebar :is(.intel-num,.intel-kpi strong,.intel-card__price,.dash__widget-value,.account-credit-balances strong) { font-variant-numeric:tabular-nums; }
.ci-theme.has-sidebar :is(.intel-eyebrow,.ci-step-eyebrow,.ci-studio-hero__eyebrow,.dash__step-kicker,.produtos__featured-eyebrow) { display:none; }
.ci-theme.has-sidebar :is(.intel-chat__who,.intel-health__counts dt) { text-transform:none; letter-spacing:0; }
.ci-theme.has-sidebar :is(.intel-card__id,.intel-card__facts,.intel-facts dt,.intel-chat__who,.intel-chat__suggestion strong,.intel-import__counters dt,.intel-flow small,.intel-health__counts dt,.intel-kpi2__note,.intel-delta,.intel-watch__rank,.ci-studio-choice__tag,.ci-history-name,.account-credit-balances span,.dash__field>span small,.intel-similar__price small,.intel-improve__tag) { font-size:.75rem; }
.ci-theme.has-sidebar .intel-rank__name::before { font-size:.75rem; }
.ci-theme.has-sidebar :is(.intel-draft__row>strong,.intel-evidence__meta,.intel-autolist h3,.intel-content__title,.intel-content__subtitle,.intel-evidence__do,.intel-verdict__chip,.intel-range__ends,.intel-metric__label,.intel-metric__note,.intel-tabs__badge) { font-size:.75rem; text-transform:none; letter-spacing:0; }
.ci-theme.has-sidebar :is(.intel-revenue__axis,.intel-watch-chart__axis) { font-size:12px; }
.ci-theme.has-sidebar .intel-table td::before { font-size:.75rem; }
.ci-theme.has-sidebar .intel-chat__form { box-shadow:none; }
.ci-theme.has-sidebar .intel-ask__form { box-shadow:none; }
.ci-theme.has-sidebar .intel-chat__form:focus-within { box-shadow:none; border-color:var(--ci-cyan); }
/* OT20 E1 (B3): on the Agent page the composer stays at the bottom over a band of the panel's own color (the panel is
   88% surface over the page), so a long answer goes under it instead of showing around and below it. The band covers
   the 14px gap above it and the 12px below, so it never hides a message when the conversation is short. */
.ci-theme.has-sidebar .intel-chat--page .intel-chat__form,
.ci-theme.has-sidebar .intel-chat--page .intel-chat__form:focus-within { box-shadow:0 0 0 14px color-mix(in srgb, var(--ci-surface) 88%, var(--ci-space)); }
.ci-theme.has-sidebar :is(.intel-ask__form,.intel-chat__form):has(:focus-visible) { outline:3px solid var(--ci-focus); outline-offset:3px; }
/* The form already shows the focus ring: the box inside it does not draw a second one (OT17 E3). */
.ci-theme.has-sidebar .intel-chat__form textarea:focus-visible { outline:0; }
.ci-theme.has-sidebar :is(.intel-chat__bubble,.intel-chat__suggestion,.intel-chat__starter) { box-shadow:none; }
.ci-theme.has-sidebar .intel-opportunity--row { border-left-width:1px; }
.ci-theme.has-sidebar .intel-segmented { border-radius:999px; }
.ci-theme.has-sidebar .intel-segmented button { border-radius:999px; min-height:38px; }
.ci-theme.has-sidebar .intel-segmented button[aria-pressed="true"] { box-shadow:none; }
.ci-theme.has-sidebar .intel-tabs { top:88px; box-shadow:none; }
.ci-theme.has-sidebar .intel-sections { scroll-margin-top:96px; }
.ci-theme.has-sidebar :is(.intel-card,.intel-flow a,.ci-studio-choice) { transition:transform 180ms ease-out,border-color 180ms ease-out; }
.ci-theme.has-sidebar :is(.intel-card,.intel-flow a,.ci-studio-choice):hover { transform:translateY(-2px); border-color:var(--ci-cyan); }
.ci-theme.has-sidebar .intel .intel-panel .intel-panel:hover { transform:none; }
@media(max-width:1099px) {
  .ci-theme.has-sidebar .intel-tabs { top:80px; }
  .ci-theme.has-sidebar .intel-sections { scroll-margin-top:88px; }
}

/* The studio, account and admin share the frame; their existing form and tab hooks stay intact. */
.ci-theme.has-sidebar .ci-studio-objective { border-width:1px; border-radius:16px; }
.ci-theme.has-sidebar .ci-studio-tabs { border-radius:999px; background:var(--ci-surface); }
.ci-theme.has-sidebar .ci-studio-tabs__tab { border-radius:999px; }
.ci-theme.has-sidebar .ci-studio-tabs__tab.is-current { background:var(--ci-text); color:var(--ci-space); box-shadow:none; }
.ci-theme.has-sidebar .ci-studio-tabs__tab.is-current .msr { color:inherit; }
.ci-theme.has-sidebar .ci-studio-choice .ci-studio-objective-action { border-radius:999px; }
.ci-theme.has-sidebar .ci-studio-choice__play { animation:none; }
.ci-theme.has-sidebar .ci-studio-choice__toggle .msr { color:var(--ci-on-action); }
.ci-theme.has-sidebar .ci-studio-flow .dash__card .dash__card { background:transparent; border:0; box-shadow:none; }
.ci-theme.has-sidebar .configuracoes__tab { border-radius:999px; }
.ci-theme.has-sidebar .configuracoes__tab.is-active { background:var(--ci-text); color:var(--ci-space); border-color:transparent; }
.ci-theme.has-sidebar .account-plan-option { border:0; border-radius:0; background:transparent; box-shadow:none; border-top:1px solid var(--ci-app-edge); }
.ci-theme.has-sidebar .account-plan-current { border-radius:12px; }
.ci-theme.has-sidebar .ci-production-status .ci-processing-indicator { box-shadow:none; }
.ci-theme.admin-body .admin-bar { position:static; z-index:auto; padding:16px 32px; background:transparent; border-color:var(--ci-app-edge); }
.ci-theme.admin-body .admin-bar__brand,.ci-theme.admin-body .admin-bar__user { display:none; }
.ci-theme.admin-body .admin-bar__inner { max-width:1360px; }
.ci-theme.admin-body .admin-bar__nav { flex-wrap:wrap; gap:8px; }
.ci-theme.admin-body .admin-bar__link { display:flex; align-items:center; min-height:44px; padding:9px 16px; border-radius:999px; }
.ci-theme.admin-body .admin-bar__link--active { color:var(--ci-space); background:var(--ci-text); }
.ci-theme.admin-body .admin-main { max-width:1440px; padding:28px 40px 64px; }
.ci-theme.admin-body .admin-tabs { gap:8px; }
.ci-theme.admin-body .admin-tab { min-height:44px; font-family:inherit; color:var(--ci-muted); background:transparent; border-color:var(--ci-app-edge); font-weight:600; }
.ci-theme.admin-body .admin-tab.is-active { background:var(--ci-text); color:var(--ci-space); border-color:transparent; }
.ci-theme.admin-body .admin-ai-health__list { grid-template-columns:1fr; }
.ci-theme.admin-body .admin-ai-health__item { border:0; border-radius:0; background:transparent; border-bottom:1px solid var(--ci-app-edge); }
.ci-theme.admin-body .admin-ai-health__item:last-child { border-bottom:0; }
.ci-theme.admin-body .admin-table-wrap { border-radius:16px; border-color:var(--ci-app-edge); background:var(--ci-app-glass); }
.ci-theme.admin-body .admin-table :is(th,td) { color:var(--ci-text); border-color:var(--ci-app-edge); }
.ci-theme.admin-body .admin-table th { color:var(--ci-muted); text-transform:none; letter-spacing:0; }
.ci-theme.admin-body .admin-table__cell::before { font-size:.75rem; text-transform:none; letter-spacing:0; }
@media(max-width:620px) {
  .ci-theme.has-sidebar .intel-panel { padding:20px; }
  .ci-theme.admin-body .admin-bar { padding:12px 16px; }
  .ci-theme.admin-body .admin-main { padding:24px 16px 48px; }
}
@media(prefers-reduced-motion:reduce) {
  .ci-theme.has-sidebar :is(.intel-card,.intel-flow a,.ci-studio-choice),.ci-theme.has-sidebar .dash-sidebar { transition:none; }
  .ci-theme.has-sidebar :is(.intel-card,.intel-flow a,.ci-studio-choice):hover { transform:none; }
}

/* OT15 E7b: Admin - a working AI account in one line; the seven numbers in four cards with plain names; the users in
   six columns, the e-mail never broken letter by letter; on a phone, a user is a short card. */
.ci-theme.admin-body .admin-ai-health__item--compact { gap:.2rem; }
.ci-theme.admin-body .admin-ai-health__item--compact .admin-ai-health__row { justify-content:flex-start; }
.ci-theme.admin-body .admin-ai-health__when { margin-left:auto; color:var(--ci-muted); font-size:.78rem; }
.ci-theme.admin-body .admin-ai-health__item--compact .admin-ai-health__functions { display:flex; flex-wrap:wrap; gap:4px 14px; margin:.15rem 0 0; }
.ci-theme.admin-body .admin-ai-health__item--compact .admin-ai-health__function { padding:0; border:0; color:var(--ci-muted); font-size:.78rem; }
.ci-theme.admin-body .admin-ai-health__item--compact .admin-ai-health__function[data-state="ok"] { color:var(--ci-success); }
.ci-theme.admin-body .admin-dash-grid--four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.ci-theme.admin-body .admin-dash-card__label { text-transform:none; letter-spacing:0; font-size:.82rem; }
.ci-theme.admin-body .admin-dash-card__sub { color:var(--ci-muted); font-size:.78rem; font-variant-numeric:tabular-nums; }
.ci-theme.admin-body .admin-dash-card__sub [data-stat] { color:var(--ci-text); font-weight:700; }
.ci-theme.admin-body .admin-table--users { min-width:46rem; }
.ci-theme.admin-body .admin-table--users .admin-table__cell--user { min-width:15rem; max-width:22rem; word-break:normal; overflow-wrap:anywhere; }
.ci-theme.admin-body .admin-table__cell--user > * { display:block; }
.ci-theme.admin-body .admin-table__cell--user > span { color:var(--ci-muted); font-size:.8rem; }
.ci-theme.admin-body .admin-user-plan { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.ci-theme.admin-body .admin-user-credits span { display:block; white-space:nowrap; font-variant-numeric:tabular-nums; }
.ci-theme.admin-body .admin-user-credits b { color:var(--ci-text); }
@media (max-width:900px) { .ci-theme.admin-body .admin-dash-grid--four { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:719px) {
  .ci-theme.admin-body .admin-table--users { min-width:0; }
  .ci-theme.admin-body .admin-table--users tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; padding:.85rem 1rem; }
  .ci-theme.admin-body .admin-table--users .admin-table__cell { display:block; padding:0; border:0; }
  .ci-theme.admin-body .admin-table--users .admin-table__cell::before { content:none; }
  .ci-theme.admin-body .admin-table--users .admin-table__cell--user { grid-column:1 / -1; min-width:0; max-width:none; position:static; box-shadow:none; background:transparent; }
  .ci-theme.admin-body .admin-table--users .admin-user-credits span { display:inline; margin-right:10px; }
  .ci-theme.admin-body .admin-table--users [data-label="Ativado em"]::before { content:"Ativado em "; font-size:.75rem; font-weight:600; color:var(--ci-muted); }
  .ci-theme.admin-body .admin-table--users .admin-table__actions { grid-column:2; grid-row:2 / span 3; align-self:center; }
}

/* OT17 E3: the Convix Agent on every screen: a button in the corner (the cookie notice stays on the left) and a side
   panel with the conversation (assets/js/agent-panel.js). On a phone the button is round and the panel takes the screen. */
.ci-agent-dock { position:fixed; right:20px; bottom:20px; z-index:240; }
.ci-agent-dock[hidden] { display:none; }
.ci-agent-launcher { display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0 18px 0 14px; border:1px solid color-mix(in srgb,var(--ci-cyan) 45%,var(--ci-line));
  border-radius:999px; background:var(--ci-surface); color:var(--ci-text); font:inherit; font-size:.875rem; font-weight:700; cursor:pointer;
  box-shadow:0 10px 30px var(--ci-shadow); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ci-agent-launcher .msr { font-size:20px; color:var(--ci-cyan); }
.ci-agent-launcher:hover { transform:translateY(-2px); border-color:var(--ci-cyan); box-shadow:0 14px 36px var(--ci-shadow); }
.ci-agent-launcher:active { transform:scale(.97); }
.ci-agent-launcher:focus-visible { outline:3px solid var(--ci-focus); outline-offset:3px; }
.ci-agent-launcher[aria-expanded="true"] { visibility:hidden; }
.ci-agent-panel { position:fixed; inset:0; z-index:260; display:flex; justify-content:flex-end; }
/* The panel is the whole screen's layer: the global dialog limits (convix-system.css) are for boxes in the middle. */
.ci-theme .ci-agent-panel[role="dialog"] { max-width:none; max-height:none; overflow:visible; }
.ci-agent-panel[hidden] { display:none; }
.ci-agent-panel__scrim { position:absolute; inset:0; background:var(--ci-overlay); }
.ci-agent-panel__sheet { position:relative; display:flex; flex-direction:column; gap:10px; width:min(440px,100%); height:100%; padding:16px; overflow:hidden;
  background:var(--ci-space); border-left:1px solid var(--ci-line); box-shadow:-24px 0 60px var(--ci-shadow); }
.ci-agent-panel__body { display:flex; flex:1; min-height:0; flex-direction:column; }
/* The conversation is the sheet itself (no card in a card): it scrolls as a whole, the box stays at the bottom. */
.ci-theme .ci-agent-panel .intel-chat--dock { display:flex; flex:1; min-height:0; flex-direction:column; gap:12px; margin:0; padding:0 2px; overflow-y:auto; overscroll-behavior:contain;
  background:none; border:0; border-radius:0; box-shadow:none; }
.ci-agent-panel .intel-chat--dock .intel-chat__head { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:4px 10px; }
.ci-agent-panel .intel-chat--dock .intel-chat__head h2 { margin:0; font-size:1.05rem; }
.ci-agent-panel .intel-chat--dock .intel-chat__head .intel-help { margin:2px 0 0; font-size:.75rem; }
.ci-agent-panel .intel-chat--dock .intel-chat__head .intel-actions { flex-wrap:nowrap; gap:6px; }
.ci-agent-panel .intel-chat--dock .intel-chat__badge { display:none; }
.ci-agent-panel .intel-chat--dock .intel-chat__new { min-height:36px; padding:6px 12px; font-size:.75rem; }
.ci-agent-panel .intel-chat--dock .intel-chat__log { flex:0 0 auto; max-height:none; overflow:visible; }
.ci-agent-panel .intel-chat--dock .intel-chat__empty { padding:12px 0; }
.ci-agent-panel .intel-chat--dock .intel-chat__starters { grid-template-columns:1fr; }
.ci-agent-panel .intel-chat--dock .intel-chat__form { position:sticky; bottom:0; margin-top:auto; padding:8px 0 2px; background:var(--ci-space); }
.ci-agent-panel__close { min-width:40px; min-height:40px; padding:0; display:inline-grid; place-items:center; border-radius:999px; }
.ci-agent-panel__close .msr { font-size:20px; }
.ci-agent-panel__notice { margin:0; color:var(--ci-muted); font-size:.8125rem; }
.ci-agent-panel__notice[data-kind="error"] { color:var(--ci-danger); }
.ci-agent-panel__notice[hidden] { display:none; }
.ci-agent-panel__failed { display:grid; gap:12px; justify-items:start; }
.ci-agent-panel__failed > .ci-agent-panel__close { justify-self:end; }
body.ci-agent-open { overflow:hidden; }
@media (prefers-reduced-motion:no-preference) {
  .ci-agent-panel:not([hidden]) .ci-agent-panel__sheet { animation:ci-agent-in .28s cubic-bezier(.2,.8,.2,1) both; }
  .ci-agent-panel:not([hidden]) .ci-agent-panel__scrim { animation:ci-agent-fade .2s ease both; }
  .ci-agent-launcher[data-new] { animation:ci-agent-glow 2.4s ease-in-out 3; }
  .ci-agent-panel .intel-chat--dock .intel-chat__msg { animation:ci-agent-fade .24s ease both; }
}
@keyframes ci-agent-in { from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:none; } }
@keyframes ci-agent-fade { from { opacity:0; } to { opacity:1; } }
@keyframes ci-agent-glow { 0%, 100% { box-shadow:0 10px 30px var(--ci-shadow); } 50% { box-shadow:0 10px 30px var(--ci-shadow), 0 0 0 7px color-mix(in srgb,var(--ci-cyan) 22%,transparent); } }
@media (prefers-reduced-motion:reduce) {
  .ci-agent-launcher { transition:none; }
  .ci-agent-launcher:hover, .ci-agent-launcher:active { transform:none; }
}
@media (max-width:620px) {
  .ci-agent-dock { right:16px; bottom:16px; }
  .ci-agent-launcher { width:52px; height:52px; padding:0; justify-content:center; }
  .ci-agent-launcher .msr { font-size:24px; }
  .ci-agent-launcher__label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
  .ci-agent-panel__sheet { width:100%; padding:12px; border-left:0; }
}
