@import "tailwindcss";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-background: hsl(var(--background));
  --color-foreground: hsl(var(--foreground));
  --color-card: hsl(var(--card));
  --color-card-foreground: hsl(var(--card-foreground));
  --color-popover: hsl(var(--popover));
  --color-popover-foreground: hsl(var(--popover-foreground));
  --color-primary: hsl(var(--primary));
  --color-primary-foreground: hsl(var(--primary-foreground));
  --color-secondary: hsl(var(--secondary));
  --color-secondary-foreground: hsl(var(--secondary-foreground));
  --color-muted: hsl(var(--muted));
  --color-muted-foreground: hsl(var(--muted-foreground));
  --color-accent: hsl(var(--accent));
  --color-accent-foreground: hsl(var(--accent-foreground));
  --color-destructive: hsl(var(--destructive));
  --color-destructive-foreground: hsl(var(--destructive-foreground));
  --color-border: hsl(var(--border));
  --color-input: hsl(var(--input));
  --color-ring: hsl(var(--ring));
  --color-chart-1: hsl(var(--chart-1));
  --color-chart-2: hsl(var(--chart-2));
  --color-chart-3: hsl(var(--chart-3));
  --color-chart-4: hsl(var(--chart-4));
  --color-chart-5: hsl(var(--chart-5));
  --color-sidebar: hsl(var(--sidebar));
  --color-sidebar-foreground: hsl(var(--sidebar-foreground));
  --color-sidebar-primary: hsl(var(--sidebar-primary));
  --color-sidebar-primary-foreground: hsl(var(--sidebar-primary-foreground));
  --color-sidebar-accent: hsl(var(--sidebar-accent));
  --color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground));
  --color-sidebar-border: hsl(var(--sidebar-border));
  --color-sidebar-ring: hsl(var(--sidebar-ring));
}

/* LIGHT MODE - Default theme with placeholder values */
:root {
  --button-outline: rgba(0, 0, 0, .10);
  --badge-outline: rgba(0, 0, 0, .05);
  --opaque-button-border-intensity: -8;

  --elevate-1: rgba(0, 0, 0, .03);
  --elevate-2: rgba(0, 0, 0, .08);

  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --chart-1: 12 76% 61%;
  --chart-2: 173 58% 39%;
  --chart-3: 197 37% 24%;
  --chart-4: 43 74% 66%;
  --chart-5: 27 87% 67%;
  --sidebar: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 240 5.9% 10%;

  --font-sans: 'Inter', sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: Menlo, monospace;
  --radius: .5rem;
  --spacing: 0.25rem;
}

/* DARK MODE */
.dark {
  --button-outline: rgba(255, 255, 255, .10);
  --badge-outline: rgba(255, 255, 255, .05);
  --opaque-button-border-intensity: 9;

  --elevate-1: rgba(255, 255, 255, .04);
  --elevate-2: rgba(255, 255, 255, .09);

  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;
  --chart-1: 220 70% 50%;
  --chart-2: 160 60% 45%;
  --chart-3: 30 80% 55%;
  --chart-4: 280 65% 60%;
  --chart-5: 340 75% 55%;
  --sidebar: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-primary: 224.3 76.3% 48%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
  --sidebar-ring: 240 4.9% 83.9%;
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply font-sans antialiased bg-background text-foreground;
  }
}

@layer utilities {

  /* Hide ugly search cancel button in Chrome */
  input[type="search"]::-webkit-search-cancel-button {
    @apply hidden;
  }

  /* Placeholder styling for contentEditable div */
  [contenteditable][data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
  }
}

/* Shared PoolViz styles for PHP pages */
.pv-body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, sans-serif;
  background: #f5f3ee;
  color: #1a1a1a;
}

.pv-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

.pv-btn {
  font-family: Inter, sans-serif;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #111;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.pv-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.pv-btn-primary {
  border-color: #fdda18;
  background: #fdda18;
  color: #111;
  font-weight: 700;
}

.pv-btn-secondary {
  border-color: rgba(0, 0, 0, 0.14);
  background: #fff;
  color: #1a1a1a;
}

.pv-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.pv-input,
.pv-select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fafaf8;
  color: #111;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  box-sizing: border-box;
}

