/* =========================================================
   Testipy Site Stylesheet — extends css/testipy.css
   Follows BRAND.md: 70% ground, 25% Ink, 5% Bubble Orange
   ========================================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

/* Logo theme switching */
.tp-logo-dark { display: none; }
.tp-logo-light { display: block; }

[data-theme="dark"] .tp-logo-light { display: none; }
[data-theme="dark"] .tp-logo-dark { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tp-logo-light { display: none; }
  :root:not([data-theme="light"]) .tp-logo-dark { display: block; }
}

/* Header enhancements */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-4);
  min-height: var(--tp-header-h);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 4px;
  border-radius: var(--tp-radius-md);
}

.site-brand img {
  height: 30px;
  width: auto;
}

.site-nav-wrap {
  display: flex;
  align-items: center;
  gap: var(--tp-space-4);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--tp-space-2);
}

.site-menu-btn {
  display: none;
}

@media (max-width: 900px) {
  .site-menu-btn {
    display: inline-flex;
  }
  .site-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--tp-space-4) var(--tp-space-5) var(--tp-space-5);
    background: var(--tp-bg);
    border-bottom: 1px solid var(--tp-border);
    box-shadow: var(--tp-shadow-lg);
  }
  .site-nav-wrap.is-open {
    display: flex;
  }
  .site-nav-wrap .tp-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav-wrap .tp-nav a {
    justify-content: flex-start;
  }
  .site-header-actions .hide-mobile {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--tp-border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--tp-border) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 35%, transparent 100%);
  pointer-events: none;
  opacity: 0.7;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--tp-space-10);
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.04fr 0.96fr;
    gap: var(--tp-space-12);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 4.4vw + 0.75rem, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-top: var(--tp-space-4);
  margin-bottom: var(--tp-space-5);
}

.hero__title .accent-dot {
  color: var(--tp-brand);
}

.hero__lead {
  font-size: clamp(1.0625rem, 1vw + 0.75rem, 1.25rem);
  color: var(--tp-text-muted);
  max-width: 54ch;
  margin-bottom: var(--tp-space-6);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tp-space-3);
  margin-bottom: var(--tp-space-8);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tp-space-4);
  padding-top: var(--tp-space-6);
  border-top: 1px solid var(--tp-border);
}

@media (max-width: 540px) {
  .hero__metrics {
    grid-template-columns: 1fr;
    gap: var(--tp-space-3);
  }
}

.hero__metric-val {
  font-family: var(--tp-font-display);
  font-size: var(--tp-text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero__metric-lbl {
  font-size: var(--tp-text-xs);
  color: var(--tp-text-muted);
  margin-top: 2px;
}

/* Interactive Console / Live Product Workbench */
.workbench {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-xl);
  box-shadow: var(--tp-shadow-lg);
  overflow: hidden;
}

.workbench__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-3);
  padding: var(--tp-space-3) var(--tp-space-4);
  background: var(--tp-bg-subtle);
  border-bottom: 1px solid var(--tp-border);
}

.workbench__dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.workbench__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tp-border-strong);
}

.workbench__dot--orange {
  background: var(--tp-brand);
}

.workbench__tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.workbench__tab {
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--tp-radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--tp-text-muted);
  font-size: var(--tp-text-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--tp-dur-fast) var(--tp-ease-out);
}

.workbench__tab:hover {
  color: var(--tp-text);
  background: var(--tp-surface-sunken);
}

.workbench__tab[aria-selected="true"] {
  background: var(--tp-primary);
  color: var(--tp-on-primary);
}

.workbench__body {
  padding: var(--tp-space-5);
}

.workbench__panel[hidden] {
  display: none;
}

.proto-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--tp-space-4);
}

.proto-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--tp-radius-full);
  border: 1.5px solid var(--tp-border-strong);
  background: var(--tp-surface);
  color: var(--tp-text);
  font-family: var(--tp-font-mono);
  font-size: var(--tp-text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tp-dur-fast) var(--tp-ease-out);
}

