/* Track — Pulse Console (split pane hub + vertical asymmetric stepper + pulsing rings) */

.page-track-pulse .page-main {
  padding-top: 0;
  background: #f4f7fb;
}

/* ── Banner ── */
.a55-pulse-banner {
  padding: clamp(24px, 4vw, 40px) 0 clamp(20px, 3vw, 28px);
  background: linear-gradient(135deg, #062a44 0%, #1a3d32 55%, #0f172a 100%);
  color: #f8fafc;
  position: relative;
  overflow: clip;
}

.a55-pulse-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 80%;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 29, 37, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.a55-pulse-banner-inner {
  position: relative;
  z-index: 1;
}

.a55-pulse-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.88);
}

.a55-pulse-crumb a {
  color: rgba(248, 250, 252, 0.85);
  text-decoration: none;
}

.a55-pulse-crumb a:hover { color: #d4c4a0; }

.a55-pulse-banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: end;
}

.a55-pulse-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
}

.a55-pulse-kicker span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--signal);
  color: #fff;
  font-size: 0.62rem;
}

.a55-pulse-banner h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.a55-pulse-banner-dek {
  margin: 0;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.72);
  max-width: 44ch;
}

/* ── Split hub ── */
.a55-pulse-hub {
  padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 8vw, 80px);
}

.a55-pulse-hub-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: start;
}

.a55-pulse-pane-left {
  position: sticky;
  top: calc(var(--dock-offset, 88px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.a55-pulse-pane-right {
  min-height: 480px;
}

/* Lookup */
.a55-pulse-lookup,
.a55-pulse-ticket,
.a55-pulse-detail,
.a55-pulse-state {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.a55-pulse-lookup {
  padding: clamp(20px, 3vw, 26px);
}

.a55-pulse-lookup-head h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.a55-pulse-lookup-head p {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
}

.a55-pulse-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.a55-pulse-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  transition: color 0.22s;
}

.a55-pulse-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.a55-pulse-field:focus-within span,
.a55-pulse-field.is-live span {
  color: #1a3d32;
}

.a55-pulse-field input:focus {
  border-color: rgba(10, 61, 98, 0.4);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 61, 98, 0.1);
}

.a55-pulse-submit {
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #c81d25, #9e151c);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(200, 29, 37, 0.28);
  transition: transform 0.22s, box-shadow 0.22s;
}

.a55-pulse-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(200, 29, 37, 0.35);
}

.a55-pulse-hints {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748b;
}

.a55-pulse-hints strong {
  color: #0f172a;
  font-weight: 750;
}

.a55-pulse-hints a {
  color: #0a3d62;
  font-weight: 750;
  text-decoration: none;
}

.a55-pulse-hints a:hover {
  color: #c81d25;
}

/* Ticket card */
.a55-pulse-ticket {
  padding: 20px 22px;
  background: linear-gradient(165deg, #1a3d32 0%, #0f2918 100%);
  color: #f4efe4;
  border-color: rgba(255, 255, 255, 0.08);
}

.a55-pulse-ticket-label {
  margin: 0 0 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.88);
}

.a55-pulse-ticket h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 800;
  word-break: break-all;
}

.a55-pulse-ticket-status {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(200, 29, 37, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.a55-pulse-ticket-meta {
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.a55-pulse-ticket-meta div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: 0.82rem;
}

.a55-pulse-ticket-meta dt {
  color: rgba(248, 250, 252, 0.88);
  font-weight: 700;
}

.a55-pulse-ticket-meta dd {
  margin: 0;
  font-weight: 650;
  word-break: break-word;
}

.a55-pulse-ticket-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.a55-pulse-ticket-links a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 228, 0.25);
  color: #f4efe4;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.22s, transform 0.22s;
}

.a55-pulse-ticket-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Detail pane */
.a55-pulse-detail {
  padding: clamp(24px, 3vw, 32px);
  min-height: 100%;
}

.a55-pulse-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(24px, 4vw, 36px);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.a55-pulse-detail-head p {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

.a55-pulse-detail-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
}

.a55-pulse-progress {
  position: relative;
  width: min(220px, 100%);
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.a55-pulse-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pulse-pct, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #1f6b4a, #c81d25);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  animation: a55-pulse-bar-glow 2.4s ease-in-out infinite;
}

@keyframes a55-pulse-bar-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

.a55-pulse-progress em {
  position: absolute;
  right: 0;
  top: -26px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a3d32;
}

