/* Страница: schemes */

.schemes-toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.schemes-toolbar input{
  flex: 1 1 360px;
  max-width: 720px;
}

.scheme-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 12px;
}

.scheme-card{
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface-2);
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 14px;
  align-items: start;
}

.scheme-file-icon{
  width: 72px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.scheme-card-main{
  min-width: 0;
  display: grid;
  gap: 7px;
}

.scheme-card-main b,.scheme-card-main span,.scheme-card-main small{
  overflow-wrap: anywhere;
}

.scheme-card-main span,.scheme-card-main small{
  color: var(--muted);
}

.scheme-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.scheme-preview{
  width: min(1500px,94vw);
  height: min(900px,88vh);
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  gap: 10px;
}

.scheme-preview-head{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.scheme-preview-head h2{
  margin: 0;
}

.scheme-preview-media{
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.scheme-preview-media img{
  display: block;
  max-width: none;
  min-width: 100%;
  height: auto;
}

.scheme-preview-media iframe{
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: 0;
}

@media (max-width:900px){
  .scheme-grid{grid-template-columns:1fr;}
  .scheme-preview{width:94vw;height:84vh;}
}