.proto-pill:hover {
  border-color: var(--tp-text);
}

.proto-pill[aria-pressed="true"] {
  background: var(--tp-accent-soft);
  border-color: var(--tp-brand);
  color: var(--tp-accent);
}

.proto-pill[aria-pressed="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tp-brand);
}

.terminal-box {
  background: var(--tp-ink-950);
  color: #E5E7EB;
  border: 1px solid #263042;
  border-radius: var(--tp-radius-lg);
  padding: var(--tp-space-4);
  font-family: var(--tp-font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-x: auto;
}

.terminal-line {
  display: flex;
  gap: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.t-ts { color: #6B7280; flex: none; }
.t-ok { color: #4ADE80; }
.t-brand { color: #FB923C; }
.t-info { color: #60A5FA; }
.t-muted { color: #9CA3AF; }

.workbench__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-3);
  margin-top: var(--tp-space-4);
  padding-top: var(--tp-space-4);
  border-top: 1px solid var(--tp-border);
}

/* Section utilities */
.section-subtle {
  background: var(--tp-bg-subtle);
  border-block: 1px solid var(--tp-border);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--tp-space-10);
}

.section-header h2 {
  margin-top: var(--tp-space-3);
  margin-bottom: var(--tp-space-3);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  gap: var(--tp-space-6);
  grid-template-columns: repeat(12, 1fr);
}

.product-card--flagship {
  grid-column: span 12;
  display: grid;
  gap: var(--tp-space-8);
  padding: var(--tp-space-8);
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-xl);
  box-shadow: var(--tp-shadow-md);
}

@media (min-width: 900px) {
  .product-card--flagship {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.product-card {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--tp-space-5);
  padding: var(--tp-space-6);
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-xl);
  box-shadow: var(--tp-shadow-sm);
  transition: box-shadow var(--tp-dur) var(--tp-ease-out), transform var(--tp-dur) var(--tp-ease-out), border-color var(--tp-dur);
}

.product-card:hover {
  box-shadow: var(--tp-shadow-lg);
  transform: translateY(-2px);
  border-color: var(--tp-border-strong);
}

@media (min-width: 760px) {
  .product-card--third {
    grid-column: span 4;
  }
  .product-card--half {
    grid-column: span 6;
  }
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--tp-radius-md);
  background: var(--tp-accent-soft);
  color: var(--tp-accent);
  border: 1px solid var(--tp-accent-soft-border);
  flex: none;
}

.icon-tile--ink {
  background: var(--tp-ink-900);
  color: #FFFFFF;
  border-color: transparent;
}

[data-theme="dark"] .icon-tile--ink {
  background: var(--tp-surface-raised);
  border-color: var(--tp-border-strong);
}

.proto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tp-space-3);
}

.proto-mini {
  padding: var(--tp-space-4);
  border-radius: var(--tp-radius-lg);
  background: var(--tp-bg-subtle);
  border: 1px solid var(--tp-border);
}

.proto-mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--tp-space-2);
}

.proto-mini__name {
  font-family: var(--tp-font-display);
  font-weight: 700;
  font-size: var(--tp-text-lg);
}

.proto-mini__desc {
  font-size: var(--tp-text-sm);
  color: var(--tp-text-muted);
  margin: 0;
}

/* Protocol & Automation Explorer */
.explorer {
  display: grid;
  gap: var(--tp-space-6);
}

