/* =========================================================
   Restream connections explainer (.cx) + calculator (.cc)
   Scoped to #connections — Phase 3.1
   ========================================================= */

.cx,
.cc {
  --cx-ink: var(--ir-navy-950);
  --cx-muted: var(--ir-text-muted);
  --cx-edge: rgba(19, 47, 76, 0.12);
  --cx-sky: #8db8ff;
  --cx-dim: rgba(214, 228, 255, 0.66);
  --cx-line: rgba(141, 184, 255, 0.16);
  --cx-navy-bg:
    radial-gradient(420px 220px at 100% 0%, rgba(47, 111, 237, 0.28), transparent 70%),
    radial-gradient(320px 200px at 0% 100%, rgba(229, 49, 59, 0.14), transparent 70%),
    linear-gradient(rgba(141, 184, 255, 0.055) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(141, 184, 255, 0.055) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(155deg, var(--ir-navy-900) 0%, var(--ir-navy-950) 100%);
  font-synthesis: none;
  color: var(--ir-text);
}
.cx *,
.cc * { box-sizing: border-box; }
.cx svg,
.cc svg { display: block; }

/* Shared eyebrow / heading */
.cx__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ir-red-600);
}
.cx__eyebrow span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.cx__title,
.cc__title {
  margin: 0 0 0.6rem;
  font-family: var(--ir-display);
  font-size: clamp(1.5rem, 1.1rem + 1.35vw, 2.1rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--cx-ink);
  -webkit-font-smoothing: auto;
}
.cx__lead,
.cc__lead {
  margin: 0 0 0.95rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cx-muted);
}

/* =========================================================
   A. Explainer
   ========================================================= */
.cx {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.cx__copy { min-width: 0; }

/* Rule strip */
.cx-rule {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0 0 0.95rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--cx-edge);
  border-radius: 16px;
  box-shadow: 0 10px 24px -20px rgba(7, 17, 31, 0.4);
}
.cx-rule__side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: var(--ir-surface);
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--cx-ink);
}
.cx-rule__side strong { font-weight: 700; }
.cx-rule__side--accent {
  background: rgba(229, 49, 59, 0.08);
  color: var(--ir-red-700);
}
.cx-rule__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff;
  color: var(--ir-blue-500);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.18);
}
.cx-rule__side--accent .cx-rule__icon {
  color: var(--ir-red-600);
  box-shadow: inset 0 0 0 1px rgba(229, 49, 59, 0.22);
}
.cx-rule__icon svg { width: 16px; height: 16px; }
.cx-rule__eq {
  flex: 0 0 auto;
  align-self: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cx-ink);
}

/* Example selector */
.cx__pick-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cx-muted);
}
.cx-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}
.cx-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.55rem 0.7rem 0.5rem;
  text-align: left;
  font: inherit;
  color: var(--cx-ink);
  background: #fff;
  border: 1px solid var(--cx-edge);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.cx-pick:hover { border-color: rgba(47, 111, 237, 0.4); }
.cx-pick:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.5);
  outline-offset: 2px;
}
.cx-pick[aria-checked="true"] {
  background: linear-gradient(160deg, var(--ir-navy-900), var(--ir-navy-950));
  border-color: var(--ir-navy-950);
  color: #fff;
  box-shadow: 0 12px 24px -16px rgba(7, 17, 31, 0.75);
}
.cx-pick__in {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: 0.84rem;
  line-height: 1.3;
}
.cx-pick__in b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-pick__out {
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(19, 47, 76, 0.16);
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--cx-muted);
}
.cx-pick__out b {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ir-red-600);
}
.cx-pick[aria-checked="true"] .cx-pick__out {
  border-top-color: rgba(141, 184, 255, 0.25);
  color: var(--cx-dim);
}
.cx-pick[aria-checked="true"] .cx-pick__out b { color: #ff7a81; }

.cx__caveat {
  display: flex;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cx-line);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--cx-dim);
}
.cx__caveat > span:first-child { flex: 0 0 auto; color: var(--cx-sky); padding-top: 0.15rem; }
.cx__caveat svg { width: 14px; height: 14px; }
.cx__caveat a { color: #fff; font-weight: 600; text-underline-offset: 2px; }
.cx__caveat a:focus-visible { outline: 2px solid var(--cx-sky); outline-offset: 2px; border-radius: 3px; }

/* Console */
.cx-console {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: 24px;
  background: var(--cx-navy-bg);
  border: 1px solid rgba(141, 184, 255, 0.14);
  box-shadow:
    0 1px 2px rgba(7, 17, 31, 0.08),
    0 28px 56px -30px rgba(7, 17, 31, 0.7);
  color: #fff;
}
.cx-console__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.9rem;
}
.cx-console__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.cx-console__title i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
}
.cx-console__tag {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 184, 255, 0.28);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cx-dim);
}

