.mv-standalone-body {
  --mv-current-prompt-code-height: clamp(220px, 32vh, 340px);
  --mv-project-prompt-code-height: 180px;
  --mv-range-prompt-code-height: 168px;
  background: #ffffff;
  color: #111827;
  margin: 0;
}

.mv-standalone-body [hidden] {
  display: none !important;
}

.mv-page-shell {
  margin: 0 auto;
  max-width: none;
  min-height: 100vh;
  padding: 14px 18px 28px;
  width: 100%;
}

.mv-lock-screen {
  align-items: center;
  background: #ffffff;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.mv-lock-card {
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 440px;
  padding: 28px;
  width: min(100%, 440px);
}

.mv-sunofox-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.mv-lock-logo {
  justify-self: center;
  width: 92px;
}

.mv-lock-brand {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.mv-lock-card h1 {
  color: #0f172a;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.mv-lock-card p,
.mv-lock-card a {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.mv-lock-card a {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mv-lock-field {
  display: grid;
  gap: 8px;
}

.mv-lock-field span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mv-lock-field input {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  color: #0f172a;
  font: inherit;
  min-height: 48px;
  outline: none;
  padding: 0 14px;
}

.mv-lock-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mv-lock-submit {
  background: #111827;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 50px;
}

.mv-lock-keypad {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mv-lock-keypad button {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  min-height: 48px;
}

.mv-lock-keypad button:hover {
  background: #eef4ff;
  border-color: #b9cdf8;
  color: #1d4ed8;
}

.mv-lock-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  color: #be123c;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.mv-topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mv-brand,
.mv-top-actions a {
  align-items: center;
  color: #111827;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.mv-sunofox-brand {
  letter-spacing: 0;
}

.mv-text-brand span {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.mv-text-brand strong {
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.mv-brand-mark {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.mv-top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.mv-section-nav {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin-bottom: 12px;
  padding: 6px;
}

.mv-section-nav a,
.mv-section-slot {
  border-radius: 10px;
  color: #475569;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.mv-section-nav a:hover {
  background: #f8fafc;
  color: #111827;
}

.mv-section-nav a.active {
  background: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  color: #ffffff;
}

.mv-section-nav strong,
.mv-section-nav a span,
.mv-section-slot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-section-nav strong {
  font-size: 13px;
  font-weight: 900;
}

.mv-section-nav a span,
.mv-section-slot span {
  color: inherit;
  font-size: 11px;
  opacity: 0.72;
}

.mv-section-slot {
  display: none;
}

.mv-category-home {
  align-items: center;
  display: grid;
  justify-items: center;
  margin: 0;
  min-height: calc(100vh - 130px);
  padding: clamp(44px, 10vh, 96px) 16px;
}

.mv-home-center {
  align-items: center;
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 760px;
  text-align: center;
  width: 100%;
}

.mv-home-logo-image {
  margin-bottom: 6px;
  width: clamp(76px, 12vw, 126px);
}

.mv-home-logo {
  color: #111827;
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.mv-home-center p {
  color: #475569;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 0;
}

.mv-home-center .mv-home-creator {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}

.mv-home-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.mv-home-primary,
.mv-home-secondary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  min-width: 136px;
  padding: 0 18px;
  text-decoration: none;
}

.mv-home-primary {
  background: #111827;
  color: #ffffff;
}

.mv-home-secondary {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  color: #111827;
}

.mv-gpts-links {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  max-width: 760px;
  width: 100%;
}

.mv-gpts-links a {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  color: #111827;
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 14px;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.mv-gpts-links a:hover {
  border-color: #b7c5d8;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.mv-gpts-links strong {
  font-size: 15px;
  font-weight: 950;
}

.mv-gpts-links span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.mv-gpts-primary-link {
  justify-content: center;
  width: 100%;
}

.mv-import-studio,
.mv-help-studio {
  display: grid;
  gap: 16px;
}

.mv-import-hero {
  align-items: end;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 34px);
}

.mv-import-hero h2 {
  color: #111827;
  font-size: clamp(30px, 5vw, 62px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 10px 0 0;
}

.mv-import-hero p {
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 780px;
}

.mv-import-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-areas: "options compose";
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
}

.mv-import-compose {
  grid-area: compose;
  min-height: calc(100vh - 286px);
}

.mv-import-compose .mv-gpt-markdown-input {
  min-height: clamp(480px, 58vh, 720px) !important;
}

.mv-import-side {
  display: grid;
  gap: 16px;
  grid-area: options;
  min-width: 0;
  position: sticky;
  top: 14px;
}

.mv-import-checklist ol {
  color: #475569;
  display: grid;
  gap: 8px;
  line-height: 1.55;
  margin: 0;
  padding-left: 20px;
}

.mv-help-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.mv-help-card:first-child {
  grid-row: span 2;
}

.mv-help-steps,
.mv-help-list {
  color: #334155;
  display: grid;
  gap: 10px;
  line-height: 1.55;
  margin: 0;
}

.mv-help-steps {
  counter-reset: mv-help-step;
  list-style: none;
  padding: 0;
}

.mv-help-steps li {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 11px 12px;
}

.mv-help-steps li::before {
  align-items: center;
  background: #111827;
  border-radius: 999px;
  color: #ffffff;
  content: counter(mv-help-step);
  counter-increment: mv-help-step;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  margin-top: 1px;
  width: 24px;
}

.mv-help-list {
  list-style: none;
  padding: 0;
}

.mv-help-list li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.mv-help-list strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.mv-help-list span {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.mv-category-head {
  align-items: end;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.mv-category-head h2 {
  color: #111827;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.12;
  margin: 0;
}

.mv-category-head p {
  color: #475569;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 760px;
}

.mv-category-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(130px, 1fr));
}

.mv-category-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  color: #111827;
  display: grid;
  gap: 8px;
  min-height: 124px;
  min-width: 0;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.mv-category-card:hover {
  border-color: #b7c5d8;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.mv-category-card.primary {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.mv-category-card.muted,
.mv-category-card.empty {
  background: #f8fafc;
  border-style: dashed;
  color: #64748b;
  min-height: 72px;
}

.mv-category-card.empty {
  cursor: default;
}

.mv-category-card.empty:hover {
  border-color: #cbd5e1;
  box-shadow: none;
  transform: none;
}

.mv-category-card > span {
  align-items: center;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  color: #2563eb;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 44px;
}

.mv-category-card.primary > span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.mv-category-card.empty > span {
  background: transparent;
  color: #94a3b8;
  height: auto;
  justify-content: flex-start;
  width: auto;
}

.mv-category-card strong {
  font-size: 17px;
  line-height: 1.2;
}

.mv-category-card p {
  color: inherit;
  line-height: 1.55;
  margin: 0;
  opacity: 0.76;
}

.mv-category-card.empty p {
  display: none;
}

.mv-route-highlight {
  animation: mv-route-highlight 0.9s ease;
}

@keyframes mv-route-highlight {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
  25% {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.mv-version,
.mv-creator,
.mv-top-actions a {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  padding: 8px 12px;
}

.mv-creator {
  color: #111827;
  font-weight: 800;
  white-space: nowrap;
}

.mv-storyboard-view {
  color: #111827;
}

.mv-storyboard-view .mv-hero {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: none;
  color: #111827;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  padding: 14px 16px;
}

.mv-storyboard-view .mv-hero .mv-page-kicker,
.mv-storyboard-view .mv-hero .subtitle {
  display: none;
}

.mv-storyboard-view .mv-hero .glitch-title {
  color: #111827;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  margin: 0;
}

.mv-storyboard-view .mv-hero .desc {
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-width: 920px;
}

.mv-storyboard-view.is-home-route .mv-hero,
.mv-storyboard-view.is-import-route .mv-hero,
.mv-storyboard-view.is-help-route .mv-hero {
  display: none;
}

.mv-page-kicker {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 14px;
  padding: 7px 12px;
}

.mv-studio {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  margin-top: 14px;
}

.mv-panel {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  box-shadow: none;
  min-width: 0;
}

.mv-input {
  align-self: start;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 14px;
  position: sticky;
  top: 12px;
}

.mv-workflow-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mv-studio.is-workflow-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.mv-studio.is-workflow-collapsed .mv-input {
  max-height: none;
  overflow: visible;
  padding: 10px;
}

.mv-studio.is-workflow-collapsed .mv-workflow-body,
.mv-studio.is-workflow-collapsed .mv-panel-head > div:first-child,
.mv-studio.is-workflow-collapsed .mv-head-actions .mv-ghost-btn:not(.mv-workflow-toggle) {
  display: none;
}

.mv-studio.is-workflow-collapsed .mv-panel-head {
  justify-content: center;
}

.mv-studio.is-workflow-collapsed .mv-head-actions {
  display: block;
}

.mv-studio.is-workflow-collapsed .mv-workflow-toggle {
  min-height: 88px;
  padding: 10px 8px;
  text-orientation: mixed;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.mv-panel-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.mv-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mv-workflow-toggle {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.mv-panel-head span,
.mv-field span,
.mv-option-box h3,
.mv-costume-box h3,
.mv-advanced-options summary span,
.mv-collapsible summary span,
.mv-kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.mv-panel-head h2 {
  color: #0f172a;
  font-size: 20px;
  margin: 3px 0 0;
}

.mv-simple-guide {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0;
}

.mv-simple-guide summary,
.mv-import-options summary,
.mv-bridge-install summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  min-width: 0;
  padding: 12px;
}

.mv-simple-guide summary::-webkit-details-marker,
.mv-import-options summary::-webkit-details-marker,
.mv-bridge-install summary::-webkit-details-marker {
  display: none;
}

.mv-simple-guide summary::after,
.mv-import-options summary::after,
.mv-bridge-install summary::after {
  color: #94a3b8;
  content: "열기";
  font-size: 11px;
  font-weight: 900;
}

.mv-simple-guide[open] summary::after,
.mv-import-options[open] summary::after,
.mv-bridge-install[open] summary::after {
  content: "접기";
}

.mv-simple-guide strong,
.mv-import-options strong,
.mv-bridge-install summary strong {
  color: #0f172a;
  font-size: 14px;
}

.mv-simple-guide small,
.mv-import-options small,
.mv-bridge-install summary small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mv-simple-guide ol {
  color: #475569;
  display: grid;
  gap: 6px;
  line-height: 1.5;
  margin: 0;
  padding-bottom: 12px;
  padding-left: 18px;
  padding-right: 12px;
}

.mv-bridge-install {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 0;
}

.mv-bridge-install strong {
  color: #0f172a;
  display: block;
  font-size: 15px;
  margin-top: 3px;
}

.mv-bridge-install p {
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  padding: 0 12px;
}

.mv-bridge-install a,
.mv-bridge-side a {
  text-decoration: none;
}

.mv-bridge-install > .mv-small-btn {
  margin: 0 12px;
}

.mv-bridge-install ol {
  color: #475569;
  display: grid;
  gap: 6px;
  line-height: 1.45;
  margin: 0;
  padding-bottom: 12px;
  padding-left: 18px;
  padding-right: 12px;
}

.mv-bridge-install code {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  color: #0f172a;
  font-size: 12px;
  padding: 1px 5px;
}

.mv-studio.is-basic .mv-advanced-only,
.mv-studio.is-basic [data-advanced-tab] {
  display: none !important;
}

.mv-studio.is-advanced .mv-simple-guide {
  display: none;
}

.mv-input.is-loading {
  pointer-events: none;
}

.mv-input.is-loading .mv-generate-btn {
  opacity: 0.75;
}

.mv-ghost-btn,
.mv-toolbar-actions button,
.mv-toolbar-actions a,
.mv-input-meta button,
.mv-chip-grid button,
.mv-small-btn,
.mv-status-row button,
.mv-file-btn,
.mv-remove-file {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.mv-ghost-btn:hover,
.mv-toolbar-actions button:hover:not(:disabled),
.mv-toolbar-actions a:hover,
.mv-input-meta button:hover,
.mv-chip-grid button:hover,
.mv-small-btn:hover,
.mv-status-row button:hover,
.mv-file-btn:hover,
.mv-remove-file:hover {
  background: #eef4ff;
  border-color: #b9cdf8;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.mv-toolbar-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.mv-small-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none !important;
}

.mv-storage-state {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: flex-end;
  line-height: 1.4;
  margin: 0 16px 12px;
  min-height: 34px;
  padding: 8px 12px;
  text-align: right;
}

.mv-storage-state.is-saved {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #047857;
}

.mv-storage-row {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 16px 12px;
}

.mv-storage-row .mv-storage-state {
  justify-content: flex-start;
  margin: 0;
  text-align: left;
}

.mv-template-box {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.mv-workflow-card,
.mv-local-compose,
.mv-tools-drawer {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mv-workflow-card {
  border-color: #bfdbfe;
  box-shadow: none;
}

.mv-import-options {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: block;
  min-width: 0;
}

.mv-import-options-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.mv-flow-title {
  display: grid;
  gap: 6px;
}

.mv-flow-title strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.mv-flow-title span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.mv-workflow-steps {
  counter-reset: mv-step;
  display: none;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mv-workflow-steps li {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #334155;
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-width: 0;
  padding: 8px 10px;
}

.mv-workflow-steps li::before {
  align-items: center;
  background: #2563eb;
  border-radius: 999px;
  color: #ffffff;
  content: counter(mv-step);
  counter-increment: mv-step;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.mv-default-mode-row {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1d4ed8;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  padding: 10px 12px;
}

.mv-default-mode-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.mv-default-mode-row strong {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 950;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-tools-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  min-width: 0;
}

.mv-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mv-field input,
.mv-field textarea,
.mv-field select,
.mv-costume-note {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  color: #0f172a;
  font: inherit;
  min-width: 0;
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

.mv-field textarea {
  min-height: 96px;
  resize: vertical;
}

.mv-anchor-input {
  min-height: 74px !important;
}

.mv-style-input {
  min-height: 78px !important;
}

.mv-lyrics-field textarea {
  min-height: 180px;
}

.mv-gpt-markdown-input {
  min-height: 220px !important;
}

.mv-field input:focus,
.mv-field textarea:focus,
.mv-field select:focus,
.mv-costume-note:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mv-input-meta {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

.mv-option-box,
.mv-costume-box,
.mv-paste-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mv-option-box h3,
.mv-costume-box h3 {
  margin: 0;
}

.mv-option-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.mv-option-primary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mv-option-primary-grid .mv-field:first-child {
  grid-column: 1 / -1;
}

.mv-advanced-options,
.mv-collapsible {
  min-width: 0;
}

.mv-advanced-options {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 10px;
}

.mv-advanced-options[open] {
  background: #ffffff;
}

.mv-advanced-options summary,
.mv-collapsible summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  list-style: none;
  min-width: 0;
}

.mv-advanced-options summary::-webkit-details-marker,
.mv-collapsible summary::-webkit-details-marker {
  display: none;
}

.mv-advanced-options summary span,
.mv-collapsible summary span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-advanced-options summary small,
.mv-collapsible summary small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-advanced-options summary::after,
.mv-collapsible summary::after {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  color: #475569;
  content: "열기";
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
}

.mv-advanced-options[open] summary::after,
.mv-collapsible[open] summary::after {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  content: "접기";
}

.mv-advanced-options .mv-option-grid {
  margin-top: 2px;
}

.mv-reference-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.mv-switch-row {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #0f172a;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.mv-switch-row input {
  accent-color: #2563eb;
  flex: 0 0 auto;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.mv-switch-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mv-switch-row strong {
  font-size: 13px;
  font-weight: 900;
}

.mv-switch-row small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.mv-consistency-fields {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.mv-consistency-fields.is-disabled {
  opacity: 0.45;
}

.mv-consistency-fields.is-disabled input,
.mv-consistency-fields.is-disabled textarea {
  pointer-events: none;
}

.mv-preset-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mv-preset-name-field {
  grid-column: 1 / -1;
}

.mv-preset-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mv-paste-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mv-primary-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mv-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mv-chip-grid button.active,
.mv-status-row button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.mv-costume-note {
  margin-top: 2px;
}

.mv-generate-btn {
  background: #111827;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 52px;
  width: 100%;
}

.mv-generate-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.mv-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  color: #be123c;
  font-size: 13px;
  line-height: 1.5;
  padding: 11px 12px;
}

.mv-output {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 300px);
  overflow: hidden;
}

.mv-toolbar {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.mv-tabs {
  background: #f1f5f9;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
}

.mv-tabs button {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 0 10px;
}

.mv-tabs button.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.09);
}

.mv-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mv-toolbar-actions a {
  text-decoration: none;
}

.mv-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 24px;
  text-align: center;
}

.mv-empty strong {
  color: #0f172a;
  font-size: 24px;
  margin-bottom: 8px;
}

.mv-result {
  flex: 1;
  min-height: 0;
}

.mv-result-scroll {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 360px);
  min-height: calc(100vh - 360px);
  overflow: auto;
  padding: 14px;
}

.mv-project-prompts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mv-project-prompts article,
.mv-gallery-summary,
.mv-source-banner {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  min-width: 0;
  padding: 14px;
}

.mv-project-prompts code {
  background: #0f172a;
  border-radius: 12px;
  box-sizing: border-box;
  color: #e5eefb;
  display: block;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  height: var(--mv-project-prompt-code-height);
  line-height: 1.58;
  margin: 10px 0;
  overflow: auto;
  padding: 12px;
  scrollbar-gutter: stable;
  white-space: pre-wrap;
  word-break: break-word;
}

.mv-range-copy {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mv-gallery-summary-actions {
  align-items: stretch;
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: min(360px, 100%);
}

.mv-bulk-drop-zone {
  background: #eff6ff;
  border-color: #93b4fb;
  box-sizing: border-box;
  color: #1d4ed8;
}

.mv-drop-zone.mv-bulk-drop-zone {
  aspect-ratio: auto;
  min-height: 96px;
  padding: 14px;
}

.mv-bulk-drop-zone input {
  display: none;
}

.mv-bulk-drop-zone span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 4px;
}

.mv-source-banner {
  align-items: center;
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: space-between;
}

.mv-source-banner strong {
  color: #0f172a;
  display: block;
  margin-top: 3px;
}

.mv-source-banner p {
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  text-align: right;
}

.mv-source-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 6px 10px;
}

.mv-source-badge.gpt {
  background: #dcfce7;
  color: #047857;
}

.mv-source-badge.local {
  background: #e2e8f0;
  color: #475569;
}

.mv-concept-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mv-card,
.mv-phase,
.mv-prompt-row,
.mv-cut-detail,
.mv-assist-panel,
.mv-file-panel {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  min-width: 0;
}

.mv-card {
  padding: 16px;
}

.mv-card p,
.mv-phase p,
.mv-cut-detail p,
.mv-tip {
  color: #334155;
  line-height: 1.65;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.mv-phase {
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 16px;
}

.mv-phase-num {
  align-items: center;
  background: #eff6ff;
  border-radius: 12px;
  color: #2563eb;
  display: grid;
  font-weight: 900;
  height: 44px;
  place-items: center;
  width: 44px;
}

.mv-storyboard-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 620px;
  padding: 16px;
}

.mv-cut-rail {
  align-content: start;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, 1fr);
  max-height: calc(100vh - 400px);
  overflow: auto;
}

.mv-cut-rail button {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
}

.mv-cut-rail button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.mv-cut-detail {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.mv-cut-detail header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.mv-cut-detail header span {
  color: #2563eb;
  font-weight: 900;
}

.mv-cut-detail h2 {
  color: #0f172a;
  font-size: 28px;
  margin: 6px 0 0;
}

.mv-storyboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mv-two-column {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mv-two-column > div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.mv-prompt-row {
  padding: 14px;
}

.mv-prompt-row code,
.mv-current-prompt code {
  background: #0f172a;
  border-radius: 12px;
  box-sizing: border-box;
  color: #e5eefb;
  display: block;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.58;
  margin-top: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  scrollbar-gutter: stable;
  white-space: pre-wrap;
  word-break: break-word;
}

.mv-prompt-row code {
  height: var(--mv-range-prompt-code-height);
}

.mv-current-prompt code {
  height: var(--mv-current-prompt-code-height);
}

.mv-assist-board {
  display: grid;
  gap: 0;
  grid-template-columns: 250px minmax(360px, 520px) minmax(420px, 1fr);
  grid-auto-rows: max-content;
  min-height: calc(100vh - 360px);
}

.mv-studio.is-basic .mv-assist-board {
  grid-template-columns: 240px minmax(420px, 560px) minmax(360px, 1fr);
}

.mv-studio.is-basic .mv-current-prompt code {
  min-height: 220px;
}

.mv-progress-card {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 16px;
}

.mv-progress-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.mv-progress-top strong {
  color: #0f172a;
  display: block;
  font-size: 18px;
  margin-top: 2px;
}

.mv-progress-top em {
  background: #111827;
  border-radius: 999px;
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
  padding: 7px 11px;
}

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

.mv-progress-track span {
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  display: block;
  height: 100%;
}

.mv-checklist,
.mv-basic-flow,
.mv-flow-timeline,
.mv-board-chips,
.mv-cut-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mv-checklist span,
.mv-basic-flow span,
.mv-board-chips span,
.mv-cut-badges b {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.mv-checklist span.done,
.mv-basic-flow span.done,
.mv-board-chips span.active,
.mv-cut-badges b {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.mv-board-chips span.warn,
.mv-cut-badges b.warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.mv-basic-progress {
  gap: 14px;
}

.mv-studio.is-basic .mv-flow-timeline {
  display: none;
}

.mv-flow-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mv-flow-timeline button {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  text-align: left;
}

.mv-flow-timeline button.active {
  background: #eff6ff;
  border-color: #93b4fb;
}

.mv-flow-timeline span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.mv-assist-panel,
.mv-file-panel {
  align-content: start;
  border-radius: 0;
  border-width: 0 1px 0 0;
  display: grid;
  gap: 14px;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.mv-file-panel {
  border-right: 0;
}

.mv-cut-search {
  display: grid;
  gap: 8px;
}

.mv-cut-search input {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 10px;
}

.mv-cut-list {
  display: grid;
  gap: 8px;
}

.mv-status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mv-status-filter button {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  min-height: 28px;
  padding: 0 10px;
}

.mv-status-filter button.active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.mv-inline-empty {
  flex: none;
  min-height: 120px;
  padding: 14px;
}

.mv-cut-list button {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 50px;
  padding: 0 10px;
}

.mv-cut-list .mv-cut-badges {
  grid-column: 2 / -1;
  margin-top: -4px;
}

.mv-cut-list button.active {
  background: #eff6ff;
  border-color: #93b4fb;
}

.mv-cut-list strong {
  color: #2563eb;
}

.mv-cut-list span {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-status {
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 9px;
}

.mv-status.queued {
  background: #e2e8f0;
  color: #475569;
}

.mv-status.copied {
  background: #dbeafe;
  color: #1d4ed8;
}

.mv-status.generated {
  background: #fef3c7;
  color: #b45309;
}

.mv-status.saved {
  background: #dcfce7;
  color: #15803d;
}

.mv-current-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.mv-heading-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mv-current-heading strong {
  color: #0f172a;
  font-size: 20px;
}

.mv-prompt-toggle {
  background: #f1f5f9;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
}

.mv-prompt-toggle button {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
}

.mv-prompt-toggle button.active {
  background: #ffffff;
  color: #111827;
}

.mv-current-prompt,
.mv-filename-box,
.mv-tip,
.mv-bridge-card,
.mv-grok-gate,
.mv-quality-card,
.mv-variant-card,
.mv-cut-management,
.mv-candidate-board,
.mv-simple-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.mv-simple-card {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
}

.mv-simple-card strong {
  color: #0f172a;
  display: block;
  font-size: 18px;
  margin-top: 3px;
}

.mv-simple-card p {
  color: #64748b;
  line-height: 1.55;
  margin: 6px 0 0;
}

.mv-simple-shortcuts {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.mv-simple-shortcuts span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.mv-simple-shortcuts b {
  color: #0f172a;
  font-size: 12px;
}

.mv-bridge-card {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.mv-grok-gate {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
}

.mv-grok-gate.ready {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.mv-grok-gate.completed {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.mv-grok-gate.locked {
  background: #fff7ed;
  border-color: #fed7aa;
}

.mv-grok-gate-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.mv-grok-gate-main strong {
  color: #0f172a;
  font-size: 16px;
}

.mv-grok-gate-main p,
.mv-grok-gate-side span {
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.mv-grok-test-note {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
}

.mv-grok-gate-side {
  display: grid;
  gap: 8px;
}

.mv-grok-gate-side b {
  color: #0f172a;
  font-size: 14px;
}

.mv-grok-complete {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  color: #3730a3 !important;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-align: center;
}

.mv-grok-gate-side button:disabled,
.mv-prompt-toggle button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.mv-bridge-card strong,
.mv-variant-card strong,
.mv-quality-card strong {
  color: #0f172a;
}

.mv-bridge-card p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.mv-bridge-card.ok {
  border-color: #bbf7d0;
}

.mv-bridge-card.outdated,
.mv-bridge-card.error {
  border-color: #fecdd3;
}

.mv-bridge-card.missing {
  border-color: #fed7aa;
}

.mv-bridge-side {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.mv-bridge-side span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  max-width: 220px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-quality-card,
.mv-variant-card {
  display: grid;
  gap: 10px;
}

.mv-quality-card.ok {
  border-color: #bbf7d0;
}

.mv-quality-card.warn {
  border-color: #fde68a;
}

.mv-quality-card.error {
  border-color: #fecdd3;
}

.mv-quality-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mv-quality-head em {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  color: #0f172a;
  font-style: normal;
  font-weight: 900;
  padding: 6px 10px;
}

.mv-quality-card ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mv-quality-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mv-quality-card li {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.mv-quality-card li.error {
  border-color: #fecdd3;
}

.mv-quality-card li.warn {
  border-color: #fde68a;
}

.mv-quality-card li.ok {
  border-color: #bbf7d0;
}

.mv-quality-card li span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.mv-variant-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mv-variant-grid article {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
}

.mv-variant-grid span {
  align-self: center;
  color: #0f172a;
  font-weight: 900;
  grid-column: 1 / -1;
}

.mv-candidate-board {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
}

.mv-cut-management {
  display: grid;
  gap: 12px;
}

.mv-management-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.mv-note-field,
.mv-mark-groups {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mv-note-field textarea {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  color: #0f172a;
  font: inherit;
  line-height: 1.55;
  min-height: 84px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.mv-toggle-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mv-toggle-grid button,
.mv-history-item {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 8px 10px;
}

.mv-toggle-grid button.active {
  background: #eff6ff;
  border-color: #93b4fb;
  color: #1d4ed8;
}

.mv-toggle-grid.warning button.active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.mv-history-box {
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.mv-history-box p {
  color: #64748b;
  font-size: 12px;
  margin: 0;
}

.mv-history-item {
  align-items: center;
  display: flex;
  justify-content: space-between;
  text-align: left;
}

.mv-history-item span {
  color: #64748b;
  font-size: 11px;
}

.mv-copy-next,
.mv-send-midjourney {
  background: #2563eb;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  margin-top: 10px;
  min-height: 42px;
  width: 100%;
}

.mv-send-midjourney {
  background: #111827;
}

.mv-secondary-actions,
.mv-status-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.mv-batch-btn {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.mv-status-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mv-project-mini {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.mv-project-mini .mv-kicker {
  grid-column: 1 / -1;
}

.mv-filename-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 9px;
}

.mv-filename-row strong {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  overflow: hidden;
  padding: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-drop-zone {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 16px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.mv-drop-zone input,
.mv-file-btn input {
  display: none;
}

.mv-drop-zone strong {
  color: #0f172a;
}

.mv-candidate-drop-zone {
  aspect-ratio: auto;
  min-height: 132px;
  padding: 18px;
}

.mv-candidate-drop-zone strong {
  font-size: 18px;
  font-weight: 950;
}

.mv-file-panel .mv-empty {
  min-height: 160px;
}

.mv-attached-card {
  display: grid;
  gap: 10px;
}

.mv-attached-card img {
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
}

.mv-attached-meta {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.mv-attached-meta strong,
.mv-attached-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-attached-meta span {
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

.mv-gallery-summary {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.mv-gallery-summary strong {
  color: #0f172a;
  display: block;
  font-size: 30px;
  margin-top: 4px;
}

.mv-gallery-summary p {
  color: #64748b;
  line-height: 1.5;
  margin: 4px 0 0;
}

.mv-gallery-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mv-gallery-metrics span {
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.mv-gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.mv-gallery-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
}

.mv-gallery-card header,
.mv-gallery-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.mv-gallery-card header strong {
  color: #0f172a;
}

.mv-gallery-drop {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  color: #64748b;
  cursor: pointer;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  place-items: center;
  text-align: center;
}

.mv-gallery-drop input {
  display: none;
}

.mv-gallery-drop img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mv-gallery-card p {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  min-height: 34px;
  overflow: hidden;
}

.mv-gallery-actions .mv-small-btn.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.mv-gallery-actions .mv-small-btn.danger,
.mv-gallery-actions .mv-small-btn.active.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.mv-remove-file {
  color: #be123c;
}

.mv-toast {
  background: #111827;
  border-radius: 12px;
  bottom: 22px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  left: 50%;
  padding: 11px 14px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 9999;
}

@media (max-width: 1180px) {
  .mv-standalone-body {
    --mv-current-prompt-code-height: 240px;
    --mv-project-prompt-code-height: 160px;
    --mv-range-prompt-code-height: 150px;
  }

  .mv-page-shell {
    padding: 12px 10px 34px;
  }

  .mv-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mv-import-grid {
    grid-template-areas:
      "options"
      "compose";
    grid-template-columns: 1fr;
  }

  .mv-help-grid {
    grid-template-columns: 1fr;
  }

  .mv-help-card:first-child {
    grid-row: auto;
  }

  .mv-import-side {
    position: static;
  }

  .mv-storyboard-view .mv-hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .mv-studio,
  .mv-assist-board,
  .mv-studio.is-basic .mv-assist-board,
  .mv-flow-timeline,
  .mv-project-prompts,
  .mv-grok-gate,
  .mv-bridge-card {
    grid-template-columns: 1fr;
  }

  .mv-input {
    max-height: none;
    position: static;
  }

  .mv-studio.is-workflow-collapsed {
    grid-template-columns: 1fr;
  }

  .mv-studio.is-workflow-collapsed .mv-panel-head {
    justify-content: flex-start;
  }

  .mv-studio.is-workflow-collapsed .mv-workflow-toggle {
    min-height: 0;
    width: 100%;
    writing-mode: horizontal-tb;
  }

  .mv-output {
    min-height: auto;
  }

  .mv-result-scroll,
  .mv-assist-board {
    max-height: none;
    min-height: auto;
  }

  .mv-assist-panel,
  .mv-file-panel {
    border-right: 0;
    border-top: 1px solid #e2e8f0;
  }

  .mv-bridge-side {
    align-items: stretch;
    justify-items: stretch;
  }

  .mv-bridge-side span {
    max-width: none;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .mv-standalone-body {
    --mv-current-prompt-code-height: 220px;
    --mv-project-prompt-code-height: 150px;
    --mv-range-prompt-code-height: 140px;
  }

  .mv-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mv-top-actions {
    width: 100%;
  }

  .mv-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mv-category-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mv-category-grid {
    grid-template-columns: 1fr;
  }

  .mv-import-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .mv-gpts-links {
    grid-template-columns: 1fr;
  }

  .mv-import-compose {
    min-height: auto;
  }

  .mv-import-compose .mv-gpt-markdown-input {
    min-height: 360px !important;
  }

  .mv-top-actions a {
    justify-content: center;
    flex: 1;
  }

  .mv-studio {
    gap: 12px;
  }

  .mv-simple-card {
    grid-template-columns: 1fr;
  }

  .mv-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mv-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mv-toolbar-actions,
  .mv-storage-row,
  .mv-template-box,
  .mv-primary-actions,
  .mv-secondary-actions,
  .mv-status-row,
  .mv-toggle-grid,
  .mv-option-primary-grid,
  .mv-reference-grid,
  .mv-preset-grid,
  .mv-preset-actions,
  .mv-quality-actions,
  .mv-variant-grid,
  .mv-variant-grid article,
  .mv-two-column,
  .mv-concept-grid,
  .mv-storyboard-layout {
    grid-template-columns: 1fr;
  }

  .mv-gallery-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .mv-source-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .mv-source-banner p {
    text-align: left;
  }

  .mv-advanced-options summary,
  .mv-collapsible summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mv-advanced-options summary small,
  .mv-collapsible summary small {
    display: none;
  }

  .mv-cut-rail {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .mv-cut-rail button {
    flex: 0 0 42px;
  }
}