@media (min-width: 920px) {
  .explorer {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

.explorer__menu {
  display: flex;
  flex-direction: column;
  gap: var(--tp-space-2);
}

@media (max-width: 919px) {
  .explorer__menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

.explorer__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-3);
  width: 100%;
  min-height: 54px;
  padding: var(--tp-space-3) var(--tp-space-4);
  border: 1.5px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  background: var(--tp-surface);
  color: var(--tp-text);
  text-align: left;
  cursor: pointer;
  transition: all var(--tp-dur-fast) var(--tp-ease-out);
  white-space: nowrap;
}

.explorer__btn:hover {
  border-color: var(--tp-border-strong);
  background: var(--tp-bg-subtle);
}

.explorer__btn[aria-selected="true"] {
  border-color: var(--tp-brand);
  background: var(--tp-accent-soft);
}

.explorer__btn-left {
  display: flex;
  align-items: center;
  gap: var(--tp-space-3);
}

.explorer__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--tp-border-strong);
  font-family: var(--tp-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--tp-text-muted);
  flex: none;
}

.explorer__btn[aria-selected="true"] .explorer__circle {
  background: var(--tp-brand);
  border-color: var(--tp-brand);
  color: #FFFFFF;
}

.explorer__detail {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-xl);
  padding: var(--tp-space-6);
  box-shadow: var(--tp-shadow-sm);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--tp-space-4);
  margin-block: var(--tp-space-5);
  padding: var(--tp-space-4);
  background: var(--tp-bg-subtle);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
}

.spec-item__k {
  font-size: var(--tp-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tp-tracking-caps);
  color: var(--tp-text-subtle);
  font-weight: 600;
}

.spec-item__v {
  font-family: var(--tp-font-mono);
  font-size: var(--tp-text-sm);
  font-weight: 500;
  margin-top: 4px;
}

/* AI Transformation Split & Pipeline */
.pipeline-steps {
  display: grid;
  gap: var(--tp-space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
  position: relative;
  padding: var(--tp-space-6);
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-xl);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tp-primary);
  color: var(--tp-on-primary);
  font-family: var(--tp-font-display);
  font-weight: 700;
  font-size: var(--tp-text-sm);
  margin-bottom: var(--tp-space-4);
}

.step-num--orange {
  background: var(--tp-brand);
  color: #FFFFFF;
}

/* Deployment Options */
.deploy-band {
  background: var(--tp-ink-900);
  color: #F9FAFB;
  border-radius: var(--tp-radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid #1F2937;
}

[data-theme="dark"] .deploy-band {
  background: var(--tp-surface);
  border-color: var(--tp-border);
}

.deploy-band .tp-muted {
  color: #9CA3AF;
}

.deploy-grid {
  display: grid;
  gap: var(--tp-space-4);
  margin-top: var(--tp-space-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.deploy-item {
  padding: var(--tp-space-5);
  border-radius: var(--tp-radius-lg);
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.12);
}

/* Pricing / Engagement */
.pricing-grid {
  display: grid;
  gap: var(--tp-space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--tp-space-6);
  padding: var(--tp-space-6);
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-xl);
}

.pricing-card--featured {
  border: 2px solid var(--tp-brand);
  box-shadow: var(--tp-shadow-lg);
}

.price-tag {
  font-family: var(--tp-font-display);
  font-size: var(--tp-text-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-tag span {
  font-size: var(--tp-text-sm);
  font-weight: 500;
  color: var(--tp-text-muted);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  gap: var(--tp-space-8);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

/* Footer */
.footer-grid {
  display: grid;
  gap: var(--tp-space-8);
  grid-template-columns: 1.5fr repeat(3, minmax(120px, 1fr));
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col__title {
  font-family: var(--tp-font-display);
  font-size: var(--tp-text-sm);
  font-weight: 700;
  color: var(--tp-text);
  margin-bottom: var(--tp-space-3);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tp-space-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--tp-space-4);
  margin-top: var(--tp-space-8);
  padding-top: var(--tp-space-6);
  border-top: 1px solid var(--tp-border);
}

/* Interactive Application Demos (Pharma Eval, Agentic RFP, Adaptive Exam) */
.app-split {
  display: grid;
  gap: var(--tp-space-6);
}

@media (min-width: 940px) {
  .app-split {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
  }
}

.vendor-list {
  display: flex;
  flex-direction: column;
  gap: var(--tp-space-3);
}

.vendor-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-3);
  width: 100%;
  padding: var(--tp-space-4);
  border-radius: var(--tp-radius-lg);
  border: 1.5px solid var(--tp-border);
  background: var(--tp-surface);
  color: var(--tp-text);
  text-align: left;
  cursor: pointer;
  transition: all var(--tp-dur-fast) var(--tp-ease-out);
}

.vendor-btn:hover {
  border-color: var(--tp-border-strong);
  background: var(--tp-bg-subtle);
}

.vendor-btn[aria-pressed="true"] {
  border-color: var(--tp-brand);
  background: var(--tp-accent-soft);
}

.score-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tp-space-6);
  padding-bottom: var(--tp-space-5);
  border-bottom: 1px solid var(--tp-border);
}

