/* ===================== AI FACTORY TEAM ===================== */

/* The agent-avatar (.av / .av--*) and domain-tint (.dom-*) primitives live in sf.css,
   which is loaded globally alongside this file. Do not redefine them here. */

/* ---- TEAM HERO ---- */
.team-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.team-hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.team-hero__fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(80% 70% at 50% 16%, transparent, var(--bg) 92%); }
.team-hero__in { position: relative; z-index: 2; max-width: 880px; padding-block: clamp(52px, 8vw, 104px); }
.team-hero__avatars { display: flex; margin-bottom: 26px; }
.team-hero__avatars .av { box-shadow: 0 6px 20px -8px rgba(0,0,0,.7); border: 2px solid var(--bg); margin-left: -12px; }
.team-hero__avatars .av:first-child { margin-left: 0; }
.team-hero__avatars .more { margin-left: -12px; width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--bg);
  background: var(--surface-2); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--text-2); }

/* ---- CONVERSATION MODES ---- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }
.mode { display: block; background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; transition: .18s; position: relative; overflow: hidden; }
.mode:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.mode::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--purple)); opacity: 0; transition: .2s; }
.mode:hover::before { opacity: 1; }
.mode__ico { width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(59,130,246,.10); border: 1px solid rgba(59,130,246,.22); color: var(--blue-hi); }
.mode__ico svg { width: 20px; height: 20px; }
.mode h3 { font-size: 17px; margin-bottom: 6px; }
.mode p { font-size: 13.5px; margin: 0; color: var(--text-2); }
.mode__go { font-family: var(--mono); font-size: 12px; color: var(--blue-hi); margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.mode__go .arr { width: 14px; height: 14px; flex: none; }
.mode:hover .mode__go .arr { transform: translateX(3px); }

/* ---- AGENT CARDS GRID ---- */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .agents-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .agents-grid { grid-template-columns: 1fr; } }
.agent-card { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; transition: .18s; display: flex; flex-direction: column; }
.agent-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.agent-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.agent-card__name { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.agent-card__role { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); letter-spacing: .03em; }
.agent-card__spec { display: inline-flex; align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--text-2); margin-bottom: 12px; }
.agent-card__bio { font-size: 13.5px; color: var(--text-2); margin: 0 0 14px; line-height: 1.55; }
.agent-card__helps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; }
.agent-card__helps li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.agent-card__helps li svg { width: 14px; height: 14px; color: var(--success); flex: none; margin-top: 2px; }
.agent-card__cta { margin-top: auto; font-family: var(--sans); font-weight: 500; font-size: 13.5px; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.02); transition: .15s; }
.agent-card__cta:hover { background: var(--surface-3); border-color: var(--line-2); }
.agent-card__cta .arr { transition: transform .15s; width: 14px; height: 14px; flex: none; }
.agent-card:hover .agent-card__cta .arr { transform: translateX(3px); }

/* domain filter tabs */
.dom-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dom-tab { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: rgba(255,255,255,.02);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 15px; transition: .15s; }
.dom-tab:hover { color: var(--text); border-color: var(--line-2); }
.dom-tab.on { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border-color: transparent; color: #fff; }

/* ---- ARTIFACT PREVIEWS (landing) ---- */
.artifacts-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 12px; }
.artifact-chip { display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.02); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; }
.artifact-chip svg { width: 18px; height: 18px; color: var(--purple-hi); flex: none; }
.artifact-chip b { font-family: var(--display); font-size: 14px; font-weight: 500; }

