.agent-security-commons {
  --asc-ink: #17201c;
  --asc-muted: #65716c;
  --asc-paper: #f4f1e9;
  --asc-panel: #fffdf8;
  --asc-line: #d8ddd7;
  --asc-green: #2f7463;
  --asc-green-soft: #dfeee8;
  --asc-gold: #9a6d24;
  --asc-gold-soft: #f3e8d2;
  margin: 3.5rem 0;
  overflow: hidden;
  color: var(--asc-ink);
  background: var(--asc-paper);
  border: 1px solid var(--asc-line);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(18, 29, 24, .11);
}

.agent-security-commons *, .agent-security-commons *::before, .agent-security-commons *::after { box-sizing: border-box; }
.agent-security-commons button { font: inherit; color: inherit; }
.asc-masthead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 2rem; padding: 3rem; background: #121916; color: #f8f5ed; }
.asc-kicker { display: block; margin-bottom: 1rem; color: #91c7b8; font: 700 .73rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.asc-masthead h2 { max-width: 780px; margin: 0; font-size: clamp(2.4rem, 5.5vw, 5.1rem); line-height: .96; letter-spacing: -.055em; }
.asc-masthead h2 em { color: #d6b974; font-family: Georgia, serif; font-weight: 500; }
.asc-masthead p { max-width: 720px; margin: 1.5rem 0 0; color: #b9c4bf; font-size: 1.06rem; line-height: 1.7; }
.asc-masthead aside { align-self: stretch; display: grid; align-content: space-between; gap: 1.5rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.035); }
.asc-masthead aside span { color: #91c7b8; font: 700 .7rem ui-monospace, monospace; letter-spacing: .12em; }
.asc-masthead aside b { display: block; margin-top: .7rem; font-size: 1.35rem; line-height: 1.25; }
.asc-masthead aside small { color: #aeb9b4; line-height: 1.55; }
.asc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.asc-actions a { display: inline-flex; min-height: 44px; align-items: center; padding: .72rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 750; }
.asc-actions .asc-primary { color: #102019; background: #91c7b8; }
.asc-actions .asc-secondary { color: #f7f2e8; border: 1px solid rgba(255,255,255,.2); }
.asc-proof { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--asc-line); }
.asc-proof span { padding: 1.25rem 1.5rem; border-right: 1px solid var(--asc-line); }
.asc-proof span:last-child { border-right: 0; }
.asc-proof b { display: block; color: var(--asc-green); font-size: 2rem; line-height: 1; }
.asc-proof small { display: block; margin-top: .45rem; color: var(--asc-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.asc-body { padding: 2.5rem 3rem 3rem; }
.asc-section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.25rem; }
.asc-section-head span { color: var(--asc-green); font: 700 .72rem ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.asc-section-head h3 { margin: .45rem 0 0; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.035em; }
.asc-section-head p { max-width: 520px; margin: 0; color: var(--asc-muted); line-height: 1.55; }
.asc-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 2.7rem; overflow: hidden; border: 1px solid var(--asc-line); border-radius: 18px; background: var(--asc-line); }
.asc-flow article { min-height: 170px; padding: 1.35rem; background: var(--asc-panel); }
.asc-flow b { color: var(--asc-gold); font: 700 .72rem ui-monospace, monospace; letter-spacing: .1em; }
.asc-flow h4 { margin: 1.2rem 0 .55rem; font-size: 1.1rem; }
.asc-flow p { margin: 0; color: var(--asc-muted); font-size: .9rem; line-height: 1.55; }
.asc-effect-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 1rem; margin-bottom: 2.7rem; }
.asc-effect-grid > article { padding: 1.4rem; border: 1px solid var(--asc-line); border-radius: 18px; background: var(--asc-panel); }
.asc-effect-grid article > span, .asc-effect-proof header span { color: var(--asc-green); font: 700 .68rem ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.asc-effect-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: .55rem; align-items: center; margin: 1.2rem 0; }
.asc-effect-chain div { min-width: 0; padding: .9rem; border: 1px solid var(--asc-line); border-radius: 12px; background: #f7f5ef; }
.asc-effect-chain i { display: block; color: var(--asc-muted); font: 700 .65rem ui-monospace, monospace; font-style: normal; }
.asc-effect-chain b { display: block; margin: .45rem 0 .25rem; font: 750 .75rem ui-monospace, monospace; letter-spacing: .06em; }
.asc-effect-chain small { color: var(--asc-muted); font-size: .7rem; }
.asc-effect-chain em { color: #98a19c; font-style: normal; }
.asc-effect-chain .uncertain { border-color: #d9bd8d; background: #fbf2e4; }
.asc-effect-chain .safe { border-color: #96b9ad; background: var(--asc-green-soft); }
.asc-effect-path p { margin: 0; color: var(--asc-muted); font-size: .88rem; line-height: 1.55; }
.asc-effect-proof { color: #f7f3eb; background: #17201c !important; }
.asc-effect-proof header { display: flex; justify-content: space-between; gap: 1rem; }
.asc-effect-proof header code { color: #d6b974; font: 700 .72rem ui-monospace, monospace; }
.asc-effect-proof > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 1.2rem 0; background: rgba(255,255,255,.12); }
.asc-effect-proof > div span { padding: .85rem; background: #17201c; }
.asc-effect-proof > div span:last-child { grid-column: 1 / -1; }
.asc-effect-proof b { display: block; color: #91c7b8; font-size: 1.45rem; }
.asc-effect-proof small { color: #aeb9b4; font-size: .72rem; }
.asc-effect-conformance { margin: 0 0 1rem; padding: .85rem; border: 1px solid rgba(145,199,184,.24); border-radius: 11px; background: rgba(145,199,184,.07); }
.asc-effect-conformance span { display: block; color: #91c7b8 !important; font-size: .62rem !important; }
.asc-effect-conformance b, .asc-effect-conformance small { display: block; margin-top: .35rem; }
.asc-effect-conformance b { color: #f7f3eb; font-size: .86rem; }
.asc-effect-conformance b i, .asc-effect-conformance small i { color: #91c7b8; font-style: normal; }
.asc-effect-conformance code { color: #d6b974; }
.asc-effect-crash { border-color: rgba(214,185,116,.24); background: rgba(214,185,116,.07); }
.asc-effect-crash span, .asc-effect-crash b i, .asc-effect-crash small i { color: #d6b974 !important; }
.asc-effect-race { border-color: rgba(130,163,200,.25); background: rgba(130,163,200,.07); }
.asc-effect-race span, .asc-effect-race b i, .asc-effect-race small i { color: #a8c5df !important; }
.asc-effect-matrix { margin: 0 0 1rem; padding: .95rem; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; background: rgba(255,255,255,.04); }
.asc-effect-matrix span, .asc-effect-matrix b, .asc-effect-matrix small { display: block; }
.asc-effect-matrix span { color: #d6b974; font: 700 .62rem ui-monospace, monospace; letter-spacing: .1em; }
.asc-effect-matrix b { margin-top: .35rem; font-size: .86rem; }
.asc-effect-matrix small { margin-top: .35rem; }
.asc-effect-matrix i { color: #d6b974; font-style: normal; }
.asc-effect-matrix code { color: #91c7b8; }
.asc-effect-binding { border-color: rgba(145,199,184,.28); background: rgba(145,199,184,.055); }
.asc-effect-proof a { color: #f7f3eb; font-weight: 750; }
.asc-lab { display: grid; grid-template-columns: minmax(230px, .32fr) minmax(0, .68fr); margin-bottom: 2.7rem; border: 1px solid var(--asc-line); border-radius: 18px; background: var(--asc-panel); overflow: hidden; }
.asc-arm-list { padding: 1rem; border-right: 1px solid var(--asc-line); background: #ece9e1; }
.asc-arm-list button { width: 100%; margin-bottom: .55rem; padding: 1rem; text-align: left; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
.asc-arm-list button:hover { background: rgba(255,255,255,.58); }
.asc-arm-list button[aria-pressed="true"] { border-color: #9abaae; background: #fff; box-shadow: 0 7px 20px rgba(30, 60, 48, .08); }
.asc-arm-list button b { display: block; font-size: .94rem; }
.asc-arm-list button small { display: block; margin-top: .35rem; color: var(--asc-muted); }
.asc-arm-panel { padding: 1.5rem; }
.asc-arm-panel header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.asc-arm-panel h4 { margin: 0; font-size: 1.35rem; }
.asc-arm-panel header span { padding: .45rem .65rem; border-radius: 999px; color: var(--asc-green); background: var(--asc-green-soft); font: 700 .72rem ui-monospace, monospace; }
.asc-meter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.4rem; }
.asc-meter { padding: 1rem; border: 1px solid var(--asc-line); border-radius: 13px; }
.asc-meter b { display: block; font-size: 1.55rem; }
.asc-meter small { color: var(--asc-muted); }
.asc-meter-track { height: 5px; margin-top: .8rem; overflow: hidden; border-radius: 5px; background: #e1e5e1; }
.asc-meter-track i { display: block; height: 100%; background: var(--asc-green); }
.asc-unsafe { margin: 1.2rem 0 0; padding: .9rem 1rem; border-left: 3px solid #b77a3c; color: #5f4b36; background: #f8efe3; line-height: 1.5; }
.asc-kits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-bottom: 2.7rem; }
.asc-kit { display: flex; min-height: 205px; flex-direction: column; padding: 1.1rem; color: inherit; text-decoration: none; border: 1px solid var(--asc-line); border-radius: 15px; background: var(--asc-panel); transition: transform .18s ease, box-shadow .18s ease; }
.asc-kit:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30, 50, 42, .1); }
.asc-kit span { color: var(--asc-green); font: 700 .68rem ui-monospace, monospace; text-transform: uppercase; }
.asc-kit h4 { margin: .9rem 0 .5rem; font-size: 1rem; line-height: 1.25; }
.asc-kit p { margin: 0; color: var(--asc-muted); font-size: .8rem; line-height: 1.45; }
.asc-kit footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--asc-line); color: var(--asc-muted); font-size: .73rem; }
.asc-route-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.asc-route-card { padding: 1.5rem; border-radius: 18px; background: #17201c; color: #f6f2e9; }
.asc-route-card.light { color: var(--asc-ink); background: var(--asc-gold-soft); }
.asc-route-card span { color: #91c7b8; font: 700 .7rem ui-monospace, monospace; letter-spacing: .12em; }
.asc-route-card.light span { color: var(--asc-gold); }
.asc-route-card h3 { margin: .8rem 0 .65rem; font-size: 1.45rem; }
.asc-route-card p { color: #b8c2bd; line-height: 1.55; }
.asc-route-card.light p { color: #695d4b; }
.asc-route-card a { display: inline-block; margin: .4rem .65rem .2rem 0; color: inherit; font-weight: 750; }
.asc-fallback { padding: 1rem; color: #66431e; background: #f9ead8; border-radius: 12px; }
.agent-security-commons button:focus-visible, .agent-security-commons a:focus-visible { outline: 3px solid #d6b974; outline-offset: 3px; }

@media (max-width: 980px) {
  .asc-masthead { grid-template-columns: 1fr; }
  .asc-flow { grid-template-columns: repeat(2, 1fr); }
  .asc-kits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .agent-security-commons { border-radius: 20px; }
  .asc-masthead, .asc-body { padding: 1.5rem; }
  .asc-proof { grid-template-columns: repeat(2, 1fr); }
  .asc-proof span:nth-child(even) { border-right: 0; }
  .asc-proof span:nth-child(-n+4) { border-bottom: 1px solid var(--asc-line); }
  .asc-proof span:last-child { grid-column: 1 / -1; }
  .asc-section-head, .asc-lab, .asc-route-grid, .asc-effect-grid { display: block; }
  .asc-section-head p { margin-top: .75rem; }
  .asc-flow, .asc-kits { grid-template-columns: 1fr; }
  .asc-arm-list { border-right: 0; border-bottom: 1px solid var(--asc-line); }
  .asc-meter-grid { grid-template-columns: 1fr; }
  .asc-effect-chain { grid-template-columns: 1fr; }
  .asc-effect-chain em { display: none; }
  .asc-effect-proof { margin-top: .8rem; }
  .asc-route-card + .asc-route-card { margin-top: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .agent-security-commons *, .agent-security-commons *::before, .agent-security-commons *::after { scroll-behavior: auto !important; transition: none !important; }
}
