/* Agentic Console pages: front page, modules, publishers, downloads, settings. */
.agc-hero { align-items: start; }
.agc-points { display: grid; gap: 12px; }
.agc-points h3, .agc-steps h3, .agc-downloads h3, .agc-note h3, .agc-grid h3 { margin: 6px 0 8px; font-size: 16px; }
.agc-points p, .agc-steps p, .agc-note p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.agc-card .project-meta code { font-size: 12px; }
.agc-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.agc-search input { flex: 1 1 220px; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--code-bg); font: inherit; }
.agc-catalog-panel, .agc-note { margin-top: 22px; }
.agc-byline { color: var(--muted); font-size: 13px; }
.agc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 20px; align-items: start; }
.agc-grid aside { display: grid; gap: 14px; }
.agc-access { display: grid; gap: 10px; margin: 0; }
.agc-access > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; }
.agc-access dt { color: var(--muted); font-size: 12px; }
.agc-access dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.agc-none { color: var(--muted); }
.agc-setting { display: inline-block; margin: 0 6px 4px 0; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.agc-small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.agc-hash { font-size: 12px; word-break: break-all; }
.agc-table-wrap { overflow-x: auto; }
.agc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.agc-table th, .agc-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.agc-table th { color: var(--muted); font-size: 12px; font-weight: 500; }
.agc-yanked td { opacity: .7; }
.agc-warn { color: #ffb86b; font-size: 12px; }
.agc-publishers, .agc-downloads, .agc-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.agc-publisher { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.agc-publisher span { color: var(--muted); font-size: 12px; }
.agc-form { display: grid; gap: 10px; max-width: 560px; margin-top: 16px; }
.agc-form label, .agc-inline label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.agc-form input, .agc-inline input, .agc-inline select { min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--code-bg); font: 13px var(--mono); }
.agc-form input[type=file] { height: auto; padding: 7px; }
.agc-form button { justify-self: start; }
.agc-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 0; }
.agc-owned { padding: 14px 0; border-top: 1px solid var(--line); }
.agc-owned-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.agc-status { min-height: 18px; color: var(--lime); font-size: 13px; }
.agc-status.agc-bad { color: #ff7b7b; }
.panel + .panel { margin-top: 14px; }
@media (max-width: 860px) {
  .agc-grid { grid-template-columns: minmax(0, 1fr); }
  .agc-access > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* The front page's stage: a console window over a neon horizon and a setting sun. */
.agc-hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 60px; align-items: center; min-height: 600px; }
.agc-hero h1 { max-width: 600px; font-size: clamp(46px, 5.6vw, 80px); letter-spacing: -.055em; }
.agc-stage { position: relative; isolation: isolate; padding: 30px 0 70px; }
.agc-sun { position: absolute; z-index: -2; top: -54px; right: -3%; width: 300px; height: 300px; border-radius: 50%; background: linear-gradient(180deg, #ffe29a 0%, #f5c451 30%, #ff8a5c 58%, #ff4fd8 100%); filter: blur(.4px) saturate(1.1); opacity: .5; -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 24px); mask-image: repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 24px); box-shadow: 0 0 120px rgba(255, 79, 216, .5); animation: agc-sun 12s ease-in-out infinite alternate; }
@keyframes agc-sun { to { transform: translateY(16px) scale(1.04); opacity: .62; } }
.os-horizon { position: absolute; z-index: -1; right: -30%; bottom: 0; left: -30%; height: 220px; background-image: linear-gradient(rgba(255, 79, 216, .55) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(79, 243, 255, .4) 1.5px, transparent 1.5px); background-size: 48px 48px; transform: perspective(260px) rotateX(64deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%); animation: agc-grid 2.4s linear infinite; }
@keyframes agc-grid { to { background-position: 0 48px; } }
.os-window.agc-demo { position: relative; max-width: 560px; margin-left: auto; cursor: pointer; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(245, 196, 81, var(--spot, 0)), transparent 45%), rgba(14, 13, 24, .88); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 79, 216, .08), 0 40px 120px rgba(255, 79, 216, .12); }
.os-window.agc-demo:hover { --spot: .08; border-color: rgba(79, 243, 255, .35); box-shadow: var(--shadow), 0 0 50px rgba(79, 243, 255, .14), 0 40px 120px rgba(255, 79, 216, .16); }
.agc-demo-body { padding: 20px 20px 18px; }
.agc-demo-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.agc-demo-head strong, .agc-demo-head small { display: block; }
.agc-demo-head strong { font: 600 15px var(--display); }
.agc-demo-head small { color: var(--subtle); font: 12px var(--mono); }
.agc-demo-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #1a1100; background: var(--gold-text); font-size: 17px; box-shadow: 0 0 22px rgba(245, 196, 81, .35); }
.agc-demo-badge { margin-left: auto; padding: 4px 9px; border: 1px solid rgba(255, 79, 216, .4); border-radius: 999px; color: #ff9be9; background: rgba(255, 79, 216, .08); font: 11px var(--mono); white-space: nowrap; }
.agc-demo-steps { display: grid; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.agc-demo-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); font-size: 13px; }
.agc-demo-steps li .os-num { flex: none; margin: 0; }
.agc-demo-steps li code { color: var(--neon); font: 12px var(--mono); }
.agc-demo-steps li b { margin-left: auto; color: #7ff0a8; text-shadow: 0 0 12px rgba(127, 240, 168, .6); }
.agc-demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.agc-demo-approve { padding: 9px 18px; border-radius: 11px; color: #1a1100; background: linear-gradient(180deg, #ffe08f, #f5c451 55%, #e0a632); font-size: 13px; font-weight: 700; box-shadow: 0 0 0 0 rgba(245, 196, 81, .5); }
.agc-demo-done { margin: 14px 0 0; color: var(--subtle); font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.agc-demo-done b { color: #7ff0a8; }
.os-play .agc-demo-steps li { animation: agc-step .6s var(--spring) both; animation-delay: calc(.35s + var(--i) * .55s); }
.os-play .agc-demo-steps li b { animation: agc-check .5s var(--spring) both; animation-delay: calc(.7s + var(--i) * .55s); }
.os-play .agc-demo-done { animation: agc-step .6s var(--spring) both 2.2s; }
.os-play .agc-demo-approve { animation: agc-call 1.8s ease-in-out 2.3s infinite; }
.os-play .agc-demo-badge { animation: agc-step .5s var(--spring) both .1s; }
@keyframes agc-step { from { opacity: 0; transform: translateX(-14px) scale(.97); filter: blur(3px); } }
@keyframes agc-check { from { opacity: 0; transform: scale(0) rotate(-40deg); } }
@keyframes agc-call { 50% { box-shadow: 0 0 0 8px rgba(245, 196, 81, 0), 0 0 30px rgba(245, 196, 81, .55); } }

.agc-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.agc-how h3, .agc-steps h3 { margin: 4px 0 8px; font-size: 18px; }
.agc-how p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; }
.agc-steps .os-num { display: grid; }
.agc-hash-chip { margin-top: 4px; padding-right: 8px; white-space: normal; }
.agc-hash-chip code { white-space: normal; word-break: break-all; }
.agc-prove { padding: 12px 14px; border: 1px dashed rgba(245, 196, 81, .35); border-radius: 12px; background: rgba(245, 196, 81, .04); }
.agc-prove p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.agc-quota { height: 8px; margin: 10px 0 6px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.agc-quota span { display: block; width: max(var(--q), 4px); height: 100%; border-radius: inherit; background: var(--sunset); box-shadow: 0 0 14px rgba(255, 79, 216, .5); }
.agc-status { color: #7ff0a8; }

@media (max-width: 980px) {
  .agc-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .agc-demo { margin: 0 auto; }
  .agc-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .agc-sun { width: 200px; height: 200px; right: 0; }
  .agc-demo-badge { display: none; }
  .agc-demo-steps li { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .agc-sun, .os-horizon, .os-play .agc-demo-approve { animation: none; }
}
