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

.af-lc-timer { color: var(--accent-2); }
.fph-row.blk .amt { color: var(--neg); }
.af-ab-row.falsepos { background: color-mix(in srgb, var(--neg) 10%, transparent); }
/* ============================================================
   Inside the decision (the case file), Graph intelligence (the planet of the anti-fraud film and the ring it finds),
   From signal to decision (two loops). The owner's picks of 2026-10-21 (concepts I1, G1, P1). The words are static HTML;
   the feed, the planet and the drawing are decoration built by js/anti-fraud.js and js/anti-fraud-globe.js.
   ============================================================ */
/* the rough panel (EMPHASIS-PATTERNS, приём 7): opaque ground, a low top wash and grain */
.afx-panel {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 38%), var(--surface-solid);
}
.afx-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); background-size: 140px 140px; opacity: .05; mix-blend-mode: overlay; }
.c-ok { color: var(--pos-text); } .c-rv { color: var(--warn-text); } .c-bl { color: var(--neg-text); }

/* ---- Inside the decision: four published figures, a quiet feed, the open case ---- */
.afd-kpis { display: flex; align-items: flex-end; padding: 18px 24px 16px; border-bottom: 1px solid var(--border); }
.afd-ctx { margin-right: auto; align-self: center; font: 500 14px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.afd-k { display: flex; flex-direction: column; gap: 4px; padding: 0 22px; border-left: 1px solid var(--border); }
.afd-k:last-child { padding-right: 0; }
.afd-k span { font-size: 12.5px; color: var(--text-faint); }
.afd-k b { font: 500 22px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.afd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.afd-feed { padding: 18px 24px 22px; border-right: 1px solid var(--border); min-width: 0; }
.afd-fh { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-faint); padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.afd-fh span:last-child { width: 132px; }
.afd-list { height: 352px; overflow: hidden; }
.afd-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 84px 132px; gap: 12px; align-items: center; height: 44px; border-bottom: 1px solid var(--border); font-size: 13.5px; transition: background-color .4s var(--ease); }
.afd-row.hot { background: color-mix(in srgb, var(--text) 4%, transparent); }
.afd-row .tm { font: 400 12px var(--font-mono); color: var(--text-faint); font-variant-numeric: tabular-nums; padding-left: 6px; }
.afd-row .mer { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afd-row .amt { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.afd-row .sc { display: grid; grid-template-columns: 56px auto; gap: 10px; align-items: center; }
.afd-row .sc b { font: 500 12.5px var(--font-mono); font-variant-numeric: tabular-nums; }
.afd-rl { position: relative; height: 12px; }
.afd-rl::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: color-mix(in srgb, var(--text) 18%, transparent); }
.afd-rl i { position: absolute; top: 3px; width: 1px; height: 6px; background: color-mix(in srgb, var(--text) 30%, transparent); }
.afd-rl em { position: absolute; top: 1px; width: 3px; height: 10px; margin-left: -1px; background: currentColor; }
.afd-case { padding: 18px 26px 22px; min-width: 0; container-type: inline-size; }
.afd-ch { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.afd-cid { font: 400 12.5px var(--font-mono); color: var(--text-faint); }
.afd-dec { font: 500 14px var(--font-display); letter-spacing: -.01em; transition: color .3s var(--ease); }
.afd-sum { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.afd-sum b { font: 500 30px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.afd-sum span { font-size: 15px; color: var(--text-muted); }
.afd-sub { margin-top: 6px; font-size: 13.5px; color: var(--text-faint); }
/* the reasons add up to the score: a baseline, then each signal on the shared 0–1 scale; the dashed lines are the policy */
.afd-wf { margin-top: 18px; }
.afd-wr, .afd-wt { display: grid; grid-template-columns: minmax(0, 1fr) 40% 52px; gap: 12px; align-items: center; font-size: 13px; color: var(--text-muted); }
.afd-wr { height: 30px; }
.afd-wr .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afd-wr .val, .afd-wt .val { font: 400 12px var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.afd-wr .tr { position: relative; align-self: stretch; }
.afd-wr .tr::before, .afd-wr .tr::after { content: ""; position: absolute; top: 0; bottom: 0; border-left: 1px dashed color-mix(in srgb, var(--text) 22%, transparent); }
.afd-wr .tr::before { left: 40%; } .afd-wr .tr::after { left: 70%; }
.afd-wr .tr i { position: absolute; top: 10px; height: 10px; border-radius: 2px; transform-origin: left center; transition: transform .38s var(--ease) var(--k, 0s); }
.afd-wr .tr i.base { background: color-mix(in srgb, var(--text) 22%, transparent); }
.afd-wr .tr i.up { background: var(--warn-text); }
.afd-wf.pre .tr i { transform: scaleX(0); }
.afd-wt { align-items: start; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.afd-wt .lab { font: 500 14px var(--font-display); color: var(--text); }
.afd-wt .val { font-size: 14px; font-weight: 500; }
.afd-ax { position: relative; height: 34px; }
.afd-ax::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: color-mix(in srgb, var(--text) 30%, transparent); }
.afd-ax .tk { position: absolute; top: 2px; width: 1px; height: 7px; background: color-mix(in srgb, var(--text) 40%, transparent); }
.afd-ax .mk { position: absolute; top: 0; width: 3px; height: 11px; margin-left: -1px; background: currentColor; transition: left .5s var(--ease); }
.afd-ax .bd { position: absolute; top: 15px; font-size: 11.5px; color: var(--text-faint); white-space: nowrap; transform: translateX(-50%); transition: color .3s var(--ease); }
.afd-ax .bd.on { color: currentColor; }
.afd-codes { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 12px var(--font-mono); color: var(--text-muted); }
.afd-note { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--text-muted); max-width: 60ch; min-height: 3.1em; }
@container (max-width: 500px) {
  .afd-wr, .afd-wt { grid-template-columns: minmax(0, 1fr) 48px; gap: 2px 12px; }
  .afd-wr { height: auto; padding: 3px 0; }
  .afd-wr .lab, .afd-wt .lab { grid-column: 1 / -1; }
  .afd-wr .tr { height: 16px; }
  .afd-wr .tr i { top: 3px; }
}
.afd-audit { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-size: 12.5px; color: var(--text-faint); }

/* ---- Graph intelligence: the planet and the ring it finds ---- */
.afg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: center; }
.afg-planet { position: relative; aspect-ratio: 16 / 11; min-width: 0; }
.afg-planet canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.afg.nogl .afg-planet::before { content: ""; position: absolute; left: 50%; top: 50%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 42% 30%, color-mix(in srgb, var(--accent-2) 16%, var(--surface-solid)), var(--bg-deep) 72%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.afg-marks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.afg-city { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.afg-city > i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border: 1.5px solid color-mix(in srgb, var(--text) 55%, transparent); border-radius: 50%; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.afg-city.mule > i { left: -13px; top: -13px; width: 26px; height: 26px; }
.afg-city.lit > i { border-color: var(--accent-2-text); transform: scale(1.15); }
.afg-city.blocked > i { border-color: var(--neg-text); }
.afg-city .lab { position: absolute; left: 14px; top: -24px; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; font-size: 12px; line-height: 1.25; color: var(--text); }
.afg-city.mule .lab { left: 18px; top: -10px; }
.afg-city .lab b { font: 500 11.5px var(--font-mono); color: var(--text); opacity: 0; transition: opacity .3s var(--ease); }
.afg-city.lit .lab b { opacity: 1; }
.afg-city .pay { color: var(--text-faint); opacity: 0; transition: opacity .3s var(--ease), color .3s var(--ease); }
.afg-city.cleared .pay { opacity: 1; color: var(--pos-text); }
.afg-city.blocked .pay { opacity: 1; color: var(--neg-text); }
.afg-link { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); margin-top: -12px; font-size: 11.5px; color: var(--text); white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease); }
.afg-side { padding: 20px 22px 22px; }
.afg-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.afg-h b { font: 500 16px var(--font-display); letter-spacing: -.01em; }
.afg-st { font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.afg.caught .afg-st { color: var(--neg-text); }
.afg-tag { margin-top: 10px; font-size: 13.5px; color: var(--text-muted); }
.afg-rows { margin-top: 12px; }
.afg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); transition: color .35s var(--ease); }
.afg-row .id { font: 500 13px var(--font-mono); }
.afg-row .amt { font: 500 14px var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.afg-row .meta { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); }
.afg.armed .afg-row:not(.on), .afg.armed .afg-row:not(.on) .meta { color: var(--text-faint); }   /* armed by js/anti-fraud.js: without a script the ring reads as found */
.afg.caught .afg-row .amt { color: var(--neg-text); }
.afg-insight { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--text); transition: color .4s var(--ease); }
.afg.armed:not(.caught) .afg-insight { color: var(--text-faint); }

/* ---- the drawings' grammar (as on AI Agents) ---- */
.afx { display: block; width: 100%; height: auto; overflow: visible; }
.afx .t { font-family: var(--font-body); font-size: 12.5px; fill: var(--text-muted); }
.afx .tt { font-family: var(--font-body); font-size: 13px; font-weight: 500; fill: var(--text); }
.afx .th { font-family: var(--font-display); font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; fill: var(--text); }
.afx .tf { font-family: var(--font-body); font-size: 12px; fill: var(--text-faint); }
.afx .m { font-family: var(--font-mono); font-size: 11.5px; fill: var(--text-muted); }
.afx .lane { fill: var(--bg-deep); stroke: color-mix(in srgb, var(--text) 13%, transparent); }
.afx .lane.focal { fill: color-mix(in srgb, var(--accent) 5%, var(--bg-deep)); stroke: color-mix(in srgb, var(--accent-text) 55%, transparent); }
.afx .dot { fill: none; stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-dasharray: 1.5 3; stroke-linecap: round; }
.afx .lit { fill: none; stroke: var(--accent-text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.afx .hair { fill: none; stroke: color-mix(in srgb, var(--text) 13%, transparent); }
.afx .bar { fill: color-mix(in srgb, var(--text) 38%, transparent); }
.afx .acc { fill: var(--accent-text); }
.afx .ok { fill: var(--pos-text); } .afx .rv { fill: var(--warn-text); } .afx .bl { fill: var(--neg-text); }
.afx .br path { fill: none; stroke: var(--text); stroke-width: 1; opacity: .75; }
.afx .fade { transition: opacity .4s var(--ease), fill .3s var(--ease); }
.afx .off { opacity: 0; }
.afx .mv { transition: transform .5s var(--ease); }

/* ---- From signal to decision: every transaction, every night ---- */
.afp-head { display: flex; align-items: baseline; gap: 16px; padding: 16px 24px 14px; border-bottom: 1px solid var(--border); }
.afp-st { font: 500 15px var(--font-display); letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.afp-cap { font-size: 14px; color: var(--text-muted); transition: opacity .3s var(--ease); }
.afp-cap.swap { opacity: 0; }
.afp-fig { padding: 22px 24px 18px; }

@media (max-width: 1080px) {
  .afd-kpis { flex-wrap: wrap; gap: 12px 0; }
  .afd-ctx { width: 100%; }
  .afd-k:first-of-type { border-left: 0; padding-left: 0; }
  .afd-body { grid-template-columns: minmax(0, 1fr); }
  .afd-feed { border-right: 0; border-bottom: 1px solid var(--border); }
  .afd-list { height: 264px; }
  .afg { grid-template-columns: minmax(0, 1fr); }
  .afp-fig { overflow-x: auto; }
  .afp-svg { min-width: 760px; }
}
@media (max-width: 640px) {
  .afd-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 16px; }
  .afd-ctx { grid-column: 1 / -1; }
  .afd-k, .afd-k:first-of-type { padding: 0; border-left: 0; }
  .afd-k b { font-size: 18px; }
  .afd-feed, .afd-case { padding: 16px; }
  .afd-note { min-height: 4.65em; }   /* a case's note runs to three lines here: the block keeps one height */
  .afd-row { grid-template-columns: 54px minmax(0, 1fr) 70px 34px; }
  .afd-row .sc { display: block; text-align: right; }
  .afd-rl { display: none; }
  .afd-fh span:last-child { width: auto; }
  .afp-head { flex-direction: column; gap: 4px; padding: 14px 16px 12px; }
  .afp-fig { padding: 16px 16px 12px; }
}
@media (max-width: 400px) {
  .afd-sub { min-height: 2.9em; line-height: 1.45; }   /* and the case's context line to two */
}
@media (prefers-reduced-motion: reduce) {
  .afd-row, .afd-wr .tr i, .afd-ax .mk, .afd-ax .bd, .afg-city > i, .afg-city .lab b, .afg-city .pay, .afg-row, .afg-insight, .afp-cap, .afx * { transition: none !important; }
}
