/* agents.css — the rules of styles/components.css that only solution-ai-agents.html uses, moved out of the shared file
   (2026-09-30) in their original order. Loaded right after components.css on solution-ai-agents.html only; a rule that another
   page or a prototype in claude-design-blocks/ can use stays in components.css. */

/* AI Agents hero — crisp in-focus "agent at work" phone screen (data-aph) */
.fph-app.aph { filter: blur(3px); opacity: .92; transform: scale(1.02); gap: 11px; padding: 15px 17px 15px; }
.fph-app.aph .fph-foot { margin-top: 14px; }
.aph-dec { display: flex; align-items: center; gap: 14px; background: var(--s-tile); border: 1px solid var(--s-line); border-radius: 16px; padding: 13px 14px; }
.aph-dial-c { position: relative; flex: 0 0 auto; }
.aph-dial { width: 60px; height: 60px; display: block; }
.aph-dial .trk { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; }
.aph-dial .val { fill: none; stroke: var(--accent-2); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 201; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .6s var(--ease), stroke .4s var(--ease); }
.aph-dec.done .aph-dial .val { stroke: var(--pos); }
.aph-dial-n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--s-text); }
.aph-dec-r { min-width: 0; }
.aph-verdict { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--accent-2); display: flex; align-items: center; gap: 6px; transition: color .4s var(--ease); }
.aph-dec.done .aph-verdict { color: var(--pos); }
.aph-dec-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--s-muted); margin-top: 4px; }
.aph-dec-id { font-family: var(--font-mono); font-size: 9.5px; color: var(--s-faint); margin-top: 5px; }
.aph-goal { font-family: var(--font-body); font-size: 12px; line-height: 1.45; color: var(--s-text); background: var(--s-tile); border: 1px solid var(--s-line); border-radius: 12px; padding: 9px 12px; }
.aph-plan { display: flex; flex-direction: column; gap: 2px; }
.aph-step { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--s-line); font-family: var(--font-mono); font-size: 11px; color: var(--s-faint); opacity: .5; transition: opacity .35s var(--ease), color .35s var(--ease); }
.aph-step:first-child { border-top: none; }
.aph-step .tk { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--s-line); position: relative; flex: 0 0 auto; transition: background .3s var(--ease), border-color .3s var(--ease); }
.aph-step .tool { color: var(--s-faint); font-size: 10px; }
.aph-step.run { opacity: 1; color: var(--s-muted); }
.aph-step.run .tk { border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 22%, transparent); }
.aph-step.done { opacity: 1; color: var(--s-text); }
.aph-step.done .tool { color: color-mix(in srgb, var(--accent-2) 75%, var(--s-muted)); }
.aph-step.done .tk { background: var(--accent-2); border-color: var(--accent-2); }
.aph-step.done .tk::after { content: ""; position: absolute; left: 5px; top: 2.4px; width: 3px; height: 6.5px; border: solid #04060b; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.aph-feed { display: flex; flex-direction: column; }
.aph-feed-h { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--s-faint); margin-bottom: 4px; }
.aph-frows { display: flex; flex-direction: column; }
.aph-frow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--s-line); font-family: var(--font-mono); font-size: 11px; }
.aph-frow .g { color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aph-frow .ch { color: var(--s-faint); font-size: 9.5px; }
.aph-frow .st { font-size: 9.5px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.aph-frow .st.ok { color: var(--pos); background: color-mix(in srgb, var(--pos) 15%, transparent); }
.aph-frow .st.gate { color: var(--accent-soft); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.aph-frow.in { animation: aphRowIn .45s var(--ease); }
@keyframes aphRowIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aph-frow.in { animation: none; }
}
/* ============================================================
   AI AGENTS — What we do (one ticket in four frames on a rail), How we deliver (every stage ends with a paper),
   Where agents work (one team from the inside: the same drawing for every team). The owner's picks of 2026-10-21
   (concepts W5, D5, S2). The words are static HTML; the drawings are aria-hidden SVG built by js/agents.js.
   ============================================================ */
/* the drawings' shared grammar: opaque boxes, dotted links, a lit route, hatch for «waits for a person» */
.agx { display: block; width: 100%; height: auto; overflow: visible; }
.agx .t { font-family: var(--font-body); font-size: 12px; fill: var(--text-muted); }
.agx .tt { font-family: var(--font-body); font-size: 12.5px; font-weight: 500; fill: var(--text); }
.agx .th { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: -.01em; fill: var(--text); }
.agx .tf { font-family: var(--font-body); font-size: 11.5px; fill: var(--text-faint); }
.agx .m { font-family: var(--font-mono); font-size: 11px; fill: var(--text-muted); }
.agx .hair { fill: none; stroke: color-mix(in srgb, var(--text) 13%, transparent); }
.agx .lane { fill: var(--bg-deep); stroke: color-mix(in srgb, var(--text) 13%, transparent); }
.agx .lane.focal { fill: color-mix(in srgb, var(--accent) 5%, var(--bg-deep)); stroke: color-mix(in srgb, var(--accent-text) 55%, transparent); }
.agx .lane.dash { fill: none; stroke-dasharray: 3 3; }
.agx .dot { fill: none; stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-dasharray: 1.5 3; stroke-linecap: round; }
.agx .lit { fill: none; stroke: var(--accent-text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.agx .done { fill: color-mix(in srgb, var(--text) 18%, var(--bg-deep)); }
.agx .hb { fill: color-mix(in srgb, var(--warn-text) 12%, var(--bg-deep)); }
.agx .hl { stroke: color-mix(in srgb, var(--warn-text) 75%, transparent); stroke-width: 1.2; }
.agx .acc { fill: var(--accent-text); }
.agx .pos { fill: var(--pos-text); }
.agx .posl { fill: none; stroke: var(--pos-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.agx .band { fill: color-mix(in srgb, var(--pos-text) 9%, transparent); }
.agx .ink { fill: var(--text); }
.agx .br path { fill: none; stroke: var(--text); stroke-width: 1; opacity: .75; }
.agx .fade { transition: opacity .4s var(--ease); }
.agx .off { opacity: 0; }
.agx .a-fill { opacity: 0; transition: opacity .35s var(--ease) var(--k, 0s); }
.agx .a-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease) var(--k, 0s); }
.agx.play .a-fill { opacity: 1; }
.agx.play .a-draw { stroke-dashoffset: 0; }
/* the rough panel (EMPHASIS-PATTERNS, приём 7): opaque ground, a low top wash and grain */
.agw-box, .ags-card {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 40%), var(--surface-solid);
}
.agw-box::before, .ags-card::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--grain); background-size: 140px 140px; opacity: .05; mix-blend-mode: overlay; }
.agw-box > *, .ags-card > * { position: relative; z-index: 1; }

/* ---- What we do: four frames on one rail; the rail draws, each frame plays when it is reached ---- */
.agw { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.agw-col { display: grid; grid-template-rows: auto 40px auto auto auto; align-content: start; }
.agw-box { border-radius: 12px; padding: 12px 14px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.agw.armed .agw-box:not(.on) { opacity: 0; transform: translateY(8px); }   /* armed by js/agents.js: without a script the frames simply show */
.agw-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.agw-h span { font: 500 12.5px/1.2 var(--font-body); color: var(--text-muted); }
.agw-h em { font: 400 12px/1.2 var(--font-body); font-style: normal; font-variant-numeric: tabular-nums; color: var(--text-faint); }
.agw-node { justify-self: center; align-self: center; width: 9px; height: 9px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 40%, transparent); transition: background .25s var(--ease), border-color .25s var(--ease); }
.agw-node.on { background: var(--accent-text); border-color: var(--accent-text); }
.agw-rail { position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; opacity: 0; }
.agw.placed .agw-rail { opacity: 1; }
.agw-rail i { position: absolute; top: 0; height: 1px; }
.agw-rail .b { background: color-mix(in srgb, var(--text) 14%, transparent); }
.agw-rail .p { background: var(--accent-text); transform-origin: left; transform: scaleX(0); }
.agw-k { font: 500 14px/1.3 var(--font-body); color: var(--text-muted); }
.agw-col h3 { font: 500 18px/1.25 var(--font-display); letter-spacing: -.015em; margin-top: 6px; text-wrap: balance; }
.agw-col p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }

/* ---- How we deliver: each stage ends with a paper that stays with you ---- */
.agd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.agd-sheet {
  position: relative; max-width: 300px; aspect-ratio: 210 / 250; padding: 16px 16px 14px; border-radius: 3px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); filter: var(--shadow-paper);
  transform: rotate(var(--r, 0deg)); transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.agd.armed .agd-col:not(.on) .agd-sheet { opacity: 0; transform: translateY(26px) rotate(var(--r, 0deg)); }
.agd-ttl { font: 500 14px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.agd-sub { margin-top: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 11.5px; color: var(--text-faint); }
.agd-sheet .agx { margin-top: 10px; }
.agd-ln { height: 5px; margin-top: 7px; border-radius: 2px; background: color-mix(in srgb, var(--text) 12%, transparent); }
.agd-sig { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--border-strong); font-size: 11.5px; color: var(--text-faint); }
.agd-sig b { font-weight: 500; color: var(--pos-text); transition: opacity .4s var(--ease) .5s; }
.agd.armed .agd-col:not(.on) .agd-sig b { opacity: 0; }
.agd-col h3 { font: 500 18px/1.25 var(--font-display); letter-spacing: -.015em; margin-top: 28px; text-wrap: balance; }
.agd-col p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }

