/* t227u AEGIS tools inside the Foundational OS design. Sapphire on midnight for the hero, white and alt bands below. */
.ag-sub { position: sticky; top: var(--bar); z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.ag-sub__in { display: flex; align-items: center; gap: 24px; min-height: 52px; overflow-x: auto; scrollbar-width: none; }
.ag-sub__in::-webkit-scrollbar { display: none; }
.ag-sub__brand { font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.ag-sub__list { list-style: none; display: flex; gap: 20px; margin: 0 0 0 auto; padding: 0; }
.ag-sub__list a { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 6px 0; display: inline-block; }
.ag-sub__list a:hover, .ag-sub__list a[aria-current="page"] { color: var(--ink); }
.ag-sub__list a[aria-current="page"] { box-shadow: inset 0 -2px 0 #2563EB; }
.ag-hero { background: radial-gradient(120% 90% at 80% 0%, #12306f 0%, #071232 45%, #03060f 100%); color: #f2f4fa; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.ag-kick { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fb3ff; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ag-live { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: #c7cbe0; font-size: 13px; }
.ag-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6b6d75; }
.ag-live.is-on::before { background: #3fd68f; }
.ag-live.is-off::before { background: #e5a33a; }
.ag-h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 18px; max-width: 16ch; }
.ag-desc { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: #c9cee2; margin: 0 0 28px; max-width: 60ch; }
.ag-hero .ob-btn--q.ag-ghost { color: #f2f4fa; border-color: rgba(255, 255, 255, .4); }
.ag-stats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ag-stats li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 16px 18px; }
.ag-stats--light li { background: var(--bg); border-color: var(--line); }
.ag-stat__n { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 0; font-variant-numeric: tabular-nums; }
.ag-stat__l { font-size: 14px; margin: 4px 0 0; opacity: .78; }
.ag-wait { color: var(--muted); }
.ag-hero .ag-wait { color: #c9cee2; }
.ag-assets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.ag-asset { width: 100%; text-align: left; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; cursor: pointer; transition: border-color .2s, transform .2s; min-height: 44px; }
.ag-asset:hover, .ag-asset:focus-visible { border-color: #2563EB; transform: translateY(-2px); }
.ag-asset__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ag-asset__label { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.ag-asset__host { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.ag-asset__meta { font-size: 14px; color: #3d4048; }
.ag-asset__when { font-size: 13px; color: var(--muted); }
.ag-grade { font-weight: 800; font-size: 20px; min-width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: #eef2ff; color: #1e3a8a; }
.ag-grade--a { background: #dcfce7; color: #14532d; } .ag-grade--b { background: #e0ecff; color: #1e3a8a; } .ag-grade--c { background: #fef3c7; color: #78350f; }
.ag-grade--d, .ag-grade--f { background: #fee2e2; color: #7f1d1d; }
.ag-dlg { border: 0; border-radius: 24px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 48px); color: var(--ink); }
.ag-dlg::backdrop { background: rgba(5, 8, 20, .6); }
.ag-dlg__in { padding: 28px clamp(18px, 4vw, 36px) 32px; position: relative; }
.ag-dlg__h { font-size: 28px; letter-spacing: -.02em; margin: 0 40px 6px 0; }
.ag-dlg__sub { color: var(--muted); margin: 0 0 16px; overflow-wrap: anywhere; }
.ag-dlg h3 { font-size: 17px; margin: 26px 0 10px; }
.ag-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 24px; cursor: pointer; color: var(--ink); }
.ag-finds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ag-find { border: 1px solid var(--line); border-left: 4px solid #94a3b8; border-radius: 12px; padding: 12px 14px; }
.ag-find--critical { border-left-color: #b91c1c; } .ag-find--high { border-left-color: #dc2626; } .ag-find--medium { border-left-color: #d97706; } .ag-find--low { border-left-color: #2563EB; }
.ag-find__s { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.ag-find__t { font-weight: 600; margin: 2px 0 0; }
.ag-find__d { font-size: 14px; color: #3d4048; margin: 4px 0 0; overflow-wrap: anywhere; }
.ag-fix { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 10px; background: var(--alt); }
.ag-fix__t { font-weight: 600; margin: 0 0 8px; } .ag-fix__t span { font-weight: 400; color: var(--muted); font-size: 14px; }
.ag-fix pre { margin: 0; overflow-x: auto; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ag-kv { border-collapse: collapse; width: 100%; font-size: 14px; }
.ag-kv th { text-align: left; font-weight: 600; padding: 7px 12px 7px 0; width: 40%; vertical-align: top; color: #3d4048; }
.ag-kv td { padding: 7px 0; overflow-wrap: anywhere; word-break: break-word; }
.ag-kv tr + tr { border-top: 1px solid var(--line); }
.ag-miss { color: #b45309; }
.ag-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.ag-table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 620px; }
.ag-table th { text-align: left; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--alt); white-space: nowrap; }
.ag-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.ag-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.ag-hist { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding: 12px 0 0; }
.ag-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.ag-bar__f { width: 100%; max-width: 44px; background: linear-gradient(180deg, #3b82f6, #1d4ed8); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.ag-bar__l { font-size: 12px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.ag-bar__n { font-size: 12px; font-weight: 600; }
.ag-note { color: var(--muted); font-size: 14px; }
.ag-drift { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ag-drift li { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ag-drift p { margin: 0; } .ag-drift__w { font-weight: 600; margin-bottom: 4px !important; } .ag-drift__h { color: var(--muted); }
.ag-ok { color: #15803d; font-weight: 600; } .ag-bad { color: #b91c1c; font-weight: 600; }
.ag-form { display: grid; gap: 14px; max-width: 560px; }
.ag-f { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.ag-f input { font: inherit; font-weight: 400; padding: 14px 16px; border: 1px solid #c9ccd3; border-radius: 12px; min-height: 48px; }
.ag-f input:focus { outline: 2px solid #2563EB; outline-offset: 1px; }
.ag-step, .ag-out { margin-top: 22px; }
.ag-proofs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ag-proof { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--bg); }
.ag-proof h3 { font-size: 17px; margin: 0 0 6px; } .ag-proof__f { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.ag-link { color: #1d4ed8; font-weight: 600; text-decoration: none; display: inline-block; padding: 8px 0; } .ag-link:hover { text-decoration: underline; }
.ag-road { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ag-road__i { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--bg); }
.ag-road__i h3 { font-size: 16px; margin: 4px 0; } .ag-road__k { font-size: 12px; color: var(--muted); margin: 0; }
.ag-road__s { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 0; color: #64748b; }
.ag-road__i--live .ag-road__s { color: #15803d; } .ag-road__i--paused .ag-road__s { color: #b45309; }
@media (max-width: 640px) {
  .ag-sub__in { flex-wrap: wrap; gap: 2px 16px; padding: 8px 16px; overflow-x: visible; }
  .ag-sub__list { gap: 2px 12px; margin-left: 0; flex-wrap: wrap; width: 100%; }
  .ag-stat__n { font-size: 24px; }
  .ag-hist { gap: 4px; } .ag-bar__l { font-size: 10px; writing-mode: vertical-rl; transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) { .ag-asset { transition: none; } .ag-asset:hover { transform: none; } }