/* Flow diagram */
.cx-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(62px, 0.5fr) minmax(0, 1fr) minmax(62px, 0.5fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: 0.95rem;
}
.cx-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-align: center;
}
.cx-node__art {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 118px;
  aspect-ratio: 1.2;
  padding: 0.6rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--cx-line);
}
.cx-node--server .cx-node__art {
  background: rgba(47, 111, 237, 0.14);
  border-color: rgba(141, 184, 255, 0.4);
  box-shadow: 0 0 0 5px rgba(47, 111, 237, 0.08), 0 14px 30px -18px rgba(47, 111, 237, 0.8);
}
.cx-node__label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--cx-dim);
}
.cx-node__label strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}
.cx-node__label b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

.cx-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 96px;
}
.cx-tiles i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(141, 184, 255, 0.13);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.cx-tiles i.is-on {
  background: #ff5a63;
  box-shadow: 0 0 8px rgba(255, 90, 99, 0.45);
}

.cx-rack { width: 100%; max-width: 100px; height: auto; }
.cx-rack__unit { fill: rgba(255, 255, 255, 0.07); stroke: rgba(141, 184, 255, 0.55); stroke-width: 1.4; }
.cx-rack__slots { stroke: rgba(141, 184, 255, 0.45); stroke-width: 2; stroke-linecap: round; fill: none; }
.cx-rack__led { fill: rgba(141, 184, 255, 0.3); }
.cx-rack__led--ok { fill: #3ddc97; }
.cx-rack__led--hot { fill: #ff5a63; }

.cx-crowd {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px 3px;
  width: 100%;
  max-width: 100px;
}
.cx-crowd i {
  aspect-ratio: 0.78;
  color: rgba(141, 184, 255, 0.16);
  background:
    radial-gradient(circle at 50% 28%, currentColor 0 27%, transparent 29%),
    radial-gradient(ellipse 52% 40% at 50% 100%, currentColor 0 96%, transparent 100%);
  transition: color .3s ease;
}
.cx-crowd i.is-on { color: var(--cx-sky); }

/* Links */
.cx-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  margin-bottom: 2.3rem;
}
.cx-link__line {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(141, 184, 255, 0.18);
}
.cx-link__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 30%, var(--cx-flow, var(--cx-sky)) 50%, transparent 70% 100%) 0 0 / 200% 100%;
  animation: cx-flow-x 1.8s linear infinite;
}
.cx-link--up { --cx-flow: #ff5a63; }
.cx-link--up .cx-link__line { background: rgba(255, 90, 99, 0.22); }
.cx-link__line::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--cx-flow, var(--cx-sky));
}
.cx-link__tag {
  order: -1;
  max-width: 100%;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--cx-dim);
  background: rgba(7, 17, 31, 0.55);
  border: 1px solid var(--cx-line);
}
.cx-link--up .cx-link__tag { color: #ffb0b4; border-color: rgba(255, 90, 99, 0.35); }
.cx-link__tag b { font-weight: 700; color: #fff; }

@keyframes cx-flow-x {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@keyframes cx-flow-y {
  from { background-position: 0 100%; }
  to { background-position: 0 -100%; }
}

/* Stats + meter */
.cx-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.8rem;
}
.cx-stats > div {
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cx-line);
}
.cx-stats dt {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cx-dim);
}
.cx-stats dd {
  margin: 0.1rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.cx-stats__accent {
  background: rgba(229, 49, 59, 0.14) !important;
  border-color: rgba(255, 90, 99, 0.4) !important;
}
.cx-stats__accent dd { color: #ff8a90; }

.cx-meter { margin: 0; }
.cx-meter__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 0.8rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--cx-dim);
}
.cx-meter__head strong { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cx-meter__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(141, 184, 255, 0.14);
}
.cx-meter__track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(7, 17, 31, 0.7) calc(10% - 2px) 10%);
  pointer-events: none;
}
.cx-meter__fill {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5a63, var(--ir-red-600));
  transition: width .45s ease;
}