/* ---- Where agents work: pick a team, the same drawing shows where its agents plug in ---- */
.ags { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; }
.ags-card { border-radius: var(--radius); }
.ags-head { display: flex; align-items: baseline; gap: 14px; padding: 16px 24px 14px; border-bottom: 1px solid var(--border); }
.ags-team { font: 500 15px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.ags-id { font: 500 12.5px var(--font-body); font-variant-numeric: tabular-nums; color: var(--text-faint); }
.ags-state { margin-left: auto; font: 500 13px var(--font-body); color: var(--text-muted); transition: color .3s var(--ease); }
.ags-state.wait { color: var(--warn-text); }
.ags-state.ok { color: var(--pos-text); }
.ags-fig { padding: 20px 24px 6px; overflow-x: auto; }
.ags-svg { min-width: 664px; }   /* below 0.74 scale the labels, held at 11px, no longer fit their boxes: the figure scrolls instead */
.ags-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; padding: 18px 24px 24px; border-top: 1px solid var(--border); }
.ags-panel { grid-area: 1 / 1; }
.ags-panel[hidden] { display: block; visibility: hidden; }   /* every team keeps its place: the card is as tall as the longest one */
.ags-panel h3 { font: 500 20px/1.25 var(--font-display); letter-spacing: -.015em; }
.ags-panel p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 52ch; }
.ags-k { display: block; margin-top: 16px; font: 500 13px/1.3 var(--font-body); color: var(--text-faint); }
.ags-tasks { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.6; color: var(--text); }
.ags-screen { grid-area: 1 / 2; display: grid; align-self: start; min-width: 0; }   /* the team's live screen: a header line and rows on the panel, no frame of its own */
.ags-scr { grid-area: 1 / 1; min-width: 0; }
.ags-scr:not(.on) { visibility: hidden; }
.ags-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 0 9px; border-bottom: 1px solid var(--border); }
.ags-sn { font: 500 13px var(--font-body); color: var(--text); }
.ags-sid { font: 400 12px var(--font-body); font-variant-numeric: tabular-nums; color: var(--text-faint); }
.ags-r { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text);
  opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ags-r.in { opacity: 1; transform: none; }
