/* Studio + cookie (marketing page uses Tailwind) */
.studio-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .studio-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}
.studio-panel {
  background: #fff;
  border: 1px solid rgba(191, 201, 195, 0.55);
  border-radius: 1rem;
  padding: 1.15rem;
  box-shadow: 0 25px 50px -12px rgba(0, 53, 39, 0.12);
}
.studio-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 650;
  color: #003527;
}
.stage {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-height: min(70vh, 560px);
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1a16;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  cursor: pointer;
  user-select: none;
}
.stage.stage--live { cursor: default; }
.stage.stage--preview { cursor: grab; }
.stage.stage--preview.is-dragging { cursor: grabbing; }
.stage-video,
.stage-preview,
.stage canvas#capture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0f1a16;
}
.stage-video {
  opacity: 0;
  z-index: 1;
  transform: scaleX(-1);
}
.stage.stage--live .stage-video {
  opacity: 1;
}
.stage-preview {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.stage.stage--preview .stage-preview {
  opacity: 1;
  pointer-events: none; /* drag handled on stage */
  object-fit: cover;
  transform-origin: center center;
}
.stage canvas#capture {
  display: none !important;
  z-index: 0;
}
.mask {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.mask-ring {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.5;
}
.mask-ring--outer {
  stroke-dasharray: 7 6;
}
.mask-ring--inner {
  stroke: #b0f0d6;
  stroke-width: 2.2;
}
.stage-cta {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 3;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #003527;
  font-size: 0.9rem;
  font-weight: 650;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.stage:not(.stage--idle) .stage-cta {
  display: none;
}
.hint {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.85rem;
  z-index: 3;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
  pointer-events: none;
}
.stage.stage--idle .hint {
  opacity: 0.85;
}
.edit-bar {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}
.edit-bar[hidden] { display: none !important; }
.edit-zoom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: #003527;
}
.edit-zoom input[type="range"] {
  width: 100%;
  accent-color: #003527;
}
.edit-tip {
  margin: 0;
  font-size: 0.8rem;
  color: #565e74;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.btn, .btn-app {
  appearance: none;
  border: none;
  border-radius: 0.65rem;
  padding: 0.7rem 1rem;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover, .btn-app:hover { transform: translateY(-1px); }
.btn:disabled, .btn-app:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary, .btn-app-primary { background: #003527; color: #fff; }
.btn-secondary, .btn-app-secondary { background: #b0f0d6; color: #0b513d; }
.btn-ghost, .btn-app-ghost { background: #fff; color: #565e74; border: 1px solid #bfc9c3; }
.status, .status-line {
  margin-top: 0.7rem;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: #565e74;
}
.status.error, .status-line.error { color: #ba1a1a; }
.status.ok, .status-line.ok { color: #0b6b52; }
.formats { display: grid; gap: 0.7rem; }
.format {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(191, 201, 195, 0.7);
  border-radius: 12px;
  background: #f8f9ff;
}
.format canvas {
  width: 72px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #bfc9c3;
  background: #fff;
}
.format strong { display: block; font-size: 0.9rem; color: #0b1c30; }
.format span { color: #565e74; font-size: 0.78rem; }

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 420px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid #bfc9c3;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 50px rgba(0,0,0,0.14);
}
.cookie[hidden] { display: none !important; }
.cookie p { margin: 0 0 0.85rem; font-size: 0.88rem; color: #565e74; }
.cookie__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #003527;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
  display: block;
}
.brand-lockup span {
  font-weight: 700;
  letter-spacing: -0.02em;
}
