.breakthrough-rail {
  --lab-red: #ff7b61;
  --lab-blue: #87a4ff;
  --lab-green: #73d8bd;
  --lab-amber: #f0c266;
  --lab-rose: #ff91ae;
  --lab-violet: #c3a4ff;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.55fr);
  gap: 9px;
  width: 100%;
  margin-top: 27px;
  padding: 9px;
  overflow: hidden;
  color: #f9f6ef;
  text-align: left;
  background:
    radial-gradient(420px 150px at 0% 0%, rgba(87, 110, 190, .2), transparent 70%),
    #202433;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(35, 31, 27, .11);
  isolation: isolate;
  animation: heroIn .72s .12s var(--ease) both;
}

.breakthrough-rail::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(115deg, transparent 49.7%, rgba(255, 255, 255, .035) 50%, transparent 50.3%);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.breakthrough-rail-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
}

.breakthrough-rail-copy > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.breakthrough-rail-copy small {
  color: rgba(255, 255, 255, .54);
  font-size: 9.5px;
  font-weight: 640;
  letter-spacing: .04em;
}

.breakthrough-rail-copy b {
  color: #fffdf8;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.breakthrough-signal {
  position: relative;
  display: block;
  width: 30px;
  height: 32px;
  flex: none;
}

.breakthrough-signal::before {
  position: absolute;
  top: 15px;
  left: 3px;
  width: 8px;
  height: 8px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .08);
}

.breakthrough-signal i {
  position: absolute;
  top: 18px;
  left: 14px;
  width: 16px;
  height: 1px;
  transform-origin: 0 50%;
  background: currentColor;
}

.breakthrough-signal i:nth-child(1) {
  color: var(--lab-red);
  transform: rotate(-40deg);
}

.breakthrough-signal i:nth-child(2) {
  color: var(--lab-blue);
}

.breakthrough-signal i:nth-child(3) {
  color: var(--lab-green);
  transform: rotate(40deg);
}

.breakthrough-signal i::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.breakthrough-rail-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 3px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
}

.breakthrough-rail-actions > button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 54px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: inherit;
  text-align: left;
  background: rgba(25, 29, 42, .7);
  border: 0;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.breakthrough-rail-actions > button:first-child {
  border-radius: 9px 0 0 9px;
}

.breakthrough-rail-actions > button:last-child {
  border-radius: 0 9px 9px 0;
}

.breakthrough-rail-actions > button:hover {
  z-index: 1;
  background: #303648;
}

.breakthrough-rail-actions > button:active {
  transform: scale(.985);
}

.breakthrough-rail-actions > button > span:last-of-type {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.breakthrough-rail-actions b {
  overflow: hidden;
  color: #fff;
  font-size: 11.5px;
  font-weight: 630;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakthrough-rail-actions small {
  overflow: hidden;
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakthrough-rail-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
}

.breakthrough-rail-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
}

.breakthrough-rail-icon.redteam {
  color: var(--lab-red);
  background: rgba(232, 88, 58, .12);
}

.breakthrough-rail-icon.future {
  color: var(--lab-blue);
  background: rgba(95, 127, 227, .13);
}

.breakthrough-rail-icon.echo {
  color: var(--lab-green);
  background: rgba(49, 166, 136, .12);
}

.breakthrough-rail-icon.assumption {
  color: var(--lab-amber);
  background: rgba(211, 155, 43, .12);
}

.breakthrough-rail-icon.inversion {
  color: var(--lab-rose);
  background: rgba(217, 86, 124, .12);
}

.breakthrough-rail-icon.crosspollinate {
  color: var(--lab-violet);
  background: rgba(139, 106, 211, .14);
}

.breakthrough-due-badge,
.breakthrough-tool-badge,
.breakthrough-switcher > button > em,
.breakthrough-echo-archive > header > b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  background: #d94a32;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.breakthrough-due-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  box-shadow: 0 0 0 3px #202433;
}

.breakthrough-expansion-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: #f6d994;
  background: rgba(240, 194, 102, .12);
  border: 1px solid rgba(240, 194, 102, .2);
  border-radius: 50%;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 3px #202433;
}

.breakthrough-tool {
  position: relative;
}

.breakthrough-tool-badge {
  position: absolute;
  top: 5px;
  left: 24px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border: 2px solid #fff;
  font-size: 8px;
}

