/* v403: pre-trillion active rewards and clear stock-risk guidance. */

body[data-stock-guide-release="403"] .system-upgrade-row .system-upgrade-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  line-height: 18px;
}

body[data-stock-guide-release="403"] .system-upgrade-row .system-upgrade-copy > span {
  display: block;
  min-width: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

body[data-stock-guide-release="403"] .system-upgrade-row .upgrade-risk-copy {
  color: #e42939;
  font-weight: 800;
}

body[data-stock-guide-release="403"] .stock-guide-modal > .stock-guide-content {
  box-sizing: border-box;
  width: min(calc(100vw - 24px), 430px);
  gap: 0;
  padding: 18px 16px 16px;
}

body[data-stock-guide-release="403"] .stock-guide-modal .dialog-title {
  margin: 0 0 12px;
  color: #191f28;
  font-size: clamp(21px, 6vw, 27px);
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
}

body[data-stock-guide-release="403"] .stock-guide-modal .tutorial-scene-shell {
  --tutorial-scene-height: clamp(174px, 24dvh, 206px);
  --tutorial-scene-min-height: 174px;
  margin: 0;
}

body[data-stock-guide-release="403"] .stock-guide-modal .stock-guide-visual,
body[data-stock-guide-release="403"] .stock-guide-modal .stock-guide-visual > img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  overflow: hidden;
}

html body[data-stock-guide-release="403"] #leverage-guide-modal #leverage-guide-text {
  box-sizing: border-box;
  display: grid !important;
  height: 66px !important;
  min-height: 66px !important;
  max-height: 66px !important;
  align-content: center;
  padding: 8px 12px !important;
  color: #191f28 !important;
  font-family: "Pretendard", system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 22px !important;
  overflow: hidden;
}

/* Keep room below the padded speech for antennae, also on 320px screens. */
body[data-stock-guide-release="403"] #leverage-guide-modal .tutorial-scene-shell {
  --tutorial-scene-height: clamp(206px, 26dvh, 230px);
  --tutorial-scene-min-height: 206px;
}

body[data-stock-guide-release="403"] .stock-guide-modal .stock-guide-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-stock-guide-release="403"] .stock-guide-summary > span {
  box-sizing: border-box;
  display: grid;
  min-width: 0;
  min-height: 62px;
  place-content: center;
  gap: 3px;
  padding: 8px 5px;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  background: #f7f9fc;
  text-align: center;
}

body[data-stock-guide-release="403"] .stock-guide-summary small {
  color: #6b7684;
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
}

body[data-stock-guide-release="403"] .stock-guide-summary strong {
  min-width: 0;
  color: #191f28;
  font-size: 14px;
  font-weight: 850;
  line-height: 18px;
  overflow-wrap: anywhere;
}

body[data-stock-guide-release="403"] .stock-guide-modal .dialog-actions {
  margin: 12px 0 0;
}

body[data-stock-guide-release="403"] .stock-guide-modal [data-tutorial-sequence-action] {
  min-height: 48px;
  border: 1px solid #1769e5 !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: #3182f6 !important;
  box-shadow: inset 0 0 0 3px #ffc42d, 0 2px 0 #1769e5 !important;
  font-weight: 800 !important;
}

body[data-stock-guide-release="403"] .stock-guide-modal [data-tutorial-sequence-action]:disabled {
  border-color: #b0b8c1 !important;
  color: #6b7684 !important;
  background: #e5e8eb !important;
  box-shadow: inset 0 0 0 3px #ffc42d !important;
}

body[data-stock-guide-release="403"] .buy-preview-risk-row > span:last-child {
  color: #e42939;
  font-weight: 800;
  text-align: right;
  word-break: keep-all;
}

@media (max-width: 360px), (max-height: 700px) {
  body[data-stock-guide-release="403"] .stock-guide-modal > .stock-guide-content {
    padding: 14px 12px 12px;
  }

  body[data-stock-guide-release="403"] .stock-guide-modal .dialog-title {
    margin-bottom: 8px;
    font-size: 20px;
  }

  body[data-stock-guide-release="403"] .stock-guide-modal .tutorial-scene-shell {
    --tutorial-scene-height: 160px;
    --tutorial-scene-min-height: 160px;
  }

  body[data-stock-guide-release="403"] .stock-guide-modal .stock-guide-summary {
    gap: 5px;
    margin: 8px 0;
  }

  body[data-stock-guide-release="403"] .stock-guide-summary > span {
    min-height: 56px;
    padding-inline: 3px;
  }

  body[data-stock-guide-release="403"] .stock-guide-summary strong {
    font-size: 12px;
    line-height: 16px;
  }
}
