* {
  box-sizing: border-box;
}

.sk-support-dark {
  margin: 0;
  padding: 24px;
  min-height: 100vh;
  background: #0f1117;
  color: #e1e4e8;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sk-support-dark .card {
  width: 100%;
  max-width: 480px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 18px;
  padding: 40px 32px;
  text-align: center;
}

.sk-support-dark form.card {
  max-width: 420px;
  padding: 36px 30px;
}

.sk-support-dark h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.sk-support-dark .sub {
  color: #8b949e;
  margin-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.sk-support-dark input {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: #0f1117;
  border: 1px solid #30363d;
  color: #e1e4e8;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.2em;
  font-family: inherit;
}

.sk-support-dark .btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  background: #1f6feb;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.sk-support-dark form .btn {
  width: 100%;
  margin-top: 14px;
  font-size: 1rem;
}

.sk-support-dark .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sk-support-dark .pin {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #58a6ff;
  margin: 16px 0 24px;
  font-variant-numeric: tabular-nums;
}

.sk-support-dark .contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 4px;
}

.sk-support-dark .btn.secondary { background: #374151; }

.sk-support-dark .err {
  background: rgba(248,81,73,0.12);
  color: #f85149;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.sk-support-dark form .err {
  background: transparent;
  color: #f78b8b;
  padding: 0;
  border-radius: 0;
  margin: 10px 0 0;
  font-size: 0.85rem;
}

.sk-support-dark .tiny {
  color: #8b949e;
  font-size: 0.72rem;
  margin-top: 22px;
}

.sk-support-dark .ts {
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
}

.sk-sos-body {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  background: #f7f8fa;
  color: #111;
}

.sk-sos-body .card {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.sk-sos-body h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.sk-sos-body .pin {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.4rem 0.9rem;
  background: #eef2ff;
  color: #1e3a8a;
  border-radius: 8px;
  display: inline-block;
}

.sk-sos-body .btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-top: 0.6rem;
}

.sk-sos-body .btn.secondary {
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.sk-sos-body .steps {
  counter-reset: s;
  padding-left: 0;
  list-style: none;
  margin: 1.5rem 0;
}

.sk-sos-body .steps li {
  counter-increment: s;
  padding: 0.5rem 0 0.5rem 2.2rem;
  position: relative;
}

.sk-sos-body .steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.sk-sos-body .other-os {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #666;
}

.sk-sos-body .other-os a {
  color: #2563eb;
  margin-right: 1rem;
}

.sk-sos-body .err {
  background: #fee2e2;
  color: #7f1d1d;
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.sk-sos-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  background: #eef2ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.sk-sos-body .rustdesk-fallback {
  margin-top: 1.6rem;
  padding: 0.9rem 1rem;
  background: #fff8e6;
  border: 1px solid #facc15;
  border-radius: 8px;
  color: #7c2d12;
}

.sk-sos-body .rustdesk-fallback summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}

.sk-sos-body .rustdesk-copy {
  margin: 0.7rem 0 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.sk-sos-body .rustdesk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sk-sos-body .rustdesk-other {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: #7c2d12;
}

.sk-sos-body .rustdesk-other a { color: #7c2d12; }

@media (prefers-color-scheme: dark) {
  .sk-sos-body {
    background: #111;
    color: #eee;
  }

  .sk-sos-body .card {
    background: #1b1c1f;
    border-color: #2a2c30;
  }

  .sk-sos-body .pin {
    background: #1e293b;
    color: #bfdbfe;
  }

  .sk-sos-body .err {
    background: #3f1d1d;
    color: #fecaca;
  }
}
