/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --page-bg: radial-gradient(1200px 800px at 10% -10%, #dbeafe 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 0%, #fef3c7 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  --panel: rgba(255, 255, 255, 0.92);
  --panel-soft: rgba(248, 250, 252, 0.95);
  --panel-border: rgba(15, 23, 42, 0.08);
  --panel-glow: rgba(15, 23, 42, 0.08);
  --topbar-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(226, 232, 240, 0.95) 100%);
  --accent: #0ea5e9;
  --accent-2: #14b8a6;
  --accent-3: #1d4ed8;
  --text: #0f172a;
  --muted: #64748b;
  --success: #16a34a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --code-bg: #0b1120;
  --code-text: #e2e8f0;
  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.12);
  --preview-bg: #f8fafc;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f19;
  --page-bg: radial-gradient(1200px 800px at 10% -10%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(20, 184, 166, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #0b0f19 0%, #070a12 100%);
  --panel: rgba(17, 24, 39, 0.92);
  --panel-soft: rgba(15, 23, 42, 0.92);
  --panel-border: rgba(148, 163, 184, 0.18);
  --panel-glow: rgba(15, 23, 42, 0.5);
  --topbar-bg: rgba(17, 24, 39, 0.92);
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --accent-3: #60a5fa;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --success: #22c55e;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --input-bg: rgba(15, 23, 42, 0.9);
  --input-border: rgba(148, 163, 184, 0.2);
  --preview-bg: #020617;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Sora", "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.app-shell::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -180px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
}

.app-shell::after {
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16), transparent 70%);
}

[data-theme="dark"] .app-shell::before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
}

[data-theme="dark"] .app-shell::after {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18), transparent 70%);
}

.app-shell > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--topbar-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  animation: fadeDown 0.6s ease both;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
}

.logo-row h1 {
  font-size: 24px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
}

.logo-image {
  height: 44px;
  display: block;
}

.topbar-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-chip {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-3);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.theme-toggle {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-border);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: none;
  padding: 0;
}

.theme-toggle:hover:not(:disabled) {
  transform: none;
  background: rgba(148, 163, 184, 0.12);
}

.theme-icon {
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

main {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(540px, 1fr);
  grid-gap: 20px;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease both;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: "Sora", "Manrope", sans-serif;
}

button {
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  border: none;
  color: #f8fafc;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.3);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

textarea,
input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

textarea:focus,
input:focus {
  outline: 2px solid rgba(14, 165, 233, 0.25);
  border-color: rgba(14, 165, 233, 0.5);
}

.panel-card textarea {
  background: transparent;
  border: none;
  padding: 0;
  min-height: 120px;
  box-shadow: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.helper-text {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-title h2 {
  font-size: 18px;
}

.panel-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.panel-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-size: 12px;
  font-weight: 700;
}

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

.icon-btn {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--text);
  width: 34px;
  height: 32px;
  border-radius: 10px;
  padding: 0;
  box-shadow: none;
}

.icon-btn:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
  background: rgba(226, 232, 240, 0.9);
}

[data-theme="dark"] .icon-btn {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
}

.status {
  font-size: 12px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  width: -moz-fit-content;
  width: fit-content;
}

[data-theme="dark"] .status-pill {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.2);
}

.chip {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-3);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.iframe-wrap {
  flex: 1 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--preview-bg);
  min-height: 420px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

[data-theme="dark"] .tab {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
}

.tab.active {
  border-color: var(--accent);
  color: var(--accent-3);
}

.code-block {
  background: var(--code-bg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--code-text);
}

.panel-card {
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 0 0 16px rgba(148, 163, 184, 0.18);
}

.card-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}

.card-body {
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
}

.storyboard-content strong {
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.5);
}

.status-dot.live {
  width: 10px;
  height: 10px;
  background: #22c55e;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.storyboard-actions {
  flex-direction: column;
  align-items: stretch;
}

.storyboard-actions button {
  width: 100%;
  justify-content: center;
}

.ghost-btn {
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  color: var(--text);
  box-shadow: none;
}

.preview-actions {
  justify-content: flex-end;
}

.left-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-section {
  min-height: 70vh;
}

.left-stack .panel:nth-of-type(1) {
  animation-delay: 0.05s;
}

.left-stack .panel:nth-of-type(2) {
  animation-delay: 0.1s;
}

.preview-section .panel {
  animation-delay: 0.15s;
}

.storyboard-scroll {
  max-height: 46vh;
  overflow: auto;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  main {
    grid-template-columns: 1fr;
  }
  .preview-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel {
    padding: 16px;
  }
}