/* Vertical asymmetric stream */
.a55-pulse-stream {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.a55-pulse-stream::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(31, 107, 74, 0.35), rgba(15, 23, 42, 0.08));
}

.a55-pulse-node {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0 18px 0;
  margin-left: calc(var(--node-i) * 8%);
  max-width: calc(100% - var(--node-i) * 8%);
  animation: a55-pulse-node-in 0.5s ease both;
  animation-delay: calc(var(--node-i) * 0.1s);
}

@keyframes a55-pulse-node-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.a55-pulse-node-ring {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.a55-pulse-node-code {
  font-family: var(--serif);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #475569;
}

.a55-pulse-node-ring svg {
  width: 22px;
  height: 22px;
  color: #1f6b4a;
}

.a55-pulse-node-body {
  padding: 8px 16px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.a55-pulse-node-step {
  display: block;
  margin-bottom: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}

.a55-pulse-node-body strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.a55-pulse-node-body p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #64748b;
}

/* Done state */
.a55-pulse-node.is-done .a55-pulse-node-ring {
  border-color: #1f6b4a;
  background: #ecfdf5;
}

.a55-pulse-node.is-done .a55-pulse-node-body {
  background: rgba(236, 253, 245, 0.65);
  border-color: rgba(31, 107, 74, 0.15);
}

/* Live / active state with pulsing ring */
.a55-pulse-node.is-live .a55-pulse-node-ring {
  border-color: #c81d25;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(200, 29, 37, 0.45);
  animation: a55-pulse-ring 2s ease-out infinite;
}

@keyframes a55-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(200, 29, 37, 0.45); transform: scale(1); }
  70% { box-shadow: 0 0 0 14px rgba(200, 29, 37, 0); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 rgba(200, 29, 37, 0); transform: scale(1); }
}

.a55-pulse-node.is-live .a55-pulse-node-ring::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(200, 29, 37, 0.25);
  animation: a55-pulse-ring-outer 2s ease-out infinite 0.4s;
}

@keyframes a55-pulse-ring-outer {
  0% { transform: scale(0.92); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

.a55-pulse-node.is-live .a55-pulse-node-code {
  color: #c81d25;
}

.a55-pulse-node.is-live .a55-pulse-node-body {
  background: #fff;
  border-color: rgba(200, 29, 37, 0.22);
  box-shadow: 0 12px 32px rgba(200, 29, 37, 0.1);
  transform: translateX(4px);
}

.a55-pulse-node.is-live .a55-pulse-node-body strong {
  color: #9e151c;
}

/* Idle / error states */
.a55-pulse-state {
  padding: clamp(32px, 5vw, 48px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.a55-pulse-state-glyph {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 800;
}

.a55-pulse-state-error .a55-pulse-state-glyph {
  background: #fef2f2;
  color: #9e151c;
  border: 2px solid rgba(200, 29, 37, 0.25);
}

.a55-pulse-state-idle .a55-pulse-state-glyph {
  position: relative;
  background: transparent;
  border: 0;
}

.a55-pulse-state-live {
  position: relative;
  width: 72px;
  height: 72px;
}

.a55-pulse-live-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #1f6b4a;
  z-index: 2;
}

.a55-pulse-live-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(31, 107, 74, 0.35);
  animation: a55-pulse-live 2.2s ease-out infinite;
}

@keyframes a55-pulse-live {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.a55-pulse-state h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #0f172a;
}

.a55-pulse-state p {
  margin: 0 0 24px;
  max-width: 46ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #64748b;
}

.a55-pulse-stream-preview {
  width: 100%;
  opacity: 0.45;
  pointer-events: none;
  margin-top: auto;
}

.a55-pulse-stream-preview .a55-pulse-node {
  margin-left: calc(var(--node-i) * 6%);
}

.a55-pulse-hints-compact {
  text-align: left;
  max-width: 360px;
}

/* Animate in */
.a55-pulse-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.a55-pulse-animate.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .a55-pulse-banner-grid {
    grid-template-columns: 1fr;
  }
  .a55-pulse-hub-grid {
    grid-template-columns: 1fr;
  }
  .a55-pulse-pane-left {
    position: static;
  }
  .a55-pulse-node {
    margin-left: 0 !important;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .a55-pulse-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .a55-pulse-progress {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a55-pulse-progress-fill,
  .a55-pulse-node.is-live .a55-pulse-node-ring,
  .a55-pulse-node.is-live .a55-pulse-node-ring::before,
  .a55-pulse-live-ring,
  .a55-pulse-node {
    animation: none !important;
  }
  .a55-pulse-animate {
    transition: none !important;
  }
}
