.upload-guide-button, .ui-button.upload-guide-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 4px; border: 0; border-radius: 4px; background: transparent;
  color: #4968c5; font: inherit; font-size: 12px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.upload-guide-button:hover { color: #284b9b; }
.login .upload-guide-button { display: flex; margin: 24px auto 0; }
.wizard-pick > .upload-guide-button { padding: 7px 4px; border: 0; background: transparent; color: #4968c5; }
.wizard-pick > .upload-guide-button:hover:not(:disabled) { background: transparent; color: #284b9b; }
.upload-guide {
  box-sizing: border-box; width: 720px; max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: hidden;
  border: 1px solid #dce3f0; border-radius: 12px; background: #fff; color: #202b43;
  box-shadow: 0 20px 80px #182b4933;
  font: 13px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
}
.upload-guide[open] { display: flex; flex-direction: column; }
.upload-guide::backdrop { background: #18243a80; }
.upload-guide * { box-sizing: border-box; }
.upload-guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 20px; border-bottom: 1px solid #e3e8f2; flex-shrink: 0; }
.upload-guide h2 { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.4; letter-spacing: -.7px; }
.upload-guide-header p { margin: 7px 0 0; color: #6c768b; }
.upload-guide button { font: inherit; cursor: pointer; }
.upload-guide .upload-guide-close { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 5px; background: #f1f4fc; color: #53617d; font-size: 24px; line-height: 1; }
.upload-guide .upload-guide-close:hover { background: #e5ebf9; }
.upload-guide-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px; }
.upload-guide-steps { margin: 0; padding-left: 25px; }
.upload-guide-steps > li { padding-left: 5px; margin-bottom: 28px; }
.upload-guide-steps > li::marker { color: #4968c5; font-weight: 650; }
.upload-guide h3 { margin: 0 0 8px; font-size: 15px; font-weight: 650; line-height: 1.6; }
.upload-guide p { margin: 8px 0; word-break: keep-all; overflow-wrap: anywhere; }
.upload-guide code { padding: 1px 4px; border-radius: 3px; background: #f1f4fc; font-size: 12px; overflow-wrap: anywhere; }
.upload-guide pre { margin: 14px 0; padding: 16px 20px; overflow-x: auto; border-left: 3px solid #8398e2; background: #f5f7fc; color: #435474; font-size: 12px; line-height: 1.9; }
.upload-guide .upload-guide-example { color: #6c768b; font-size: 12px; }
.upload-guide-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 12px 0; }
.upload-guide-platforms section + section { border-left: 1px solid #e3e8f2; padding-left: 24px; }
.upload-guide h4 { margin: 0; color: #4968c5; font-size: 13px; font-weight: 650; }
.upload-guide .upload-guide-secondary { color: #6c768b; font-size: 12px; }
.upload-guide-checklist { padding: 18px 20px; border: 1px solid #e3e8f2; border-radius: 6px; }
.upload-guide-checklist ul { margin: 0; padding-left: 18px; }
.upload-guide-checklist li + li { margin-top: 8px; }
.upload-guide .upload-guide-sources { margin: 18px 0 0; color: #6c768b; font-size: 11px; }
.upload-guide a { color: #4968c5; text-underline-offset: 3px; }
.upload-guide-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 28px; border-top: 1px solid #e3e8f2; flex-shrink: 0; }
.upload-guide-footer span { color: #6c768b; font-size: 12px; }
.upload-guide-footer button { flex-shrink: 0; padding: 8px 16px; border: 1px solid #4968e8; border-radius: 6px; background: #4968e8; color: #fff; }
.upload-guide-footer button:hover { background: #3b58ce; }
.upload-guide button:focus-visible, .upload-guide a:focus-visible, .upload-guide-button:focus-visible { outline: 2px solid #4968e8; outline-offset: 3px; }
@media (max-width: 540px) {
  .upload-guide { max-width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
  .upload-guide-header { padding: 20px; }
  .upload-guide h2 { font-size: 20px; }
  .upload-guide-body { padding: 20px; }
  .upload-guide-platforms { grid-template-columns: 1fr; gap: 14px; }
  .upload-guide-platforms section + section { border-left: 0; border-top: 1px solid #e3e8f2; padding: 14px 0 0; }
  .upload-guide-footer { padding: 14px 20px; }
  .upload-guide-footer span { max-width: 155px; }
}
