.ksite-imgs-root {
  --ksite-purple: #7c3aed;
  --ksite-purple-dark: #6d28d9;
  --ksite-soft: #f8fafc;
  color: var(--ksite-text, #0f172a);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ksite-standalone-page {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #0f172a;
}

.ksite-standalone-header,
.ksite-standalone-footer {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ksite-standalone-header {
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.ksite-standalone-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.ksite-standalone-brand img,
.ksite-standalone-footer-brand img {
  display: block;
  max-height: 34px;
  width: auto;
}

.ksite-standalone-menu,
.ksite-standalone-footer-menu {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ksite-standalone-menu a,
.ksite-standalone-footer-menu a {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ksite-standalone-menu a:hover,
.ksite-standalone-footer-menu a:hover {
  color: #7c3aed;
}

.ksite-standalone-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
}

.ksite-standalone-badge {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.ksite-standalone-footer {
  justify-content: center;
  border-top: 1px solid #e5e7eb;
  color: #94a3b8;
  font-size: 12px;
  padding: 8px 16px;
}

.ksite-standalone-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-weight: 900;
  text-decoration: none;
}

.ksite-standalone-footer a {
  color: #7c3aed;
  font-weight: 800;
  text-decoration: none;
}

.ksite-seo-faq {
  padding: 0 20px 32px;
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ksite-seo-faq-inner {
  width: min(100%, 860px);
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fbfcfe;
  padding: 24px;
}

.ksite-seo-eyebrow {
  margin: 0 0 8px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ksite-seo-faq h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
}

.ksite-seo-intro {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.6;
}

.ksite-seo-faq details {
  border-top: 1px solid #e5e7eb;
  padding: 14px 0;
}

.ksite-seo-faq details:last-child {
  padding-bottom: 0;
}

.ksite-seo-faq summary {
  color: #0f172a;
  cursor: pointer;
  font-weight: 900;
}

.ksite-seo-faq details p {
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.65;
}

.ksite-unified {
  min-height: 720px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.ksite-unified-tabs-wrap {
  display: flex;
  justify-content: center;
  padding: 0 16px;
  transform: translateY(-1px);
}

.ksite-unified-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ksite-unified-tab {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 15px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ksite-unified-tab.is-active {
  background: linear-gradient(135deg, var(--ksite-purple), #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}

.ksite-unified-main {
  display: flex;
  justify-content: center;
  padding: 46px 20px 70px;
}

.ksite-unified-center {
  width: min(100%, 560px);
  text-align: center;
}

.ksite-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  font-size: 44px;
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.18));
}

.ksite-unified h1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  color: #020617;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.ksite-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88em;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.16));
}

.ksite-tool-subtitle {
  margin: 16px 0 34px;
  color: #98a2b3;
  font-size: 17px;
}

.ksite-dropzone {
  position: relative;
  border: 1px dashed #d9e1ec;
  border-radius: 16px;
  background: #fbfcfe;
  padding: 40px 22px;
  min-height: 244px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ksite-dropzone.is-dragover {
  border-color: var(--ksite-purple);
  background: #f5f3ff;
}

.ksite-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 24px;
}

.ksite-upload-title {
  margin: 0 0 10px;
  color: #020617;
  font-size: 16px;
  font-weight: 800;
}

.ksite-upload-or,
.ksite-upload-types,
.ksite-paste-hint,
.ksite-trust-row {
  color: #98a2b3;
  font-size: 12px;
}

.ksite-btn-primary {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ksite-purple), #8b5cf6);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  margin: 14px 0 13px;
  padding: 14px 30px;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.24);
}

.ksite-btn-secondary {
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 20px;
}

.ksite-paste-hint {
  margin-top: 12px;
}

.ksite-paste-hint kbd {
  border: 1px solid #d9e1ec;
  border-radius: 4px;
  background: #fff;
  color: #64748b;
  font-size: 10px;
  padding: 3px 7px;
}

.ksite-trust-row {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: 38px;
  font-size: 14px;
}

.ksite-results-panel {
  margin-top: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  text-align: left;
}

.ksite-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.ksite-preview-img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

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

.ksite-compare img {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: repeating-conic-gradient(#ddd 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
}

.ksite-batch-list {
  display: grid;
  gap: 10px;
}

.ksite-batch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
}

.ksite-error {
  margin-top: 14px;
  color: #b91c1c;
  font-weight: 700;
}

@media (max-width: 640px) {
  .ksite-standalone-header { flex-wrap: wrap; justify-content: center; }
  .ksite-standalone-menu,
  .ksite-standalone-footer-menu,
  .ksite-standalone-footer { flex-wrap: wrap; }
  .ksite-unified-tabs { flex-wrap: wrap; justify-content: center; }
  .ksite-unified-main { padding-top: 36px; }
  .ksite-trust-row { flex-direction: column; gap: 8px; }
  .ksite-compare { grid-template-columns: 1fr; }
}
