/* Cliphorium real logo sizing */
.ch-brand-logo,
a[aria-label*="Cliphorium"] .ch-brand-logo,
.ch-footerbar .ch-brand-logo,
footer .ch-brand-logo,
header img[alt*="Cliphorium"],
footer img[alt*="Cliphorium"] {
  display: block !important;
  height: 58px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain !important;
}

footer .ch-brand-logo,
footer img[alt*="Cliphorium"],
.ch-footerbar .ch-brand-logo {
  height: 50px !important;
  max-width: 240px !important;
}

@media (max-width: 700px) {
  .ch-brand-logo,
  a[aria-label*="Cliphorium"] .ch-brand-logo,
  header img[alt*="Cliphorium"] {
    height: 46px !important;
    max-width: 210px !important;
  }

  footer .ch-brand-logo,
  footer img[alt*="Cliphorium"] {
    height: 42px !important;
    max-width: 200px !important;
  }
}

/* Final actual Cliphorium logo sizing: targets real .ao-logo-mark markup */
html body .ao-logo-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  line-height: 1 !important;
}

html body .ao-logo-mark > img.ch-brand-logo,
html body .ao-logo-mark > img[alt="Cliphorium Agent Ops"],
html body header .ao-logo-mark > img,
html body footer .ao-logo-mark > img {
  display: block !important;
  width: auto !important;
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  max-width: 340px !important;
  object-fit: contain !important;
}

html body footer .ao-logo-mark > img.ch-brand-logo,
html body footer .ao-logo-mark > img[alt="Cliphorium Agent Ops"] {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  max-width: 300px !important;
}

html body .ch-brand {
  overflow: visible !important;
  min-height: 88px !important;
  display: flex !important;
  align-items: center !important;
}

html body .ch-navbar-inner {
  min-height: 104px !important;
  overflow: visible !important;
  align-items: center !important;
}

@media (max-width: 760px) {
  html body .ao-logo-mark > img.ch-brand-logo,
  html body .ao-logo-mark > img[alt="Cliphorium Agent Ops"],
  html body header .ao-logo-mark > img {
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    max-width: 240px !important;
  }

  html body footer .ao-logo-mark > img.ch-brand-logo,
  html body footer .ao-logo-mark > img[alt="Cliphorium Agent Ops"] {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    max-width: 220px !important;
  }

  html body .ch-brand {
    min-height: 62px !important;
  }

  html body .ch-navbar-inner {
    min-height: 76px !important;
  }
}


/* NAV BRAND UNIFICATION — 2026-04-28
   Real brand text, wider nav spacing, no nav link underline/frame. */
