.frames-empty {
  max-width: 900px;
  margin: 36px auto 60px;
  text-align: center;
}
.frames-art {
  display: block;
  width: 70px;
  margin: 0 auto 20px;
}
.frames-empty h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1.4px;
  margin: 0 0 20px;
}
.frames-empty p {
  color: #768197;
  line-height: 1.8;
  font-size: 15px;
}
.frames-drop {
  padding: 46px 20px;
  background: white;
  border: 1.5px dashed #cbd4e7;
  border-radius: 18px;
  margin: 28px 0;
}
.frames-drop.dragging {
  background: #eaf0fb;
  border-color: #7898b5;
}
.frames-primary {
  display: inline-block;
  background: #486bc7;
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 14px 20px;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}
.frames-primary:disabled {
  opacity: 0.45;
  cursor: default;
}
.frames-filebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: white;
  border: 1px solid #e0e4ed;
  border-radius: 12px;
  margin-bottom: 20px;
}
.frames-filebar > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.frames-filebar > div:last-child {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.frames-filebar p,
.frames-pane-head p {
  color: #79859b;
  font-size: 13px;
  margin: 6px 0 0;
}
.frames-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.frames-preview,
.frames-explainer,
.frames-gallery {
  min-width: 0;
  border: 1px solid #e0e4ed;
  border-radius: 16px;
  background: white;
  overflow: hidden;
}
.frames-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e7eaf0;
}
.frames-pane-head h2,
.frames-explainer h2 {
  font-size: 17px;
  margin: 0;
}
.frames-stage {
  background: #1e2533;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
#frames-video {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}
#frames-settings {
  border: 0;
  padding: 24px;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 20px;
}
#frames-settings label {
  display: grid;
  gap: 9px;
  color: #566780;
  font-size: 13px;
  min-width: 0;
}
#frames-settings input,
#frames-settings select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.frames-fields {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 14px;
}
.frames-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 24px 24px;
}
.frames-actions button:not(.frames-primary),
.frames-pane-head button,
.frames-filebar button,
#frames-results button {
  background: white;
  border: 1px solid #dce3ed;
  border-radius: 7px;
  color: #64768e;
  padding: 9px 12px;
  cursor: pointer;
}
.frames-hint {
  color: #7a879a;
  font-size: 12px;
  line-height: 1.8;
  margin: 0 24px 24px;
}
.frames-explainer {
  padding: 24px;
  color: #748198;
  font-size: 13px;
  line-height: 1.8;
}
.frames-explainer h2 {
  color: #2e394e;
}
.frames-explainer ul {
  padding-left: 18px;
}
.frames-explainer a {
  display: block;
  margin-top: 12px;
  color: #486bc7;
}
.frames-gallery {
  margin-top: 24px;
}
#frames-results {
  list-style: none;
  padding: 24px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 20px;
}
#frames-results li {
  background: #f6f8fb;
  padding: 14px;
  border: 1px solid #e1e6ee;
  border-radius: 10px;
  min-width: 0;
}
#frames-results img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #e7ebf2;
  display: block;
}
#frames-results h3 {
  font-size: 16px;
  margin: 15px 0 7px;
}
#frames-results p {
  color: #7b879a;
  font-size: 12px;
}
#frames-results a {
  display: inline-block;
  color: #486bc7;
  font-size: 13px;
  margin: 8px 12px 8px 0;
}
.frames-status {
  color: #748198;
  font-size: 13px;
  line-height: 1.8;
  margin: 20px 0;
}
@media (max-width: 850px) {
  .frames-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .frames-explainer {
    display: none;
  }
}
@media (max-width: 480px) {
  .frames-filebar,
  .frames-pane-head {
    flex-wrap: wrap;
    padding: 18px;
  }
  .frames-fields {
    grid-template-columns: 1fr;
  }
  #frames-settings,
  #frames-results {
    padding: 18px;
  }
  .frames-actions {
    padding: 0 18px 18px;
  }
  .frames-hint {
    margin: 0 18px 18px;
  }
}