.criteria-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-3);
  padding: var(--tp-space-3) 0;
  border-bottom: 1px solid var(--tp-border);
}

.criteria-row:last-child {
  border-bottom: 0;
}

.rfp-agents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--tp-space-3);
  margin-bottom: var(--tp-space-4);
}

.rfp-agent-card {
  padding: var(--tp-space-3) var(--tp-space-4);
  border-radius: var(--tp-radius-md);
  border: 1px solid var(--tp-border);
  background: var(--tp-bg-subtle);
}

.rfp-agent-card.is-active {
  border-color: var(--tp-brand);
  background: var(--tp-accent-soft);
}

.exam-shell {
  display: grid;
  gap: var(--tp-space-6);
}

@media (min-width: 920px) {
  .exam-shell {
    grid-template-columns: 1fr 290px;
    align-items: start;
  }
}

.exam-feedback {
  padding: var(--tp-space-4);
  border-radius: var(--tp-radius-md);
  background: var(--tp-bg-subtle);
  border: 1px solid var(--tp-border);
}

.exam-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tp-space-3);
  font-size: var(--tp-text-xs);
  color: var(--tp-text-muted);
  margin-top: var(--tp-space-4);
  padding-top: var(--tp-space-4);
  border-top: 1px solid var(--tp-border);
}

.exam-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Synkro Product Screenshots & Real-Time Dashboard */
.synkro-shot-frame {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-xl);
  box-shadow: var(--tp-shadow-lg);
  overflow: hidden;
}

.synkro-shot-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-3);
  padding: var(--tp-space-3) var(--tp-space-4);
  background: var(--tp-bg-subtle);
  border-bottom: 1px solid var(--tp-border);
}

.synkro-shot-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--tp-radius-full);
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  font-family: var(--tp-font-mono);
  font-size: var(--tp-text-xs);
  color: var(--tp-text-muted);
}

.synkro-dash {
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--tp-bg-subtle);
}

.synkro-dash__brandbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-3);
  padding-bottom: var(--tp-space-4);
  border-bottom: 1px solid var(--tp-border);
}

.synkro-brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.synkro-brandmark__title {
  font-family: var(--tp-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.synkro-brandmark__sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tp-text-muted);
  margin-top: 3px;
}

.synkro-dash__topmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--tp-space-3);
  margin-block: var(--tp-space-4);
}

.synkro-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--tp-text-xs);
  color: var(--tp-text-muted);
}

.synkro-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--tp-success);
}

.synkro-live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tp-green-500);
  animation: tp-pulse 1.4s ease-out infinite;
}

.synkro-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tp-space-3);
  margin-bottom: var(--tp-space-4);
}

@media (max-width: 720px) {
  .synkro-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.synkro-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  padding: var(--tp-space-4);
}

.synkro-kpi__label {
  font-size: var(--tp-text-xs);
  color: var(--tp-text-muted);
  margin-bottom: 6px;
}

.synkro-kpi__val {
  font-family: var(--tp-font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.synkro-kpi__val--ok { color: var(--tp-success); }
.synkro-kpi__val--err { color: var(--tp-danger); }

.synkro-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tp-space-4);
  margin-bottom: var(--tp-space-4);
}