html body .ch-navbar,
html body .ch-nav,
html body header.ch-navbar {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

html body .ch-navbar::before,
html body .ch-navbar::after,
html body .ch-nav::before,
html body .ch-nav::after,
html body header.ch-navbar::before,
html body header.ch-navbar::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .ch-navbar-inner {
  width: min(1180px, calc(100% - 32px)) !important;
  margin-inline: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 34px !important;
}

html body .ch-brand-link,
html body .ao-logo-mark,
html body a[aria-label*="Cliphorium Agent Ops"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

html body .ch-brand-logo,
html body .ch-brand-link img,
html body .ao-logo-mark img,
html body a[aria-label*="Cliphorium Agent Ops"] img {
  height: 52px !important;
  width: auto !important;
  max-width: 58px !important;
  object-fit: contain !important;
  display: block !important;
  flex: 0 0 auto !important;
}

html body .ch-brand-name {
  display: inline-block !important;
  color: rgba(245,248,255,.96) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: .015em !important;
  line-height: 1.05 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  text-shadow: 0 0 18px rgba(0,229,168,.18) !important;
}

html body .ch-navbar nav,
html body .ch-navbar .ch-navlinks,
html body .ch-navbar .ch-links,
html body .ch-navbar-inner nav {
  display: flex !important;
  align-items: center !important;
  gap: clamp(22px, 3vw, 38px) !important;
  margin-left: auto !important;
}

html body .ch-navbar a,
html body .ch-nav a,
html body header.ch-navbar a,
html body .ch-navbar nav a {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

html body .ch-navbar a::before,
html body .ch-navbar a::after,
html body .ch-nav a::before,
html body .ch-nav a::after,
html body header.ch-navbar a::before,
html body header.ch-navbar a::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

html body .ch-navbar a[href*="agent-ops-audit"],
html body .ch-navbar .ch-cta,
html body .ch-navbar .cta,
html body .ch-navbar a.button {
  text-decoration: none !important;
}

@media (max-width: 860px) {
  html body .ch-navbar-inner {
    width: min(100%, calc(100% - 24px)) !important;
    gap: 14px !important;
  }

  html body .ch-brand-logo,
  html body .ch-brand-link img,
  html body .ao-logo-mark img,
  html body a[aria-label*="Cliphorium Agent Ops"] img {
    height: 42px !important;
    max-width: 48px !important;
  }

  html body .ch-brand-name {
    font-size: 12px !important;
    max-width: 130px !important;
    white-space: normal !important;
  }
}


/* CLIPHORIUM NAV SPREAD FINAL */
html body .ch-navbar {
  width: 100% !important;
}

html body .ch-navbar-inner {
  width: min(1320px, calc(100vw - 48px)) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(28px, 5vw, 72px) !important;
}

html body .ch-brand-link,
html body .ao-logo-mark,
html body a[aria-label*="Cliphorium Agent Ops"] {
  flex: 0 0 auto !important;
}

html body .ch-navbar nav,
html body .ch-navbar .ch-navlinks,
html body .ch-navbar .ch-links,
html body .ch-navbar-inner nav {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(28px, 3.8vw, 52px) !important;
  margin-left: clamp(28px, 5vw, 76px) !important;
}

html body .ch-navbar nav a,
html body .ch-navbar .ch-navlinks a,
html body .ch-navbar .ch-links a,
html body .ch-navbar-inner nav a {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

html body .ch-navbar a[href*="agent-ops-audit"],
html body .ch-navbar .ch-cta,
html body .ch-navbar .cta,
html body .ch-navbar a.button {
  margin-left: clamp(8px, 1.6vw, 24px) !important;
}

@media (max-width: 980px) {
  html body .ch-navbar-inner {
    width: min(100%, calc(100vw - 24px)) !important;
    gap: 16px !important;
  }

  html body .ch-navbar nav,
  html body .ch-navbar .ch-navlinks,
  html body .ch-navbar .ch-links,
  html body .ch-navbar-inner nav {
    gap: 18px !important;
    margin-left: 12px !important;
  }
}

@media (max-width: 760px) {
  html body .ch-navbar-inner {
    width: min(100%, calc(100vw - 20px)) !important;
    justify-content: space-between !important;
  }
}
/* END CLIPHORIUM NAV SPREAD FINAL */


/* Meeting polish — Agent Ops brand subtitle back to blue */
.ao-logo-text em,
.brand-subtitle,
.brand-title .brand-subtitle {
  color: #7DD3FC !important;
}


/* ── Approved Patch Runner — animated card (patch-runner-animated) ── */
.patch-runner-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}

.patch-runner-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.patch-runner-left,
.patch-runner-console {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius-lg);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.patch-runner-left:hover,
.patch-runner-console:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

/* Console card: ambient glow + radial overlay — mirrors .hero-panel */
.patch-runner-console {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(13,18,32,0.97) 0%, rgba(9,12,20,0.97) 100%);
}

.patch-runner-console::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(56,189,248,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 85%, rgba(167,139,250,0.06) 0%, transparent 55%);
  z-index: 0;
  pointer-events: none;
}

/* Animated ambient border glow on the console */
.patch-runner-console::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(56,189,248,0);
  animation: pr-console-glow 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.patch-runner-left {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* kicker reuses the standard .pill pattern — no custom class needed */
.patch-runner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 100px;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.10);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.patch-runner-left h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.patch-runner-lede {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.patch-runner-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.patch-runner-status-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.06);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
}

.patch-runner-status-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

.patch-runner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* reuse .btn classes from d-site.css — no overrides needed */

.patch-runner-console {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.patch-console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.patch-console-top > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.75);
  animation: pr-dot-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.patch-console-top em {
  font-style: normal;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.08);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.patch-console-alert {
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.05);
}

.patch-console-alert span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.patch-console-alert strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

.patch-console-alert p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.patch-runner-flow {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.patch-runner-flow article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(9, 12, 20, 0.55);
  border-radius: var(--radius);
  transition: border-color .35s, background .35s, box-shadow .35s;
}

.patch-runner-flow article.is-active {
  background: rgba(56,189,248,0.06);
  border-color: rgba(56,189,248,0.32);
  box-shadow: 0 0 16px rgba(56,189,248,0.10);
}

.patch-runner-flow article:hover {
  border-color: var(--border-glow);
}

.patch-runner-flow article b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background .35s, box-shadow .35s;
}

.patch-runner-flow article.is-active b {
  background: rgba(56,189,248,0.18);
  box-shadow: 0 0 12px rgba(56,189,248,0.22);
  border-color: rgba(56,189,248,0.35);
}

.patch-runner-flow article strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.patch-runner-flow article span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.82rem;
}

/* Verified status pulse — sits in .patch-console-top */
.patch-verified-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
}

.patch-verified-pulse::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pr-verified-blink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Sweep progress line at bottom of console — mirrors .progress-line */
.patch-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  animation: pr-progress-sweep 3.5s linear infinite;
  border-radius: 0 2px 2px 0;
}

