/* =========================================================
   /THE_ARCHITECTURE — Right-side swap visuals
   Three visuals mapped to tabs:
     - Orchestration KPI card (.arch-card-grid)
     - Integration toggle list (.arch-toggles)
     - Channel performance chart (.cp-*)
   ========================================================= */

/* Orchestration card */
.arch-card {
  background: #fff;
  border-radius: var(--b-radius-25);
  padding: 28px;
  box-shadow:
    0 0 0 8px rgba(220, 235, 255, 0.55),
    0 24px 48px -24px rgba(0, 60, 255, 0.10);
}
.arch-card h5 {
  font-size: 18px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 20px;
}
.arch-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.arch-card-grid .item {
  background: var(--gray-75);
  border-radius: 12px;
  padding: 16px 18px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.arch-card-grid .item .v {
  font-size: 26px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.arch-card-grid .item .l {
  font-size: 12px;
  color: var(--ink-2);
}
.arch-card-grid .item .skel {
  height: .6em;
  width: 40%;
  background: var(--gray-300);
  border-radius: var(--b-radius-full);
}

/* Visual swap fade-in (shares panelIn keyframe with .stack-panel) */
.stack-visual:not([hidden]) {
  animation: panelIn .5s cubic-bezier(.2, .8, .2, 1) both;
}

/* Integration toggle list */
.arch-toggles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.arch-toggles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-75);
  border-radius: 12px;
  padding: 16px 22px;
  min-height: 64px;
}
.arch-toggles .label {
  font-size: var(--fs-body);
  color: var(--ink);
}
.arch-toggles .skel-label {
  display: block;
  height: 8px;
  width: 110px;
  background: var(--gray-300);
  border-radius: var(--b-radius-full);
}
.arch-toggles .tg {
  width: 38px;
  height: 22px;
  border-radius: var(--b-radius-full);
  background: var(--gray-300);
  position: relative;
  flex-shrink: 0;
  transition: background .2s ease;
}
.arch-toggles .tg::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8,8,48,0.18);
  transition: transform .2s ease;
}
.arch-toggles .tg.on { background: var(--accent); }
.arch-toggles .tg.on::after { transform: translateX(16px); }

/* Channel performance visual */
.cp-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.cp-date label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink);
  font-weight: var(--fw-medium);
  margin-bottom: 8px;
}
.cp-input {
  background: var(--gray-75);
  border-radius: var(--b-radius-10);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  min-height: 44px;
}
.cp-input svg { color: var(--ink-2); flex-shrink: 0; }
.cp-skel {
  display: inline-block;
  height: 6px;
  flex: 1;
  max-width: 100px;
  background: var(--gray-300);
  border-radius: var(--b-radius-full);
  margin-right: 12px;
}

.cp-chart {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  height: 220px;
}
.cp-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-2);
  padding: 4px 0;
}
.cp-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cp-line {
  height: 1px;
  width: 100%;
  background-image: linear-gradient(to right, var(--gray-300) 50%, transparent 50%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
}
.cp-bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 4px;
}
.cp-col {
  position: relative;
  height: 100%;
}
.cp-track {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 22px;
  height: 90%;
  background: #f5f6fa;
  border-radius: var(--b-radius-full);
}
.cp-value {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 22px;
  height: var(--v, 50%);
  background: #e5e5ec;
  border-radius: 5px 5px 0 0;
}
.cp-value-active {
  background: var(--accent);
}
.cp-tip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F1024;
  color: #fff;
  font-size: 11px;
  font-weight: var(--fw-medium);
  padding: 5px 10px;
  border-radius: var(--b-radius-5);
  white-space: nowrap;
}
.cp-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #0F1024;
}
.cp-xaxis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-left: 48px;
  margin-top: 10px;
  gap: 0;
}
.cp-xaxis .cp-skel {
  height: 8px;
  width: 40%;
  margin: 0 auto;
  background: var(--gray-300);
  border-radius: var(--b-radius-full);
}
