/* «Текст отказа по критерию» — деликатная карточка отказа в подразделе «02. Критерии отбора».
   Тёплый янтарный акцент отличает её от нейтральных синих контролов критерия и мягко сигналит
   «это то, что бот скажет при отказе». Токены/скругления/easing — из agent-console-redesign.css. */
.agent-tab3 .ag-scr{
  margin-top:18px;
  border:1px solid #f0e2c8;
  border-radius:var(--c-r-card,16px);
  background:radial-gradient(130% 150% at 100% 0%, #fff7ea 0%, #fffdf9 42%, #ffffff 100%);
  box-shadow:0 1px 2px rgba(120,80,20,.05), 0 16px 32px -24px rgba(150,100,30,.4);
  padding:15px 16px 14px;
  position:relative;
  overflow:hidden;
}
.agent-tab3 .ag-scr::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg,#f6b64b,#ec8b4b);
}

.agent-tab3 .ag-scr-head{ display:flex; gap:11px; align-items:flex-start; margin-bottom:12px; }
.agent-tab3 .ag-scr-ic{
  flex:none; width:32px; height:32px; border-radius:10px;
  display:grid; place-items:center;
  color:#c9781f; background:#fdeccd;
  box-shadow:inset 0 0 0 1px #f4ddb2;
}
.agent-tab3 .ag-scr-ic svg{ width:17px; height:17px; }
.agent-tab3 .ag-scr-htxt b{ display:block; font-size:13.5px; font-weight:700; color:var(--c-ink,#0d1b3e); }
.agent-tab3 .ag-scr-htxt small{
  display:block; margin-top:3px; font-size:12px; font-weight:500;
  color:var(--c-ink-soft,#46587a); line-height:1.45;
}

.agent-tab3 .ag-scr-ta{
  width:100%; box-sizing:border-box;
  border:1px solid #ecdcc0; border-radius:12px;
  background:#fffdfa; color:var(--c-ink,#0d1b3e);
  padding:12px 14px; font:inherit; line-height:1.5; resize:vertical; min-height:88px;
  transition:border-color .16s var(--c-ease,ease), box-shadow .16s var(--c-ease,ease), background .16s;
}
.agent-tab3 .ag-scr-ta::placeholder{ color:#bcae90; }
.agent-tab3 .ag-scr-ta:focus{
  outline:none; border-color:#e9b25a;
  box-shadow:0 0 0 3px rgba(240,170,70,.2);
  background:#fff;
}

.agent-tab3 .ag-scr-foot{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:11px; }
.agent-tab3 .ag-scr-gen{
  display:inline-flex; align-items:center; gap:8px;
  border:0; cursor:pointer; font:inherit; font-weight:700; font-size:13px; color:#fff;
  padding:10px 15px; border-radius:11px;
  background:linear-gradient(135deg,#f3a938,#e97b3c);
  box-shadow:0 7px 16px -7px rgba(233,123,60,.65);
  transition:transform .12s var(--c-ease,ease), box-shadow .16s, filter .16s;
}
.agent-tab3 .ag-scr-gen:hover{ filter:brightness(1.04); box-shadow:0 9px 20px -7px rgba(233,123,60,.75); }
.agent-tab3 .ag-scr-gen:active{ transform:translateY(1px) scale(.99); }
.agent-tab3 .ag-scr-gen.is-busy{ opacity:.65; pointer-events:none; }
.agent-tab3 .ag-scr-spark{ font-size:13px; line-height:1; }

/* Чип динамической метки — клик вставляет метку в текст. */
.agent-tab3 .ag-scr-token{
  display:inline-flex; align-items:baseline; gap:7px;
  border:1px dashed #e0b784; background:#fff8ec; cursor:pointer;
  padding:7px 11px; border-radius:999px; font:inherit;
  transition:background .14s, border-color .14s, transform .12s var(--c-ease,ease);
}
.agent-tab3 .ag-scr-token:hover{ background:#fdefd6; border-color:#d79f5f; }
.agent-tab3 .ag-scr-token:active{ transform:scale(.98); }
.agent-tab3 .ag-scr-token code{
  font-family:'JetBrains Mono',ui-monospace,Consolas,monospace;
  font-size:12px; font-weight:700; color:#b7671a;
}
.agent-tab3 .ag-scr-token span{ font-size:11.5px; color:var(--c-ink-soft,#46587a); font-weight:500; }

@media (max-width:560px){
  .agent-tab3 .ag-scr-gen{ flex:1 1 auto; justify-content:center; }
  .agent-tab3 .ag-scr-token{ flex:1 1 auto; justify-content:center; }
}