@media (max-width: 900px) {
  .patch-runner-section {
    padding: 64px 0;
  }

  .patch-runner-shell {
    grid-template-columns: 1fr;
  }

  .patch-runner-left {
    padding: 28px;
  }

  .patch-runner-console {
    padding: 14px;
  }

  .patch-runner-flow article {
    grid-template-columns: 36px 1fr;
  }
}

/* ── Patch Runner Keyframes ── */
@keyframes pr-dot-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(56,189,248,0.6); }
  50%       { box-shadow: 0 0 14px rgba(56,189,248,0.9); }
}

@keyframes pr-console-glow {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(56,189,248,0); }
  50%       { box-shadow: inset 0 0 0 1px rgba(56,189,248,0.12), 0 0 28px rgba(56,189,248,0.06); }
}

@keyframes pr-verified-blink {
  0%, 100% { box-shadow: 0 0 4px var(--green); opacity: 1; }
  50%       { box-shadow: 0 0 12px var(--green); opacity: 0.65; }
}

@keyframes pr-progress-sweep {
  0%   { width: 0%; }
  85%  { width: 100%; }
  100% { width: 100%; }
}

/* ── Patch Runner: prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .console-dot,
  .patch-runner-console::after,
  .patch-verified-pulse::before,
  .patch-progress-line,
  .patch-runner-flow article,
  .patch-runner-flow article b,
  .patch-runner-left,
  .patch-runner-console {
    animation: none !important;
    transition: none !important;
  }

  .patch-runner-left:hover,
  .patch-runner-console:hover {
    transform: none;
  }
}

/* FORCE PATCH RUNNER ANIMATED CARDS — 2026-05-03 */
.patch-runner-console {
  position: relative;
  overflow: hidden;
  animation: patchRunnerFloat 7s ease-in-out infinite;
}

.patch-runner-console::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 18%, rgba(125, 211, 252, 0.20), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(129, 140, 248, 0.16), transparent 30%),
    radial-gradient(circle at 70% 92%, rgba(52, 211, 153, 0.12), transparent 32%);
  opacity: 0.45;
  animation: patchRunnerGlow 5.5s ease-in-out infinite;
}

.patch-runner-console::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 30%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 211, 252, 0.12),
    transparent
  );
  transform: skewX(-16deg);
  animation: patchRunnerSweep 6s ease-in-out infinite;
}

.patch-console-top,
.patch-console-alert,
.patch-runner-flow {
  position: relative;
  z-index: 1;
}

.patch-console-top em {
  animation: patchApprovalPulse 1.8s ease-in-out infinite;
}

.console-dot {
  animation: patchDotPulse 1.4s ease-in-out infinite;
}

.patch-runner-flow article {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  animation: patchStepFloat 5.5s ease-in-out infinite;
}

.patch-runner-flow article:nth-child(1) { animation-delay: 0s; }
.patch-runner-flow article:nth-child(2) { animation-delay: .22s; }
.patch-runner-flow article:nth-child(3) { animation-delay: .44s; }
.patch-runner-flow article:nth-child(4) { animation-delay: .66s; }
.patch-runner-flow article:nth-child(5) { animation-delay: .88s; }

.patch-runner-flow article::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 211, 252, 0.055),
    transparent
  );
  transform: translateX(-120%);
  animation: patchStepSweep 4.8s ease-in-out infinite;
}

.patch-runner-flow article:nth-child(1)::after { animation-delay: .1s; }
.patch-runner-flow article:nth-child(2)::after { animation-delay: .45s; }
.patch-runner-flow article:nth-child(3)::after { animation-delay: .8s; }
.patch-runner-flow article:nth-child(4)::after { animation-delay: 1.15s; }
.patch-runner-flow article:nth-child(5)::after { animation-delay: 1.5s; }

.patch-runner-flow article b {
  animation: patchBadgePulse 2.8s ease-in-out infinite;
}

@keyframes patchRunnerFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes patchRunnerGlow {
  0%, 100% {
    opacity: 0.32;
    filter: blur(0px);
  }
  50% {
    opacity: 0.68;
    filter: blur(2px);
  }
}

@keyframes patchRunnerSweep {
  0%, 28% {
    left: -38%;
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  65%, 100% {
    left: 110%;
    opacity: 0;
  }
}

@keyframes patchApprovalPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(52, 211, 153, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.24);
  }
}

@keyframes patchDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 18px rgba(125, 211, 252, 0.65);
  }
  50% {
    transform: scale(1.22);
    box-shadow: 0 0 30px rgba(125, 211, 252, 0.95);
  }
}

@keyframes patchStepFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes patchStepSweep {
  0%, 45% {
    transform: translateX(-120%);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  85%, 100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes patchBadgePulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(125, 211, 252, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(125, 211, 252, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .patch-runner-console,
  .patch-runner-console::before,
  .patch-runner-console::after,
  .patch-console-top em,
  .console-dot,
  .patch-runner-flow article,
  .patch-runner-flow article::after,
  .patch-runner-flow article b {
    animation: none !important;
  }
}