.pv-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.5 6.5 8 11l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: calc(100% - 1.15rem) center;
}

.pv-select::-ms-expand {
  display: none;
}

.pv-input:focus,
.pv-select:focus {
  border-color: #fdda18;
  outline: 2px solid rgba(253, 218, 24, 0.28);
  outline-offset: 1px;
}

.pv-field-label {
  display: block;
  margin-bottom: 0.4rem;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
}

.pv-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.05);
}

.pv-card-pad {
  padding: 1.35rem;
}

.pv-muted {
  color: #6b7280;
}

.pv-auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pv-auth-wrap {
  width: 100%;
  max-width: 440px;
}

.pv-auth-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  padding: 1.9rem;
}

.pv-auth-title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.pv-auth-subtitle {
  margin: 0.5rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.pv-auth-form {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pv-auth-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.pv-auth-links a {
  color: #374151;
  text-decoration: none;
}

.pv-auth-links a:hover {
  text-decoration: underline;
}

.pv-auth-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.86rem;
}

.pv-auth-back:hover {
  text-decoration: underline;
}

.pv-alert {
  border-radius: 11px;
  padding: 0.7rem 0.8rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.pv-alert-success {
  background: #dcfce7;
  color: #166534;
}

.pv-alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.pv-generator-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pv-generator-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pv-generator-title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1.3rem;
  line-height: 1.1;
  font-weight: 800;
}

.pv-generator-subtitle {
  margin: 0.3rem 0 0;
  color: #6b7280;
  font-size: 0.88rem;
  max-width: 760px;
}

.pv-generator-meta {
  margin-top: 0.3rem;
  color: #6b7280;
  font-size: 0.8rem;
}

.pv-generator-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.pv-logo {
  max-height: 36px;
  width: auto;
  margin-right: 0.8rem;
}

.pv-generator-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pv-generator-left {
  width: 100%;
  max-width: 370px;
  flex: 0 0 370px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pv-generator-right {
  flex: 1;
  min-width: 300px;
}

.pv-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
}

.pv-panel-title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
}

.pv-panel-copy {
  margin: 0.35rem 0 0;
  color: #6b7280;
  font-size: 0.84rem;
}

.pv-upload-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.pv-upload-zone {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 2px dashed rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pv-upload-zone.is-dragover {
  border-color: #f2c700;
  background: rgba(253, 218, 24, 0.1);
}

.pv-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-upload-overlay {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  text-align: center;
}

.pv-upload-zone.has-image .pv-upload-overlay {
  /* keep overlay controls visible but do not dim the uploaded image */
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  background: transparent;
}

.pv-upload-zone.has-image .pv-btn {
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 8px;
  min-height: 34px;
}

.pv-upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pv-upload-title {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.pv-upload-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.pv-upload-zone.has-image .pv-upload-icon,
.pv-upload-zone.has-image .pv-upload-copy {
  display: none;
}

.pv-upload-replace-hint {
  margin: 0;
  display: none;
  color: #f9fafb;
  font-size: 0.85rem;
  font-weight: 600;
}

.pv-upload-zone.has-image .pv-upload-replace-hint {
  display: block;
}

.pv-upload-status {
  margin: 0;
  color: #6b7280;
  font-size: 0.84rem;
}

.pv-generate-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 0.94rem;
}

.pv-settings-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pv-preview-box {
  min-height: 640px;
}

.pv-preview-empty {
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7280;
  padding: 2rem;
}

.pv-loading-state {
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-loading-center {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.2rem 1rem;
}

.pv-loading-spinner {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 6px solid rgba(0, 0, 0, 0.06);
  border-top-color: #fdda18;
  animation: pv-spin 0.9s linear infinite;
  box-sizing: border-box;
}

.pv-loading-steps {
  margin-top: 1.35rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pv-step-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pv-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.06);
  color: #9ca3af;
}

.pv-step-circle.active {
  background: rgba(253, 218, 24, 0.2);
  color: #1a1a1a;
}

.pv-step-circle.done {
  background: rgba(253, 218, 24, 0.25);
  color: #8f7400;
}

.pv-step-text {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.92rem;
}

.pv-slider-wrap {
  margin-top: 1rem;
  position: relative;
}

.pv-slider-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  column-gap: 1rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.pv-slider-left {
  width: 100%;
  min-width: 0;
}

.pv-slider-right {
  width: 240px;
  max-width: 240px;
}

.pv-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0ea;
  min-height: 420px;
  touch-action: none;
  margin-bottom: 1rem;
}