.breakthrough-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  padding: 28px;
  place-items: center;
}

.breakthrough-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(36, 29, 26, .48);
  border: 0;
  backdrop-filter: blur(8px);
  animation: breakthroughFade .2s ease both;
}

.breakthrough-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1040px, 100%);
  height: min(770px, calc(100dvh - 56px));
  min-height: 520px;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fbf8f4;
  border: 1px solid rgba(93, 73, 64, .16);
  border-radius: 25px;
  box-shadow: 0 44px 100px rgba(36, 27, 23, .26), 0 2px 8px rgba(36, 27, 23, .08);
  animation: breakthroughRise .34s var(--ease) both;
}

.breakthrough-head {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  padding: 13px 17px 13px 20px;
  background: rgba(255, 253, 250, .92);
  border-bottom: 1px solid #e9dfd8;
}

.breakthrough-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  color: #fff6ef;
  background: #232738;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.breakthrough-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.45;
}

.breakthrough-head-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.breakthrough-head-copy small {
  color: #9a8178;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .06em;
}

.breakthrough-head-copy h2 {
  margin: 0;
  color: #2a211e;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 630;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.breakthrough-head-note {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #917d75;
  font-size: 10px;
  white-space: nowrap;
}

.breakthrough-head-note i {
  width: 6px;
  height: 6px;
  flex: none;
  background: #259a78;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37, 154, 120, .09);
}

.breakthrough-head .icon-button {
  flex: none;
  margin-left: 2px;
}

.breakthrough-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: 246px minmax(0, 1fr);
}

.breakthrough-switcher {
  display: flex;
  min-height: 0;
  padding: 17px 13px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(300px 200px at 10% 0%, rgba(207, 66, 40, .045), transparent 70%),
    #f1ebe5;
  border-right: 1px solid #e6d9d1;
}

.breakthrough-switcher > button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: #5d4f49;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  transition: color .16s, background .16s, border-color .16s, transform .16s;
}

.breakthrough-switcher > button:hover {
  color: #2b201d;
  background: rgba(255, 255, 255, .58);
}

.breakthrough-switcher > button.is-active {
  color: #2a211e;
  background: #fffdf9;
  border-color: #e7dbd3;
  box-shadow: 0 8px 22px rgba(73, 54, 44, .06);
}

.breakthrough-switcher > button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.breakthrough-switcher b {
  font-size: 12.5px;
  font-weight: 650;
}

.breakthrough-switcher small {
  color: #8f7d75;
  font-size: 9.5px;
  line-height: 1.45;
}

.breakthrough-switcher > button > em {
  position: static;
}

.breakthrough-switcher-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
}

.breakthrough-switcher-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.55;
}

.breakthrough-switcher-icon.redteam {
  color: #b93f2b;
  background: #ffe4dc;
}

.breakthrough-switcher-icon.future {
  color: #3154be;
  background: #e8edff;
}

.breakthrough-switcher-icon.echo {
  color: #16745e;
  background: #ddf5ed;
}

.breakthrough-switcher-icon.assumption {
  color: #a56b11;
  background: #fff0cc;
}

.breakthrough-switcher-icon.inversion {
  color: #aa3557;
  background: #ffe4ea;
}

.breakthrough-switcher-icon.crosspollinate {
  color: #6743aa;
  background: #eee7ff;
}

.breakthrough-switcher-divider {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 4px 8px 0;
  color: #a18a80;
  font-size: 8.5px;
  font-weight: 650;
}

.breakthrough-switcher-divider i {
  height: 1px;
  flex: 1;
  background: rgba(115, 91, 80, .13);
}

.breakthrough-switcher-note {
  margin: auto 7px 2px;
  padding-top: 15px;
  color: #9d8a81;
  border-top: 1px solid rgba(115, 91, 80, .1);
  font-size: 9.5px;
  line-height: 1.7;
}