@media (max-width: 860px) {
  .synkro-dash-grid {
    grid-template-columns: 1fr;
  }
}

.synkro-card__title {
  font-family: var(--tp-font-display);
  font-size: var(--tp-text-md);
  font-weight: 600;
  margin-bottom: var(--tp-space-4);
}

.synkro-channel-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tp-space-3);
  align-items: end;
  padding-top: var(--tp-space-2);
}

.synkro-ch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.synkro-ch-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 112px;
  width: 100%;
  border-bottom: 1px solid var(--tp-border);
  padding-bottom: 2px;
}

.synkro-bar-ok,
.synkro-bar-err {
  width: 16px;
  border-radius: 4px 4px 0 0;
  transition: height 320ms var(--tp-ease-out);
  min-height: 4px;
}

.synkro-bar-ok { background: #06B6D4; }
.synkro-bar-err { background: #E11D48; }

.synkro-state-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--tp-radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--tp-surface-sunken);
  color: var(--tp-text-muted);
}

.synkro-state-pill--active {
  background: var(--tp-success-soft);
  color: var(--tp-success);
}

.synkro-state-pill--warn {
  background: var(--tp-warning-soft);
  color: var(--tp-warning);
}

.synkro-legend {
  display: flex;
  align-items: center;
  gap: var(--tp-space-4);
  font-size: var(--tp-text-xs);
  color: var(--tp-text-muted);
  margin-top: var(--tp-space-4);
}

.synkro-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}

.synkro-partner-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.synkro-partner-row__top {
  display: flex;
  justify-content: space-between;
  font-size: var(--tp-text-xs);
  margin-bottom: 5px;
}

.synkro-partner-track {
  display: flex;
  height: 10px;
  border-radius: var(--tp-radius-full);
  background: var(--tp-surface-sunken);
  overflow: hidden;
  gap: 2px;
}

.synkro-partner-track span {
  display: block;
  height: 100%;
  transition: width 320ms var(--tp-ease-out);
}

.synkro-attention-list {
  display: flex;
  flex-direction: column;
  gap: var(--tp-space-3);
}

.synkro-alert-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-3);
  padding: var(--tp-space-3);
  border-radius: var(--tp-radius-md);
  background: var(--tp-bg-subtle);
  border: 1px solid var(--tp-border);
}

.synkro-health-list {
  display: flex;
  flex-direction: column;
}

.synkro-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-3);
  padding-block: 10px;
  border-bottom: 1px solid var(--tp-border);
}

.synkro-health-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.synkro-health-pill {
  padding: 2px 10px;
  border-radius: var(--tp-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
}

.synkro-health-pill--ok {
  background: var(--tp-success-soft);
  color: var(--tp-success);
}

.synkro-health-pill--warn {
  background: var(--tp-warning-soft);
  color: var(--tp-warning);
}

.synkro-7d-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 92px;
  padding-top: 8px;
}

.synkro-7d-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.synkro-7d-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 68px;
  width: 100%;
  gap: 2px;
}

.synkro-7d-stack .seg-err {
  width: 14px;
  border-radius: 3px 3px 0 0;
  background: #E11D48;
}

.synkro-7d-stack .seg-ok {
  width: 14px;
  border-radius: 3px 3px 0 0;
  background: #06B6D4;
}

.synkro-7d-lbl {
  font-family: var(--tp-font-mono);
  font-size: 10px;
  color: var(--tp-text-muted);
}

/* Code / JSON block styling */
.code-snippet {
  background: var(--tp-ink-950);
  color: #E5E7EB;
  border: 1px solid #263042;
  border-radius: var(--tp-radius-lg);
  padding: var(--tp-space-4);
  font-family: var(--tp-font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
}

/* Utility */
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: var(--tp-space-2); }
.mt-4 { margin-top: var(--tp-space-4); }
.mt-6 { margin-top: var(--tp-space-6); }
.gap-2 { gap: var(--tp-space-2); }
.w-full { width: 100%; }