.ags-r .mk { width: 8px; height: 8px; border: 1px solid color-mix(in srgb, var(--text) 40%, transparent); }
.ags-r.in .mk { background: color-mix(in srgb, var(--text) 45%, transparent); border-color: transparent; }
.ags-r.gate.in .mk { background: repeating-linear-gradient(45deg, var(--warn-text) 0 1px, transparent 1px 3px); border-color: var(--warn-text); }
.ags-r code { font: 400 12px var(--font-mono); color: var(--text-muted); }
.ags-r .s { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.ags-r.gate .s { color: var(--warn-text); }
.ags-r.ok .s { color: var(--pos-text); }
.ags-chart { padding: 12px 0 4px; }
@media (max-width: 1240px) {
  .ags { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 1080px) {
  .agw, .agd { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .agw-col { grid-template-rows: auto auto auto auto; }
  .agw-node, .agw-rail { display: none; }
  .agw-k { margin-top: 16px; }
  .agw-box .agx { max-width: 300px; }
  .ags { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ags-fig { padding-inline: 12px; }
}
@media (max-width: 640px) {
  .agw, .agd { grid-template-columns: minmax(0, 1fr); }
  .ags-fig { padding: 16px 16px 4px; }
  /* a fixed two-line head: the state never wraps under the team as it changes */
  .ags-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 14px 16px 12px; white-space: nowrap; }
  .ags-state { grid-area: 1 / 2; }
  .ags-id { grid-area: 2 / 1 / 3 / 3; }
  .ags-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px; }
  .ags-screen { grid-area: 2 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .agw-box, .agw-node, .agw .agx *, .agd-sheet, .agd-sig b, .ags-r, .ags .agx *, .ags-state { transition: none; animation: none; }
}