.breakthrough-stage {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.breakthrough-panel {
  width: min(680px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 34px 38px 30px;
}

.breakthrough-panel-head {
  margin-bottom: 22px;
}

.breakthrough-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9a796f;
  font-size: 10px;
  font-weight: 650;
}

.breakthrough-panel-kicker::before {
  width: 17px;
  height: 1px;
  content: "";
  background: currentColor;
}

.breakthrough-panel-head h3 {
  margin: 9px 0 8px;
  color: #271e1a;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 580;
  letter-spacing: -.055em;
  line-height: 1.16;
}

.breakthrough-panel-head p {
  max-width: 610px;
  margin: 0;
  color: #75645d;
  font-size: 12.5px;
  line-height: 1.75;
}

.breakthrough-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakthrough-field > span {
  color: #50423c;
  font-size: 11px;
  font-weight: 650;
}

.breakthrough-field textarea,
.breakthrough-field input,
.breakthrough-field select {
  width: 100%;
  color: #2a211e;
  background: #fff;
  border: 1px solid #e3d5cc;
  border-radius: 12px;
  box-shadow: inset 0 1px 1px rgba(67, 46, 35, .025);
  outline: 0;
  transition: border-color .16s, box-shadow .16s;
}

.breakthrough-field textarea {
  min-height: 134px;
  padding: 13px 14px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.72;
}

.breakthrough-field input {
  height: 42px;
  padding: 0 12px;
  font-size: 12px;
}

.breakthrough-field select {
  height: 42px;
  padding: 0 32px 0 11px;
  font-size: 11.5px;
}

.breakthrough-field textarea:focus,
.breakthrough-field input:focus,
.breakthrough-field select:focus {
  border-color: #c06d58;
  box-shadow: 0 0 0 3px rgba(192, 109, 88, .11);
}

.breakthrough-field textarea::placeholder,
.breakthrough-field input::placeholder {
  color: #ad9990;
}

.breakthrough-field > small {
  color: #9b877e;
  font-size: 9.5px;
  line-height: 1.55;
}

.breakthrough-field.compact {
  margin-top: 12px;
}

.breakthrough-outcomes,
.breakthrough-futures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  padding: 13px 0;
  border-top: 1px solid #e7dad2;
  border-bottom: 1px solid #e7dad2;
}

.breakthrough-outcomes > span,
.breakthrough-futures > span {
  display: flex;
  min-width: 0;
  padding: 0 12px;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid #eadfd8;
}

.breakthrough-outcomes > span:first-child,
.breakthrough-futures > span:first-child {
  padding-left: 0;
}

.breakthrough-outcomes > span:last-child,
.breakthrough-futures > span:last-child {
  padding-right: 0;
  border-right: 0;
}

.breakthrough-outcomes b,
.breakthrough-futures b {
  color: #4e3f39;
  font-size: 10.5px;
  font-weight: 680;
}

.breakthrough-outcomes small,
.breakthrough-futures small {
  color: #99857c;
  font-size: 8.8px;
  line-height: 1.5;
}

.breakthrough-futures > span {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  column-gap: 7px;
  align-content: start;
}

.breakthrough-futures i {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  grid-row: 1 / 3;
  border-radius: 50%;
}

.breakthrough-futures .steady {
  background: #d39b2b;
  box-shadow: 0 0 0 4px rgba(211, 155, 43, .1);
}

.breakthrough-futures .inverse {
  background: #4b67d4;
  box-shadow: 0 0 0 4px rgba(75, 103, 212, .1);
}

.breakthrough-futures .leverage {
  background: #1c8b6f;
  box-shadow: 0 0 0 4px rgba(28, 139, 111, .1);
}

.breakthrough-panel-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
}

.breakthrough-panel-foot > span {
  color: #9b877e;
  font-size: 9.5px;
}

.breakthrough-run {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(51, 35, 28, .12);
  transition: filter .16s, transform .16s, opacity .16s;
}

.breakthrough-run:hover {
  filter: brightness(.94);
  transform: translateY(-1px);
}

.breakthrough-run:active {
  transform: translateY(0) scale(.985);
}

.breakthrough-run:disabled {
  opacity: .52;
  cursor: wait;
  transform: none;
}

.breakthrough-run svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.75;
}

.breakthrough-run.redteam {
  background: #bb402b;
}

.breakthrough-run.future {
  background: #3052b8;
}

.breakthrough-run.echo {
  background: #176f5c;
}

.breakthrough-run.assumption {
  color: #33240a;
  background: #e6af42;
}

.breakthrough-run.inversion {
  background: #ad3d5b;
}