/* =========================================================
   B. Calculator
   ========================================================= */
.cc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.55rem;
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--cx-edge);
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(7, 17, 31, 0.04),
    0 18px 36px -22px rgba(7, 17, 31, 0.28);
  scroll-margin-top: 90px;
}
.cc__inputs {
  min-width: 0;
  padding: clamp(0.9rem, 2vw, 1.35rem) clamp(0.8rem, 2vw, 1.3rem);
}
.cc__lead { margin-bottom: 1rem; }

.cc__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 0.9rem;
}
.cc-field {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
  padding-bottom: 0.8rem;
}
.cc-field__label { align-self: end; }
.cc-field__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cx-ink);
}
.cc-field__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(47, 111, 237, 0.09);
  color: var(--ir-blue-500);
}
.cc-field__icon svg { width: 16px; height: 16px; }
.cc-field__control {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: stretch;
  height: 50px;
  border: 1px solid rgba(19, 47, 76, 0.18);
  border-radius: 14px;
  background: var(--ir-surface);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cc-field__control:focus-within {
  border-color: var(--ir-blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.2);
}
.cc-field__control:has([aria-invalid="true"]) { border-color: var(--ir-red-600); }
.cc-field__input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0.5rem;
  border: 0;
  border-left: 1px solid rgba(19, 47, 76, 0.1);
  border-right: 1px solid rgba(19, 47, 76, 0.1);
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--cx-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.cc-field__input::-webkit-outer-spin-button,
.cc-field__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cc-field__input:focus { outline: none; }
.cc-step {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ir-navy-800);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cc-step:hover { background: rgba(47, 111, 237, 0.1); color: var(--ir-blue-500); }
.cc-step:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.55);
  outline-offset: -3px;
}
.cc-field__help {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--cx-muted);
}
.cc-field__error {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ir-red-700);
}
.cc-field__error:empty { display: none; }

.cc__assume {
  display: flex;
  gap: 0.55rem;
  margin: 0.2rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--ir-surface);
  border: 1px dashed rgba(19, 47, 76, 0.16);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--cx-muted);
}
.cc__assume > span:first-child { flex: 0 0 auto; color: var(--ir-blue-500); padding-top: 0.15rem; }
.cc__assume svg { width: 15px; height: 15px; }
.cc__assume strong { font-weight: 600; color: var(--cx-ink); }

/* Result panel */
.cc-result {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: 18px;
  background: var(--cx-navy-bg);
  color: #fff;
}
.cc-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.cc-result__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cx-sky);
}
.cc-result__tag {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 184, 255, 0.28);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cx-dim);
}
.cc-result__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 0.35rem 0 0.75rem;
}
.cc-result__num {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--ir-display);
  font-size: clamp(2.9rem, 2.2rem + 2.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  color: #fff;
}
.cc-result__metrics {
  flex: 1 1 260px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
}
.cc-result__metrics > div {
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cx-line);
}
.cc-result__metrics dt {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cx-dim);
}
.cc-result__metrics dd {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.cc-result__note {
  margin: 0 0 0.85rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--cx-dim);
}