/* ---- TRUST/SAFETY ---- */
.safety { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 760px) { .safety { grid-template-columns: 1fr; } }
.safety__item { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.safety__item .ic { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 12px;
  background: rgba(34,197,94,.10); border: 1px solid rgba(34,197,94,.22); color: #4ade80; }
.safety__item .ic svg { width: 18px; height: 18px; }
.safety__item h4 { font-size: 15px; margin-bottom: 6px; }
.safety__item p { font-size: 13px; margin: 0; color: var(--text-3); }

/* ---- homepage AI Team band ---- */
.ai-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(140deg, #0c1530, #0a0f1f 60%, #140c2a); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); }
[data-theme="light"] .ai-band { background: linear-gradient(140deg, #eef3fb, #fff 60%, #f3eefb); }
@media (max-width: 860px) { .ai-band { grid-template-columns: 1fr; gap: 28px; } }
.ai-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .ai-band__grid { grid-template-columns: 1fr; } }
.ai-chip { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; transition: .15s; }
[data-theme="light"] .ai-chip { background: rgba(15,23,42,.03); }
.ai-chip:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ai-chip b { font-family: var(--display); font-size: 14px; font-weight: 600; display: block; line-height: 1.2; }
.ai-chip .r { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }

/* ============================================================
   CHAT WORKSPACE
   ============================================================ */
html:has(.chat-shell), body:has(.chat-shell) { overflow: hidden; }
.chat-shell { height: calc(100vh - 66px); display: grid; grid-template-columns: 280px 1fr 340px; overflow: hidden; min-height: 0; }
.app-main--chat { max-width: none; height: calc(100vh - 69px); padding: 16px; overflow: hidden; min-height: 0; }
.app-main--chat .chat-shell { height: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); min-height: 0; }
.app-main--chat .chat-sidebar { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.app-main--chat .chat-artifacts { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.chat-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; height: 100%; }
.chat-sidebar { border-right: 1px solid var(--line); background: var(--bg-2); overflow-y: auto; overflow-x: hidden; }
.chat-main { background: var(--bg); min-height: 0; }
.chat-artifacts { border-left: 1px solid var(--line); background: var(--bg-2); overflow-y: auto; }
.chat-sidebar, .chat-scroll, .chat-artifacts { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.chat-sidebar::-webkit-scrollbar, .chat-scroll::-webkit-scrollbar, .chat-artifacts::-webkit-scrollbar { width: 8px; height: 8px; }
.chat-sidebar::-webkit-scrollbar-thumb, .chat-scroll::-webkit-scrollbar-thumb, .chat-artifacts::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 999px;
}
.chat-sidebar::-webkit-scrollbar-track, .chat-scroll::-webkit-scrollbar-track, .chat-artifacts::-webkit-scrollbar-track { background: transparent; }

.cs-block { padding: 18px; border-bottom: 1px solid var(--line); }
.cs-block h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; font-weight: 500; }
/* slim sidebar chats block */
.cs-fullbtn { width: 100%; justify-content: center; margin-bottom: 8px; }
.cs-link { display: inline-block; font-family: var(--mono); font-size: 11.5px; color: var(--blue-hi); text-decoration: none; }
.cs-link:hover { text-decoration: underline; }

/* chat history page (/team/chats) */
.chats-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.chats-count { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.chats-empty { text-align: center; padding: 48px 16px; color: var(--text-2); display: grid; gap: 14px; justify-items: center; }
.chats-list { display: grid; gap: 10px; }
.chat-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); }
.chat-card:hover { border-color: var(--line); }
.chat-card__open { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.chat-card__title { display: block; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-card__meta { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.chat-card__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.chat-card__del:hover { color: #f87171; border-color: rgba(248,113,113,.5); }
.chat-card__confirm { background: rgba(248,113,113,.16); border: 1px solid rgba(248,113,113,.5); color: #f87171; }
@media (max-width: 640px) { .chat-card { flex-direction: column; align-items: stretch; } .chat-card__actions { justify-content: flex-end; } }

/* admin assessment-requests page (/admin/leads) */
.leads-list { display: grid; gap: 12px; }
.lead-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); padding: 16px 18px; }
.lead-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lead-card__name { margin: 0; font-size: 16px; }
.lead-card__co { color: var(--text-3); font-weight: 400; }
.lead-card__sub { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.lead-card__grid { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 12px 0; }
.lead-card__grid > div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.lead-k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lead-card__msg { margin: 0 0 14px; color: var(--text-2); white-space: pre-wrap; }
.lead-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lead-card__status { flex: 0 0 auto; }
.lead-badge { font-family: var(--mono); font-size: 10.5px; padding: 5px 11px; border-radius: 100px; white-space: nowrap; }
.lead-badge--new { background: rgba(249,115,22,.14); color: var(--warning); }
.lead-badge--contacted { background: rgba(59,130,246,.14); color: var(--blue-hi); }
.lead-badge--scheduled { background: rgba(139,92,246,.14); color: var(--purple-hi); }
.lead-badge--closed { background: rgba(148,163,184,.14); color: var(--text-3); }

.mode-list { display: grid; gap: 6px; }
.mode-pill { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent;
  border-radius: var(--r); padding: 9px 11px; color: var(--text-2); font-family: var(--sans); font-size: 13.5px; transition: .14s; }
.mode-pill:hover { background: rgba(255,255,255,.03); color: var(--text); }
.mode-pill.on { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.3); color: var(--blue-hi); }
.mode-pill svg { width: 16px; height: 16px; flex: none; }
.mode-pill.is-disabled, .mode-pill:disabled { opacity: .4; cursor: not-allowed; color: var(--text-3); }
.mode-pill.is-disabled:hover, .mode-pill:disabled:hover { background: transparent; color: var(--text-3); }
.mode-pill__lock { margin-left: auto; display: inline-flex; }
.mode-pill__lock svg { width: 13px; height: 13px; }

.agent-row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent;
  border-radius: var(--r); padding: 8px 9px; transition: .14s; color: var(--text); overflow: hidden; }
.agent-row:hover { background: rgba(255,255,255,.03); }
.agent-row.on { background: var(--surface-2); border-color: var(--line-2); }
.agent-row__meta { min-width: 0; flex: 1; }
.agent-row__n { font-size: 13.5px; font-weight: 500; line-height: 1.2; }
.agent-row__r { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-row__check { margin-left: auto; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; color: transparent; }
.agent-row.on .agent-row__check { background: var(--blue); border-color: transparent; color: #fff; }
.agent-row__check svg { width: 12px; height: 12px; }

/* chat header */
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.chat-head__title { font-family: var(--display); font-weight: 600; font-size: 15px; }
.chat-head__mode { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.chat-head__active { margin-left: auto; display: flex; align-items: center; }
.chat-head__active .av { margin-left: -8px; border: 2px solid var(--bg); }
.chat-head__active .av:first-child { margin-left: 0; }
.voice-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-3); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.voice-toggle svg { width: 16px; height: 16px; flex: none; }
.voice-toggle.on { color: var(--text); border-color: rgba(124, 92, 255, .45); }

/* messages */
.chat-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 20px; scroll-behavior: smooth; scrollbar-gutter: stable; }
.chat-thread { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 12px; max-width: 100%; }
.msg__body { min-width: 0; }
.msg--user { flex-direction: row-reverse; }
.msg--user .msg__bubble { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff; border-color: transparent; }
.msg--user .av { background: var(--surface-3); color: var(--text-2); }
.msg__bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 14px 16px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.msg--user .msg__bubble { border-radius: 14px 4px 14px 14px; }
.msg__who { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.msg__who b { font-size: 13px; font-weight: 600; }
.msg__who span { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.msg__bubble p { margin: 0 0 10px; color: inherit; font-size: inherit; }
.msg__bubble p:last-child { margin: 0; }
.msg__bubble strong { color: var(--text); font-weight: 600; }
.msg--user .msg__bubble strong { color: #fff; }

/* typing indicator */
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.4 } 30%{ transform: translateY(-4px); opacity:1 } }

/* system recommendation */
.sys-rec { max-width: 760px; margin: 0 auto; background: linear-gradient(120deg, rgba(59,130,246,.10), rgba(139,92,246,.10));
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px 20px; }
.sys-rec__lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 8px; }
.sys-rec p { font-size: 14px; margin: 0 0 14px; color: var(--text); }
.sys-rec .row { gap: 10px; }

/* suggested prompts */
.suggest { display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; margin: 0 auto; }
.suggest button { font-family: var(--sans); font-size: 13px; color: var(--text-2); background: rgba(255,255,255,.02);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 8px 14px; transition: .14s; text-align: left; }
.suggest button:hover { color: var(--text); border-color: var(--blue); background: rgba(59,130,246,.08); }

/* composer */
.composer { border-top: 1px solid var(--line); padding: 14px 20px; background: var(--bg-2); }
.composer__box { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 8px 8px 8px 16px; transition: .15s; }
.composer__box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.composer textarea { flex: 1; background: transparent; border: 0; resize: none; color: var(--text); font-family: var(--sans);
  font-size: 14.5px; line-height: 1.5; padding: 8px 0; max-height: 120px; outline: none; }
.composer textarea::placeholder { color: var(--text-3); }
.composer__send { width: 40px; height: 40px; flex: none; border-radius: var(--r); border: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff; transition: .15s; }
.composer__send:hover { background: linear-gradient(180deg, var(--blue-hi), var(--blue)); }
.composer__send:disabled { opacity: .4; cursor: default; }
.composer__send svg { width: 18px; height: 18px; }
.composer__error { max-width: 760px; margin: 0 auto 8px; border: 1px solid rgba(248,113,113,.35); border-radius: var(--r);
  background: rgba(248,113,113,.10); color: #fecaca; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.cost-hint { display: inline-flex; align-items: center; gap: 5px; flex: none; font-family: var(--mono); font-size: 12px;
  color: var(--text-3); background: rgba(59,130,246,.08); border: 1px solid var(--line); border-radius: 100px; padding: 6px 11px; align-self: center; }
.cost-hint svg { width: 13px; height: 13px; color: var(--blue-hi); }
.cost-hint b { color: var(--blue-hi); font-weight: 600; }
@media (max-width: 560px) { .cost-hint { display: none; } }
.composer__note { max-width: 760px; margin: 8px auto 0; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); text-align: center; }

/* artifact panel */
.art-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.art-head h4 { font-family: var(--display); font-size: 15px; font-weight: 600; }
.art-head .badge { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px; background: rgba(139,92,246,.14); color: var(--purple-hi); }
.art-empty { padding: 40px 22px; text-align: center; color: var(--text-3); }
.art-empty svg { width: 40px; height: 40px; margin-bottom: 14px; color: var(--line-2); }
.art-empty p { font-size: 13px; margin: 0; }

.scorecard { padding: 18px; }
.score-ring { display: flex; align-items: center; gap: 16px; padding: 16px; background: linear-gradient(180deg, var(--surface), var(--navy));
  border: 1px solid var(--line-2); border-radius: var(--r-lg); margin-bottom: 16px; }
.score-ring .num { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.score-ring .num small { font-size: 14px; color: var(--text-3); }
.score-ring .meta b { font-size: 14px; display: block; }
.score-ring .meta span { font-family: var(--mono); font-size: 11px; color: var(--success); }
.score-line { margin-bottom: 11px; }
.score-line__top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.score-line__top span:first-child { color: var(--text-2); }
.score-line__top span:last-child { font-family: var(--mono); color: var(--text-3); }
.score-line__bar { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.score-line__fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--purple)); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.art-md-preview { padding: 18px; }
.art-md-preview__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.art-md-preview pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px; color: var(--text-2); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; }
.art-actions { display: grid; gap: 8px; padding: 16px 18px; border-top: 1px solid var(--line); }
.art-actions .btn { width: 100%; justify-content: center; font-size: 13.5px; }

/* mobile chat */
.chat-tabs { display: none; }
@media (max-width: 1080px) {
  .chat-shell { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .chat-sidebar, .chat-artifacts { display: none; }
  .chat-sidebar.show, .chat-artifacts.show { display: flex; position: fixed; top: 66px; bottom: 0; width: min(88vw, 340px); z-index: 40; box-shadow: var(--shadow-lg); }
  .chat-sidebar.show { left: 0; } .chat-artifacts.show { right: 0; }
  .chat-tabs { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
  .chat-tabs button { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 9px; }
  .chat-tabs button:hover { color: var(--text); }
}
@media (max-width: 520px) {
  .app-main--chat { height: calc(100vh - 61px); padding: 12px; }
  .app-main--chat .chat-shell { border-radius: var(--r); }
}

/* ---- subscription / plan gating (Blazor app) ---- */
.subscription-state { display: grid; gap: 8px; font-size: 13px; color: var(--text-2); }
.subscription-state strong { color: var(--text); font-weight: 600; }
.subscription-state .row { gap: 10px; flex-wrap: wrap; }
.subscription-state a, .composer__status a { font-family: var(--mono); font-size: 10.5px; color: var(--blue-hi); text-decoration: none; }
.subscription-state a:hover, .composer__status a:hover { color: var(--text); }
.agent-row.locked { opacity: .58; cursor: not-allowed; }
.agent-row.locked:hover { background: transparent; }
.agent-row.locked.on { opacity: .76; border-style: dashed; cursor: pointer; }
.composer__status { max-width: 760px; margin: 0 auto 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.composer__status span:first-child { color: var(--text-2); }

/* mobile chat tab icons */
.tabAgents-ico, .tabArt-ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }

/* ---- transient status toast (admin pages) ---- */
.status-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  z-index: 90;
  box-shadow: var(--shadow-lg);
}
