.yuz-ra-wrapper {
  max-width: 880px;
  margin: 20px auto;
  padding: 10px;
}

.yuz-ra-error {
  color: #b32d2e;
  margin: 10px 0;
  white-space: pre-wrap;
}

.yuz-ra-main-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: 0;
}

.yuz-ra-intro {
  margin: 0 0 18px;
  text-align: center;
  font-size: 17px;
  line-height: 1.45;
  color: #2f3135;
}

.rat-step-title {
  margin: 14px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.rat-small-note {
  font-size: 13px;
  color: #4f5a62;
}

.submit-wrap2 {
  display: grid;
  gap: 10px;
}

.yuz-ra-step-rail {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.yuz-ra-step-rail span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(144, 84, 254, 0.34);
  border-radius: 999px;
  background: #fbf7ff;
  color: #301ebc;
  font-size: 12px;
  font-weight: 800;
}

.yuz-ra-step-rail span.done,
.yuz-ra-step-rail span.active {
  background: #9054fe;
  border-color: #9054fe;
  color: #fff;
}

.yuz-ra-wrapper .button,
.yuz-ra-wrapper .button.button-primary {
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid #3d79be;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #90bbef 0%, #367aca 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.yuz-ra-wrapper .button:hover,
.yuz-ra-wrapper .button.button-primary:hover {
  background: linear-gradient(180deg, #9ac2f4 0%, #2f72c2 100%);
}

.yuz-ra-download-panel {
  margin-top: 14px;
}

.yuz-ra-detected-card {
  border: 1px solid #d6dbe2;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f2f5f8 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.yuz-ra-detected-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a8795;
}

.yuz-ra-detected-card h3 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.15;
}

.yuz-ra-detected-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

#ratDetectedDownload,
#ratDetectedFollow {
  min-height: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 18px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

#ratDetectedFollow {
  cursor: copy;
}

.yuz-ra-follow-steps {
  margin: 0;
  padding: 10px 12px 10px 30px;
  border: 1px solid rgba(144, 84, 254, 0.24);
  border-left: 4px solid #9054fe;
  border-radius: 8px;
  background: #f6edff;
  font-size: 14px;
  line-height: 1.5;
  color: #301ebc;
  font-weight: 650;
}

.yuz-ra-follow-steps li {
  margin-bottom: 4px;
}

.yuz-ra-follow-steps li:last-child {
  margin-bottom: 0;
}

.yuz-ra-follow-steps code {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.9em;
  background: #eaf1f8;
  border: 1px solid #d2dfec;
  border-radius: 4px;
  padding: 0 4px;
}

.yuz-ra-follow-details {
  margin-top: 10px;
}

.yuz-ra-follow-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #2f4661;
}

.yuz-ra-code {
  margin-top: 6px;
  background: #f7f8fa;
  border: 1px solid #d9dfe6;
  border-radius: 8px;
  padding: 9px;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: all;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.42;
}

.yuz-ra-alt-systems {
  margin-top: 10px;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.yuz-ra-alt-systems summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #32465d;
}

.yuz-ra-alt-links {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.yuz-ra-alt-links a {
  font-weight: 600;
  text-decoration: none;
}

.yuz-ra-alt-links a:hover {
  text-decoration: underline;
}

.yuz-ra-manual {
  margin-top: 12px;
  border: 1px dashed #c3c9d1;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.yuz-ra-manual h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.yuz-ra-manual input[type="text"] {
  width: 100%;
  max-width: 420px;
}

.yuz-ra-tools {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.yuz-ra-tools .button {
  width: 100%;
}

.yuz-ra-waiting {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #d8dfe7;
  border-radius: 14px;
  padding: 12px;
}

.yuz-ra-waiting p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}

.yuz-ra-waiting p:last-child {
  margin-bottom: 0;
}

.yuz-ra-waiting .rat-small-note {
  margin-bottom: 6px;
}

.rat-step-run {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .yuz-ra-main-title {
    font-size: 34px;
  }

  .yuz-ra-detected-card h3 {
    font-size: 22px;
  }

  .yuz-ra-detected-actions {
    grid-template-columns: 1fr;
  }
}