.breakthrough-run.crosspollinate {
  background: #6845b2;
}

.breakthrough-echo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(260px, .97fr);
  align-items: start;
  gap: 18px;
}

.breakthrough-echo-form {
  min-width: 0;
}

.breakthrough-echo-form .breakthrough-run {
  width: 100%;
  margin-top: 15px;
}

.breakthrough-echo-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(120px, .85fr);
  gap: 12px;
  margin-top: 12px;
}

.breakthrough-echo-controls > label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: #50423c;
  font-size: 10px;
  font-weight: 650;
}

.breakthrough-range-row {
  display: grid;
  height: 42px;
  grid-template-columns: minmax(0, 1fr) 39px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e3d5cc;
  border-radius: 11px;
}

.breakthrough-range-row input {
  height: 2px;
  padding: 0;
  border: 0;
  accent-color: #176f5c;
  box-shadow: none;
}

.breakthrough-range-row output {
  color: #16745e;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.breakthrough-echo-archive {
  display: flex;
  min-width: 0;
  min-height: 330px;
  max-height: 430px;
  flex-direction: column;
  overflow: hidden;
  background: #f2ece6;
  border: 1px solid #e5d9d1;
  border-radius: 15px;
}

.breakthrough-echo-archive > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(111, 86, 73, .1);
}

.breakthrough-echo-archive > header > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.breakthrough-echo-archive small {
  color: #9d887e;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .04em;
}

.breakthrough-echo-archive h4 {
  margin: 0;
  color: #40332e;
  font-size: 12px;
  font-weight: 650;
}

.breakthrough-echo-list {
  min-height: 0;
  padding: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.breakthrough-echo-empty {
  display: grid;
  min-height: 230px;
  padding: 22px;
  place-content: center;
  text-align: center;
}

.breakthrough-echo-empty i {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  place-items: center;
  color: #1f8069;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(31, 128, 105, .16);
  border-radius: 50%;
  font-style: normal;
}

.breakthrough-echo-empty i::before,
.breakthrough-echo-empty i::after {
  position: absolute;
  border: 1px solid rgba(31, 128, 105, .18);
  border-radius: 50%;
  content: "";
}

.breakthrough-echo-empty i::before {
  inset: -6px;
}

.breakthrough-echo-empty i::after {
  inset: -12px;
  opacity: .45;
}

.breakthrough-echo-empty b {
  color: #51423c;
  font-size: 11.5px;
}

.breakthrough-echo-empty span {
  margin-top: 4px;
  color: #97837a;
  font-size: 9.5px;
  line-height: 1.65;
}

.breakthrough-echo-card {
  padding: 10px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(116, 88, 74, .1);
  border-radius: 11px;
}

.breakthrough-echo-card + .breakthrough-echo-card {
  margin-top: 7px;
}

.breakthrough-echo-card.is-due {
  background: #fffdf8;
  border-color: rgba(203, 75, 48, .25);
  box-shadow: inset 3px 0 0 #d14b32;
}

.breakthrough-echo-card.is-reviewed {
  opacity: .72;
}

.breakthrough-echo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.breakthrough-echo-card-head time {
  color: #98847b;
  font-size: 8.5px;
}

.breakthrough-echo-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #55766d;
  font-size: 8.5px;
  font-weight: 650;
}

