.text-page-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 28px 28px 64px;
}

.login-flow-page .text-guide-layout {
  width: 100%;
  padding: 18px 0 0;
}

.login-flow-page .sidebar {
  top: 146px;
  max-height: calc(100vh - 170px);
}

.text-guide-head h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-align: center;
}

.text-guide-head {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(18,18,20,.96), rgba(18,18,20,.9)),
    rgba(255,255,255,.055);
  backdrop-filter: blur(18px) saturate(160%);
}

.doc-notice {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  max-width: none;
  color: #ff3b30 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.text-guide-content {
  gap: 34px;
}

.text-section {
  display: grid;
  gap: 18px;
  scroll-margin-top: 156px;
}

.text-section-title {
  scroll-margin-top: 156px;
}

.section-intro {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.section-intro p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.section-intro a,
.text-step-card a {
  color: #8fc7ff;
  text-decoration: underline;
  text-decoration-color: rgba(143,199,255,.4);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.section-resources {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.resource-panel {
  border: 1px solid rgba(41,151,255,.28);
  border-radius: 8px;
  background: rgba(12,28,42,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.resource-action-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.resource-panel h3 {
  margin: 0;
  color: #f5f5f7;
  font-size: 15px;
  line-height: 1.4;
}

.resource-panel p {
  margin: 4px 0 0;
  color: #a1a1a6;
  font-size: 13px;
  line-height: 1.5;
}

.resource-button {
  min-height: 46px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0071e3;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}

.resource-button:hover {
  filter: brightness(1.12);
}

.resource-link-group {
  padding: 15px 16px 14px;
  background: rgba(0,0,0,.2);
  border-color: rgba(255,255,255,.1);
}

.resource-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.resource-mini-link {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(41,151,255,.3);
  border-radius: 8px;
  background: rgba(12,28,42,.82);
  color: #eaf4ff;
  text-align: center;
  text-decoration: none !important;
}

.resource-mini-link:hover {
  border-color: rgba(41,151,255,.56);
  background: rgba(41,151,255,.14);
}

.resource-mini-link span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.resource-mini-link small {
  margin-top: 3px;
  color: #8fc7ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.resource-detail {
  color: #8fc7ff !important;
  font-weight: 700;
}

.resource-note {
  color: #a1a1a6 !important;
}

.login-flow-page .tutorial-download {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(41,151,255,.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(41,151,255,.13), rgba(10,132,255,.045));
}

.login-flow-page .tutorial-download-copy {
  min-width: 0;
}

.login-flow-page .tutorial-download-copy strong {
  display: block;
  color: #f5f5f7;
  font-size: 14px;
  line-height: 1.4;
}

.login-flow-page .tutorial-download-copy span {
  display: block;
  margin-top: 3px;
  color: #a1a1a6;
  font-size: 13px;
  line-height: 1.45;
}

.login-flow-page .tutorial-download-button {
  min-height: 42px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 999px;
  background: #0071e3;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
}

.login-flow-page .tutorial-download-button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.login-flow-page .tutorial-link-group {
  margin-top: 10px;
  padding: 15px 16px 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.login-flow-page .tutorial-link-group-head strong {
  display: block;
  color: #f5f5f7;
  font-size: 14px;
  line-height: 1.4;
}

.login-flow-page .tutorial-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.login-flow-page .tutorial-link-card {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 9px;
  border: 1px solid rgba(41,151,255,.24);
  border-radius: 8px;
  background: rgba(41,151,255,.075);
  color: #eaf4ff;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.login-flow-page .tutorial-link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(41,151,255,.48);
  background: rgba(41,151,255,.14);
}

.login-flow-page .tutorial-link-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.login-flow-page .tutorial-link-meta {
  margin-top: 3px;
  color: #8fc7ff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.login-flow-page .tutorial-link-detail {
  margin-top: 11px;
  color: #8fc7ff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.login-flow-page .tutorial-link-note {
  margin-top: 5px;
  color: #a1a1a6;
  font-size: 12px;
  line-height: 1.55;
}

.login-flow-page .tutorial-link-warning {
  margin-top: 10px;
  padding: 9px 11px;
  border-left: 3px solid #ffd60a;
  border-radius: 6px;
  background: rgba(255,214,10,.07);
  color: #ffe36e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.text-nav-tool {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.text-nav-tool:last-child {
  border-bottom: 0;
}

.nav-tool .text-section-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.nav-tool .text-section-toggle:hover,
.text-nav-tool.is-open > .text-section-toggle {
  background: rgba(255,255,255,.08);
}

.text-nav-tool .nav-steps[hidden] {
  display: none;
}

.text-step-card {
  scroll-margin-top: 156px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.text-step-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
}

.screenshot-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.screenshot-grid.multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screenshot-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.24);
  cursor: zoom-in;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.screenshot-button:hover {
  border-color: rgba(41,151,255,.48);
}

.screenshot-button img {
  width: 100%;
  height: auto;
  display: block;
}

.image-dialog {
  width: min(1120px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: 48px 16px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(12,12,14,.96);
  color: #fff;
  box-shadow: 0 26px 90px rgba(0,0,0,.6);
}

.image-dialog::backdrop {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(5px);
}

.image-dialog img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
}

.image-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 920px) {
  .screenshot-grid.multi {
    grid-template-columns: 1fr;
  }
}
