/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

.app-body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 0;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* --- Home (enhance) layout --- */
.enhance-app {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8f8fc;
}

.enhance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px clamp(12px, 3vw, 18px);
  border-bottom: 1px solid #e8e4f3;
  background: #fff;
}

.enhance-frame {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100dvh - 52px);
  min-height: calc(100vh - 52px);
}

@media (min-width: 768px) {
  .enhance-frame {
    grid-template-columns: 180px 1fr;
  }
}

.enhance-sidebar {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #ece7f8;
  padding: 12px clamp(12px, 3vw, 16px);
}

@media (min-width: 768px) {
  .enhance-sidebar {
    flex-direction: column;
    align-items: stretch;
    align-content: start;
    border-bottom: none;
    border-right: 1px solid #ece7f8;
  }
}

.enhance-sidebar a {
  white-space: nowrap;
  text-decoration: none;
  color: #6e34f8;
}

.enhance-sidebar a:hover {
  text-decoration: underline;
}

.enhance-content {
  padding: clamp(12px, 3vw, 18px);
  min-width: 0;
}

.enhance-cols {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 14px;
  gap: 14px;
  margin-top: 12px;
}

@media (min-width: 960px) {
  .enhance-cols {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 280px);
  }
}

.enhance-panel {
  background: #fff;
  border: 1px solid #ebe7f6;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.enhance-panel input[type="file"] {
  width: 100%;
  max-width: 100%;
  font-size: 13px;
}

.enhance-panel select {
  width: 100%;
  max-width: 100%;
}

.enhance-panel button {
  max-width: 100%;
}

.truncate-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

/* Before/after: avoid page scroll while dragging on touch devices */
.before-after-root {
  touch-action: none;
  max-width: 100%;
}

/* --- Shared secondary pages --- */
.page-main {
  padding: clamp(12px, 3vw, 18px);
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  align-items: center;
}

.site-nav a {
  color: #6e34f8;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  text-decoration: underline;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
  max-width: 100%;
}

.table-scroll table {
  min-width: 520px;
}

.pre-scroll {
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}

.pre-scroll pre {
  margin: 0;
  font-size: 12px;
}

/* --- Enhancement progress feedback --- */
.feedback-banner {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.feedback-banner--info {
  background: #f3efff;
  border: 1px solid #ddd3f4;
  color: #4a3d6b;
}

.feedback-banner--active {
  background: #ede8ff;
  border: 1px solid #c4b8e8;
  color: #3d2f8a;
}

.feedback-banner--success {
  background: #ecfdf3;
  border: 1px solid #b8e6c8;
  color: #1a5c36;
}

.feedback-banner--error {
  background: #fff0f4;
  border: 1px solid #f8c8d4;
  color: #ad2854;
}

.feedback-banner__title {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}

.feedback-banner__detail {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.progress-track {
  height: 8px;
  background: #e8e4f3;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6e34f8, #9b6dff);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-fill--indeterminate {
  width: 40% !important;
  animation: progress-indeterminate 1.2s ease-in-out infinite;
}

@keyframes progress-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e8e4f3;
  border-top-color: #6e34f8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(110, 52, 248, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  text-align: center;
}

.preview-overlay__label {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.preview-overlay__sub {
  color: #f8f4ff;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.file-ready-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #2d6a4a;
  background: #ecfdf3;
  border: 1px solid #b8e6c8;
  border-radius: 999px;
  padding: 4px 10px;
  width: -moz-fit-content;
  width: fit-content;
}

.timeline-pill {
  border: 1px solid #ddd3f4;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  white-space: nowrap;
}

.timeline-pill--done {
  background: #e8f5ee;
  border-color: #b8e6c8;
  color: #1a5c36;
}

.timeline-pill--current {
  background: #6e34f8;
  border-color: #6e34f8;
  color: #fff;
}

.timeline-pill--pending {
  background: #fff;
  color: #9f94bc;
}

