.tutorial-page {
  min-height: 100vh;
  background: var(--bg);
}

.tutorial-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px max(32px, calc((100vw - 1040px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.tutorial-topbar h1 {
  margin-top: 12px;
}

.tutorial-topbar p {
  margin-top: 7px;
  color: var(--muted);
}

.tutorial-shell {
  width: min(1040px, calc(100vw - 48px));
  margin: 28px auto 64px;
}

.tutorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: end;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, #1e56c9, #3479ef);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #dce9ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tutorial-hero h2 {
  max-width: 620px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.24;
}

.tutorial-hero p {
  max-width: 680px;
  margin-top: 14px;
  color: #e7efff;
  line-height: 1.8;
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.quick-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.quick-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.notice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.notice-card a {
  overflow: hidden;
  color: var(--blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-card span {
  color: var(--muted);
  font-size: 13px;
}

.tutorial-section {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 18px;
  font-weight: 750;
}

.step-content h2 {
  margin-bottom: 10px;
  font-size: 23px;
}

.step-content h3 {
  margin: 24px 0 10px;
  font-size: 17px;
}

.step-content > p,
.step-content li {
  color: #4f5e72;
  line-height: 1.8;
}

.step-content ol,
.step-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.credential-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.credential-card > div {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
}

.credential-card span,
.example-card span,
.input-examples span {
  color: var(--muted);
  font-size: 12px;
}

.credential-card strong {
  color: var(--blue);
  font-size: 18px;
}

.account-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-list span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #41536d;
  background: #f1f5fa;
  font-size: 13px;
}

.security-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--orange);
  color: #8b4c09 !important;
  background: var(--orange-soft);
}

.example-card {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #cddcf4;
  border-radius: 9px;
  background: #f4f8ff;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.tips-grid article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
}

.tips-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.input-examples {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.input-examples > div {
  display: grid;
  gap: 8px;
}

.input-examples code {
  display: block;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #24436e;
  background: #f5f8fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.7;
}

.highlight-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #c9e7d5;
  border-radius: 10px;
  background: var(--green-soft);
}

.highlight-card strong {
  color: var(--green);
}

.highlight-card p {
  margin-top: 8px;
  color: #3e6450;
  line-height: 1.75;
}

.feedback-highlight {
  border-color: #d8cef4;
  background: var(--purple-soft);
}

.feedback-highlight strong {
  color: var(--purple);
}

.feedback-highlight p {
  color: #5f4c83;
}

.tutorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 28px;
  border-radius: 12px;
  color: #fff;
  background: #162033;
}

.tutorial-footer h2 {
  font-size: 22px;
}

.tutorial-footer p {
  margin-top: 7px;
  color: #aebbd0;
}

@media (max-width: 760px) {
  .tutorial-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 18px;
  }

  .tutorial-shell {
    width: min(100% - 28px, 1040px);
    margin-top: 18px;
  }

  .tutorial-hero {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .notice-card {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tutorial-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 18px;
  }

  .credential-card,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