.breakthrough-echo-status::before {
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.is-due .breakthrough-echo-status {
  color: #c4432d;
}

.breakthrough-echo-card blockquote {
  margin: 0;
  color: #3b2e29;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.55;
}

.breakthrough-echo-expect {
  margin: 5px 0 0;
  color: #846f66;
  font-size: 9px;
  line-height: 1.5;
}

.breakthrough-echo-expect b {
  color: #176f5c;
  font-weight: 680;
}

.breakthrough-echo-card textarea {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 7px 8px;
  color: #4f3f38;
  background: #fbf7f3;
  border: 1px solid #e8dcd4;
  border-radius: 8px;
  font: 9.5px/1.55 var(--font);
  resize: vertical;
}

.breakthrough-echo-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.breakthrough-echo-actions button {
  min-height: 28px;
  padding: 0 9px;
  color: #69544c;
  background: #fff;
  border: 1px solid #e2d5cc;
  border-radius: 7px;
  font-size: 8.8px;
  font-weight: 630;
  cursor: pointer;
}

.breakthrough-echo-actions button.primary {
  color: #fff;
  background: #176f5c;
  border-color: #176f5c;
}

.breakthrough-echo-actions button.danger {
  margin-left: auto;
  color: #a35240;
  background: transparent;
  border-color: transparent;
}

.breakthrough-echo-actions button:hover {
  filter: brightness(.96);
}

@keyframes breakthroughFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes breakthroughRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .breakthrough-rail {
    grid-template-columns: 1fr;
  }

  .breakthrough-rail-copy {
    padding: 4px 8px 6px;
  }

  .breakthrough-rail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
  }

  .breakthrough-rail-actions > button {
    border-radius: 9px;
  }

  .breakthrough-layout {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .breakthrough-panel {
    padding: 29px 30px 28px;
  }

  .breakthrough-echo-grid {
    grid-template-columns: 1fr;
  }

  .breakthrough-echo-archive {
    min-height: 260px;
    max-height: 350px;
  }
}

@media (max-width: 760px) {
  .breakthrough-rail {
    margin-top: 23px;
    padding: 7px;
    border-radius: 15px;
  }

  .breakthrough-rail-actions {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .breakthrough-rail-actions > button {
    min-height: 50px;
  }

  .breakthrough-rail-actions > button:nth-child(2) {
    border-radius: 0;
  }

  .breakthrough-rail-actions > button:first-child {
    border-radius: 9px 9px 0 0;
  }

  .breakthrough-rail-actions > button:last-child {
    border-radius: 0 0 9px 9px;
  }

  .breakthrough-rail-actions > button + button {
    border-top: 1px solid rgba(255, 255, 255, .07);
  }

  .breakthrough-modal {
    padding: 0;
  }

  .breakthrough-dialog {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .breakthrough-head {
    min-height: 66px;
    padding: 10px 12px 10px 14px;
  }

  .breakthrough-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .breakthrough-head-copy h2 {
    font-size: 18px;
  }

  .breakthrough-head-note {
    display: none;
  }

  .breakthrough-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .breakthrough-switcher {
    display: grid;
    padding: 7px 9px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    border-right: 0;
    border-bottom: 1px solid #e4d7cf;
  }

  .breakthrough-switcher > button {
    min-height: 50px;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 7px;
    padding: 6px 7px;
  }

  .breakthrough-switcher b {
    font-size: 10.5px;
  }

  .breakthrough-switcher small,
  .breakthrough-switcher-note,
  .breakthrough-switcher-divider {
    display: none;
  }

  .breakthrough-switcher-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
  }

  .breakthrough-switcher-icon svg {
    width: 15px;
    height: 15px;
  }

  .breakthrough-switcher > button > em {
    position: absolute;
    top: 2px;
    right: 3px;
    min-width: 15px;
    height: 15px;
  }

  .breakthrough-stage {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .breakthrough-panel {
    padding: 25px 18px 28px;
  }

  .breakthrough-panel-head h3 {
    font-size: 28px;
  }

  .breakthrough-panel-head p {
    font-size: 12px;
  }

  .breakthrough-outcomes,
  .breakthrough-futures {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .breakthrough-outcomes > span,
  .breakthrough-futures > span,
  .breakthrough-outcomes > span:first-child,
  .breakthrough-outcomes > span:last-child {
    padding: 0;
    border-right: 0;
  }

  .breakthrough-futures > span {
    grid-template-columns: 9px minmax(0, 1fr);
  }

  .breakthrough-panel-foot {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .breakthrough-run {
    width: 100%;
  }

  .breakthrough-echo-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .breakthrough-rail-copy {
    padding-right: 4px;
    padding-left: 6px;
  }

  .breakthrough-rail-copy b {
    font-size: 12px;
  }

  .breakthrough-rail-actions small {
    font-size: 8.5px;
  }

  .breakthrough-tool {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .breakthrough-tool > span {
    display: none;
  }

  .breakthrough-tool-badge {
    left: 22px;
  }

  .breakthrough-panel-head h3 {
    font-size: 25px;
  }

  .breakthrough-field textarea {
    min-height: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breakthrough-rail,
  .breakthrough-scrim,
  .breakthrough-dialog {
    animation: none;
  }
}