.cc-plan {
  margin-bottom: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(141, 184, 255, 0.24);
}
.cc-plan__label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cx-sky);
}
.cc-plan__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
}
.cc-plan__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.cc-plan__spec {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--cx-dim);
}
.cc-plan__spec a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 2px;
}
.cc-plan__spec a:focus-visible { outline: 2px solid var(--cx-sky); outline-offset: 2px; border-radius: 3px; }
.cc-plan__bar {
  height: 8px;
  margin-top: 0.6rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(141, 184, 255, 0.16);
}
.cc-plan__bar span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ir-blue-400), var(--ir-blue-500));
  transition: width .4s ease;
}
.cc-plan__meta {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--cx-dim);
  font-variant-numeric: tabular-nums;
}
.cc-plan__meta:empty { display: none; }
.cc-plan.is-empty .cc-plan__bar { display: none; }
.cc-plan.is-over { border-color: rgba(255, 90, 99, 0.45); }
.cc-plan.is-over .cc-plan__bar span { background: linear-gradient(90deg, #ff5a63, var(--ir-red-600)); }

.cc-result__foot { margin-top: auto; }
.cc-result__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  background: var(--ir-red-600);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background-color .18s ease;
}
.cc-result__link:hover { background: var(--ir-red-700); color: #fff; }
.cc-result__link:focus-visible { outline: 3px solid var(--cx-sky); outline-offset: 2px; }
.cc-result__link svg { width: 15px; height: 15px; }
.cc-result__fine {
  margin: 0.6rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(214, 228, 255, 0.55);
}

.cc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1023px) {
  .cx { grid-template-columns: minmax(0, 1fr); }
  .cx__copy { max-width: 720px; }
}

@media (max-width: 760px) {
  .cc { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .cx__lead,
  .cc__lead { font-size: 0.95rem; margin-bottom: 0.9rem; }

  .cx-rule { gap: 0.3rem; padding: 0.3rem; margin-bottom: 1rem; }
  .cx-rule__side {
    gap: 0.4rem;
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
  }
  .cx-rule__icon { width: 26px; height: 26px; border-radius: 8px; }
  .cx-rule__eq { font-size: 1.1rem; }

  .cx-picker { gap: 0.35rem; }
  .cx-pick { gap: 0.35rem; padding: 0.55rem 0.55rem 0.5rem; border-radius: 12px; }
  .cx-pick__in { font-size: 0.78rem; }
  .cx-pick__out { padding-top: 0.35rem; font-size: 0.7rem; }
  .cx-pick__out b { font-size: 0.88rem; }

  .cx-console { border-radius: 20px; }
  .cx-console__bar { margin-bottom: 0.9rem; }
  .cx-flow {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
    margin-bottom: 0.9rem;
  }
  .cx-node { gap: 0.45rem; }
  .cx-node__art {
    max-width: 80px;
    padding: 0.4rem;
    border-radius: 12px;
  }
  .cx-node__label span { display: none; }
  .cx-node__label strong { font-size: 0.74rem; line-height: 1.3; }
  .cx-link { margin-bottom: 2.4rem; }
  .cx-link__tag { display: none; }
  .cx-link__line::before { width: 6px; height: 6px; }

  .cx-stats { gap: 0.35rem; margin-bottom: 0.8rem; }
  .cx-stats > div,
  .cc-result__metrics > div { padding: 0.5rem 0.55rem; border-radius: 10px; }
  .cx-stats dt,
  .cc-result__metrics dt { font-size: 0.66rem; }
  .cx-stats dd { font-size: 1.15rem; }
  .cc-result__metrics dd { font-size: 0.98rem; }
  .cc-result__label { font-size: 0.72rem; letter-spacing: 0.06em; }
  .cc-field__control { height: 46px; }
  .cc__assume { padding: 0.6rem 0.7rem; font-size: 0.77rem; }
}

@media (max-width: 359px) {
  .cx-picker { grid-template-columns: minmax(0, 1fr); }
  .cx-pick {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }
  .cx-pick__in { flex-direction: row; flex-wrap: wrap; gap: 0 0.45rem; }
  .cx-pick__out {
    flex: 0 0 auto;
    padding: 0 0 0 0.55rem;
    border-top: 0;
    border-left: 1px dashed rgba(19, 47, 76, 0.16);
    text-align: right;
  }
  .cx-pick[aria-checked="true"] .cx-pick__out { border-left-color: rgba(141, 184, 255, 0.25); }
  .cx-rule__icon { display: none; }
  .cc-field__control { grid-template-columns: 42px minmax(0, 1fr) 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-link__line::after { animation: none; opacity: 0; }
  .cx-pick,
  .cx-tiles i,
  .cx-crowd i,
  .cx-meter__fill,
  .cc-field__control,
  .cc-step,
  .cc-plan__bar span,
  .cc-result__link { transition: none; }
}
