:root {
  color-scheme: light dark;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background-color: #f7f9fc;
  color: #1f2933;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: min(100%, 960px);
}

.feature-card {
  max-width: 640px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.12);
}

.feature-form {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-label {
  font-weight: 600;
}

.feature-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: #f0f4f8;
}

.feature-status[data-state="success"] {
  background-color: #def7ec;
  color: #03543f;
}

.feature-status[data-state="error"] {
  background-color: #fde2e1;
  color: #610404;
}

.feature-status[data-state="warning"] {
  background-color: #fff4e5;
  color: #8a4b16;
}

.feature-summary {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background-color: #e4ecfa;
}

.feature-summary__heading {
  margin: 0 0 0.5rem 0;
}

.feature-summary__detail {
  margin: 0;
}

input[type="file"] {
  padding: 0.5rem;
}

.xml-sync__slides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.xml-sync__slide {
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 1rem;
  background-color: #f8fafc;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.xml-sync__slide.is-drop-target {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.xml-sync__slide-title {
  margin: 0 0 0.25rem 0;
}

.xml-sync__pdf-label {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: #52606d;
}

.xml-sync__page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 3rem;
}

.xml-sync__page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background-color: #ffffff;
  border: 1px solid #d9e2ec;
  font-size: 0.95rem;
  cursor: grab;
  gap: 0.75rem;
}

.xml-sync__page.is-dragging {
  opacity: 0.6;
}

.xml-sync__page-detail {
  font-size: 0.85rem;
  color: #52606d;
}

.xml-sync__page--placeholder {
  justify-content: center;
  border-style: dashed;
  cursor: default;
  color: #8898aa;
}

.xml-sync__page--placeholder::before {
  content: "";
}

.xml-sync__page--placeholder,
.xml-sync__page--placeholder:hover,
.xml-sync__page--placeholder:focus {
  background-color: transparent;
}

.xml-sync__empty {
  margin: 0;
  color: #52606d;
}

.video-generation__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-generation__export {
  border-top: 1px solid #d9e2ec;
  padding-top: 1.5rem;
}

.video-generation__empty {
  margin: 0;
  color: #52606d;
}

.video-generation__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-generation__timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: #f8fafc;
  border: 1px solid #d9e2ec;
  font-variant-numeric: tabular-nums;
}

.video-generation__timeline-label {
  font-weight: 600;
}

.video-generation__timeline-time {
  font-weight: 600;
}

.video-export {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-export__helper {
  margin: 0;
  color: #52606d;
}

.video-export__button {
  align-self: flex-start;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.video-export__button:hover:not(:disabled),
.video-export__button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  outline: none;
}

.video-export__button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}
