/* A2A Agent Card validator -- page-specific styles. Reuses the brand variables from main.css. Status colors are paired with a text badge (PASS/WARN/FAIL/INFO), never color alone. No inline styles. */ :root { --ok: #3fb950; --warn: #d29922; --bad: #f85149; } #validator { padding: 60px 0 90px; background: radial-gradient(circle at top, #1c2128 0%, var(--bg-deep) 100%); } #validator .inner { max-width: 1180px; } .val-head { text-align: center; margin-bottom: 2.5rem; } .val-head h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 1rem; } .val-head h1 span { color: var(--brand-blue); } .val-head p { max-width: 760px; margin: 0 auto; color: var(--text-primary); } .val-head .privacy { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; } .val-layout { display: flex; gap: 2rem; align-items: stretch; } .val-input, .val-output { flex: 1; min-width: 0; } /* --- Input panel --- */ .val-toolbar { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; } .btn-secondary { background: none; border: 1px solid var(--border-subtle); color: var(--text-primary); font: inherit; font-size: 0.85rem; font-weight: 600; padding: 0.55rem 1.1rem; border-radius: 4px; cursor: pointer; } .btn-secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue); } .btn-primary { background: var(--brand-blue); border: 1px solid var(--brand-blue); color: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; padding: 0.55rem 1.4rem; border-radius: 4px; cursor: pointer; } .btn-primary:hover { filter: brightness(1.08); } textarea#card-input { width: 100%; height: 460px; resize: vertical; background: var(--bg-deep); border: 1px solid var(--border-subtle); border-radius: 6px; color: var(--text-primary); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.85rem; line-height: 1.5; padding: 1rem; tab-size: 2; } textarea#card-input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px var(--brand-glow); } /* --- Output panel --- */ .val-output { background: var(--bg-lift); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 1.25rem 1.5rem; overflow-y: auto; max-height: 520px; } .notice { color: var(--text-muted); font-size: 0.9rem; padding: 1rem 0; } .notice.fail { color: var(--text-primary); } .notice.fail strong { color: var(--bad); } /* summary bar */ .summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: 5px; margin-bottom: 1.25rem; border: 1px solid var(--border-subtle); } .summary.pass { border-left: 4px solid var(--ok); } .summary.warn { border-left: 4px solid var(--warn); } .summary.fail { border-left: 4px solid var(--bad); } .summary-verdict { font-weight: 700; color: var(--text-primary); font-size: 1.05rem; } .summary-counts { display: flex; gap: 0.9rem; font-size: 0.78rem; font-variant-numeric: tabular-nums; } .summary-counts .c { color: var(--text-muted); } .summary-counts .c.fail { color: var(--bad); } .summary-counts .c.warn { color: var(--warn); } .summary-counts .c.pass { color: var(--ok); } .rslt-section { margin-bottom: 1.5rem; } .rslt-section h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.6rem; } .rslt-list { list-style: none; margin: 0; padding: 0; } .rslt { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px solid var(--border-subtle); } .rslt:last-child { border-bottom: none; } .badge { flex: 0 0 auto; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.2rem 0.45rem; border-radius: 3px; margin-top: 0.1rem; min-width: 42px; text-align: center; } .badge.pass { background: rgba(63, 185, 80, 0.15); color: var(--ok); } .badge.warn { background: rgba(210, 153, 34, 0.15); color: var(--warn); } .badge.fail { background: rgba(248, 81, 73, 0.15); color: var(--bad); } .badge.info { background: var(--brand-glow); color: var(--brand-blue); } .rslt-body { display: flex; flex-direction: column; gap: 0.2rem; } .rslt-key { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; color: var(--text-primary); } .rslt-msg { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; } .rslt-note { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; } .rslt-note p { margin: 0 0 0.75rem; } .rslt-note p:last-child { margin-bottom: 0; } .rslt-note a { color: var(--brand-blue); font-weight: 600; } .rslt-note a:hover { text-decoration: underline; } @media screen and (max-width: 900px) { .val-layout { flex-direction: column; } textarea#card-input { height: 300px; } .val-output { max-height: none; } .val-head h1 { font-size: 1.9rem; } }