:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #0f1115;
  color: #e5e7eb;
}

.studio-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid #1f2430;
  background: #151923;
}

.studio-header h1 {
  margin: 0;
  font-size: 22px;
}

.studio-header p {
  margin: 6px 0 0;
  color: #9ca3af;
}

.studio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-actions button {
  border: 0;
  background: #f3f4f6;
  color: #0b0d12;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.studio-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.35);
}

#gjs {
  flex: 1;
  min-height: 480px;
}

.gjs-one-bg {
  background-color: #151923;
}

.gjs-two-color {
  color: #e5e7eb;
}

.gjs-three-bg {
  background-color: #1f2430;
}

.gjs-four-color {
  color: #d1d5db;
}

.gjs-pn-panel {
  border-color: #1f2430;
}

.gjs-cv-canvas {
  background-color: #0b0e14;
}

.export-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.export-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.export-modal {
  background: #111522;
  border: 1px solid #222734;
  border-radius: 16px;
  width: min(920px, 92vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.export-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.export-modal h2 {
  margin: 0;
  font-size: 18px;
}

.export-modal textarea {
  width: 100%;
  min-height: 320px;
  padding: 12px;
  background: #0b0e14;
  color: #e5e7eb;
  border: 1px solid #2c3445;
  border-radius: 8px;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.export-modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.export-modal .actions button {
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.export-modal .actions .secondary {
  background: transparent;
  border: 1px solid #2c3445;
  color: #e5e7eb;
}

.export-modal .actions .primary {
  background: #f3f4f6;
  color: #0b0d12;
}
