/* ============================================================
   Агентская страница (#2.14) — точка входа в агентский слой (#10.8).
   Без TSX-референса: по каркасу + ДС + agentic-ai-ux. Классы scoped под .agt.
   ============================================================ */

.agt { padding-top: 8px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 24px; }
.agt section { display: flex; flex-direction: column; }

/* hero */
.agt .agt-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: 22px 18px 20px; color: #fff;
  background:
    radial-gradient(120% 90% at 86% -12%, color-mix(in srgb, var(--brand-coral) 58%, transparent), transparent 56%),
    linear-gradient(150deg, color-mix(in srgb, var(--primary) 88%, #000 5%), color-mix(in srgb, var(--teal) 70%, var(--accent-navy) 50%)); }
.agt .agt-hero__badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.28); font-size: var(--fs-xs); font-weight: var(--fw-extra); letter-spacing: .03em; text-transform: uppercase; }
.agt .agt-hero__badge svg { width: 13px; height: 13px; }
.agt .agt-hero__title { margin: 10px 0 0; font-size: clamp(23px, 5.6vw, 29px); line-height: 1.16; font-weight: var(--fw-extra); letter-spacing: -0.02em; }
.agt .agt-hero__dek { margin: 10px 0 0; font-size: var(--fs-sm); line-height: 1.55; color: rgba(255,255,255,0.9); }
.agt .agt-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: var(--fs-xs); color: rgba(255,255,255,0.85); }
.agt .agt-note svg { width: 13px; height: 13px; }

/* task input */
.agt .agt-task { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.agt .agt-field { display: flex; align-items: flex-start; gap: 10px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 12px 14px; }
.agt .agt-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.agt .agt-field > svg { flex: none; width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }
.agt .agt-field textarea { flex: 1; min-width: 0; border: none; background: transparent; outline: none; resize: none; font-family: inherit; font-size: var(--fs-body); line-height: 1.5; color: var(--fg); }
.agt .agt-field textarea::placeholder { color: var(--fg-3); }
.agt .agt-examples { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.agt .agt-examples::-webkit-scrollbar { display: none; }

/* skills */
.agt .agt-skills { display: flex; flex-direction: column; gap: 10px; }
.agt .agt-skill { display: flex; gap: 12px; padding: 13px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.agt .agt-skill__ic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-on-soft); }
.agt .agt-skill__ic svg { width: 20px; height: 20px; }
.agt .agt-skill__body { display: flex; flex-direction: column; gap: 2px; }
.agt .agt-skill__body b { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--fg); }
.agt .agt-skill__body span { font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.45; }

/* how steps */
.agt .agt-how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.agt .agt-how__item { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.agt .agt-how__item:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--border-2); }
.agt .agt-how__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; z-index: 1; font-size: var(--fs-sm); font-weight: var(--fw-extra); color: #fff; background: linear-gradient(150deg, var(--primary), var(--teal)); box-shadow: var(--shadow-sm); }
.agt .agt-how__body { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.agt .agt-how__body b { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--fg); }
.agt .agt-how__body span { font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.45; }

/* demo run (approval gate) */
.agt .agt-run { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.agt .agt-run__head { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--primary-soft); color: var(--primary-on-soft); }
.agt .agt-run__head .ic { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--primary), var(--teal)); color: #fff; }
.agt .agt-run__head .ic svg { width: 17px; height: 17px; }
.agt .agt-run__head b { font-size: var(--fs-sm); font-weight: var(--fw-extra); }
.agt .agt-run__body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.agt .agt-plan-cent { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.agt .agt-plan-cent__ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); }
.agt .agt-plan-cent__ic svg { width: 18px; height: 18px; }
.agt .agt-plan-cent__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.agt .agt-plan-cent__body b { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--fg); }
.agt .agt-plan-cent__body span { font-size: var(--fs-xs); color: var(--fg-2); }
.agt .agt-plan-cent > svg { width: 16px; height: 16px; flex: none; color: var(--success); }
.agt .agt-what { border: 1px dashed var(--border-2); border-radius: var(--r-md); padding: 12px; }
.agt .agt-what__label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-extra); text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin-bottom: 8px; }
.agt .agt-what__label svg { width: 13px; height: 13px; }
.agt .agt-what__row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); padding: 5px 0; }
.agt .agt-what__row + .agt-what__row { border-top: 1px solid var(--border); }
.agt .agt-what__k { color: var(--fg-2); }
.agt .agt-what__v { color: var(--fg); font-weight: var(--fw-semibold); text-align: right; }
.agt .agt-run__actions { display: flex; gap: 8px; }
.agt .agt-run__actions .btn { flex: 1; }
.agt .agt-run__cancel { background: none; border: none; color: var(--fg-3); font-family: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; padding: 8px; }
.agt .agt-sent { display: flex; gap: 12px; padding: 16px; align-items: flex-start; }
.agt .agt-sent__ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.agt .agt-sent__ic svg { width: 22px; height: 22px; }
.agt .agt-sent b { font-size: var(--fs-body); font-weight: var(--fw-extra); color: var(--fg); }
.agt .agt-sent p { margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--fg-2); }

/* boundaries */
.agt .agt-bound { border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: var(--r-md); background: var(--success-soft); padding: 16px; }
.agt .agt-bound__head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: var(--fw-extra); color: var(--success); margin-bottom: 10px; }
.agt .agt-bound__head svg { width: 16px; height: 16px; }
.agt .agt-bound ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.agt .agt-bound li { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-sm); line-height: 1.5; color: color-mix(in srgb, var(--success) 75%, var(--fg)); }
.agt .agt-bound li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--success); }

/* saved tasks */
.agt .agt-saved { display: flex; flex-direction: column; gap: 8px; }
.agt .agt-saved__row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.agt .agt-saved__ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-on-soft); }
.agt .agt-saved__ic svg { width: 18px; height: 18px; }
.agt .agt-saved__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agt .agt-saved__body b { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--fg); }
.agt .agt-saved__body span { font-size: var(--fs-xs); color: var(--fg-2); }