.pv-slider>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.pv-overlay-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--clip, 50%)) 0 0);
  overflow: hidden;
}

.pv-overlay-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.pv-overlay-tint {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
}

.pv-variant-0 .pv-overlay-tint {
  background: linear-gradient(135deg, #dbeafe 0%, #7dd3fc 100%);
}

.pv-variant-1 .pv-overlay-tint {
  background: linear-gradient(135deg, #ccfbf1 0%, #60a5fa 100%);
}

.pv-variant-2 .pv-overlay-tint {
  background: linear-gradient(135deg, #e0f2fe 0%, #c7b3f8 100%);
}

.pv-overlay-top span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.pv-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--clip, 50%);
  width: 2px;
  transform: translateX(-1px);
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.pv-handle-knob {
  position: absolute;
  top: 50%;
  left: var(--clip, 50%);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  color: #374151;
  font-size: 0.95rem;
  font-weight: 700;
  user-select: none;
}

.pv-slider-footer {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.pv-slider-footer-title {
  margin: 1rem 0 0.4rem;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 700;
}

.pv-variants {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pv-variant-thumb {
  position: relative;
  width: 128px;
  height: 96px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-sizing: border-box;
}

.pv-variant-thumb.selected {
  border: 3px solid #fdda18;
  box-shadow: 0 6px 18px rgba(253, 218, 24, 0.12);
}

.pv-variant-thumb.selected::after {
  content: '✔';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fdda18;
  color: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
}

@media (max-width: 640px) {
  .pv-variant-thumb.selected::after {
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}

.pv-variant-thumb-0 {
  background: linear-gradient(135deg, #dbeafe 0%, #7dd3fc 100%);
}

.pv-variant-thumb-1 {
  background: linear-gradient(135deg, #ccfbf1 0%, #60a5fa 100%);
}

.pv-variant-thumb-2 {
  background: linear-gradient(135deg, #e0f2fe 0%, #c7b3f8 100%);
}

.pv-info-panel {
  position: static;
  /* width: 230px; */
  margin-top: 0.85rem;
  margin-left: auto;
  background: #f5f3ee;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
}

.pv-info-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pv-info-download {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
}

.pv-btn-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.pv-preview-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pv-image-frame {
  position: relative;
  min-height: 260px;
  border-radius: 14px;
  border: 2px dashed rgba(0, 0, 0, 0.13);
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7280;
  overflow: hidden;
}

.pv-image-frame img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.pv-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.pv-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pv-preview-title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
}

.pv-preview-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pv-loading {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #6b7280;
  font-size: 0.88rem;
}

.pv-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #111;
  border-radius: 999px;
  animation: pv-spin 0.8s linear infinite;
}

.pv-debug {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.hidden {
  display: none !important;
}

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

@media (max-width: 1024px) {
  .pv-generator-left {
    max-width: none;
    flex: 1 1 100%;
  }

  .pv-slider {
    min-height: 360px;
  }

  .pv-info-panel {
    width: 210px;
  }
}

@media (max-width: 640px) {

  .pv-generator-header-inner,
  .pv-generator-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pv-auth-card {
    padding: 1.35rem;
  }

  .pv-logo {
    margin-right: 0.25rem;
  }

  .pv-preview-empty,
  .pv-loading-state {
    min-height: 420px;
  }

  .pv-slider {
    min-height: 280px;
  }

  .pv-upload-zone,
  .pv-upload-overlay {
    min-height: 185px;
  }

  .pv-preview-actions {
    width: 100%;
  }

  .pv-preview-actions .pv-btn {
    flex: 1 1 100%;
  }

  .pv-variant-thumb {
    width: 56px;
    height: 42px;
  }

  .pv-info-panel {
    position: static;
    width: 100%;
    margin-top: 0.8rem;
  }

  .pv-slider-bottom {
    flex-direction: column;
  }
}