.screen-help-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
}

.screen-help-tabs {
  display: flex;
  gap: 8px;
  padding: 0 24px 16px;
  border-bottom: 1px solid var(--border, #dce5ee);
}

.screen-help-tab {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--border, #dce5ee);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--muted, #5b6b7b);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.screen-help-tab.is-active {
  border-color: #2367d1;
  background: #eaf2ff;
  color: #174f9f;
}

.screen-help-content {
  display: grid;
  gap: 18px;
  padding: 20px 24px 26px;
  overflow: auto;
}

.screen-help-intro,
.screen-help-next,
.screen-help-section,
.screen-help-warning,
.screen-help-status {
  border-radius: 16px;
}

.screen-help-intro {
  padding: 16px 18px;
  background: linear-gradient(135deg, #edf6ff, #f5fbff);
  border: 1px solid #cfe2f8;
}

.screen-help-eyebrow {
  margin: 0 0 5px;
  color: #2367d1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.screen-help-intro h3,
.screen-help-section h3 { margin: 0 0 7px; }

.screen-help-intro p,
.screen-help-section p {
  margin: 0;
  line-height: 1.5;
}

.screen-help-next {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: #eefbf4;
  border: 1px solid #bfe8cf;
}

.screen-help-next span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #18794e;
  color: #fff;
  font-weight: 900;
}

.screen-help-next strong {
  display: block;
  margin-bottom: 3px;
  color: #12603e;
}

.screen-help-next p { margin: 0; }

.screen-help-section {
  padding: 16px;
  border: 1px solid var(--border, #dce5ee);
  background: var(--surface, #fff);
}

.screen-help-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-help-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border-radius: 14px;
  background: var(--surface-soft, #f6f8fb);
}

.screen-help-step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #263b53;
  color: #fff;
  font-weight: 900;
}

.screen-help-step strong {
  display: block;
  margin: 2px 0 4px;
}

.screen-help-step p { color: var(--muted, #5b6b7b); }

.screen-help-locate {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #bdd1ec;
  border-radius: 10px;
  background: #fff;
  color: #174f9f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.screen-help-locate:hover,
.screen-help-locate:focus-visible {
  background: #eaf2ff;
  outline: 3px solid rgba(35, 103, 209, .18);
}

.screen-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.screen-help-checklist {
  margin: 10px 0 0;
  padding-left: 22px;
}

.screen-help-checklist li { margin: 7px 0; }

.screen-help-warning {
  padding: 14px 16px;
  border: 1px solid #f1d09a;
  background: #fff8e8;
  color: #725019;
}

.screen-help-status {
  padding: 12px 14px;
  border: 1px solid #f0c0c0;
  background: #fff0f0;
  color: #8e2f2f;
}

.screen-help-hint {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 1190;
  display: grid;
  gap: 3px;
  width: min(380px, calc(100vw - 28px));
  padding: 13px 15px;
  border: 1px solid #bad2f3;
  border-radius: 15px;
  box-shadow: 0 14px 38px rgba(23, 55, 91, .2);
  background: #fff;
  color: #203248;
  text-align: left;
  font: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.screen-help-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: none;
}

.screen-help-hint span {
  color: #2367d1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.screen-help-highlight {
  position: relative;
  z-index: 1201 !important;
  border-radius: 10px;
  animation: screen-help-pulse 1s ease-in-out 3;
  box-shadow: 0 0 0 5px rgba(35, 103, 209, .28), 0 8px 30px rgba(35, 103, 209, .25) !important;
}

@keyframes screen-help-pulse {
  50% { box-shadow: 0 0 0 9px rgba(35, 103, 209, .12), 0 8px 30px rgba(35, 103, 209, .25); }
}

@media (max-width: 720px) {
  .screen-help-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .screen-help-tabs,
  .screen-help-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .screen-help-grid { grid-template-columns: 1fr; }

  .screen-help-step { grid-template-columns: 32px minmax(0, 1fr); }

  .screen-help-locate {
    grid-column: 2;
    justify-self: start;
  }

  .screen-help-hint {
    right: 14px;
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-help-hint,
  .screen-help-highlight {
    animation: none;
    transition: none;
  }
}
.screen-help-dialog .role-help-shell {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
