.workspace select {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #55516b;
}
.workspace > div {
  min-width: 0;
  width: 100%;
}
.workspace small {
  font-size: 11px;
}
.studio-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.editor-actions {
  display: flex;
  gap: 10px;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.studio-controls {
  padding: 23px;
}
.control-tabs {
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.studio-controls label {
  font-size: 12px;
  margin-top: 17px;
  color: #697080;
}
.studio-controls input,
.studio-controls textarea,
.studio-controls select {
  font-size: 14px;
}
.template-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.template-option {
  border: 1px solid #e6e3ee;
  background: white;
  padding: 7px;
  border-radius: 8px;
  text-align: left;
  color: #514c65;
}
.template-option.selected {
  border: 2px solid var(--purple);
  padding: 6px;
  background: #f8f5ff;
}
.template-option > span {
  display: grid;
  place-items: center;
  height: 64px;
  border-radius: 4px;
  font-size: 27px;
  font-weight: 700;
}
.template-option strong {
  display: block;
  font-size: 11px;
  margin-top: 8px;
}
.template-option small {
  display: none;
}
.control-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.control-section h2 {
  font-size: 14px;
}
.identity-fields {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
}
.identity-fields input[type="color"] {
  width: 100%;
  height: 41px;
  padding: 4px;
}
.slide-edit-actions {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 14px;
}
.danger {
  color: #bb626b;
}
.text-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.upload-label {
  padding: 12px;
  border: 1px dashed #d5c7ee;
  border-radius: 7px;
  display: block;
  background: #faf8fe;
}
.upload-label input {
  border: 0;
  padding: 5px 0;
  font-size: 11px;
  max-width: 100%;
  background: transparent;
}
.studio-preview {
  position: sticky;
  top: 20px;
  border-radius: 12px;
  background: #edeef4;
  border: 1px solid #e4e5ed;
  padding: 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 21px;
  font-size: 13px;
  color: #6a6e80;
}
#preview-frame {
  max-width: 390px;
  width: 100%;
  box-shadow: 0 10px 40px #25203619;
  line-height: 0;
}
#preview-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.preview-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.preview-actions .button {
  font-size: 11px;
  padding: 10px;
}
.preview-note {
  text-align: center;
  font-size: 11px;
  max-width: 350px;
  color: #8a8d9d;
  line-height: 1.6;
  margin: 12px 0 0;
}
.overflow-warning {
  font-size: 12px;
  color: #a0444e;
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 400px;
}
.overflow-warning:empty {
  display: none;
}
.filmstrip-card {
  margin-top: 24px;
}
.filmstrip {
  display: flex;
  gap: 15px;
  overflow: auto;
  padding: 3px 2px 10px;
}
.filmstrip-slide {
  flex: 0 0 105px;
  background: white;
  border: 1px solid #e4e2ed;
  border-radius: 8px;
  padding: 5px;
  overflow: hidden;
}
.filmstrip-slide.selected {
  border: 2px solid var(--purple);
  padding: 4px;
}
.filmstrip-slide img {
  width: 100%;
  height: 128px;
  object-fit: contain;
  background: #f3f1f8;
  border-radius: 4px;
}
.filmstrip-slide span {
  display: block;
  font-size: 10px;
  color: #8a859b;
  margin: 7px 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}
.project-tile {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  text-align: left;
  padding: 0;
  overflow: hidden;
  transition: transform 0.15s;
}
.project-tile:hover {
  transform: translateY(-3px);
  border-color: #c5b5ed;
}
.project-tile > img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #eae8f1;
  padding: 15px;
}
.project-tile > div {
  padding: 17px;
}
.project-tile h3 {
  margin: 0;
  font-size: 14px;
  color: #494358;
}
.project-tile p {
  font-size: 12px;
  color: #85808f;
  margin: 8px 0;
}
.project-tile small {
  font-size: 11px;
  color: #a19aaa;
}
.empty-projects {
  padding: 65px 20px;
  text-align: center;
}
.empty-projects h2 {
  font-size: 20px;
}
.empty-projects .muted {
  margin: 14px 0 24px;
}
.empty-art {
  display: block;
  font-size: 50px;
  color: #9c7bd6;
  margin-bottom: 16px;
}
.local-drafts {
  margin-bottom: 24px;
}
.local-draft-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.local-draft-row:last-child {
  border: 0;
}
.local-draft-row strong {
  font-size: 14px;
}
.local-draft-row p {
  margin: 6px 0;
  font-size: 12px;
  color: var(--muted);
}
.workspace-create {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.workspace-create label {
  flex: 1;
  margin: 0;
}
.workspace-create input {
  margin-bottom: 0;
}
.integration-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.status-note {
  font-size: 12px;
  color: #93869e;
}
@media (min-width: 1500px) {
  .studio-grid {
    grid-template-columns: 420px 1fr;
  }
  #preview-frame {
    max-width: 450px;
  }
}
@media (max-width: 1000px) {
  .studio-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 15px;
  }
  .studio-controls {
    padding: 17px;
  }
  .studio-preview {
    padding: 16px;
  }
  .template-option strong {
    font-size: 10px;
  }
  .editor-actions .button {
    font-size: 11px;
    padding: 10px;
  }
}
@media (max-width: 800px) {
  .workspace {
    display: flex;
    margin: 18px 0 0;
    max-width: 300px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .studio-preview {
    position: static;
  }
  .editor-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .studio-controls {
    order: 2;
  }
  .studio-preview {
    order: 1;
  }
  .studio-top {
    margin-bottom: 20px;
  }
  #preview-frame {
    max-width: 280px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .project-tile > img {
    height: 200px;
  }
  .project-tile > div {
    padding: 12px;
  }
  .page-top {
    gap: 12px;
  }
  .workspace-create {
    align-items: stretch;
    flex-direction: column;
  }
  .template-option small {
    display: block;
    font-size: 10px;
    line-height: 1.5;
    margin-top: 5px;
  }
  .local-draft-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
.tool-access {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.tool-access p {
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .tool-access {
    align-items: flex-start;
    flex-direction: column;
  }
}
